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 XFT_CFLAGS XFT_LIBS FREETYPE_CFLAGS FREETYPE_LIBS FONTCONFIG_CFLAGS FONTCONFIG_LIBS HAVE_LIBOTF LIBOTF_CFLAGS LIBOTF_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS GETOPT_H GETOPTOBJS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version
=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name
=s
,x
,x
,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir
='${exec_prefix}/bin'
342 sbindir
='${exec_prefix}/sbin'
343 libexecdir
='${exec_prefix}/libexec'
344 datadir
='${prefix}/share'
345 sysconfdir
='${prefix}/etc'
346 sharedstatedir
='${prefix}/com'
347 localstatedir
='${prefix}/var'
348 libdir
='${exec_prefix}/lib'
349 includedir
='${prefix}/include'
350 oldincludedir
='/usr/include'
351 infodir
='${prefix}/info'
352 mandir
='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
372 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
375 -build |
--build |
--buil |
--bui |
--bu)
376 ac_prev
=build_alias
;;
377 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
378 build_alias
=$ac_optarg ;;
380 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
381 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
382 ac_prev
=cache_file
;;
383 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
384 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
385 cache_file
=$ac_optarg ;;
388 cache_file
=config.cache
;;
390 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
392 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
394 datadir
=$ac_optarg ;;
396 -disable-* |
--disable-*)
397 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* |
--enable-*)
406 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
419 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
420 |
--exec |
--exe |
--ex)
421 ac_prev
=exec_prefix
;;
422 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
423 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
424 |
--exec=* |
--exe=* |
--ex=*)
425 exec_prefix
=$ac_optarg ;;
427 -gas |
--gas |
--ga |
--g)
428 # Obsolete; use --with-gas.
431 -help |
--help |
--hel |
--he |
-h)
433 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
434 ac_init_help
=recursive
;;
435 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
436 ac_init_help
=short
;;
438 -host |
--host |
--hos |
--ho)
439 ac_prev
=host_alias
;;
440 -host=* |
--host=* |
--hos=* |
--ho=*)
441 host_alias
=$ac_optarg ;;
443 -includedir |
--includedir |
--includedi |
--included |
--include \
444 |
--includ |
--inclu |
--incl |
--inc)
445 ac_prev
=includedir
;;
446 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
447 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
448 includedir
=$ac_optarg ;;
450 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
452 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
453 infodir
=$ac_optarg ;;
455 -libdir |
--libdir |
--libdi |
--libd)
457 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
460 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
461 |
--libexe |
--libex |
--libe)
462 ac_prev
=libexecdir
;;
463 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
464 |
--libexe=* |
--libex=* |
--libe=*)
465 libexecdir
=$ac_optarg ;;
467 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
468 |
--localstate |
--localstat |
--localsta |
--localst \
469 |
--locals |
--local |
--loca |
--loc |
--lo)
470 ac_prev
=localstatedir
;;
471 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
472 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
473 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
474 localstatedir
=$ac_optarg ;;
476 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
478 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
482 # Obsolete; use --without-fp.
485 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
486 |
--no-cr |
--no-c |
-n)
489 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
490 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
493 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
494 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
495 |
--oldin |
--oldi |
--old |
--ol |
--o)
496 ac_prev
=oldincludedir
;;
497 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
498 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
499 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
500 oldincludedir
=$ac_optarg ;;
502 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
504 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
507 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
508 |
--program-pre |
--program-pr |
--program-p)
509 ac_prev
=program_prefix
;;
510 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
511 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
512 program_prefix
=$ac_optarg ;;
514 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
515 |
--program-suf |
--program-su |
--program-s)
516 ac_prev
=program_suffix
;;
517 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
518 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
519 program_suffix
=$ac_optarg ;;
521 -program-transform-name |
--program-transform-name \
522 |
--program-transform-nam |
--program-transform-na \
523 |
--program-transform-n |
--program-transform- \
524 |
--program-transform |
--program-transfor \
525 |
--program-transfo |
--program-transf \
526 |
--program-trans |
--program-tran \
527 |
--progr-tra |
--program-tr |
--program-t)
528 ac_prev
=program_transform_name
;;
529 -program-transform-name=* |
--program-transform-name=* \
530 |
--program-transform-nam=* |
--program-transform-na=* \
531 |
--program-transform-n=* |
--program-transform-=* \
532 |
--program-transform=* |
--program-transfor=* \
533 |
--program-transfo=* |
--program-transf=* \
534 |
--program-trans=* |
--program-tran=* \
535 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
536 program_transform_name
=$ac_optarg ;;
538 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
539 |
-silent |
--silent |
--silen |
--sile |
--sil)
542 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
544 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
546 sbindir
=$ac_optarg ;;
548 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
549 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
550 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
552 ac_prev
=sharedstatedir
;;
553 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
554 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
555 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
557 sharedstatedir
=$ac_optarg ;;
559 -site |
--site |
--sit)
561 -site=* |
--site=* |
--sit=*)
564 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
566 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
569 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
570 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
571 ac_prev
=sysconfdir
;;
572 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
573 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
574 sysconfdir
=$ac_optarg ;;
576 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
577 ac_prev
=target_alias
;;
578 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
579 target_alias
=$ac_optarg ;;
581 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
584 -version |
--version |
--versio |
--versi |
--vers |
-V)
588 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package
=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* |
--without-*)
601 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package
=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
614 |
--x-incl |
--x-inc |
--x-in |
--x-i)
615 ac_prev
=x_includes
;;
616 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
617 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
618 x_includes
=$ac_optarg ;;
620 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
621 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
622 ac_prev
=x_libraries
;;
623 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
624 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
625 x_libraries
=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var
in exec_prefix prefix
662 eval ac_val
=$
`echo $ac_var`
664 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val
=$
`echo $ac_var`
676 [\\/$
]* | ?
:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x
; then
691 if test "x$build_alias" = x
; then
692 cross_compiling
=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
703 test "$silent" = yes && exec 6>/dev
/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted
=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir
=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted
=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set
=${build_alias+set}
743 ac_env_build_alias_value
=$build_alias
744 ac_cv_env_build_alias_set
=${build_alias+set}
745 ac_cv_env_build_alias_value
=$build_alias
746 ac_env_host_alias_set
=${host_alias+set}
747 ac_env_host_alias_value
=$host_alias
748 ac_cv_env_host_alias_set
=${host_alias+set}
749 ac_cv_env_host_alias_value
=$host_alias
750 ac_env_target_alias_set
=${target_alias+set}
751 ac_env_target_alias_value
=$target_alias
752 ac_cv_env_target_alias_set
=${target_alias+set}
753 ac_cv_env_target_alias_value
=$target_alias
754 ac_env_CC_set
=${CC+set}
756 ac_cv_env_CC_set
=${CC+set}
757 ac_cv_env_CC_value
=$CC
758 ac_env_CFLAGS_set
=${CFLAGS+set}
759 ac_env_CFLAGS_value
=$CFLAGS
760 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value
=$CFLAGS
762 ac_env_LDFLAGS_set
=${LDFLAGS+set}
763 ac_env_LDFLAGS_value
=$LDFLAGS
764 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value
=$LDFLAGS
766 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value
=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
770 ac_env_CPP_set
=${CPP+set}
771 ac_env_CPP_value
=$CPP
772 ac_cv_env_CPP_set
=${CPP+set}
773 ac_cv_env_CPP_value
=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
841 --x-includes=DIR X include files are
in DIR
842 --x-libraries=DIR X library files are
in DIR
845 --build=BUILD configure
for building on BUILD
[guessed
]
846 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
850 if test -n "$ac_init_help"; then
855 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
856 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
857 --enable-carbon-app[=DIR
] [DIR
=/Application
]
858 specify
install directory
for Emacs.app on Mac OS X
859 --enable-font-backend compile code of font-backend support
860 --enable-asserts compile code with asserts enabled
861 --enable-maintainer-mode enable make rules and dependencies not useful
862 (and sometimes confusing
) to the casual installer
863 --enable-locallisppath=PATH
864 directories Emacs should search
for lisp files
865 specific to this site
866 --disable-largefile omit support
for large files
869 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
870 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
871 --without-gcc don
't use GCC to compile Emacs if GCC is found
872 --without-pop don't support POP
mail retrieval with movemail
873 --with-kerberos support Kerberos-authenticated POP
874 --with-kerberos5 support Kerberos version
5 authenticated POP
875 --with-hesiod support Hesiod to get the POP server
host
876 --without-sound don
't compile with sound support
877 --with-x-toolkit=KIT use an X toolkit
878 (KIT = yes/lucid/athena/motif/gtk/no)
879 --with-xpm use -lXpm for displaying XPM images
880 --with-jpeg use -ljpeg for displaying JPEG images
881 --with-tiff use -ltiff for displaying TIFF images
882 --with-gif use -lungif for displaying GIF images
883 --with-png use -lpng for displaying PNG images
884 --with-freetype use -lfreetype for local fonts support
885 --with-xft use -lXft for anti aliased fonts
886 --with-gtk use GTK (same as --with-x-toolkit=gtk)
887 --with-pkg-config-prog Path to pkg-config to use for finding GTK
888 --without-toolkit-scroll-bars
889 don't use Motif or Xaw3d scroll bars
890 --without-xim don
't use X11 XIM
891 --without-carbon don't use Carbon GUI on Mac OS X
892 --with-x use the X Window System
894 Some influential environment variables
:
895 CC C compiler
command
896 CFLAGS C compiler flags
897 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
898 nonstandard directory
<lib dir
>
899 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
900 headers
in a nonstandard directory
<include dir
>
903 Use these variables to override the choices made by
`configure' or to help
904 it to find libraries and programs with nonstandard names/locations.
909 if test "$ac_init_help" = "recursive"; then
910 # If there are subdirs, report their specific --help.
912 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
913 test -d $ac_dir || continue
916 if test "$ac_dir" != .; then
917 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
918 # A "../" for each directory in $ac_dir_suffix.
919 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
921 ac_dir_suffix= ac_top_builddir=
925 .) # No --srcdir option. We are building in place.
927 if test -z "$ac_top_builddir"; then
930 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
932 [\\/]* | ?:[\\/]* ) # Absolute path.
933 ac_srcdir=$srcdir$ac_dir_suffix;
934 ac_top_srcdir=$srcdir ;;
936 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
937 ac_top_srcdir=$ac_top_builddir$srcdir ;;
940 # Do not use `cd foo
&& pwd` to compute absolute paths, because
941 # the directories may not exist.
943 .) ac_abs_builddir="$ac_dir";;
946 .) ac_abs_builddir=`pwd`;;
947 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
948 *) ac_abs_builddir=`pwd`/"$ac_dir";;
951 case $ac_abs_builddir in
952 .) ac_abs_top_builddir=${ac_top_builddir}.;;
954 case ${ac_top_builddir}. in
955 .) ac_abs_top_builddir=$ac_abs_builddir;;
956 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
957 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
960 case $ac_abs_builddir in
961 .) ac_abs_srcdir=$ac_srcdir;;
964 .) ac_abs_srcdir=$ac_abs_builddir;;
965 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
966 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
969 case $ac_abs_builddir in
970 .) ac_abs_top_srcdir=$ac_top_srcdir;;
972 case $ac_top_srcdir in
973 .) ac_abs_top_srcdir=$ac_abs_builddir;;
974 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
975 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
980 # Check for guested configure; otherwise get Cygnus style configure.
981 if test -f $ac_srcdir/configure.gnu; then
983 $SHELL $ac_srcdir/configure.gnu --help=recursive
984 elif test -f $ac_srcdir/configure; then
986 $SHELL $ac_srcdir/configure --help=recursive
987 elif test -f $ac_srcdir/configure.ac ||
988 test -f $ac_srcdir/configure.in; then
992 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
998 test -n "$ac_init_help" && exit 0
999 if $ac_init_version; then
1002 Copyright (C) 2003 Free Software Foundation, Inc.
1003 This configure script is free software; the Free Software Foundation
1004 gives unlimited permission to copy, distribute and modify it.
1010 This file contains any messages produced by compilers while
1011 running configure, to aid debugging if configure makes a mistake.
1013 It was created by $as_me, which was
1014 generated by GNU Autoconf 2.59. Invocation command line was
1025 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1026 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1027 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1028 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1029 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1031 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1032 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1034 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1035 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1036 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1037 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1038 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1039 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1040 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1048 test -z "$as_dir" && as_dir=.
1049 echo "PATH: $as_dir"
1064 # Keep a trace of the command line.
1065 # Strip out --no-create and --no-recursion so they do not pile up.
1066 # Strip out --silent because we don't want to record it for future runs.
1067 # Also quote any args containing shell meta-characters.
1068 # Make two passes to allow for proper duplicate-argument suppression.
1073 ac_must_keep_next=false
1079 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081 | -silent | --silent | --silen | --sile | --sil)
1083 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1084 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1087 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1089 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1090 if test $ac_must_keep_next = true; then
1091 ac_must_keep_next=false # Got value, back to normal.
1094 *=* | --config-cache | -C | -disable-* | --disable-* \
1095 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1096 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1097 | -with-* | --with-* | -without-* | --without-* | --x)
1098 case "$ac_configure_args0 " in
1099 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1102 -* ) ac_must_keep_next=true ;;
1105 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1106 # Get rid of the leading space.
1112 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1113 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1115 # When interrupted or exit'd, cleanup temporary files, and complete
1116 # config.log. We remove comments because anyway the quotes in there
1117 # would cause problems or look ugly.
1118 # WARNING: Be sure not to use single quotes in there, as some shells,
1119 # such as our DU 5.0 friend, will then `close
' the trap.
1120 trap 'exit_status
=$?
1121 # Save into config.log some information that might help in debugging.
1126 ## ---------------- ##
1127 ## Cache variables. ##
1128 ## ---------------- ##
1131 # The following way of writing the cache mishandles newlines in values,
1134 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1137 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1138 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1142 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1149 ## ----------------- ##
1150 ## Output variables. ##
1151 ## ----------------- ##
1154 for ac_var
in $ac_subst_vars
1156 eval ac_val
=$
`echo $ac_var`
1157 echo "$ac_var='"'"'$ac_val'"'"'"
1161 if test -n "$ac_subst_files"; then
1168 for ac_var
in $ac_subst_files
1170 eval ac_val
=$
`echo $ac_var`
1171 echo "$ac_var='"'"'$ac_val'"'"'"
1176 if test -s confdefs.h
; then
1183 sed "/^$/d" confdefs.h |
sort
1186 test "$ac_signal" != 0 &&
1187 echo "$as_me: caught signal $ac_signal"
1188 echo "$as_me: exit $exit_status"
1190 rm -f core
*.core
&&
1191 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1194 for ac_signal in 1 2 13 15; do
1195 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1199 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1200 rm -rf conftest* confdefs.h
1201 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1204 # Predefined preprocessor variables.
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_NAME "$PACKAGE_NAME"
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_STRING "$PACKAGE_STRING"
1226 cat >>confdefs.h <<_ACEOF
1227 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1231 # Let the site file select an alternate cache file if it wants to.
1232 # Prefer explicitly selected file to automatically selected ones.
1233 if test -z "$CONFIG_SITE"; then
1234 if test "x$prefix" != xNONE; then
1235 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1237 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1240 for ac_site_file in $CONFIG_SITE; do
1241 if test -r "$ac_site_file"; then
1242 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1243 echo "$as_me: loading site script $ac_site_file" >&6;}
1244 sed 's
/^
/|
/' "$ac_site_file" >&5
1249 if test -r "$cache_file"; then
1250 # Some versions of bash will fail to source /dev/null (special
1251 # files actually), so we avoid doing that.
1252 if test -f "$cache_file"; then
1253 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1254 echo "$as_me: loading cache $cache_file" >&6;}
1256 [\\/]* | ?:[\\/]* ) . $cache_file;;
1257 *) . ./$cache_file;;
1261 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1262 echo "$as_me: creating cache $cache_file" >&6;}
1266 # Check that the precious variables saved in the cache have kept the same
1268 ac_cache_corrupted=false
1269 for ac_var in `(set) 2>&1 |
1270 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1271 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1272 eval ac_new_set=\$ac_env_${ac_var}_set
1273 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1274 eval ac_new_val="\$ac_env_${ac_var}_value"
1275 case $ac_old_set,$ac_new_set in
1277 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1278 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1279 ac_cache_corrupted=: ;;
1281 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1282 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1283 ac_cache_corrupted=: ;;
1286 if test "x$ac_old_val" != "x$ac_new_val"; then
1287 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1288 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1289 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1290 echo "$as_me: former value: $ac_old_val" >&2;}
1291 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1292 echo "$as_me: current value: $ac_new_val" >&2;}
1293 ac_cache_corrupted=:
1296 # Pass precious variables to config.status.
1297 if test "$ac_new_set" = set; then
1299 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1300 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1301 *) ac_arg=$ac_var=$ac_new_val ;;
1303 case " $ac_configure_args " in
1304 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1305 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1309 if $ac_cache_corrupted; then
1310 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1311 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1312 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1313 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1314 { (exit 1); exit 1; }; }
1318 ac_cpp='$CPP $CPPFLAGS'
1319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1320 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1341 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1344 test "$program_prefix" != NONE &&
1345 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1346 # Use a double $ so make ignores it.
1347 test "$program_suffix" != NONE &&
1348 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1349 # Double any \ or $. echo might interpret backslashes.
1350 # By default was `s,x,x', remove it
if useless.
1351 cat <<\_ACEOF
>conftest.
sed
1352 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1354 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1358 lispdir
='${datadir}/emacs/${version}/lisp'
1359 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1360 '${datadir}/emacs/site-lisp'
1361 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1362 etcdir
='${datadir}/emacs/${version}/etc'
1363 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1364 docdir
='${datadir}/emacs/${version}/etc'
1365 gamedir
='${localstatedir}/games/emacs'
1370 # Check whether --with-gcc or --without-gcc was given.
1371 if test "${with_gcc+set}" = set; then
1376 # Check whether --with-pop or --without-pop was given.
1377 if test "${with_pop+set}" = set; then
1379 if test "$withval" = yes; then
1380 cat >>confdefs.h
<<\_ACEOF
1381 #define MAIL_USE_POP 1
1387 cat >>confdefs.h
<<\_ACEOF
1388 #define MAIL_USE_POP 1
1394 # Check whether --with-kerberos or --without-kerberos was given.
1395 if test "${with_kerberos+set}" = set; then
1396 withval
="$with_kerberos"
1397 cat >>confdefs.h
<<\_ACEOF
1404 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1405 if test "${with_kerberos5+set}" = set; then
1406 withval
="$with_kerberos5"
1407 if test "${with_kerberos5+set}" = set; then
1408 if test "${with_kerberos+set}" != set; then
1410 cat >>confdefs.h
<<\_ACEOF
1417 cat >>confdefs.h
<<\_ACEOF
1423 # Check whether --with-hesiod or --without-hesiod was given.
1424 if test "${with_hesiod+set}" = set; then
1425 withval
="$with_hesiod"
1427 cat >>confdefs.h
<<\_ACEOF
1434 # Check whether --with-sound or --without-sound was given.
1435 if test "${with_sound+set}" = set; then
1436 withval
="$with_sound"
1441 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1442 if test "${with_x_toolkit+set}" = set; then
1443 withval
="$with_x_toolkit"
1444 case "${withval}" in
1445 y | ye |
yes ) val
=athena
;;
1447 l | lu | luc | luci | lucid
) val
=lucid
;;
1448 a |
at | ath | athe | athen | athena
) val
=athena
;;
1449 m | mo | mot | moti | motif
) val
=motif
;;
1450 g | gt | gtk
) val
=gtk
;;
1452 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1453 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1454 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1455 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1456 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1457 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1458 { (exit 1); exit 1; }; }
1465 # Check whether --with-xpm or --without-xpm was given.
1466 if test "${with_xpm+set}" = set; then
1471 # Check whether --with-jpeg or --without-jpeg was given.
1472 if test "${with_jpeg+set}" = set; then
1473 withval
="$with_jpeg"
1477 # Check whether --with-tiff or --without-tiff was given.
1478 if test "${with_tiff+set}" = set; then
1479 withval
="$with_tiff"
1483 # Check whether --with-gif or --without-gif was given.
1484 if test "${with_gif+set}" = set; then
1489 # Check whether --with-png or --without-png was given.
1490 if test "${with_png+set}" = set; then
1495 # Check whether --with-freetype or --without-freetype was given.
1496 if test "${with_freetype+set}" = set; then
1497 withval
="$with_freetype"
1501 # Check whether --with-xft or --without-xft was given.
1502 if test "${with_xft+set}" = set; then
1507 # Check whether --with-gtk or --without-gtk was given.
1508 if test "${with_gtk+set}" = set; then
1513 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1514 if test "${with_pkg_config_prog+set}" = set; then
1515 withval
="$with_pkg_config_prog"
1519 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1520 if test "${with_toolkit_scroll_bars+set}" = set; then
1521 withval
="$with_toolkit_scroll_bars"
1525 # Check whether --with-xim or --without-xim was given.
1526 if test "${with_xim+set}" = set; then
1531 # Check whether --with-carbon or --without-carbon was given.
1532 if test "${with_carbon+set}" = set; then
1533 withval
="$with_carbon"
1536 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1537 if test "${enable_carbon_app+set}" = set; then
1538 enableval
="$enable_carbon_app"
1539 carbon_appdir_x
=${enableval}
1542 # Check whether --enable-font-backend or --disable-font-backend was given.
1543 if test "${enable_font_backend+set}" = set; then
1544 enableval
="$enable_font_backend"
1545 USE_FONT_BACKEND
=$enableval
1550 # Check whether --enable-asserts or --disable-asserts was given.
1551 if test "${enable_asserts+set}" = set; then
1552 enableval
="$enable_asserts"
1553 USE_XASSERTS
=$enableval
1558 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1559 if test "${enable_maintainer_mode+set}" = set; then
1560 enableval
="$enable_maintainer_mode"
1561 USE_MAINTAINER_MODE
=$enableval
1563 USE_MAINTAINER_MODE
=no
1565 if test $USE_MAINTAINER_MODE = yes; then
1572 # Check whether --enable-locallisppath or --disable-locallisppath was given.
1573 if test "${enable_locallisppath+set}" = set; then
1574 enableval
="$enable_locallisppath"
1575 if test "${enableval}" = "no"; then
1577 elif test "${enableval}" != "yes"; then
1578 locallisppath
=${enableval}
1582 #### Make srcdir absolute, if it isn't already. It's important to
1583 #### avoid running the path through pwd unnecessarily, since pwd can
1584 #### give you automounter prefixes, which can go away. We do all this
1585 #### so Emacs can find its files when run uninstalled.
1586 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1591 ## We may be able to use the $PWD environment variable to make this
1592 ## absolute. But sometimes PWD is inaccurate.
1593 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1594 ## but that tested only for a well-formed and valid PWD,
1595 ## it did not object when PWD was well-formed and valid but just wrong.
1596 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1600 srcdir
="`(cd ${srcdir}; pwd)`"
1603 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
1606 #### Check if the source directory already has a configured system in it.
1607 if test `pwd` != `(cd ${srcdir} && pwd)` \
1608 && test -f "${srcdir}/src/config.h" ; then
1609 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1610 as a build directory right now; it has been configured in its own
1611 right. To configure in another directory as well, you MUST
1612 use GNU make. If you do not have GNU make, then you must
1613 now do \`make distclean' in ${srcdir},
1614 and then run $0 again." >&5
1615 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1616 as a build directory right now; it has been configured in its own
1617 right. To configure in another directory as well, you MUST
1618 use GNU make. If you do not have GNU make, then you must
1619 now do \`make distclean' in ${srcdir},
1620 and then run $0 again." >&2;}
1623 #### Given the configuration name, set machfile and opsysfile to the
1624 #### names of the m/*.h and s/*.h files we should use.
1626 ### Canonicalize the configuration name.
1629 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1630 if test -f $ac_dir/install-sh
; then
1632 ac_install_sh
="$ac_aux_dir/install-sh -c"
1634 elif test -f $ac_dir/install.sh
; then
1636 ac_install_sh
="$ac_aux_dir/install.sh -c"
1638 elif test -f $ac_dir/shtool
; then
1640 ac_install_sh
="$ac_aux_dir/shtool install -c"
1644 if test -z "$ac_aux_dir"; then
1645 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1646 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1647 { (exit 1); exit 1; }; }
1649 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1650 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1651 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1653 # Make sure we can run config.sub.
1654 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1655 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1656 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1657 { (exit 1); exit 1; }; }
1659 echo "$as_me:$LINENO: checking build system type" >&5
1660 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1661 if test "${ac_cv_build+set}" = set; then
1662 echo $ECHO_N "(cached) $ECHO_C" >&6
1664 ac_cv_build_alias
=$build_alias
1665 test -z "$ac_cv_build_alias" &&
1666 ac_cv_build_alias
=`$ac_config_guess`
1667 test -z "$ac_cv_build_alias" &&
1668 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1669 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1670 { (exit 1); exit 1; }; }
1671 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1672 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1673 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1674 { (exit 1); exit 1; }; }
1677 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1678 echo "${ECHO_T}$ac_cv_build" >&6
1680 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1681 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1682 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1685 echo "$as_me:$LINENO: checking host system type" >&5
1686 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1687 if test "${ac_cv_host+set}" = set; then
1688 echo $ECHO_N "(cached) $ECHO_C" >&6
1690 ac_cv_host_alias
=$host_alias
1691 test -z "$ac_cv_host_alias" &&
1692 ac_cv_host_alias
=$ac_cv_build_alias
1693 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1694 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1695 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1696 { (exit 1); exit 1; }; }
1699 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1700 echo "${ECHO_T}$ac_cv_host" >&6
1702 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1703 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1704 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1708 configuration
=${host_alias-$host}
1712 ### If you add support for a new configuration, add code to this
1713 ### switch statement to recognize your configuration name and select
1714 ### the appropriate operating system and machine description files.
1716 ### You would hope that you could choose an m/*.h file pretty much
1717 ### based on the machine portion of the configuration name, and an s-
1718 ### file based on the operating system portion. However, it turns out
1719 ### that each m/*.h file is pretty manufacturer-specific - for
1720 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1721 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1722 ### machines. So we basically have to have a special case for each
1723 ### configuration name.
1725 ### As far as handling version numbers on operating systems is
1726 ### concerned, make sure things will fail in a fixable way. If
1727 ### /etc/MACHINES doesn't say anything about version numbers, be
1728 ### prepared to handle anything reasonably. If version numbers
1729 ### matter, be sure /etc/MACHINES says something about it.
1731 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1732 ### "System V Release 4"; he writes, "The old convention encouraged
1733 ### confusion between `system' and `release' levels'."
1735 machine
='' opsys
='' unported
=no
1736 case "${canonical}" in
1741 case "${canonical}" in
1742 alpha
*-*-freebsd*) machine
=alpha
;;
1743 i
[3456]86-*-freebsd*) machine
=intel386
;;
1744 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
1751 if test -f /usr
/lib
/crti.o
; then
1753 cat >>confdefs.h
<<\_ACEOF
1759 case "${canonical}" in
1760 alpha
*-*-netbsd*) machine
=alpha
;;
1761 i
[3456]86-*-netbsd*) machine
=intel386
;;
1763 # This is somewhat bogus.
1764 machine
=hp9000s300
;;
1765 powerpc-apple-netbsd
*) machine
=macppc
;;
1766 mips-
*-netbsd*) machine
=pmax
;;
1767 mipsel-
*-netbsd*) machine
=pmax
;;
1768 mipseb-
*-netbsd*) machine
=pmax
;;
1769 ns32k-
*-netbsd*) machine
=ns32000
;;
1770 powerpc-
*-netbsd*) machine
=macppc
;;
1771 sparc
*-*-netbsd*) machine
=sparc
;;
1772 vax-
*-netbsd*) machine
=vax
;;
1773 arm-
*-netbsd*) machine
=arm
;;
1780 case "${canonical}" in
1781 alpha
*-*-openbsd*) machine
=alpha
;;
1782 i386-
*-openbsd*) machine
=intel386
;;
1783 x86_64-
*-openbsd*) machine
=amdx86-64
;;
1784 m68k-
*-openbsd*) machine
=hp9000s300
;;
1785 mipsel-
*-openbsd*) machine
=pmax
;;
1786 ns32k-
*-openbsd*) machine
=ns32000
;;
1787 sparc-
*-openbsd*) machine
=sparc
;;
1788 vax-
*-openbsd*) machine
=vax
;;
1795 case "${canonical}" in
1796 i
[3456]86-*-lynxos*) machine
=intel386
;;
1797 powerpc-
*-lynxos*) machine
=powerpc
;;
1802 arm-acorn-riscix1.1
* )
1803 machine
=acorn opsys
=riscix1-1
1805 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1806 ## This name is riscix12 instead of riscix1.2
1807 ## to avoid a file name conflict on MSDOS.
1808 machine
=acorn opsys
=riscix12
1814 case "${canonical}" in
1815 i
[345]86-*-bsdi*) machine
=intel386
;;
1816 sparc-
*-bsdi*) machine
=sparc
;;
1817 powerpc-
*-bsdi*) machine
=macppc
;;
1819 case "${canonical}" in
1820 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1821 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1822 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1823 *-*-bsdi3* ) opsys
=bsdos3
;;
1824 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1829 ## Strictly speaking, we need the version of the alliant operating
1830 ## system to choose the right machine file, but currently the
1831 ## configuration name doesn't tell us enough to choose the right
1832 ## one; we need to give alliants their own operating system name to
1833 ## do this right. When someone cares, they can help us.
1835 machine
=alliant4 opsys
=bsd4-2
1838 machine
=alliant-2800 opsys
=bsd4-3
1841 ## Alpha (DEC) machines.
1843 machine
=alpha opsys
=osf1
1844 # This is needed to find X11R6.1 libraries for certain tests.
1845 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1846 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1847 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1848 # due to non-traditional preprocessing with the current compiler
1849 # defaults. OSF 4 can also have that compiler version, and there
1850 # seems always to have been a usable /usr/bin/cpp.
1851 NON_GNU_CPP
=/usr
/bin
/cpp
1852 case "${canonical}" in
1853 alpha
*-dec-osf[5-9]*)
1858 alpha
*-*-linux-gnu* )
1859 machine
=alpha opsys
=gnu-linux
1863 machine
=arm opsys
=gnu-linux
1868 machine
=altos opsys
=usg5-2
1873 machine
=amdahl opsys
=usg5-2-2
1876 ## Apollo, Domain/OS
1878 machine
=apollo opsys
=bsd4-3
1881 ## AT&T 3b2, 3b5, 3b15, 3b20
1883 machine
=att3b opsys
=usg5-2-2
1886 ## AT&T 3b1 - The Mighty Unix PC!
1888 machine
=7300 opsys
=usg5-2-2
1893 machine
=ibmrs6000 opsys
=aix3-2
1898 machine
=dpx2 opsys
=usg5-3
1903 machine
=sps7 opsys
=usg5-2
1906 ## CCI 5/32, 6/32 -- see "Tahoe".
1909 ## I don't know what configuration name to use for this; config.sub
1910 ## doesn't seem to know anything about it. Hey, Celerity users, get
1911 ## in touch with us!
1912 celerity-celerity-bsd
* )
1913 machine
=celerity opsys
=bsd4-2
1917 ## What operating systems does this chip run that Emacs has been
1921 ## We'll use the catch-all code at the bottom to guess the
1922 ## operating system.
1926 mips-compaq-nonstopux
* )
1927 machine
=nonstopux opsys
=nonstopux
1931 *-convex-bsd* |
*-convex-convexos* )
1932 machine
=convex opsys
=bsd4-3
1933 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1934 NON_GNU_CPP
="cc -E -P"
1938 i
[3456]86-cubix-sysv* )
1939 machine
=intel386 opsys
=usg5-3
1943 cydra
*-cydrome-sysv* )
1944 machine
=cydra5 opsys
=usg5-3
1947 ## Data General AViiON Machines
1948 ## DG changed naming conventions with the release of 5.4.4.10, they
1949 ## dropped the initial 5.4 but left the intervening R. Because of the
1950 ## R this shouldn't conflict with older versions of the OS (which I
1951 ## think were named like dgux4.*). In addition, DG new AViiONs series
1952 ## uses either Motorola M88k or Intel Pentium CPUs.
1953 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1954 machine
=aviion opsys
=dgux4
1956 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1957 ## This name is dgux5-4-3 instead of dgux5-4r3
1958 ## to avoid a file name conflict on MSDOS.
1959 machine
=aviion opsys
=dgux5-4-3
1961 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1962 machine
=aviion opsys
=dgux5-4r2
1965 machine
=aviion opsys
=dgux
1968 ## Data General AViiON Intel (x86) Machines
1969 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1970 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1971 i
[345]86-dg-dguxR4* )
1972 machine
=aviion-intel opsys
=dgux4
1976 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1977 machine
=pmax opsys
=bsd4-2
1979 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1980 machine
=pmax opsys
=bsd4-3
1983 machine
=pmax opsys
=ultrix4-3
1986 machine
=pmax opsys
=osf1
1988 mips-dec-mach_bsd4.3
* )
1989 machine
=pmax opsys
=mach-bsd4-3
1992 ## Motorola Delta machines
1993 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1994 machine
=delta opsys
=usg5-3
1995 if test -z "`type gnucc | grep 'not found'`"
1997 if test -s /etc
/167config
1998 then CC
="gnucc -m68040"
1999 else CC
="gnucc -m68881"
2002 if test -z "`type gcc | grep 'not found'`"
2008 m88k-motorola-sysv4
* )
2009 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2010 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2011 # I hope there are not other 4.0 versions for this machine
2012 # which really need usg5-4 instead.
2013 machine
=delta88k opsys
=usg5-4-2
2015 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
2016 machine
=delta88k opsys
=usg5-3
2021 machine
=dual opsys
=usg5-2
2023 m68
*-dual-uniplus* )
2024 machine
=dual opsys
=unipl5-2
2029 machine
=elxsi opsys
=usg5-2
2034 machine
=ns16000 opsys
=umax
2037 ## The GEC 63 - apparently, this port isn't really finished yet.
2038 # I'm sure we finished off the last of the machines, though. -- fx
2040 ## Gould Power Node and NP1
2042 machine
=gould opsys
=bsd4-2
2045 machine
=gould opsys
=bsd4-3
2048 machine
=gould-np1 opsys
=bsd4-3
2051 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2052 ## as far as Emacs is concerned).
2054 # Build needs to be different on 7.0 and later releases
2055 case "`uname -r`" in
2056 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2057 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2059 NON_GNU_CPP
="/lib/cpp"
2061 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2063 machine
=nh3000 opsys
=cxux
2065 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2066 powerpc-harris-powerunix
)
2067 machine
=nh6000 opsys
=powerunix
2068 NON_GNU_CPP
="cc -Xo -E -P"
2070 ## SR2001/SR2201 running HI-UX/MPP
2071 hppa1.1
-hitachi-hiuxmpp* )
2072 machine
=sr2k opsys
=hiuxmpp
2074 hppa1.1
-hitachi-hiuxwe2* )
2075 machine
=sr2k opsys
=hiuxwe2
2078 xps
*-honeywell-sysv* )
2079 machine
=xps100 opsys
=usg5-2
2082 ## HP 9000 series 200 or 300
2084 machine
=hp9000s300 opsys
=bsd4-3
2086 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2088 case "`uname -r`" in
2089 ## Someone's system reports A.B8.05 for this.
2090 ## I wonder what other possibilities there are.
2091 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2092 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2093 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2094 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2095 *) machine
=hp9000s300 opsys
=hpux
;;
2099 ## HP 9000 series 700 and 800, running HP/UX
2101 machine
=hp800 opsys
=hpux
2104 machine
=hp800 opsys
=hpux8
2106 hppa
*-hp-hpux9shr* )
2107 machine
=hp800 opsys
=hpux9shr
2110 machine
=hp800 opsys
=hpux9
2112 hppa
*-hp-hpux10.2
* )
2113 machine
=hp800 opsys
=hpux10-20
2116 machine
=hp800 opsys
=hpux10
2118 hppa
*-hp-hpux1[1-9]* )
2119 machine
=hp800 opsys
=hpux11
2120 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2123 hppa
*-*-linux-gnu* )
2124 machine
=hp800 opsys
=gnu-linux
2127 ## HP 9000 series 700 and 800, running HP/UX
2129 ## Cross-compilation? Nah!
2130 case "`uname -r`" in
2131 ## Someone's system reports A.B8.05 for this.
2132 ## I wonder what other possibilities there are.
2133 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2134 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2135 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2136 *) machine
=hp800 opsys
=hpux10
;;
2140 machine
=hp800 opsys
=nextstep
2145 machine
=orion opsys
=bsd4-2
2147 clipper-orion-bsd
* )
2148 machine
=orion105 opsys
=bsd4-2
2152 i
[3456]86-ibm-aix1.1
* )
2153 machine
=ibmps2-aix opsys
=usg5-2-2
2155 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2156 machine
=ibmps2-aix opsys
=usg5-3
2159 machine
=ibm370aix opsys
=usg5-3
2162 machine
=ibms390 opsys
=gnu-linux
2164 s390x-
*-linux-gnu* )
2165 machine
=ibms390x opsys
=gnu-linux
2167 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2168 machine
=ibmrs6000 opsys
=aix3-1
2170 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2171 machine
=ibmrs6000 opsys
=aix3-2-5
2173 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2174 machine
=ibmrs6000 opsys
=aix4-1
2176 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2177 machine
=ibmrs6000 opsys
=aix4-2
2179 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2180 machine
=ibmrs6000 opsys
=aix4-2
2182 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2183 machine
=ibmrs6000 opsys
=aix4
2185 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2186 machine
=ibmrs6000 opsys
=aix4-1
2188 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2189 machine
=ibmrs6000 opsys
=aix3-2
2192 machine
=ibmrt opsys
=bsd4-3
2195 machine
=ibmrt opsys
=bsd4-2
2198 machine
=ibmrt opsys
=bsd4-3
2201 machine
=ibmrt opsys
=bsd4-2
2204 machine
=ibmrt opsys
=bsd4-3
2207 machine
=ibmrt opsys
=bsd4-3
2210 machine
=ibmrt-aix opsys
=usg5-2-2
2213 ## Integrated Solutions `Optimum V'
2215 machine
=isi-ov opsys
=bsd4-2
2218 machine
=isi-ov opsys
=bsd4-3
2221 ## Intel 386 machines where we do care about the manufacturer
2222 i
[3456]86-intsys-sysv* )
2223 machine
=is386 opsys
=usg5-2-2
2227 i
[3456]86-prime-sysv* )
2228 machine
=i386 opsys
=usg5-3
2231 ## Sequent Symmetry running Dynix
2232 i
[3456]86-sequent-bsd* )
2233 machine
=symmetry opsys
=bsd4-3
2236 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2237 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2238 machine
=sequent-ptx opsys
=ptx4
2239 NON_GNU_CPP
=/lib
/cpp
2242 ## Sequent Symmetry running DYNIX/ptx
2243 ## Use the old cpp rather than the newer ANSI one.
2244 i
[3456]86-sequent-ptx* )
2245 machine
=sequent-ptx opsys
=ptx
2246 NON_GNU_CPP
="/lib/cpp"
2249 ## ncr machine running svr4.3.
2250 i
[3456]86-ncr-sysv4.3
)
2251 machine
=ncr386 opsys
=usg5-4-3
2254 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2255 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2256 i
[3456]86-ncr-sysv* )
2257 machine
=ncr386 opsys
=usg5-4-2
2260 ## Intel Paragon OSF/1
2262 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2267 machine
=i860 opsys
=usg5-4
2268 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2269 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2272 ## Macintosh PowerPC
2273 powerpc
*-*-linux-gnu* )
2274 machine
=macppc opsys
=gnu-linux
2277 ## Masscomp machines
2278 m68
*-masscomp-rtu* )
2279 machine
=masscomp opsys
=rtu
2282 ## Megatest machines
2283 m68
*-megatest-bsd* )
2284 machine
=mega68 opsys
=bsd4-2
2287 ## Workstations sold by MIPS
2288 ## This is not necessarily all workstations using the MIPS processor -
2289 ## Irises are produced by SGI, and DECstations by DEC.
2291 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2292 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2293 ## it gives for choosing between the alternatives seems to be "Use
2294 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2295 ## the BSD world." I'll assume that these are instructions for
2296 ## handling two odd situations, and that every other situation
2297 ## should use mips.h and usg5-2-2, they being listed first.
2300 ## Fall through to the general code at the bottom to decide on the OS.
2302 mips-mips-riscos4
* )
2303 machine
=mips4 opsys
=bsd4-3
2304 NON_GNU_CC
="cc -systype bsd43"
2305 NON_GNU_CPP
="cc -systype bsd43 -E"
2307 mips-mips-riscos5
* )
2308 machine
=mips4 opsys
=riscos5
2309 NON_GNU_CC
="cc -systype bsd43"
2310 NON_GNU_CPP
="cc -systype bsd43 -E"
2313 machine
=mips opsys
=bsd4-3
2316 machine
=mips opsys
=usg5-2-2
2320 m68
*-next-* | m68k-
*-nextstep* )
2321 machine
=m68k opsys
=nextstep
2324 ## The complete machine from National Semiconductor
2326 machine
=ns32000 opsys
=usg5-2
2330 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2331 machine
=tower32 opsys
=usg5-2-2
2333 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2334 machine
=tower32v3 opsys
=usg5-3
2339 machine
=ews4800 opsys
=ux4800
2342 ## Nixdorf Targon 31
2343 m68
*-nixdorf-sysv* )
2344 machine
=targon31 opsys
=usg5-2-2
2349 machine
=nu opsys
=usg5-2
2354 machine
=plexus opsys
=usg5-2
2358 ## I don't really have any idea what sort of processor the Pyramid has,
2359 ## so I'm assuming it is its own architecture.
2360 pyramid-pyramid-bsd
* )
2361 machine
=pyramid opsys
=bsd4-2
2365 ns32k-sequent-bsd4.2
* )
2366 machine
=sequent opsys
=bsd4-2
2368 ns32k-sequent-bsd4.3
* )
2369 machine
=sequent opsys
=bsd4-3
2373 mips-siemens-sysv
* | mips-sni-sysv
*)
2374 machine
=mips-siemens opsys
=usg5-4
2375 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2376 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2379 ## Silicon Graphics machines
2380 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2382 machine
=irist opsys
=iris3-5
2384 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2385 machine
=irist opsys
=iris3-6
2389 machine
=iris4d opsys
=irix3-3
2392 machine
=iris4d opsys
=irix4-0
2395 machine
=iris4d opsys
=irix6-5
2396 # Without defining _LANGUAGE_C, things get masked out in the headers
2397 # so that, for instance, grepping for `free' in stdlib.h fails and
2398 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2399 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2400 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2403 machine
=iris4d opsys
=irix6-0
2404 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2405 # but presumably it does no harm.
2406 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2407 # -32 probably isn't necessary in later v.6s -- anyone know which?
2408 NON_GCC_TEST_OPTIONS
=-32
2410 mips-sgi-irix5.
[01]* )
2411 machine
=iris4d opsys
=irix5-0
2413 mips-sgi-irix5
* | mips-sgi-irix
* )
2414 machine
=iris4d opsys
=irix5-2
2419 machine
=news opsys
=bsd4-2
2422 machine
=news opsys
=bsd4-3
2424 m68
*-sony-newsos3* | m68
*-sony-news3*)
2425 machine
=news opsys
=bsd4-3
2427 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2428 machine
=news-risc opsys
=bsd4-3
2430 mips-sony-newsos6
* )
2431 machine
=news-r6 opsys
=newsos6
2434 machine
=news-risc opsys
=newsos5
2439 machine
=stride opsys
=usg5-2
2443 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2444 machine
=sparc opsys
=gnu-linux
2447 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2448 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2449 | rs6000-
*-solaris2*)
2450 case "${canonical}" in
2451 m68
*-sunos1* ) machine
=sun1
;;
2452 m68
*-sunos2* ) machine
=sun2
;;
2453 m68
* ) machine
=sun3
;;
2454 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2455 i
[3456]86-*-* ) machine
=intel386
;;
2456 powerpcle
* ) machine
=powerpcle
;;
2457 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2458 sparc
* ) machine
=sparc
;;
2461 case "${canonical}" in
2462 ## The Sun386 didn't get past 4.0.
2463 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2464 *-sunos4.0
* ) opsys
=sunos4-0
;;
2465 *-sunos4.1.
[3-9]*noshare
)
2466 ## This name is sunos413 instead of sunos4-1-3
2467 ## to avoid a file name conflict on MSDOS.
2469 NON_GNU_CPP
=/usr
/lib
/cpp
2470 NON_GCC_TEST_OPTIONS
=-Bstatic
2471 GCC_TEST_OPTIONS
=-static
2473 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2475 NON_GNU_CPP
=/usr
/lib
/cpp
2477 *-sunos4* |
*-sunos )
2479 NON_GCC_TEST_OPTIONS
=-Bstatic
2480 GCC_TEST_OPTIONS
=-static
2482 *-sunos5.3
* |
*-solaris2.3
* )
2484 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2486 *-sunos5.4
* |
*-solaris2.4
* )
2488 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2491 *-sunos5.5
* |
*-solaris2.5
* )
2493 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2496 *-sunos5.6
* |
*-solaris2.6
* )
2498 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2501 *-sunos5* |
*-solaris* )
2503 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2507 ## Watch out for a compiler that we know will not work.
2508 case "${canonical}" in
2509 *-solaris* |
*-sunos5* )
2510 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2511 ## /usr/ucb/cc doesn't work;
2512 ## we should find some other compiler that does work.
2520 machine
=sparc opsys
=nextstep
2524 m68
*-tadpole-sysv* )
2525 machine
=tad68k opsys
=usg5-3
2529 tahoe-tahoe-bsd4.2
* )
2530 machine
=tahoe opsys
=bsd4-2
2532 tahoe-tahoe-bsd4.3
* )
2533 machine
=tahoe opsys
=bsd4-3
2536 ## Tandem Integrity S2
2538 machine
=tandem-s2 opsys
=usg5-3
2542 m88k-tektronix-sysv3
* )
2543 machine
=tekxd88 opsys
=usg5-3
2546 ## Tektronix 16000 box (6130?)
2547 ns16k-tektronix-bsd
* )
2548 machine
=ns16000 opsys
=bsd4-2
2551 ## src/m/tek4300.h hints that this is a m68k machine.
2552 m68
*-tektronix-bsd* )
2553 machine
=tek4300 opsys
=bsd4-3
2557 ## We seem to have lost the machine-description file titan.h!
2559 machine
=titan opsys
=usg5-3
2562 ## Ustation E30 (SS5E)
2563 m68
*-unisys-uniplus* )
2564 machine
=ustation opsystem
=unipl5-2
2570 case "${canonical}" in
2571 *-bsd4.1
* ) opsys
=bsd4-1
;;
2572 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2573 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2574 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2575 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2576 *-vms* ) opsys
=vms
;;
2582 ns16k-whitechapel-
* )
2584 ## We don't know what sort of OS runs on these; we'll let the
2585 ## operating system guessing code below try.
2590 machine
=wicat opsys
=usg5-2
2595 machine
=ia64 opsys
=gnu-linux
2598 ## Intel 386 machines where we don't care about the manufacturer
2601 case "${canonical}" in
2602 *-cygwin ) opsys
=cygwin
;;
2603 *-darwin* ) opsys
=darwin
2604 CPP
="${CC-cc} -E -no-cpp-precomp"
2606 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2607 *-isc2.2
* ) opsys
=isc2-2
;;
2608 *-isc4.0
* ) opsys
=isc4-0
;;
2609 *-isc4.
* ) opsys
=isc4-1
2610 GCC_TEST_OPTIONS
=-posix
2611 NON_GCC_TEST_OPTIONS
=-Xp
2613 *-isc* ) opsys
=isc3-0
;;
2614 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2615 *-esix* ) opsys
=esix
;;
2616 *-xenix* ) opsys
=xenix
;;
2617 *-linux-gnu* ) opsys
=gnu-linux
;;
2618 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2619 *-sco3.2v5
* ) opsys
=sco5
2620 NON_GNU_CPP
=/lib
/cpp
2621 # Prevent -belf from being passed to $CPP.
2622 # /lib/cpp does not accept it.
2623 OVERRIDE_CPPFLAGS
=" "
2625 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2626 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2627 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2628 *-386bsd* ) opsys
=386bsd
;;
2629 *-nextstep* ) opsys
=nextstep
;;
2630 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2634 ## m68k Linux-based GNU system
2636 machine
=m68k opsys
=gnu-linux
2639 ## Mips Linux-based GNU system
2640 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2641 machine
=mips opsys
=gnu-linux
2645 sparc-fujitsu-sysv4
* )
2646 machine
=sparc opsys
=uxpds
2647 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2652 f301-fujitsu-uxpv4.1
)
2653 machine
=f301 opsys
=uxpv
2656 ## Darwin / Mac OS X
2657 powerpc-apple-darwin
* )
2658 machine
=powermac opsys
=darwin
2659 # Define CPP as follows to make autoconf work correctly.
2660 CPP
="${CC-cc} -E -no-cpp-precomp"
2661 # Use fink packages if available.
2662 if test -d /sw
/include
&& test -d /sw
/lib
; then
2663 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2664 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2665 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2669 ## AMD x86-64 Linux-based GNU system
2670 x86_64-
*-linux-gnu* )
2671 machine
=amdx86-64 opsys
=gnu-linux
2679 ### If the code above didn't choose an operating system, just choose
2680 ### an operating system based on the configuration name. You really
2681 ### only want to use this when you have no idea what the right
2682 ### operating system is; if you know what operating systems a machine
2683 ### runs, it's cleaner to make it explicit in the case statement
2685 if test x
"${opsys}" = x
; then
2686 case "${canonical}" in
2687 *-gnu* ) opsys
=gnu
;;
2688 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2689 *-bsd4.2
) opsys
=bsd4-2
;;
2690 *-bsd4.3
) opsys
=bsd4-3
;;
2691 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2692 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2693 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2694 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2695 *-sysv4.2uw
* ) opsys
=unixware
;;
2696 *-sysv5uw* ) opsys
=unixware
;;
2697 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2698 *-sysv4.1
* |
*-sysvr4.1
* )
2699 NON_GNU_CPP
=/usr
/lib
/cpp
2701 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2702 if [ x
$NON_GNU_CPP = x
]; then
2703 if [ -f /usr
/ccs
/lib
/cpp
]; then
2704 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2706 NON_GNU_CPP
=/lib
/cpp
2710 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2719 if test $unported = yes; then
2720 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2721 Check \`etc/MACHINES' for recognized configuration names." >&5
2722 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2723 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2724 { (exit 1); exit 1; }; }
2727 machfile
="m/${machine}.h"
2728 opsysfile
="s/${opsys}.h"
2731 #### Choose a compiler.
2732 test -n "$CC" && cc_specified
=yes
2734 # Save the value of CFLAGS that the user specified.
2735 SPECIFIED_CFLAGS
="$CFLAGS"
2738 "yes" ) CC
="gcc" GCC
=yes ;;
2739 "no" ) : ${CC=cc} ;;
2743 ac_cpp
='$CPP $CPPFLAGS'
2744 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2745 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2746 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2747 if test -n "$ac_tool_prefix"; then
2748 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2749 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2750 echo "$as_me:$LINENO: checking for $ac_word" >&5
2751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2752 if test "${ac_cv_prog_CC+set}" = set; then
2753 echo $ECHO_N "(cached) $ECHO_C" >&6
2755 if test -n "$CC"; then
2756 ac_cv_prog_CC
="$CC" # Let the user override the test.
2758 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2762 test -z "$as_dir" && as_dir
=.
2763 for ac_exec_ext
in '' $ac_executable_extensions; do
2764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2765 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2775 if test -n "$CC"; then
2776 echo "$as_me:$LINENO: result: $CC" >&5
2777 echo "${ECHO_T}$CC" >&6
2779 echo "$as_me:$LINENO: result: no" >&5
2780 echo "${ECHO_T}no" >&6
2784 if test -z "$ac_cv_prog_CC"; then
2786 # Extract the first word of "gcc", so it can be a program name with args.
2787 set dummy gcc
; ac_word
=$2
2788 echo "$as_me:$LINENO: checking for $ac_word" >&5
2789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2790 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2791 echo $ECHO_N "(cached) $ECHO_C" >&6
2793 if test -n "$ac_ct_CC"; then
2794 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2796 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2800 test -z "$as_dir" && as_dir
=.
2801 for ac_exec_ext
in '' $ac_executable_extensions; do
2802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2803 ac_cv_prog_ac_ct_CC
="gcc"
2804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2812 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2813 if test -n "$ac_ct_CC"; then
2814 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2815 echo "${ECHO_T}$ac_ct_CC" >&6
2817 echo "$as_me:$LINENO: result: no" >&5
2818 echo "${ECHO_T}no" >&6
2826 if test -z "$CC"; then
2827 if test -n "$ac_tool_prefix"; then
2828 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2829 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2830 echo "$as_me:$LINENO: checking for $ac_word" >&5
2831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2832 if test "${ac_cv_prog_CC+set}" = set; then
2833 echo $ECHO_N "(cached) $ECHO_C" >&6
2835 if test -n "$CC"; then
2836 ac_cv_prog_CC
="$CC" # Let the user override the test.
2838 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2842 test -z "$as_dir" && as_dir
=.
2843 for ac_exec_ext
in '' $ac_executable_extensions; do
2844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2845 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2855 if test -n "$CC"; then
2856 echo "$as_me:$LINENO: result: $CC" >&5
2857 echo "${ECHO_T}$CC" >&6
2859 echo "$as_me:$LINENO: result: no" >&5
2860 echo "${ECHO_T}no" >&6
2864 if test -z "$ac_cv_prog_CC"; then
2866 # Extract the first word of "cc", so it can be a program name with args.
2867 set dummy cc
; ac_word
=$2
2868 echo "$as_me:$LINENO: checking for $ac_word" >&5
2869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2870 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2871 echo $ECHO_N "(cached) $ECHO_C" >&6
2873 if test -n "$ac_ct_CC"; then
2874 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2876 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2880 test -z "$as_dir" && as_dir
=.
2881 for ac_exec_ext
in '' $ac_executable_extensions; do
2882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2883 ac_cv_prog_ac_ct_CC
="cc"
2884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2892 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2893 if test -n "$ac_ct_CC"; then
2894 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2895 echo "${ECHO_T}$ac_ct_CC" >&6
2897 echo "$as_me:$LINENO: result: no" >&5
2898 echo "${ECHO_T}no" >&6
2907 if test -z "$CC"; then
2908 # Extract the first word of "cc", so it can be a program name with args.
2909 set dummy cc
; ac_word
=$2
2910 echo "$as_me:$LINENO: checking for $ac_word" >&5
2911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2912 if test "${ac_cv_prog_CC+set}" = set; then
2913 echo $ECHO_N "(cached) $ECHO_C" >&6
2915 if test -n "$CC"; then
2916 ac_cv_prog_CC
="$CC" # Let the user override the test.
2919 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2923 test -z "$as_dir" && as_dir
=.
2924 for ac_exec_ext
in '' $ac_executable_extensions; do
2925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2926 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2927 ac_prog_rejected
=yes
2931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2937 if test $ac_prog_rejected = yes; then
2938 # We found a bogon in the path, so make sure we never use it.
2939 set dummy
$ac_cv_prog_CC
2941 if test $# != 0; then
2942 # We chose a different compiler from the bogus one.
2943 # However, it has the same basename, so the bogon will be chosen
2944 # first if we set CC to just the basename; use the full file name.
2946 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2952 if test -n "$CC"; then
2953 echo "$as_me:$LINENO: result: $CC" >&5
2954 echo "${ECHO_T}$CC" >&6
2956 echo "$as_me:$LINENO: result: no" >&5
2957 echo "${ECHO_T}no" >&6
2961 if test -z "$CC"; then
2962 if test -n "$ac_tool_prefix"; then
2965 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2966 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2967 echo "$as_me:$LINENO: checking for $ac_word" >&5
2968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2969 if test "${ac_cv_prog_CC+set}" = set; then
2970 echo $ECHO_N "(cached) $ECHO_C" >&6
2972 if test -n "$CC"; then
2973 ac_cv_prog_CC
="$CC" # Let the user override the test.
2975 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2979 test -z "$as_dir" && as_dir
=.
2980 for ac_exec_ext
in '' $ac_executable_extensions; do
2981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2982 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2992 if test -n "$CC"; then
2993 echo "$as_me:$LINENO: result: $CC" >&5
2994 echo "${ECHO_T}$CC" >&6
2996 echo "$as_me:$LINENO: result: no" >&5
2997 echo "${ECHO_T}no" >&6
3000 test -n "$CC" && break
3003 if test -z "$CC"; then
3007 # Extract the first word of "$ac_prog", so it can be a program name with args.
3008 set dummy
$ac_prog; ac_word
=$2
3009 echo "$as_me:$LINENO: checking for $ac_word" >&5
3010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3011 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3012 echo $ECHO_N "(cached) $ECHO_C" >&6
3014 if test -n "$ac_ct_CC"; then
3015 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3017 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3021 test -z "$as_dir" && as_dir
=.
3022 for ac_exec_ext
in '' $ac_executable_extensions; do
3023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3024 ac_cv_prog_ac_ct_CC
="$ac_prog"
3025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3033 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3034 if test -n "$ac_ct_CC"; then
3035 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3036 echo "${ECHO_T}$ac_ct_CC" >&6
3038 echo "$as_me:$LINENO: result: no" >&5
3039 echo "${ECHO_T}no" >&6
3042 test -n "$ac_ct_CC" && break
3051 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3052 See \`config.log' for more details." >&5
3053 echo "$as_me: error: no acceptable C compiler found in \$PATH
3054 See \`config.log' for more details." >&2;}
3055 { (exit 1); exit 1; }; }
3057 # Provide some information about the compiler.
3058 echo "$as_me:$LINENO:" \
3059 "checking for C compiler version" >&5
3060 ac_compiler
=`set X $ac_compile; echo $2`
3061 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3062 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); }
3066 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3067 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); }
3071 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3072 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); }
3077 cat >conftest.
$ac_ext <<_ACEOF
3080 cat confdefs.h
>>conftest.
$ac_ext
3081 cat >>conftest.
$ac_ext <<_ACEOF
3082 /* end confdefs.h. */
3092 ac_clean_files_save
=$ac_clean_files
3093 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
3094 # Try to create an executable without -o first, disregard a.out.
3095 # It will help us diagnose broken compilers, and finding out an intuition
3097 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3098 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3099 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3100 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3101 (eval $ac_link_default) 2>&5
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; then
3105 # Find the output, starting from the most likely. This scheme is
3106 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3109 # Be careful to initialize this variable, since it used to be cached.
3110 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3112 # b.out is created by i960 compilers.
3113 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
3115 test -f "$ac_file" ||
continue
3117 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
3120 # This is the source file.
3123 # We found the default executable, but exeext='' is most
3127 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3128 # FIXME: I believe we export ac_cv_exeext for Libtool,
3129 # but it would be cool to find out if it's true. Does anybody
3130 # maintain Libtool? --akim.
3138 echo "$as_me: failed program was:" >&5
3139 sed 's/^/| /' conftest.
$ac_ext >&5
3141 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3142 See \`config.log' for more details." >&5
3143 echo "$as_me: error: C compiler cannot create executables
3144 See \`config.log' for more details." >&2;}
3145 { (exit 77); exit 77; }; }
3148 ac_exeext
=$ac_cv_exeext
3149 echo "$as_me:$LINENO: result: $ac_file" >&5
3150 echo "${ECHO_T}$ac_file" >&6
3152 # Check the compiler produces executables we can run. If not, either
3153 # the compiler is broken, or we cross compile.
3154 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3155 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3156 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3157 # If not cross compiling, check that we can run a simple program.
3158 if test "$cross_compiling" != yes; then
3159 if { ac_try
='./$ac_file'
3160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; }; then
3167 if test "$cross_compiling" = maybe
; then
3170 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3171 If you meant to cross compile, use \`--host'.
3172 See \`config.log' for more details." >&5
3173 echo "$as_me: error: cannot run C compiled programs.
3174 If you meant to cross compile, use \`--host'.
3175 See \`config.log' for more details." >&2;}
3176 { (exit 1); exit 1; }; }
3180 echo "$as_me:$LINENO: result: yes" >&5
3181 echo "${ECHO_T}yes" >&6
3183 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3184 ac_clean_files
=$ac_clean_files_save
3185 # Check the compiler produces executables we can run. If not, either
3186 # the compiler is broken, or we cross compile.
3187 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3188 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3189 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3190 echo "${ECHO_T}$cross_compiling" >&6
3192 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3193 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3195 (eval $ac_link) 2>&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); }; then
3199 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3200 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3201 # work properly (i.e., refer to `conftest.exe'), while it won't with
3203 for ac_file
in conftest.exe conftest conftest.
*; do
3204 test -f "$ac_file" ||
continue
3206 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3207 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3214 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3215 See \`config.log' for more details." >&5
3216 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3217 See \`config.log' for more details." >&2;}
3218 { (exit 1); exit 1; }; }
3221 rm -f conftest
$ac_cv_exeext
3222 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3223 echo "${ECHO_T}$ac_cv_exeext" >&6
3225 rm -f conftest.
$ac_ext
3226 EXEEXT
=$ac_cv_exeext
3228 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3229 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3230 if test "${ac_cv_objext+set}" = set; then
3231 echo $ECHO_N "(cached) $ECHO_C" >&6
3233 cat >conftest.
$ac_ext <<_ACEOF
3236 cat confdefs.h
>>conftest.
$ac_ext
3237 cat >>conftest.
$ac_ext <<_ACEOF
3238 /* end confdefs.h. */
3248 rm -f conftest.o conftest.obj
3249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3250 (eval $ac_compile) 2>&5
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); }; then
3254 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3256 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3257 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3262 echo "$as_me: failed program was:" >&5
3263 sed 's/^/| /' conftest.
$ac_ext >&5
3265 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3266 See \`config.log' for more details." >&5
3267 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3268 See \`config.log' for more details." >&2;}
3269 { (exit 1); exit 1; }; }
3272 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3274 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3275 echo "${ECHO_T}$ac_cv_objext" >&6
3276 OBJEXT
=$ac_cv_objext
3278 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3279 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3280 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
3283 cat >conftest.
$ac_ext <<_ACEOF
3286 cat confdefs.h
>>conftest.
$ac_ext
3287 cat >>conftest.
$ac_ext <<_ACEOF
3288 /* end confdefs.h. */
3301 rm -f conftest.
$ac_objext
3302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3303 (eval $ac_compile) 2>conftest.er1
3305 grep -v '^ *+' conftest.er1
>conftest.err
3307 cat conftest.err
>&5
3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); } &&
3310 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); }; } &&
3316 { ac_try
='test -s conftest.$ac_objext'
3317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); }; }; then
3324 echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.
$ac_ext >&5
3329 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3330 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3333 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3334 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3335 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3336 ac_test_CFLAGS
=${CFLAGS+set}
3337 ac_save_CFLAGS
=$CFLAGS
3339 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3340 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3341 if test "${ac_cv_prog_cc_g+set}" = set; then
3342 echo $ECHO_N "(cached) $ECHO_C" >&6
3344 cat >conftest.
$ac_ext <<_ACEOF
3347 cat confdefs.h
>>conftest.
$ac_ext
3348 cat >>conftest.
$ac_ext <<_ACEOF
3349 /* end confdefs.h. */
3359 rm -f conftest.
$ac_objext
3360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3361 (eval $ac_compile) 2>conftest.er1
3363 grep -v '^ *+' conftest.er1
>conftest.err
3365 cat conftest.err
>&5
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); } &&
3368 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); }; } &&
3374 { ac_try
='test -s conftest.$ac_objext'
3375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); }; }; then
3382 echo "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.
$ac_ext >&5
3387 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3389 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3390 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3391 if test "$ac_test_CFLAGS" = set; then
3392 CFLAGS
=$ac_save_CFLAGS
3393 elif test $ac_cv_prog_cc_g = yes; then
3394 if test "$GCC" = yes; then
3400 if test "$GCC" = yes; then
3406 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3407 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3408 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3409 echo $ECHO_N "(cached) $ECHO_C" >&6
3411 ac_cv_prog_cc_stdc
=no
3413 cat >conftest.
$ac_ext <<_ACEOF
3416 cat confdefs.h
>>conftest.
$ac_ext
3417 cat >>conftest.
$ac_ext <<_ACEOF
3418 /* end confdefs.h. */
3421 #include <sys/types.h>
3422 #include <sys/stat.h>
3423 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3424 struct buf { int x; };
3425 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3426 static char *e (p, i)
3432 static char *f (char * (*g) (char **, int), char **p, ...)
3437 s = g (p, va_arg (v,int));
3442 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3443 function prototypes and stuff, but not '\xHH' hex character constants.
3444 These don't provoke an error unfortunately, instead are silently treated
3445 as 'x'. The following induces an error, until -std1 is added to get
3446 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3447 array size at least. It's necessary to write '\x00'==0 to get something
3448 that's true only with -std1. */
3449 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3451 int test (int i, double x);
3452 struct s1 {int (*f) (int a);};
3453 struct s2 {int (*f) (double a);};
3454 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3460 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3465 # Don't try gcc -ansi; that turns off useful extensions and
3466 # breaks some systems' header files.
3467 # AIX -qlanglvl=ansi
3468 # Ultrix and OSF/1 -std1
3469 # HP-UX 10.20 and later -Ae
3470 # HP-UX older versions -Aa -D_HPUX_SOURCE
3471 # SVR4 -Xc -D__EXTENSIONS__
3472 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3474 CC
="$ac_save_CC $ac_arg"
3475 rm -f conftest.
$ac_objext
3476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3477 (eval $ac_compile) 2>conftest.er1
3479 grep -v '^ *+' conftest.er1
>conftest.err
3481 cat conftest.err
>&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } &&
3484 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); }; } &&
3490 { ac_try
='test -s conftest.$ac_objext'
3491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); }; }; then
3496 ac_cv_prog_cc_stdc
=$ac_arg
3499 echo "$as_me: failed program was:" >&5
3500 sed 's/^/| /' conftest.
$ac_ext >&5
3503 rm -f conftest.err conftest.
$ac_objext
3505 rm -f conftest.
$ac_ext conftest.
$ac_objext
3510 case "x$ac_cv_prog_cc_stdc" in
3512 echo "$as_me:$LINENO: result: none needed" >&5
3513 echo "${ECHO_T}none needed" >&6 ;;
3515 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3516 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3517 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3520 # Some people use a C++ compiler to compile C. Since we use `exit',
3521 # in C++ we need to declare it. In case someone uses the same compiler
3522 # for both compiling C and C++ we need to have the C++ compiler decide
3523 # the declaration of exit, since it's the most demanding environment.
3524 cat >conftest.
$ac_ext <<_ACEOF
3529 rm -f conftest.
$ac_objext
3530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3531 (eval $ac_compile) 2>conftest.er1
3533 grep -v '^ *+' conftest.er1
>conftest.err
3535 cat conftest.err
>&5
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); } &&
3538 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); }; } &&
3544 { ac_try
='test -s conftest.$ac_objext'
3545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); }; }; then
3550 for ac_declaration
in \
3552 'extern "C" void std::exit (int) throw (); using std::exit;' \
3553 'extern "C" void std::exit (int); using std::exit;' \
3554 'extern "C" void exit (int) throw ();' \
3555 'extern "C" void exit (int);' \
3558 cat >conftest.
$ac_ext <<_ACEOF
3561 cat confdefs.h
>>conftest.
$ac_ext
3562 cat >>conftest.
$ac_ext <<_ACEOF
3563 /* end confdefs.h. */
3574 rm -f conftest.
$ac_objext
3575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3576 (eval $ac_compile) 2>conftest.er1
3578 grep -v '^ *+' conftest.er1
>conftest.err
3580 cat conftest.err
>&5
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); } &&
3583 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); }; } &&
3589 { ac_try
='test -s conftest.$ac_objext'
3590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); }; }; then
3597 echo "$as_me: failed program was:" >&5
3598 sed 's/^/| /' conftest.
$ac_ext >&5
3602 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3603 cat >conftest.
$ac_ext <<_ACEOF
3606 cat confdefs.h
>>conftest.
$ac_ext
3607 cat >>conftest.
$ac_ext <<_ACEOF
3608 /* end confdefs.h. */
3618 rm -f conftest.
$ac_objext
3619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3620 (eval $ac_compile) 2>conftest.er1
3622 grep -v '^ *+' conftest.er1
>conftest.err
3624 cat conftest.err
>&5
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); } &&
3627 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632 (exit $ac_status); }; } &&
3633 { ac_try
='test -s conftest.$ac_objext'
3634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638 (exit $ac_status); }; }; then
3641 echo "$as_me: failed program was:" >&5
3642 sed 's/^/| /' conftest.
$ac_ext >&5
3645 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3648 if test -n "$ac_declaration"; then
3649 echo '#ifdef __cplusplus' >>confdefs.h
3650 echo $ac_declaration >>confdefs.h
3651 echo '#endif' >>confdefs.h
3655 echo "$as_me: failed program was:" >&5
3656 sed 's/^/| /' conftest.
$ac_ext >&5
3659 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3661 ac_cpp
='$CPP $CPPFLAGS'
3662 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3663 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3664 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3667 # On Suns, sometimes $CPP names a directory.
3668 if test -n "$CPP" && test -d "$CPP"; then
3672 #### Some systems specify a CPP to use unless we are using GCC.
3673 #### Now that we know whether we are using GCC, we can decide whether
3674 #### to use that one.
3675 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3680 #### Some systems specify a CC to use unless we are using GCC.
3681 #### Now that we know whether we are using GCC, we can decide whether
3682 #### to use that one.
3683 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3684 test x
$cc_specified != xyes
3689 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3691 CC
="$CC $GCC_TEST_OPTIONS"
3694 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3696 CC
="$CC $NON_GCC_TEST_OPTIONS"
3701 ac_cpp
='$CPP $CPPFLAGS'
3702 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3703 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3704 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3705 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3706 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3707 # On Suns, sometimes $CPP names a directory.
3708 if test -n "$CPP" && test -d "$CPP"; then
3711 if test -z "$CPP"; then
3712 if test "${ac_cv_prog_CPP+set}" = set; then
3713 echo $ECHO_N "(cached) $ECHO_C" >&6
3715 # Double quotes because CPP needs to be expanded
3716 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3719 for ac_c_preproc_warn_flag
in '' yes
3721 # Use a header file that comes with gcc, so configuring glibc
3722 # with a fresh cross-compiler works.
3723 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3724 # <limits.h> exists even on freestanding compilers.
3725 # On the NeXT, cc -E runs the code through the compiler's parser,
3726 # not just through cpp. "Syntax error" is here to catch this case.
3727 cat >conftest.
$ac_ext <<_ACEOF
3730 cat confdefs.h
>>conftest.
$ac_ext
3731 cat >>conftest.
$ac_ext <<_ACEOF
3732 /* end confdefs.h. */
3734 # include <limits.h>
3736 # include <assert.h>
3740 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3741 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3743 grep -v '^ *+' conftest.er1
>conftest.err
3745 cat conftest.err
>&5
3746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); } >/dev
/null
; then
3748 if test -s conftest.err
; then
3749 ac_cpp_err
=$ac_c_preproc_warn_flag
3750 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3757 if test -z "$ac_cpp_err"; then
3760 echo "$as_me: failed program was:" >&5
3761 sed 's/^/| /' conftest.
$ac_ext >&5
3763 # Broken: fails on valid input.
3766 rm -f conftest.err conftest.
$ac_ext
3768 # OK, works on sane cases. Now check whether non-existent headers
3769 # can be detected and how.
3770 cat >conftest.
$ac_ext <<_ACEOF
3773 cat confdefs.h
>>conftest.
$ac_ext
3774 cat >>conftest.
$ac_ext <<_ACEOF
3775 /* end confdefs.h. */
3776 #include <ac_nonexistent.h>
3778 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3779 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3781 grep -v '^ *+' conftest.er1
>conftest.err
3783 cat conftest.err
>&5
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); } >/dev
/null
; then
3786 if test -s conftest.err
; then
3787 ac_cpp_err
=$ac_c_preproc_warn_flag
3788 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3795 if test -z "$ac_cpp_err"; then
3796 # Broken: success on invalid input.
3799 echo "$as_me: failed program was:" >&5
3800 sed 's/^/| /' conftest.
$ac_ext >&5
3802 # Passes both tests.
3806 rm -f conftest.err conftest.
$ac_ext
3809 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3810 rm -f conftest.err conftest.
$ac_ext
3811 if $ac_preproc_ok; then
3823 echo "$as_me:$LINENO: result: $CPP" >&5
3824 echo "${ECHO_T}$CPP" >&6
3826 for ac_c_preproc_warn_flag
in '' yes
3828 # Use a header file that comes with gcc, so configuring glibc
3829 # with a fresh cross-compiler works.
3830 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3831 # <limits.h> exists even on freestanding compilers.
3832 # On the NeXT, cc -E runs the code through the compiler's parser,
3833 # not just through cpp. "Syntax error" is here to catch this case.
3834 cat >conftest.
$ac_ext <<_ACEOF
3837 cat confdefs.h
>>conftest.
$ac_ext
3838 cat >>conftest.
$ac_ext <<_ACEOF
3839 /* end confdefs.h. */
3841 # include <limits.h>
3843 # include <assert.h>
3847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3848 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3850 grep -v '^ *+' conftest.er1
>conftest.err
3852 cat conftest.err
>&5
3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); } >/dev
/null
; then
3855 if test -s conftest.err
; then
3856 ac_cpp_err
=$ac_c_preproc_warn_flag
3857 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3864 if test -z "$ac_cpp_err"; then
3867 echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.
$ac_ext >&5
3870 # Broken: fails on valid input.
3873 rm -f conftest.err conftest.
$ac_ext
3875 # OK, works on sane cases. Now check whether non-existent headers
3876 # can be detected and how.
3877 cat >conftest.
$ac_ext <<_ACEOF
3880 cat confdefs.h
>>conftest.
$ac_ext
3881 cat >>conftest.
$ac_ext <<_ACEOF
3882 /* end confdefs.h. */
3883 #include <ac_nonexistent.h>
3885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3886 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3888 grep -v '^ *+' conftest.er1
>conftest.err
3890 cat conftest.err
>&5
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); } >/dev
/null
; then
3893 if test -s conftest.err
; then
3894 ac_cpp_err
=$ac_c_preproc_warn_flag
3895 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3902 if test -z "$ac_cpp_err"; then
3903 # Broken: success on invalid input.
3906 echo "$as_me: failed program was:" >&5
3907 sed 's/^/| /' conftest.
$ac_ext >&5
3909 # Passes both tests.
3913 rm -f conftest.err conftest.
$ac_ext
3916 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3917 rm -f conftest.err conftest.
$ac_ext
3918 if $ac_preproc_ok; then
3921 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3922 See \`config.log' for more details." >&5
3923 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3924 See \`config.log' for more details." >&2;}
3925 { (exit 1); exit 1; }; }
3929 ac_cpp
='$CPP $CPPFLAGS'
3930 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3931 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3932 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3935 echo "$as_me:$LINENO: checking for egrep" >&5
3936 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3937 if test "${ac_cv_prog_egrep+set}" = set; then
3938 echo $ECHO_N "(cached) $ECHO_C" >&6
3940 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3941 then ac_cv_prog_egrep
='grep -E'
3942 else ac_cv_prog_egrep
='egrep'
3945 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3946 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3947 EGREP
=$ac_cv_prog_egrep
3951 echo "$as_me:$LINENO: checking for AIX" >&5
3952 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3953 cat >conftest.
$ac_ext <<_ACEOF
3956 cat confdefs.h
>>conftest.
$ac_ext
3957 cat >>conftest.
$ac_ext <<_ACEOF
3958 /* end confdefs.h. */
3964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3965 $EGREP "yes" >/dev
/null
2>&1; then
3966 echo "$as_me:$LINENO: result: yes" >&5
3967 echo "${ECHO_T}yes" >&6
3968 cat >>confdefs.h
<<\_ACEOF
3969 #define _ALL_SOURCE 1
3973 echo "$as_me:$LINENO: result: no" >&5
3974 echo "${ECHO_T}no" >&6
3980 cat >>confdefs.h
<<\_ACEOF
3981 #define _GNU_SOURCE 1
3986 ### Use -Wno-pointer-sign if the compiler supports it
3987 echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
3988 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6
3989 SAVE_CFLAGS
="$CFLAGS"
3990 CFLAGS
="$CFLAGS -Wno-pointer-sign"
3991 cat >conftest.
$ac_ext <<_ACEOF
3994 cat confdefs.h
>>conftest.
$ac_ext
3995 cat >>conftest.
$ac_ext <<_ACEOF
3996 /* end confdefs.h. */
4006 rm -f conftest.
$ac_objext
4007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4008 (eval $ac_compile) 2>conftest.er1
4010 grep -v '^ *+' conftest.er1
>conftest.err
4012 cat conftest.err
>&5
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); } &&
4015 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); }; } &&
4021 { ac_try
='test -s conftest.$ac_objext'
4022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); }; }; then
4029 echo "$as_me: failed program was:" >&5
4030 sed 's/^/| /' conftest.
$ac_ext >&5
4034 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4035 if test $has_option = yes; then
4036 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4038 echo "$as_me:$LINENO: result: $has_option" >&5
4039 echo "${ECHO_T}$has_option" >&6
4040 CFLAGS
="$SAVE_CFLAGS"
4044 #### Some other nice autoconf tests.
4046 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4047 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4049 if test "$LN_S" = "ln -s"; then
4050 echo "$as_me:$LINENO: result: yes" >&5
4051 echo "${ECHO_T}yes" >&6
4053 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4054 echo "${ECHO_T}no, using $LN_S" >&6
4058 ac_cpp
='$CPP $CPPFLAGS'
4059 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4060 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4061 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4062 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4063 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4064 # On Suns, sometimes $CPP names a directory.
4065 if test -n "$CPP" && test -d "$CPP"; then
4068 if test -z "$CPP"; then
4069 if test "${ac_cv_prog_CPP+set}" = set; then
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4072 # Double quotes because CPP needs to be expanded
4073 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4076 for ac_c_preproc_warn_flag
in '' yes
4078 # Use a header file that comes with gcc, so configuring glibc
4079 # with a fresh cross-compiler works.
4080 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4081 # <limits.h> exists even on freestanding compilers.
4082 # On the NeXT, cc -E runs the code through the compiler's parser,
4083 # not just through cpp. "Syntax error" is here to catch this case.
4084 cat >conftest.
$ac_ext <<_ACEOF
4087 cat confdefs.h
>>conftest.
$ac_ext
4088 cat >>conftest.
$ac_ext <<_ACEOF
4089 /* end confdefs.h. */
4091 # include <limits.h>
4093 # include <assert.h>
4097 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4098 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4100 grep -v '^ *+' conftest.er1
>conftest.err
4102 cat conftest.err
>&5
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); } >/dev
/null
; then
4105 if test -s conftest.err
; then
4106 ac_cpp_err
=$ac_c_preproc_warn_flag
4107 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4114 if test -z "$ac_cpp_err"; then
4117 echo "$as_me: failed program was:" >&5
4118 sed 's/^/| /' conftest.
$ac_ext >&5
4120 # Broken: fails on valid input.
4123 rm -f conftest.err conftest.
$ac_ext
4125 # OK, works on sane cases. Now check whether non-existent headers
4126 # can be detected and how.
4127 cat >conftest.
$ac_ext <<_ACEOF
4130 cat confdefs.h
>>conftest.
$ac_ext
4131 cat >>conftest.
$ac_ext <<_ACEOF
4132 /* end confdefs.h. */
4133 #include <ac_nonexistent.h>
4135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4136 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4138 grep -v '^ *+' conftest.er1
>conftest.err
4140 cat conftest.err
>&5
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); } >/dev
/null
; then
4143 if test -s conftest.err
; then
4144 ac_cpp_err
=$ac_c_preproc_warn_flag
4145 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4152 if test -z "$ac_cpp_err"; then
4153 # Broken: success on invalid input.
4156 echo "$as_me: failed program was:" >&5
4157 sed 's/^/| /' conftest.
$ac_ext >&5
4159 # Passes both tests.
4163 rm -f conftest.err conftest.
$ac_ext
4166 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4167 rm -f conftest.err conftest.
$ac_ext
4168 if $ac_preproc_ok; then
4180 echo "$as_me:$LINENO: result: $CPP" >&5
4181 echo "${ECHO_T}$CPP" >&6
4183 for ac_c_preproc_warn_flag
in '' yes
4185 # Use a header file that comes with gcc, so configuring glibc
4186 # with a fresh cross-compiler works.
4187 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4188 # <limits.h> exists even on freestanding compilers.
4189 # On the NeXT, cc -E runs the code through the compiler's parser,
4190 # not just through cpp. "Syntax error" is here to catch this case.
4191 cat >conftest.
$ac_ext <<_ACEOF
4194 cat confdefs.h
>>conftest.
$ac_ext
4195 cat >>conftest.
$ac_ext <<_ACEOF
4196 /* end confdefs.h. */
4198 # include <limits.h>
4200 # include <assert.h>
4204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4205 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4207 grep -v '^ *+' conftest.er1
>conftest.err
4209 cat conftest.err
>&5
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); } >/dev
/null
; then
4212 if test -s conftest.err
; then
4213 ac_cpp_err
=$ac_c_preproc_warn_flag
4214 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4221 if test -z "$ac_cpp_err"; then
4224 echo "$as_me: failed program was:" >&5
4225 sed 's/^/| /' conftest.
$ac_ext >&5
4227 # Broken: fails on valid input.
4230 rm -f conftest.err conftest.
$ac_ext
4232 # OK, works on sane cases. Now check whether non-existent headers
4233 # can be detected and how.
4234 cat >conftest.
$ac_ext <<_ACEOF
4237 cat confdefs.h
>>conftest.
$ac_ext
4238 cat >>conftest.
$ac_ext <<_ACEOF
4239 /* end confdefs.h. */
4240 #include <ac_nonexistent.h>
4242 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4243 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4245 grep -v '^ *+' conftest.er1
>conftest.err
4247 cat conftest.err
>&5
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); } >/dev
/null
; then
4250 if test -s conftest.err
; then
4251 ac_cpp_err
=$ac_c_preproc_warn_flag
4252 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4259 if test -z "$ac_cpp_err"; then
4260 # Broken: success on invalid input.
4263 echo "$as_me: failed program was:" >&5
4264 sed 's/^/| /' conftest.
$ac_ext >&5
4266 # Passes both tests.
4270 rm -f conftest.err conftest.
$ac_ext
4273 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4274 rm -f conftest.err conftest.
$ac_ext
4275 if $ac_preproc_ok; then
4278 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4279 See \`config.log' for more details." >&5
4280 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4281 See \`config.log' for more details." >&2;}
4282 { (exit 1); exit 1; }; }
4286 ac_cpp
='$CPP $CPPFLAGS'
4287 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4288 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4289 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4291 # Find a good install program. We prefer a C program (faster),
4292 # so one script is as good as another. But avoid the broken or
4293 # incompatible versions:
4294 # SysV /etc/install, /usr/sbin/install
4295 # SunOS /usr/etc/install
4296 # IRIX /sbin/install
4298 # AmigaOS /C/install, which installs bootblocks on floppy discs
4299 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4300 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4301 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4302 # OS/2's system install, which has a completely different semantic
4303 # ./install, which can be erroneously created by make from ./install.sh.
4304 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4305 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4306 if test -z "$INSTALL"; then
4307 if test "${ac_cv_path_install+set}" = set; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4310 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4314 test -z "$as_dir" && as_dir
=.
4315 # Account for people who put trailing slashes in PATH elements.
4317 .
/ | .
// |
/cC
/* | \
4318 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4319 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4322 # OSF1 and SCO ODT 3.0 have their own names for install.
4323 # Don't use installbsd from OSF since it installs stuff as root
4325 for ac_prog
in ginstall scoinst
install; do
4326 for ac_exec_ext
in '' $ac_executable_extensions; do
4327 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4328 if test $ac_prog = install &&
4329 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4330 # AIX install. It has an incompatible calling convention.
4332 elif test $ac_prog = install &&
4333 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4334 # program-specific install script used by HP pwplus--don't use.
4337 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4349 if test "${ac_cv_path_install+set}" = set; then
4350 INSTALL
=$ac_cv_path_install
4352 # As a last resort, use the slow shell script. We don't cache a
4353 # path for INSTALL within a source directory, because that will
4354 # break other packages using the cache if that directory is
4355 # removed, or if the path is relative.
4356 INSTALL
=$ac_install_sh
4359 echo "$as_me:$LINENO: result: $INSTALL" >&5
4360 echo "${ECHO_T}$INSTALL" >&6
4362 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4363 # It thinks the first close brace ends the variable substitution.
4364 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4366 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4368 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4370 if test "x$RANLIB" = x
; then
4371 if test -n "$ac_tool_prefix"; then
4372 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4373 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4374 echo "$as_me:$LINENO: checking for $ac_word" >&5
4375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4376 if test "${ac_cv_prog_RANLIB+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
4379 if test -n "$RANLIB"; then
4380 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4382 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4386 test -z "$as_dir" && as_dir
=.
4387 for ac_exec_ext
in '' $ac_executable_extensions; do
4388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4389 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4398 RANLIB
=$ac_cv_prog_RANLIB
4399 if test -n "$RANLIB"; then
4400 echo "$as_me:$LINENO: result: $RANLIB" >&5
4401 echo "${ECHO_T}$RANLIB" >&6
4403 echo "$as_me:$LINENO: result: no" >&5
4404 echo "${ECHO_T}no" >&6
4408 if test -z "$ac_cv_prog_RANLIB"; then
4409 ac_ct_RANLIB
=$RANLIB
4410 # Extract the first word of "ranlib", so it can be a program name with args.
4411 set dummy ranlib
; ac_word
=$2
4412 echo "$as_me:$LINENO: checking for $ac_word" >&5
4413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4414 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4415 echo $ECHO_N "(cached) $ECHO_C" >&6
4417 if test -n "$ac_ct_RANLIB"; then
4418 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4420 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4424 test -z "$as_dir" && as_dir
=.
4425 for ac_exec_ext
in '' $ac_executable_extensions; do
4426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4427 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4434 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4437 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4438 if test -n "$ac_ct_RANLIB"; then
4439 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4440 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4442 echo "$as_me:$LINENO: result: no" >&5
4443 echo "${ECHO_T}no" >&6
4446 RANLIB
=$ac_ct_RANLIB
4448 RANLIB
="$ac_cv_prog_RANLIB"
4452 # Extract the first word of "install-info", so it can be a program name with args.
4453 set dummy install-info
; ac_word
=$2
4454 echo "$as_me:$LINENO: checking for $ac_word" >&5
4455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4456 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4459 case $INSTALL_INFO in
4461 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4464 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4468 test -z "$as_dir" && as_dir
=.
4469 for ac_exec_ext
in '' $ac_executable_extensions; do
4470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4471 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4481 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4483 if test -n "$INSTALL_INFO"; then
4484 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4485 echo "${ECHO_T}$INSTALL_INFO" >&6
4487 echo "$as_me:$LINENO: result: no" >&5
4488 echo "${ECHO_T}no" >&6
4491 # Extract the first word of "install-info", so it can be a program name with args.
4492 set dummy install-info
; ac_word
=$2
4493 echo "$as_me:$LINENO: checking for $ac_word" >&5
4494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4495 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4498 case $INSTALL_INFO in
4500 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4503 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4504 for as_dir
in /usr
/sbin
4507 test -z "$as_dir" && as_dir
=.
4508 for ac_exec_ext
in '' $ac_executable_extensions; do
4509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4510 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4520 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4522 if test -n "$INSTALL_INFO"; then
4523 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4524 echo "${ECHO_T}$INSTALL_INFO" >&6
4526 echo "$as_me:$LINENO: result: no" >&5
4527 echo "${ECHO_T}no" >&6
4530 # Extract the first word of "install-info", so it can be a program name with args.
4531 set dummy install-info
; ac_word
=$2
4532 echo "$as_me:$LINENO: checking for $ac_word" >&5
4533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4534 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4535 echo $ECHO_N "(cached) $ECHO_C" >&6
4537 case $INSTALL_INFO in
4539 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4542 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4546 test -z "$as_dir" && as_dir
=.
4547 for ac_exec_ext
in '' $ac_executable_extensions; do
4548 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4549 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4556 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4560 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4562 if test -n "$INSTALL_INFO"; then
4563 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4564 echo "${ECHO_T}$INSTALL_INFO" >&6
4566 echo "$as_me:$LINENO: result: no" >&5
4567 echo "${ECHO_T}no" >&6
4570 # Extract the first word of "gzip", so it can be a program name with args.
4571 set dummy
gzip; ac_word
=$2
4572 echo "$as_me:$LINENO: checking for $ac_word" >&5
4573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4574 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4575 echo $ECHO_N "(cached) $ECHO_C" >&6
4579 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
4582 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4586 test -z "$as_dir" && as_dir
=.
4587 for ac_exec_ext
in '' $ac_executable_extensions; do
4588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4589 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
4590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4599 GZIP_PROG
=$ac_cv_path_GZIP_PROG
4601 if test -n "$GZIP_PROG"; then
4602 echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4603 echo "${ECHO_T}$GZIP_PROG" >&6
4605 echo "$as_me:$LINENO: result: no" >&5
4606 echo "${ECHO_T}no" >&6
4611 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4613 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4616 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4618 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4622 late_LDFLAGS
=$LDFLAGS
4623 if test "$GCC" = yes; then
4624 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
4626 LDFLAGS
="$LDFLAGS -znocombreloc"
4629 echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4630 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4631 cat >conftest.
$ac_ext <<_ACEOF
4634 rm -f conftest.
$ac_objext conftest
$ac_exeext
4635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4636 (eval $ac_link) 2>conftest.er1
4638 grep -v '^ *+' conftest.er1
>conftest.err
4640 cat conftest.err
>&5
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); } &&
4643 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); }; } &&
4649 { ac_try
='test -s conftest$ac_exeext'
4650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); }; }; then
4655 echo "$as_me:$LINENO: result: yes" >&5
4656 echo "${ECHO_T}yes" >&6
4658 echo "$as_me: failed program was:" >&5
4659 sed 's/^/| /' conftest.
$ac_ext >&5
4661 LDFLAGS
=$late_LDFLAGS
4662 echo "$as_me:$LINENO: result: no" >&5
4663 echo "${ECHO_T}no" >&6
4665 rm -f conftest.err conftest.
$ac_objext \
4666 conftest
$ac_exeext conftest.
$ac_ext
4668 #### Extract some information from the operating system and machine files.
4670 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4671 - which libraries the lib-src programs will want, and
4672 - whether the GNU malloc routines are usable..." >&5
4673 echo "$as_me: checking the machine- and system-dependent files to find out
4674 - which libraries the lib-src programs will want, and
4675 - whether the GNU malloc routines are usable..." >&6;}
4677 ### First figure out CFLAGS (which we use for running the compiler here)
4678 ### and REAL_CFLAGS (which we use for real compilation).
4679 ### The two are the same except on a few systems, where they are made
4680 ### different to work around various lossages. For example,
4681 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4682 ### as implying static linking.
4684 ### If the CFLAGS env var is specified, we use that value
4685 ### instead of the default.
4687 ### It's not important that this name contain the PID; you can't run
4688 ### two configures in the same directory and have anything work
4690 tempcname
="conftest.c"
4693 #include "'${srcdir}'/src/'${opsysfile}'"
4694 #include "'${srcdir}'/src/'${machfile}'"
4695 #ifndef LIBS_MACHINE
4696 #define LIBS_MACHINE
4701 #ifndef C_SWITCH_SYSTEM
4702 #define C_SWITCH_SYSTEM
4704 #ifndef C_SWITCH_MACHINE
4705 #define C_SWITCH_MACHINE
4707 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4708 configure___ c_switch_system=C_SWITCH_SYSTEM
4709 configure___ c_switch_machine=C_SWITCH_MACHINE
4712 #define LIB_X11_LIB -lX11
4715 #ifndef LIBX11_MACHINE
4716 #define LIBX11_MACHINE
4719 #ifndef LIBX11_SYSTEM
4720 #define LIBX11_SYSTEM
4722 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4725 configure___ unexec=UNEXEC
4727 configure___ unexec=unexec.o
4730 #ifdef SYSTEM_MALLOC
4731 configure___ system_malloc=yes
4733 configure___ system_malloc=no
4736 #ifdef USE_MMAP_FOR_BUFFERS
4737 configure___ use_mmap_for_buffers=yes
4739 configure___ use_mmap_for_buffers=no
4742 #ifndef C_DEBUG_SWITCH
4743 #define C_DEBUG_SWITCH -g
4746 #ifndef C_OPTIMIZE_SWITCH
4748 #define C_OPTIMIZE_SWITCH -O2
4750 #define C_OPTIMIZE_SWITCH -O
4754 #ifndef C_WARNINGS_SWITCH
4755 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
4758 #ifndef LD_SWITCH_MACHINE
4759 #define LD_SWITCH_MACHINE
4762 #ifndef LD_SWITCH_SYSTEM
4763 #define LD_SWITCH_SYSTEM
4766 #ifndef LD_SWITCH_X_SITE_AUX
4767 #define LD_SWITCH_X_SITE_AUX
4770 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4771 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4773 #ifdef THIS_IS_CONFIGURE
4775 /* Get the CFLAGS for tests in configure. */
4777 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4779 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4782 #else /* not THIS_IS_CONFIGURE */
4784 /* Get the CFLAGS for real compilation. */
4786 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
4788 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4791 #endif /* not THIS_IS_CONFIGURE */
4794 # The value of CPP is a quoted variable reference, so we need to do this
4795 # to get its actual value...
4796 CPP
=`eval "echo $CPP"`
4797 eval `${CPP} -Isrc ${tempcname} \
4798 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4799 if test "x$SPECIFIED_CFLAGS" = x
; then
4800 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4801 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4803 REAL_CFLAGS
="$CFLAGS"
4807 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4809 ### Make sure subsequent tests use flags consistent with the build flags.
4811 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4812 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4814 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4819 # Check whether --enable-largefile or --disable-largefile was given.
4820 if test "${enable_largefile+set}" = set; then
4821 enableval
="$enable_largefile"
4824 if test "$enable_largefile" != no
; then
4826 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4827 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4828 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4829 echo $ECHO_N "(cached) $ECHO_C" >&6
4831 ac_cv_sys_largefile_CC
=no
4832 if test "$GCC" != yes; then
4835 # IRIX 6.2 and later do not support large files by default,
4836 # so use the C compiler's -n32 option if that helps.
4837 cat >conftest.
$ac_ext <<_ACEOF
4840 cat confdefs.h
>>conftest.
$ac_ext
4841 cat >>conftest.
$ac_ext <<_ACEOF
4842 /* end confdefs.h. */
4843 #include <sys/types.h>
4844 /* Check that off_t can represent 2**63 - 1 correctly.
4845 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4846 since some C++ compilers masquerading as C compilers
4847 incorrectly reject 9223372036854775807. */
4848 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4849 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4850 && LARGE_OFF_T % 2147483647 == 1)
4860 rm -f conftest.
$ac_objext
4861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4862 (eval $ac_compile) 2>conftest.er1
4864 grep -v '^ *+' conftest.er1
>conftest.err
4866 cat conftest.err
>&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); } &&
4869 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); }; } &&
4875 { ac_try
='test -s conftest.$ac_objext'
4876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); }; }; then
4883 echo "$as_me: failed program was:" >&5
4884 sed 's/^/| /' conftest.
$ac_ext >&5
4887 rm -f conftest.err conftest.
$ac_objext
4889 rm -f conftest.
$ac_objext
4890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4891 (eval $ac_compile) 2>conftest.er1
4893 grep -v '^ *+' conftest.er1
>conftest.err
4895 cat conftest.err
>&5
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); } &&
4898 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; } &&
4904 { ac_try
='test -s conftest.$ac_objext'
4905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); }; }; then
4910 ac_cv_sys_largefile_CC
=' -n32'; break
4912 echo "$as_me: failed program was:" >&5
4913 sed 's/^/| /' conftest.
$ac_ext >&5
4916 rm -f conftest.err conftest.
$ac_objext
4920 rm -f conftest.
$ac_ext
4923 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4924 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4925 if test "$ac_cv_sys_largefile_CC" != no
; then
4926 CC
=$CC$ac_cv_sys_largefile_CC
4929 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4930 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4931 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4932 echo $ECHO_N "(cached) $ECHO_C" >&6
4935 ac_cv_sys_file_offset_bits
=no
4936 cat >conftest.
$ac_ext <<_ACEOF
4939 cat confdefs.h
>>conftest.
$ac_ext
4940 cat >>conftest.
$ac_ext <<_ACEOF
4941 /* end confdefs.h. */
4942 #include <sys/types.h>
4943 /* Check that off_t can represent 2**63 - 1 correctly.
4944 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4945 since some C++ compilers masquerading as C compilers
4946 incorrectly reject 9223372036854775807. */
4947 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4948 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4949 && LARGE_OFF_T % 2147483647 == 1)
4959 rm -f conftest.
$ac_objext
4960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4961 (eval $ac_compile) 2>conftest.er1
4963 grep -v '^ *+' conftest.er1
>conftest.err
4965 cat conftest.err
>&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); } &&
4968 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); }; } &&
4974 { ac_try
='test -s conftest.$ac_objext'
4975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); }; }; then
4982 echo "$as_me: failed program was:" >&5
4983 sed 's/^/| /' conftest.
$ac_ext >&5
4986 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4987 cat >conftest.
$ac_ext <<_ACEOF
4990 cat confdefs.h
>>conftest.
$ac_ext
4991 cat >>conftest.
$ac_ext <<_ACEOF
4992 /* end confdefs.h. */
4993 #define _FILE_OFFSET_BITS 64
4994 #include <sys/types.h>
4995 /* Check that off_t can represent 2**63 - 1 correctly.
4996 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4997 since some C++ compilers masquerading as C compilers
4998 incorrectly reject 9223372036854775807. */
4999 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5000 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5001 && LARGE_OFF_T % 2147483647 == 1)
5011 rm -f conftest.
$ac_objext
5012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5013 (eval $ac_compile) 2>conftest.er1
5015 grep -v '^ *+' conftest.er1
>conftest.err
5017 cat conftest.err
>&5
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); } &&
5020 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); }; } &&
5026 { ac_try
='test -s conftest.$ac_objext'
5027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); }; }; then
5032 ac_cv_sys_file_offset_bits
=64; break
5034 echo "$as_me: failed program was:" >&5
5035 sed 's/^/| /' conftest.
$ac_ext >&5
5038 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5042 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5043 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5044 if test "$ac_cv_sys_file_offset_bits" != no
; then
5046 cat >>confdefs.h
<<_ACEOF
5047 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5052 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5053 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5054 if test "${ac_cv_sys_large_files+set}" = set; then
5055 echo $ECHO_N "(cached) $ECHO_C" >&6
5058 ac_cv_sys_large_files
=no
5059 cat >conftest.
$ac_ext <<_ACEOF
5062 cat confdefs.h
>>conftest.
$ac_ext
5063 cat >>conftest.
$ac_ext <<_ACEOF
5064 /* end confdefs.h. */
5065 #include <sys/types.h>
5066 /* Check that off_t can represent 2**63 - 1 correctly.
5067 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5068 since some C++ compilers masquerading as C compilers
5069 incorrectly reject 9223372036854775807. */
5070 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5071 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5072 && LARGE_OFF_T % 2147483647 == 1)
5082 rm -f conftest.
$ac_objext
5083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5084 (eval $ac_compile) 2>conftest.er1
5086 grep -v '^ *+' conftest.er1
>conftest.err
5088 cat conftest.err
>&5
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); } &&
5091 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); }; } &&
5097 { ac_try
='test -s conftest.$ac_objext'
5098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); }; }; then
5105 echo "$as_me: failed program was:" >&5
5106 sed 's/^/| /' conftest.
$ac_ext >&5
5109 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5110 cat >conftest.
$ac_ext <<_ACEOF
5113 cat confdefs.h
>>conftest.
$ac_ext
5114 cat >>conftest.
$ac_ext <<_ACEOF
5115 /* end confdefs.h. */
5116 #define _LARGE_FILES 1
5117 #include <sys/types.h>
5118 /* Check that off_t can represent 2**63 - 1 correctly.
5119 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5120 since some C++ compilers masquerading as C compilers
5121 incorrectly reject 9223372036854775807. */
5122 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5123 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5124 && LARGE_OFF_T % 2147483647 == 1)
5134 rm -f conftest.
$ac_objext
5135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5136 (eval $ac_compile) 2>conftest.er1
5138 grep -v '^ *+' conftest.er1
>conftest.err
5140 cat conftest.err
>&5
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); } &&
5143 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); }; } &&
5149 { ac_try
='test -s conftest.$ac_objext'
5150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154 (exit $ac_status); }; }; then
5155 ac_cv_sys_large_files
=1; break
5157 echo "$as_me: failed program was:" >&5
5158 sed 's/^/| /' conftest.
$ac_ext >&5
5161 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5165 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5166 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5167 if test "$ac_cv_sys_large_files" != no
; then
5169 cat >>confdefs.h
<<_ACEOF
5170 #define _LARGE_FILES $ac_cv_sys_large_files
5182 if test "${with_sound}" != "no"; then
5183 # Sound support for GNU/Linux and the free BSDs.
5184 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5185 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5186 if test "${ac_cv_header_stdc+set}" = set; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5189 cat >conftest.
$ac_ext <<_ACEOF
5192 cat confdefs.h
>>conftest.
$ac_ext
5193 cat >>conftest.
$ac_ext <<_ACEOF
5194 /* end confdefs.h. */
5208 rm -f conftest.
$ac_objext
5209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5210 (eval $ac_compile) 2>conftest.er1
5212 grep -v '^ *+' conftest.er1
>conftest.err
5214 cat conftest.err
>&5
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); } &&
5217 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); }; } &&
5223 { ac_try
='test -s conftest.$ac_objext'
5224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); }; }; then
5229 ac_cv_header_stdc
=yes
5231 echo "$as_me: failed program was:" >&5
5232 sed 's/^/| /' conftest.
$ac_ext >&5
5234 ac_cv_header_stdc
=no
5236 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5238 if test $ac_cv_header_stdc = yes; then
5239 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5240 cat >conftest.
$ac_ext <<_ACEOF
5243 cat confdefs.h
>>conftest.
$ac_ext
5244 cat >>conftest.
$ac_ext <<_ACEOF
5245 /* end confdefs.h. */
5249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5250 $EGREP "memchr" >/dev
/null
2>&1; then
5253 ac_cv_header_stdc
=no
5259 if test $ac_cv_header_stdc = yes; then
5260 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5261 cat >conftest.
$ac_ext <<_ACEOF
5264 cat confdefs.h
>>conftest.
$ac_ext
5265 cat >>conftest.
$ac_ext <<_ACEOF
5266 /* end confdefs.h. */
5270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5271 $EGREP "free" >/dev
/null
2>&1; then
5274 ac_cv_header_stdc
=no
5280 if test $ac_cv_header_stdc = yes; then
5281 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5282 if test "$cross_compiling" = yes; then
5285 cat >conftest.
$ac_ext <<_ACEOF
5288 cat confdefs.h
>>conftest.
$ac_ext
5289 cat >>conftest.
$ac_ext <<_ACEOF
5290 /* end confdefs.h. */
5292 #if ((' ' & 0x0FF) == 0x020)
5293 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5294 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5296 # define ISLOWER(c) \
5297 (('a' <= (c) && (c) <= 'i') \
5298 || ('j' <= (c) && (c) <= 'r') \
5299 || ('s' <= (c) && (c) <= 'z'))
5300 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5303 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5308 for (i = 0; i < 256; i++)
5309 if (XOR (islower (i), ISLOWER (i))
5310 || toupper (i) != TOUPPER (i))
5315 rm -f conftest
$ac_exeext
5316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5317 (eval $ac_link) 2>&5
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); }; }; then
5328 echo "$as_me: program exited with status $ac_status" >&5
5329 echo "$as_me: failed program was:" >&5
5330 sed 's/^/| /' conftest.
$ac_ext >&5
5333 ac_cv_header_stdc
=no
5335 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5339 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5340 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5341 if test $ac_cv_header_stdc = yes; then
5343 cat >>confdefs.h
<<\_ACEOF
5344 #define STDC_HEADERS 1
5349 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5359 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5360 inttypes.h stdint.h unistd.h
5362 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5363 echo "$as_me:$LINENO: checking for $ac_header" >&5
5364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5366 echo $ECHO_N "(cached) $ECHO_C" >&6
5368 cat >conftest.
$ac_ext <<_ACEOF
5371 cat confdefs.h
>>conftest.
$ac_ext
5372 cat >>conftest.
$ac_ext <<_ACEOF
5373 /* end confdefs.h. */
5374 $ac_includes_default
5376 #include <$ac_header>
5378 rm -f conftest.
$ac_objext
5379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5380 (eval $ac_compile) 2>conftest.er1
5382 grep -v '^ *+' conftest.er1
>conftest.err
5384 cat conftest.err
>&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); } &&
5387 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); }; } &&
5393 { ac_try
='test -s conftest.$ac_objext'
5394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); }; }; then
5399 eval "$as_ac_Header=yes"
5401 echo "$as_me: failed program was:" >&5
5402 sed 's/^/| /' conftest.
$ac_ext >&5
5404 eval "$as_ac_Header=no"
5406 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5409 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5411 cat >>confdefs.h
<<_ACEOF
5412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5423 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5425 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5427 echo "$as_me:$LINENO: checking for $ac_header" >&5
5428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5433 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5435 # Is the header compilable?
5436 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5437 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5438 cat >conftest.
$ac_ext <<_ACEOF
5441 cat confdefs.h
>>conftest.
$ac_ext
5442 cat >>conftest.
$ac_ext <<_ACEOF
5443 /* end confdefs.h. */
5444 $ac_includes_default
5445 #include <$ac_header>
5447 rm -f conftest.
$ac_objext
5448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5449 (eval $ac_compile) 2>conftest.er1
5451 grep -v '^ *+' conftest.er1
>conftest.err
5453 cat conftest.err
>&5
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); } &&
5456 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); }; } &&
5462 { ac_try
='test -s conftest.$ac_objext'
5463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); }; }; then
5468 ac_header_compiler
=yes
5470 echo "$as_me: failed program was:" >&5
5471 sed 's/^/| /' conftest.
$ac_ext >&5
5473 ac_header_compiler
=no
5475 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5476 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5477 echo "${ECHO_T}$ac_header_compiler" >&6
5479 # Is the header present?
5480 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5481 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5482 cat >conftest.
$ac_ext <<_ACEOF
5485 cat confdefs.h
>>conftest.
$ac_ext
5486 cat >>conftest.
$ac_ext <<_ACEOF
5487 /* end confdefs.h. */
5488 #include <$ac_header>
5490 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5491 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5493 grep -v '^ *+' conftest.er1
>conftest.err
5495 cat conftest.err
>&5
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); } >/dev
/null
; then
5498 if test -s conftest.err
; then
5499 ac_cpp_err
=$ac_c_preproc_warn_flag
5500 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5507 if test -z "$ac_cpp_err"; then
5508 ac_header_preproc
=yes
5510 echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.
$ac_ext >&5
5513 ac_header_preproc
=no
5515 rm -f conftest.err conftest.
$ac_ext
5516 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5517 echo "${ECHO_T}$ac_header_preproc" >&6
5519 # So? What about this header?
5520 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5522 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5523 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5525 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5526 ac_header_preproc
=yes
5529 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5530 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5531 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5532 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5533 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5534 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5535 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5536 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5537 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5538 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5539 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5540 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5543 ## ------------------------------------------ ##
5544 ## Report this to the AC_PACKAGE_NAME lists. ##
5545 ## ------------------------------------------ ##
5548 sed "s/^/$as_me: WARNING: /" >&2
5551 echo "$as_me:$LINENO: checking for $ac_header" >&5
5552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5553 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5554 echo $ECHO_N "(cached) $ECHO_C" >&6
5556 eval "$as_ac_Header=\$ac_header_preproc"
5558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5562 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5563 cat >>confdefs.h
<<_ACEOF
5564 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5571 # Emulation library used on NetBSD.
5572 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5573 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5574 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5575 echo $ECHO_N "(cached) $ECHO_C" >&6
5577 ac_check_lib_save_LIBS
=$LIBS
5578 LIBS
="-lossaudio $LIBS"
5579 cat >conftest.
$ac_ext <<_ACEOF
5582 cat confdefs.h
>>conftest.
$ac_ext
5583 cat >>conftest.
$ac_ext <<_ACEOF
5584 /* end confdefs.h. */
5586 /* Override any gcc2 internal prototype to avoid an error. */
5590 /* We use char because int might match the return type of a gcc2
5591 builtin and then its argument prototype would still apply. */
5601 rm -f conftest.
$ac_objext conftest
$ac_exeext
5602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5603 (eval $ac_link) 2>conftest.er1
5605 grep -v '^ *+' conftest.er1
>conftest.err
5607 cat conftest.err
>&5
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); } &&
5610 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }; } &&
5616 { ac_try
='test -s conftest$ac_exeext'
5617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); }; }; then
5622 ac_cv_lib_ossaudio__oss_ioctl
=yes
5624 echo "$as_me: failed program was:" >&5
5625 sed 's/^/| /' conftest.
$ac_ext >&5
5627 ac_cv_lib_ossaudio__oss_ioctl
=no
5629 rm -f conftest.err conftest.
$ac_objext \
5630 conftest
$ac_exeext conftest.
$ac_ext
5631 LIBS
=$ac_check_lib_save_LIBS
5633 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5634 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5635 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5644 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
5645 if test "X${with_pkg_config_prog}" != X
; then
5646 PKG_CONFIG
="${with_pkg_config_prog}"
5651 if test -z "$PKG_CONFIG"; then
5652 # Extract the first word of "pkg-config", so it can be a program name with args.
5653 set dummy pkg-config
; ac_word
=$2
5654 echo "$as_me:$LINENO: checking for $ac_word" >&5
5655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5656 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5657 echo $ECHO_N "(cached) $ECHO_C" >&6
5661 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
5664 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5668 test -z "$as_dir" && as_dir
=.
5669 for ac_exec_ext
in '' $ac_executable_extensions; do
5670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5671 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5678 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
5682 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
5684 if test -n "$PKG_CONFIG"; then
5685 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5686 echo "${ECHO_T}$PKG_CONFIG" >&6
5688 echo "$as_me:$LINENO: result: no" >&5
5689 echo "${ECHO_T}no" >&6
5694 if test "$PKG_CONFIG" = "no" ; then
5697 PKG_CONFIG_MIN_VERSION
=0.9.0
5698 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5699 echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
5700 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6
5702 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
5703 echo "$as_me:$LINENO: result: yes" >&5
5704 echo "${ECHO_T}yes" >&6
5707 echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
5708 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6
5709 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"`
5710 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
5711 echo "${ECHO_T}$ALSA_CFLAGS" >&6
5713 echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
5714 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6
5715 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"`
5716 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
5717 echo "${ECHO_T}$ALSA_LIBS" >&6
5719 echo "$as_me:$LINENO: result: no" >&5
5720 echo "${ECHO_T}no" >&6
5723 ## If we have a custom action on failure, don't print errors, but
5724 ## do set a variable so people can do so.
5725 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
5732 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
5733 echo "*** See http://www.freedesktop.org/software/pkgconfig"
5737 if test $succeeded = yes; then
5743 if test $HAVE_ALSA = yes; then
5744 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
5745 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
5747 cat >>confdefs.h
<<\_ACEOF
5780 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5781 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5782 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5783 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
5786 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5788 echo "$as_me:$LINENO: checking for $ac_header" >&5
5789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5791 echo $ECHO_N "(cached) $ECHO_C" >&6
5793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5796 # Is the header compilable?
5797 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5798 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5799 cat >conftest.
$ac_ext <<_ACEOF
5802 cat confdefs.h
>>conftest.
$ac_ext
5803 cat >>conftest.
$ac_ext <<_ACEOF
5804 /* end confdefs.h. */
5805 $ac_includes_default
5806 #include <$ac_header>
5808 rm -f conftest.
$ac_objext
5809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5810 (eval $ac_compile) 2>conftest.er1
5812 grep -v '^ *+' conftest.er1
>conftest.err
5814 cat conftest.err
>&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); } &&
5817 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); }; } &&
5823 { ac_try
='test -s conftest.$ac_objext'
5824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); }; }; then
5829 ac_header_compiler
=yes
5831 echo "$as_me: failed program was:" >&5
5832 sed 's/^/| /' conftest.
$ac_ext >&5
5834 ac_header_compiler
=no
5836 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5837 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5838 echo "${ECHO_T}$ac_header_compiler" >&6
5840 # Is the header present?
5841 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5842 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5843 cat >conftest.
$ac_ext <<_ACEOF
5846 cat confdefs.h
>>conftest.
$ac_ext
5847 cat >>conftest.
$ac_ext <<_ACEOF
5848 /* end confdefs.h. */
5849 #include <$ac_header>
5851 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5852 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5854 grep -v '^ *+' conftest.er1
>conftest.err
5856 cat conftest.err
>&5
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); } >/dev
/null
; then
5859 if test -s conftest.err
; then
5860 ac_cpp_err
=$ac_c_preproc_warn_flag
5861 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5868 if test -z "$ac_cpp_err"; then
5869 ac_header_preproc
=yes
5871 echo "$as_me: failed program was:" >&5
5872 sed 's/^/| /' conftest.
$ac_ext >&5
5874 ac_header_preproc
=no
5876 rm -f conftest.err conftest.
$ac_ext
5877 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5878 echo "${ECHO_T}$ac_header_preproc" >&6
5880 # So? What about this header?
5881 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5883 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5884 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5886 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5887 ac_header_preproc
=yes
5890 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5891 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5892 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5893 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5894 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5895 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5896 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5897 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5899 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5900 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5901 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5904 ## ------------------------------------------ ##
5905 ## Report this to the AC_PACKAGE_NAME lists. ##
5906 ## ------------------------------------------ ##
5909 sed "s/^/$as_me: WARNING: /" >&2
5912 echo "$as_me:$LINENO: checking for $ac_header" >&5
5913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5915 echo $ECHO_N "(cached) $ECHO_C" >&6
5917 eval "$as_ac_Header=\$ac_header_preproc"
5919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5920 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5923 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5924 cat >>confdefs.h
<<_ACEOF
5925 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5933 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5934 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5935 cat >conftest.
$ac_ext <<_ACEOF
5938 cat confdefs.h
>>conftest.
$ac_ext
5939 cat >>conftest.
$ac_ext <<_ACEOF
5940 /* end confdefs.h. */
5941 #include <sys/personality.h>
5945 personality (PER_LINUX32)
5950 rm -f conftest.
$ac_objext
5951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5952 (eval $ac_compile) 2>conftest.er1
5954 grep -v '^ *+' conftest.er1
>conftest.err
5956 cat conftest.err
>&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); } &&
5959 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); }; } &&
5965 { ac_try
='test -s conftest.$ac_objext'
5966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); }; }; then
5971 emacs_cv_personality_linux32
=yes
5973 echo "$as_me: failed program was:" >&5
5974 sed 's/^/| /' conftest.
$ac_ext >&5
5976 emacs_cv_personality_linux32
=no
5978 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5979 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5980 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5982 if test $emacs_cv_personality_linux32 = yes; then
5984 cat >>confdefs.h
<<\_ACEOF
5985 #define HAVE_PERSONALITY_LINUX32 1
5991 for ac_header
in term.h
5993 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5994 echo "$as_me:$LINENO: checking for $ac_header" >&5
5995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5997 echo $ECHO_N "(cached) $ECHO_C" >&6
5999 cat >conftest.
$ac_ext <<_ACEOF
6002 cat confdefs.h
>>conftest.
$ac_ext
6003 cat >>conftest.
$ac_ext <<_ACEOF
6004 /* end confdefs.h. */
6005 #include <$ac_header>
6007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6008 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6010 grep -v '^ *+' conftest.er1
>conftest.err
6012 cat conftest.err
>&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); } >/dev
/null
; then
6015 if test -s conftest.err
; then
6016 ac_cpp_err
=$ac_c_preproc_warn_flag
6017 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6024 if test -z "$ac_cpp_err"; then
6025 eval "$as_ac_Header=yes"
6027 echo "$as_me: failed program was:" >&5
6028 sed 's/^/| /' conftest.
$ac_ext >&5
6030 eval "$as_ac_Header=no"
6032 rm -f conftest.err conftest.
$ac_ext
6034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6036 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6037 cat >>confdefs.h
<<_ACEOF
6038 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6045 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6046 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6047 if test "${ac_cv_header_stdc+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6050 cat >conftest.
$ac_ext <<_ACEOF
6053 cat confdefs.h
>>conftest.
$ac_ext
6054 cat >>conftest.
$ac_ext <<_ACEOF
6055 /* end confdefs.h. */
6069 rm -f conftest.
$ac_objext
6070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6071 (eval $ac_compile) 2>conftest.er1
6073 grep -v '^ *+' conftest.er1
>conftest.err
6075 cat conftest.err
>&5
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); } &&
6078 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); }; } &&
6084 { ac_try
='test -s conftest.$ac_objext'
6085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); }; }; then
6090 ac_cv_header_stdc
=yes
6092 echo "$as_me: failed program was:" >&5
6093 sed 's/^/| /' conftest.
$ac_ext >&5
6095 ac_cv_header_stdc
=no
6097 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6099 if test $ac_cv_header_stdc = yes; then
6100 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6101 cat >conftest.
$ac_ext <<_ACEOF
6104 cat confdefs.h
>>conftest.
$ac_ext
6105 cat >>conftest.
$ac_ext <<_ACEOF
6106 /* end confdefs.h. */
6110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6111 $EGREP "memchr" >/dev
/null
2>&1; then
6114 ac_cv_header_stdc
=no
6120 if test $ac_cv_header_stdc = yes; then
6121 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6122 cat >conftest.
$ac_ext <<_ACEOF
6125 cat confdefs.h
>>conftest.
$ac_ext
6126 cat >>conftest.
$ac_ext <<_ACEOF
6127 /* end confdefs.h. */
6131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6132 $EGREP "free" >/dev
/null
2>&1; then
6135 ac_cv_header_stdc
=no
6141 if test $ac_cv_header_stdc = yes; then
6142 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6143 if test "$cross_compiling" = yes; then
6146 cat >conftest.
$ac_ext <<_ACEOF
6149 cat confdefs.h
>>conftest.
$ac_ext
6150 cat >>conftest.
$ac_ext <<_ACEOF
6151 /* end confdefs.h. */
6153 #if ((' ' & 0x0FF) == 0x020)
6154 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6155 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6157 # define ISLOWER(c) \
6158 (('a' <= (c) && (c) <= 'i') \
6159 || ('j' <= (c) && (c) <= 'r') \
6160 || ('s' <= (c) && (c) <= 'z'))
6161 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6164 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6169 for (i = 0; i < 256; i++)
6170 if (XOR (islower (i), ISLOWER (i))
6171 || toupper (i) != TOUPPER (i))
6176 rm -f conftest
$ac_exeext
6177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6178 (eval $ac_link) 2>&5
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); }; }; then
6189 echo "$as_me: program exited with status $ac_status" >&5
6190 echo "$as_me: failed program was:" >&5
6191 sed 's/^/| /' conftest.
$ac_ext >&5
6194 ac_cv_header_stdc
=no
6196 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6200 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6201 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6202 if test $ac_cv_header_stdc = yes; then
6204 cat >>confdefs.h
<<\_ACEOF
6205 #define STDC_HEADERS 1
6210 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6211 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6212 if test "${ac_cv_header_time+set}" = set; then
6213 echo $ECHO_N "(cached) $ECHO_C" >&6
6215 cat >conftest.
$ac_ext <<_ACEOF
6218 cat confdefs.h
>>conftest.
$ac_ext
6219 cat >>conftest.
$ac_ext <<_ACEOF
6220 /* end confdefs.h. */
6221 #include <sys/types.h>
6222 #include <sys/time.h>
6228 if ((struct tm *) 0)
6234 rm -f conftest.
$ac_objext
6235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6236 (eval $ac_compile) 2>conftest.er1
6238 grep -v '^ *+' conftest.er1
>conftest.err
6240 cat conftest.err
>&5
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); } &&
6243 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248 (exit $ac_status); }; } &&
6249 { ac_try
='test -s conftest.$ac_objext'
6250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); }; }; then
6255 ac_cv_header_time
=yes
6257 echo "$as_me: failed program was:" >&5
6258 sed 's/^/| /' conftest.
$ac_ext >&5
6260 ac_cv_header_time
=no
6262 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6264 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6265 echo "${ECHO_T}$ac_cv_header_time" >&6
6266 if test $ac_cv_header_time = yes; then
6268 cat >>confdefs.h
<<\_ACEOF
6269 #define TIME_WITH_SYS_TIME 1
6274 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6275 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
6276 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6277 echo $ECHO_N "(cached) $ECHO_C" >&6
6279 cat >conftest.
$ac_ext <<_ACEOF
6282 cat confdefs.h
>>conftest.
$ac_ext
6283 cat >>conftest.
$ac_ext <<_ACEOF
6284 /* end confdefs.h. */
6285 $ac_includes_default
6290 char *p = (char *) sys_siglist;
6297 rm -f conftest.
$ac_objext
6298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6299 (eval $ac_compile) 2>conftest.er1
6301 grep -v '^ *+' conftest.er1
>conftest.err
6303 cat conftest.err
>&5
6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); } &&
6306 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); }; } &&
6312 { ac_try
='test -s conftest.$ac_objext'
6313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); }; }; then
6318 ac_cv_have_decl_sys_siglist
=yes
6320 echo "$as_me: failed program was:" >&5
6321 sed 's/^/| /' conftest.
$ac_ext >&5
6323 ac_cv_have_decl_sys_siglist
=no
6325 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6327 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6328 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
6329 if test $ac_cv_have_decl_sys_siglist = yes; then
6331 cat >>confdefs.h
<<_ACEOF
6332 #define HAVE_DECL_SYS_SIGLIST 1
6337 cat >>confdefs.h
<<_ACEOF
6338 #define HAVE_DECL_SYS_SIGLIST 0
6345 if test $ac_cv_have_decl_sys_siglist != yes; then
6346 # For Tru64, at least:
6347 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6348 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
6349 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6350 echo $ECHO_N "(cached) $ECHO_C" >&6
6352 cat >conftest.
$ac_ext <<_ACEOF
6355 cat confdefs.h
>>conftest.
$ac_ext
6356 cat >>conftest.
$ac_ext <<_ACEOF
6357 /* end confdefs.h. */
6358 $ac_includes_default
6362 #ifndef __sys_siglist
6363 char *p = (char *) __sys_siglist;
6370 rm -f conftest.
$ac_objext
6371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6372 (eval $ac_compile) 2>conftest.er1
6374 grep -v '^ *+' conftest.er1
>conftest.err
6376 cat conftest.err
>&5
6377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378 (exit $ac_status); } &&
6379 { ac_try
='test -z "$ac_c_werror_flag" || 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" || test ! -s conftest.err'
6466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); }; } &&
6471 { ac_try
='test -s conftest.$ac_objext'
6472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); }; }; then
6477 ac_cv_header_sys_wait_h
=yes
6479 echo "$as_me: failed program was:" >&5
6480 sed 's/^/| /' conftest.
$ac_ext >&5
6482 ac_cv_header_sys_wait_h
=no
6484 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6486 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6487 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6488 if test $ac_cv_header_sys_wait_h = yes; then
6490 cat >>confdefs.h
<<\_ACEOF
6491 #define HAVE_SYS_WAIT_H 1
6497 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6498 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6499 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6500 echo $ECHO_N "(cached) $ECHO_C" >&6
6502 cat >conftest.
$ac_ext <<_ACEOF
6505 cat confdefs.h
>>conftest.
$ac_ext
6506 cat >>conftest.
$ac_ext <<_ACEOF
6507 /* end confdefs.h. */
6508 #ifdef TIME_WITH_SYS_TIME
6509 #include <sys/time.h>
6512 #ifdef HAVE_SYS_TIME_H
6513 #include <sys/time.h>
6524 static struct utimbuf x; x.actime = x.modtime;
6529 rm -f conftest.
$ac_objext
6530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6531 (eval $ac_compile) 2>conftest.er1
6533 grep -v '^ *+' conftest.er1
>conftest.err
6535 cat conftest.err
>&5
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); } &&
6538 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); }; } &&
6544 { ac_try
='test -s conftest.$ac_objext'
6545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); }; }; then
6550 emacs_cv_struct_utimbuf
=yes
6552 echo "$as_me: failed program was:" >&5
6553 sed 's/^/| /' conftest.
$ac_ext >&5
6555 emacs_cv_struct_utimbuf
=no
6557 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6559 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6560 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6561 if test $emacs_cv_struct_utimbuf = yes; then
6563 cat >>confdefs.h
<<\_ACEOF
6564 #define HAVE_STRUCT_UTIMBUF 1
6569 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6570 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6571 if test "${ac_cv_type_signal+set}" = set; then
6572 echo $ECHO_N "(cached) $ECHO_C" >&6
6574 cat >conftest.
$ac_ext <<_ACEOF
6577 cat confdefs.h
>>conftest.
$ac_ext
6578 cat >>conftest.
$ac_ext <<_ACEOF
6579 /* end confdefs.h. */
6580 #include <sys/types.h>
6586 extern "C" void (*signal (int, void (*)(int)))(int);
6588 void (*signal ()) ();
6599 rm -f conftest.
$ac_objext
6600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6601 (eval $ac_compile) 2>conftest.er1
6603 grep -v '^ *+' conftest.er1
>conftest.err
6605 cat conftest.err
>&5
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); } &&
6608 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); }; } &&
6614 { ac_try
='test -s conftest.$ac_objext'
6615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); }; }; then
6620 ac_cv_type_signal
=void
6622 echo "$as_me: failed program was:" >&5
6623 sed 's/^/| /' conftest.
$ac_ext >&5
6625 ac_cv_type_signal
=int
6627 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6629 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6630 echo "${ECHO_T}$ac_cv_type_signal" >&6
6632 cat >>confdefs.h
<<_ACEOF
6633 #define RETSIGTYPE $ac_cv_type_signal
6638 echo "$as_me:$LINENO: checking for speed_t" >&5
6639 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6640 if test "${emacs_cv_speed_t+set}" = set; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6643 cat >conftest.
$ac_ext <<_ACEOF
6646 cat confdefs.h
>>conftest.
$ac_ext
6647 cat >>conftest.
$ac_ext <<_ACEOF
6648 /* end confdefs.h. */
6649 #include <termios.h>
6658 rm -f conftest.
$ac_objext
6659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6660 (eval $ac_compile) 2>conftest.er1
6662 grep -v '^ *+' conftest.er1
>conftest.err
6664 cat conftest.err
>&5
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); } &&
6667 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); }; } &&
6673 { ac_try
='test -s conftest.$ac_objext'
6674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); }; }; then
6679 emacs_cv_speed_t
=yes
6681 echo "$as_me: failed program was:" >&5
6682 sed 's/^/| /' conftest.
$ac_ext >&5
6686 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6688 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6689 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6690 if test $emacs_cv_speed_t = yes; then
6692 cat >>confdefs.h
<<\_ACEOF
6693 #define HAVE_SPEED_T 1
6698 echo "$as_me:$LINENO: checking for struct timeval" >&5
6699 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6700 if test "${emacs_cv_struct_timeval+set}" = set; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
6703 cat >conftest.
$ac_ext <<_ACEOF
6706 cat confdefs.h
>>conftest.
$ac_ext
6707 cat >>conftest.
$ac_ext <<_ACEOF
6708 /* end confdefs.h. */
6709 #ifdef TIME_WITH_SYS_TIME
6710 #include <sys/time.h>
6713 #ifdef HAVE_SYS_TIME_H
6714 #include <sys/time.h>
6722 static struct timeval x; x.tv_sec = x.tv_usec;
6727 rm -f conftest.
$ac_objext
6728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6729 (eval $ac_compile) 2>conftest.er1
6731 grep -v '^ *+' conftest.er1
>conftest.err
6733 cat conftest.err
>&5
6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); } &&
6736 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); }; } &&
6742 { ac_try
='test -s conftest.$ac_objext'
6743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747 (exit $ac_status); }; }; then
6748 emacs_cv_struct_timeval
=yes
6750 echo "$as_me: failed program was:" >&5
6751 sed 's/^/| /' conftest.
$ac_ext >&5
6753 emacs_cv_struct_timeval
=no
6755 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6757 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6758 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6759 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6760 if test $emacs_cv_struct_timeval = yes; then
6762 cat >>confdefs.h
<<\_ACEOF
6763 #define HAVE_TIMEVAL 1
6768 echo "$as_me:$LINENO: checking for struct exception" >&5
6769 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6770 if test "${emacs_cv_struct_exception+set}" = set; then
6771 echo $ECHO_N "(cached) $ECHO_C" >&6
6773 cat >conftest.
$ac_ext <<_ACEOF
6776 cat confdefs.h
>>conftest.
$ac_ext
6777 cat >>conftest.
$ac_ext <<_ACEOF
6778 /* end confdefs.h. */
6783 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6788 rm -f conftest.
$ac_objext
6789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6790 (eval $ac_compile) 2>conftest.er1
6792 grep -v '^ *+' conftest.er1
>conftest.err
6794 cat conftest.err
>&5
6795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 (exit $ac_status); } &&
6797 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802 (exit $ac_status); }; } &&
6803 { ac_try
='test -s conftest.$ac_objext'
6804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); }; }; then
6809 emacs_cv_struct_exception
=yes
6811 echo "$as_me: failed program was:" >&5
6812 sed 's/^/| /' conftest.
$ac_ext >&5
6814 emacs_cv_struct_exception
=no
6816 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6818 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6819 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6820 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6821 if test $emacs_cv_struct_exception != yes; then
6823 cat >>confdefs.h
<<\_ACEOF
6824 #define NO_MATHERR 1
6830 for ac_header
in sys
/socket.h
6832 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6834 echo "$as_me:$LINENO: checking for $ac_header" >&5
6835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6837 echo $ECHO_N "(cached) $ECHO_C" >&6
6839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6840 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6842 # Is the header compilable?
6843 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6844 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6845 cat >conftest.
$ac_ext <<_ACEOF
6848 cat confdefs.h
>>conftest.
$ac_ext
6849 cat >>conftest.
$ac_ext <<_ACEOF
6850 /* end confdefs.h. */
6851 $ac_includes_default
6852 #include <$ac_header>
6854 rm -f conftest.
$ac_objext
6855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6856 (eval $ac_compile) 2>conftest.er1
6858 grep -v '^ *+' conftest.er1
>conftest.err
6860 cat conftest.err
>&5
6861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862 (exit $ac_status); } &&
6863 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); }; } &&
6869 { ac_try
='test -s conftest.$ac_objext'
6870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); }; }; then
6875 ac_header_compiler
=yes
6877 echo "$as_me: failed program was:" >&5
6878 sed 's/^/| /' conftest.
$ac_ext >&5
6880 ac_header_compiler
=no
6882 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6883 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6884 echo "${ECHO_T}$ac_header_compiler" >&6
6886 # Is the header present?
6887 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6888 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6889 cat >conftest.
$ac_ext <<_ACEOF
6892 cat confdefs.h
>>conftest.
$ac_ext
6893 cat >>conftest.
$ac_ext <<_ACEOF
6894 /* end confdefs.h. */
6895 #include <$ac_header>
6897 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6898 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6900 grep -v '^ *+' conftest.er1
>conftest.err
6902 cat conftest.err
>&5
6903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); } >/dev
/null
; then
6905 if test -s conftest.err
; then
6906 ac_cpp_err
=$ac_c_preproc_warn_flag
6907 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6914 if test -z "$ac_cpp_err"; then
6915 ac_header_preproc
=yes
6917 echo "$as_me: failed program was:" >&5
6918 sed 's/^/| /' conftest.
$ac_ext >&5
6920 ac_header_preproc
=no
6922 rm -f conftest.err conftest.
$ac_ext
6923 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6924 echo "${ECHO_T}$ac_header_preproc" >&6
6926 # So? What about this header?
6927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6929 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6930 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6932 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6933 ac_header_preproc
=yes
6936 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6937 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6938 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6939 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6940 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6941 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6942 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6943 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6944 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6945 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6946 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6947 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6950 ## ------------------------------------------ ##
6951 ## Report this to the AC_PACKAGE_NAME lists. ##
6952 ## ------------------------------------------ ##
6955 sed "s/^/$as_me: WARNING: /" >&2
6958 echo "$as_me:$LINENO: checking for $ac_header" >&5
6959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6961 echo $ECHO_N "(cached) $ECHO_C" >&6
6963 eval "$as_ac_Header=\$ac_header_preproc"
6965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6966 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6970 cat >>confdefs.h
<<_ACEOF
6971 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6979 for ac_header
in net
/if.h
6981 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6982 echo "$as_me:$LINENO: checking for $ac_header" >&5
6983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
6987 cat >conftest.
$ac_ext <<_ACEOF
6990 cat confdefs.h
>>conftest.
$ac_ext
6991 cat >>conftest.
$ac_ext <<_ACEOF
6992 /* end confdefs.h. */
6993 $ac_includes_default
6994 #if HAVE_SYS_SOCKET_H
6995 #include <sys/socket.h>
6998 #include <$ac_header>
7000 rm -f conftest.
$ac_objext
7001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7002 (eval $ac_compile) 2>conftest.er1
7004 grep -v '^ *+' conftest.er1
>conftest.err
7006 cat conftest.err
>&5
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); } &&
7009 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); }; } &&
7015 { ac_try
='test -s conftest.$ac_objext'
7016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); }; }; then
7021 eval "$as_ac_Header=yes"
7023 echo "$as_me: failed program was:" >&5
7024 sed 's/^/| /' conftest.
$ac_ext >&5
7026 eval "$as_ac_Header=no"
7028 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7033 cat >>confdefs.h
<<_ACEOF
7034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7042 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7043 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
7044 if test "${ac_cv_struct_tm+set}" = set; then
7045 echo $ECHO_N "(cached) $ECHO_C" >&6
7047 cat >conftest.
$ac_ext <<_ACEOF
7050 cat confdefs.h
>>conftest.
$ac_ext
7051 cat >>conftest.
$ac_ext <<_ACEOF
7052 /* end confdefs.h. */
7053 #include <sys/types.h>
7059 struct tm *tp; tp->tm_sec;
7064 rm -f conftest.
$ac_objext
7065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7066 (eval $ac_compile) 2>conftest.er1
7068 grep -v '^ *+' conftest.er1
>conftest.err
7070 cat conftest.err
>&5
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); } &&
7073 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); }; } &&
7079 { ac_try
='test -s conftest.$ac_objext'
7080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); }; }; then
7085 ac_cv_struct_tm
=time.h
7087 echo "$as_me: failed program was:" >&5
7088 sed 's/^/| /' conftest.
$ac_ext >&5
7090 ac_cv_struct_tm
=sys
/time.h
7092 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7094 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7095 echo "${ECHO_T}$ac_cv_struct_tm" >&6
7096 if test $ac_cv_struct_tm = sys
/time.h
; then
7098 cat >>confdefs.h
<<\_ACEOF
7099 #define TM_IN_SYS_TIME 1
7104 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7105 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
7106 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7107 echo $ECHO_N "(cached) $ECHO_C" >&6
7109 cat >conftest.
$ac_ext <<_ACEOF
7112 cat confdefs.h
>>conftest.
$ac_ext
7113 cat >>conftest.
$ac_ext <<_ACEOF
7114 /* end confdefs.h. */
7115 #include <sys/types.h>
7116 #include <$ac_cv_struct_tm>
7122 static struct tm ac_aggr;
7123 if (ac_aggr.tm_zone)
7129 rm -f conftest.
$ac_objext
7130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7131 (eval $ac_compile) 2>conftest.er1
7133 grep -v '^ *+' conftest.er1
>conftest.err
7135 cat conftest.err
>&5
7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); } &&
7138 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); }; } &&
7144 { ac_try
='test -s conftest.$ac_objext'
7145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); }; }; then
7150 ac_cv_member_struct_tm_tm_zone
=yes
7152 echo "$as_me: failed program was:" >&5
7153 sed 's/^/| /' conftest.
$ac_ext >&5
7155 cat >conftest.
$ac_ext <<_ACEOF
7158 cat confdefs.h
>>conftest.
$ac_ext
7159 cat >>conftest.
$ac_ext <<_ACEOF
7160 /* end confdefs.h. */
7161 #include <sys/types.h>
7162 #include <$ac_cv_struct_tm>
7168 static struct tm ac_aggr;
7169 if (sizeof ac_aggr.tm_zone)
7175 rm -f conftest.
$ac_objext
7176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7177 (eval $ac_compile) 2>conftest.er1
7179 grep -v '^ *+' conftest.er1
>conftest.err
7181 cat conftest.err
>&5
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); } &&
7184 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); }; } &&
7190 { ac_try
='test -s conftest.$ac_objext'
7191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); }; }; then
7196 ac_cv_member_struct_tm_tm_zone
=yes
7198 echo "$as_me: failed program was:" >&5
7199 sed 's/^/| /' conftest.
$ac_ext >&5
7201 ac_cv_member_struct_tm_tm_zone
=no
7203 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7205 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7207 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7208 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
7209 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7211 cat >>confdefs.h
<<_ACEOF
7212 #define HAVE_STRUCT_TM_TM_ZONE 1
7218 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7220 cat >>confdefs.h
<<\_ACEOF
7221 #define HAVE_TM_ZONE 1
7225 echo "$as_me:$LINENO: checking for tzname" >&5
7226 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
7227 if test "${ac_cv_var_tzname+set}" = set; then
7228 echo $ECHO_N "(cached) $ECHO_C" >&6
7230 cat >conftest.
$ac_ext <<_ACEOF
7233 cat confdefs.h
>>conftest.
$ac_ext
7234 cat >>conftest.
$ac_ext <<_ACEOF
7235 /* end confdefs.h. */
7237 #ifndef tzname /* For SGI. */
7238 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
7249 rm -f conftest.
$ac_objext conftest
$ac_exeext
7250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7251 (eval $ac_link) 2>conftest.er1
7253 grep -v '^ *+' conftest.er1
>conftest.err
7255 cat conftest.err
>&5
7256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257 (exit $ac_status); } &&
7258 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); }; } &&
7264 { ac_try
='test -s conftest$ac_exeext'
7265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); }; }; then
7270 ac_cv_var_tzname
=yes
7272 echo "$as_me: failed program was:" >&5
7273 sed 's/^/| /' conftest.
$ac_ext >&5
7277 rm -f conftest.err conftest.
$ac_objext \
7278 conftest
$ac_exeext conftest.
$ac_ext
7280 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7281 echo "${ECHO_T}$ac_cv_var_tzname" >&6
7282 if test $ac_cv_var_tzname = yes; then
7284 cat >>confdefs.h
<<\_ACEOF
7285 #define HAVE_TZNAME 1
7291 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7292 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
7293 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7294 echo $ECHO_N "(cached) $ECHO_C" >&6
7296 cat >conftest.
$ac_ext <<_ACEOF
7299 cat confdefs.h
>>conftest.
$ac_ext
7300 cat >>conftest.
$ac_ext <<_ACEOF
7301 /* end confdefs.h. */
7307 static struct tm ac_aggr;
7308 if (ac_aggr.tm_gmtoff)
7314 rm -f conftest.
$ac_objext
7315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7316 (eval $ac_compile) 2>conftest.er1
7318 grep -v '^ *+' conftest.er1
>conftest.err
7320 cat conftest.err
>&5
7321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322 (exit $ac_status); } &&
7323 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328 (exit $ac_status); }; } &&
7329 { ac_try
='test -s conftest.$ac_objext'
7330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); }; }; then
7335 ac_cv_member_struct_tm_tm_gmtoff
=yes
7337 echo "$as_me: failed program was:" >&5
7338 sed 's/^/| /' conftest.
$ac_ext >&5
7340 cat >conftest.
$ac_ext <<_ACEOF
7343 cat confdefs.h
>>conftest.
$ac_ext
7344 cat >>conftest.
$ac_ext <<_ACEOF
7345 /* end confdefs.h. */
7351 static struct tm ac_aggr;
7352 if (sizeof ac_aggr.tm_gmtoff)
7358 rm -f conftest.
$ac_objext
7359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7360 (eval $ac_compile) 2>conftest.er1
7362 grep -v '^ *+' conftest.er1
>conftest.err
7364 cat conftest.err
>&5
7365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366 (exit $ac_status); } &&
7367 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7372 (exit $ac_status); }; } &&
7373 { ac_try
='test -s conftest.$ac_objext'
7374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378 (exit $ac_status); }; }; then
7379 ac_cv_member_struct_tm_tm_gmtoff
=yes
7381 echo "$as_me: failed program was:" >&5
7382 sed 's/^/| /' conftest.
$ac_ext >&5
7384 ac_cv_member_struct_tm_tm_gmtoff
=no
7386 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7388 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7390 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7391 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
7392 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7394 cat >>confdefs.h
<<\_ACEOF
7395 #define HAVE_TM_GMTOFF 1
7400 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7401 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
7402 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7403 echo $ECHO_N "(cached) $ECHO_C" >&6
7405 cat >conftest.
$ac_ext <<_ACEOF
7408 cat confdefs.h
>>conftest.
$ac_ext
7409 cat >>conftest.
$ac_ext <<_ACEOF
7410 /* end confdefs.h. */
7411 $ac_includes_default
7412 #if HAVE_SYS_SOCKET_H
7413 #include <sys/socket.h>
7422 static struct ifreq ac_aggr;
7423 if (ac_aggr.ifr_flags)
7429 rm -f conftest.
$ac_objext
7430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7431 (eval $ac_compile) 2>conftest.er1
7433 grep -v '^ *+' conftest.er1
>conftest.err
7435 cat conftest.err
>&5
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); } &&
7438 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); }; } &&
7444 { ac_try
='test -s conftest.$ac_objext'
7445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); }; }; then
7450 ac_cv_member_struct_ifreq_ifr_flags
=yes
7452 echo "$as_me: failed program was:" >&5
7453 sed 's/^/| /' conftest.
$ac_ext >&5
7455 cat >conftest.
$ac_ext <<_ACEOF
7458 cat confdefs.h
>>conftest.
$ac_ext
7459 cat >>conftest.
$ac_ext <<_ACEOF
7460 /* end confdefs.h. */
7461 $ac_includes_default
7462 #if HAVE_SYS_SOCKET_H
7463 #include <sys/socket.h>
7472 static struct ifreq ac_aggr;
7473 if (sizeof ac_aggr.ifr_flags)
7479 rm -f conftest.
$ac_objext
7480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7481 (eval $ac_compile) 2>conftest.er1
7483 grep -v '^ *+' conftest.er1
>conftest.err
7485 cat conftest.err
>&5
7486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487 (exit $ac_status); } &&
7488 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493 (exit $ac_status); }; } &&
7494 { ac_try
='test -s conftest.$ac_objext'
7495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499 (exit $ac_status); }; }; then
7500 ac_cv_member_struct_ifreq_ifr_flags
=yes
7502 echo "$as_me: failed program was:" >&5
7503 sed 's/^/| /' conftest.
$ac_ext >&5
7505 ac_cv_member_struct_ifreq_ifr_flags
=no
7507 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7509 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7511 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7512 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7513 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7515 cat >>confdefs.h
<<_ACEOF
7516 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7521 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7522 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7523 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7524 echo $ECHO_N "(cached) $ECHO_C" >&6
7526 cat >conftest.
$ac_ext <<_ACEOF
7529 cat confdefs.h
>>conftest.
$ac_ext
7530 cat >>conftest.
$ac_ext <<_ACEOF
7531 /* end confdefs.h. */
7532 $ac_includes_default
7533 #if HAVE_SYS_SOCKET_H
7534 #include <sys/socket.h>
7543 static struct ifreq ac_aggr;
7544 if (ac_aggr.ifr_hwaddr)
7550 rm -f conftest.
$ac_objext
7551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7552 (eval $ac_compile) 2>conftest.er1
7554 grep -v '^ *+' conftest.er1
>conftest.err
7556 cat conftest.err
>&5
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); } &&
7559 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564 (exit $ac_status); }; } &&
7565 { ac_try
='test -s conftest.$ac_objext'
7566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); }; }; then
7571 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7573 echo "$as_me: failed program was:" >&5
7574 sed 's/^/| /' conftest.
$ac_ext >&5
7576 cat >conftest.
$ac_ext <<_ACEOF
7579 cat confdefs.h
>>conftest.
$ac_ext
7580 cat >>conftest.
$ac_ext <<_ACEOF
7581 /* end confdefs.h. */
7582 $ac_includes_default
7583 #if HAVE_SYS_SOCKET_H
7584 #include <sys/socket.h>
7593 static struct ifreq ac_aggr;
7594 if (sizeof ac_aggr.ifr_hwaddr)
7600 rm -f conftest.
$ac_objext
7601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7602 (eval $ac_compile) 2>conftest.er1
7604 grep -v '^ *+' conftest.er1
>conftest.err
7606 cat conftest.err
>&5
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); } &&
7609 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614 (exit $ac_status); }; } &&
7615 { ac_try
='test -s conftest.$ac_objext'
7616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620 (exit $ac_status); }; }; then
7621 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7623 echo "$as_me: failed program was:" >&5
7624 sed 's/^/| /' conftest.
$ac_ext >&5
7626 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
7628 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7630 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7632 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7633 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7634 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7636 cat >>confdefs.h
<<_ACEOF
7637 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7642 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7643 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7644 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7645 echo $ECHO_N "(cached) $ECHO_C" >&6
7647 cat >conftest.
$ac_ext <<_ACEOF
7650 cat confdefs.h
>>conftest.
$ac_ext
7651 cat >>conftest.
$ac_ext <<_ACEOF
7652 /* end confdefs.h. */
7653 $ac_includes_default
7654 #if HAVE_SYS_SOCKET_H
7655 #include <sys/socket.h>
7664 static struct ifreq ac_aggr;
7665 if (ac_aggr.ifr_netmask)
7671 rm -f conftest.
$ac_objext
7672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7673 (eval $ac_compile) 2>conftest.er1
7675 grep -v '^ *+' conftest.er1
>conftest.err
7677 cat conftest.err
>&5
7678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679 (exit $ac_status); } &&
7680 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685 (exit $ac_status); }; } &&
7686 { ac_try
='test -s conftest.$ac_objext'
7687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); }; }; then
7692 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7694 echo "$as_me: failed program was:" >&5
7695 sed 's/^/| /' conftest.
$ac_ext >&5
7697 cat >conftest.
$ac_ext <<_ACEOF
7700 cat confdefs.h
>>conftest.
$ac_ext
7701 cat >>conftest.
$ac_ext <<_ACEOF
7702 /* end confdefs.h. */
7703 $ac_includes_default
7704 #if HAVE_SYS_SOCKET_H
7705 #include <sys/socket.h>
7714 static struct ifreq ac_aggr;
7715 if (sizeof ac_aggr.ifr_netmask)
7721 rm -f conftest.
$ac_objext
7722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7723 (eval $ac_compile) 2>conftest.er1
7725 grep -v '^ *+' conftest.er1
>conftest.err
7727 cat conftest.err
>&5
7728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729 (exit $ac_status); } &&
7730 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); }; } &&
7736 { ac_try
='test -s conftest.$ac_objext'
7737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); }; }; then
7742 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7744 echo "$as_me: failed program was:" >&5
7745 sed 's/^/| /' conftest.
$ac_ext >&5
7747 ac_cv_member_struct_ifreq_ifr_netmask
=no
7749 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7751 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7753 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7754 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7755 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7757 cat >>confdefs.h
<<_ACEOF
7758 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7763 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7764 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7765 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7766 echo $ECHO_N "(cached) $ECHO_C" >&6
7768 cat >conftest.
$ac_ext <<_ACEOF
7771 cat confdefs.h
>>conftest.
$ac_ext
7772 cat >>conftest.
$ac_ext <<_ACEOF
7773 /* end confdefs.h. */
7774 $ac_includes_default
7775 #if HAVE_SYS_SOCKET_H
7776 #include <sys/socket.h>
7785 static struct ifreq ac_aggr;
7786 if (ac_aggr.ifr_broadaddr)
7792 rm -f conftest.
$ac_objext
7793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7794 (eval $ac_compile) 2>conftest.er1
7796 grep -v '^ *+' conftest.er1
>conftest.err
7798 cat conftest.err
>&5
7799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800 (exit $ac_status); } &&
7801 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806 (exit $ac_status); }; } &&
7807 { ac_try
='test -s conftest.$ac_objext'
7808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); }; }; then
7813 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7815 echo "$as_me: failed program was:" >&5
7816 sed 's/^/| /' conftest.
$ac_ext >&5
7818 cat >conftest.
$ac_ext <<_ACEOF
7821 cat confdefs.h
>>conftest.
$ac_ext
7822 cat >>conftest.
$ac_ext <<_ACEOF
7823 /* end confdefs.h. */
7824 $ac_includes_default
7825 #if HAVE_SYS_SOCKET_H
7826 #include <sys/socket.h>
7835 static struct ifreq ac_aggr;
7836 if (sizeof ac_aggr.ifr_broadaddr)
7842 rm -f conftest.
$ac_objext
7843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7844 (eval $ac_compile) 2>conftest.er1
7846 grep -v '^ *+' conftest.er1
>conftest.err
7848 cat conftest.err
>&5
7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); } &&
7851 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856 (exit $ac_status); }; } &&
7857 { ac_try
='test -s conftest.$ac_objext'
7858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); }; }; then
7863 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7865 echo "$as_me: failed program was:" >&5
7866 sed 's/^/| /' conftest.
$ac_ext >&5
7868 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
7870 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7872 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7874 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7875 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7876 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7878 cat >>confdefs.h
<<_ACEOF
7879 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7884 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7885 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7886 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7887 echo $ECHO_N "(cached) $ECHO_C" >&6
7889 cat >conftest.
$ac_ext <<_ACEOF
7892 cat confdefs.h
>>conftest.
$ac_ext
7893 cat >>conftest.
$ac_ext <<_ACEOF
7894 /* end confdefs.h. */
7895 $ac_includes_default
7896 #if HAVE_SYS_SOCKET_H
7897 #include <sys/socket.h>
7906 static struct ifreq ac_aggr;
7907 if (ac_aggr.ifr_addr)
7913 rm -f conftest.
$ac_objext
7914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7915 (eval $ac_compile) 2>conftest.er1
7917 grep -v '^ *+' conftest.er1
>conftest.err
7919 cat conftest.err
>&5
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); } &&
7922 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); }; } &&
7928 { ac_try
='test -s conftest.$ac_objext'
7929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); }; }; then
7934 ac_cv_member_struct_ifreq_ifr_addr
=yes
7936 echo "$as_me: failed program was:" >&5
7937 sed 's/^/| /' conftest.
$ac_ext >&5
7939 cat >conftest.
$ac_ext <<_ACEOF
7942 cat confdefs.h
>>conftest.
$ac_ext
7943 cat >>conftest.
$ac_ext <<_ACEOF
7944 /* end confdefs.h. */
7945 $ac_includes_default
7946 #if HAVE_SYS_SOCKET_H
7947 #include <sys/socket.h>
7956 static struct ifreq ac_aggr;
7957 if (sizeof ac_aggr.ifr_addr)
7963 rm -f conftest.
$ac_objext
7964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7965 (eval $ac_compile) 2>conftest.er1
7967 grep -v '^ *+' conftest.er1
>conftest.err
7969 cat conftest.err
>&5
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); } &&
7972 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); }; } &&
7978 { ac_try
='test -s conftest.$ac_objext'
7979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); }; }; then
7984 ac_cv_member_struct_ifreq_ifr_addr
=yes
7986 echo "$as_me: failed program was:" >&5
7987 sed 's/^/| /' conftest.
$ac_ext >&5
7989 ac_cv_member_struct_ifreq_ifr_addr
=no
7991 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7993 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7995 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7996 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7997 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7999 cat >>confdefs.h
<<_ACEOF
8000 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8008 echo "$as_me:$LINENO: checking for function prototypes" >&5
8009 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
8010 if test "$ac_cv_prog_cc_stdc" != no
; then
8011 echo "$as_me:$LINENO: result: yes" >&5
8012 echo "${ECHO_T}yes" >&6
8014 cat >>confdefs.h
<<\_ACEOF
8015 #define PROTOTYPES 1
8019 cat >>confdefs.h
<<\_ACEOF
8020 #define __PROTOTYPES 1
8024 echo "$as_me:$LINENO: result: no" >&5
8025 echo "${ECHO_T}no" >&6
8028 echo "$as_me:$LINENO: checking for working volatile" >&5
8029 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8030 if test "${ac_cv_c_volatile+set}" = set; then
8031 echo $ECHO_N "(cached) $ECHO_C" >&6
8033 cat >conftest.
$ac_ext <<_ACEOF
8036 cat confdefs.h
>>conftest.
$ac_ext
8037 cat >>conftest.
$ac_ext <<_ACEOF
8038 /* end confdefs.h. */
8050 rm -f conftest.
$ac_objext
8051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8052 (eval $ac_compile) 2>conftest.er1
8054 grep -v '^ *+' conftest.er1
>conftest.err
8056 cat conftest.err
>&5
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); } &&
8059 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); }; } &&
8065 { ac_try
='test -s conftest.$ac_objext'
8066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); }; }; then
8071 ac_cv_c_volatile
=yes
8073 echo "$as_me: failed program was:" >&5
8074 sed 's/^/| /' conftest.
$ac_ext >&5
8078 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8080 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8081 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8082 if test $ac_cv_c_volatile = no
; then
8084 cat >>confdefs.h
<<\_ACEOF
8090 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8091 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8092 if test "${ac_cv_c_const+set}" = set; then
8093 echo $ECHO_N "(cached) $ECHO_C" >&6
8095 cat >conftest.
$ac_ext <<_ACEOF
8098 cat confdefs.h
>>conftest.
$ac_ext
8099 cat >>conftest.
$ac_ext <<_ACEOF
8100 /* end confdefs.h. */
8105 /* FIXME: Include the comments suggested by Paul. */
8107 /* Ultrix mips cc rejects this. */
8108 typedef int charset[2];
8110 /* SunOS 4.1.1 cc rejects this. */
8111 char const *const *ccp;
8113 /* NEC SVR4.0.2 mips cc rejects this. */
8114 struct point {int x, y;};
8115 static struct point const zero = {0,0};
8116 /* AIX XL C 1.02.0.0 rejects this.
8117 It does not let you subtract one const X* pointer from another in
8118 an arm of an if-expression whose if-part is not a constant
8120 const char *g = "string";
8121 ccp = &g + (g ? g-g : 0);
8122 /* HPUX 7.0 cc rejects these. */
8125 ccp = (char const *const *) p;
8126 { /* SCO 3.2v4 cc rejects this. */
8128 char const *s = 0 ? (char *) 0 : (char const *) 0;
8132 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8134 const int *foo = &x[0];
8137 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8138 typedef const int *iptr;
8142 { /* AIX XL C 1.02.0.0 rejects this saying
8143 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8144 struct s { int j; const int *ap[3]; };
8145 struct s *b; b->j = 5;
8147 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8156 rm -f conftest.
$ac_objext
8157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8158 (eval $ac_compile) 2>conftest.er1
8160 grep -v '^ *+' conftest.er1
>conftest.err
8162 cat conftest.err
>&5
8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); } &&
8165 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170 (exit $ac_status); }; } &&
8171 { ac_try
='test -s conftest.$ac_objext'
8172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); }; }; then
8179 echo "$as_me: failed program was:" >&5
8180 sed 's/^/| /' conftest.
$ac_ext >&5
8184 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8186 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8187 echo "${ECHO_T}$ac_cv_c_const" >&6
8188 if test $ac_cv_c_const = no
; then
8190 cat >>confdefs.h
<<\_ACEOF
8196 echo "$as_me:$LINENO: checking for void * support" >&5
8197 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
8198 if test "${emacs_cv_void_star+set}" = set; then
8199 echo $ECHO_N "(cached) $ECHO_C" >&6
8201 cat >conftest.
$ac_ext <<_ACEOF
8204 cat confdefs.h
>>conftest.
$ac_ext
8205 cat >>conftest.
$ac_ext <<_ACEOF
8206 /* end confdefs.h. */
8216 rm -f conftest.
$ac_objext
8217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8218 (eval $ac_compile) 2>conftest.er1
8220 grep -v '^ *+' conftest.er1
>conftest.err
8222 cat conftest.err
>&5
8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 (exit $ac_status); } &&
8225 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); }; } &&
8231 { ac_try
='test -s conftest.$ac_objext'
8232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); }; }; then
8237 emacs_cv_void_star
=yes
8239 echo "$as_me: failed program was:" >&5
8240 sed 's/^/| /' conftest.
$ac_ext >&5
8242 emacs_cv_void_star
=no
8244 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8246 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8247 echo "${ECHO_T}$emacs_cv_void_star" >&6
8248 if test $emacs_cv_void_star = yes; then
8249 cat >>confdefs.h
<<\_ACEOF
8250 #define POINTER_TYPE void
8254 cat >>confdefs.h
<<\_ACEOF
8255 #define POINTER_TYPE char
8264 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8265 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8266 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
8267 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8268 echo $ECHO_N "(cached) $ECHO_C" >&6
8270 cat >conftest.
make <<\_ACEOF
8272 @
echo 'ac_maketemp="$(MAKE)"'
8274 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8275 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8276 if test -n "$ac_maketemp"; then
8277 eval ac_cv_prog_make_
${ac_make}_set
=yes
8279 eval ac_cv_prog_make_
${ac_make}_set
=no
8283 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8284 echo "$as_me:$LINENO: result: yes" >&5
8285 echo "${ECHO_T}yes" >&6
8288 echo "$as_me:$LINENO: result: no" >&5
8289 echo "${ECHO_T}no" >&6
8290 SET_MAKE
="MAKE=${MAKE-make}"
8294 echo "$as_me:$LINENO: checking for long file names" >&5
8295 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
8296 if test "${ac_cv_sys_long_file_names+set}" = set; then
8297 echo $ECHO_N "(cached) $ECHO_C" >&6
8299 ac_cv_sys_long_file_names
=yes
8300 # Test for long file names in all the places we know might matter:
8301 # . the current directory, where building will happen
8302 # $prefix/lib where we will be installing things
8303 # $exec_prefix/lib likewise
8304 # eval it to expand exec_prefix.
8305 # $TMPDIR if set, where it might want to write temporary files
8306 # if $TMPDIR is not set:
8307 # /tmp where it might want to write temporary files
8310 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
8313 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
8315 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
8316 test -d $ac_dir ||
continue
8317 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
8318 ac_xdir
=$ac_dir/cf$$
8319 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
8320 ac_tf1
=$ac_xdir/conftest9012345
8321 ac_tf2
=$ac_xdir/conftest9012346
8322 (echo 1 >$ac_tf1) 2>/dev
/null
8323 (echo 2 >$ac_tf2) 2>/dev
/null
8324 ac_val
=`cat $ac_tf1 2>/dev/null`
8325 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
8326 ac_cv_sys_long_file_names
=no
8327 rm -rf $ac_xdir 2>/dev
/null
8330 rm -rf $ac_xdir 2>/dev
/null
8333 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8334 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
8335 if test $ac_cv_sys_long_file_names = yes; then
8337 cat >>confdefs.h
<<\_ACEOF
8338 #define HAVE_LONG_FILE_NAMES 1
8344 #### Choose a window system.
8346 echo "$as_me:$LINENO: checking for X" >&5
8347 echo $ECHO_N "checking for X... $ECHO_C" >&6
8349 ac_path_x_has_been_run
=yes
8351 # Check whether --with-x or --without-x was given.
8352 if test "${with_x+set}" = set; then
8356 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8357 if test "x$with_x" = xno
; then
8358 # The user explicitly disabled X.
8361 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
8362 # Both variables are already set.
8365 if test "${ac_cv_have_x+set}" = set; then
8366 echo $ECHO_N "(cached) $ECHO_C" >&6
8368 # One or both of the vars are not set, and there is no cached value.
8369 ac_x_includes
=no ac_x_libraries
=no
8371 if mkdir conftest.dir
; then
8373 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8374 cat >Imakefile
<<'_ACEOF'
8376 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8378 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8379 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8380 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8381 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8382 for ac_extension
in a so sl
; do
8383 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
8384 test -f $ac_im_libdir/libX11.
$ac_extension; then
8385 ac_im_usrlibdir
=$ac_im_libdir; break
8388 # Screen out bogus values from the imake configuration. They are
8389 # bogus both because they are the default anyway, and because
8390 # using them would break gcc on systems where it needs fixed includes.
8391 case $ac_im_incroot in
8393 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
8395 case $ac_im_usrlibdir in
8397 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8404 # Standard set of common directories for X headers.
8405 # Check X11 before X11Rn because it is often a symlink to the current release.
8417 /usr/local/X11/include
8418 /usr/local/X11R6/include
8419 /usr/local/X11R5/include
8420 /usr/local/X11R4/include
8422 /usr/local/include/X11
8423 /usr/local/include/X11R6
8424 /usr/local/include/X11R5
8425 /usr/local/include/X11R4
8429 /usr/XFree86/include/X11
8433 /usr/unsupported/include
8435 /usr/local/x11r5/include
8436 /usr/lpp/Xamples/include
8438 /usr/openwin/include
8439 /usr/openwin/share/include'
8441 if test "$ac_x_includes" = no
; then
8442 # Guess where to find include files, by looking for a specified header file.
8443 # First, try using that file with no special directory specified.
8444 cat >conftest.
$ac_ext <<_ACEOF
8447 cat confdefs.h
>>conftest.
$ac_ext
8448 cat >>conftest.
$ac_ext <<_ACEOF
8449 /* end confdefs.h. */
8450 #include <X11/Intrinsic.h>
8452 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8453 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8455 grep -v '^ *+' conftest.er1
>conftest.err
8457 cat conftest.err
>&5
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); } >/dev
/null
; then
8460 if test -s conftest.err
; then
8461 ac_cpp_err
=$ac_c_preproc_warn_flag
8462 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8469 if test -z "$ac_cpp_err"; then
8470 # We can compile using X headers with no special include directory.
8473 echo "$as_me: failed program was:" >&5
8474 sed 's/^/| /' conftest.
$ac_ext >&5
8476 for ac_dir
in $ac_x_header_dirs; do
8477 if test -r "$ac_dir/X11/Intrinsic.h"; then
8478 ac_x_includes
=$ac_dir
8483 rm -f conftest.err conftest.
$ac_ext
8484 fi # $ac_x_includes = no
8486 if test "$ac_x_libraries" = no
; then
8487 # Check for the libraries.
8488 # See if we find them without any special options.
8489 # Don't add to $LIBS permanently.
8492 cat >conftest.
$ac_ext <<_ACEOF
8495 cat confdefs.h
>>conftest.
$ac_ext
8496 cat >>conftest.
$ac_ext <<_ACEOF
8497 /* end confdefs.h. */
8498 #include <X11/Intrinsic.h>
8507 rm -f conftest.
$ac_objext conftest
$ac_exeext
8508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8509 (eval $ac_link) 2>conftest.er1
8511 grep -v '^ *+' conftest.er1
>conftest.err
8513 cat conftest.err
>&5
8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515 (exit $ac_status); } &&
8516 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); }; } &&
8522 { ac_try
='test -s conftest$ac_exeext'
8523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); }; }; then
8529 # We can link X programs with no special library path.
8532 echo "$as_me: failed program was:" >&5
8533 sed 's/^/| /' conftest.
$ac_ext >&5
8536 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8538 # Don't even attempt the hair of trying to link an X program!
8539 for ac_extension
in a so sl
; do
8540 if test -r $ac_dir/libXt.
$ac_extension; then
8541 ac_x_libraries
=$ac_dir
8547 rm -f conftest.err conftest.
$ac_objext \
8548 conftest
$ac_exeext conftest.
$ac_ext
8549 fi # $ac_x_libraries = no
8551 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
8552 # Didn't find X anywhere. Cache the known absence of X.
8553 ac_cv_have_x
="have_x=no"
8555 # Record where we found X for the cache.
8556 ac_cv_have_x
="have_x=yes \
8557 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8562 eval "$ac_cv_have_x"
8565 if test "$have_x" != yes; then
8566 echo "$as_me:$LINENO: result: $have_x" >&5
8567 echo "${ECHO_T}$have_x" >&6
8570 # If each of the values was on the command line, it overrides each guess.
8571 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8572 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8573 # Update the cache value to reflect the command line values.
8574 ac_cv_have_x
="have_x=yes \
8575 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8576 # It might be that x_includes is empty (headers are found in the
8577 # standard search path. Then output the corresponding message
8578 ac_out_x_includes
=$x_includes
8579 test "x$x_includes" = x
&& ac_out_x_includes
="in standard search path"
8580 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
8581 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
8584 if test "$no_x" = yes; then
8590 if test "${x_libraries}" != NONE
; then
8591 if test -n "${x_libraries}"; then
8592 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8593 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8595 x_default_search_path
=""
8596 x_search_path
=${x_libraries}
8597 if test -z "${x_search_path}"; then
8598 x_search_path
=/usr
/lib
8600 for x_library
in `echo ${x_search_path}: | \
8601 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8603 ${x_library}/X11/%L/%T/%N%C%S:\
8604 ${x_library}/X11/%l/%T/%N%C%S:\
8605 ${x_library}/X11/%T/%N%C%S:\
8606 ${x_library}/X11/%L/%T/%N%S:\
8607 ${x_library}/X11/%l/%T/%N%S:\
8608 ${x_library}/X11/%T/%N%S"
8609 if test x
"${x_default_search_path}" = x
; then
8610 x_default_search_path
=${x_search_path}
8612 x_default_search_path
="${x_search_path}:${x_default_search_path}"
8616 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
8617 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8620 if test x
"${x_includes}" = x
; then
8621 bitmapdir
=/usr
/include
/X11
/bitmaps
8623 # accumulate include directories that have X11 bitmap subdirectories
8625 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8626 if test -d "${bmd}/X11/bitmaps"; then
8627 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
8629 if test -d "${bmd}/bitmaps"; then
8630 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
8633 if test ${bmd_acc} != "dummyval"; then
8634 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8639 if test "${with_carbon}" != no
; then
8640 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8641 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8642 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8643 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8644 echo $ECHO_N "(cached) $ECHO_C" >&6
8646 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8647 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8649 # Is the header compilable?
8650 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8651 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8652 cat >conftest.
$ac_ext <<_ACEOF
8655 cat confdefs.h
>>conftest.
$ac_ext
8656 cat >>conftest.
$ac_ext <<_ACEOF
8657 /* end confdefs.h. */
8658 $ac_includes_default
8659 #include <Carbon/Carbon.h>
8661 rm -f conftest.
$ac_objext
8662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8663 (eval $ac_compile) 2>conftest.er1
8665 grep -v '^ *+' conftest.er1
>conftest.err
8667 cat conftest.err
>&5
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); } &&
8670 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 (exit $ac_status); }; } &&
8676 { ac_try
='test -s conftest.$ac_objext'
8677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 (exit $ac_status); }; }; then
8682 ac_header_compiler
=yes
8684 echo "$as_me: failed program was:" >&5
8685 sed 's/^/| /' conftest.
$ac_ext >&5
8687 ac_header_compiler
=no
8689 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8690 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8691 echo "${ECHO_T}$ac_header_compiler" >&6
8693 # Is the header present?
8694 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8695 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8696 cat >conftest.
$ac_ext <<_ACEOF
8699 cat confdefs.h
>>conftest.
$ac_ext
8700 cat >>conftest.
$ac_ext <<_ACEOF
8701 /* end confdefs.h. */
8702 #include <Carbon/Carbon.h>
8704 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8705 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8707 grep -v '^ *+' conftest.er1
>conftest.err
8709 cat conftest.err
>&5
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); } >/dev
/null
; then
8712 if test -s conftest.err
; then
8713 ac_cpp_err
=$ac_c_preproc_warn_flag
8714 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8721 if test -z "$ac_cpp_err"; then
8722 ac_header_preproc
=yes
8724 echo "$as_me: failed program was:" >&5
8725 sed 's/^/| /' conftest.
$ac_ext >&5
8727 ac_header_preproc
=no
8729 rm -f conftest.err conftest.
$ac_ext
8730 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8731 echo "${ECHO_T}$ac_header_preproc" >&6
8733 # So? What about this header?
8734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8736 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8737 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8738 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8739 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8740 ac_header_preproc
=yes
8743 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8744 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8745 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8746 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8747 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8748 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8749 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8750 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8751 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8752 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8753 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8754 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8757 ## ------------------------------------------ ##
8758 ## Report this to the AC_PACKAGE_NAME lists. ##
8759 ## ------------------------------------------ ##
8762 sed "s/^/$as_me: WARNING: /" >&2
8765 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8766 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8767 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8768 echo $ECHO_N "(cached) $ECHO_C" >&6
8770 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
8772 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8773 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8776 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8782 if test "${window_system}" = x11
&& test "${HAVE_CARBON}" = yes; then
8783 if test "${with_carbon+set}" != set \
8784 && test "${carbon_appdir_x+set}" != set; then
8788 if test "${HAVE_CARBON}" = yes; then
8792 case "${window_system}" in
8796 case "${with_x_toolkit}" in
8797 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
8798 motif
) USE_X_TOOLKIT
=MOTIF
;;
8800 USE_X_TOOLKIT
=none
;;
8801 no
) USE_X_TOOLKIT
=none
;;
8802 * ) USE_X_TOOLKIT
=maybe
;;
8812 ### If we're using X11, we should use the X menu package.
8815 yes ) HAVE_MENUS
=yes ;;
8818 if test "${opsys}" = "hpux9"; then
8819 case "${x_libraries}" in
8821 opsysfile
="s/hpux9-x11r4.h"
8826 if test "${opsys}" = "hpux9shr"; then
8827 case "${x_libraries}" in
8829 opsysfile
="s/hpux9shxr4.h"
8834 ### Compute the unexec source name from the object name.
8835 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
8837 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8838 # Assume not, until told otherwise.
8841 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8842 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8843 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8844 echo $ECHO_N "(cached) $ECHO_C" >&6
8846 cat >conftest.
$ac_ext <<_ACEOF
8849 cat confdefs.h
>>conftest.
$ac_ext
8850 cat >>conftest.
$ac_ext <<_ACEOF
8851 /* end confdefs.h. */
8852 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8854 #define malloc_get_state innocuous_malloc_get_state
8856 /* System header to define __stub macros and hopefully few prototypes,
8857 which can conflict with char malloc_get_state (); below.
8858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8859 <limits.h> exists even on freestanding compilers. */
8862 # include <limits.h>
8864 # include <assert.h>
8867 #undef malloc_get_state
8869 /* Override any gcc2 internal prototype to avoid an error. */
8874 /* We use char because int might match the return type of a gcc2
8875 builtin and then its argument prototype would still apply. */
8876 char malloc_get_state ();
8877 /* The GNU C library defines this for functions which it implements
8878 to always fail with ENOSYS. Some functions are actually named
8879 something starting with __ and the normal name is an alias. */
8880 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8883 char (*f) () = malloc_get_state;
8892 return f != malloc_get_state;
8897 rm -f conftest.
$ac_objext conftest
$ac_exeext
8898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8899 (eval $ac_link) 2>conftest.er1
8901 grep -v '^ *+' conftest.er1
>conftest.err
8903 cat conftest.err
>&5
8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); } &&
8906 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911 (exit $ac_status); }; } &&
8912 { ac_try
='test -s conftest$ac_exeext'
8913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); }; }; then
8918 ac_cv_func_malloc_get_state
=yes
8920 echo "$as_me: failed program was:" >&5
8921 sed 's/^/| /' conftest.
$ac_ext >&5
8923 ac_cv_func_malloc_get_state
=no
8925 rm -f conftest.err conftest.
$ac_objext \
8926 conftest
$ac_exeext conftest.
$ac_ext
8928 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8929 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8930 if test $ac_cv_func_malloc_get_state = yes; then
8936 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8937 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8938 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8939 echo $ECHO_N "(cached) $ECHO_C" >&6
8941 cat >conftest.
$ac_ext <<_ACEOF
8944 cat confdefs.h
>>conftest.
$ac_ext
8945 cat >>conftest.
$ac_ext <<_ACEOF
8946 /* end confdefs.h. */
8947 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8949 #define malloc_set_state innocuous_malloc_set_state
8951 /* System header to define __stub macros and hopefully few prototypes,
8952 which can conflict with char malloc_set_state (); below.
8953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8954 <limits.h> exists even on freestanding compilers. */
8957 # include <limits.h>
8959 # include <assert.h>
8962 #undef malloc_set_state
8964 /* Override any gcc2 internal prototype to avoid an error. */
8969 /* We use char because int might match the return type of a gcc2
8970 builtin and then its argument prototype would still apply. */
8971 char malloc_set_state ();
8972 /* The GNU C library defines this for functions which it implements
8973 to always fail with ENOSYS. Some functions are actually named
8974 something starting with __ and the normal name is an alias. */
8975 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8978 char (*f) () = malloc_set_state;
8987 return f != malloc_set_state;
8992 rm -f conftest.
$ac_objext conftest
$ac_exeext
8993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8994 (eval $ac_link) 2>conftest.er1
8996 grep -v '^ *+' conftest.er1
>conftest.err
8998 cat conftest.err
>&5
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); } &&
9001 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); }; } &&
9007 { ac_try
='test -s conftest$ac_exeext'
9008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); }; }; then
9013 ac_cv_func_malloc_set_state
=yes
9015 echo "$as_me: failed program was:" >&5
9016 sed 's/^/| /' conftest.
$ac_ext >&5
9018 ac_cv_func_malloc_set_state
=no
9020 rm -f conftest.err conftest.
$ac_objext \
9021 conftest
$ac_exeext conftest.
$ac_ext
9023 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9024 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
9025 if test $ac_cv_func_malloc_set_state = yes; then
9031 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9032 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
9033 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9034 echo $ECHO_N "(cached) $ECHO_C" >&6
9036 cat >conftest.
$ac_ext <<_ACEOF
9039 cat confdefs.h
>>conftest.
$ac_ext
9040 cat >>conftest.
$ac_ext <<_ACEOF
9041 /* end confdefs.h. */
9042 extern void (* __after_morecore_hook)();
9046 __after_morecore_hook = 0
9051 rm -f conftest.
$ac_objext conftest
$ac_exeext
9052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9053 (eval $ac_link) 2>conftest.er1
9055 grep -v '^ *+' conftest.er1
>conftest.err
9057 cat conftest.err
>&5
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); } &&
9060 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); }; } &&
9066 { ac_try
='test -s conftest$ac_exeext'
9067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); }; }; then
9072 emacs_cv_var___after_morecore_hook
=yes
9074 echo "$as_me: failed program was:" >&5
9075 sed 's/^/| /' conftest.
$ac_ext >&5
9077 emacs_cv_var___after_morecore_hook
=no
9079 rm -f conftest.err conftest.
$ac_objext \
9080 conftest
$ac_exeext conftest.
$ac_ext
9082 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9083 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
9084 if test $emacs_cv_var___after_morecore_hook = no
; then
9087 if test "${system_malloc}" = "yes"; then
9090 (The GNU allocators don't work with this system configuration.)"
9092 if test "$doug_lea_malloc" = "yes" ; then
9093 if test "$GNU_MALLOC" = yes ; then
9095 (Using Doug Lea's new malloc from the GNU C Library.)"
9098 cat >>confdefs.h
<<\_ACEOF
9099 #define DOUG_LEA_MALLOC 1
9104 if test x
"${REL_ALLOC}" = x
; then
9105 REL_ALLOC
=${GNU_MALLOC}
9111 for ac_header
in stdlib.h unistd.h
9113 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9115 echo "$as_me:$LINENO: checking for $ac_header" >&5
9116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9118 echo $ECHO_N "(cached) $ECHO_C" >&6
9120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9121 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9123 # Is the header compilable?
9124 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9125 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9126 cat >conftest.
$ac_ext <<_ACEOF
9129 cat confdefs.h
>>conftest.
$ac_ext
9130 cat >>conftest.
$ac_ext <<_ACEOF
9131 /* end confdefs.h. */
9132 $ac_includes_default
9133 #include <$ac_header>
9135 rm -f conftest.
$ac_objext
9136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9137 (eval $ac_compile) 2>conftest.er1
9139 grep -v '^ *+' conftest.er1
>conftest.err
9141 cat conftest.err
>&5
9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); } &&
9144 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); }; } &&
9150 { ac_try
='test -s conftest.$ac_objext'
9151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 (exit $ac_status); }; }; then
9156 ac_header_compiler
=yes
9158 echo "$as_me: failed program was:" >&5
9159 sed 's/^/| /' conftest.
$ac_ext >&5
9161 ac_header_compiler
=no
9163 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9164 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9165 echo "${ECHO_T}$ac_header_compiler" >&6
9167 # Is the header present?
9168 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9169 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9170 cat >conftest.
$ac_ext <<_ACEOF
9173 cat confdefs.h
>>conftest.
$ac_ext
9174 cat >>conftest.
$ac_ext <<_ACEOF
9175 /* end confdefs.h. */
9176 #include <$ac_header>
9178 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9179 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9181 grep -v '^ *+' conftest.er1
>conftest.err
9183 cat conftest.err
>&5
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); } >/dev
/null
; then
9186 if test -s conftest.err
; then
9187 ac_cpp_err
=$ac_c_preproc_warn_flag
9188 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9195 if test -z "$ac_cpp_err"; then
9196 ac_header_preproc
=yes
9198 echo "$as_me: failed program was:" >&5
9199 sed 's/^/| /' conftest.
$ac_ext >&5
9201 ac_header_preproc
=no
9203 rm -f conftest.err conftest.
$ac_ext
9204 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9205 echo "${ECHO_T}$ac_header_preproc" >&6
9207 # So? What about this header?
9208 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9210 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9211 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9213 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9214 ac_header_preproc
=yes
9217 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9218 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9219 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9220 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9221 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9222 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9223 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9224 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9226 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9227 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9228 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9231 ## ------------------------------------------ ##
9232 ## Report this to the AC_PACKAGE_NAME lists. ##
9233 ## ------------------------------------------ ##
9236 sed "s/^/$as_me: WARNING: /" >&2
9239 echo "$as_me:$LINENO: checking for $ac_header" >&5
9240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9242 echo $ECHO_N "(cached) $ECHO_C" >&6
9244 eval "$as_ac_Header=\$ac_header_preproc"
9246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9247 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9251 cat >>confdefs.h
<<_ACEOF
9252 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9260 for ac_func
in getpagesize
9262 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9263 echo "$as_me:$LINENO: checking for $ac_func" >&5
9264 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9265 if eval "test \"\${$as_ac_var+set}\" = set"; then
9266 echo $ECHO_N "(cached) $ECHO_C" >&6
9268 cat >conftest.
$ac_ext <<_ACEOF
9271 cat confdefs.h
>>conftest.
$ac_ext
9272 cat >>conftest.
$ac_ext <<_ACEOF
9273 /* end confdefs.h. */
9274 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9276 #define $ac_func innocuous_$ac_func
9278 /* System header to define __stub macros and hopefully few prototypes,
9279 which can conflict with char $ac_func (); below.
9280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9281 <limits.h> exists even on freestanding compilers. */
9284 # include <limits.h>
9286 # include <assert.h>
9291 /* Override any gcc2 internal prototype to avoid an error. */
9296 /* We use char because int might match the return type of a gcc2
9297 builtin and then its argument prototype would still apply. */
9299 /* The GNU C library defines this for functions which it implements
9300 to always fail with ENOSYS. Some functions are actually named
9301 something starting with __ and the normal name is an alias. */
9302 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9305 char (*f) () = $ac_func;
9314 return f != $ac_func;
9319 rm -f conftest.
$ac_objext conftest
$ac_exeext
9320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9321 (eval $ac_link) 2>conftest.er1
9323 grep -v '^ *+' conftest.er1
>conftest.err
9325 cat conftest.err
>&5
9326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327 (exit $ac_status); } &&
9328 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); }; } &&
9334 { ac_try
='test -s conftest$ac_exeext'
9335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 (exit $ac_status); }; }; then
9340 eval "$as_ac_var=yes"
9342 echo "$as_me: failed program was:" >&5
9343 sed 's/^/| /' conftest.
$ac_ext >&5
9345 eval "$as_ac_var=no"
9347 rm -f conftest.err conftest.
$ac_objext \
9348 conftest
$ac_exeext conftest.
$ac_ext
9350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9351 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9352 if test `eval echo '${'$as_ac_var'}'` = yes; then
9353 cat >>confdefs.h
<<_ACEOF
9354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9360 echo "$as_me:$LINENO: checking for working mmap" >&5
9361 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9362 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9363 echo $ECHO_N "(cached) $ECHO_C" >&6
9365 if test "$cross_compiling" = yes; then
9366 ac_cv_func_mmap_fixed_mapped
=no
9368 cat >conftest.
$ac_ext <<_ACEOF
9371 cat confdefs.h
>>conftest.
$ac_ext
9372 cat >>conftest.
$ac_ext <<_ACEOF
9373 /* end confdefs.h. */
9374 $ac_includes_default
9375 /* malloc might have been renamed as rpl_malloc. */
9378 /* Thanks to Mike Haertel and Jim Avera for this test.
9379 Here is a matrix of mmap possibilities:
9380 mmap private not fixed
9381 mmap private fixed at somewhere currently unmapped
9382 mmap private fixed at somewhere already mapped
9383 mmap shared not fixed
9384 mmap shared fixed at somewhere currently unmapped
9385 mmap shared fixed at somewhere already mapped
9386 For private mappings, we should verify that changes cannot be read()
9387 back from the file, nor mmap's back from the file at a different
9388 address. (There have been systems where private was not correctly
9389 implemented like the infamous i386 svr4.0, and systems where the
9390 VM page cache was not coherent with the file system buffer cache
9391 like early versions of FreeBSD and possibly contemporary NetBSD.)
9392 For shared mappings, we should conversely verify that changes get
9393 propagated back to all the places they're supposed to be.
9395 Grep wants private fixed already mapped.
9396 The main things grep needs to know about mmap are:
9397 * does it exist and is it safe to write into the mmap'd area
9398 * how to use it (BSD variants) */
9401 #include <sys/mman.h>
9403 #if !STDC_HEADERS && !HAVE_STDLIB_H
9407 /* This mess was copied from the GNU getpagesize.h. */
9408 #if !HAVE_GETPAGESIZE
9409 /* Assume that all systems that can run configure have sys/param.h. */
9410 # if !HAVE_SYS_PARAM_H
9411 # define HAVE_SYS_PARAM_H 1
9414 # ifdef _SC_PAGESIZE
9415 # define getpagesize() sysconf(_SC_PAGESIZE)
9416 # else /* no _SC_PAGESIZE */
9417 # if HAVE_SYS_PARAM_H
9418 # include <sys/param.h>
9419 # ifdef EXEC_PAGESIZE
9420 # define getpagesize() EXEC_PAGESIZE
9421 # else /* no EXEC_PAGESIZE */
9423 # define getpagesize() NBPG * CLSIZE
9426 # endif /* no CLSIZE */
9427 # else /* no NBPG */
9429 # define getpagesize() NBPC
9430 # else /* no NBPC */
9432 # define getpagesize() PAGESIZE
9433 # endif /* PAGESIZE */
9434 # endif /* no NBPC */
9435 # endif /* no NBPG */
9436 # endif /* no EXEC_PAGESIZE */
9437 # else /* no HAVE_SYS_PARAM_H */
9438 # define getpagesize() 8192 /* punt totally */
9439 # endif /* no HAVE_SYS_PARAM_H */
9440 # endif /* no _SC_PAGESIZE */
9442 #endif /* no HAVE_GETPAGESIZE */
9447 char *data, *data2, *data3;
9451 pagesize = getpagesize ();
9453 /* First, make a file with some known garbage in it. */
9454 data = (char *) malloc (pagesize);
9457 for (i = 0; i < pagesize; ++i)
9458 *(data + i) = rand ();
9460 fd = creat ("conftest.mmap", 0600);
9463 if (write (fd, data, pagesize) != pagesize)
9467 /* Next, try to mmap the file at a fixed address which already has
9468 something else allocated at it. If we can, also make sure that
9469 we see the same garbage. */
9470 fd = open ("conftest.mmap", O_RDWR);
9473 data2 = (char *) malloc (2 * pagesize);
9476 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9477 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9478 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9480 for (i = 0; i < pagesize; ++i)
9481 if (*(data + i) != *(data2 + i))
9484 /* Finally, make sure that changes to the mapped area do not
9485 percolate back to the file as seen by read(). (This is a bug on
9486 some variants of i386 svr4.0.) */
9487 for (i = 0; i < pagesize; ++i)
9488 *(data2 + i) = *(data2 + i) + 1;
9489 data3 = (char *) malloc (pagesize);
9492 if (read (fd, data3, pagesize) != pagesize)
9494 for (i = 0; i < pagesize; ++i)
9495 if (*(data + i) != *(data3 + i))
9501 rm -f conftest
$ac_exeext
9502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9503 (eval $ac_link) 2>&5
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); }; }; then
9512 ac_cv_func_mmap_fixed_mapped
=yes
9514 echo "$as_me: program exited with status $ac_status" >&5
9515 echo "$as_me: failed program was:" >&5
9516 sed 's/^/| /' conftest.
$ac_ext >&5
9519 ac_cv_func_mmap_fixed_mapped
=no
9521 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9524 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9525 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9526 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9528 cat >>confdefs.h
<<\_ACEOF
9535 if test $use_mmap_for_buffers = yes; then
9539 LIBS
="$libsrc_libs $LIBS"
9542 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9543 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9544 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9545 echo $ECHO_N "(cached) $ECHO_C" >&6
9547 ac_check_lib_save_LIBS
=$LIBS
9549 cat >conftest.
$ac_ext <<_ACEOF
9552 cat confdefs.h
>>conftest.
$ac_ext
9553 cat >>conftest.
$ac_ext <<_ACEOF
9554 /* end confdefs.h. */
9556 /* Override any gcc2 internal prototype to avoid an error. */
9560 /* We use char because int might match the return type of a gcc2
9561 builtin and then its argument prototype would still apply. */
9571 rm -f conftest.
$ac_objext conftest
$ac_exeext
9572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9573 (eval $ac_link) 2>conftest.er1
9575 grep -v '^ *+' conftest.er1
>conftest.err
9577 cat conftest.err
>&5
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); } &&
9580 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); }; } &&
9586 { ac_try
='test -s conftest$ac_exeext'
9587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); }; }; then
9592 ac_cv_lib_dnet_dnet_ntoa
=yes
9594 echo "$as_me: failed program was:" >&5
9595 sed 's/^/| /' conftest.
$ac_ext >&5
9597 ac_cv_lib_dnet_dnet_ntoa
=no
9599 rm -f conftest.err conftest.
$ac_objext \
9600 conftest
$ac_exeext conftest.
$ac_ext
9601 LIBS
=$ac_check_lib_save_LIBS
9603 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9604 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9605 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9606 cat >>confdefs.h
<<_ACEOF
9607 #define HAVE_LIBDNET 1
9615 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9616 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9617 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9618 echo $ECHO_N "(cached) $ECHO_C" >&6
9620 ac_check_lib_save_LIBS
=$LIBS
9622 cat >conftest.
$ac_ext <<_ACEOF
9625 cat confdefs.h
>>conftest.
$ac_ext
9626 cat >>conftest.
$ac_ext <<_ACEOF
9627 /* end confdefs.h. */
9638 rm -f conftest.
$ac_objext conftest
$ac_exeext
9639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9640 (eval $ac_link) 2>conftest.er1
9642 grep -v '^ *+' conftest.er1
>conftest.err
9644 cat conftest.err
>&5
9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646 (exit $ac_status); } &&
9647 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652 (exit $ac_status); }; } &&
9653 { ac_try
='test -s conftest$ac_exeext'
9654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 (exit $ac_status); }; }; then
9659 ac_cv_lib_Xbsd_main
=yes
9661 echo "$as_me: failed program was:" >&5
9662 sed 's/^/| /' conftest.
$ac_ext >&5
9664 ac_cv_lib_Xbsd_main
=no
9666 rm -f conftest.err conftest.
$ac_objext \
9667 conftest
$ac_exeext conftest.
$ac_ext
9668 LIBS
=$ac_check_lib_save_LIBS
9670 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9671 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9672 if test $ac_cv_lib_Xbsd_main = yes; then
9673 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9678 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9679 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9680 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9681 echo $ECHO_N "(cached) $ECHO_C" >&6
9683 ac_check_lib_save_LIBS
=$LIBS
9684 LIBS
="-lpthreads $LIBS"
9685 cat >conftest.
$ac_ext <<_ACEOF
9688 cat confdefs.h
>>conftest.
$ac_ext
9689 cat >>conftest.
$ac_ext <<_ACEOF
9690 /* end confdefs.h. */
9692 /* Override any gcc2 internal prototype to avoid an error. */
9696 /* We use char because int might match the return type of a gcc2
9697 builtin and then its argument prototype would still apply. */
9707 rm -f conftest.
$ac_objext conftest
$ac_exeext
9708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9709 (eval $ac_link) 2>conftest.er1
9711 grep -v '^ *+' conftest.er1
>conftest.err
9713 cat conftest.err
>&5
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); } &&
9716 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); }; } &&
9722 { ac_try
='test -s conftest$ac_exeext'
9723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727 (exit $ac_status); }; }; then
9728 ac_cv_lib_pthreads_cma_open
=yes
9730 echo "$as_me: failed program was:" >&5
9731 sed 's/^/| /' conftest.
$ac_ext >&5
9733 ac_cv_lib_pthreads_cma_open
=no
9735 rm -f conftest.err conftest.
$ac_objext \
9736 conftest
$ac_exeext conftest.
$ac_ext
9737 LIBS
=$ac_check_lib_save_LIBS
9739 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9740 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9741 if test $ac_cv_lib_pthreads_cma_open = yes; then
9742 cat >>confdefs.h
<<_ACEOF
9743 #define HAVE_LIBPTHREADS 1
9746 LIBS
="-lpthreads $LIBS"
9751 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9752 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9753 if test -d /usr
/X386
/include
; then
9755 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9759 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9760 echo "${ECHO_T}$HAVE_XFREE386" >&6
9765 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9766 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9767 if test "${gdb_cv_bigtoc+set}" = set; then
9768 echo $ECHO_N "(cached) $ECHO_C" >&6
9772 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9773 *) gdb_cv_bigtoc
=-bbigtoc ;;
9776 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9777 cat >conftest.
$ac_ext <<_ACEOF
9780 cat confdefs.h
>>conftest.
$ac_ext
9781 cat >>conftest.
$ac_ext <<_ACEOF
9782 /* end confdefs.h. */
9792 rm -f conftest.
$ac_objext conftest
$ac_exeext
9793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9794 (eval $ac_link) 2>conftest.er1
9796 grep -v '^ *+' conftest.er1
>conftest.err
9798 cat conftest.err
>&5
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); } &&
9801 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); }; } &&
9807 { ac_try
='test -s conftest$ac_exeext'
9808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); }; }; then
9815 echo "$as_me: failed program was:" >&5
9816 sed 's/^/| /' conftest.
$ac_ext >&5
9820 rm -f conftest.err conftest.
$ac_objext \
9821 conftest
$ac_exeext conftest.
$ac_ext
9824 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9825 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9829 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9830 # used for the tests that follow. We set them back to REAL_CFLAGS and
9831 # REAL_CPPFLAGS later on.
9833 REAL_CPPFLAGS
="$CPPFLAGS"
9835 if test "${HAVE_X11}" = "yes"; then
9836 DEFS
="$C_SWITCH_X_SITE $DEFS"
9837 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9839 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9840 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9842 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9843 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9844 # but it's more convenient here to set LD_RUN_PATH
9845 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9846 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9847 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9851 if test "${opsys}" = "gnu-linux"; then
9852 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9853 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9854 cat >conftest.
$ac_ext <<_ACEOF
9857 cat confdefs.h
>>conftest.
$ac_ext
9858 cat >>conftest.
$ac_ext <<_ACEOF
9859 /* end confdefs.h. */
9864 XOpenDisplay ("foo");
9869 rm -f conftest.
$ac_objext conftest
$ac_exeext
9870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9871 (eval $ac_link) 2>conftest.er1
9873 grep -v '^ *+' conftest.er1
>conftest.err
9875 cat conftest.err
>&5
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); } &&
9878 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); }; } &&
9884 { ac_try
='test -s conftest$ac_exeext'
9885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889 (exit $ac_status); }; }; then
9890 xlinux_first_failure
=no
9892 echo "$as_me: failed program was:" >&5
9893 sed 's/^/| /' conftest.
$ac_ext >&5
9895 xlinux_first_failure
=yes
9897 rm -f conftest.err conftest.
$ac_objext \
9898 conftest
$ac_exeext conftest.
$ac_ext
9899 if test "${xlinux_first_failure}" = "yes"; then
9900 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9901 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9902 OLD_CPPFLAGS
="$CPPFLAGS"
9904 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9905 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9906 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9907 LIBS
="$LIBS -b i486-linuxaout"
9908 cat >conftest.
$ac_ext <<_ACEOF
9911 cat confdefs.h
>>conftest.
$ac_ext
9912 cat >>conftest.
$ac_ext <<_ACEOF
9913 /* end confdefs.h. */
9918 XOpenDisplay ("foo");
9923 rm -f conftest.
$ac_objext conftest
$ac_exeext
9924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9925 (eval $ac_link) 2>conftest.er1
9927 grep -v '^ *+' conftest.er1
>conftest.err
9929 cat conftest.err
>&5
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); } &&
9932 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); }; } &&
9938 { ac_try
='test -s conftest$ac_exeext'
9939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); }; }; then
9944 xlinux_second_failure
=no
9946 echo "$as_me: failed program was:" >&5
9947 sed 's/^/| /' conftest.
$ac_ext >&5
9949 xlinux_second_failure
=yes
9951 rm -f conftest.err conftest.
$ac_objext \
9952 conftest
$ac_exeext conftest.
$ac_ext
9953 if test "${xlinux_second_failure}" = "yes"; then
9954 # If we get the same failure with -b, there is no use adding -b.
9955 # So take it out. This plays safe.
9956 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
9957 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
9958 CPPFLAGS
="$OLD_CPPFLAGS"
9960 echo "$as_me:$LINENO: result: no" >&5
9961 echo "${ECHO_T}no" >&6
9963 echo "$as_me:$LINENO: result: yes" >&5
9964 echo "${ECHO_T}yes" >&6
9967 echo "$as_me:$LINENO: result: no" >&5
9968 echo "${ECHO_T}no" >&6
9972 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9973 # header files included from there.
9974 echo "$as_me:$LINENO: checking for Xkb" >&5
9975 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9976 cat >conftest.
$ac_ext <<_ACEOF
9979 cat confdefs.h
>>conftest.
$ac_ext
9980 cat >>conftest.
$ac_ext <<_ACEOF
9981 /* end confdefs.h. */
9982 #include <X11/Xlib.h>
9983 #include <X11/XKBlib.h>
9987 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9992 rm -f conftest.
$ac_objext conftest
$ac_exeext
9993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9994 (eval $ac_link) 2>conftest.er1
9996 grep -v '^ *+' conftest.er1
>conftest.err
9998 cat conftest.err
>&5
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); } &&
10001 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10003 (eval $ac_try) 2>&5
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); }; } &&
10007 { ac_try
='test -s conftest$ac_exeext'
10008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10009 (eval $ac_try) 2>&5
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); }; }; then
10015 echo "$as_me: failed program was:" >&5
10016 sed 's/^/| /' conftest.
$ac_ext >&5
10020 rm -f conftest.err conftest.
$ac_objext \
10021 conftest
$ac_exeext conftest.
$ac_ext
10022 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10023 echo "${ECHO_T}$emacs_xkb" >&6
10024 if test $emacs_xkb = yes; then
10026 cat >>confdefs.h
<<\_ACEOF
10027 #define HAVE_XKBGETKEYBOARD 1
10036 for ac_func
in XrmSetDatabase XScreenResourceString \
10037 XScreenNumberOfScreen XSetWMProtocols
10039 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10040 echo "$as_me:$LINENO: checking for $ac_func" >&5
10041 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10042 if eval "test \"\${$as_ac_var+set}\" = set"; then
10043 echo $ECHO_N "(cached) $ECHO_C" >&6
10045 cat >conftest.
$ac_ext <<_ACEOF
10048 cat confdefs.h
>>conftest.
$ac_ext
10049 cat >>conftest.
$ac_ext <<_ACEOF
10050 /* end confdefs.h. */
10051 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10053 #define $ac_func innocuous_$ac_func
10055 /* System header to define __stub macros and hopefully few prototypes,
10056 which can conflict with char $ac_func (); below.
10057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10058 <limits.h> exists even on freestanding compilers. */
10061 # include <limits.h>
10063 # include <assert.h>
10068 /* Override any gcc2 internal prototype to avoid an error. */
10073 /* We use char because int might match the return type of a gcc2
10074 builtin and then its argument prototype would still apply. */
10076 /* The GNU C library defines this for functions which it implements
10077 to always fail with ENOSYS. Some functions are actually named
10078 something starting with __ and the normal name is an alias. */
10079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10082 char (*f) () = $ac_func;
10091 return f != $ac_func;
10096 rm -f conftest.
$ac_objext conftest
$ac_exeext
10097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10098 (eval $ac_link) 2>conftest.er1
10100 grep -v '^ *+' conftest.er1
>conftest.err
10102 cat conftest.err
>&5
10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104 (exit $ac_status); } &&
10105 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10107 (eval $ac_try) 2>&5
10109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110 (exit $ac_status); }; } &&
10111 { ac_try
='test -s conftest$ac_exeext'
10112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10113 (eval $ac_try) 2>&5
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); }; }; then
10117 eval "$as_ac_var=yes"
10119 echo "$as_me: failed program was:" >&5
10120 sed 's/^/| /' conftest.
$ac_ext >&5
10122 eval "$as_ac_var=no"
10124 rm -f conftest.err conftest.
$ac_objext \
10125 conftest
$ac_exeext conftest.
$ac_ext
10127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10128 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10129 if test `eval echo '${'$as_ac_var'}'` = yes; then
10130 cat >>confdefs.h
<<_ACEOF
10131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10139 if test "${window_system}" = "x11"; then
10140 echo "$as_me:$LINENO: checking X11 version 6" >&5
10141 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
10142 if test "${emacs_cv_x11_version_6+set}" = set; then
10143 echo $ECHO_N "(cached) $ECHO_C" >&6
10145 cat >conftest.
$ac_ext <<_ACEOF
10148 cat confdefs.h
>>conftest.
$ac_ext
10149 cat >>conftest.
$ac_ext <<_ACEOF
10150 /* end confdefs.h. */
10151 #include <X11/Xlib.h>
10155 #if XlibSpecificationRelease < 6
10163 rm -f conftest.
$ac_objext conftest
$ac_exeext
10164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10165 (eval $ac_link) 2>conftest.er1
10167 grep -v '^ *+' conftest.er1
>conftest.err
10169 cat conftest.err
>&5
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); } &&
10172 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10174 (eval $ac_try) 2>&5
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); }; } &&
10178 { ac_try
='test -s conftest$ac_exeext'
10179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10180 (eval $ac_try) 2>&5
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); }; }; then
10184 emacs_cv_x11_version_6
=yes
10186 echo "$as_me: failed program was:" >&5
10187 sed 's/^/| /' conftest.
$ac_ext >&5
10189 emacs_cv_x11_version_6
=no
10191 rm -f conftest.err conftest.
$ac_objext \
10192 conftest
$ac_exeext conftest.
$ac_ext
10195 if test $emacs_cv_x11_version_6 = yes; then
10196 echo "$as_me:$LINENO: result: 6 or newer" >&5
10197 echo "${ECHO_T}6 or newer" >&6
10199 cat >>confdefs.h
<<\_ACEOF
10200 #define HAVE_X11R6 1
10204 echo "$as_me:$LINENO: result: before 6" >&5
10205 echo "${ECHO_T}before 6" >&6
10209 if test "${window_system}" = "x11"; then
10210 echo "$as_me:$LINENO: checking X11 version 5" >&5
10211 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
10212 if test "${emacs_cv_x11_version_5+set}" = set; then
10213 echo $ECHO_N "(cached) $ECHO_C" >&6
10215 cat >conftest.
$ac_ext <<_ACEOF
10218 cat confdefs.h
>>conftest.
$ac_ext
10219 cat >>conftest.
$ac_ext <<_ACEOF
10220 /* end confdefs.h. */
10221 #include <X11/Xlib.h>
10225 #if XlibSpecificationRelease < 5
10233 rm -f conftest.
$ac_objext conftest
$ac_exeext
10234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10235 (eval $ac_link) 2>conftest.er1
10237 grep -v '^ *+' conftest.er1
>conftest.err
10239 cat conftest.err
>&5
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); } &&
10242 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10244 (eval $ac_try) 2>&5
10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247 (exit $ac_status); }; } &&
10248 { ac_try
='test -s conftest$ac_exeext'
10249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10250 (eval $ac_try) 2>&5
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); }; }; then
10254 emacs_cv_x11_version_5
=yes
10256 echo "$as_me: failed program was:" >&5
10257 sed 's/^/| /' conftest.
$ac_ext >&5
10259 emacs_cv_x11_version_5
=no
10261 rm -f conftest.err conftest.
$ac_objext \
10262 conftest
$ac_exeext conftest.
$ac_ext
10265 if test $emacs_cv_x11_version_5 = yes; then
10266 echo "$as_me:$LINENO: result: 5 or newer" >&5
10267 echo "${ECHO_T}5 or newer" >&6
10270 cat >>confdefs.h
<<\_ACEOF
10271 #define HAVE_X11R5 1
10276 echo "$as_me:$LINENO: result: before 5" >&5
10277 echo "${ECHO_T}before 5" >&6
10282 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
10283 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10284 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10285 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10286 { (exit 1); exit 1; }; };
10290 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10292 if test "X${with_pkg_config_prog}" != X
; then
10293 PKG_CONFIG
="${with_pkg_config_prog}"
10298 if test -z "$PKG_CONFIG"; then
10299 # Extract the first word of "pkg-config", so it can be a program name with args.
10300 set dummy pkg-config
; ac_word
=$2
10301 echo "$as_me:$LINENO: checking for $ac_word" >&5
10302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10303 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10304 echo $ECHO_N "(cached) $ECHO_C" >&6
10306 case $PKG_CONFIG in
10308 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10311 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10312 for as_dir
in $PATH
10315 test -z "$as_dir" && as_dir
=.
10316 for ac_exec_ext
in '' $ac_executable_extensions; do
10317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10318 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10325 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10329 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10331 if test -n "$PKG_CONFIG"; then
10332 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10333 echo "${ECHO_T}$PKG_CONFIG" >&6
10335 echo "$as_me:$LINENO: result: no" >&5
10336 echo "${ECHO_T}no" >&6
10341 if test "$PKG_CONFIG" = "no" ; then
10342 { { echo "$as_me:$LINENO: error:
10343 *** 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
10344 echo "$as_me: error:
10345 *** 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;}
10346 { (exit 1); exit 1; }; }
10348 PKG_CONFIG_MIN_VERSION
=0.9.0
10349 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10350 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10351 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
10353 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10354 echo "$as_me:$LINENO: result: yes" >&5
10355 echo "${ECHO_T}yes" >&6
10358 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10359 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
10360 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10361 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10362 echo "${ECHO_T}$GTK_CFLAGS" >&6
10364 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10365 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
10366 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
10367 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10368 echo "${ECHO_T}$GTK_LIBS" >&6
10370 echo "$as_me:$LINENO: result: no" >&5
10371 echo "${ECHO_T}no" >&6
10374 ## If we have a custom action on failure, don't print errors, but
10375 ## do set a variable so people can do so.
10376 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10377 echo $GTK_PKG_ERRORS
10383 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10384 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10388 if test $succeeded = yes; then
10391 { { 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
10392 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;}
10393 { (exit 1); exit 1; }; }
10398 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10399 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10400 LIBS
="$GTK_LIBS $LIBS"
10403 cat >>confdefs.h
<<\_ACEOF
10409 if test "$with_toolkit_scroll_bars" != no
; then
10410 with_toolkit_scroll_bars
=yes
10413 HAVE_GTK_MULTIDISPLAY
=no
10415 for ac_func
in gdk_display_open
10417 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10418 echo "$as_me:$LINENO: checking for $ac_func" >&5
10419 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10420 if eval "test \"\${$as_ac_var+set}\" = set"; then
10421 echo $ECHO_N "(cached) $ECHO_C" >&6
10423 cat >conftest.
$ac_ext <<_ACEOF
10426 cat confdefs.h
>>conftest.
$ac_ext
10427 cat >>conftest.
$ac_ext <<_ACEOF
10428 /* end confdefs.h. */
10429 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10431 #define $ac_func innocuous_$ac_func
10433 /* System header to define __stub macros and hopefully few prototypes,
10434 which can conflict with char $ac_func (); below.
10435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10436 <limits.h> exists even on freestanding compilers. */
10439 # include <limits.h>
10441 # include <assert.h>
10446 /* Override any gcc2 internal prototype to avoid an error. */
10451 /* We use char because int might match the return type of a gcc2
10452 builtin and then its argument prototype would still apply. */
10454 /* The GNU C library defines this for functions which it implements
10455 to always fail with ENOSYS. Some functions are actually named
10456 something starting with __ and the normal name is an alias. */
10457 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10460 char (*f) () = $ac_func;
10469 return f != $ac_func;
10474 rm -f conftest.
$ac_objext conftest
$ac_exeext
10475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10476 (eval $ac_link) 2>conftest.er1
10478 grep -v '^ *+' conftest.er1
>conftest.err
10480 cat conftest.err
>&5
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); } &&
10483 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10485 (eval $ac_try) 2>&5
10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 (exit $ac_status); }; } &&
10489 { ac_try
='test -s conftest$ac_exeext'
10490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10491 (eval $ac_try) 2>&5
10493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494 (exit $ac_status); }; }; then
10495 eval "$as_ac_var=yes"
10497 echo "$as_me: failed program was:" >&5
10498 sed 's/^/| /' conftest.
$ac_ext >&5
10500 eval "$as_ac_var=no"
10502 rm -f conftest.err conftest.
$ac_objext \
10503 conftest
$ac_exeext conftest.
$ac_ext
10505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10506 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10507 if test `eval echo '${'$as_ac_var'}'` = yes; then
10508 cat >>confdefs.h
<<_ACEOF
10509 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10511 HAVE_GTK_MULTIDISPLAY
=yes
10515 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
10517 cat >>confdefs.h
<<\_ACEOF
10518 #define HAVE_GTK_MULTIDISPLAY 1
10522 HAVE_GTK_FILE_SELECTION
=no
10524 for ac_func
in gtk_file_selection_new
10526 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10527 echo "$as_me:$LINENO: checking for $ac_func" >&5
10528 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10529 if eval "test \"\${$as_ac_var+set}\" = set"; then
10530 echo $ECHO_N "(cached) $ECHO_C" >&6
10532 cat >conftest.
$ac_ext <<_ACEOF
10535 cat confdefs.h
>>conftest.
$ac_ext
10536 cat >>conftest.
$ac_ext <<_ACEOF
10537 /* end confdefs.h. */
10538 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10539 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10540 #define $ac_func innocuous_$ac_func
10542 /* System header to define __stub macros and hopefully few prototypes,
10543 which can conflict with char $ac_func (); below.
10544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10545 <limits.h> exists even on freestanding compilers. */
10548 # include <limits.h>
10550 # include <assert.h>
10555 /* Override any gcc2 internal prototype to avoid an error. */
10560 /* We use char because int might match the return type of a gcc2
10561 builtin and then its argument prototype would still apply. */
10563 /* The GNU C library defines this for functions which it implements
10564 to always fail with ENOSYS. Some functions are actually named
10565 something starting with __ and the normal name is an alias. */
10566 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10569 char (*f) () = $ac_func;
10578 return f != $ac_func;
10583 rm -f conftest.
$ac_objext conftest
$ac_exeext
10584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10585 (eval $ac_link) 2>conftest.er1
10587 grep -v '^ *+' conftest.er1
>conftest.err
10589 cat conftest.err
>&5
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); } &&
10592 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10594 (eval $ac_try) 2>&5
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); }; } &&
10598 { ac_try
='test -s conftest$ac_exeext'
10599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10600 (eval $ac_try) 2>&5
10602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603 (exit $ac_status); }; }; then
10604 eval "$as_ac_var=yes"
10606 echo "$as_me: failed program was:" >&5
10607 sed 's/^/| /' conftest.
$ac_ext >&5
10609 eval "$as_ac_var=no"
10611 rm -f conftest.err conftest.
$ac_objext \
10612 conftest
$ac_exeext conftest.
$ac_ext
10614 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10615 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10616 if test `eval echo '${'$as_ac_var'}'` = yes; then
10617 cat >>confdefs.h
<<_ACEOF
10618 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10620 HAVE_GTK_FILE_SELECTION
=yes
10625 HAVE_GTK_FILE_CHOOSER
=no
10627 for ac_func
in gtk_file_chooser_dialog_new
10629 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10630 echo "$as_me:$LINENO: checking for $ac_func" >&5
10631 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10632 if eval "test \"\${$as_ac_var+set}\" = set"; then
10633 echo $ECHO_N "(cached) $ECHO_C" >&6
10635 cat >conftest.
$ac_ext <<_ACEOF
10638 cat confdefs.h
>>conftest.
$ac_ext
10639 cat >>conftest.
$ac_ext <<_ACEOF
10640 /* end confdefs.h. */
10641 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10642 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10643 #define $ac_func innocuous_$ac_func
10645 /* System header to define __stub macros and hopefully few prototypes,
10646 which can conflict with char $ac_func (); below.
10647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10648 <limits.h> exists even on freestanding compilers. */
10651 # include <limits.h>
10653 # include <assert.h>
10658 /* Override any gcc2 internal prototype to avoid an error. */
10663 /* We use char because int might match the return type of a gcc2
10664 builtin and then its argument prototype would still apply. */
10666 /* The GNU C library defines this for functions which it implements
10667 to always fail with ENOSYS. Some functions are actually named
10668 something starting with __ and the normal name is an alias. */
10669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10672 char (*f) () = $ac_func;
10681 return f != $ac_func;
10686 rm -f conftest.
$ac_objext conftest
$ac_exeext
10687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10688 (eval $ac_link) 2>conftest.er1
10690 grep -v '^ *+' conftest.er1
>conftest.err
10692 cat conftest.err
>&5
10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); } &&
10695 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10697 (eval $ac_try) 2>&5
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); }; } &&
10701 { ac_try
='test -s conftest$ac_exeext'
10702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10703 (eval $ac_try) 2>&5
10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); }; }; then
10707 eval "$as_ac_var=yes"
10709 echo "$as_me: failed program was:" >&5
10710 sed 's/^/| /' conftest.
$ac_ext >&5
10712 eval "$as_ac_var=no"
10714 rm -f conftest.err conftest.
$ac_objext \
10715 conftest
$ac_exeext conftest.
$ac_ext
10717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10718 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10719 if test `eval echo '${'$as_ac_var'}'` = yes; then
10720 cat >>confdefs.h
<<_ACEOF
10721 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10723 HAVE_GTK_FILE_CHOOSER
=yes
10728 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10729 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10731 cat >>confdefs.h
<<\_ACEOF
10732 #define HAVE_GTK_FILE_BOTH 1
10737 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10738 HAVE_GTK_AND_PTHREAD
=no
10740 for ac_header
in pthread.h
10742 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10744 echo "$as_me:$LINENO: checking for $ac_header" >&5
10745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10747 echo $ECHO_N "(cached) $ECHO_C" >&6
10749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10750 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10752 # Is the header compilable?
10753 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10754 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10755 cat >conftest.
$ac_ext <<_ACEOF
10758 cat confdefs.h
>>conftest.
$ac_ext
10759 cat >>conftest.
$ac_ext <<_ACEOF
10760 /* end confdefs.h. */
10761 $ac_includes_default
10762 #include <$ac_header>
10764 rm -f conftest.
$ac_objext
10765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10766 (eval $ac_compile) 2>conftest.er1
10768 grep -v '^ *+' conftest.er1
>conftest.err
10770 cat conftest.err
>&5
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); } &&
10773 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10775 (eval $ac_try) 2>&5
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); }; } &&
10779 { ac_try
='test -s conftest.$ac_objext'
10780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10781 (eval $ac_try) 2>&5
10783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784 (exit $ac_status); }; }; then
10785 ac_header_compiler
=yes
10787 echo "$as_me: failed program was:" >&5
10788 sed 's/^/| /' conftest.
$ac_ext >&5
10790 ac_header_compiler
=no
10792 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10793 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10794 echo "${ECHO_T}$ac_header_compiler" >&6
10796 # Is the header present?
10797 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10798 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10799 cat >conftest.
$ac_ext <<_ACEOF
10802 cat confdefs.h
>>conftest.
$ac_ext
10803 cat >>conftest.
$ac_ext <<_ACEOF
10804 /* end confdefs.h. */
10805 #include <$ac_header>
10807 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10808 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10810 grep -v '^ *+' conftest.er1
>conftest.err
10812 cat conftest.err
>&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); } >/dev
/null
; then
10815 if test -s conftest.err
; then
10816 ac_cpp_err
=$ac_c_preproc_warn_flag
10817 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10824 if test -z "$ac_cpp_err"; then
10825 ac_header_preproc
=yes
10827 echo "$as_me: failed program was:" >&5
10828 sed 's/^/| /' conftest.
$ac_ext >&5
10830 ac_header_preproc
=no
10832 rm -f conftest.err conftest.
$ac_ext
10833 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10834 echo "${ECHO_T}$ac_header_preproc" >&6
10836 # So? What about this header?
10837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10839 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10840 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10842 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10843 ac_header_preproc
=yes
10846 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10847 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10848 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10849 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10850 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10851 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10852 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10853 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10854 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10855 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10856 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10857 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10860 ## ------------------------------------------ ##
10861 ## Report this to the AC_PACKAGE_NAME lists. ##
10862 ## ------------------------------------------ ##
10865 sed "s/^/$as_me: WARNING: /" >&2
10868 echo "$as_me:$LINENO: checking for $ac_header" >&5
10869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10871 echo $ECHO_N "(cached) $ECHO_C" >&6
10873 eval "$as_ac_Header=\$ac_header_preproc"
10875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10876 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10880 cat >>confdefs.h
<<_ACEOF
10881 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10888 if test "$ac_cv_header_pthread_h"; then
10889 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10890 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10891 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10892 echo $ECHO_N "(cached) $ECHO_C" >&6
10894 ac_check_lib_save_LIBS
=$LIBS
10895 LIBS
="-lpthread $LIBS"
10896 cat >conftest.
$ac_ext <<_ACEOF
10899 cat confdefs.h
>>conftest.
$ac_ext
10900 cat >>conftest.
$ac_ext <<_ACEOF
10901 /* end confdefs.h. */
10903 /* Override any gcc2 internal prototype to avoid an error. */
10907 /* We use char because int might match the return type of a gcc2
10908 builtin and then its argument prototype would still apply. */
10909 char pthread_self ();
10918 rm -f conftest.
$ac_objext conftest
$ac_exeext
10919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10920 (eval $ac_link) 2>conftest.er1
10922 grep -v '^ *+' conftest.er1
>conftest.err
10924 cat conftest.err
>&5
10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); } &&
10927 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10929 (eval $ac_try) 2>&5
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); }; } &&
10933 { ac_try
='test -s conftest$ac_exeext'
10934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10935 (eval $ac_try) 2>&5
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); }; }; then
10939 ac_cv_lib_pthread_pthread_self
=yes
10941 echo "$as_me: failed program was:" >&5
10942 sed 's/^/| /' conftest.
$ac_ext >&5
10944 ac_cv_lib_pthread_pthread_self
=no
10946 rm -f conftest.err conftest.
$ac_objext \
10947 conftest
$ac_exeext conftest.
$ac_ext
10948 LIBS
=$ac_check_lib_save_LIBS
10950 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10951 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10952 if test $ac_cv_lib_pthread_pthread_self = yes; then
10953 HAVE_GTK_AND_PTHREAD
=yes
10957 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10958 GTK_LIBS
="$GTK_LIBS -lpthread"
10960 cat >>confdefs.h
<<\_ACEOF
10961 #define HAVE_GTK_AND_PTHREAD 1
10968 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
10969 if test x
"${HAVE_X11R5}" = xyes
; then
10970 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
10971 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
10972 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
10973 echo $ECHO_N "(cached) $ECHO_C" >&6
10975 cat >conftest.
$ac_ext <<_ACEOF
10978 cat confdefs.h
>>conftest.
$ac_ext
10979 cat >>conftest.
$ac_ext <<_ACEOF
10980 /* end confdefs.h. */
10982 #include <X11/Intrinsic.h>
10983 #include <X11/Xaw/Simple.h>
10992 rm -f conftest.
$ac_objext conftest
$ac_exeext
10993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10994 (eval $ac_link) 2>conftest.er1
10996 grep -v '^ *+' conftest.er1
>conftest.err
10998 cat conftest.err
>&5
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); } &&
11001 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11003 (eval $ac_try) 2>&5
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); }; } &&
11007 { ac_try
='test -s conftest$ac_exeext'
11008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11009 (eval $ac_try) 2>&5
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); }; }; then
11013 emacs_cv_x11_version_5_with_xaw
=yes
11015 echo "$as_me: failed program was:" >&5
11016 sed 's/^/| /' conftest.
$ac_ext >&5
11018 emacs_cv_x11_version_5_with_xaw
=no
11020 rm -f conftest.err conftest.
$ac_objext \
11021 conftest
$ac_exeext conftest.
$ac_ext
11024 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11025 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11026 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
11027 USE_X_TOOLKIT
=LUCID
11029 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11030 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
11038 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
11040 if test "${USE_X_TOOLKIT}" != "none"; then
11041 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11042 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
11043 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11044 echo $ECHO_N "(cached) $ECHO_C" >&6
11046 cat >conftest.
$ac_ext <<_ACEOF
11049 cat confdefs.h
>>conftest.
$ac_ext
11050 cat >>conftest.
$ac_ext <<_ACEOF
11051 /* end confdefs.h. */
11052 #include <X11/Intrinsic.h>
11056 #if XtSpecificationRelease < 6
11064 rm -f conftest.
$ac_objext conftest
$ac_exeext
11065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11066 (eval $ac_link) 2>conftest.er1
11068 grep -v '^ *+' conftest.er1
>conftest.err
11070 cat conftest.err
>&5
11071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072 (exit $ac_status); } &&
11073 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11075 (eval $ac_try) 2>&5
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); }; } &&
11079 { ac_try
='test -s conftest$ac_exeext'
11080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11081 (eval $ac_try) 2>&5
11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); }; }; then
11085 emacs_cv_x11_toolkit_version_6
=yes
11087 echo "$as_me: failed program was:" >&5
11088 sed 's/^/| /' conftest.
$ac_ext >&5
11090 emacs_cv_x11_toolkit_version_6
=no
11092 rm -f conftest.err conftest.
$ac_objext \
11093 conftest
$ac_exeext conftest.
$ac_ext
11096 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11097 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11098 echo "$as_me:$LINENO: result: 6 or newer" >&5
11099 echo "${ECHO_T}6 or newer" >&6
11101 cat >>confdefs.h
<<\_ACEOF
11102 #define HAVE_X11XTR6 1
11106 echo "$as_me:$LINENO: result: before 6" >&5
11107 echo "${ECHO_T}before 6" >&6
11111 if test x
$HAVE_X11XTR6 = xyes
; then
11112 LIBS
="-lXt -lSM -lICE $LIBS"
11117 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11118 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
11119 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11120 echo $ECHO_N "(cached) $ECHO_C" >&6
11122 ac_check_lib_save_LIBS
=$LIBS
11124 cat >conftest.
$ac_ext <<_ACEOF
11127 cat confdefs.h
>>conftest.
$ac_ext
11128 cat >>conftest.
$ac_ext <<_ACEOF
11129 /* end confdefs.h. */
11131 /* Override any gcc2 internal prototype to avoid an error. */
11135 /* We use char because int might match the return type of a gcc2
11136 builtin and then its argument prototype would still apply. */
11137 char XmuConvertStandardSelection ();
11141 XmuConvertStandardSelection ();
11146 rm -f conftest.
$ac_objext conftest
$ac_exeext
11147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11148 (eval $ac_link) 2>conftest.er1
11150 grep -v '^ *+' conftest.er1
>conftest.err
11152 cat conftest.err
>&5
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); } &&
11155 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11157 (eval $ac_try) 2>&5
11159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160 (exit $ac_status); }; } &&
11161 { ac_try
='test -s conftest$ac_exeext'
11162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11163 (eval $ac_try) 2>&5
11165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); }; }; then
11167 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11169 echo "$as_me: failed program was:" >&5
11170 sed 's/^/| /' conftest.
$ac_ext >&5
11172 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11174 rm -f conftest.err conftest.
$ac_objext \
11175 conftest
$ac_exeext conftest.
$ac_ext
11176 LIBS
=$ac_check_lib_save_LIBS
11178 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11179 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
11180 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11181 cat >>confdefs.h
<<_ACEOF
11182 #define HAVE_LIBXMU 1
11189 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
11192 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11193 if test "${HAVE_X11}" = "yes"; then
11194 if test "${USE_X_TOOLKIT}" != "none"; then
11196 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11197 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
11198 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11199 echo $ECHO_N "(cached) $ECHO_C" >&6
11201 ac_check_lib_save_LIBS
=$LIBS
11202 LIBS
="-lXext $LIBS"
11203 cat >conftest.
$ac_ext <<_ACEOF
11206 cat confdefs.h
>>conftest.
$ac_ext
11207 cat >>conftest.
$ac_ext <<_ACEOF
11208 /* end confdefs.h. */
11210 /* Override any gcc2 internal prototype to avoid an error. */
11214 /* We use char because int might match the return type of a gcc2
11215 builtin and then its argument prototype would still apply. */
11216 char XShapeQueryExtension ();
11220 XShapeQueryExtension ();
11225 rm -f conftest.
$ac_objext conftest
$ac_exeext
11226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11227 (eval $ac_link) 2>conftest.er1
11229 grep -v '^ *+' conftest.er1
>conftest.err
11231 cat conftest.err
>&5
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); } &&
11234 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11236 (eval $ac_try) 2>&5
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); }; } &&
11240 { ac_try
='test -s conftest$ac_exeext'
11241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11242 (eval $ac_try) 2>&5
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); }; }; then
11246 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11248 echo "$as_me: failed program was:" >&5
11249 sed 's/^/| /' conftest.
$ac_ext >&5
11251 ac_cv_lib_Xext_XShapeQueryExtension
=no
11253 rm -f conftest.err conftest.
$ac_objext \
11254 conftest
$ac_exeext conftest.
$ac_ext
11255 LIBS
=$ac_check_lib_save_LIBS
11257 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11258 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
11259 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11260 cat >>confdefs.h
<<_ACEOF
11261 #define HAVE_LIBXEXT 1
11264 LIBS
="-lXext $LIBS"
11271 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11272 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11273 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
11274 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11275 echo $ECHO_N "(cached) $ECHO_C" >&6
11277 cat >conftest.
$ac_ext <<_ACEOF
11280 cat confdefs.h
>>conftest.
$ac_ext
11281 cat >>conftest.
$ac_ext <<_ACEOF
11282 /* end confdefs.h. */
11287 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11290 Motif version prior to 2.1.
11296 rm -f conftest.
$ac_objext
11297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11298 (eval $ac_compile) 2>conftest.er1
11300 grep -v '^ *+' conftest.er1
>conftest.err
11302 cat conftest.err
>&5
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); } &&
11305 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11307 (eval $ac_try) 2>&5
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); }; } &&
11311 { ac_try
='test -s conftest.$ac_objext'
11312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11313 (eval $ac_try) 2>&5
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); }; }; then
11317 emacs_cv_motif_version_2_1
=yes
11319 echo "$as_me: failed program was:" >&5
11320 sed 's/^/| /' conftest.
$ac_ext >&5
11322 emacs_cv_motif_version_2_1
=no
11324 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11326 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
11327 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
11328 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
11329 if test $emacs_cv_motif_version_2_1 = yes; then
11332 cat >>confdefs.h
<<\_ACEOF
11333 #define HAVE_MOTIF_2_1 1
11336 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
11337 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
11338 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
11339 echo $ECHO_N "(cached) $ECHO_C" >&6
11341 ac_check_lib_save_LIBS
=$LIBS
11343 cat >conftest.
$ac_ext <<_ACEOF
11346 cat confdefs.h
>>conftest.
$ac_ext
11347 cat >>conftest.
$ac_ext <<_ACEOF
11348 /* end confdefs.h. */
11350 /* Override any gcc2 internal prototype to avoid an error. */
11354 /* We use char because int might match the return type of a gcc2
11355 builtin and then its argument prototype would still apply. */
11356 char XpCreateContext ();
11360 XpCreateContext ();
11365 rm -f conftest.
$ac_objext conftest
$ac_exeext
11366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11367 (eval $ac_link) 2>conftest.er1
11369 grep -v '^ *+' conftest.er1
>conftest.err
11371 cat conftest.err
>&5
11372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373 (exit $ac_status); } &&
11374 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11376 (eval $ac_try) 2>&5
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); }; } &&
11380 { ac_try
='test -s conftest$ac_exeext'
11381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11382 (eval $ac_try) 2>&5
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); }; }; then
11386 ac_cv_lib_Xp_XpCreateContext
=yes
11388 echo "$as_me: failed program was:" >&5
11389 sed 's/^/| /' conftest.
$ac_ext >&5
11391 ac_cv_lib_Xp_XpCreateContext
=no
11393 rm -f conftest.err conftest.
$ac_objext \
11394 conftest
$ac_exeext conftest.
$ac_ext
11395 LIBS
=$ac_check_lib_save_LIBS
11397 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11398 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
11399 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
11403 if test ${HAVE_LIBXP} = yes; then
11405 cat >>confdefs.h
<<\_ACEOF
11406 #define HAVE_LIBXP 1
11411 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
11412 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
11413 if test "${emacs_cv_lesstif+set}" = set; then
11414 echo $ECHO_N "(cached) $ECHO_C" >&6
11416 # We put this in CFLAGS temporarily to precede other -I options
11417 # that might be in CFLAGS temporarily.
11418 # We put this in CPPFLAGS where it precedes the other -I options.
11419 OLD_CPPFLAGS
=$CPPFLAGS
11421 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11422 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11423 cat >conftest.
$ac_ext <<_ACEOF
11426 cat confdefs.h
>>conftest.
$ac_ext
11427 cat >>conftest.
$ac_ext <<_ACEOF
11428 /* end confdefs.h. */
11429 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11438 rm -f conftest.
$ac_objext
11439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11440 (eval $ac_compile) 2>conftest.er1
11442 grep -v '^ *+' conftest.er1
>conftest.err
11444 cat conftest.err
>&5
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); } &&
11447 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11449 (eval $ac_try) 2>&5
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); }; } &&
11453 { ac_try
='test -s conftest.$ac_objext'
11454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11455 (eval $ac_try) 2>&5
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); }; }; then
11459 emacs_cv_lesstif
=yes
11461 echo "$as_me: failed program was:" >&5
11462 sed 's/^/| /' conftest.
$ac_ext >&5
11464 emacs_cv_lesstif
=no
11466 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11468 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
11469 echo "${ECHO_T}$emacs_cv_lesstif" >&6
11470 if test $emacs_cv_lesstif = yes; then
11471 # Make sure this -I option remains in CPPFLAGS after it is set
11472 # back to REAL_CPPFLAGS.
11473 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11474 # have those other -I options anyway. Ultimately, having this
11475 # directory ultimately in CPPFLAGS will be enough.
11476 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11477 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11480 CPPFLAGS
=$OLD_CPPFLAGS
11485 ### Is -lXaw3d available?
11487 if test "${HAVE_X11}" = "yes"; then
11488 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
11489 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11490 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
11491 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11492 echo $ECHO_N "(cached) $ECHO_C" >&6
11494 cat >conftest.
$ac_ext <<_ACEOF
11497 cat confdefs.h
>>conftest.
$ac_ext
11498 cat >>conftest.
$ac_ext <<_ACEOF
11499 /* end confdefs.h. */
11500 #include <X11/Xaw3d/Scrollbar.h>
11502 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11503 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11505 grep -v '^ *+' conftest.er1
>conftest.err
11507 cat conftest.err
>&5
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); } >/dev
/null
; then
11510 if test -s conftest.err
; then
11511 ac_cpp_err
=$ac_c_preproc_warn_flag
11512 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11519 if test -z "$ac_cpp_err"; then
11520 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
11522 echo "$as_me: failed program was:" >&5
11523 sed 's/^/| /' conftest.
$ac_ext >&5
11525 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
11527 rm -f conftest.err conftest.
$ac_ext
11529 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11530 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11531 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11532 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11533 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11534 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11535 echo $ECHO_N "(cached) $ECHO_C" >&6
11537 ac_check_lib_save_LIBS
=$LIBS
11538 LIBS
="-lXaw3d $LIBS"
11539 cat >conftest.
$ac_ext <<_ACEOF
11542 cat confdefs.h
>>conftest.
$ac_ext
11543 cat >>conftest.
$ac_ext <<_ACEOF
11544 /* end confdefs.h. */
11546 /* Override any gcc2 internal prototype to avoid an error. */
11550 /* We use char because int might match the return type of a gcc2
11551 builtin and then its argument prototype would still apply. */
11552 char XawScrollbarSetThumb ();
11556 XawScrollbarSetThumb ();
11561 rm -f conftest.
$ac_objext conftest
$ac_exeext
11562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11563 (eval $ac_link) 2>conftest.er1
11565 grep -v '^ *+' conftest.er1
>conftest.err
11567 cat conftest.err
>&5
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); } &&
11570 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11572 (eval $ac_try) 2>&5
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); }; } &&
11576 { ac_try
='test -s conftest$ac_exeext'
11577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11578 (eval $ac_try) 2>&5
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); }; }; then
11582 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11584 echo "$as_me: failed program was:" >&5
11585 sed 's/^/| /' conftest.
$ac_ext >&5
11587 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11589 rm -f conftest.err conftest.
$ac_objext \
11590 conftest
$ac_exeext conftest.
$ac_ext
11591 LIBS
=$ac_check_lib_save_LIBS
11593 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11594 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11595 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11602 if test "${HAVE_XAW3D}" = "yes"; then
11604 cat >>confdefs.h
<<\_ACEOF
11605 #define HAVE_XAW3D 1
11614 USE_TOOLKIT_SCROLL_BARS
=no
11615 if test "${with_toolkit_scroll_bars}" != "no"; then
11616 if test "${USE_X_TOOLKIT}" != "none"; then
11617 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11618 cat >>confdefs.h
<<\_ACEOF
11619 #define USE_TOOLKIT_SCROLL_BARS 1
11623 USE_TOOLKIT_SCROLL_BARS
=yes
11624 elif test "${HAVE_XAW3D}" = "yes"; then
11625 cat >>confdefs.h
<<\_ACEOF
11626 #define USE_TOOLKIT_SCROLL_BARS 1
11629 USE_TOOLKIT_SCROLL_BARS
=yes
11631 elif test "${HAVE_GTK}" = "yes"; then
11632 cat >>confdefs.h
<<\_ACEOF
11633 #define USE_TOOLKIT_SCROLL_BARS 1
11636 USE_TOOLKIT_SCROLL_BARS
=yes
11637 elif test "${HAVE_CARBON}" = "yes"; then
11638 cat >>confdefs.h
<<\_ACEOF
11639 #define USE_TOOLKIT_SCROLL_BARS 1
11642 USE_TOOLKIT_SCROLL_BARS
=yes
11646 cat >conftest.
$ac_ext <<_ACEOF
11649 cat confdefs.h
>>conftest.
$ac_ext
11650 cat >>conftest.
$ac_ext <<_ACEOF
11651 /* end confdefs.h. */
11653 #include <X11/Xlib.h>
11654 #include <X11/Xresource.h>
11663 rm -f conftest.
$ac_objext
11664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11665 (eval $ac_compile) 2>conftest.er1
11667 grep -v '^ *+' conftest.er1
>conftest.err
11669 cat conftest.err
>&5
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); } &&
11672 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11674 (eval $ac_try) 2>&5
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); }; } &&
11678 { ac_try
='test -s conftest.$ac_objext'
11679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11680 (eval $ac_try) 2>&5
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); }; }; then
11686 cat >>confdefs.h
<<\_ACEOF
11691 echo "$as_me: failed program was:" >&5
11692 sed 's/^/| /' conftest.
$ac_ext >&5
11696 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11699 if test "${with_xim}" != "no"; then
11701 cat >>confdefs.h
<<\_ACEOF
11708 if test "${HAVE_XIM}" != "no"; then
11709 late_CFLAGS
=$CFLAGS
11710 if test "$GCC" = yes; then
11711 CFLAGS
="$CFLAGS --pedantic-errors"
11713 cat >conftest.
$ac_ext <<_ACEOF
11716 cat confdefs.h
>>conftest.
$ac_ext
11717 cat >>conftest.
$ac_ext <<_ACEOF
11718 /* end confdefs.h. */
11720 #include <X11/Xlib.h>
11721 #include <X11/Xresource.h>
11730 XPointer *client_data;
11732 /* If we're not using GCC, it's probably not XFree86, and this is
11733 probably right, but we can't use something like --pedantic-errors. */
11734 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11735 char*, XIMProc, XPointer*);
11737 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11743 rm -f conftest.
$ac_objext
11744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11745 (eval $ac_compile) 2>conftest.er1
11747 grep -v '^ *+' conftest.er1
>conftest.err
11749 cat conftest.err
>&5
11750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751 (exit $ac_status); } &&
11752 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11754 (eval $ac_try) 2>&5
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); }; } &&
11758 { ac_try
='test -s conftest.$ac_objext'
11759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11760 (eval $ac_try) 2>&5
11762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763 (exit $ac_status); }; }; then
11764 emacs_cv_arg6_star
=yes
11766 echo "$as_me: failed program was:" >&5
11767 sed 's/^/| /' conftest.
$ac_ext >&5
11770 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11772 if test "$emacs_cv_arg6_star" = yes; then
11773 cat >>confdefs.h
<<\_ACEOF
11774 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11778 cat >>confdefs.h
<<\_ACEOF
11779 #define XRegisterIMInstantiateCallback_arg6 XPointer
11783 CFLAGS
=$late_CFLAGS
11786 ### For font-backend
11787 if test "${USE_FONT_BACKEND}" = "yes"; then
11790 cat >>confdefs.h
<<\_ACEOF
11791 #define USE_FONT_BACKEND 1
11795 ### Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
11797 if test "${HAVE_X11}" = "yes"; then
11798 if test "x${with_freetype}" = "xno"; then
11801 if test "x${with_xft}" != "xno"; then
11803 if test "X${with_pkg_config_prog}" != X
; then
11804 PKG_CONFIG
="${with_pkg_config_prog}"
11810 if test -z "$PKG_CONFIG"; then
11811 # Extract the first word of "pkg-config", so it can be a program name with args.
11812 set dummy pkg-config
; ac_word
=$2
11813 echo "$as_me:$LINENO: checking for $ac_word" >&5
11814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11815 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11816 echo $ECHO_N "(cached) $ECHO_C" >&6
11818 case $PKG_CONFIG in
11820 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11823 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11824 for as_dir
in $PATH
11827 test -z "$as_dir" && as_dir
=.
11828 for ac_exec_ext
in '' $ac_executable_extensions; do
11829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11830 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11837 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11841 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11843 if test -n "$PKG_CONFIG"; then
11844 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11845 echo "${ECHO_T}$PKG_CONFIG" >&6
11847 echo "$as_me:$LINENO: result: no" >&5
11848 echo "${ECHO_T}no" >&6
11853 if test "$PKG_CONFIG" = "no" ; then
11854 echo "*** The pkg-config script could not be found. Make sure it is"
11855 echo "*** in your path, or give the full path to pkg-config with"
11856 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
11857 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11859 PKG_CONFIG_MIN_VERSION
=0.9.0
11860 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11861 echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11862 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6
11864 if $PKG_CONFIG --exists "xft >= 0.13.0" ; then
11865 echo "$as_me:$LINENO: result: yes" >&5
11866 echo "${ECHO_T}yes" >&6
11869 echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11870 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6
11871 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"`
11872 echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11873 echo "${ECHO_T}$XFT_CFLAGS" >&6
11875 echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11876 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6
11877 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"`
11878 echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11879 echo "${ECHO_T}$XFT_LIBS" >&6
11883 ## If we have a custom action on failure, don't print errors, but
11884 ## do set a variable so people can do so.
11885 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11892 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11893 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11897 if test $succeeded = yes; then
11903 if test "$HAVE_XFT" != no
; then
11904 OLD_CPPFLAGS
="$CPPFLAGS"
11905 OLD_CFLAGS
="$CFLAGS"
11907 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
11908 CFLAGS
="$CFLAGS $XFT_CFLAGS"
11909 LIBS
="$XFT_LIBS $LIBS"
11910 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11911 echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11912 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6
11913 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11914 echo $ECHO_N "(cached) $ECHO_C" >&6
11916 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11917 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6
11919 # Is the header compilable?
11920 echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11921 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6
11922 cat >conftest.
$ac_ext <<_ACEOF
11925 cat confdefs.h
>>conftest.
$ac_ext
11926 cat >>conftest.
$ac_ext <<_ACEOF
11927 /* end confdefs.h. */
11928 $ac_includes_default
11929 #include <X11/Xft/Xft.h>
11931 rm -f conftest.
$ac_objext
11932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11933 (eval $ac_compile) 2>conftest.er1
11935 grep -v '^ *+' conftest.er1
>conftest.err
11937 cat conftest.err
>&5
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); } &&
11940 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11942 (eval $ac_try) 2>&5
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); }; } &&
11946 { ac_try
='test -s conftest.$ac_objext'
11947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11948 (eval $ac_try) 2>&5
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); }; }; then
11952 ac_header_compiler
=yes
11954 echo "$as_me: failed program was:" >&5
11955 sed 's/^/| /' conftest.
$ac_ext >&5
11957 ac_header_compiler
=no
11959 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11960 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11961 echo "${ECHO_T}$ac_header_compiler" >&6
11963 # Is the header present?
11964 echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
11965 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6
11966 cat >conftest.
$ac_ext <<_ACEOF
11969 cat confdefs.h
>>conftest.
$ac_ext
11970 cat >>conftest.
$ac_ext <<_ACEOF
11971 /* end confdefs.h. */
11972 #include <X11/Xft/Xft.h>
11974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11975 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11977 grep -v '^ *+' conftest.er1
>conftest.err
11979 cat conftest.err
>&5
11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); } >/dev
/null
; then
11982 if test -s conftest.err
; then
11983 ac_cpp_err
=$ac_c_preproc_warn_flag
11984 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11991 if test -z "$ac_cpp_err"; then
11992 ac_header_preproc
=yes
11994 echo "$as_me: failed program was:" >&5
11995 sed 's/^/| /' conftest.
$ac_ext >&5
11997 ac_header_preproc
=no
11999 rm -f conftest.err conftest.
$ac_ext
12000 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12001 echo "${ECHO_T}$ac_header_preproc" >&6
12003 # So? What about this header?
12004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12006 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12007 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12008 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12009 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12010 ac_header_preproc
=yes
12013 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12014 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12015 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12016 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12017 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12018 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12019 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12020 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12021 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12022 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12023 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12024 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12027 ## ------------------------------------------ ##
12028 ## Report this to the AC_PACKAGE_NAME lists. ##
12029 ## ------------------------------------------ ##
12032 sed "s/^/$as_me: WARNING: /" >&2
12035 echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12036 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6
12037 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12038 echo $ECHO_N "(cached) $ECHO_C" >&6
12040 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
12042 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12043 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6
12046 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12047 echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12048 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6
12049 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12050 echo $ECHO_N "(cached) $ECHO_C" >&6
12052 ac_check_lib_save_LIBS
=$LIBS
12053 LIBS
="-lXft $XFT_LIBS $LIBS"
12054 cat >conftest.
$ac_ext <<_ACEOF
12057 cat confdefs.h
>>conftest.
$ac_ext
12058 cat >>conftest.
$ac_ext <<_ACEOF
12059 /* end confdefs.h. */
12061 /* Override any gcc2 internal prototype to avoid an error. */
12065 /* We use char because int might match the return type of a gcc2
12066 builtin and then its argument prototype would still apply. */
12067 char XftFontOpen ();
12076 rm -f conftest.
$ac_objext conftest
$ac_exeext
12077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12078 (eval $ac_link) 2>conftest.er1
12080 grep -v '^ *+' conftest.er1
>conftest.err
12082 cat conftest.err
>&5
12083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084 (exit $ac_status); } &&
12085 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12087 (eval $ac_try) 2>&5
12089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090 (exit $ac_status); }; } &&
12091 { ac_try
='test -s conftest$ac_exeext'
12092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12093 (eval $ac_try) 2>&5
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); }; }; then
12097 ac_cv_lib_Xft_XftFontOpen
=yes
12099 echo "$as_me: failed program was:" >&5
12100 sed 's/^/| /' conftest.
$ac_ext >&5
12102 ac_cv_lib_Xft_XftFontOpen
=no
12104 rm -f conftest.err conftest.
$ac_objext \
12105 conftest
$ac_exeext conftest.
$ac_ext
12106 LIBS
=$ac_check_lib_save_LIBS
12108 echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12109 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6
12110 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12118 if test "${HAVE_XFT}" = "yes"; then
12120 cat >>confdefs.h
<<\_ACEOF
12125 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
12127 CFLAGS
="$OLD_CPPFLAGS"
12128 CFLAGS
="$OLD_CFLAGS"
12136 ### Use -lfreetype if available, unless `--with-freetype=no'.
12137 if test "${HAVE_XFT}" = "yes"; then
12139 elif test "x${with_freetype}" != "xno"; then
12140 if test "X${with_pkg_config_prog}" != X
; then
12141 PKG_CONFIG
="${with_pkg_config_prog}"
12147 if test -z "$PKG_CONFIG"; then
12148 # Extract the first word of "pkg-config", so it can be a program name with args.
12149 set dummy pkg-config
; ac_word
=$2
12150 echo "$as_me:$LINENO: checking for $ac_word" >&5
12151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12152 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12153 echo $ECHO_N "(cached) $ECHO_C" >&6
12155 case $PKG_CONFIG in
12157 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12160 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12161 for as_dir
in $PATH
12164 test -z "$as_dir" && as_dir
=.
12165 for ac_exec_ext
in '' $ac_executable_extensions; do
12166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12167 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12174 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12178 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12180 if test -n "$PKG_CONFIG"; then
12181 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12182 echo "${ECHO_T}$PKG_CONFIG" >&6
12184 echo "$as_me:$LINENO: result: no" >&5
12185 echo "${ECHO_T}no" >&6
12190 if test "$PKG_CONFIG" = "no" ; then
12191 echo "*** The pkg-config script could not be found. Make sure it is"
12192 echo "*** in your path, or give the full path to pkg-config with"
12193 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
12194 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12196 PKG_CONFIG_MIN_VERSION
=0.9.0
12197 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12198 echo "$as_me:$LINENO: checking for freetype2" >&5
12199 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6
12201 if $PKG_CONFIG --exists "freetype2" ; then
12202 echo "$as_me:$LINENO: result: yes" >&5
12203 echo "${ECHO_T}yes" >&6
12206 echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12207 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6
12208 FREETYPE_CFLAGS
=`$PKG_CONFIG --cflags "freetype2"`
12209 echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12210 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6
12212 echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12213 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6
12214 FREETYPE_LIBS
=`$PKG_CONFIG --libs "freetype2"`
12215 echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12216 echo "${ECHO_T}$FREETYPE_LIBS" >&6
12220 ## If we have a custom action on failure, don't print errors, but
12221 ## do set a variable so people can do so.
12222 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12229 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12230 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12234 if test $succeeded = yes; then
12240 if test "${HAVE_FREETYPE}" = "yes"; then
12244 if test -z "$PKG_CONFIG"; then
12245 # Extract the first word of "pkg-config", so it can be a program name with args.
12246 set dummy pkg-config
; ac_word
=$2
12247 echo "$as_me:$LINENO: checking for $ac_word" >&5
12248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12249 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12250 echo $ECHO_N "(cached) $ECHO_C" >&6
12252 case $PKG_CONFIG in
12254 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12257 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12258 for as_dir
in $PATH
12261 test -z "$as_dir" && as_dir
=.
12262 for ac_exec_ext
in '' $ac_executable_extensions; do
12263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12264 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12271 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12275 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12277 if test -n "$PKG_CONFIG"; then
12278 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12279 echo "${ECHO_T}$PKG_CONFIG" >&6
12281 echo "$as_me:$LINENO: result: no" >&5
12282 echo "${ECHO_T}no" >&6
12287 if test "$PKG_CONFIG" = "no" ; then
12288 echo "*** The pkg-config script could not be found. Make sure it is"
12289 echo "*** in your path, or give the full path to pkg-config with"
12290 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
12291 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12293 PKG_CONFIG_MIN_VERSION
=0.9.0
12294 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12295 echo "$as_me:$LINENO: checking for fontconfig" >&5
12296 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6
12298 if $PKG_CONFIG --exists "fontconfig" ; then
12299 echo "$as_me:$LINENO: result: yes" >&5
12300 echo "${ECHO_T}yes" >&6
12303 echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12304 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6
12305 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig"`
12306 echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12307 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6
12309 echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12310 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6
12311 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig"`
12312 echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12313 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6
12315 FONTCONFIG_CFLAGS
=""
12317 ## If we have a custom action on failure, don't print errors, but
12318 ## do set a variable so people can do so.
12319 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
12326 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12327 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12331 if test $succeeded = yes; then
12337 if test "${HAVE_FC}" = "no"; then
12342 if test "${HAVE_FREETYPE}" = "yes"; then
12344 cat >>confdefs.h
<<\_ACEOF
12345 #define HAVE_FREETYPE 1
12348 # Extract the first word of "libotf-config", so it can be a program name with args.
12349 set dummy libotf-config
; ac_word
=$2
12350 echo "$as_me:$LINENO: checking for $ac_word" >&5
12351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12352 if test "${ac_cv_prog_HAVE_LIBOTF+set}" = set; then
12353 echo $ECHO_N "(cached) $ECHO_C" >&6
12355 if test -n "$HAVE_LIBOTF"; then
12356 ac_cv_prog_HAVE_LIBOTF
="$HAVE_LIBOTF" # Let the user override the test.
12358 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12359 for as_dir
in $PATH
12362 test -z "$as_dir" && as_dir
=.
12363 for ac_exec_ext
in '' $ac_executable_extensions; do
12364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12365 ac_cv_prog_HAVE_LIBOTF
="yes"
12366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12372 test -z "$ac_cv_prog_HAVE_LIBOTF" && ac_cv_prog_HAVE_LIBOTF
="no"
12375 HAVE_LIBOTF
=$ac_cv_prog_HAVE_LIBOTF
12376 if test -n "$HAVE_LIBOTF"; then
12377 echo "$as_me:$LINENO: result: $HAVE_LIBOTF" >&5
12378 echo "${ECHO_T}$HAVE_LIBOTF" >&6
12380 echo "$as_me:$LINENO: result: no" >&5
12381 echo "${ECHO_T}no" >&6
12384 if test "${HAVE_LIBOTF}" = "yes"; then
12386 cat >>confdefs.h
<<\_ACEOF
12387 #define HAVE_LIBOTF 1
12390 LIBOTF_CFLAGS
=`libotf-config --cflags`
12391 LIBOTF_LIBS
=`libotf-config --libs`
12403 ### Use -lXpm if available, unless `--with-xpm=no'.
12405 if test "${HAVE_X11}" = "yes"; then
12406 if test "${with_xpm}" != "no"; then
12407 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12408 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12409 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
12410 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12411 echo $ECHO_N "(cached) $ECHO_C" >&6
12413 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12414 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
12416 # Is the header compilable?
12417 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12418 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
12419 cat >conftest.
$ac_ext <<_ACEOF
12422 cat confdefs.h
>>conftest.
$ac_ext
12423 cat >>conftest.
$ac_ext <<_ACEOF
12424 /* end confdefs.h. */
12425 $ac_includes_default
12426 #include <X11/xpm.h>
12428 rm -f conftest.
$ac_objext
12429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12430 (eval $ac_compile) 2>conftest.er1
12432 grep -v '^ *+' conftest.er1
>conftest.err
12434 cat conftest.err
>&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); } &&
12437 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12439 (eval $ac_try) 2>&5
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); }; } &&
12443 { ac_try
='test -s conftest.$ac_objext'
12444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12445 (eval $ac_try) 2>&5
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); }; }; then
12449 ac_header_compiler
=yes
12451 echo "$as_me: failed program was:" >&5
12452 sed 's/^/| /' conftest.
$ac_ext >&5
12454 ac_header_compiler
=no
12456 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12457 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12458 echo "${ECHO_T}$ac_header_compiler" >&6
12460 # Is the header present?
12461 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12462 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
12463 cat >conftest.
$ac_ext <<_ACEOF
12466 cat confdefs.h
>>conftest.
$ac_ext
12467 cat >>conftest.
$ac_ext <<_ACEOF
12468 /* end confdefs.h. */
12469 #include <X11/xpm.h>
12471 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12472 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12474 grep -v '^ *+' conftest.er1
>conftest.err
12476 cat conftest.err
>&5
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); } >/dev
/null
; then
12479 if test -s conftest.err
; then
12480 ac_cpp_err
=$ac_c_preproc_warn_flag
12481 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12488 if test -z "$ac_cpp_err"; then
12489 ac_header_preproc
=yes
12491 echo "$as_me: failed program was:" >&5
12492 sed 's/^/| /' conftest.
$ac_ext >&5
12494 ac_header_preproc
=no
12496 rm -f conftest.err conftest.
$ac_ext
12497 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12498 echo "${ECHO_T}$ac_header_preproc" >&6
12500 # So? What about this header?
12501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12503 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12504 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12505 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12506 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12507 ac_header_preproc
=yes
12510 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12511 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12512 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12513 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12514 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12515 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12516 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12517 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12518 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12519 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12520 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12521 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12524 ## ------------------------------------------ ##
12525 ## Report this to the AC_PACKAGE_NAME lists. ##
12526 ## ------------------------------------------ ##
12529 sed "s/^/$as_me: WARNING: /" >&2
12532 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12533 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
12534 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12535 echo $ECHO_N "(cached) $ECHO_C" >&6
12537 ac_cv_header_X11_xpm_h
=$ac_header_preproc
12539 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12540 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
12543 if test $ac_cv_header_X11_xpm_h = yes; then
12544 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12545 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
12546 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12547 echo $ECHO_N "(cached) $ECHO_C" >&6
12549 ac_check_lib_save_LIBS
=$LIBS
12550 LIBS
="-lXpm -lX11 $LIBS"
12551 cat >conftest.
$ac_ext <<_ACEOF
12554 cat confdefs.h
>>conftest.
$ac_ext
12555 cat >>conftest.
$ac_ext <<_ACEOF
12556 /* end confdefs.h. */
12558 /* Override any gcc2 internal prototype to avoid an error. */
12562 /* We use char because int might match the return type of a gcc2
12563 builtin and then its argument prototype would still apply. */
12564 char XpmReadFileToPixmap ();
12568 XpmReadFileToPixmap ();
12573 rm -f conftest.
$ac_objext conftest
$ac_exeext
12574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12575 (eval $ac_link) 2>conftest.er1
12577 grep -v '^ *+' conftest.er1
>conftest.err
12579 cat conftest.err
>&5
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); } &&
12582 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12584 (eval $ac_try) 2>&5
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); }; } &&
12588 { ac_try
='test -s conftest$ac_exeext'
12589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12590 (eval $ac_try) 2>&5
12592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); }; }; then
12594 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
12596 echo "$as_me: failed program was:" >&5
12597 sed 's/^/| /' conftest.
$ac_ext >&5
12599 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
12601 rm -f conftest.err conftest.
$ac_objext \
12602 conftest
$ac_exeext conftest.
$ac_ext
12603 LIBS
=$ac_check_lib_save_LIBS
12605 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12606 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
12607 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
12614 if test "${HAVE_XPM}" = "yes"; then
12615 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
12616 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
12617 cat >conftest.
$ac_ext <<_ACEOF
12620 cat confdefs.h
>>conftest.
$ac_ext
12621 cat >>conftest.
$ac_ext <<_ACEOF
12622 /* end confdefs.h. */
12623 #include "X11/xpm.h"
12624 #ifndef XpmReturnAllocPixels
12625 no_return_alloc_pixels
12629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12630 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
12638 if test "${HAVE_XPM}" = "yes"; then
12639 echo "$as_me:$LINENO: result: yes" >&5
12640 echo "${ECHO_T}yes" >&6
12642 echo "$as_me:$LINENO: result: no" >&5
12643 echo "${ECHO_T}no" >&6
12648 if test "${HAVE_XPM}" = "yes"; then
12650 cat >>confdefs.h
<<\_ACEOF
12657 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12659 if test "${HAVE_X11}" = "yes"; then
12660 if test "${with_jpeg}" != "no"; then
12661 if test "${ac_cv_header_jerror_h+set}" = set; then
12662 echo "$as_me:$LINENO: checking for jerror.h" >&5
12663 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12664 if test "${ac_cv_header_jerror_h+set}" = set; then
12665 echo $ECHO_N "(cached) $ECHO_C" >&6
12667 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12668 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12670 # Is the header compilable?
12671 echo "$as_me:$LINENO: checking jerror.h usability" >&5
12672 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
12673 cat >conftest.
$ac_ext <<_ACEOF
12676 cat confdefs.h
>>conftest.
$ac_ext
12677 cat >>conftest.
$ac_ext <<_ACEOF
12678 /* end confdefs.h. */
12679 $ac_includes_default
12680 #include <jerror.h>
12682 rm -f conftest.
$ac_objext
12683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12684 (eval $ac_compile) 2>conftest.er1
12686 grep -v '^ *+' conftest.er1
>conftest.err
12688 cat conftest.err
>&5
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); } &&
12691 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12693 (eval $ac_try) 2>&5
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); }; } &&
12697 { ac_try
='test -s conftest.$ac_objext'
12698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12699 (eval $ac_try) 2>&5
12701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); }; }; then
12703 ac_header_compiler
=yes
12705 echo "$as_me: failed program was:" >&5
12706 sed 's/^/| /' conftest.
$ac_ext >&5
12708 ac_header_compiler
=no
12710 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12711 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12712 echo "${ECHO_T}$ac_header_compiler" >&6
12714 # Is the header present?
12715 echo "$as_me:$LINENO: checking jerror.h presence" >&5
12716 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
12717 cat >conftest.
$ac_ext <<_ACEOF
12720 cat confdefs.h
>>conftest.
$ac_ext
12721 cat >>conftest.
$ac_ext <<_ACEOF
12722 /* end confdefs.h. */
12723 #include <jerror.h>
12725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12726 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12728 grep -v '^ *+' conftest.er1
>conftest.err
12730 cat conftest.err
>&5
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); } >/dev
/null
; then
12733 if test -s conftest.err
; then
12734 ac_cpp_err
=$ac_c_preproc_warn_flag
12735 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12742 if test -z "$ac_cpp_err"; then
12743 ac_header_preproc
=yes
12745 echo "$as_me: failed program was:" >&5
12746 sed 's/^/| /' conftest.
$ac_ext >&5
12748 ac_header_preproc
=no
12750 rm -f conftest.err conftest.
$ac_ext
12751 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12752 echo "${ECHO_T}$ac_header_preproc" >&6
12754 # So? What about this header?
12755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12757 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
12758 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12759 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
12760 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
12761 ac_header_preproc
=yes
12764 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
12765 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
12766 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
12767 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
12768 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
12769 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
12770 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
12771 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
12772 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
12773 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
12774 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
12775 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
12778 ## ------------------------------------------ ##
12779 ## Report this to the AC_PACKAGE_NAME lists. ##
12780 ## ------------------------------------------ ##
12783 sed "s/^/$as_me: WARNING: /" >&2
12786 echo "$as_me:$LINENO: checking for jerror.h" >&5
12787 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12788 if test "${ac_cv_header_jerror_h+set}" = set; then
12789 echo $ECHO_N "(cached) $ECHO_C" >&6
12791 ac_cv_header_jerror_h
=$ac_header_preproc
12793 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12794 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12797 if test $ac_cv_header_jerror_h = yes; then
12798 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
12799 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
12800 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
12801 echo $ECHO_N "(cached) $ECHO_C" >&6
12803 ac_check_lib_save_LIBS
=$LIBS
12804 LIBS
="-ljpeg $LIBS"
12805 cat >conftest.
$ac_ext <<_ACEOF
12808 cat confdefs.h
>>conftest.
$ac_ext
12809 cat >>conftest.
$ac_ext <<_ACEOF
12810 /* end confdefs.h. */
12812 /* Override any gcc2 internal prototype to avoid an error. */
12816 /* We use char because int might match the return type of a gcc2
12817 builtin and then its argument prototype would still apply. */
12818 char jpeg_destroy_compress ();
12822 jpeg_destroy_compress ();
12827 rm -f conftest.
$ac_objext conftest
$ac_exeext
12828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12829 (eval $ac_link) 2>conftest.er1
12831 grep -v '^ *+' conftest.er1
>conftest.err
12833 cat conftest.err
>&5
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); } &&
12836 { ac_try
='test -z "$ac_c_werror_flag" || 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_exeext'
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_cv_lib_jpeg_jpeg_destroy_compress
=yes
12850 echo "$as_me: failed program was:" >&5
12851 sed 's/^/| /' conftest.
$ac_ext >&5
12853 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
12855 rm -f conftest.err conftest.
$ac_objext \
12856 conftest
$ac_exeext conftest.
$ac_ext
12857 LIBS
=$ac_check_lib_save_LIBS
12859 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12860 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
12861 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
12871 if test "${HAVE_JPEG}" = "yes"; then
12872 cat >>confdefs.h
<<\_ACEOF
12873 #define HAVE_JPEG 1
12876 cat >conftest.
$ac_ext <<_ACEOF
12879 cat confdefs.h
>>conftest.
$ac_ext
12880 cat >>conftest.
$ac_ext <<_ACEOF
12881 /* end confdefs.h. */
12882 #include <jpeglib.h>
12883 version=JPEG_LIB_VERSION
12886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12887 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
12888 cat >>confdefs.h
<<\_ACEOF
12889 #define HAVE_JPEG 1
12893 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
12894 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12902 ### Use -lpng if available, unless `--with-png=no'.
12904 if test "${HAVE_X11}" = "yes"; then
12905 if test "${with_png}" != "no"; then
12906 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12907 # in /usr/include/libpng.
12910 for ac_header
in png.h libpng
/png.h
12912 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12914 echo "$as_me:$LINENO: checking for $ac_header" >&5
12915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12917 echo $ECHO_N "(cached) $ECHO_C" >&6
12919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12920 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12922 # Is the header compilable?
12923 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12924 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12925 cat >conftest.
$ac_ext <<_ACEOF
12928 cat confdefs.h
>>conftest.
$ac_ext
12929 cat >>conftest.
$ac_ext <<_ACEOF
12930 /* end confdefs.h. */
12931 $ac_includes_default
12932 #include <$ac_header>
12934 rm -f conftest.
$ac_objext
12935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12936 (eval $ac_compile) 2>conftest.er1
12938 grep -v '^ *+' conftest.er1
>conftest.err
12940 cat conftest.err
>&5
12941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942 (exit $ac_status); } &&
12943 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12945 (eval $ac_try) 2>&5
12947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948 (exit $ac_status); }; } &&
12949 { ac_try
='test -s conftest.$ac_objext'
12950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12951 (eval $ac_try) 2>&5
12953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954 (exit $ac_status); }; }; then
12955 ac_header_compiler
=yes
12957 echo "$as_me: failed program was:" >&5
12958 sed 's/^/| /' conftest.
$ac_ext >&5
12960 ac_header_compiler
=no
12962 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12963 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12964 echo "${ECHO_T}$ac_header_compiler" >&6
12966 # Is the header present?
12967 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12968 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12969 cat >conftest.
$ac_ext <<_ACEOF
12972 cat confdefs.h
>>conftest.
$ac_ext
12973 cat >>conftest.
$ac_ext <<_ACEOF
12974 /* end confdefs.h. */
12975 #include <$ac_header>
12977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12978 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12980 grep -v '^ *+' conftest.er1
>conftest.err
12982 cat conftest.err
>&5
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); } >/dev
/null
; then
12985 if test -s conftest.err
; then
12986 ac_cpp_err
=$ac_c_preproc_warn_flag
12987 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12994 if test -z "$ac_cpp_err"; then
12995 ac_header_preproc
=yes
12997 echo "$as_me: failed program was:" >&5
12998 sed 's/^/| /' conftest.
$ac_ext >&5
13000 ac_header_preproc
=no
13002 rm -f conftest.err conftest.
$ac_ext
13003 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13004 echo "${ECHO_T}$ac_header_preproc" >&6
13006 # So? What about this header?
13007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13009 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13010 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13012 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13013 ac_header_preproc
=yes
13016 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13017 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13018 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13019 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13020 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13021 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13022 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13023 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13025 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13026 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13027 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13030 ## ------------------------------------------ ##
13031 ## Report this to the AC_PACKAGE_NAME lists. ##
13032 ## ------------------------------------------ ##
13035 sed "s/^/$as_me: WARNING: /" >&2
13038 echo "$as_me:$LINENO: checking for $ac_header" >&5
13039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13041 echo $ECHO_N "(cached) $ECHO_C" >&6
13043 eval "$as_ac_Header=\$ac_header_preproc"
13045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13046 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13050 cat >>confdefs.h
<<_ACEOF
13051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13058 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13059 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13060 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
13061 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13062 echo $ECHO_N "(cached) $ECHO_C" >&6
13064 ac_check_lib_save_LIBS
=$LIBS
13065 LIBS
="-lpng -lz -lm $LIBS"
13066 cat >conftest.
$ac_ext <<_ACEOF
13069 cat confdefs.h
>>conftest.
$ac_ext
13070 cat >>conftest.
$ac_ext <<_ACEOF
13071 /* end confdefs.h. */
13073 /* Override any gcc2 internal prototype to avoid an error. */
13077 /* We use char because int might match the return type of a gcc2
13078 builtin and then its argument prototype would still apply. */
13079 char png_get_channels ();
13083 png_get_channels ();
13088 rm -f conftest.
$ac_objext conftest
$ac_exeext
13089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13090 (eval $ac_link) 2>conftest.er1
13092 grep -v '^ *+' conftest.er1
>conftest.err
13094 cat conftest.err
>&5
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); } &&
13097 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13099 (eval $ac_try) 2>&5
13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); }; } &&
13103 { ac_try
='test -s conftest$ac_exeext'
13104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13105 (eval $ac_try) 2>&5
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); }; }; then
13109 ac_cv_lib_png_png_get_channels
=yes
13111 echo "$as_me: failed program was:" >&5
13112 sed 's/^/| /' conftest.
$ac_ext >&5
13114 ac_cv_lib_png_png_get_channels
=no
13116 rm -f conftest.err conftest.
$ac_objext \
13117 conftest
$ac_exeext conftest.
$ac_ext
13118 LIBS
=$ac_check_lib_save_LIBS
13120 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13121 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
13122 if test $ac_cv_lib_png_png_get_channels = yes; then
13129 if test "${HAVE_PNG}" = "yes"; then
13131 cat >>confdefs.h
<<\_ACEOF
13138 ### Use -ltiff if available, unless `--with-tiff=no'.
13140 if test "${HAVE_X11}" = "yes"; then
13141 if test "${with_tiff}" != "no"; then
13142 if test "${ac_cv_header_tiffio_h+set}" = set; then
13143 echo "$as_me:$LINENO: checking for tiffio.h" >&5
13144 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
13145 if test "${ac_cv_header_tiffio_h+set}" = set; then
13146 echo $ECHO_N "(cached) $ECHO_C" >&6
13148 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13149 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
13151 # Is the header compilable?
13152 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13153 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
13154 cat >conftest.
$ac_ext <<_ACEOF
13157 cat confdefs.h
>>conftest.
$ac_ext
13158 cat >>conftest.
$ac_ext <<_ACEOF
13159 /* end confdefs.h. */
13160 $ac_includes_default
13161 #include <tiffio.h>
13163 rm -f conftest.
$ac_objext
13164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13165 (eval $ac_compile) 2>conftest.er1
13167 grep -v '^ *+' conftest.er1
>conftest.err
13169 cat conftest.err
>&5
13170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171 (exit $ac_status); } &&
13172 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13174 (eval $ac_try) 2>&5
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); }; } &&
13178 { ac_try
='test -s conftest.$ac_objext'
13179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13180 (eval $ac_try) 2>&5
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); }; }; then
13184 ac_header_compiler
=yes
13186 echo "$as_me: failed program was:" >&5
13187 sed 's/^/| /' conftest.
$ac_ext >&5
13189 ac_header_compiler
=no
13191 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13192 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13193 echo "${ECHO_T}$ac_header_compiler" >&6
13195 # Is the header present?
13196 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13197 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
13198 cat >conftest.
$ac_ext <<_ACEOF
13201 cat confdefs.h
>>conftest.
$ac_ext
13202 cat >>conftest.
$ac_ext <<_ACEOF
13203 /* end confdefs.h. */
13204 #include <tiffio.h>
13206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13207 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13209 grep -v '^ *+' conftest.er1
>conftest.err
13211 cat conftest.err
>&5
13212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213 (exit $ac_status); } >/dev
/null
; then
13214 if test -s conftest.err
; then
13215 ac_cpp_err
=$ac_c_preproc_warn_flag
13216 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13223 if test -z "$ac_cpp_err"; then
13224 ac_header_preproc
=yes
13226 echo "$as_me: failed program was:" >&5
13227 sed 's/^/| /' conftest.
$ac_ext >&5
13229 ac_header_preproc
=no
13231 rm -f conftest.err conftest.
$ac_ext
13232 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13233 echo "${ECHO_T}$ac_header_preproc" >&6
13235 # So? What about this header?
13236 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13238 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13239 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13240 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13241 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13242 ac_header_preproc
=yes
13245 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13246 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13247 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13248 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13249 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13250 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13251 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13252 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13253 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13254 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13255 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13256 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13259 ## ------------------------------------------ ##
13260 ## Report this to the AC_PACKAGE_NAME lists. ##
13261 ## ------------------------------------------ ##
13264 sed "s/^/$as_me: WARNING: /" >&2
13267 echo "$as_me:$LINENO: checking for tiffio.h" >&5
13268 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
13269 if test "${ac_cv_header_tiffio_h+set}" = set; then
13270 echo $ECHO_N "(cached) $ECHO_C" >&6
13272 ac_cv_header_tiffio_h
=$ac_header_preproc
13274 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13275 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
13278 if test $ac_cv_header_tiffio_h = yes; then
13280 # At least one tiff package requires the jpeg library.
13281 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
13282 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13283 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
13284 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13285 echo $ECHO_N "(cached) $ECHO_C" >&6
13287 ac_check_lib_save_LIBS
=$LIBS
13288 LIBS
="-ltiff $tifflibs $LIBS"
13289 cat >conftest.
$ac_ext <<_ACEOF
13292 cat confdefs.h
>>conftest.
$ac_ext
13293 cat >>conftest.
$ac_ext <<_ACEOF
13294 /* end confdefs.h. */
13296 /* Override any gcc2 internal prototype to avoid an error. */
13300 /* We use char because int might match the return type of a gcc2
13301 builtin and then its argument prototype would still apply. */
13302 char TIFFGetVersion ();
13311 rm -f conftest.
$ac_objext conftest
$ac_exeext
13312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13313 (eval $ac_link) 2>conftest.er1
13315 grep -v '^ *+' conftest.er1
>conftest.err
13317 cat conftest.err
>&5
13318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319 (exit $ac_status); } &&
13320 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13322 (eval $ac_try) 2>&5
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); }; } &&
13326 { ac_try
='test -s conftest$ac_exeext'
13327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13328 (eval $ac_try) 2>&5
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); }; }; then
13332 ac_cv_lib_tiff_TIFFGetVersion
=yes
13334 echo "$as_me: failed program was:" >&5
13335 sed 's/^/| /' conftest.
$ac_ext >&5
13337 ac_cv_lib_tiff_TIFFGetVersion
=no
13339 rm -f conftest.err conftest.
$ac_objext \
13340 conftest
$ac_exeext conftest.
$ac_ext
13341 LIBS
=$ac_check_lib_save_LIBS
13343 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13344 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
13345 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13354 if test "${HAVE_TIFF}" = "yes"; then
13356 cat >>confdefs.h
<<\_ACEOF
13357 #define HAVE_TIFF 1
13363 ### Use -lgif if available, unless `--with-gif=no'.
13365 if test "${HAVE_X11}" = "yes"; then
13366 if test "${with_gif}" != "no"; then
13367 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13368 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13369 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
13370 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13371 echo $ECHO_N "(cached) $ECHO_C" >&6
13373 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13374 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
13376 # Is the header compilable?
13377 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13378 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
13379 cat >conftest.
$ac_ext <<_ACEOF
13382 cat confdefs.h
>>conftest.
$ac_ext
13383 cat >>conftest.
$ac_ext <<_ACEOF
13384 /* end confdefs.h. */
13385 $ac_includes_default
13386 #include <gif_lib.h>
13388 rm -f conftest.
$ac_objext
13389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13390 (eval $ac_compile) 2>conftest.er1
13392 grep -v '^ *+' conftest.er1
>conftest.err
13394 cat conftest.err
>&5
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); } &&
13397 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13399 (eval $ac_try) 2>&5
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); }; } &&
13403 { ac_try
='test -s conftest.$ac_objext'
13404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13405 (eval $ac_try) 2>&5
13407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408 (exit $ac_status); }; }; then
13409 ac_header_compiler
=yes
13411 echo "$as_me: failed program was:" >&5
13412 sed 's/^/| /' conftest.
$ac_ext >&5
13414 ac_header_compiler
=no
13416 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13417 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13418 echo "${ECHO_T}$ac_header_compiler" >&6
13420 # Is the header present?
13421 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13422 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
13423 cat >conftest.
$ac_ext <<_ACEOF
13426 cat confdefs.h
>>conftest.
$ac_ext
13427 cat >>conftest.
$ac_ext <<_ACEOF
13428 /* end confdefs.h. */
13429 #include <gif_lib.h>
13431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13432 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13434 grep -v '^ *+' conftest.er1
>conftest.err
13436 cat conftest.err
>&5
13437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438 (exit $ac_status); } >/dev
/null
; then
13439 if test -s conftest.err
; then
13440 ac_cpp_err
=$ac_c_preproc_warn_flag
13441 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13448 if test -z "$ac_cpp_err"; then
13449 ac_header_preproc
=yes
13451 echo "$as_me: failed program was:" >&5
13452 sed 's/^/| /' conftest.
$ac_ext >&5
13454 ac_header_preproc
=no
13456 rm -f conftest.err conftest.
$ac_ext
13457 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13458 echo "${ECHO_T}$ac_header_preproc" >&6
13460 # So? What about this header?
13461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13463 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13464 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13465 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13466 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13467 ac_header_preproc
=yes
13470 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13471 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13472 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13473 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13474 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13475 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13476 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13477 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13478 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13479 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13480 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13481 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13484 ## ------------------------------------------ ##
13485 ## Report this to the AC_PACKAGE_NAME lists. ##
13486 ## ------------------------------------------ ##
13489 sed "s/^/$as_me: WARNING: /" >&2
13492 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13493 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
13494 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13495 echo $ECHO_N "(cached) $ECHO_C" >&6
13497 ac_cv_header_gif_lib_h
=$ac_header_preproc
13499 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13500 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
13503 if test $ac_cv_header_gif_lib_h = yes; then
13504 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13505 # Earlier versions can crash Emacs.
13506 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13507 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
13508 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13509 echo $ECHO_N "(cached) $ECHO_C" >&6
13511 ac_check_lib_save_LIBS
=$LIBS
13512 LIBS
="-lungif $LIBS"
13513 cat >conftest.
$ac_ext <<_ACEOF
13516 cat confdefs.h
>>conftest.
$ac_ext
13517 cat >>conftest.
$ac_ext <<_ACEOF
13518 /* end confdefs.h. */
13520 /* Override any gcc2 internal prototype to avoid an error. */
13524 /* We use char because int might match the return type of a gcc2
13525 builtin and then its argument prototype would still apply. */
13526 char EGifPutExtensionLast ();
13530 EGifPutExtensionLast ();
13535 rm -f conftest.
$ac_objext conftest
$ac_exeext
13536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13537 (eval $ac_link) 2>conftest.er1
13539 grep -v '^ *+' conftest.er1
>conftest.err
13541 cat conftest.err
>&5
13542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); } &&
13544 { ac_try
='test -z "$ac_c_werror_flag"
13545 || test ! -s conftest.err'
13546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13547 (eval $ac_try) 2>&5
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); }; } &&
13551 { ac_try
='test -s conftest$ac_exeext'
13552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13553 (eval $ac_try) 2>&5
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); }; }; then
13557 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
13559 echo "$as_me: failed program was:" >&5
13560 sed 's/^/| /' conftest.
$ac_ext >&5
13562 ac_cv_lib_ungif_EGifPutExtensionLast
=no
13564 rm -f conftest.err conftest.
$ac_objext \
13565 conftest
$ac_exeext conftest.
$ac_ext
13566 LIBS
=$ac_check_lib_save_LIBS
13568 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13569 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
13570 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13579 if test "${HAVE_GIF}" = "yes"; then
13581 cat >>confdefs.h
<<\_ACEOF
13588 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13589 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13590 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13591 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13592 echo $ECHO_N "(cached) $ECHO_C" >&6
13594 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13595 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13597 # Is the header compilable?
13598 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13599 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
13600 cat >conftest.
$ac_ext <<_ACEOF
13603 cat confdefs.h
>>conftest.
$ac_ext
13604 cat >>conftest.
$ac_ext <<_ACEOF
13605 /* end confdefs.h. */
13606 $ac_includes_default
13607 #include <malloc/malloc.h>
13609 rm -f conftest.
$ac_objext
13610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13611 (eval $ac_compile) 2>conftest.er1
13613 grep -v '^ *+' conftest.er1
>conftest.err
13615 cat conftest.err
>&5
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); } &&
13618 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13620 (eval $ac_try) 2>&5
13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); }; } &&
13624 { ac_try
='test -s conftest.$ac_objext'
13625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13626 (eval $ac_try) 2>&5
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); }; }; then
13630 ac_header_compiler
=yes
13632 echo "$as_me: failed program was:" >&5
13633 sed 's/^/| /' conftest.
$ac_ext >&5
13635 ac_header_compiler
=no
13637 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13638 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13639 echo "${ECHO_T}$ac_header_compiler" >&6
13641 # Is the header present?
13642 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13643 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
13644 cat >conftest.
$ac_ext <<_ACEOF
13647 cat confdefs.h
>>conftest.
$ac_ext
13648 cat >>conftest.
$ac_ext <<_ACEOF
13649 /* end confdefs.h. */
13650 #include <malloc/malloc.h>
13652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13653 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13655 grep -v '^ *+' conftest.er1
>conftest.err
13657 cat conftest.err
>&5
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); } >/dev
/null
; then
13660 if test -s conftest.err
; then
13661 ac_cpp_err
=$ac_c_preproc_warn_flag
13662 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13669 if test -z "$ac_cpp_err"; then
13670 ac_header_preproc
=yes
13672 echo "$as_me: failed program was:" >&5
13673 sed 's/^/| /' conftest.
$ac_ext >&5
13675 ac_header_preproc
=no
13677 rm -f conftest.err conftest.
$ac_ext
13678 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13679 echo "${ECHO_T}$ac_header_preproc" >&6
13681 # So? What about this header?
13682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13684 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13685 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13686 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
13687 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
13688 ac_header_preproc
=yes
13691 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13692 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13693 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13694 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13695 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13696 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13697 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13698 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13699 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
13700 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
13701 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13702 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13705 ## ------------------------------------------ ##
13706 ## Report this to the AC_PACKAGE_NAME lists. ##
13707 ## ------------------------------------------ ##
13710 sed "s/^/$as_me: WARNING: /" >&2
13713 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13714 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13715 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13716 echo $ECHO_N "(cached) $ECHO_C" >&6
13718 ac_cv_header_malloc_malloc_h
=$ac_header_preproc
13720 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13721 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13724 if test $ac_cv_header_malloc_malloc_h = yes; then
13726 cat >>confdefs.h
<<\_ACEOF
13727 #define HAVE_MALLOC_MALLOC_H 1
13734 ### Use Mac OS X Carbon API to implement GUI.
13735 if test "${HAVE_CARBON}" = "yes"; then
13737 cat >>confdefs.h
<<\_ACEOF
13738 #define HAVE_CARBON 1
13741 ## Specify the install directory
13743 if test "${carbon_appdir_x}" != ""; then
13744 case ${carbon_appdir_x} in
13745 y | ye |
yes) carbon_appdir
=/Applications
;;
13746 * ) carbon_appdir
=${carbon_appdir_x} ;;
13749 # We also have mouse menus.
13752 tmp_CFLAGS
="$CFLAGS"
13753 CFLAGS
="$CFLAGS -framework Carbon"
13754 echo "$as_me:$LINENO: checking for CancelMenuTracking" >&5
13755 echo $ECHO_N "checking for CancelMenuTracking... $ECHO_C" >&6
13756 if test "${ac_cv_func_CancelMenuTracking+set}" = set; then
13757 echo $ECHO_N "(cached) $ECHO_C" >&6
13759 cat >conftest.
$ac_ext <<_ACEOF
13762 cat confdefs.h
>>conftest.
$ac_ext
13763 cat >>conftest.
$ac_ext <<_ACEOF
13764 /* end confdefs.h. */
13765 /* Define CancelMenuTracking to an innocuous variant, in case <limits.h> declares CancelMenuTracking.
13766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13767 #define CancelMenuTracking innocuous_CancelMenuTracking
13769 /* System header to define __stub macros and hopefully few prototypes,
13770 which can conflict with char CancelMenuTracking (); below.
13771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13772 <limits.h> exists even on freestanding compilers. */
13775 # include <limits.h>
13777 # include <assert.h>
13780 #undef CancelMenuTracking
13782 /* Override any gcc2 internal prototype to avoid an error. */
13787 /* We use char because int might match the return type of a gcc2
13788 builtin and then its argument prototype would still apply. */
13789 char CancelMenuTracking ();
13790 /* The GNU C library defines this for functions which it implements
13791 to always fail with ENOSYS. Some functions are actually named
13792 something starting with __ and the normal name is an alias. */
13793 #if defined (__stub_CancelMenuTracking) || defined (__stub___CancelMenuTracking)
13796 char (*f) () = CancelMenuTracking;
13805 return f != CancelMenuTracking;
13810 rm -f conftest.
$ac_objext conftest
$ac_exeext
13811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13812 (eval $ac_link) 2>conftest.er1
13814 grep -v '^ *+' conftest.er1
>conftest.err
13816 cat conftest.err
>&5
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); } &&
13819 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13821 (eval $ac_try) 2>&5
13823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824 (exit $ac_status); }; } &&
13825 { ac_try
='test -s conftest$ac_exeext'
13826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13827 (eval $ac_try) 2>&5
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); }; }; then
13831 ac_cv_func_CancelMenuTracking
=yes
13833 echo "$as_me: failed program was:" >&5
13834 sed 's/^/| /' conftest.
$ac_ext >&5
13836 ac_cv_func_CancelMenuTracking
=no
13838 rm -f conftest.err conftest.
$ac_objext \
13839 conftest
$ac_exeext conftest.
$ac_ext
13841 echo "$as_me:$LINENO: result: $ac_cv_func_CancelMenuTracking" >&5
13842 echo "${ECHO_T}$ac_cv_func_CancelMenuTracking" >&6
13843 if test $ac_cv_func_CancelMenuTracking = yes; then
13849 if test "$have_cmt" = yes; then
13851 cat >>confdefs.h
<<\_ACEOF
13852 #define HAVE_CANCELMENUTRACKING 1
13856 CFLAGS
="$tmp_CFLAGS"
13859 ### Use session management (-lSM -lICE) if available
13861 if test "${HAVE_X11}" = "yes"; then
13862 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13863 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13864 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13865 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13866 echo $ECHO_N "(cached) $ECHO_C" >&6
13868 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13869 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13871 # Is the header compilable?
13872 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
13873 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
13874 cat >conftest.
$ac_ext <<_ACEOF
13877 cat confdefs.h
>>conftest.
$ac_ext
13878 cat >>conftest.
$ac_ext <<_ACEOF
13879 /* end confdefs.h. */
13880 $ac_includes_default
13881 #include <X11/SM/SMlib.h>
13883 rm -f conftest.
$ac_objext
13884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13885 (eval $ac_compile) 2>conftest.er1
13887 grep -v '^ *+' conftest.er1
>conftest.err
13889 cat conftest.err
>&5
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); } &&
13892 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13894 (eval $ac_try) 2>&5
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); }; } &&
13898 { ac_try
='test -s conftest.$ac_objext'
13899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13900 (eval $ac_try) 2>&5
13902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); }; }; then
13904 ac_header_compiler
=yes
13906 echo "$as_me: failed program was:" >&5
13907 sed 's/^/| /' conftest.
$ac_ext >&5
13909 ac_header_compiler
=no
13911 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13912 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13913 echo "${ECHO_T}$ac_header_compiler" >&6
13915 # Is the header present?
13916 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
13917 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
13918 cat >conftest.
$ac_ext <<_ACEOF
13921 cat confdefs.h
>>conftest.
$ac_ext
13922 cat >>conftest.
$ac_ext <<_ACEOF
13923 /* end confdefs.h. */
13924 #include <X11/SM/SMlib.h>
13926 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13927 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13929 grep -v '^ *+' conftest.er1
>conftest.err
13931 cat conftest.err
>&5
13932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 (exit $ac_status); } >/dev
/null
; then
13934 if test -s conftest.err
; then
13935 ac_cpp_err
=$ac_c_preproc_warn_flag
13936 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13943 if test -z "$ac_cpp_err"; then
13944 ac_header_preproc
=yes
13946 echo "$as_me: failed program was:" >&5
13947 sed 's/^/| /' conftest.
$ac_ext >&5
13949 ac_header_preproc
=no
13951 rm -f conftest.err conftest.
$ac_ext
13952 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13953 echo "${ECHO_T}$ac_header_preproc" >&6
13955 # So? What about this header?
13956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13958 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13959 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13960 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
13961 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
13962 ac_header_preproc
=yes
13965 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
13966 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
13967 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
13968 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
13969 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
13970 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
13971 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
13972 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13973 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
13974 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
13975 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
13976 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
13979 ## ------------------------------------------ ##
13980 ## Report this to the AC_PACKAGE_NAME lists. ##
13981 ## ------------------------------------------ ##
13984 sed "s/^/$as_me: WARNING: /" >&2
13987 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13988 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13989 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13990 echo $ECHO_N "(cached) $ECHO_C" >&6
13992 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
13994 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13995 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13998 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
13999 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14000 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
14001 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14002 echo $ECHO_N "(cached) $ECHO_C" >&6
14004 ac_check_lib_save_LIBS
=$LIBS
14005 LIBS
="-lSM -lICE $LIBS"
14006 cat >conftest.
$ac_ext <<_ACEOF
14009 cat confdefs.h
>>conftest.
$ac_ext
14010 cat >>conftest.
$ac_ext <<_ACEOF
14011 /* end confdefs.h. */
14013 /* Override any gcc2 internal prototype to avoid an error. */
14017 /* We use char because int might match the return type of a gcc2
14018 builtin and then its argument prototype would still apply. */
14019 char SmcOpenConnection ();
14023 SmcOpenConnection ();
14028 rm -f conftest.
$ac_objext conftest
$ac_exeext
14029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14030 (eval $ac_link) 2>conftest.er1
14032 grep -v '^ *+' conftest.er1
>conftest.err
14034 cat conftest.err
>&5
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); } &&
14037 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14039 (eval $ac_try) 2>&5
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); }; } &&
14043 { ac_try
='test -s conftest$ac_exeext'
14044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14045 (eval $ac_try) 2>&5
14047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048 (exit $ac_status); }; }; then
14049 ac_cv_lib_SM_SmcOpenConnection
=yes
14051 echo "$as_me: failed program was:" >&5
14052 sed 's/^/| /' conftest.
$ac_ext >&5
14054 ac_cv_lib_SM_SmcOpenConnection
=no
14056 rm -f conftest.err conftest.
$ac_objext \
14057 conftest
$ac_exeext conftest.
$ac_ext
14058 LIBS
=$ac_check_lib_save_LIBS
14060 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14061 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
14062 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14070 if test "${HAVE_X_SM}" = "yes"; then
14072 cat >>confdefs.h
<<\_ACEOF
14073 #define HAVE_X_SM 1
14078 *) LIBS
="-lSM -lICE $LIBS" ;;
14083 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14084 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14085 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
14086 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14087 echo $ECHO_N "(cached) $ECHO_C" >&6
14089 cat >conftest.
$ac_ext <<_ACEOF
14092 cat confdefs.h
>>conftest.
$ac_ext
14093 cat >>conftest.
$ac_ext <<_ACEOF
14094 /* end confdefs.h. */
14104 rm -f conftest.
$ac_objext conftest
$ac_exeext
14105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14106 (eval $ac_link) 2>conftest.er1
14108 grep -v '^ *+' conftest.er1
>conftest.err
14110 cat conftest.err
>&5
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); } &&
14113 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14115 (eval $ac_try) 2>&5
14117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118 (exit $ac_status); }; } &&
14119 { ac_try
='test -s conftest$ac_exeext'
14120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14121 (eval $ac_try) 2>&5
14123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124 (exit $ac_status); }; }; then
14125 emacs_cv_netdb_declares_h_errno
=yes
14127 echo "$as_me: failed program was:" >&5
14128 sed 's/^/| /' conftest.
$ac_ext >&5
14130 emacs_cv_netdb_declares_h_errno
=no
14132 rm -f conftest.err conftest.
$ac_objext \
14133 conftest
$ac_exeext conftest.
$ac_ext
14135 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14136 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
14137 if test $emacs_cv_netdb_declares_h_errno = yes; then
14139 cat >>confdefs.h
<<\_ACEOF
14140 #define HAVE_H_ERRNO 1
14145 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14146 # for constant arguments. Useless!
14147 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14148 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14149 if test "${ac_cv_working_alloca_h+set}" = set; then
14150 echo $ECHO_N "(cached) $ECHO_C" >&6
14152 cat >conftest.
$ac_ext <<_ACEOF
14155 cat confdefs.h
>>conftest.
$ac_ext
14156 cat >>conftest.
$ac_ext <<_ACEOF
14157 /* end confdefs.h. */
14158 #include <alloca.h>
14162 char *p = (char *) alloca (2 * sizeof (int));
14167 rm -f conftest.
$ac_objext conftest
$ac_exeext
14168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14169 (eval $ac_link) 2>conftest.er1
14171 grep -v '^ *+' conftest.er1
>conftest.err
14173 cat conftest.err
>&5
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); } &&
14176 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14178 (eval $ac_try) 2>&5
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); }; } &&
14182 { ac_try
='test -s conftest$ac_exeext'
14183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14184 (eval $ac_try) 2>&5
14186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187 (exit $ac_status); }; }; then
14188 ac_cv_working_alloca_h
=yes
14190 echo "$as_me: failed program was:" >&5
14191 sed 's/^/| /' conftest.
$ac_ext >&5
14193 ac_cv_working_alloca_h
=no
14195 rm -f conftest.err conftest.
$ac_objext \
14196 conftest
$ac_exeext conftest.
$ac_ext
14198 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14199 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14200 if test $ac_cv_working_alloca_h = yes; then
14202 cat >>confdefs.h
<<\_ACEOF
14203 #define HAVE_ALLOCA_H 1
14208 echo "$as_me:$LINENO: checking for alloca" >&5
14209 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14210 if test "${ac_cv_func_alloca_works+set}" = set; then
14211 echo $ECHO_N "(cached) $ECHO_C" >&6
14213 cat >conftest.
$ac_ext <<_ACEOF
14216 cat confdefs.h
>>conftest.
$ac_ext
14217 cat >>conftest.
$ac_ext <<_ACEOF
14218 /* end confdefs.h. */
14220 # define alloca __builtin_alloca
14223 # include <malloc.h>
14224 # define alloca _alloca
14227 # include <alloca.h>
14232 # ifndef alloca /* predefined by HP cc +Olibcalls */
14243 char *p = (char *) alloca (1);
14248 rm -f conftest.
$ac_objext conftest
$ac_exeext
14249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14250 (eval $ac_link) 2>conftest.er1
14252 grep -v '^ *+' conftest.er1
>conftest.err
14254 cat conftest.err
>&5
14255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256 (exit $ac_status); } &&
14257 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14259 (eval $ac_try) 2>&5
14261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262 (exit $ac_status); }; } &&
14263 { ac_try
='test -s conftest$ac_exeext'
14264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14265 (eval $ac_try) 2>&5
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); }; }; then
14269 ac_cv_func_alloca_works
=yes
14271 echo "$as_me: failed program was:" >&5
14272 sed 's/^/| /' conftest.
$ac_ext >&5
14274 ac_cv_func_alloca_works
=no
14276 rm -f conftest.err conftest.
$ac_objext \
14277 conftest
$ac_exeext conftest.
$ac_ext
14279 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14280 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14282 if test $ac_cv_func_alloca_works = yes; then
14284 cat >>confdefs.h
<<\_ACEOF
14285 #define HAVE_ALLOCA 1
14289 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14290 # that cause trouble. Some versions do not even contain alloca or
14291 # contain a buggy version. If you still want to use their alloca,
14292 # use ar to extract alloca.o from them instead of compiling alloca.c.
14294 ALLOCA
=alloca.
$ac_objext
14296 cat >>confdefs.h
<<\_ACEOF
14301 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14302 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14303 if test "${ac_cv_os_cray+set}" = set; then
14304 echo $ECHO_N "(cached) $ECHO_C" >&6
14306 cat >conftest.
$ac_ext <<_ACEOF
14309 cat confdefs.h
>>conftest.
$ac_ext
14310 cat >>conftest.
$ac_ext <<_ACEOF
14311 /* end confdefs.h. */
14312 #if defined(CRAY) && ! defined(CRAY2)
14319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14320 $EGREP "webecray" >/dev
/null
2>&1; then
14328 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14329 echo "${ECHO_T}$ac_cv_os_cray" >&6
14330 if test $ac_cv_os_cray = yes; then
14331 for ac_func
in _getb67 GETB67 getb67
; do
14332 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14333 echo "$as_me:$LINENO: checking for $ac_func" >&5
14334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14335 if eval "test \"\${$as_ac_var+set}\" = set"; then
14336 echo $ECHO_N "(cached) $ECHO_C" >&6
14338 cat >conftest.
$ac_ext <<_ACEOF
14341 cat confdefs.h
>>conftest.
$ac_ext
14342 cat >>conftest.
$ac_ext <<_ACEOF
14343 /* end confdefs.h. */
14344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14346 #define $ac_func innocuous_$ac_func
14348 /* System header to define __stub macros and hopefully few prototypes,
14349 which can conflict with char $ac_func (); below.
14350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14351 <limits.h> exists even on freestanding compilers. */
14354 # include <limits.h>
14356 # include <assert.h>
14361 /* Override any gcc2 internal prototype to avoid an error. */
14366 /* We use char because int might match the return type of a gcc2
14367 builtin and then its argument prototype would still apply. */
14369 /* The GNU C library defines this for functions which it implements
14370 to always fail with ENOSYS. Some functions are actually named
14371 something starting with __ and the normal name is an alias. */
14372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14375 char (*f) () = $ac_func;
14384 return f != $ac_func;
14389 rm -f conftest.
$ac_objext conftest
$ac_exeext
14390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14391 (eval $ac_link) 2>conftest.er1
14393 grep -v '^ *+' conftest.er1
>conftest.err
14395 cat conftest.err
>&5
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); } &&
14398 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14400 (eval $ac_try) 2>&5
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); }; } &&
14404 { ac_try
='test -s conftest$ac_exeext'
14405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14406 (eval $ac_try) 2>&5
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); }; }; then
14410 eval "$as_ac_var=yes"
14412 echo "$as_me: failed program was:" >&5
14413 sed 's/^/| /' conftest.
$ac_ext >&5
14415 eval "$as_ac_var=no"
14417 rm -f conftest.err conftest.
$ac_objext \
14418 conftest
$ac_exeext conftest.
$ac_ext
14420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14421 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14422 if test `eval echo '${'$as_ac_var'}'` = yes; then
14424 cat >>confdefs.h
<<_ACEOF
14425 #define CRAY_STACKSEG_END $ac_func
14434 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14435 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14436 if test "${ac_cv_c_stack_direction+set}" = set; then
14437 echo $ECHO_N "(cached) $ECHO_C" >&6
14439 if test "$cross_compiling" = yes; then
14440 ac_cv_c_stack_direction
=0
14442 cat >conftest.
$ac_ext <<_ACEOF
14445 cat confdefs.h
>>conftest.
$ac_ext
14446 cat >>conftest.
$ac_ext <<_ACEOF
14447 /* end confdefs.h. */
14449 find_stack_direction ()
14451 static char *addr = 0;
14456 return find_stack_direction ();
14459 return (&dummy > addr) ? 1 : -1;
14465 exit (find_stack_direction () < 0);
14468 rm -f conftest
$ac_exeext
14469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14470 (eval $ac_link) 2>&5
14472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14475 (eval $ac_try) 2>&5
14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478 (exit $ac_status); }; }; then
14479 ac_cv_c_stack_direction
=1
14481 echo "$as_me: program exited with status $ac_status" >&5
14482 echo "$as_me: failed program was:" >&5
14483 sed 's/^/| /' conftest.
$ac_ext >&5
14485 ( exit $ac_status )
14486 ac_cv_c_stack_direction
=-1
14488 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14491 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14492 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14494 cat >>confdefs.h
<<_ACEOF
14495 #define STACK_DIRECTION $ac_cv_c_stack_direction
14502 # fmod, logb, and frexp are found in -lm on most systems.
14503 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14505 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
14506 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
14507 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14508 echo $ECHO_N "(cached) $ECHO_C" >&6
14510 ac_check_lib_save_LIBS
=$LIBS
14512 cat >conftest.
$ac_ext <<_ACEOF
14515 cat confdefs.h
>>conftest.
$ac_ext
14516 cat >>conftest.
$ac_ext <<_ACEOF
14517 /* end confdefs.h. */
14519 /* Override any gcc2 internal prototype to avoid an error. */
14523 /* We use char because int might match the return type of a gcc2
14524 builtin and then its argument prototype would still apply. */
14534 rm -f conftest.
$ac_objext conftest
$ac_exeext
14535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14536 (eval $ac_link) 2>conftest.er1
14538 grep -v '^ *+' conftest.er1
>conftest.err
14540 cat conftest.err
>&5
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); } &&
14543 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14545 (eval $ac_try) 2>&5
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); }; } &&
14549 { ac_try
='test -s conftest$ac_exeext'
14550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14551 (eval $ac_try) 2>&5
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); }; }; then
14555 ac_cv_lib_m_sqrt
=yes
14557 echo "$as_me: failed program was:" >&5
14558 sed 's/^/| /' conftest.
$ac_ext >&5
14560 ac_cv_lib_m_sqrt
=no
14562 rm -f conftest.err conftest.
$ac_objext \
14563 conftest
$ac_exeext conftest.
$ac_ext
14564 LIBS
=$ac_check_lib_save_LIBS
14566 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
14567 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
14568 if test $ac_cv_lib_m_sqrt = yes; then
14569 cat >>confdefs.h
<<_ACEOF
14570 #define HAVE_LIBM 1
14578 # Check for mail-locking functions in a "mail" library. Probably this should
14579 # have the same check as for liblockfile below.
14581 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
14582 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
14583 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14584 echo $ECHO_N "(cached) $ECHO_C" >&6
14586 ac_check_lib_save_LIBS
=$LIBS
14587 LIBS
="-lmail $LIBS"
14588 cat >conftest.
$ac_ext <<_ACEOF
14591 cat confdefs.h
>>conftest.
$ac_ext
14592 cat >>conftest.
$ac_ext <<_ACEOF
14593 /* end confdefs.h. */
14595 /* Override any gcc2 internal prototype to avoid an error. */
14599 /* We use char because int might match the return type of a gcc2
14600 builtin and then its argument prototype would still apply. */
14610 rm -f conftest.
$ac_objext conftest
$ac_exeext
14611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14612 (eval $ac_link) 2>conftest.er1
14614 grep -v '^ *+' conftest.er1
>conftest.err
14616 cat conftest.err
>&5
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); } &&
14619 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14621 (eval $ac_try) 2>&5
14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); }; } &&
14625 { ac_try
='test -s conftest$ac_exeext'
14626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14627 (eval $ac_try) 2>&5
14629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630 (exit $ac_status); }; }; then
14631 ac_cv_lib_mail_maillock
=yes
14633 echo "$as_me: failed program was:" >&5
14634 sed 's/^/| /' conftest.
$ac_ext >&5
14636 ac_cv_lib_mail_maillock
=no
14638 rm -f conftest.err conftest.
$ac_objext \
14639 conftest
$ac_exeext conftest.
$ac_ext
14640 LIBS
=$ac_check_lib_save_LIBS
14642 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
14643 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
14644 if test $ac_cv_lib_mail_maillock = yes; then
14645 cat >>confdefs.h
<<_ACEOF
14646 #define HAVE_LIBMAIL 1
14649 LIBS
="-lmail $LIBS"
14654 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
14655 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
14656 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14657 echo $ECHO_N "(cached) $ECHO_C" >&6
14659 ac_check_lib_save_LIBS
=$LIBS
14660 LIBS
="-llockfile $LIBS"
14661 cat >conftest.
$ac_ext <<_ACEOF
14664 cat confdefs.h
>>conftest.
$ac_ext
14665 cat >>conftest.
$ac_ext <<_ACEOF
14666 /* end confdefs.h. */
14668 /* Override any gcc2 internal prototype to avoid an error. */
14672 /* We use char because int might match the return type of a gcc2
14673 builtin and then its argument prototype would still apply. */
14683 rm -f conftest.
$ac_objext conftest
$ac_exeext
14684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14685 (eval $ac_link) 2>conftest.er1
14687 grep -v '^ *+' conftest.er1
>conftest.err
14689 cat conftest.err
>&5
14690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691 (exit $ac_status); } &&
14692 { ac_try
='test -z "$ac_c_werror_flag"
14693 || test ! -s conftest.err'
14694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14695 (eval $ac_try) 2>&5
14697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698 (exit $ac_status); }; } &&
14699 { ac_try
='test -s conftest$ac_exeext'
14700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14701 (eval $ac_try) 2>&5
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); }; }; then
14705 ac_cv_lib_lockfile_maillock
=yes
14707 echo "$as_me: failed program was:" >&5
14708 sed 's/^/| /' conftest.
$ac_ext >&5
14710 ac_cv_lib_lockfile_maillock
=no
14712 rm -f conftest.err conftest.
$ac_objext \
14713 conftest
$ac_exeext conftest.
$ac_ext
14714 LIBS
=$ac_check_lib_save_LIBS
14716 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14717 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
14718 if test $ac_cv_lib_lockfile_maillock = yes; then
14719 cat >>confdefs.h
<<_ACEOF
14720 #define HAVE_LIBLOCKFILE 1
14723 LIBS
="-llockfile $LIBS"
14727 # If we have the shared liblockfile, assume we must use it for mail
14728 # locking (e.g. Debian). If we couldn't link against liblockfile
14729 # (no liblockfile.a installed), ensure that we don't need to.
14730 if test "$ac_cv_lib_lockfile_maillock" = no
; then
14731 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14732 set dummy liblockfile.so
; ac_word
=$2
14733 echo "$as_me:$LINENO: checking for $ac_word" >&5
14734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14735 if test "${ac_cv_prog_liblockfile+set}" = set; then
14736 echo $ECHO_N "(cached) $ECHO_C" >&6
14738 if test -n "$liblockfile"; then
14739 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
14741 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14742 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14743 for as_dir
in $as_dummy
14746 test -z "$as_dir" && as_dir
=.
14747 for ac_exec_ext
in '' $ac_executable_extensions; do
14748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14749 ac_cv_prog_liblockfile
="yes"
14750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14756 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
14759 liblockfile
=$ac_cv_prog_liblockfile
14760 if test -n "$liblockfile"; then
14761 echo "$as_me:$LINENO: result: $liblockfile" >&5
14762 echo "${ECHO_T}$liblockfile" >&6
14764 echo "$as_me:$LINENO: result: no" >&5
14765 echo "${ECHO_T}no" >&6
14768 if test $ac_cv_prog_liblockfile = yes; then
14769 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
14770 This probably means that movemail could lose mail.
14771 There may be a \`development' package to install containing liblockfile." >&5
14772 echo "$as_me: error: Shared liblockfile found but can't link against it.
14773 This probably means that movemail could lose mail.
14774 There may be a \`development' package to install containing liblockfile." >&2;}
14775 { (exit 1); exit 1; }; }
14780 for ac_func
in touchlock
14782 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14783 echo "$as_me:$LINENO: checking for $ac_func" >&5
14784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14785 if eval "test \"\${$as_ac_var+set}\" = set"; then
14786 echo $ECHO_N "(cached) $ECHO_C" >&6
14788 cat >conftest.
$ac_ext <<_ACEOF
14791 cat confdefs.h
>>conftest.
$ac_ext
14792 cat >>conftest.
$ac_ext <<_ACEOF
14793 /* end confdefs.h. */
14794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14796 #define $ac_func innocuous_$ac_func
14798 /* System header to define __stub macros and hopefully few prototypes,
14799 which can conflict with char $ac_func (); below.
14800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14801 <limits.h> exists even on freestanding compilers. */
14804 # include <limits.h>
14806 # include <assert.h>
14811 /* Override any gcc2 internal prototype to avoid an error. */
14816 /* We use char because int might match the return type of a gcc2
14817 builtin and then its argument prototype would still apply. */
14819 /* The GNU C library defines this for functions which it implements
14820 to always fail with ENOSYS. Some functions are actually named
14821 something starting with __ and the normal name is an alias. */
14822 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14825 char (*f) () = $ac_func;
14834 return f != $ac_func;
14839 rm -f conftest.
$ac_objext conftest
$ac_exeext
14840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14841 (eval $ac_link) 2>conftest.er1
14843 grep -v '^ *+' conftest.er1
>conftest.err
14845 cat conftest.err
>&5
14846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); } &&
14848 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14850 (eval $ac_try) 2>&5
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); }; } &&
14854 { ac_try
='test -s conftest$ac_exeext'
14855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14856 (eval $ac_try) 2>&5
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); }; }; then
14860 eval "$as_ac_var=yes"
14862 echo "$as_me: failed program was:" >&5
14863 sed 's/^/| /' conftest.
$ac_ext >&5
14865 eval "$as_ac_var=no"
14867 rm -f conftest.err conftest.
$ac_objext \
14868 conftest
$ac_exeext conftest.
$ac_ext
14870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14871 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14872 if test `eval echo '${'$as_ac_var'}'` = yes; then
14873 cat >>confdefs.h
<<_ACEOF
14874 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14881 for ac_header
in maillock.h
14883 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14885 echo "$as_me:$LINENO: checking for $ac_header" >&5
14886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14888 echo $ECHO_N "(cached) $ECHO_C" >&6
14890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14893 # Is the header compilable?
14894 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14895 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14896 cat >conftest.
$ac_ext <<_ACEOF
14899 cat confdefs.h
>>conftest.
$ac_ext
14900 cat >>conftest.
$ac_ext <<_ACEOF
14901 /* end confdefs.h. */
14902 $ac_includes_default
14903 #include <$ac_header>
14905 rm -f conftest.
$ac_objext
14906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14907 (eval $ac_compile) 2>conftest.er1
14909 grep -v '^ *+' conftest.er1
>conftest.err
14911 cat conftest.err
>&5
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); } &&
14914 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14916 (eval $ac_try) 2>&5
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); }; } &&
14920 { ac_try
='test -s conftest.$ac_objext'
14921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14922 (eval $ac_try) 2>&5
14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); }; }; then
14926 ac_header_compiler
=yes
14928 echo "$as_me: failed program was:" >&5
14929 sed 's/^/| /' conftest.
$ac_ext >&5
14931 ac_header_compiler
=no
14933 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14934 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14935 echo "${ECHO_T}$ac_header_compiler" >&6
14937 # Is the header present?
14938 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14939 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14940 cat >conftest.
$ac_ext <<_ACEOF
14943 cat confdefs.h
>>conftest.
$ac_ext
14944 cat >>conftest.
$ac_ext <<_ACEOF
14945 /* end confdefs.h. */
14946 #include <$ac_header>
14948 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14949 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14951 grep -v '^ *+' conftest.er1
>conftest.err
14953 cat conftest.err
>&5
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); } >/dev
/null
; then
14956 if test -s conftest.err
; then
14957 ac_cpp_err
=$ac_c_preproc_warn_flag
14958 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14965 if test -z "$ac_cpp_err"; then
14966 ac_header_preproc
=yes
14968 echo "$as_me: failed program was:" >&5
14969 sed 's/^/| /' conftest.
$ac_ext >&5
14971 ac_header_preproc
=no
14973 rm -f conftest.err conftest.
$ac_ext
14974 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14975 echo "${ECHO_T}$ac_header_preproc" >&6
14977 # So? What about this header?
14978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14980 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14981 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14983 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14984 ac_header_preproc
=yes
14987 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14988 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14989 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14990 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14991 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14992 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14993 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14994 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14996 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14997 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14998 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15001 ## ------------------------------------------ ##
15002 ## Report this to the AC_PACKAGE_NAME lists. ##
15003 ## ------------------------------------------ ##
15006 sed "s/^/$as_me: WARNING: /" >&2
15009 echo "$as_me:$LINENO: checking for $ac_header" >&5
15010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15012 echo $ECHO_N "(cached) $ECHO_C" >&6
15014 eval "$as_ac_Header=\$ac_header_preproc"
15016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15017 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15021 cat >>confdefs.h
<<_ACEOF
15022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15098 for ac_func
in gethostname getdomainname dup2 \
15099 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
15100 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15101 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
15102 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15103 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15104 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15105 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
15106 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15108 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15109 echo "$as_me:$LINENO: checking for $ac_func" >&5
15110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15111 if eval "test \"\${$as_ac_var+set}\" = set"; then
15112 echo $ECHO_N "(cached) $ECHO_C" >&6
15114 cat >conftest.
$ac_ext <<_ACEOF
15117 cat confdefs.h
>>conftest.
$ac_ext
15118 cat >>conftest.
$ac_ext <<_ACEOF
15119 /* end confdefs.h. */
15120 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15121 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15122 #define $ac_func innocuous_$ac_func
15124 /* System header to define __stub macros and hopefully few prototypes,
15125 which can conflict with char $ac_func (); below.
15126 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15127 <limits.h> exists even on freestanding compilers. */
15130 # include <limits.h>
15132 # include <assert.h>
15137 /* Override any gcc2 internal prototype to avoid an error. */
15142 /* We use char because int might match the return type of a gcc2
15143 builtin and then its argument prototype would still apply. */
15145 /* The GNU C library defines this for functions which it implements
15146 to always fail with ENOSYS. Some functions are actually named
15147 something starting with __ and the normal name is an alias. */
15148 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15151 char (*f) () = $ac_func;
15160 return f != $ac_func;
15165 rm -f conftest.
$ac_objext conftest
$ac_exeext
15166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15167 (eval $ac_link) 2>conftest.er1
15169 grep -v '^ *+' conftest.er1
>conftest.err
15171 cat conftest.err
>&5
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); } &&
15174 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15176 (eval $ac_try) 2>&5
15178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179 (exit $ac_status); }; } &&
15180 { ac_try
='test -s conftest$ac_exeext'
15181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15182 (eval $ac_try) 2>&5
15184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185 (exit $ac_status); }; }; then
15186 eval "$as_ac_var=yes"
15188 echo "$as_me: failed program was:" >&5
15189 sed 's/^/| /' conftest.
$ac_ext >&5
15191 eval "$as_ac_var=no"
15193 rm -f conftest.err conftest.
$ac_objext \
15194 conftest
$ac_exeext conftest.
$ac_ext
15196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15197 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15198 if test `eval echo '${'$as_ac_var'}'` = yes; then
15199 cat >>confdefs.h
<<_ACEOF
15200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15208 for ac_header
in sys
/un.h
15210 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15212 echo "$as_me:$LINENO: checking for $ac_header" >&5
15213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15214 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15215 echo $ECHO_N "(cached) $ECHO_C" >&6
15217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15220 # Is the header compilable?
15221 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15222 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15223 cat >conftest.
$ac_ext <<_ACEOF
15226 cat confdefs.h
>>conftest.
$ac_ext
15227 cat >>conftest.
$ac_ext <<_ACEOF
15228 /* end confdefs.h. */
15229 $ac_includes_default
15230 #include <$ac_header>
15232 rm -f conftest.
$ac_objext
15233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15234 (eval $ac_compile) 2>conftest.er1
15236 grep -v '^ *+' conftest.er1
>conftest.err
15238 cat conftest.err
>&5
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); } &&
15241 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15243 (eval $ac_try) 2>&5
15245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246 (exit $ac_status); }; } &&
15247 { ac_try
='test -s conftest.$ac_objext'
15248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15249 (eval $ac_try) 2>&5
15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252 (exit $ac_status); }; }; then
15253 ac_header_compiler
=yes
15255 echo "$as_me: failed program was:" >&5
15256 sed 's/^/| /' conftest.
$ac_ext >&5
15258 ac_header_compiler
=no
15260 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15261 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15262 echo "${ECHO_T}$ac_header_compiler" >&6
15264 # Is the header present?
15265 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15266 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15267 cat >conftest.
$ac_ext <<_ACEOF
15270 cat confdefs.h
>>conftest.
$ac_ext
15271 cat >>conftest.
$ac_ext <<_ACEOF
15272 /* end confdefs.h. */
15273 #include <$ac_header>
15275 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15276 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15278 grep -v '^ *+' conftest.er1
>conftest.err
15280 cat conftest.err
>&5
15281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15282 (exit $ac_status); } >/dev
/null
; then
15283 if test -s conftest.err
; then
15284 ac_cpp_err
=$ac_c_preproc_warn_flag
15285 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15292 if test -z "$ac_cpp_err"; then
15293 ac_header_preproc
=yes
15295 echo "$as_me: failed program was:" >&5
15296 sed 's/^/| /' conftest.
$ac_ext >&5
15298 ac_header_preproc
=no
15300 rm -f conftest.err conftest.
$ac_ext
15301 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15302 echo "${ECHO_T}$ac_header_preproc" >&6
15304 # So? What about this header?
15305 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15307 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15308 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15310 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15311 ac_header_preproc
=yes
15314 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15315 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15316 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15317 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15318 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15319 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15320 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15321 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15322 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15323 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15324 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15325 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15328 ## ------------------------------------------ ##
15329 ## Report this to the AC_PACKAGE_NAME lists. ##
15330 ## ------------------------------------------ ##
15333 sed "s/^/$as_me: WARNING: /" >&2
15336 echo "$as_me:$LINENO: checking for $ac_header" >&5
15337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15339 echo $ECHO_N "(cached) $ECHO_C" >&6
15341 eval "$as_ac_Header=\$ac_header_preproc"
15343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15344 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15347 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15348 cat >>confdefs.h
<<_ACEOF
15349 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15360 for ac_header
in stdlib.h sys
/time.h unistd.h
15362 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15364 echo "$as_me:$LINENO: checking for $ac_header" >&5
15365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15367 echo $ECHO_N "(cached) $ECHO_C" >&6
15369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15372 # Is the header compilable?
15373 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15374 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15375 cat >conftest.
$ac_ext <<_ACEOF
15378 cat confdefs.h
>>conftest.
$ac_ext
15379 cat >>conftest.
$ac_ext <<_ACEOF
15380 /* end confdefs.h. */
15381 $ac_includes_default
15382 #include <$ac_header>
15384 rm -f conftest.
$ac_objext
15385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15386 (eval $ac_compile) 2>conftest.er1
15388 grep -v '^ *+' conftest.er1
>conftest.err
15390 cat conftest.err
>&5
15391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392 (exit $ac_status); } &&
15393 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15395 (eval $ac_try) 2>&5
15397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398 (exit $ac_status); }; } &&
15399 { ac_try
='test -s conftest.$ac_objext'
15400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15401 (eval $ac_try) 2>&5
15403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404 (exit $ac_status); }; }; then
15405 ac_header_compiler
=yes
15407 echo "$as_me: failed program was:" >&5
15408 sed 's/^/| /' conftest.
$ac_ext >&5
15410 ac_header_compiler
=no
15412 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15413 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15414 echo "${ECHO_T}$ac_header_compiler" >&6
15416 # Is the header present?
15417 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15418 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15419 cat >conftest.
$ac_ext <<_ACEOF
15422 cat confdefs.h
>>conftest.
$ac_ext
15423 cat >>conftest.
$ac_ext <<_ACEOF
15424 /* end confdefs.h. */
15425 #include <$ac_header>
15427 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15428 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15430 grep -v '^ *+' conftest.er1
>conftest.err
15432 cat conftest.err
>&5
15433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); } >/dev
/null
; then
15435 if test -s conftest.err
; then
15436 ac_cpp_err
=$ac_c_preproc_warn_flag
15437 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15444 if test -z "$ac_cpp_err"; then
15445 ac_header_preproc
=yes
15447 echo "$as_me: failed program was:" >&5
15448 sed 's/^/| /' conftest.
$ac_ext >&5
15450 ac_header_preproc
=no
15452 rm -f conftest.err conftest.
$ac_ext
15453 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15454 echo "${ECHO_T}$ac_header_preproc" >&6
15456 # So? What about this header?
15457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15459 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15460 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15462 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15463 ac_header_preproc
=yes
15466 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15467 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15468 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15469 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15470 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15471 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15472 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15473 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15475 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15476 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15477 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15480 ## ------------------------------------------ ##
15481 ## Report this to the AC_PACKAGE_NAME lists. ##
15482 ## ------------------------------------------ ##
15485 sed "s/^/$as_me: WARNING: /" >&2
15488 echo "$as_me:$LINENO: checking for $ac_header" >&5
15489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15491 echo $ECHO_N "(cached) $ECHO_C" >&6
15493 eval "$as_ac_Header=\$ac_header_preproc"
15495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15496 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15499 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15500 cat >>confdefs.h
<<_ACEOF
15501 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15509 for ac_func
in alarm
15511 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15512 echo "$as_me:$LINENO: checking for $ac_func" >&5
15513 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15514 if eval "test \"\${$as_ac_var+set}\" = set"; then
15515 echo $ECHO_N "(cached) $ECHO_C" >&6
15517 cat >conftest.
$ac_ext <<_ACEOF
15520 cat confdefs.h
>>conftest.
$ac_ext
15521 cat >>conftest.
$ac_ext <<_ACEOF
15522 /* end confdefs.h. */
15523 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15525 #define $ac_func innocuous_$ac_func
15527 /* System header to define __stub macros and hopefully few prototypes,
15528 which can conflict with char $ac_func (); below.
15529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15530 <limits.h> exists even on freestanding compilers. */
15533 # include <limits.h>
15535 # include <assert.h>
15540 /* Override any gcc2 internal prototype to avoid an error. */
15545 /* We use char because int might match the return type of a gcc2
15546 builtin and then its argument prototype would still apply. */
15548 /* The GNU C library defines this for functions which it implements
15549 to always fail with ENOSYS. Some functions are actually named
15550 something starting with __ and the normal name is an alias. */
15551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15554 char (*f) () = $ac_func;
15563 return f != $ac_func;
15568 rm -f conftest.
$ac_objext conftest
$ac_exeext
15569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15570 (eval $ac_link) 2>conftest.er1
15572 grep -v '^ *+' conftest.er1
>conftest.err
15574 cat conftest.err
>&5
15575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576 (exit $ac_status); } &&
15577 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15579 (eval $ac_try) 2>&5
15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 (exit $ac_status); }; } &&
15583 { ac_try
='test -s conftest$ac_exeext'
15584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15585 (eval $ac_try) 2>&5
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 (exit $ac_status); }; }; then
15589 eval "$as_ac_var=yes"
15591 echo "$as_me: failed program was:" >&5
15592 sed 's/^/| /' conftest.
$ac_ext >&5
15594 eval "$as_ac_var=no"
15596 rm -f conftest.err conftest.
$ac_objext \
15597 conftest
$ac_exeext conftest.
$ac_ext
15599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15600 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15601 if test `eval echo '${'$as_ac_var'}'` = yes; then
15602 cat >>confdefs.h
<<_ACEOF
15603 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15609 echo "$as_me:$LINENO: checking for working mktime" >&5
15610 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
15611 if test "${ac_cv_func_working_mktime+set}" = set; then
15612 echo $ECHO_N "(cached) $ECHO_C" >&6
15614 if test "$cross_compiling" = yes; then
15615 ac_cv_func_working_mktime
=no
15617 cat >conftest.
$ac_ext <<_ACEOF
15620 cat confdefs.h
>>conftest.
$ac_ext
15621 cat >>conftest.
$ac_ext <<_ACEOF
15622 /* end confdefs.h. */
15623 /* Test program from Paul Eggert and Tony Leneis. */
15624 #if TIME_WITH_SYS_TIME
15625 # include <sys/time.h>
15628 # if HAVE_SYS_TIME_H
15629 # include <sys/time.h>
15636 # include <stdlib.h>
15640 # include <unistd.h>
15644 # define alarm(X) /* empty */
15647 /* Work around redefinition to rpl_putenv by other config tests. */
15650 static time_t time_t_max;
15651 static time_t time_t_min;
15653 /* Values we'll use to set the TZ environment variable. */
15654 static char *tz_strings[] = {
15655 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15656 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15658 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15660 /* Fail if mktime fails to convert a date in the spring-forward gap.
15661 Based on a problem report from Andreas Jaeger. */
15663 spring_forward_gap ()
15665 /* glibc (up to about 1998-10-07) failed this test. */
15668 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15669 instead of "TZ=America/Vancouver" in order to detect the bug even
15670 on systems that don't support the Olson extension, or don't have the
15671 full zoneinfo tables installed. */
15672 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15681 if (mktime (&tm) == (time_t)-1)
15690 if ((lt = localtime (&now)) && mktime (lt) != now)
15698 mktime_test1 (now);
15699 mktime_test1 ((time_t) (time_t_max - now));
15700 mktime_test1 ((time_t) (time_t_min + now));
15706 /* Based on code from Ariel Faigon. */
15716 if (tm.tm_mon != 2 || tm.tm_mday != 31)
15726 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15727 now = mktime (&tm);
15728 if (now != (time_t) -1)
15730 struct tm *lt = localtime (&now);
15732 && lt->tm_year == tm.tm_year
15733 && lt->tm_mon == tm.tm_mon
15734 && lt->tm_mday == tm.tm_mday
15735 && lt->tm_hour == tm.tm_hour
15736 && lt->tm_min == tm.tm_min
15737 && lt->tm_sec == tm.tm_sec
15738 && lt->tm_yday == tm.tm_yday
15739 && lt->tm_wday == tm.tm_wday
15740 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15741 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15752 /* This test makes some buggy mktime implementations loop.
15753 Give up after 60 seconds; a mktime slower than that
15754 isn't worth using anyway. */
15757 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15760 if ((time_t) -1 < 0)
15761 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15763 delta = time_t_max / 997; /* a suitable prime number */
15764 for (i = 0; i < N_STRINGS; i++)
15767 putenv (tz_strings[i]);
15769 for (t = 0; t <= time_t_max - delta; t += delta)
15771 mktime_test ((time_t) 1);
15772 mktime_test ((time_t) (60 * 60));
15773 mktime_test ((time_t) (60 * 60 * 24));
15775 for (j = 1; 0 < j; j *= 2)
15777 bigtime_test (j - 1);
15780 spring_forward_gap ();
15784 rm -f conftest
$ac_exeext
15785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15786 (eval $ac_link) 2>&5
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15791 (eval $ac_try) 2>&5
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); }; }; then
15795 ac_cv_func_working_mktime
=yes
15797 echo "$as_me: program exited with status $ac_status" >&5
15798 echo "$as_me: failed program was:" >&5
15799 sed 's/^/| /' conftest.
$ac_ext >&5
15801 ( exit $ac_status )
15802 ac_cv_func_working_mktime
=no
15804 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15807 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15808 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
15809 if test $ac_cv_func_working_mktime = no
; then
15811 "mktime.$ac_objext" | \
15812 *" mktime.$ac_objext" | \
15813 "mktime.$ac_objext "* | \
15814 *" mktime.$ac_objext "* ) ;;
15815 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext" ;;
15820 if test "$ac_cv_func_working_mktime" = no
; then
15822 cat >>confdefs.h
<<\_ACEOF
15823 #define BROKEN_MKTIME 1
15828 ac_have_func
=no
# yes means we've found a way to get the load average.
15830 # Make sure getloadavg.c is where it belongs, at configure-time.
15831 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
15832 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
15833 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
15834 { (exit 1); exit 1; }; }
15838 # Check for getloadavg, but be sure not to touch the cache variable.
15839 (echo "$as_me:$LINENO: checking for getloadavg" >&5
15840 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
15841 if test "${ac_cv_func_getloadavg+set}" = set; then
15842 echo $ECHO_N "(cached) $ECHO_C" >&6
15844 cat >conftest.
$ac_ext <<_ACEOF
15847 cat confdefs.h
>>conftest.
$ac_ext
15848 cat >>conftest.
$ac_ext <<_ACEOF
15849 /* end confdefs.h. */
15850 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
15851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15852 #define getloadavg innocuous_getloadavg
15854 /* System header to define __stub macros and hopefully few prototypes,
15855 which can conflict with char getloadavg (); below.
15856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15857 <limits.h> exists even on freestanding compilers. */
15860 # include <limits.h>
15862 # include <assert.h>
15867 /* Override any gcc2 internal prototype to avoid an error. */
15872 /* We use char because int might match the return type of a gcc2
15873 builtin and then its argument prototype would still apply. */
15874 char getloadavg ();
15875 /* The GNU C library defines this for functions which it implements
15876 to always fail with ENOSYS. Some functions are actually named
15877 something starting with __ and the normal name is an alias. */
15878 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
15881 char (*f) () = getloadavg;
15890 return f != getloadavg;
15895 rm -f conftest.
$ac_objext conftest
$ac_exeext
15896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15897 (eval $ac_link) 2>conftest.er1
15899 grep -v '^ *+' conftest.er1
>conftest.err
15901 cat conftest.err
>&5
15902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903 (exit $ac_status); } &&
15904 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15906 (eval $ac_try) 2>&5
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); }; } &&
15910 { ac_try
='test -s conftest$ac_exeext'
15911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15912 (eval $ac_try) 2>&5
15914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915 (exit $ac_status); }; }; then
15916 ac_cv_func_getloadavg
=yes
15918 echo "$as_me: failed program was:" >&5
15919 sed 's/^/| /' conftest.
$ac_ext >&5
15921 ac_cv_func_getloadavg
=no
15923 rm -f conftest.err conftest.
$ac_objext \
15924 conftest
$ac_exeext conftest.
$ac_ext
15926 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
15927 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
15928 if test $ac_cv_func_getloadavg = yes; then
15933 ) && ac_have_func
=yes
15935 # On HPUX9, an unprivileged user can get load averages through this function.
15937 for ac_func
in pstat_getdynamic
15939 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15940 echo "$as_me:$LINENO: checking for $ac_func" >&5
15941 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15942 if eval "test \"\${$as_ac_var+set}\" = set"; then
15943 echo $ECHO_N "(cached) $ECHO_C" >&6
15945 cat >conftest.
$ac_ext <<_ACEOF
15948 cat confdefs.h
>>conftest.
$ac_ext
15949 cat >>conftest.
$ac_ext <<_ACEOF
15950 /* end confdefs.h. */
15951 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15953 #define $ac_func innocuous_$ac_func
15955 /* System header to define __stub macros and hopefully few prototypes,
15956 which can conflict with char $ac_func (); below.
15957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15958 <limits.h> exists even on freestanding compilers. */
15961 # include <limits.h>
15963 # include <assert.h>
15968 /* Override any gcc2 internal prototype to avoid an error. */
15973 /* We use char because int might match the return type of a gcc2
15974 builtin and then its argument prototype would still apply. */
15976 /* The GNU C library defines this for functions which it implements
15977 to always fail with ENOSYS. Some functions are actually named
15978 something starting with __ and the normal name is an alias. */
15979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15982 char (*f) () = $ac_func;
15991 return f != $ac_func;
15996 rm -f conftest.
$ac_objext conftest
$ac_exeext
15997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15998 (eval $ac_link) 2>conftest.er1
16000 grep -v '^ *+' conftest.er1
>conftest.err
16002 cat conftest.err
>&5
16003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004 (exit $ac_status); } &&
16005 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16007 (eval $ac_try) 2>&5
16009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010 (exit $ac_status); }; } &&
16011 { ac_try
='test -s conftest$ac_exeext'
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); }; }; then
16017 eval "$as_ac_var=yes"
16019 echo "$as_me: failed program was:" >&5
16020 sed 's/^/| /' conftest.
$ac_ext >&5
16022 eval "$as_ac_var=no"
16024 rm -f conftest.err conftest.
$ac_objext \
16025 conftest
$ac_exeext conftest.
$ac_ext
16027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16028 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16029 if test `eval echo '${'$as_ac_var'}'` = yes; then
16030 cat >>confdefs.h
<<_ACEOF
16031 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16038 # Solaris has libkstat which does not require root.
16040 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16041 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
16042 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16043 echo $ECHO_N "(cached) $ECHO_C" >&6
16045 ac_check_lib_save_LIBS
=$LIBS
16046 LIBS
="-lkstat $LIBS"
16047 cat >conftest.
$ac_ext <<_ACEOF
16050 cat confdefs.h
>>conftest.
$ac_ext
16051 cat >>conftest.
$ac_ext <<_ACEOF
16052 /* end confdefs.h. */
16054 /* Override any gcc2 internal prototype to avoid an error. */
16058 /* We use char because int might match the return type of a gcc2
16059 builtin and then its argument prototype would still apply. */
16060 char kstat_open ();
16069 rm -f conftest.
$ac_objext conftest
$ac_exeext
16070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16071 (eval $ac_link) 2>conftest.er1
16073 grep -v '^ *+' conftest.er1
>conftest.err
16075 cat conftest.err
>&5
16076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077 (exit $ac_status); } &&
16078 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16080 (eval $ac_try) 2>&5
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); }; } &&
16084 { ac_try
='test -s conftest$ac_exeext'
16085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16086 (eval $ac_try) 2>&5
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); }; }; then
16090 ac_cv_lib_kstat_kstat_open
=yes
16092 echo "$as_me: failed program was:" >&5
16093 sed 's/^/| /' conftest.
$ac_ext >&5
16095 ac_cv_lib_kstat_kstat_open
=no
16097 rm -f conftest.err conftest.
$ac_objext \
16098 conftest
$ac_exeext conftest.
$ac_ext
16099 LIBS
=$ac_check_lib_save_LIBS
16101 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16102 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
16103 if test $ac_cv_lib_kstat_kstat_open = yes; then
16104 cat >>confdefs.h
<<_ACEOF
16105 #define HAVE_LIBKSTAT 1
16108 LIBS
="-lkstat $LIBS"
16112 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
16114 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16115 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16116 # to get the right answer into the cache.
16117 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16118 if test $ac_have_func = no
; then
16119 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16120 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
16121 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16122 echo $ECHO_N "(cached) $ECHO_C" >&6
16124 ac_check_lib_save_LIBS
=$LIBS
16126 cat >conftest.
$ac_ext <<_ACEOF
16129 cat confdefs.h
>>conftest.
$ac_ext
16130 cat >>conftest.
$ac_ext <<_ACEOF
16131 /* end confdefs.h. */
16133 /* Override any gcc2 internal prototype to avoid an error. */
16137 /* We use char because int might match the return type of a gcc2
16138 builtin and then its argument prototype would still apply. */
16148 rm -f conftest.
$ac_objext conftest
$ac_exeext
16149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16150 (eval $ac_link) 2>conftest.er1
16152 grep -v '^ *+' conftest.er1
>conftest.err
16154 cat conftest.err
>&5
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); } &&
16157 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16159 (eval $ac_try) 2>&5
16161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162 (exit $ac_status); }; } &&
16163 { ac_try
='test -s conftest$ac_exeext'
16164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16165 (eval $ac_try) 2>&5
16167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16168 (exit $ac_status); }; }; then
16169 ac_cv_lib_elf_elf_begin
=yes
16171 echo "$as_me: failed program was:" >&5
16172 sed 's/^/| /' conftest.
$ac_ext >&5
16174 ac_cv_lib_elf_elf_begin
=no
16176 rm -f conftest.err conftest.
$ac_objext \
16177 conftest
$ac_exeext conftest.
$ac_ext
16178 LIBS
=$ac_check_lib_save_LIBS
16180 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
16181 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
16182 if test $ac_cv_lib_elf_elf_begin = yes; then
16187 if test $ac_have_func = no
; then
16188 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
16189 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
16190 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16191 echo $ECHO_N "(cached) $ECHO_C" >&6
16193 ac_check_lib_save_LIBS
=$LIBS
16195 cat >conftest.
$ac_ext <<_ACEOF
16198 cat confdefs.h
>>conftest.
$ac_ext
16199 cat >>conftest.
$ac_ext <<_ACEOF
16200 /* end confdefs.h. */
16202 /* Override any gcc2 internal prototype to avoid an error. */
16206 /* We use char because int might match the return type of a gcc2
16207 builtin and then its argument prototype would still apply. */
16217 rm -f conftest.
$ac_objext conftest
$ac_exeext
16218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16219 (eval $ac_link) 2>conftest.er1
16221 grep -v '^ *+' conftest.er1
>conftest.err
16223 cat conftest.err
>&5
16224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225 (exit $ac_status); } &&
16226 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16228 (eval $ac_try) 2>&5
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); }; } &&
16232 { ac_try
='test -s conftest$ac_exeext'
16233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16234 (eval $ac_try) 2>&5
16236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237 (exit $ac_status); }; }; then
16238 ac_cv_lib_kvm_kvm_open
=yes
16240 echo "$as_me: failed program was:" >&5
16241 sed 's/^/| /' conftest.
$ac_ext >&5
16243 ac_cv_lib_kvm_kvm_open
=no
16245 rm -f conftest.err conftest.
$ac_objext \
16246 conftest
$ac_exeext conftest.
$ac_ext
16247 LIBS
=$ac_check_lib_save_LIBS
16249 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
16250 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
16251 if test $ac_cv_lib_kvm_kvm_open = yes; then
16255 # Check for the 4.4BSD definition of getloadavg.
16256 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
16257 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
16258 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16259 echo $ECHO_N "(cached) $ECHO_C" >&6
16261 ac_check_lib_save_LIBS
=$LIBS
16262 LIBS
="-lutil $LIBS"
16263 cat >conftest.
$ac_ext <<_ACEOF
16266 cat confdefs.h
>>conftest.
$ac_ext
16267 cat >>conftest.
$ac_ext <<_ACEOF
16268 /* end confdefs.h. */
16270 /* Override any gcc2 internal prototype to avoid an error. */
16274 /* We use char because int might match the return type of a gcc2
16275 builtin and then its argument prototype would still apply. */
16276 char getloadavg ();
16285 rm -f conftest.
$ac_objext conftest
$ac_exeext
16286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16287 (eval $ac_link) 2>conftest.er1
16289 grep -v '^ *+' conftest.er1
>conftest.err
16291 cat conftest.err
>&5
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); } &&
16294 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16296 (eval $ac_try) 2>&5
16298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299 (exit $ac_status); }; } &&
16300 { ac_try
='test -s conftest$ac_exeext'
16301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16302 (eval $ac_try) 2>&5
16304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305 (exit $ac_status); }; }; then
16306 ac_cv_lib_util_getloadavg
=yes
16308 echo "$as_me: failed program was:" >&5
16309 sed 's/^/| /' conftest.
$ac_ext >&5
16311 ac_cv_lib_util_getloadavg
=no
16313 rm -f conftest.err conftest.
$ac_objext \
16314 conftest
$ac_exeext conftest.
$ac_ext
16315 LIBS
=$ac_check_lib_save_LIBS
16317 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
16318 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
16319 if test $ac_cv_lib_util_getloadavg = yes; then
16320 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
16325 if test $ac_have_func = no
; then
16326 # There is a commonly available library for RS/6000 AIX.
16327 # Since it is not a standard part of AIX, it might be installed locally.
16328 ac_getloadavg_LIBS
=$LIBS
16329 LIBS
="-L/usr/local/lib $LIBS"
16330 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
16331 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
16332 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16333 echo $ECHO_N "(cached) $ECHO_C" >&6
16335 ac_check_lib_save_LIBS
=$LIBS
16336 LIBS
="-lgetloadavg $LIBS"
16337 cat >conftest.
$ac_ext <<_ACEOF
16340 cat confdefs.h
>>conftest.
$ac_ext
16341 cat >>conftest.
$ac_ext <<_ACEOF
16342 /* end confdefs.h. */
16344 /* Override any gcc2 internal prototype to avoid an error. */
16348 /* We use char because int might match the return type of a gcc2
16349 builtin and then its argument prototype would still apply. */
16350 char getloadavg ();
16359 rm -f conftest.
$ac_objext conftest
$ac_exeext
16360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16361 (eval $ac_link) 2>conftest.er1
16363 grep -v '^ *+' conftest.er1
>conftest.err
16365 cat conftest.err
>&5
16366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367 (exit $ac_status); } &&
16368 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16370 (eval $ac_try) 2>&5
16372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); }; } &&
16374 { ac_try
='test -s conftest$ac_exeext'
16375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16376 (eval $ac_try) 2>&5
16378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379 (exit $ac_status); }; }; then
16380 ac_cv_lib_getloadavg_getloadavg
=yes
16382 echo "$as_me: failed program was:" >&5
16383 sed 's/^/| /' conftest.
$ac_ext >&5
16385 ac_cv_lib_getloadavg_getloadavg
=no
16387 rm -f conftest.err conftest.
$ac_objext \
16388 conftest
$ac_exeext conftest.
$ac_ext
16389 LIBS
=$ac_check_lib_save_LIBS
16391 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
16392 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
16393 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16394 LIBS
="-lgetloadavg $LIBS"
16396 LIBS
=$ac_getloadavg_LIBS
16401 # Make sure it is really in the library, if we think we found it,
16402 # otherwise set up the replacement function.
16404 for ac_func
in getloadavg
16406 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16407 echo "$as_me:$LINENO: checking for $ac_func" >&5
16408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16409 if eval "test \"\${$as_ac_var+set}\" = set"; then
16410 echo $ECHO_N "(cached) $ECHO_C" >&6
16412 cat >conftest.
$ac_ext <<_ACEOF
16415 cat confdefs.h
>>conftest.
$ac_ext
16416 cat >>conftest.
$ac_ext <<_ACEOF
16417 /* end confdefs.h. */
16418 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16420 #define $ac_func innocuous_$ac_func
16422 /* System header to define __stub macros and hopefully few prototypes,
16423 which can conflict with char $ac_func (); below.
16424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16425 <limits.h> exists even on freestanding compilers. */
16428 # include <limits.h>
16430 # include <assert.h>
16435 /* Override any gcc2 internal prototype to avoid an error. */
16440 /* We use char because int might match the return type of a gcc2
16441 builtin and then its argument prototype would still apply. */
16443 /* The GNU C library defines this for functions which it implements
16444 to always fail with ENOSYS. Some functions are actually named
16445 something starting with __ and the normal name is an alias. */
16446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16449 char (*f) () = $ac_func;
16458 return f != $ac_func;
16463 rm -f conftest.
$ac_objext conftest
$ac_exeext
16464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16465 (eval $ac_link) 2>conftest.er1
16467 grep -v '^ *+' conftest.er1
>conftest.err
16469 cat conftest.err
>&5
16470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471 (exit $ac_status); } &&
16472 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16474 (eval $ac_try) 2>&5
16476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); }; } &&
16478 { ac_try
='test -s conftest$ac_exeext'
16479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16480 (eval $ac_try) 2>&5
16482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483 (exit $ac_status); }; }; then
16484 eval "$as_ac_var=yes"
16486 echo "$as_me: failed program was:" >&5
16487 sed 's/^/| /' conftest.
$ac_ext >&5
16489 eval "$as_ac_var=no"
16491 rm -f conftest.err conftest.
$ac_objext \
16492 conftest
$ac_exeext conftest.
$ac_ext
16494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16495 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16496 if test `eval echo '${'$as_ac_var'}'` = yes; then
16497 cat >>confdefs.h
<<_ACEOF
16498 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16503 "getloadavg.$ac_objext" | \
16504 *" getloadavg.$ac_objext" | \
16505 "getloadavg.$ac_objext "* | \
16506 *" getloadavg.$ac_objext "* ) ;;
16507 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext" ;;
16511 cat >>confdefs.h
<<\_ACEOF
16512 #define C_GETLOADAVG 1
16515 # Figure out what our getloadavg.c needs.
16517 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16518 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16519 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
16520 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16521 echo $ECHO_N "(cached) $ECHO_C" >&6
16523 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16524 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
16526 # Is the header compilable?
16527 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
16528 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
16529 cat >conftest.
$ac_ext <<_ACEOF
16532 cat confdefs.h
>>conftest.
$ac_ext
16533 cat >>conftest.
$ac_ext <<_ACEOF
16534 /* end confdefs.h. */
16535 $ac_includes_default
16536 #include <sys/dg_sys_info.h>
16538 rm -f conftest.
$ac_objext
16539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16540 (eval $ac_compile) 2>conftest.er1
16542 grep -v '^ *+' conftest.er1
>conftest.err
16544 cat conftest.err
>&5
16545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16546 (exit $ac_status); } &&
16547 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16549 (eval $ac_try) 2>&5
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); }; } &&
16553 { ac_try
='test -s conftest.$ac_objext'
16554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16555 (eval $ac_try) 2>&5
16557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558 (exit $ac_status); }; }; then
16559 ac_header_compiler
=yes
16561 echo "$as_me: failed program was:" >&5
16562 sed 's/^/| /' conftest.
$ac_ext >&5
16564 ac_header_compiler
=no
16566 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16567 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16568 echo "${ECHO_T}$ac_header_compiler" >&6
16570 # Is the header present?
16571 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
16572 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
16573 cat >conftest.
$ac_ext <<_ACEOF
16576 cat confdefs.h
>>conftest.
$ac_ext
16577 cat >>conftest.
$ac_ext <<_ACEOF
16578 /* end confdefs.h. */
16579 #include <sys/dg_sys_info.h>
16581 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16582 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16584 grep -v '^ *+' conftest.er1
>conftest.err
16586 cat conftest.err
>&5
16587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588 (exit $ac_status); } >/dev
/null
; then
16589 if test -s conftest.err
; then
16590 ac_cpp_err
=$ac_c_preproc_warn_flag
16591 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16598 if test -z "$ac_cpp_err"; then
16599 ac_header_preproc
=yes
16601 echo "$as_me: failed program was:" >&5
16602 sed 's/^/| /' conftest.
$ac_ext >&5
16604 ac_header_preproc
=no
16606 rm -f conftest.err conftest.
$ac_ext
16607 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16608 echo "${ECHO_T}$ac_header_preproc" >&6
16610 # So? What about this header?
16611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16613 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
16614 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16615 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
16616 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
16617 ac_header_preproc
=yes
16620 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
16621 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
16622 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
16623 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
16624 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
16625 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
16626 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
16627 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
16628 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
16629 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
16630 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
16631 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
16634 ## ------------------------------------------ ##
16635 ## Report this to the AC_PACKAGE_NAME lists. ##
16636 ## ------------------------------------------ ##
16639 sed "s/^/$as_me: WARNING: /" >&2
16642 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16643 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
16644 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16645 echo $ECHO_N "(cached) $ECHO_C" >&6
16647 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
16649 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16650 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
16653 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16656 cat >>confdefs.h
<<\_ACEOF
16661 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16662 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
16663 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16664 echo $ECHO_N "(cached) $ECHO_C" >&6
16666 ac_check_lib_save_LIBS
=$LIBS
16668 cat >conftest.
$ac_ext <<_ACEOF
16671 cat confdefs.h
>>conftest.
$ac_ext
16672 cat >>conftest.
$ac_ext <<_ACEOF
16673 /* end confdefs.h. */
16675 /* Override any gcc2 internal prototype to avoid an error. */
16679 /* We use char because int might match the return type of a gcc2
16680 builtin and then its argument prototype would still apply. */
16681 char dg_sys_info ();
16690 rm -f conftest.
$ac_objext conftest
$ac_exeext
16691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16692 (eval $ac_link) 2>conftest.er1
16694 grep -v '^ *+' conftest.er1
>conftest.err
16696 cat conftest.err
>&5
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); } &&
16699 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16701 (eval $ac_try) 2>&5
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); }; } &&
16705 { ac_try
='test -s conftest$ac_exeext'
16706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16707 (eval $ac_try) 2>&5
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); }; }; then
16711 ac_cv_lib_dgc_dg_sys_info
=yes
16713 echo "$as_me: failed program was:" >&5
16714 sed 's/^/| /' conftest.
$ac_ext >&5
16716 ac_cv_lib_dgc_dg_sys_info
=no
16718 rm -f conftest.err conftest.
$ac_objext \
16719 conftest
$ac_exeext conftest.
$ac_ext
16720 LIBS
=$ac_check_lib_save_LIBS
16722 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16723 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
16724 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16725 cat >>confdefs.h
<<_ACEOF
16726 #define HAVE_LIBDGC 1
16737 if test "${ac_cv_header_locale_h+set}" = set; then
16738 echo "$as_me:$LINENO: checking for locale.h" >&5
16739 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16740 if test "${ac_cv_header_locale_h+set}" = set; then
16741 echo $ECHO_N "(cached) $ECHO_C" >&6
16743 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16744 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16746 # Is the header compilable?
16747 echo "$as_me:$LINENO: checking locale.h usability" >&5
16748 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
16749 cat >conftest.
$ac_ext <<_ACEOF
16752 cat confdefs.h
>>conftest.
$ac_ext
16753 cat >>conftest.
$ac_ext <<_ACEOF
16754 /* end confdefs.h. */
16755 $ac_includes_default
16756 #include <locale.h>
16758 rm -f conftest.
$ac_objext
16759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16760 (eval $ac_compile) 2>conftest.er1
16762 grep -v '^ *+' conftest.er1
>conftest.err
16764 cat conftest.err
>&5
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); } &&
16767 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16769 (eval $ac_try) 2>&5
16771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772 (exit $ac_status); }; } &&
16773 { ac_try
='test -s conftest.$ac_objext'
16774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16775 (eval $ac_try) 2>&5
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); }; }; then
16779 ac_header_compiler
=yes
16781 echo "$as_me: failed program was:" >&5
16782 sed 's/^/| /' conftest.
$ac_ext >&5
16784 ac_header_compiler
=no
16786 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16787 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16788 echo "${ECHO_T}$ac_header_compiler" >&6
16790 # Is the header present?
16791 echo "$as_me:$LINENO: checking locale.h presence" >&5
16792 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
16793 cat >conftest.
$ac_ext <<_ACEOF
16796 cat confdefs.h
>>conftest.
$ac_ext
16797 cat >>conftest.
$ac_ext <<_ACEOF
16798 /* end confdefs.h. */
16799 #include <locale.h>
16801 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16802 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16804 grep -v '^ *+' conftest.er1
>conftest.err
16806 cat conftest.err
>&5
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); } >/dev
/null
; then
16809 if test -s conftest.err
; then
16810 ac_cpp_err
=$ac_c_preproc_warn_flag
16811 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16818 if test -z "$ac_cpp_err"; then
16819 ac_header_preproc
=yes
16821 echo "$as_me: failed program was:" >&5
16822 sed 's/^/| /' conftest.
$ac_ext >&5
16824 ac_header_preproc
=no
16826 rm -f conftest.err conftest.
$ac_ext
16827 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16828 echo "${ECHO_T}$ac_header_preproc" >&6
16830 # So? What about this header?
16831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16833 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
16834 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16835 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
16836 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
16837 ac_header_preproc
=yes
16840 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
16841 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
16842 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
16843 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
16844 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
16845 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
16846 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
16847 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
16848 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
16849 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
16850 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
16851 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
16854 ## ------------------------------------------ ##
16855 ## Report this to the AC_PACKAGE_NAME lists. ##
16856 ## ------------------------------------------ ##
16859 sed "s/^/$as_me: WARNING: /" >&2
16862 echo "$as_me:$LINENO: checking for locale.h" >&5
16863 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16864 if test "${ac_cv_header_locale_h+set}" = set; then
16865 echo $ECHO_N "(cached) $ECHO_C" >&6
16867 ac_cv_header_locale_h
=$ac_header_preproc
16869 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16870 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16876 for ac_func
in setlocale
16878 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16879 echo "$as_me:$LINENO: checking for $ac_func" >&5
16880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16881 if eval "test \"\${$as_ac_var+set}\" = set"; then
16882 echo $ECHO_N "(cached) $ECHO_C" >&6
16884 cat >conftest.
$ac_ext <<_ACEOF
16887 cat confdefs.h
>>conftest.
$ac_ext
16888 cat >>conftest.
$ac_ext <<_ACEOF
16889 /* end confdefs.h. */
16890 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16892 #define $ac_func innocuous_$ac_func
16894 /* System header to define __stub macros and hopefully few prototypes,
16895 which can conflict with char $ac_func (); below.
16896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16897 <limits.h> exists even on freestanding compilers. */
16900 # include <limits.h>
16902 # include <assert.h>
16907 /* Override any gcc2 internal prototype to avoid an error. */
16912 /* We use char because int might match the return type of a gcc2
16913 builtin and then its argument prototype would still apply. */
16915 /* The GNU C library defines this for functions which it implements
16916 to always fail with ENOSYS. Some functions are actually named
16917 something starting with __ and the normal name is an alias. */
16918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16921 char (*f) () = $ac_func;
16930 return f != $ac_func;
16935 rm -f conftest.
$ac_objext conftest
$ac_exeext
16936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16937 (eval $ac_link) 2>conftest.er1
16939 grep -v '^ *+' conftest.er1
>conftest.err
16941 cat conftest.err
>&5
16942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943 (exit $ac_status); } &&
16944 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16946 (eval $ac_try) 2>&5
16948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949 (exit $ac_status); }; } &&
16950 { ac_try
='test -s conftest$ac_exeext'
16951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16952 (eval $ac_try) 2>&5
16954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955 (exit $ac_status); }; }; then
16956 eval "$as_ac_var=yes"
16958 echo "$as_me: failed program was:" >&5
16959 sed 's/^/| /' conftest.
$ac_ext >&5
16961 eval "$as_ac_var=no"
16963 rm -f conftest.err conftest.
$ac_objext \
16964 conftest
$ac_exeext conftest.
$ac_ext
16966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16967 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16968 if test `eval echo '${'$as_ac_var'}'` = yes; then
16969 cat >>confdefs.h
<<_ACEOF
16970 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16977 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
16978 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
16979 # Irix 4.0.5F has the header but not the library.
16980 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
16983 cat >>confdefs.h
<<\_ACEOF
16989 if test $ac_have_func = no
; then
16990 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16991 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16992 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16993 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16994 echo $ECHO_N "(cached) $ECHO_C" >&6
16996 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16997 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16999 # Is the header compilable?
17000 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17001 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
17002 cat >conftest.
$ac_ext <<_ACEOF
17005 cat confdefs.h
>>conftest.
$ac_ext
17006 cat >>conftest.
$ac_ext <<_ACEOF
17007 /* end confdefs.h. */
17008 $ac_includes_default
17009 #include <inq_stats/cpustats.h>
17011 rm -f conftest.
$ac_objext
17012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17013 (eval $ac_compile) 2>conftest.er1
17015 grep -v '^ *+' conftest.er1
>conftest.err
17017 cat conftest.err
>&5
17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); } &&
17020 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17022 (eval $ac_try) 2>&5
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); }; } &&
17026 { ac_try
='test -s conftest.$ac_objext'
17027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17028 (eval $ac_try) 2>&5
17030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031 (exit $ac_status); }; }; then
17032 ac_header_compiler
=yes
17034 echo "$as_me: failed program was:" >&5
17035 sed 's/^/| /' conftest.
$ac_ext >&5
17037 ac_header_compiler
=no
17039 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17040 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17041 echo "${ECHO_T}$ac_header_compiler" >&6
17043 # Is the header present?
17044 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17045 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
17046 cat >conftest.
$ac_ext <<_ACEOF
17049 cat confdefs.h
>>conftest.
$ac_ext
17050 cat >>conftest.
$ac_ext <<_ACEOF
17051 /* end confdefs.h. */
17052 #include <inq_stats/cpustats.h>
17054 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17055 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17057 grep -v '^ *+' conftest.er1
>conftest.err
17059 cat conftest.err
>&5
17060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); } >/dev
/null
; then
17062 if test -s conftest.err
; then
17063 ac_cpp_err
=$ac_c_preproc_warn_flag
17064 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17071 if test -z "$ac_cpp_err"; then
17072 ac_header_preproc
=yes
17074 echo "$as_me: failed program was:" >&5
17075 sed 's/^/| /' conftest.
$ac_ext >&5
17077 ac_header_preproc
=no
17079 rm -f conftest.err conftest.
$ac_ext
17080 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17081 echo "${ECHO_T}$ac_header_preproc" >&6
17083 # So? What about this header?
17084 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17086 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17087 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17088 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17089 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17090 ac_header_preproc
=yes
17093 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17094 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17095 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17096 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17097 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17098 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17099 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17100 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17101 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17102 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17103 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17104 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17107 ## ------------------------------------------ ##
17108 ## Report this to the AC_PACKAGE_NAME lists. ##
17109 ## ------------------------------------------ ##
17112 sed "s/^/$as_me: WARNING: /" >&2
17115 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17116 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
17117 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17118 echo $ECHO_N "(cached) $ECHO_C" >&6
17120 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
17122 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17123 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
17126 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17129 cat >>confdefs.h
<<\_ACEOF
17134 cat >>confdefs.h
<<\_ACEOF
17143 if test $ac_have_func = no
; then
17144 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17145 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17146 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
17147 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17148 echo $ECHO_N "(cached) $ECHO_C" >&6
17150 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17151 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
17153 # Is the header compilable?
17154 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17155 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
17156 cat >conftest.
$ac_ext <<_ACEOF
17159 cat confdefs.h
>>conftest.
$ac_ext
17160 cat >>conftest.
$ac_ext <<_ACEOF
17161 /* end confdefs.h. */
17162 $ac_includes_default
17163 #include <sys/cpustats.h>
17165 rm -f conftest.
$ac_objext
17166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17167 (eval $ac_compile) 2>conftest.er1
17169 grep -v '^ *+' conftest.er1
>conftest.err
17171 cat conftest.err
>&5
17172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173 (exit $ac_status); } &&
17174 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17176 (eval $ac_try) 2>&5
17178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179 (exit $ac_status); }; } &&
17180 { ac_try
='test -s conftest.$ac_objext'
17181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17182 (eval $ac_try) 2>&5
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); }; }; then
17186 ac_header_compiler
=yes
17188 echo "$as_me: failed program was:" >&5
17189 sed 's/^/| /' conftest.
$ac_ext >&5
17191 ac_header_compiler
=no
17193 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17194 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17195 echo "${ECHO_T}$ac_header_compiler" >&6
17197 # Is the header present?
17198 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
17199 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
17200 cat >conftest.
$ac_ext <<_ACEOF
17203 cat confdefs.h
>>conftest.
$ac_ext
17204 cat >>conftest.
$ac_ext <<_ACEOF
17205 /* end confdefs.h. */
17206 #include <sys/cpustats.h>
17208 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17209 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17211 grep -v '^ *+' conftest.er1
>conftest.err
17213 cat conftest.err
>&5
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); } >/dev
/null
; then
17216 if test -s conftest.err
; then
17217 ac_cpp_err
=$ac_c_preproc_warn_flag
17218 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17225 if test -z "$ac_cpp_err"; then
17226 ac_header_preproc
=yes
17228 echo "$as_me: failed program was:" >&5
17229 sed 's/^/| /' conftest.
$ac_ext >&5
17231 ac_header_preproc
=no
17233 rm -f conftest.err conftest.
$ac_ext
17234 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17235 echo "${ECHO_T}$ac_header_preproc" >&6
17237 # So? What about this header?
17238 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17240 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17241 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17242 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
17243 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
17244 ac_header_preproc
=yes
17247 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
17248 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
17249 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
17250 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
17251 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
17252 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
17253 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17254 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17255 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
17256 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
17257 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
17258 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
17261 ## ------------------------------------------ ##
17262 ## Report this to the AC_PACKAGE_NAME lists. ##
17263 ## ------------------------------------------ ##
17266 sed "s/^/$as_me: WARNING: /" >&2
17269 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17270 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
17271 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17272 echo $ECHO_N "(cached) $ECHO_C" >&6
17274 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
17276 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17277 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
17280 if test $ac_cv_header_sys_cpustats_h = yes; then
17281 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
17290 if test $ac_have_func = no
; then
17292 for ac_header
in mach
/mach.h
17294 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17296 echo "$as_me:$LINENO: checking for $ac_header" >&5
17297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17299 echo $ECHO_N "(cached) $ECHO_C" >&6
17301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17304 # Is the header compilable?
17305 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17306 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17307 cat >conftest.
$ac_ext <<_ACEOF
17310 cat confdefs.h
>>conftest.
$ac_ext
17311 cat >>conftest.
$ac_ext <<_ACEOF
17312 /* end confdefs.h. */
17313 $ac_includes_default
17314 #include <$ac_header>
17316 rm -f conftest.
$ac_objext
17317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17318 (eval $ac_compile) 2>conftest.er1
17320 grep -v '^ *+' conftest.er1
>conftest.err
17322 cat conftest.err
>&5
17323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324 (exit $ac_status); } &&
17325 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17327 (eval $ac_try) 2>&5
17329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330 (exit $ac_status); }; } &&
17331 { ac_try
='test -s conftest.$ac_objext'
17332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17333 (eval $ac_try) 2>&5
17335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 (exit $ac_status); }; }; then
17337 ac_header_compiler
=yes
17339 echo "$as_me: failed program was:" >&5
17340 sed 's/^/| /' conftest.
$ac_ext >&5
17342 ac_header_compiler
=no
17344 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17345 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17346 echo "${ECHO_T}$ac_header_compiler" >&6
17348 # Is the header present?
17349 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17350 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17351 cat >conftest.
$ac_ext <<_ACEOF
17354 cat confdefs.h
>>conftest.
$ac_ext
17355 cat >>conftest.
$ac_ext <<_ACEOF
17356 /* end confdefs.h. */
17357 #include <$ac_header>
17359 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17360 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17362 grep -v '^ *+' conftest.er1
>conftest.err
17364 cat conftest.err
>&5
17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); } >/dev
/null
; then
17367 if test -s conftest.err
; then
17368 ac_cpp_err
=$ac_c_preproc_warn_flag
17369 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17376 if test -z "$ac_cpp_err"; then
17377 ac_header_preproc
=yes
17379 echo "$as_me: failed program was:" >&5
17380 sed 's/^/| /' conftest.
$ac_ext >&5
17382 ac_header_preproc
=no
17384 rm -f conftest.err conftest.
$ac_ext
17385 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17386 echo "${ECHO_T}$ac_header_preproc" >&6
17388 # So? What about this header?
17389 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17391 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17392 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17394 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17395 ac_header_preproc
=yes
17398 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17399 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17400 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17401 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17402 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17403 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17404 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17405 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17407 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17408 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17409 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17412 ## ------------------------------------------ ##
17413 ## Report this to the AC_PACKAGE_NAME lists. ##
17414 ## ------------------------------------------ ##
17417 sed "s/^/$as_me: WARNING: /" >&2
17420 echo "$as_me:$LINENO: checking for $ac_header" >&5
17421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17423 echo $ECHO_N "(cached) $ECHO_C" >&6
17425 eval "$as_ac_Header=\$ac_header_preproc"
17427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17432 cat >>confdefs.h
<<_ACEOF
17433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17443 for ac_header
in nlist.h
17445 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17447 echo "$as_me:$LINENO: checking for $ac_header" >&5
17448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17449 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17450 echo $ECHO_N "(cached) $ECHO_C" >&6
17452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17453 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17455 # Is the header compilable?
17456 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17457 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17458 cat >conftest.
$ac_ext <<_ACEOF
17461 cat confdefs.h
>>conftest.
$ac_ext
17462 cat >>conftest.
$ac_ext <<_ACEOF
17463 /* end confdefs.h. */
17464 $ac_includes_default
17465 #include <$ac_header>
17467 rm -f conftest.
$ac_objext
17468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17469 (eval $ac_compile) 2>conftest.er1
17471 grep -v '^ *+' conftest.er1
>conftest.err
17473 cat conftest.err
>&5
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); } &&
17476 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17478 (eval $ac_try) 2>&5
17480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481 (exit $ac_status); }; } &&
17482 { ac_try
='test -s conftest.$ac_objext'
17483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17484 (eval $ac_try) 2>&5
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); }; }; then
17488 ac_header_compiler
=yes
17490 echo "$as_me: failed program was:" >&5
17491 sed 's/^/| /' conftest.
$ac_ext >&5
17493 ac_header_compiler
=no
17495 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17496 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17497 echo "${ECHO_T}$ac_header_compiler" >&6
17499 # Is the header present?
17500 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17501 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17502 cat >conftest.
$ac_ext <<_ACEOF
17505 cat confdefs.h
>>conftest.
$ac_ext
17506 cat >>conftest.
$ac_ext <<_ACEOF
17507 /* end confdefs.h. */
17508 #include <$ac_header>
17510 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17511 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17513 grep -v '^ *+' conftest.er1
>conftest.err
17515 cat conftest.err
>&5
17516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517 (exit $ac_status); } >/dev
/null
; then
17518 if test -s conftest.err
; then
17519 ac_cpp_err
=$ac_c_preproc_warn_flag
17520 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17527 if test -z "$ac_cpp_err"; then
17528 ac_header_preproc
=yes
17530 echo "$as_me: failed program was:" >&5
17531 sed 's/^/| /' conftest.
$ac_ext >&5
17533 ac_header_preproc
=no
17535 rm -f conftest.err conftest.
$ac_ext
17536 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17537 echo "${ECHO_T}$ac_header_preproc" >&6
17539 # So? What about this header?
17540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17542 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17543 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17545 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17546 ac_header_preproc
=yes
17549 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17550 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17551 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17552 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17553 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17554 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17555 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17556 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17558 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17559 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17560 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17563 ## ------------------------------------------ ##
17564 ## Report this to the AC_PACKAGE_NAME lists. ##
17565 ## ------------------------------------------ ##
17568 sed "s/^/$as_me: WARNING: /" >&2
17571 echo "$as_me:$LINENO: checking for $ac_header" >&5
17572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17574 echo $ECHO_N "(cached) $ECHO_C" >&6
17576 eval "$as_ac_Header=\$ac_header_preproc"
17578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17579 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17583 cat >>confdefs.h
<<_ACEOF
17584 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17586 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
17587 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
17588 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17589 echo $ECHO_N "(cached) $ECHO_C" >&6
17591 cat >conftest.
$ac_ext <<_ACEOF
17594 cat confdefs.h
>>conftest.
$ac_ext
17595 cat >>conftest.
$ac_ext <<_ACEOF
17596 /* end confdefs.h. */
17602 static struct nlist ac_aggr;
17603 if (ac_aggr.n_un.n_name)
17609 rm -f conftest.
$ac_objext
17610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17611 (eval $ac_compile) 2>conftest.er1
17613 grep -v '^ *+' conftest.er1
>conftest.err
17615 cat conftest.err
>&5
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); } &&
17618 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17620 (eval $ac_try) 2>&5
17622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623 (exit $ac_status); }; } &&
17624 { ac_try
='test -s conftest.$ac_objext'
17625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17626 (eval $ac_try) 2>&5
17628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17629 (exit $ac_status); }; }; then
17630 ac_cv_member_struct_nlist_n_un_n_name
=yes
17632 echo "$as_me: failed program was:" >&5
17633 sed 's/^/| /' conftest.
$ac_ext >&5
17635 cat >conftest.
$ac_ext <<_ACEOF
17638 cat confdefs.h
>>conftest.
$ac_ext
17639 cat >>conftest.
$ac_ext <<_ACEOF
17640 /* end confdefs.h. */
17646 static struct nlist ac_aggr;
17647 if (sizeof ac_aggr.n_un.n_name)
17653 rm -f conftest.
$ac_objext
17654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17655 (eval $ac_compile) 2>conftest.er1
17657 grep -v '^ *+' conftest.er1
>conftest.err
17659 cat conftest.err
>&5
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); } &&
17662 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17664 (eval $ac_try) 2>&5
17666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 (exit $ac_status); }; } &&
17668 { ac_try
='test -s conftest.$ac_objext'
17669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17670 (eval $ac_try) 2>&5
17672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673 (exit $ac_status); }; }; then
17674 ac_cv_member_struct_nlist_n_un_n_name
=yes
17676 echo "$as_me: failed program was:" >&5
17677 sed 's/^/| /' conftest.
$ac_ext >&5
17679 ac_cv_member_struct_nlist_n_un_n_name
=no
17681 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17683 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17685 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17686 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
17687 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17689 cat >>confdefs.h
<<_ACEOF
17690 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17694 cat >>confdefs.h
<<\_ACEOF
17695 #define NLIST_NAME_UNION 1
17709 # Some definitions of getloadavg require that the program be installed setgid.
17710 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17711 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
17712 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17713 echo $ECHO_N "(cached) $ECHO_C" >&6
17715 cat >conftest.
$ac_ext <<_ACEOF
17718 cat confdefs.h
>>conftest.
$ac_ext
17719 cat >>conftest.
$ac_ext <<_ACEOF
17720 /* end confdefs.h. */
17721 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17722 #ifdef LDAV_PRIVILEGED
17723 Yowza Am I SETGID yet
17726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17727 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
17728 ac_cv_func_getloadavg_setgid
=yes
17730 ac_cv_func_getloadavg_setgid
=no
17735 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17736 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
17737 if test $ac_cv_func_getloadavg_setgid = yes; then
17740 cat >>confdefs.h
<<\_ACEOF
17741 #define GETLOADAVG_PRIVILEGED 1
17748 if test $ac_cv_func_getloadavg_setgid = yes; then
17749 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17750 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
17751 if test "${ac_cv_group_kmem+set}" = set; then
17752 echo $ECHO_N "(cached) $ECHO_C" >&6
17754 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17755 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
17756 # If we got an error (system does not support symlinks), try without -L.
17757 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
17758 ac_cv_group_kmem
=`echo $ac_ls_output \
17759 | sed -ne 's/[ ][ ]*/ /g;
17760 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17764 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17765 echo "${ECHO_T}$ac_cv_group_kmem" >&6
17766 KMEM_GROUP
=$ac_cv_group_kmem
17768 if test "x$ac_save_LIBS" = x
; then
17769 GETLOADAVG_LIBS
=$LIBS
17771 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17777 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17778 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
17779 if test "${ac_cv_sys_largefile_source+set}" = set; then
17780 echo $ECHO_N "(cached) $ECHO_C" >&6
17783 ac_cv_sys_largefile_source
=no
17784 cat >conftest.
$ac_ext <<_ACEOF
17787 cat confdefs.h
>>conftest.
$ac_ext
17788 cat >>conftest.
$ac_ext <<_ACEOF
17789 /* end confdefs.h. */
17799 rm -f conftest.
$ac_objext
17800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17801 (eval $ac_compile) 2>conftest.er1
17803 grep -v '^ *+' conftest.er1
>conftest.err
17805 cat conftest.err
>&5
17806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807 (exit $ac_status); } &&
17808 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17810 (eval $ac_try) 2>&5
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); }; } &&
17814 { ac_try
='test -s conftest.$ac_objext'
17815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17816 (eval $ac_try) 2>&5
17818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819 (exit $ac_status); }; }; then
17822 echo "$as_me: failed program was:" >&5
17823 sed 's/^/| /' conftest.
$ac_ext >&5
17826 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17827 cat >conftest.
$ac_ext <<_ACEOF
17830 cat confdefs.h
>>conftest.
$ac_ext
17831 cat >>conftest.
$ac_ext <<_ACEOF
17832 /* end confdefs.h. */
17833 #define _LARGEFILE_SOURCE 1
17843 rm -f conftest.
$ac_objext
17844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17845 (eval $ac_compile) 2>conftest.er1
17847 grep -v '^ *+' conftest.er1
>conftest.err
17849 cat conftest.err
>&5
17850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851 (exit $ac_status); } &&
17852 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17854 (eval $ac_try) 2>&5
17856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857 (exit $ac_status); }; } &&
17858 { ac_try
='test -s conftest.$ac_objext'
17859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17860 (eval $ac_try) 2>&5
17862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863 (exit $ac_status); }; }; then
17864 ac_cv_sys_largefile_source
=1; break
17866 echo "$as_me: failed program was:" >&5
17867 sed 's/^/| /' conftest.
$ac_ext >&5
17870 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17874 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17875 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17876 if test "$ac_cv_sys_largefile_source" != no
; then
17878 cat >>confdefs.h
<<_ACEOF
17879 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17885 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17886 # in glibc 2.1.3, but that breaks too many other things.
17887 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17888 echo "$as_me:$LINENO: checking for fseeko" >&5
17889 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
17890 if test "${ac_cv_func_fseeko+set}" = set; then
17891 echo $ECHO_N "(cached) $ECHO_C" >&6
17893 cat >conftest.
$ac_ext <<_ACEOF
17896 cat confdefs.h
>>conftest.
$ac_ext
17897 cat >>conftest.
$ac_ext <<_ACEOF
17898 /* end confdefs.h. */
17903 return fseeko && fseeko (stdin, 0, 0);
17908 rm -f conftest.
$ac_objext conftest
$ac_exeext
17909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17910 (eval $ac_link) 2>conftest.er1
17912 grep -v '^ *+' conftest.er1
>conftest.err
17914 cat conftest.err
>&5
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); } &&
17917 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17919 (eval $ac_try) 2>&5
17921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17922 (exit $ac_status); }; } &&
17923 { ac_try
='test -s conftest$ac_exeext'
17924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17925 (eval $ac_try) 2>&5
17927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928 (exit $ac_status); }; }; then
17929 ac_cv_func_fseeko
=yes
17931 echo "$as_me: failed program was:" >&5
17932 sed 's/^/| /' conftest.
$ac_ext >&5
17934 ac_cv_func_fseeko
=no
17936 rm -f conftest.err conftest.
$ac_objext \
17937 conftest
$ac_exeext conftest.
$ac_ext
17939 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
17940 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
17941 if test $ac_cv_func_fseeko = yes; then
17943 cat >>confdefs.h
<<\_ACEOF
17944 #define HAVE_FSEEKO 1
17950 # Configure getopt.
17951 # getopt.m4 serial 10
17953 # The getopt module assume you want GNU getopt, with getopt_long etc,
17954 # rather than vanilla POSIX getopt. This means your your code should
17955 # always include <getopt.h> for the getopt prototypes.
17967 # Prerequisites of lib/getopt*.
17974 for ac_header
in getopt.h
17976 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17978 echo "$as_me:$LINENO: checking for $ac_header" >&5
17979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17981 echo $ECHO_N "(cached) $ECHO_C" >&6
17983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17984 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17986 # Is the header compilable?
17987 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17988 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17989 cat >conftest.
$ac_ext <<_ACEOF
17992 cat confdefs.h
>>conftest.
$ac_ext
17993 cat >>conftest.
$ac_ext <<_ACEOF
17994 /* end confdefs.h. */
17995 $ac_includes_default
17996 #include <$ac_header>
17998 rm -f conftest.
$ac_objext
17999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18000 (eval $ac_compile) 2>conftest.er1
18002 grep -v '^ *+' conftest.er1
>conftest.err
18004 cat conftest.err
>&5
18005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006 (exit $ac_status); } &&
18007 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18009 (eval $ac_try) 2>&5
18011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012 (exit $ac_status); }; } &&
18013 { ac_try
='test -s conftest.$ac_objext'
18014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18015 (eval $ac_try) 2>&5
18017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018 (exit $ac_status); }; }; then
18019 ac_header_compiler
=yes
18021 echo "$as_me: failed program was:" >&5
18022 sed 's/^/| /' conftest.
$ac_ext >&5
18024 ac_header_compiler
=no
18026 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18027 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18028 echo "${ECHO_T}$ac_header_compiler" >&6
18030 # Is the header present?
18031 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18033 cat >conftest.
$ac_ext <<_ACEOF
18036 cat confdefs.h
>>conftest.
$ac_ext
18037 cat >>conftest.
$ac_ext <<_ACEOF
18038 /* end confdefs.h. */
18039 #include <$ac_header>
18041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18042 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18044 grep -v '^ *+' conftest.er1
>conftest.err
18046 cat conftest.err
>&5
18047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048 (exit $ac_status); } >/dev
/null
; then
18049 if test -s conftest.err
; then
18050 ac_cpp_err
=$ac_c_preproc_warn_flag
18051 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18058 if test -z "$ac_cpp_err"; then
18059 ac_header_preproc
=yes
18061 echo "$as_me: failed program was:" >&5
18062 sed 's/^/| /' conftest.
$ac_ext >&5
18064 ac_header_preproc
=no
18066 rm -f conftest.err conftest.
$ac_ext
18067 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18068 echo "${ECHO_T}$ac_header_preproc" >&6
18070 # So? What about this header?
18071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18073 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18074 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18076 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18077 ac_header_preproc
=yes
18080 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18081 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18082 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18083 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18084 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18085 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18086 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18087 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18089 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18090 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18091 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18094 ## ------------------------------------------ ##
18095 ## Report this to the AC_PACKAGE_NAME lists. ##
18096 ## ------------------------------------------ ##
18099 sed "s/^/$as_me: WARNING: /" >&2
18102 echo "$as_me:$LINENO: checking for $ac_header" >&5
18103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18105 echo $ECHO_N "(cached) $ECHO_C" >&6
18107 eval "$as_ac_Header=\$ac_header_preproc"
18109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18114 cat >>confdefs.h
<<_ACEOF
18115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18124 if test -z "$GETOPT_H"; then
18126 for ac_func
in getopt_long_only
18128 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18129 echo "$as_me:$LINENO: checking for $ac_func" >&5
18130 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18131 if eval "test \"\${$as_ac_var+set}\" = set"; then
18132 echo $ECHO_N "(cached) $ECHO_C" >&6
18134 cat >conftest.
$ac_ext <<_ACEOF
18137 cat confdefs.h
>>conftest.
$ac_ext
18138 cat >>conftest.
$ac_ext <<_ACEOF
18139 /* end confdefs.h. */
18140 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18142 #define $ac_func innocuous_$ac_func
18144 /* System header to define __stub macros and hopefully few prototypes,
18145 which can conflict with char $ac_func (); below.
18146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18147 <limits.h> exists even on freestanding compilers. */
18150 # include <limits.h>
18152 # include <assert.h>
18157 /* Override any gcc2 internal prototype to avoid an error. */
18162 /* We use char because int might match the return type of a gcc2
18163 builtin and then its argument prototype would still apply. */
18165 /* The GNU C library defines this for functions which it implements
18166 to always fail with ENOSYS. Some functions are actually named
18167 something starting with __ and the normal name is an alias. */
18168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18171 char (*f) () = $ac_func;
18180 return f != $ac_func;
18185 rm -f conftest.
$ac_objext conftest
$ac_exeext
18186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18187 (eval $ac_link) 2>conftest.er1
18189 grep -v '^ *+' conftest.er1
>conftest.err
18191 cat conftest.err
>&5
18192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193 (exit $ac_status); } &&
18194 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18196 (eval $ac_try) 2>&5
18198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199 (exit $ac_status); }; } &&
18200 { ac_try
='test -s conftest$ac_exeext'
18201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18202 (eval $ac_try) 2>&5
18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); }; }; then
18206 eval "$as_ac_var=yes"
18208 echo "$as_me: failed program was:" >&5
18209 sed 's/^/| /' conftest.
$ac_ext >&5
18211 eval "$as_ac_var=no"
18213 rm -f conftest.err conftest.
$ac_objext \
18214 conftest
$ac_exeext conftest.
$ac_ext
18216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18217 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18218 if test `eval echo '${'$as_ac_var'}'` = yes; then
18219 cat >>confdefs.h
<<_ACEOF
18220 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18230 if test -z "$GETOPT_H"; then
18231 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18232 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
18233 if test "${ac_cv_have_decl_optreset+set}" = set; then
18234 echo $ECHO_N "(cached) $ECHO_C" >&6
18236 cat >conftest.
$ac_ext <<_ACEOF
18239 cat confdefs.h
>>conftest.
$ac_ext
18240 cat >>conftest.
$ac_ext <<_ACEOF
18241 /* end confdefs.h. */
18242 #include <getopt.h>
18248 char *p = (char *) optreset;
18255 rm -f conftest.
$ac_objext
18256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18257 (eval $ac_compile) 2>conftest.er1
18259 grep -v '^ *+' conftest.er1
>conftest.err
18261 cat conftest.err
>&5
18262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263 (exit $ac_status); } &&
18264 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18266 (eval $ac_try) 2>&5
18268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269 (exit $ac_status); }; } &&
18270 { ac_try
='test -s conftest.$ac_objext'
18271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18272 (eval $ac_try) 2>&5
18274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 (exit $ac_status); }; }; then
18276 ac_cv_have_decl_optreset
=yes
18278 echo "$as_me: failed program was:" >&5
18279 sed 's/^/| /' conftest.
$ac_ext >&5
18281 ac_cv_have_decl_optreset
=no
18283 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18285 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
18286 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
18287 if test $ac_cv_have_decl_optreset = yes; then
18293 if test -z "$GETOPT_H"; then
18294 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
18295 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
18296 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18297 echo $ECHO_N "(cached) $ECHO_C" >&6
18299 if test "$cross_compiling" = yes; then
18300 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
18301 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
18302 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18303 echo $ECHO_N "(cached) $ECHO_C" >&6
18305 cat >conftest.
$ac_ext <<_ACEOF
18308 cat confdefs.h
>>conftest.
$ac_ext
18309 cat >>conftest.
$ac_ext <<_ACEOF
18310 /* end confdefs.h. */
18311 #include <getopt.h>
18316 #ifndef getopt_clip
18317 char *p = (char *) getopt_clip;
18324 rm -f conftest.
$ac_objext
18325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18326 (eval $ac_compile) 2>conftest.er1
18328 grep -v '^ *+' conftest.er1
>conftest.err
18330 cat conftest.err
>&5
18331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); } &&
18333 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18335 (eval $ac_try) 2>&5
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); }; } &&
18339 { ac_try
='test -s conftest.$ac_objext'
18340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18341 (eval $ac_try) 2>&5
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); }; }; then
18345 ac_cv_have_decl_getopt_clip
=yes
18347 echo "$as_me: failed program was:" >&5
18348 sed 's/^/| /' conftest.
$ac_ext >&5
18350 ac_cv_have_decl_getopt_clip
=no
18352 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18354 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
18355 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
18356 if test $ac_cv_have_decl_getopt_clip = yes; then
18357 gl_cv_func_gnu_getopt
=no
18359 gl_cv_func_gnu_getopt
=yes
18363 cat >conftest.
$ac_ext <<_ACEOF
18366 cat confdefs.h
>>conftest.
$ac_ext
18367 cat >>conftest.
$ac_ext <<_ACEOF
18368 /* end confdefs.h. */
18369 #include <getopt.h>
18375 myargv[0] = "conftest";
18378 return getopt (2, myargv, "+a") != '?';
18384 rm -f conftest
$ac_exeext
18385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18386 (eval $ac_link) 2>&5
18388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
18390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18391 (eval $ac_try) 2>&5
18393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394 (exit $ac_status); }; }; then
18395 gl_cv_func_gnu_getopt
=yes
18397 echo "$as_me: program exited with status $ac_status" >&5
18398 echo "$as_me: failed program was:" >&5
18399 sed 's/^/| /' conftest.
$ac_ext >&5
18401 ( exit $ac_status )
18402 gl_cv_func_gnu_getopt
=no
18404 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18407 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
18408 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
18409 if test "$gl_cv_func_gnu_getopt" = "no"; then
18416 if test -n "$GETOPT_H"; then
18421 cat >>confdefs.h
<<\_ACEOF
18422 #define __GETOPT_PREFIX rpl_
18428 GETOPTOBJS
='getopt.o getopt1.o'
18435 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
18436 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
18437 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18438 echo $ECHO_N "(cached) $ECHO_C" >&6
18440 # Use it with a single arg.
18441 cat >conftest.
$ac_ext <<_ACEOF
18444 cat confdefs.h
>>conftest.
$ac_ext
18445 cat >>conftest.
$ac_ext <<_ACEOF
18446 /* end confdefs.h. */
18447 $ac_includes_default
18456 rm -f conftest.
$ac_objext
18457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18458 (eval $ac_compile) 2>conftest.er1
18460 grep -v '^ *+' conftest.er1
>conftest.err
18462 cat conftest.err
>&5
18463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464 (exit $ac_status); } &&
18465 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18467 (eval $ac_try) 2>&5
18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); }; } &&
18471 { ac_try
='test -s conftest.$ac_objext'
18472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18473 (eval $ac_try) 2>&5
18475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476 (exit $ac_status); }; }; then
18477 ac_cv_func_getpgrp_void
=no
18479 echo "$as_me: failed program was:" >&5
18480 sed 's/^/| /' conftest.
$ac_ext >&5
18482 ac_cv_func_getpgrp_void
=yes
18484 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18487 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
18488 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
18489 if test $ac_cv_func_getpgrp_void = yes; then
18491 cat >>confdefs.h
<<\_ACEOF
18492 #define GETPGRP_VOID 1
18499 for ac_func
in strftime
18501 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18502 echo "$as_me:$LINENO: checking for $ac_func" >&5
18503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18504 if eval "test \"\${$as_ac_var+set}\" = set"; then
18505 echo $ECHO_N "(cached) $ECHO_C" >&6
18507 cat >conftest.
$ac_ext <<_ACEOF
18510 cat confdefs.h
>>conftest.
$ac_ext
18511 cat >>conftest.
$ac_ext <<_ACEOF
18512 /* end confdefs.h. */
18513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18515 #define $ac_func innocuous_$ac_func
18517 /* System header to define __stub macros and hopefully few prototypes,
18518 which can conflict with char $ac_func (); below.
18519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18520 <limits.h> exists even on freestanding compilers. */
18523 # include <limits.h>
18525 # include <assert.h>
18530 /* Override any gcc2 internal prototype to avoid an error. */
18535 /* We use char because int might match the return type of a gcc2
18536 builtin and then its argument prototype would still apply. */
18538 /* The GNU C library defines this for functions which it implements
18539 to always fail with ENOSYS. Some functions are actually named
18540 something starting with __ and the normal name is an alias. */
18541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18544 char (*f) () = $ac_func;
18553 return f != $ac_func;
18558 rm -f conftest.
$ac_objext conftest
$ac_exeext
18559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18560 (eval $ac_link) 2>conftest.er1
18562 grep -v '^ *+' conftest.er1
>conftest.err
18564 cat conftest.err
>&5
18565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566 (exit $ac_status); } &&
18567 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18569 (eval $ac_try) 2>&5
18571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18572 (exit $ac_status); }; } &&
18573 { ac_try
='test -s conftest$ac_exeext'
18574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18575 (eval $ac_try) 2>&5
18577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578 (exit $ac_status); }; }; then
18579 eval "$as_ac_var=yes"
18581 echo "$as_me: failed program was:" >&5
18582 sed 's/^/| /' conftest.
$ac_ext >&5
18584 eval "$as_ac_var=no"
18586 rm -f conftest.err conftest.
$ac_objext \
18587 conftest
$ac_exeext conftest.
$ac_ext
18589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18590 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18591 if test `eval echo '${'$as_ac_var'}'` = yes; then
18592 cat >>confdefs.h
<<_ACEOF
18593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18597 # strftime is in -lintl on SCO UNIX.
18598 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18599 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
18600 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18601 echo $ECHO_N "(cached) $ECHO_C" >&6
18603 ac_check_lib_save_LIBS
=$LIBS
18604 LIBS
="-lintl $LIBS"
18605 cat >conftest.
$ac_ext <<_ACEOF
18608 cat confdefs.h
>>conftest.
$ac_ext
18609 cat >>conftest.
$ac_ext <<_ACEOF
18610 /* end confdefs.h. */
18612 /* Override any gcc2 internal prototype to avoid an error. */
18616 /* We use char because int might match the return type of a gcc2
18617 builtin and then its argument prototype would still apply. */
18627 rm -f conftest.
$ac_objext conftest
$ac_exeext
18628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18629 (eval $ac_link) 2>conftest.er1
18631 grep -v '^ *+' conftest.er1
>conftest.err
18633 cat conftest.err
>&5
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); } &&
18636 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18638 (eval $ac_try) 2>&5
18640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641 (exit $ac_status); }; } &&
18642 { ac_try
='test -s conftest$ac_exeext'
18643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18644 (eval $ac_try) 2>&5
18646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647 (exit $ac_status); }; }; then
18648 ac_cv_lib_intl_strftime
=yes
18650 echo "$as_me: failed program was:" >&5
18651 sed 's/^/| /' conftest.
$ac_ext >&5
18653 ac_cv_lib_intl_strftime
=no
18655 rm -f conftest.err conftest.
$ac_objext \
18656 conftest
$ac_exeext conftest.
$ac_ext
18657 LIBS
=$ac_check_lib_save_LIBS
18659 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18660 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
18661 if test $ac_cv_lib_intl_strftime = yes; then
18662 cat >>confdefs.h
<<\_ACEOF
18663 #define HAVE_STRFTIME 1
18666 LIBS
="-lintl $LIBS"
18675 for ac_func
in grantpt
18677 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18678 echo "$as_me:$LINENO: checking for $ac_func" >&5
18679 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18680 if eval "test \"\${$as_ac_var+set}\" = set"; then
18681 echo $ECHO_N "(cached) $ECHO_C" >&6
18683 cat >conftest.
$ac_ext <<_ACEOF
18686 cat confdefs.h
>>conftest.
$ac_ext
18687 cat >>conftest.
$ac_ext <<_ACEOF
18688 /* end confdefs.h. */
18689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18691 #define $ac_func innocuous_$ac_func
18693 /* System header to define __stub macros and hopefully few prototypes,
18694 which can conflict with char $ac_func (); below.
18695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18696 <limits.h> exists even on freestanding compilers. */
18699 # include <limits.h>
18701 # include <assert.h>
18706 /* Override any gcc2 internal prototype to avoid an error. */
18711 /* We use char because int might match the return type of a gcc2
18712 builtin and then its argument prototype would still apply. */
18714 /* The GNU C library defines this for functions which it implements
18715 to always fail with ENOSYS. Some functions are actually named
18716 something starting with __ and the normal name is an alias. */
18717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18720 char (*f) () = $ac_func;
18729 return f != $ac_func;
18734 rm -f conftest.
$ac_objext conftest
$ac_exeext
18735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18736 (eval $ac_link) 2>conftest.er1
18738 grep -v '^ *+' conftest.er1
>conftest.err
18740 cat conftest.err
>&5
18741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18742 (exit $ac_status); } &&
18743 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18745 (eval $ac_try) 2>&5
18747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748 (exit $ac_status); }; } &&
18749 { ac_try
='test -s conftest$ac_exeext'
18750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18751 (eval $ac_try) 2>&5
18753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754 (exit $ac_status); }; }; then
18755 eval "$as_ac_var=yes"
18757 echo "$as_me: failed program was:" >&5
18758 sed 's/^/| /' conftest.
$ac_ext >&5
18760 eval "$as_ac_var=no"
18762 rm -f conftest.err conftest.
$ac_objext \
18763 conftest
$ac_exeext conftest.
$ac_ext
18765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18766 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18767 if test `eval echo '${'$as_ac_var'}'` = yes; then
18768 cat >>confdefs.h
<<_ACEOF
18769 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18776 # PTY-related GNU extensions.
18778 for ac_func
in getpt
18780 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18781 echo "$as_me:$LINENO: checking for $ac_func" >&5
18782 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18783 if eval "test \"\${$as_ac_var+set}\" = set"; then
18784 echo $ECHO_N "(cached) $ECHO_C" >&6
18786 cat >conftest.
$ac_ext <<_ACEOF
18789 cat confdefs.h
>>conftest.
$ac_ext
18790 cat >>conftest.
$ac_ext <<_ACEOF
18791 /* end confdefs.h. */
18792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18794 #define $ac_func innocuous_$ac_func
18796 /* System header to define __stub macros and hopefully few prototypes,
18797 which can conflict with char $ac_func (); below.
18798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18799 <limits.h> exists even on freestanding compilers. */
18802 # include <limits.h>
18804 # include <assert.h>
18809 /* Override any gcc2 internal prototype to avoid an error. */
18814 /* We use char because int might match the return type of a gcc2
18815 builtin and then its argument prototype would still apply. */
18817 /* The GNU C library defines this for functions which it implements
18818 to always fail with ENOSYS. Some functions are actually named
18819 something starting with __ and the normal name is an alias. */
18820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18823 char (*f) () = $ac_func;
18832 return f != $ac_func;
18837 rm -f conftest.
$ac_objext conftest
$ac_exeext
18838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18839 (eval $ac_link) 2>conftest.er1
18841 grep -v '^ *+' conftest.er1
>conftest.err
18843 cat conftest.err
>&5
18844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845 (exit $ac_status); } &&
18846 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18848 (eval $ac_try) 2>&5
18850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); }; } &&
18852 { ac_try
='test -s conftest$ac_exeext'
18853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18854 (eval $ac_try) 2>&5
18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); }; }; then
18858 eval "$as_ac_var=yes"
18860 echo "$as_me: failed program was:" >&5
18861 sed 's/^/| /' conftest.
$ac_ext >&5
18863 eval "$as_ac_var=no"
18865 rm -f conftest.err conftest.
$ac_objext \
18866 conftest
$ac_exeext conftest.
$ac_ext
18868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18869 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18870 if test `eval echo '${'$as_ac_var'}'` = yes; then
18871 cat >>confdefs.h
<<_ACEOF
18872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18879 # Check this now, so that we will NOT find the above functions in ncurses.
18880 # That is because we have not set up to link ncurses in lib-src.
18881 # It's better to believe a function is not available
18882 # than to expect to find it in ncurses.
18884 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18885 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
18886 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18887 echo $ECHO_N "(cached) $ECHO_C" >&6
18889 ac_check_lib_save_LIBS
=$LIBS
18890 LIBS
="-lncurses $LIBS"
18891 cat >conftest.
$ac_ext <<_ACEOF
18894 cat confdefs.h
>>conftest.
$ac_ext
18895 cat >>conftest.
$ac_ext <<_ACEOF
18896 /* end confdefs.h. */
18898 /* Override any gcc2 internal prototype to avoid an error. */
18902 /* We use char because int might match the return type of a gcc2
18903 builtin and then its argument prototype would still apply. */
18913 rm -f conftest.
$ac_objext conftest
$ac_exeext
18914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18915 (eval $ac_link) 2>conftest.er1
18917 grep -v '^ *+' conftest.er1
>conftest.err
18919 cat conftest.err
>&5
18920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921 (exit $ac_status); } &&
18922 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
18928 { ac_try
='test -s conftest$ac_exeext'
18929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18930 (eval $ac_try) 2>&5
18932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933 (exit $ac_status); }; }; then
18934 ac_cv_lib_ncurses_tparm
=yes
18936 echo "$as_me: failed program was:" >&5
18937 sed 's/^/| /' conftest.
$ac_ext >&5
18939 ac_cv_lib_ncurses_tparm
=no
18941 rm -f conftest.err conftest.
$ac_objext \
18942 conftest
$ac_exeext conftest.
$ac_ext
18943 LIBS
=$ac_check_lib_save_LIBS
18945 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18946 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
18947 if test $ac_cv_lib_ncurses_tparm = yes; then
18948 cat >>confdefs.h
<<_ACEOF
18949 #define HAVE_LIBNCURSES 1
18952 LIBS
="-lncurses $LIBS"
18957 # Do we need the Hesiod library to provide the support routines?
18958 if test "$with_hesiod" = yes ; then
18959 # Don't set $LIBS here -- see comments above.
18961 echo "$as_me:$LINENO: checking for res_send" >&5
18962 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
18963 if test "${ac_cv_func_res_send+set}" = set; then
18964 echo $ECHO_N "(cached) $ECHO_C" >&6
18966 cat >conftest.
$ac_ext <<_ACEOF
18969 cat confdefs.h
>>conftest.
$ac_ext
18970 cat >>conftest.
$ac_ext <<_ACEOF
18971 /* end confdefs.h. */
18972 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18974 #define res_send innocuous_res_send
18976 /* System header to define __stub macros and hopefully few prototypes,
18977 which can conflict with char res_send (); below.
18978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18979 <limits.h> exists even on freestanding compilers. */
18982 # include <limits.h>
18984 # include <assert.h>
18989 /* Override any gcc2 internal prototype to avoid an error. */
18994 /* We use char because int might match the return type of a gcc2
18995 builtin and then its argument prototype would still apply. */
18997 /* The GNU C library defines this for functions which it implements
18998 to always fail with ENOSYS. Some functions are actually named
18999 something starting with __ and the normal name is an alias. */
19000 #if defined (__stub_res_send) || defined (__stub___res_send)
19003 char (*f) () = res_send;
19012 return f != res_send;
19017 rm -f conftest.
$ac_objext conftest
$ac_exeext
19018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19019 (eval $ac_link) 2>conftest.er1
19021 grep -v '^ *+' conftest.er1
>conftest.err
19023 cat conftest.err
>&5
19024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025 (exit $ac_status); } &&
19026 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19028 (eval $ac_try) 2>&5
19030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031 (exit $ac_status); }; } &&
19032 { ac_try
='test -s conftest$ac_exeext'
19033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19034 (eval $ac_try) 2>&5
19036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037 (exit $ac_status); }; }; then
19038 ac_cv_func_res_send
=yes
19040 echo "$as_me: failed program was:" >&5
19041 sed 's/^/| /' conftest.
$ac_ext >&5
19043 ac_cv_func_res_send
=no
19045 rm -f conftest.err conftest.
$ac_objext \
19046 conftest
$ac_exeext conftest.
$ac_ext
19048 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19049 echo "${ECHO_T}$ac_cv_func_res_send" >&6
19050 if test $ac_cv_func_res_send = yes; then
19053 echo "$as_me:$LINENO: checking for __res_send" >&5
19054 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
19055 if test "${ac_cv_func___res_send+set}" = set; then
19056 echo $ECHO_N "(cached) $ECHO_C" >&6
19058 cat >conftest.
$ac_ext <<_ACEOF
19061 cat confdefs.h
>>conftest.
$ac_ext
19062 cat >>conftest.
$ac_ext <<_ACEOF
19063 /* end confdefs.h. */
19064 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19066 #define __res_send innocuous___res_send
19068 /* System header to define __stub macros and hopefully few prototypes,
19069 which can conflict with char __res_send (); below.
19070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19071 <limits.h> exists even on freestanding compilers. */
19074 # include <limits.h>
19076 # include <assert.h>
19081 /* Override any gcc2 internal prototype to avoid an error. */
19086 /* We use char because int might match the return type of a gcc2
19087 builtin and then its argument prototype would still apply. */
19088 char __res_send ();
19089 /* The GNU C library defines this for functions which it implements
19090 to always fail with ENOSYS. Some functions are actually named
19091 something starting with __ and the normal name is an alias. */
19092 #if defined (__stub___res_send) || defined (__stub_____res_send)
19095 char (*f) () = __res_send;
19104 return f != __res_send;
19109 rm -f conftest.
$ac_objext conftest
$ac_exeext
19110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19111 (eval $ac_link) 2>conftest.er1
19113 grep -v '^ *+' conftest.er1
>conftest.err
19115 cat conftest.err
>&5
19116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117 (exit $ac_status); } &&
19118 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19120 (eval $ac_try) 2>&5
19122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123 (exit $ac_status); }; } &&
19124 { ac_try
='test -s conftest$ac_exeext'
19125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19126 (eval $ac_try) 2>&5
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); }; }; then
19130 ac_cv_func___res_send
=yes
19132 echo "$as_me: failed program was:" >&5
19133 sed 's/^/| /' conftest.
$ac_ext >&5
19135 ac_cv_func___res_send
=no
19137 rm -f conftest.err conftest.
$ac_objext \
19138 conftest
$ac_exeext conftest.
$ac_ext
19140 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19141 echo "${ECHO_T}$ac_cv_func___res_send" >&6
19142 if test $ac_cv_func___res_send = yes; then
19145 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19146 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
19147 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19148 echo $ECHO_N "(cached) $ECHO_C" >&6
19150 ac_check_lib_save_LIBS
=$LIBS
19151 LIBS
="-lresolv $LIBS"
19152 cat >conftest.
$ac_ext <<_ACEOF
19155 cat confdefs.h
>>conftest.
$ac_ext
19156 cat >>conftest.
$ac_ext <<_ACEOF
19157 /* end confdefs.h. */
19159 /* Override any gcc2 internal prototype to avoid an error. */
19163 /* We use char because int might match the return type of a gcc2
19164 builtin and then its argument prototype would still apply. */
19174 rm -f conftest.
$ac_objext conftest
$ac_exeext
19175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19176 (eval $ac_link) 2>conftest.er1
19178 grep -v '^ *+' conftest.er1
>conftest.err
19180 cat conftest.err
>&5
19181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19182 (exit $ac_status); } &&
19183 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19185 (eval $ac_try) 2>&5
19187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188 (exit $ac_status); }; } &&
19189 { ac_try
='test -s conftest$ac_exeext'
19190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19191 (eval $ac_try) 2>&5
19193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194 (exit $ac_status); }; }; then
19195 ac_cv_lib_resolv_res_send
=yes
19197 echo "$as_me: failed program was:" >&5
19198 sed 's/^/| /' conftest.
$ac_ext >&5
19200 ac_cv_lib_resolv_res_send
=no
19202 rm -f conftest.err conftest.
$ac_objext \
19203 conftest
$ac_exeext conftest.
$ac_ext
19204 LIBS
=$ac_check_lib_save_LIBS
19206 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19207 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
19208 if test $ac_cv_lib_resolv_res_send = yes; then
19211 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
19212 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
19213 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19214 echo $ECHO_N "(cached) $ECHO_C" >&6
19216 ac_check_lib_save_LIBS
=$LIBS
19217 LIBS
="-lresolv $LIBS"
19218 cat >conftest.
$ac_ext <<_ACEOF
19221 cat confdefs.h
>>conftest.
$ac_ext
19222 cat >>conftest.
$ac_ext <<_ACEOF
19223 /* end confdefs.h. */
19225 /* Override any gcc2 internal prototype to avoid an error. */
19229 /* We use char because int might match the return type of a gcc2
19230 builtin and then its argument prototype would still apply. */
19231 char __res_send ();
19240 rm -f conftest.
$ac_objext conftest
$ac_exeext
19241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19242 (eval $ac_link) 2>conftest.er1
19244 grep -v '^ *+' conftest.er1
>conftest.err
19246 cat conftest.err
>&5
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); } &&
19249 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19251 (eval $ac_try) 2>&5
19253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254 (exit $ac_status); }; } &&
19255 { ac_try
='test -s conftest$ac_exeext'
19256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19257 (eval $ac_try) 2>&5
19259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260 (exit $ac_status); }; }; then
19261 ac_cv_lib_resolv___res_send
=yes
19263 echo "$as_me: failed program was:" >&5
19264 sed 's/^/| /' conftest.
$ac_ext >&5
19266 ac_cv_lib_resolv___res_send
=no
19268 rm -f conftest.err conftest.
$ac_objext \
19269 conftest
$ac_exeext conftest.
$ac_ext
19270 LIBS
=$ac_check_lib_save_LIBS
19272 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
19273 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
19274 if test $ac_cv_lib_resolv___res_send = yes; then
19284 if test "$resolv" = yes ; then
19287 cat >>confdefs.h
<<\_ACEOF
19288 #define HAVE_LIBRESOLV 1
19294 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
19295 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
19296 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19297 echo $ECHO_N "(cached) $ECHO_C" >&6
19299 cat >conftest.
$ac_ext <<_ACEOF
19302 cat confdefs.h
>>conftest.
$ac_ext
19303 cat >>conftest.
$ac_ext <<_ACEOF
19304 /* end confdefs.h. */
19305 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19307 #define hes_getmailhost innocuous_hes_getmailhost
19309 /* System header to define __stub macros and hopefully few prototypes,
19310 which can conflict with char hes_getmailhost (); below.
19311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19312 <limits.h> exists even on freestanding compilers. */
19315 # include <limits.h>
19317 # include <assert.h>
19320 #undef hes_getmailhost
19322 /* Override any gcc2 internal prototype to avoid an error. */
19327 /* We use char because int might match the return type of a gcc2
19328 builtin and then its argument prototype would still apply. */
19329 char hes_getmailhost ();
19330 /* The GNU C library defines this for functions which it implements
19331 to always fail with ENOSYS. Some functions are actually named
19332 something starting with __ and the normal name is an alias. */
19333 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
19336 char (*f) () = hes_getmailhost;
19345 return f != hes_getmailhost;
19350 rm -f conftest.
$ac_objext conftest
$ac_exeext
19351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19352 (eval $ac_link) 2>conftest.er1
19354 grep -v '^ *+' conftest.er1
>conftest.err
19356 cat conftest.err
>&5
19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358 (exit $ac_status); } &&
19359 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19361 (eval $ac_try) 2>&5
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); }; } &&
19365 { ac_try
='test -s conftest$ac_exeext'
19366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19367 (eval $ac_try) 2>&5
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); }; }; then
19371 ac_cv_func_hes_getmailhost
=yes
19373 echo "$as_me: failed program was:" >&5
19374 sed 's/^/| /' conftest.
$ac_ext >&5
19376 ac_cv_func_hes_getmailhost
=no
19378 rm -f conftest.err conftest.
$ac_objext \
19379 conftest
$ac_exeext conftest.
$ac_ext
19381 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
19382 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
19383 if test $ac_cv_func_hes_getmailhost = yes; then
19386 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
19387 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
19388 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19389 echo $ECHO_N "(cached) $ECHO_C" >&6
19391 ac_check_lib_save_LIBS
=$LIBS
19392 LIBS
="-lhesiod $RESOLVLIB $LIBS"
19393 cat >conftest.
$ac_ext <<_ACEOF
19396 cat confdefs.h
>>conftest.
$ac_ext
19397 cat >>conftest.
$ac_ext <<_ACEOF
19398 /* end confdefs.h. */
19400 /* Override any gcc2 internal prototype to avoid an error. */
19404 /* We use char because int might match the return type of a gcc2
19405 builtin and then its argument prototype would still apply. */
19406 char hes_getmailhost ();
19410 hes_getmailhost ();
19415 rm -f conftest.
$ac_objext conftest
$ac_exeext
19416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19417 (eval $ac_link) 2>conftest.er1
19419 grep -v '^ *+' conftest.er1
>conftest.err
19421 cat conftest.err
>&5
19422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423 (exit $ac_status); } &&
19424 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19426 (eval $ac_try) 2>&5
19428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429 (exit $ac_status); }; } &&
19430 { ac_try
='test -s conftest$ac_exeext'
19431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19432 (eval $ac_try) 2>&5
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); }; }; then
19436 ac_cv_lib_hesiod_hes_getmailhost
=yes
19438 echo "$as_me: failed program was:" >&5
19439 sed 's/^/| /' conftest.
$ac_ext >&5
19441 ac_cv_lib_hesiod_hes_getmailhost
=no
19443 rm -f conftest.err conftest.
$ac_objext \
19444 conftest
$ac_exeext conftest.
$ac_ext
19445 LIBS
=$ac_check_lib_save_LIBS
19447 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19448 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
19449 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19451 cat >>confdefs.h
<<\_ACEOF
19452 #define HAVE_LIBHESIOD 1
19463 # These tell us which Kerberos-related libraries to use.
19464 if test "${with_kerberos+set}" = set; then
19466 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
19467 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
19468 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19469 echo $ECHO_N "(cached) $ECHO_C" >&6
19471 ac_check_lib_save_LIBS
=$LIBS
19472 LIBS
="-lcom_err $LIBS"
19473 cat >conftest.
$ac_ext <<_ACEOF
19476 cat confdefs.h
>>conftest.
$ac_ext
19477 cat >>conftest.
$ac_ext <<_ACEOF
19478 /* end confdefs.h. */
19480 /* Override any gcc2 internal prototype to avoid an error. */
19484 /* We use char because int might match the return type of a gcc2
19485 builtin and then its argument prototype would still apply. */
19495 rm -f conftest.
$ac_objext conftest
$ac_exeext
19496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19497 (eval $ac_link) 2>conftest.er1
19499 grep -v '^ *+' conftest.er1
>conftest.err
19501 cat conftest.err
>&5
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); } &&
19504 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19506 (eval $ac_try) 2>&5
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); }; } &&
19510 { ac_try
='test -s conftest$ac_exeext'
19511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19512 (eval $ac_try) 2>&5
19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); }; }; then
19516 ac_cv_lib_com_err_com_err
=yes
19518 echo "$as_me: failed program was:" >&5
19519 sed 's/^/| /' conftest.
$ac_ext >&5
19521 ac_cv_lib_com_err_com_err
=no
19523 rm -f conftest.err conftest.
$ac_objext \
19524 conftest
$ac_exeext conftest.
$ac_ext
19525 LIBS
=$ac_check_lib_save_LIBS
19527 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
19528 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
19529 if test $ac_cv_lib_com_err_com_err = yes; then
19530 cat >>confdefs.h
<<_ACEOF
19531 #define HAVE_LIBCOM_ERR 1
19534 LIBS
="-lcom_err $LIBS"
19539 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19540 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
19541 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19542 echo $ECHO_N "(cached) $ECHO_C" >&6
19544 ac_check_lib_save_LIBS
=$LIBS
19545 LIBS
="-lk5crypto $LIBS"
19546 cat >conftest.
$ac_ext <<_ACEOF
19549 cat confdefs.h
>>conftest.
$ac_ext
19550 cat >>conftest.
$ac_ext <<_ACEOF
19551 /* end confdefs.h. */
19553 /* Override any gcc2 internal prototype to avoid an error. */
19557 /* We use char because int might match the return type of a gcc2
19558 builtin and then its argument prototype would still apply. */
19559 char mit_des_cbc_encrypt ();
19563 mit_des_cbc_encrypt ();
19568 rm -f conftest.
$ac_objext conftest
$ac_exeext
19569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19570 (eval $ac_link) 2>conftest.er1
19572 grep -v '^ *+' conftest.er1
>conftest.err
19574 cat conftest.err
>&5
19575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576 (exit $ac_status); } &&
19577 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19579 (eval $ac_try) 2>&5
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); }; } &&
19583 { ac_try
='test -s conftest$ac_exeext'
19584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19585 (eval $ac_try) 2>&5
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); }; }; then
19589 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
19591 echo "$as_me: failed program was:" >&5
19592 sed 's/^/| /' conftest.
$ac_ext >&5
19594 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
19596 rm -f conftest.err conftest.
$ac_objext \
19597 conftest
$ac_exeext conftest.
$ac_ext
19598 LIBS
=$ac_check_lib_save_LIBS
19600 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19601 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
19602 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19603 cat >>confdefs.h
<<_ACEOF
19604 #define HAVE_LIBK5CRYPTO 1
19607 LIBS
="-lk5crypto $LIBS"
19612 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19613 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
19614 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19615 echo $ECHO_N "(cached) $ECHO_C" >&6
19617 ac_check_lib_save_LIBS
=$LIBS
19618 LIBS
="-lcrypto $LIBS"
19619 cat >conftest.
$ac_ext <<_ACEOF
19622 cat confdefs.h
>>conftest.
$ac_ext
19623 cat >>conftest.
$ac_ext <<_ACEOF
19624 /* end confdefs.h. */
19626 /* Override any gcc2 internal prototype to avoid an error. */
19630 /* We use char because int might match the return type of a gcc2
19631 builtin and then its argument prototype would still apply. */
19632 char mit_des_cbc_encrypt ();
19636 mit_des_cbc_encrypt ();
19641 rm -f conftest.
$ac_objext conftest
$ac_exeext
19642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19643 (eval $ac_link) 2>conftest.er1
19645 grep -v '^ *+' conftest.er1
>conftest.err
19647 cat conftest.err
>&5
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); } &&
19650 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19652 (eval $ac_try) 2>&5
19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); }; } &&
19656 { ac_try
='test -s conftest$ac_exeext'
19657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19658 (eval $ac_try) 2>&5
19660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661 (exit $ac_status); }; }; then
19662 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
19664 echo "$as_me: failed program was:" >&5
19665 sed 's/^/| /' conftest.
$ac_ext >&5
19667 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
19669 rm -f conftest.err conftest.
$ac_objext \
19670 conftest
$ac_exeext conftest.
$ac_ext
19671 LIBS
=$ac_check_lib_save_LIBS
19673 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19674 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
19675 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19676 cat >>confdefs.h
<<_ACEOF
19677 #define HAVE_LIBCRYPTO 1
19680 LIBS
="-lcrypto $LIBS"
19685 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19686 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
19687 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19688 echo $ECHO_N "(cached) $ECHO_C" >&6
19690 ac_check_lib_save_LIBS
=$LIBS
19691 LIBS
="-lkrb5 $LIBS"
19692 cat >conftest.
$ac_ext <<_ACEOF
19695 cat confdefs.h
>>conftest.
$ac_ext
19696 cat >>conftest.
$ac_ext <<_ACEOF
19697 /* end confdefs.h. */
19699 /* Override any gcc2 internal prototype to avoid an error. */
19703 /* We use char because int might match the return type of a gcc2
19704 builtin and then its argument prototype would still apply. */
19705 char krb5_init_context ();
19709 krb5_init_context ();
19714 rm -f conftest.
$ac_objext conftest
$ac_exeext
19715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19716 (eval $ac_link) 2>conftest.er1
19718 grep -v '^ *+' conftest.er1
>conftest.err
19720 cat conftest.err
>&5
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); } &&
19723 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19725 (eval $ac_try) 2>&5
19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728 (exit $ac_status); }; } &&
19729 { ac_try
='test -s conftest$ac_exeext'
19730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19731 (eval $ac_try) 2>&5
19733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734 (exit $ac_status); }; }; then
19735 ac_cv_lib_krb5_krb5_init_context
=yes
19737 echo "$as_me: failed program was:" >&5
19738 sed 's/^/| /' conftest.
$ac_ext >&5
19740 ac_cv_lib_krb5_krb5_init_context
=no
19742 rm -f conftest.err conftest.
$ac_objext \
19743 conftest
$ac_exeext conftest.
$ac_ext
19744 LIBS
=$ac_check_lib_save_LIBS
19746 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19747 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
19748 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19749 cat >>confdefs.h
<<_ACEOF
19750 #define HAVE_LIBKRB5 1
19753 LIBS
="-lkrb5 $LIBS"
19757 if test "${with_kerberos5+set}" != set; then
19759 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19760 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
19761 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19762 echo $ECHO_N "(cached) $ECHO_C" >&6
19764 ac_check_lib_save_LIBS
=$LIBS
19765 LIBS
="-ldes425 $LIBS"
19766 cat >conftest.
$ac_ext <<_ACEOF
19769 cat confdefs.h
>>conftest.
$ac_ext
19770 cat >>conftest.
$ac_ext <<_ACEOF
19771 /* end confdefs.h. */
19773 /* Override any gcc2 internal prototype to avoid an error. */
19777 /* We use char because int might match the return type of a gcc2
19778 builtin and then its argument prototype would still apply. */
19779 char des_cbc_encrypt ();
19783 des_cbc_encrypt ();
19788 rm -f conftest.
$ac_objext conftest
$ac_exeext
19789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19790 (eval $ac_link) 2>conftest.er1
19792 grep -v '^ *+' conftest.er1
>conftest.err
19794 cat conftest.err
>&5
19795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796 (exit $ac_status); } &&
19797 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19799 (eval $ac_try) 2>&5
19801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802 (exit $ac_status); }; } &&
19803 { ac_try
='test -s conftest$ac_exeext'
19804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19805 (eval $ac_try) 2>&5
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); }; }; then
19809 ac_cv_lib_des425_des_cbc_encrypt
=yes
19811 echo "$as_me: failed program was:" >&5
19812 sed 's/^/| /' conftest.
$ac_ext >&5
19814 ac_cv_lib_des425_des_cbc_encrypt
=no
19816 rm -f conftest.err conftest.
$ac_objext \
19817 conftest
$ac_exeext conftest.
$ac_ext
19818 LIBS
=$ac_check_lib_save_LIBS
19820 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19821 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
19822 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19823 cat >>confdefs.h
<<_ACEOF
19824 #define HAVE_LIBDES425 1
19827 LIBS
="-ldes425 $LIBS"
19831 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19832 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
19833 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19834 echo $ECHO_N "(cached) $ECHO_C" >&6
19836 ac_check_lib_save_LIBS
=$LIBS
19838 cat >conftest.
$ac_ext <<_ACEOF
19841 cat confdefs.h
>>conftest.
$ac_ext
19842 cat >>conftest.
$ac_ext <<_ACEOF
19843 /* end confdefs.h. */
19845 /* Override any gcc2 internal prototype to avoid an error. */
19849 /* We use char because int might match the return type of a gcc2
19850 builtin and then its argument prototype would still apply. */
19851 char des_cbc_encrypt ();
19855 des_cbc_encrypt ();
19860 rm -f conftest.
$ac_objext conftest
$ac_exeext
19861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19862 (eval $ac_link) 2>conftest.er1
19864 grep -v '^ *+' conftest.er1
>conftest.err
19866 cat conftest.err
>&5
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); } &&
19869 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19871 (eval $ac_try) 2>&5
19873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874 (exit $ac_status); }; } &&
19875 { ac_try
='test -s conftest$ac_exeext'
19876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19877 (eval $ac_try) 2>&5
19879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880 (exit $ac_status); }; }; then
19881 ac_cv_lib_des_des_cbc_encrypt
=yes
19883 echo "$as_me: failed program was:" >&5
19884 sed 's/^/| /' conftest.
$ac_ext >&5
19886 ac_cv_lib_des_des_cbc_encrypt
=no
19888 rm -f conftest.err conftest.
$ac_objext \
19889 conftest
$ac_exeext conftest.
$ac_ext
19890 LIBS
=$ac_check_lib_save_LIBS
19892 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19893 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
19894 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19895 cat >>confdefs.h
<<_ACEOF
19896 #define HAVE_LIBDES 1
19906 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19907 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
19908 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19909 echo $ECHO_N "(cached) $ECHO_C" >&6
19911 ac_check_lib_save_LIBS
=$LIBS
19912 LIBS
="-lkrb4 $LIBS"
19913 cat >conftest.
$ac_ext <<_ACEOF
19916 cat confdefs.h
>>conftest.
$ac_ext
19917 cat >>conftest.
$ac_ext <<_ACEOF
19918 /* end confdefs.h. */
19920 /* Override any gcc2 internal prototype to avoid an error. */
19924 /* We use char because int might match the return type of a gcc2
19925 builtin and then its argument prototype would still apply. */
19926 char krb_get_cred ();
19935 rm -f conftest.
$ac_objext conftest
$ac_exeext
19936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19937 (eval $ac_link) 2>conftest.er1
19939 grep -v '^ *+' conftest.er1
>conftest.err
19941 cat conftest.err
>&5
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); } &&
19944 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19946 (eval $ac_try) 2>&5
19948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949 (exit $ac_status); }; } &&
19950 { ac_try
='test -s conftest$ac_exeext'
19951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19952 (eval $ac_try) 2>&5
19954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19955 (exit $ac_status); }; }; then
19956 ac_cv_lib_krb4_krb_get_cred
=yes
19958 echo "$as_me: failed program was:" >&5
19959 sed 's/^/| /' conftest.
$ac_ext >&5
19961 ac_cv_lib_krb4_krb_get_cred
=no
19963 rm -f conftest.err conftest.
$ac_objext \
19964 conftest
$ac_exeext conftest.
$ac_ext
19965 LIBS
=$ac_check_lib_save_LIBS
19967 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19968 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
19969 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19970 cat >>confdefs.h
<<_ACEOF
19971 #define HAVE_LIBKRB4 1
19974 LIBS
="-lkrb4 $LIBS"
19978 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19979 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
19980 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19981 echo $ECHO_N "(cached) $ECHO_C" >&6
19983 ac_check_lib_save_LIBS
=$LIBS
19985 cat >conftest.
$ac_ext <<_ACEOF
19988 cat confdefs.h
>>conftest.
$ac_ext
19989 cat >>conftest.
$ac_ext <<_ACEOF
19990 /* end confdefs.h. */
19992 /* Override any gcc2 internal prototype to avoid an error. */
19996 /* We use char because int might match the return type of a gcc2
19997 builtin and then its argument prototype would still apply. */
19998 char krb_get_cred ();
20007 rm -f conftest.
$ac_objext conftest
$ac_exeext
20008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20009 (eval $ac_link) 2>conftest.er1
20011 grep -v '^ *+' conftest.er1
>conftest.err
20013 cat conftest.err
>&5
20014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015 (exit $ac_status); } &&
20016 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20018 (eval $ac_try) 2>&5
20020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021 (exit $ac_status); }; } &&
20022 { ac_try
='test -s conftest$ac_exeext'
20023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20024 (eval $ac_try) 2>&5
20026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027 (exit $ac_status); }; }; then
20028 ac_cv_lib_krb_krb_get_cred
=yes
20030 echo "$as_me: failed program was:" >&5
20031 sed 's/^/| /' conftest.
$ac_ext >&5
20033 ac_cv_lib_krb_krb_get_cred
=no
20035 rm -f conftest.err conftest.
$ac_objext \
20036 conftest
$ac_exeext conftest.
$ac_ext
20037 LIBS
=$ac_check_lib_save_LIBS
20039 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20040 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
20041 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20042 cat >>confdefs.h
<<_ACEOF
20043 #define HAVE_LIBKRB 1
20054 if test "${with_kerberos5+set}" = set; then
20056 for ac_header
in krb5.h
20058 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20060 echo "$as_me:$LINENO: checking for $ac_header" >&5
20061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20063 echo $ECHO_N "(cached) $ECHO_C" >&6
20065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20066 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20068 # Is the header compilable?
20069 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20070 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20071 cat >conftest.
$ac_ext <<_ACEOF
20074 cat confdefs.h
>>conftest.
$ac_ext
20075 cat >>conftest.
$ac_ext <<_ACEOF
20076 /* end confdefs.h. */
20077 $ac_includes_default
20078 #include <$ac_header>
20080 rm -f conftest.
$ac_objext
20081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20082 (eval $ac_compile) 2>conftest.er1
20084 grep -v '^ *+' conftest.er1
>conftest.err
20086 cat conftest.err
>&5
20087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088 (exit $ac_status); } &&
20089 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20091 (eval $ac_try) 2>&5
20093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094 (exit $ac_status); }; } &&
20095 { ac_try
='test -s conftest.$ac_objext'
20096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20097 (eval $ac_try) 2>&5
20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100 (exit $ac_status); }; }; then
20101 ac_header_compiler
=yes
20103 echo "$as_me: failed program was:" >&5
20104 sed 's/^/| /' conftest.
$ac_ext >&5
20106 ac_header_compiler
=no
20108 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20109 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20110 echo "${ECHO_T}$ac_header_compiler" >&6
20112 # Is the header present?
20113 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20114 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20115 cat >conftest.
$ac_ext <<_ACEOF
20118 cat confdefs.h
>>conftest.
$ac_ext
20119 cat >>conftest.
$ac_ext <<_ACEOF
20120 /* end confdefs.h. */
20121 #include <$ac_header>
20123 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20124 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20126 grep -v '^ *+' conftest.er1
>conftest.err
20128 cat conftest.err
>&5
20129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20130 (exit $ac_status); } >/dev
/null
; then
20131 if test -s conftest.err
; then
20132 ac_cpp_err
=$ac_c_preproc_warn_flag
20133 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20140 if test -z "$ac_cpp_err"; then
20141 ac_header_preproc
=yes
20143 echo "$as_me: failed program was:" >&5
20144 sed 's/^/| /' conftest.
$ac_ext >&5
20146 ac_header_preproc
=no
20148 rm -f conftest.err conftest.
$ac_ext
20149 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20150 echo "${ECHO_T}$ac_header_preproc" >&6
20152 # So? What about this header?
20153 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20155 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20156 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20158 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20159 ac_header_preproc
=yes
20162 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20163 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20164 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20165 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20166 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20167 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20168 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20169 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20171 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20172 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20173 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20176 ## ------------------------------------------ ##
20177 ## Report this to the AC_PACKAGE_NAME lists. ##
20178 ## ------------------------------------------ ##
20181 sed "s/^/$as_me: WARNING: /" >&2
20184 echo "$as_me:$LINENO: checking for $ac_header" >&5
20185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20187 echo $ECHO_N "(cached) $ECHO_C" >&6
20189 eval "$as_ac_Header=\$ac_header_preproc"
20191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20195 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20196 cat >>confdefs.h
<<_ACEOF
20197 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20206 for ac_header
in des.h
20208 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20210 echo "$as_me:$LINENO: checking for $ac_header" >&5
20211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20213 echo $ECHO_N "(cached) $ECHO_C" >&6
20215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20216 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20218 # Is the header compilable?
20219 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20220 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20221 cat >conftest.
$ac_ext <<_ACEOF
20224 cat confdefs.h
>>conftest.
$ac_ext
20225 cat >>conftest.
$ac_ext <<_ACEOF
20226 /* end confdefs.h. */
20227 $ac_includes_default
20228 #include <$ac_header>
20230 rm -f conftest.
$ac_objext
20231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20232 (eval $ac_compile) 2>conftest.er1
20234 grep -v '^ *+' conftest.er1
>conftest.err
20236 cat conftest.err
>&5
20237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238 (exit $ac_status); } &&
20239 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20241 (eval $ac_try) 2>&5
20243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244 (exit $ac_status); }; } &&
20245 { ac_try
='test -s conftest.$ac_objext'
20246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20247 (eval $ac_try) 2>&5
20249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20250 (exit $ac_status); }; }; then
20251 ac_header_compiler
=yes
20253 echo "$as_me: failed program was:" >&5
20254 sed 's/^/| /' conftest.
$ac_ext >&5
20256 ac_header_compiler
=no
20258 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20259 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20260 echo "${ECHO_T}$ac_header_compiler" >&6
20262 # Is the header present?
20263 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20264 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20265 cat >conftest.
$ac_ext <<_ACEOF
20268 cat confdefs.h
>>conftest.
$ac_ext
20269 cat >>conftest.
$ac_ext <<_ACEOF
20270 /* end confdefs.h. */
20271 #include <$ac_header>
20273 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20274 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20276 grep -v '^ *+' conftest.er1
>conftest.err
20278 cat conftest.err
>&5
20279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280 (exit $ac_status); } >/dev
/null
; then
20281 if test -s conftest.err
; then
20282 ac_cpp_err
=$ac_c_preproc_warn_flag
20283 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20290 if test -z "$ac_cpp_err"; then
20291 ac_header_preproc
=yes
20293 echo "$as_me: failed program was:" >&5
20294 sed 's/^/| /' conftest.
$ac_ext >&5
20296 ac_header_preproc
=no
20298 rm -f conftest.err conftest.
$ac_ext
20299 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20300 echo "${ECHO_T}$ac_header_preproc" >&6
20302 # So? What about this header?
20303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20305 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20306 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20308 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20309 ac_header_preproc
=yes
20312 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20313 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20314 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20315 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20316 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20317 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20318 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20319 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20321 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20322 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20323 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20326 ## ------------------------------------------ ##
20327 ## Report this to the AC_PACKAGE_NAME lists. ##
20328 ## ------------------------------------------ ##
20331 sed "s/^/$as_me: WARNING: /" >&2
20334 echo "$as_me:$LINENO: checking for $ac_header" >&5
20335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20337 echo $ECHO_N "(cached) $ECHO_C" >&6
20339 eval "$as_ac_Header=\$ac_header_preproc"
20341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20346 cat >>confdefs.h
<<_ACEOF
20347 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20352 for ac_header
in kerberosIV
/des.h
20354 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20356 echo "$as_me:$LINENO: checking for $ac_header" >&5
20357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20359 echo $ECHO_N "(cached) $ECHO_C" >&6
20361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20362 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20364 # Is the header compilable?
20365 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20366 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20367 cat >conftest.
$ac_ext <<_ACEOF
20370 cat confdefs.h
>>conftest.
$ac_ext
20371 cat >>conftest.
$ac_ext <<_ACEOF
20372 /* end confdefs.h. */
20373 $ac_includes_default
20374 #include <$ac_header>
20376 rm -f conftest.
$ac_objext
20377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20378 (eval $ac_compile) 2>conftest.er1
20380 grep -v '^ *+' conftest.er1
>conftest.err
20382 cat conftest.err
>&5
20383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384 (exit $ac_status); } &&
20385 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20387 (eval $ac_try) 2>&5
20389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390 (exit $ac_status); }; } &&
20391 { ac_try
='test -s conftest.$ac_objext'
20392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20393 (eval $ac_try) 2>&5
20395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396 (exit $ac_status); }; }; then
20397 ac_header_compiler
=yes
20399 echo "$as_me: failed program was:" >&5
20400 sed 's/^/| /' conftest.
$ac_ext >&5
20402 ac_header_compiler
=no
20404 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20405 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20406 echo "${ECHO_T}$ac_header_compiler" >&6
20408 # Is the header present?
20409 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20410 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20411 cat >conftest.
$ac_ext <<_ACEOF
20414 cat confdefs.h
>>conftest.
$ac_ext
20415 cat >>conftest.
$ac_ext <<_ACEOF
20416 /* end confdefs.h. */
20417 #include <$ac_header>
20419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20420 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20422 grep -v '^ *+' conftest.er1
>conftest.err
20424 cat conftest.err
>&5
20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); } >/dev
/null
; then
20427 if test -s conftest.err
; then
20428 ac_cpp_err
=$ac_c_preproc_warn_flag
20429 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20436 if test -z "$ac_cpp_err"; then
20437 ac_header_preproc
=yes
20439 echo "$as_me: failed program was:" >&5
20440 sed 's/^/| /' conftest.
$ac_ext >&5
20442 ac_header_preproc
=no
20444 rm -f conftest.err conftest.
$ac_ext
20445 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20446 echo "${ECHO_T}$ac_header_preproc" >&6
20448 # So? What about this header?
20449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20455 ac_header_preproc
=yes
20458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20461 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20462 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20464 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20465 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20468 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20472 ## ------------------------------------------ ##
20473 ## Report this to the AC_PACKAGE_NAME lists. ##
20474 ## ------------------------------------------ ##
20477 sed "s/^/$as_me: WARNING: /" >&2
20480 echo "$as_me:$LINENO: checking for $ac_header" >&5
20481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20483 echo $ECHO_N "(cached) $ECHO_C" >&6
20485 eval "$as_ac_Header=\$ac_header_preproc"
20487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20488 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20492 cat >>confdefs.h
<<_ACEOF
20493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20498 for ac_header
in kerberos
/des.h
20500 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20502 echo "$as_me:$LINENO: checking for $ac_header" >&5
20503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20505 echo $ECHO_N "(cached) $ECHO_C" >&6
20507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20508 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20510 # Is the header compilable?
20511 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20512 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
20520 #include <$ac_header>
20522 rm -f conftest.
$ac_objext
20523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20524 (eval $ac_compile) 2>conftest.er1
20526 grep -v '^ *+' conftest.er1
>conftest.err
20528 cat conftest.err
>&5
20529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530 (exit $ac_status); } &&
20531 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20533 (eval $ac_try) 2>&5
20535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536 (exit $ac_status); }; } &&
20537 { ac_try
='test -s conftest.$ac_objext'
20538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20539 (eval $ac_try) 2>&5
20541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542 (exit $ac_status); }; }; then
20543 ac_header_compiler
=yes
20545 echo "$as_me: failed program was:" >&5
20546 sed 's/^/| /' conftest.
$ac_ext >&5
20548 ac_header_compiler
=no
20550 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20551 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20552 echo "${ECHO_T}$ac_header_compiler" >&6
20554 # Is the header present?
20555 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20556 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20557 cat >conftest.
$ac_ext <<_ACEOF
20560 cat confdefs.h
>>conftest.
$ac_ext
20561 cat >>conftest.
$ac_ext <<_ACEOF
20562 /* end confdefs.h. */
20563 #include <$ac_header>
20565 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20566 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20568 grep -v '^ *+' conftest.er1
>conftest.err
20570 cat conftest.err
>&5
20571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); } >/dev
/null
; then
20573 if test -s conftest.err
; then
20574 ac_cpp_err
=$ac_c_preproc_warn_flag
20575 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20582 if test -z "$ac_cpp_err"; then
20583 ac_header_preproc
=yes
20585 echo "$as_me: failed program was:" >&5
20586 sed 's/^/| /' conftest.
$ac_ext >&5
20588 ac_header_preproc
=no
20590 rm -f conftest.err conftest.
$ac_ext
20591 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20592 echo "${ECHO_T}$ac_header_preproc" >&6
20594 # So? What about this header?
20595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20597 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20598 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20600 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20601 ac_header_preproc
=yes
20604 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20605 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20606 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20607 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20608 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20609 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20610 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20611 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20613 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20614 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20615 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20618 ## ------------------------------------------ ##
20619 ## Report this to the AC_PACKAGE_NAME lists. ##
20620 ## ------------------------------------------ ##
20623 sed "s/^/$as_me: WARNING: /" >&2
20626 echo "$as_me:$LINENO: checking for $ac_header" >&5
20627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20629 echo $ECHO_N "(cached) $ECHO_C" >&6
20631 eval "$as_ac_Header=\$ac_header_preproc"
20633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20634 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20638 cat >>confdefs.h
<<_ACEOF
20639 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20655 for ac_header
in krb.h
20657 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20658 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20659 echo "$as_me:$LINENO: checking for $ac_header" >&5
20660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20662 echo $ECHO_N "(cached) $ECHO_C" >&6
20664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20667 # Is the header compilable?
20668 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20669 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20670 cat >conftest.
$ac_ext <<_ACEOF
20673 cat confdefs.h
>>conftest.
$ac_ext
20674 cat >>conftest.
$ac_ext <<_ACEOF
20675 /* end confdefs.h. */
20676 $ac_includes_default
20677 #include <$ac_header>
20679 rm -f conftest.
$ac_objext
20680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20681 (eval $ac_compile) 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); } &&
20688 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20690 (eval $ac_try) 2>&5
20692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20693 (exit $ac_status); }; } &&
20694 { ac_try
='test -s conftest.$ac_objext'
20695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20696 (eval $ac_try) 2>&5
20698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699 (exit $ac_status); }; }; then
20700 ac_header_compiler
=yes
20702 echo "$as_me: failed program was:" >&5
20703 sed 's/^/| /' conftest.
$ac_ext >&5
20705 ac_header_compiler
=no
20707 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20708 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20709 echo "${ECHO_T}$ac_header_compiler" >&6
20711 # Is the header present?
20712 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20713 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20714 cat >conftest.
$ac_ext <<_ACEOF
20717 cat confdefs.h
>>conftest.
$ac_ext
20718 cat >>conftest.
$ac_ext <<_ACEOF
20719 /* end confdefs.h. */
20720 #include <$ac_header>
20722 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20723 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20725 grep -v '^ *+' conftest.er1
>conftest.err
20727 cat conftest.err
>&5
20728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729 (exit $ac_status); } >/dev
/null
; then
20730 if test -s conftest.err
; then
20731 ac_cpp_err
=$ac_c_preproc_warn_flag
20732 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20739 if test -z "$ac_cpp_err"; then
20740 ac_header_preproc
=yes
20742 echo "$as_me: failed program was:" >&5
20743 sed 's/^/| /' conftest.
$ac_ext >&5
20745 ac_header_preproc
=no
20747 rm -f conftest.err conftest.
$ac_ext
20748 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20749 echo "${ECHO_T}$ac_header_preproc" >&6
20751 # So? What about this header?
20752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20754 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20755 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20757 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20758 ac_header_preproc
=yes
20761 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20762 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20763 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20764 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20765 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20766 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20767 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20768 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20771 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20772 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20775 ## ------------------------------------------ ##
20776 ## Report this to the AC_PACKAGE_NAME lists. ##
20777 ## ------------------------------------------ ##
20780 sed "s/^/$as_me: WARNING: /" >&2
20783 echo "$as_me:$LINENO: checking for $ac_header" >&5
20784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20786 echo $ECHO_N "(cached) $ECHO_C" >&6
20788 eval "$as_ac_Header=\$ac_header_preproc"
20790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20795 cat >>confdefs.h
<<_ACEOF
20796 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20801 for ac_header
in kerberosIV
/krb.h
20803 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20805 echo "$as_me:$LINENO: checking for $ac_header" >&5
20806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20808 echo $ECHO_N "(cached) $ECHO_C" >&6
20810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20811 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20813 # Is the header compilable?
20814 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20815 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20816 cat >conftest.
$ac_ext <<_ACEOF
20819 cat confdefs.h
>>conftest.
$ac_ext
20820 cat >>conftest.
$ac_ext <<_ACEOF
20821 /* end confdefs.h. */
20822 $ac_includes_default
20823 #include <$ac_header>
20825 rm -f conftest.
$ac_objext
20826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20827 (eval $ac_compile) 2>conftest.er1
20829 grep -v '^ *+' conftest.er1
>conftest.err
20831 cat conftest.err
>&5
20832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833 (exit $ac_status); } &&
20834 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20836 (eval $ac_try) 2>&5
20838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839 (exit $ac_status); }; } &&
20840 { ac_try
='test -s conftest.$ac_objext'
20841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20842 (eval $ac_try) 2>&5
20844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20845 (exit $ac_status); }; }; then
20846 ac_header_compiler
=yes
20848 echo "$as_me: failed program was:" >&5
20849 sed 's/^/| /' conftest.
$ac_ext >&5
20851 ac_header_compiler
=no
20853 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20854 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20855 echo "${ECHO_T}$ac_header_compiler" >&6
20857 # Is the header present?
20858 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20859 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20860 cat >conftest.
$ac_ext <<_ACEOF
20863 cat confdefs.h
>>conftest.
$ac_ext
20864 cat >>conftest.
$ac_ext <<_ACEOF
20865 /* end confdefs.h. */
20866 #include <$ac_header>
20868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20869 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20871 grep -v '^ *+' conftest.er1
>conftest.err
20873 cat conftest.err
>&5
20874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875 (exit $ac_status); } >/dev
/null
; then
20876 if test -s conftest.err
; then
20877 ac_cpp_err
=$ac_c_preproc_warn_flag
20878 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20885 if test -z "$ac_cpp_err"; then
20886 ac_header_preproc
=yes
20888 echo "$as_me: failed program was:" >&5
20889 sed 's/^/| /' conftest.
$ac_ext >&5
20891 ac_header_preproc
=no
20893 rm -f conftest.err conftest.
$ac_ext
20894 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20895 echo "${ECHO_T}$ac_header_preproc" >&6
20897 # So? What about this header?
20898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20900 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20901 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20903 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20904 ac_header_preproc
=yes
20907 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20908 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20909 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20910 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20911 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20912 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20913 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20914 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20916 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20917 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20918 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20921 ## ------------------------------------------ ##
20922 ## Report this to the AC_PACKAGE_NAME lists. ##
20923 ## ------------------------------------------ ##
20926 sed "s/^/$as_me: WARNING: /" >&2
20929 echo "$as_me:$LINENO: checking for $ac_header" >&5
20930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20932 echo $ECHO_N "(cached) $ECHO_C" >&6
20934 eval "$as_ac_Header=\$ac_header_preproc"
20936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20941 cat >>confdefs.h
<<_ACEOF
20942 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20947 for ac_header
in kerberos
/krb.h
20949 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20951 echo "$as_me:$LINENO: checking for $ac_header" >&5
20952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20954 echo $ECHO_N "(cached) $ECHO_C" >&6
20956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20957 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20959 # Is the header compilable?
20960 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20962 cat >conftest.
$ac_ext <<_ACEOF
20965 cat confdefs.h
>>conftest.
$ac_ext
20966 cat >>conftest.
$ac_ext <<_ACEOF
20967 /* end confdefs.h. */
20968 $ac_includes_default
20969 #include <$ac_header>
20971 rm -f conftest.
$ac_objext
20972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20973 (eval $ac_compile) 2>conftest.er1
20975 grep -v '^ *+' conftest.er1
>conftest.err
20977 cat conftest.err
>&5
20978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979 (exit $ac_status); } &&
20980 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20982 (eval $ac_try) 2>&5
20984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20985 (exit $ac_status); }; } &&
20986 { ac_try
='test -s conftest.$ac_objext'
20987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20988 (eval $ac_try) 2>&5
20990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20991 (exit $ac_status); }; }; then
20992 ac_header_compiler
=yes
20994 echo "$as_me: failed program was:" >&5
20995 sed 's/^/| /' conftest.
$ac_ext >&5
20997 ac_header_compiler
=no
20999 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21000 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21001 echo "${ECHO_T}$ac_header_compiler" >&6
21003 # Is the header present?
21004 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21005 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21006 cat >conftest.
$ac_ext <<_ACEOF
21009 cat confdefs.h
>>conftest.
$ac_ext
21010 cat >>conftest.
$ac_ext <<_ACEOF
21011 /* end confdefs.h. */
21012 #include <$ac_header>
21014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21015 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21017 grep -v '^ *+' conftest.er1
>conftest.err
21019 cat conftest.err
>&5
21020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021 (exit $ac_status); } >/dev
/null
; then
21022 if test -s conftest.err
; then
21023 ac_cpp_err
=$ac_c_preproc_warn_flag
21024 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21031 if test -z "$ac_cpp_err"; then
21032 ac_header_preproc
=yes
21034 echo "$as_me: failed program was:" >&5
21035 sed 's/^/| /' conftest.
$ac_ext >&5
21037 ac_header_preproc
=no
21039 rm -f conftest.err conftest.
$ac_ext
21040 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21041 echo "${ECHO_T}$ac_header_preproc" >&6
21043 # So? What about this header?
21044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21046 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21047 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21049 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21050 ac_header_preproc
=yes
21053 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21054 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21055 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21056 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21057 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21058 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21059 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21060 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21062 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21063 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21064 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21067 ## ------------------------------------------ ##
21068 ## Report this to the AC_PACKAGE_NAME lists. ##
21069 ## ------------------------------------------ ##
21072 sed "s/^/$as_me: WARNING: /" >&2
21075 echo "$as_me:$LINENO: checking for $ac_header" >&5
21076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21078 echo $ECHO_N "(cached) $ECHO_C" >&6
21080 eval "$as_ac_Header=\$ac_header_preproc"
21082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21087 cat >>confdefs.h
<<_ACEOF
21088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21105 for ac_header
in com_err.h
21107 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21109 echo "$as_me:$LINENO: checking for $ac_header" >&5
21110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21112 echo $ECHO_N "(cached) $ECHO_C" >&6
21114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21115 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21117 # Is the header compilable?
21118 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21119 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21120 cat >conftest.
$ac_ext <<_ACEOF
21123 cat confdefs.h
>>conftest.
$ac_ext
21124 cat >>conftest.
$ac_ext <<_ACEOF
21125 /* end confdefs.h. */
21126 $ac_includes_default
21127 #include <$ac_header>
21129 rm -f conftest.
$ac_objext
21130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21131 (eval $ac_compile) 2>conftest.er1
21133 grep -v '^ *+' conftest.er1
>conftest.err
21135 cat conftest.err
>&5
21136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137 (exit $ac_status); } &&
21138 { ac_try
='test -z "$ac_c_werror_flag" || 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_header_compiler
=yes
21152 echo "$as_me: failed program was:" >&5
21153 sed 's/^/| /' conftest.
$ac_ext >&5
21155 ac_header_compiler
=no
21157 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21158 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21159 echo "${ECHO_T}$ac_header_compiler" >&6
21161 # Is the header present?
21162 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21163 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21164 cat >conftest.
$ac_ext <<_ACEOF
21167 cat confdefs.h
>>conftest.
$ac_ext
21168 cat >>conftest.
$ac_ext <<_ACEOF
21169 /* end confdefs.h. */
21170 #include <$ac_header>
21172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21173 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21175 grep -v '^ *+' conftest.er1
>conftest.err
21177 cat conftest.err
>&5
21178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179 (exit $ac_status); } >/dev
/null
; then
21180 if test -s conftest.err
; then
21181 ac_cpp_err
=$ac_c_preproc_warn_flag
21182 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21189 if test -z "$ac_cpp_err"; then
21190 ac_header_preproc
=yes
21192 echo "$as_me: failed program was:" >&5
21193 sed 's/^/| /' conftest.
$ac_ext >&5
21195 ac_header_preproc
=no
21197 rm -f conftest.err conftest.
$ac_ext
21198 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21199 echo "${ECHO_T}$ac_header_preproc" >&6
21201 # So? What about this header?
21202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21204 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21205 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21207 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21208 ac_header_preproc
=yes
21211 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21212 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21213 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21214 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21215 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21216 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21217 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21218 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21221 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21222 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21225 ## ------------------------------------------ ##
21226 ## Report this to the AC_PACKAGE_NAME lists. ##
21227 ## ------------------------------------------ ##
21230 sed "s/^/$as_me: WARNING: /" >&2
21233 echo "$as_me:$LINENO: checking for $ac_header" >&5
21234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21236 echo $ECHO_N "(cached) $ECHO_C" >&6
21238 eval "$as_ac_Header=\$ac_header_preproc"
21240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21245 cat >>confdefs.h
<<_ACEOF
21246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21255 # Solaris requires -lintl if you want strerror (which calls dgettext)
21256 # to return localized messages.
21258 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21259 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
21260 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21261 echo $ECHO_N "(cached) $ECHO_C" >&6
21263 ac_check_lib_save_LIBS
=$LIBS
21264 LIBS
="-lintl $LIBS"
21265 cat >conftest.
$ac_ext <<_ACEOF
21268 cat confdefs.h
>>conftest.
$ac_ext
21269 cat >>conftest.
$ac_ext <<_ACEOF
21270 /* end confdefs.h. */
21272 /* Override any gcc2 internal prototype to avoid an error. */
21276 /* We use char because int might match the return type of a gcc2
21277 builtin and then its argument prototype would still apply. */
21287 rm -f conftest.
$ac_objext conftest
$ac_exeext
21288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21289 (eval $ac_link) 2>conftest.er1
21291 grep -v '^ *+' conftest.er1
>conftest.err
21293 cat conftest.err
>&5
21294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295 (exit $ac_status); } &&
21296 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21298 (eval $ac_try) 2>&5
21300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301 (exit $ac_status); }; } &&
21302 { ac_try
='test -s conftest$ac_exeext'
21303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21304 (eval $ac_try) 2>&5
21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); }; }; then
21308 ac_cv_lib_intl_dgettext
=yes
21310 echo "$as_me: failed program was:" >&5
21311 sed 's/^/| /' conftest.
$ac_ext >&5
21313 ac_cv_lib_intl_dgettext
=no
21315 rm -f conftest.err conftest.
$ac_objext \
21316 conftest
$ac_exeext conftest.
$ac_ext
21317 LIBS
=$ac_check_lib_save_LIBS
21319 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21320 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
21321 if test $ac_cv_lib_intl_dgettext = yes; then
21322 cat >>confdefs.h
<<_ACEOF
21323 #define HAVE_LIBINTL 1
21326 LIBS
="-lintl $LIBS"
21331 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
21332 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
21333 if test "${emacs_cv_localtime_cache+set}" = set; then
21334 echo $ECHO_N "(cached) $ECHO_C" >&6
21336 if test x
$ac_cv_func_tzset = xyes
; then
21337 if test "$cross_compiling" = yes; then
21338 # If we have tzset, assume the worst when cross-compiling.
21339 emacs_cv_localtime_cache
=yes
21341 cat >conftest.
$ac_ext <<_ACEOF
21344 cat confdefs.h
>>conftest.
$ac_ext
21345 cat >>conftest.
$ac_ext <<_ACEOF
21346 /* end confdefs.h. */
21348 extern char **environ;
21352 for (to = from = environ; (*to = *from); from++)
21353 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21356 char TZ_GMT0[] = "TZ=GMT0";
21357 char TZ_PST8[] = "TZ=PST8";
21360 time_t now = time ((time_t *) 0);
21361 int hour_GMT0, hour_unset;
21362 if (putenv (TZ_GMT0) != 0)
21364 hour_GMT0 = localtime (&now)->tm_hour;
21366 hour_unset = localtime (&now)->tm_hour;
21367 if (putenv (TZ_PST8) != 0)
21369 if (localtime (&now)->tm_hour == hour_GMT0)
21372 if (localtime (&now)->tm_hour != hour_unset)
21377 rm -f conftest
$ac_exeext
21378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21379 (eval $ac_link) 2>&5
21381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21382 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21384 (eval $ac_try) 2>&5
21386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387 (exit $ac_status); }; }; then
21388 emacs_cv_localtime_cache
=no
21390 echo "$as_me: program exited with status $ac_status" >&5
21391 echo "$as_me: failed program was:" >&5
21392 sed 's/^/| /' conftest.
$ac_ext >&5
21394 ( exit $ac_status )
21395 emacs_cv_localtime_cache
=yes
21397 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21400 # If we lack tzset, report that localtime does not cache TZ,
21401 # since we can't invalidate the cache if we don't have tzset.
21402 emacs_cv_localtime_cache
=no
21405 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
21406 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
21407 if test $emacs_cv_localtime_cache = yes; then
21409 cat >>confdefs.h
<<\_ACEOF
21410 #define LOCALTIME_CACHE 1
21415 if test "x$HAVE_TIMEVAL" = xyes
; then
21417 for ac_func
in gettimeofday
21419 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21420 echo "$as_me:$LINENO: checking for $ac_func" >&5
21421 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21422 if eval "test \"\${$as_ac_var+set}\" = set"; then
21423 echo $ECHO_N "(cached) $ECHO_C" >&6
21425 cat >conftest.
$ac_ext <<_ACEOF
21428 cat confdefs.h
>>conftest.
$ac_ext
21429 cat >>conftest.
$ac_ext <<_ACEOF
21430 /* end confdefs.h. */
21431 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21433 #define $ac_func innocuous_$ac_func
21435 /* System header to define __stub macros and hopefully few prototypes,
21436 which can conflict with char $ac_func (); below.
21437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21438 <limits.h> exists even on freestanding compilers. */
21441 # include <limits.h>
21443 # include <assert.h>
21448 /* Override any gcc2 internal prototype to avoid an error. */
21453 /* We use char because int might match the return type of a gcc2
21454 builtin and then its argument prototype would still apply. */
21456 /* The GNU C library defines this for functions which it implements
21457 to always fail with ENOSYS. Some functions are actually named
21458 something starting with __ and the normal name is an alias. */
21459 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21462 char (*f) () = $ac_func;
21471 return f != $ac_func;
21476 rm -f conftest.
$ac_objext conftest
$ac_exeext
21477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21478 (eval $ac_link) 2>conftest.er1
21480 grep -v '^ *+' conftest.er1
>conftest.err
21482 cat conftest.err
>&5
21483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21484 (exit $ac_status); } &&
21485 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21487 (eval $ac_try) 2>&5
21489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490 (exit $ac_status); }; } &&
21491 { ac_try
='test -s conftest$ac_exeext'
21492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21493 (eval $ac_try) 2>&5
21495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496 (exit $ac_status); }; }; then
21497 eval "$as_ac_var=yes"
21499 echo "$as_me: failed program was:" >&5
21500 sed 's/^/| /' conftest.
$ac_ext >&5
21502 eval "$as_ac_var=no"
21504 rm -f conftest.err conftest.
$ac_objext \
21505 conftest
$ac_exeext conftest.
$ac_ext
21507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21508 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21509 if test `eval echo '${'$as_ac_var'}'` = yes; then
21510 cat >>confdefs.h
<<_ACEOF
21511 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21517 if test $ac_cv_func_gettimeofday = yes; then
21518 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
21519 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
21520 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21521 echo $ECHO_N "(cached) $ECHO_C" >&6
21523 cat >conftest.
$ac_ext <<_ACEOF
21526 cat confdefs.h
>>conftest.
$ac_ext
21527 cat >>conftest.
$ac_ext <<_ACEOF
21528 /* end confdefs.h. */
21530 #ifdef TIME_WITH_SYS_TIME
21531 #include <sys/time.h>
21534 #ifdef HAVE_SYS_TIME_H
21535 #include <sys/time.h>
21543 struct timeval time;
21544 gettimeofday (&time, 0);
21549 rm -f conftest.
$ac_objext
21550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21551 (eval $ac_compile) 2>conftest.er1
21553 grep -v '^ *+' conftest.er1
>conftest.err
21555 cat conftest.err
>&5
21556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557 (exit $ac_status); } &&
21558 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21560 (eval $ac_try) 2>&5
21562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21563 (exit $ac_status); }; } &&
21564 { ac_try
='test -s conftest.$ac_objext'
21565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21566 (eval $ac_try) 2>&5
21568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21569 (exit $ac_status); }; }; then
21570 emacs_cv_gettimeofday_two_arguments
=yes
21572 echo "$as_me: failed program was:" >&5
21573 sed 's/^/| /' conftest.
$ac_ext >&5
21575 emacs_cv_gettimeofday_two_arguments
=no
21577 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21579 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21580 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
21581 if test $emacs_cv_gettimeofday_two_arguments = no
; then
21583 cat >>confdefs.h
<<\_ACEOF
21584 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21591 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
21592 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21593 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21594 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21595 echo $ECHO_N "(cached) $ECHO_C" >&6
21597 cat >conftest.
$ac_ext <<_ACEOF
21600 cat confdefs.h
>>conftest.
$ac_ext
21601 cat >>conftest.
$ac_ext <<_ACEOF
21602 /* end confdefs.h. */
21603 #include <sys/types.h>
21604 #include <$ac_cv_struct_tm>
21610 static struct tm ac_aggr;
21611 if (ac_aggr.tm_zone)
21617 rm -f conftest.
$ac_objext
21618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21619 (eval $ac_compile) 2>conftest.er1
21621 grep -v '^ *+' conftest.er1
>conftest.err
21623 cat conftest.err
>&5
21624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21625 (exit $ac_status); } &&
21626 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21628 (eval $ac_try) 2>&5
21630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21631 (exit $ac_status); }; } &&
21632 { ac_try
='test -s conftest.$ac_objext'
21633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21634 (eval $ac_try) 2>&5
21636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637 (exit $ac_status); }; }; then
21638 ac_cv_member_struct_tm_tm_zone
=yes
21640 echo "$as_me: failed program was:" >&5
21641 sed 's/^/| /' conftest.
$ac_ext >&5
21643 cat >conftest.
$ac_ext <<_ACEOF
21646 cat confdefs.h
>>conftest.
$ac_ext
21647 cat >>conftest.
$ac_ext <<_ACEOF
21648 /* end confdefs.h. */
21649 #include <sys/types.h>
21650 #include <$ac_cv_struct_tm>
21656 static struct tm ac_aggr;
21657 if (sizeof ac_aggr.tm_zone)
21663 rm -f conftest.
$ac_objext
21664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21665 (eval $ac_compile) 2>conftest.er1
21667 grep -v '^ *+' conftest.er1
>conftest.err
21669 cat conftest.err
>&5
21670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671 (exit $ac_status); } &&
21672 { ac_try
='test -z "$ac_c_werror_flag" || 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_cv_member_struct_tm_tm_zone
=yes
21686 echo "$as_me: failed program was:" >&5
21687 sed 's/^/| /' conftest.
$ac_ext >&5
21689 ac_cv_member_struct_tm_tm_zone
=no
21691 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21693 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21695 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21696 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21697 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21699 cat >>confdefs.h
<<_ACEOF
21700 #define HAVE_STRUCT_TM_TM_ZONE 1
21706 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21708 cat >>confdefs.h
<<\_ACEOF
21709 #define HAVE_TM_ZONE 1
21713 echo "$as_me:$LINENO: checking for tzname" >&5
21714 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21715 if test "${ac_cv_var_tzname+set}" = set; then
21716 echo $ECHO_N "(cached) $ECHO_C" >&6
21718 cat >conftest.
$ac_ext <<_ACEOF
21721 cat confdefs.h
>>conftest.
$ac_ext
21722 cat >>conftest.
$ac_ext <<_ACEOF
21723 /* end confdefs.h. */
21725 #ifndef tzname /* For SGI. */
21726 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21737 rm -f conftest.
$ac_objext conftest
$ac_exeext
21738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21739 (eval $ac_link) 2>conftest.er1
21741 grep -v '^ *+' conftest.er1
>conftest.err
21743 cat conftest.err
>&5
21744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21745 (exit $ac_status); } &&
21746 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21748 (eval $ac_try) 2>&5
21750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751 (exit $ac_status); }; } &&
21752 { ac_try
='test -s conftest$ac_exeext'
21753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21754 (eval $ac_try) 2>&5
21756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757 (exit $ac_status); }; }; then
21758 ac_cv_var_tzname
=yes
21760 echo "$as_me: failed program was:" >&5
21761 sed 's/^/| /' conftest.
$ac_ext >&5
21763 ac_cv_var_tzname
=no
21765 rm -f conftest.err conftest.
$ac_objext \
21766 conftest
$ac_exeext conftest.
$ac_ext
21768 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21769 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21770 if test $ac_cv_var_tzname = yes; then
21772 cat >>confdefs.h
<<\_ACEOF
21773 #define HAVE_TZNAME 1
21780 if test "$ac_cv_func_gettimeofday" = yes; then
21781 echo "$as_me:$LINENO: checking for struct timezone" >&5
21782 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
21783 if test "${emacs_cv_struct_timezone+set}" = set; then
21784 echo $ECHO_N "(cached) $ECHO_C" >&6
21786 cat >conftest.
$ac_ext <<_ACEOF
21789 cat confdefs.h
>>conftest.
$ac_ext
21790 cat >>conftest.
$ac_ext <<_ACEOF
21791 /* end confdefs.h. */
21792 #include <sys/time.h>
21796 struct timezone tz;
21801 rm -f conftest.
$ac_objext
21802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21803 (eval $ac_compile) 2>conftest.er1
21805 grep -v '^ *+' conftest.er1
>conftest.err
21807 cat conftest.err
>&5
21808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21809 (exit $ac_status); } &&
21810 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21812 (eval $ac_try) 2>&5
21814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815 (exit $ac_status); }; } &&
21816 { ac_try
='test -s conftest.$ac_objext'
21817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21818 (eval $ac_try) 2>&5
21820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21821 (exit $ac_status); }; }; then
21822 if test "$cross_compiling" = yes; then
21823 emacs_cv_struct_timezone
=yes
21825 cat >conftest.
$ac_ext <<_ACEOF
21828 cat confdefs.h
>>conftest.
$ac_ext
21829 cat >>conftest.
$ac_ext <<_ACEOF
21830 /* end confdefs.h. */
21832 #ifdef TIME_WITH_SYS_TIME
21833 #include <sys/time.h>
21836 #ifdef HAVE_SYS_TIME_H
21837 #include <sys/time.h>
21843 struct timeval time;
21844 struct timezone dummy;
21845 exit (gettimeofday (&time, &dummy));
21848 rm -f conftest
$ac_exeext
21849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21850 (eval $ac_link) 2>&5
21852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21855 (eval $ac_try) 2>&5
21857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21858 (exit $ac_status); }; }; then
21859 emacs_cv_struct_timezone
=yes
21861 echo "$as_me: program exited with status $ac_status" >&5
21862 echo "$as_me: failed program was:" >&5
21863 sed 's/^/| /' conftest.
$ac_ext >&5
21865 ( exit $ac_status )
21866 emacs_cv_struct_timezone
=no
21868 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21871 echo "$as_me: failed program was:" >&5
21872 sed 's/^/| /' conftest.
$ac_ext >&5
21874 emacs_cv_struct_timezone
=no
21876 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21878 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
21879 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
21883 echo "$as_me:$LINENO: checking for socket" >&5
21884 echo $ECHO_N "checking for socket... $ECHO_C" >&6
21885 if test "${ac_cv_func_socket+set}" = set; then
21886 echo $ECHO_N "(cached) $ECHO_C" >&6
21888 cat >conftest.
$ac_ext <<_ACEOF
21891 cat confdefs.h
>>conftest.
$ac_ext
21892 cat >>conftest.
$ac_ext <<_ACEOF
21893 /* end confdefs.h. */
21894 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21896 #define socket innocuous_socket
21898 /* System header to define __stub macros and hopefully few prototypes,
21899 which can conflict with char socket (); below.
21900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21901 <limits.h> exists even on freestanding compilers. */
21904 # include <limits.h>
21906 # include <assert.h>
21911 /* Override any gcc2 internal prototype to avoid an error. */
21916 /* We use char because int might match the return type of a gcc2
21917 builtin and then its argument prototype would still apply. */
21919 /* The GNU C library defines this for functions which it implements
21920 to always fail with ENOSYS. Some functions are actually named
21921 something starting with __ and the normal name is an alias. */
21922 #if defined (__stub_socket) || defined (__stub___socket)
21925 char (*f) () = socket;
21934 return f != socket;
21939 rm -f conftest.
$ac_objext conftest
$ac_exeext
21940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21941 (eval $ac_link) 2>conftest.er1
21943 grep -v '^ *+' conftest.er1
>conftest.err
21945 cat conftest.err
>&5
21946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21947 (exit $ac_status); } &&
21948 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21950 (eval $ac_try) 2>&5
21952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21953 (exit $ac_status); }; } &&
21954 { ac_try
='test -s conftest$ac_exeext'
21955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21956 (eval $ac_try) 2>&5
21958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21959 (exit $ac_status); }; }; then
21960 ac_cv_func_socket
=yes
21962 echo "$as_me: failed program was:" >&5
21963 sed 's/^/| /' conftest.
$ac_ext >&5
21965 ac_cv_func_socket
=no
21967 rm -f conftest.err conftest.
$ac_objext \
21968 conftest
$ac_exeext conftest.
$ac_ext
21970 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21971 echo "${ECHO_T}$ac_cv_func_socket" >&6
21972 if test $ac_cv_func_socket = yes; then
21978 if test $ok_so_far = yes; then
21979 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21980 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21981 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21982 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21983 echo $ECHO_N "(cached) $ECHO_C" >&6
21985 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21986 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21988 # Is the header compilable?
21989 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21990 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
21991 cat >conftest.
$ac_ext <<_ACEOF
21994 cat confdefs.h
>>conftest.
$ac_ext
21995 cat >>conftest.
$ac_ext <<_ACEOF
21996 /* end confdefs.h. */
21997 $ac_includes_default
21998 #include <netinet/in.h>
22000 rm -f conftest.
$ac_objext
22001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22002 (eval $ac_compile) 2>conftest.er1
22004 grep -v '^ *+' conftest.er1
>conftest.err
22006 cat conftest.err
>&5
22007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22008 (exit $ac_status); } &&
22009 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22011 (eval $ac_try) 2>&5
22013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22014 (exit $ac_status); }; } &&
22015 { ac_try
='test -s conftest.$ac_objext'
22016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22017 (eval $ac_try) 2>&5
22019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020 (exit $ac_status); }; }; then
22021 ac_header_compiler
=yes
22023 echo "$as_me: failed program was:" >&5
22024 sed 's/^/| /' conftest.
$ac_ext >&5
22026 ac_header_compiler
=no
22028 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22029 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22030 echo "${ECHO_T}$ac_header_compiler" >&6
22032 # Is the header present?
22033 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22034 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
22035 cat >conftest.
$ac_ext <<_ACEOF
22038 cat confdefs.h
>>conftest.
$ac_ext
22039 cat >>conftest.
$ac_ext <<_ACEOF
22040 /* end confdefs.h. */
22041 #include <netinet/in.h>
22043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22044 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
22046 grep -v '^ *+' conftest.er1
>conftest.err
22048 cat conftest.err
>&5
22049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050 (exit $ac_status); } >/dev
/null
; then
22051 if test -s conftest.err
; then
22052 ac_cpp_err
=$ac_c_preproc_warn_flag
22053 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
22060 if test -z "$ac_cpp_err"; then
22061 ac_header_preproc
=yes
22063 echo "$as_me: failed program was:" >&5
22064 sed 's/^/| /' conftest.
$ac_ext >&5
22066 ac_header_preproc
=no
22068 rm -f conftest.err conftest.
$ac_ext
22069 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22070 echo "${ECHO_T}$ac_header_preproc" >&6
22072 # So? What about this header?
22073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22075 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22076 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22077 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22078 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22079 ac_header_preproc
=yes
22082 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22083 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22084 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22085 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22086 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22087 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22088 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22089 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22090 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22091 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22092 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22093 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22096 ## ------------------------------------------ ##
22097 ## Report this to the AC_PACKAGE_NAME lists. ##
22098 ## ------------------------------------------ ##
22101 sed "s/^/$as_me: WARNING: /" >&2
22104 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22105 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
22106 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22107 echo $ECHO_N "(cached) $ECHO_C" >&6
22109 ac_cv_header_netinet_in_h
=$ac_header_preproc
22111 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22112 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
22115 if test $ac_cv_header_netinet_in_h = yes; then
22123 if test $ok_so_far = yes; then
22124 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22125 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22126 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
22127 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22128 echo $ECHO_N "(cached) $ECHO_C" >&6
22130 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22131 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
22133 # Is the header compilable?
22134 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22135 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
22136 cat >conftest.
$ac_ext <<_ACEOF
22139 cat confdefs.h
>>conftest.
$ac_ext
22140 cat >>conftest.
$ac_ext <<_ACEOF
22141 /* end confdefs.h. */
22142 $ac_includes_default
22143 #include <arpa/inet.h>
22145 rm -f conftest.
$ac_objext
22146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22147 (eval $ac_compile) 2>conftest.er1
22149 grep -v '^ *+' conftest.er1
>conftest.err
22151 cat conftest.err
>&5
22152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22153 (exit $ac_status); } &&
22154 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22156 (eval $ac_try) 2>&5
22158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22159 (exit $ac_status); }; } &&
22160 { ac_try
='test -s conftest.$ac_objext'
22161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22162 (eval $ac_try) 2>&5
22164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22165 (exit $ac_status); }; }; then
22166 ac_header_compiler
=yes
22168 echo "$as_me: failed program was:" >&5
22169 sed 's/^/| /' conftest.
$ac_ext >&5
22171 ac_header_compiler
=no
22173 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22174 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22175 echo "${ECHO_T}$ac_header_compiler" >&6
22177 # Is the header present?
22178 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22179 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
22180 cat >conftest.
$ac_ext <<_ACEOF
22183 cat confdefs.h
>>conftest.
$ac_ext
22184 cat >>conftest.
$ac_ext <<_ACEOF
22185 /* end confdefs.h. */
22186 #include <arpa/inet.h>
22188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22189 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
22191 grep -v '^ *+' conftest.er1
>conftest.err
22193 cat conftest.err
>&5
22194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22195 (exit $ac_status); } >/dev
/null
; then
22196 if test -s conftest.err
; then
22197 ac_cpp_err
=$ac_c_preproc_warn_flag
22198 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
22205 if test -z "$ac_cpp_err"; then
22206 ac_header_preproc
=yes
22208 echo "$as_me: failed program was:" >&5
22209 sed 's/^/| /' conftest.
$ac_ext >&5
22211 ac_header_preproc
=no
22213 rm -f conftest.err conftest.
$ac_ext
22214 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22215 echo "${ECHO_T}$ac_header_preproc" >&6
22217 # So? What about this header?
22218 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22220 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22221 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22222 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22223 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22224 ac_header_preproc
=yes
22227 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22228 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22229 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22230 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22231 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22232 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22233 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22234 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22235 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22236 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22237 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22238 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22241 ## ------------------------------------------ ##
22242 ## Report this to the AC_PACKAGE_NAME lists. ##
22243 ## ------------------------------------------ ##
22246 sed "s/^/$as_me: WARNING: /" >&2
22249 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22250 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
22251 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22252 echo $ECHO_N "(cached) $ECHO_C" >&6
22254 ac_cv_header_arpa_inet_h
=$ac_header_preproc
22256 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22257 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
22260 if test $ac_cv_header_arpa_inet_h = yes; then
22268 if test $ok_so_far = yes; then
22270 cat >>confdefs.h
<<\_ACEOF
22271 #define HAVE_INET_SOCKETS 1
22277 for ac_header
in sys
/ioctl.h
22279 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22280 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22281 echo "$as_me:$LINENO: checking for $ac_header" >&5
22282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22284 echo $ECHO_N "(cached) $ECHO_C" >&6
22286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22289 # Is the header compilable?
22290 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22291 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22292 cat >conftest.
$ac_ext <<_ACEOF
22295 cat confdefs.h
>>conftest.
$ac_ext
22296 cat >>conftest.
$ac_ext <<_ACEOF
22297 /* end confdefs.h. */
22298 $ac_includes_default
22299 #include <$ac_header>
22301 rm -f conftest.
$ac_objext
22302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22303 (eval $ac_compile) 2>conftest.er1
22305 grep -v '^ *+' conftest.er1
>conftest.err
22307 cat conftest.err
>&5
22308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22309 (exit $ac_status); } &&
22310 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22312 (eval $ac_try) 2>&5
22314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22315 (exit $ac_status); }; } &&
22316 { ac_try
='test -s conftest.$ac_objext'
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_header_compiler
=yes
22324 echo "$as_me: failed program was:" >&5
22325 sed 's/^/| /' conftest.
$ac_ext >&5
22327 ac_header_compiler
=no
22329 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22330 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22331 echo "${ECHO_T}$ac_header_compiler" >&6
22333 # Is the header present?
22334 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22335 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22336 cat >conftest.
$ac_ext <<_ACEOF
22339 cat confdefs.h
>>conftest.
$ac_ext
22340 cat >>conftest.
$ac_ext <<_ACEOF
22341 /* end confdefs.h. */
22342 #include <$ac_header>
22344 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22345 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
22347 grep -v '^ *+' conftest.er1
>conftest.err
22349 cat conftest.err
>&5
22350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22351 (exit $ac_status); } >/dev
/null
; then
22352 if test -s conftest.err
; then
22353 ac_cpp_err
=$ac_c_preproc_warn_flag
22354 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
22361 if test -z "$ac_cpp_err"; then
22362 ac_header_preproc
=yes
22364 echo "$as_me: failed program was:" >&5
22365 sed 's/^/| /' conftest.
$ac_ext >&5
22367 ac_header_preproc
=no
22369 rm -f conftest.err conftest.
$ac_ext
22370 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22371 echo "${ECHO_T}$ac_header_preproc" >&6
22373 # So? What about this header?
22374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22376 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22377 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22378 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22379 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22380 ac_header_preproc
=yes
22383 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22384 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22385 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22386 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22387 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22388 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22389 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22390 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22392 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22393 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22394 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22397 ## ------------------------------------------ ##
22398 ## Report this to the AC_PACKAGE_NAME lists. ##
22399 ## ------------------------------------------ ##
22402 sed "s/^/$as_me: WARNING: /" >&2
22405 echo "$as_me:$LINENO: checking for $ac_header" >&5
22406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22408 echo $ECHO_N "(cached) $ECHO_C" >&6
22410 eval "$as_ac_Header=\$ac_header_preproc"
22412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22413 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22416 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22417 cat >>confdefs.h
<<_ACEOF
22418 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22426 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
22428 cat >>confdefs.h
<<\_ACEOF
22429 #define HAVE_AIX_SMT_EXP 1
22434 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22435 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
22436 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
22437 echo "$as_me:$LINENO: result: yes" >&5
22438 echo "${ECHO_T}yes" >&6
22440 cat >>confdefs.h
<<\_ACEOF
22441 #define HAVE_DEV_PTMX 1
22445 echo "$as_me:$LINENO: result: no" >&5
22446 echo "${ECHO_T}no" >&6
22449 echo "$as_me:$LINENO: checking for pid_t" >&5
22450 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22451 if test "${ac_cv_type_pid_t+set}" = set; then
22452 echo $ECHO_N "(cached) $ECHO_C" >&6
22454 cat >conftest.
$ac_ext <<_ACEOF
22457 cat confdefs.h
>>conftest.
$ac_ext
22458 cat >>conftest.
$ac_ext <<_ACEOF
22459 /* end confdefs.h. */
22460 $ac_includes_default
22466 if (sizeof (pid_t))
22472 rm -f conftest.
$ac_objext
22473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22474 (eval $ac_compile) 2>conftest.er1
22476 grep -v '^ *+' conftest.er1
>conftest.err
22478 cat conftest.err
>&5
22479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22480 (exit $ac_status); } &&
22481 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22483 (eval $ac_try) 2>&5
22485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22486 (exit $ac_status); }; } &&
22487 { ac_try
='test -s conftest.$ac_objext'
22488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22489 (eval $ac_try) 2>&5
22491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22492 (exit $ac_status); }; }; then
22493 ac_cv_type_pid_t
=yes
22495 echo "$as_me: failed program was:" >&5
22496 sed 's/^/| /' conftest.
$ac_ext >&5
22498 ac_cv_type_pid_t
=no
22500 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22502 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22503 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22504 if test $ac_cv_type_pid_t = yes; then
22508 cat >>confdefs.h
<<_ACEOF
22516 for ac_header
in unistd.h vfork.h
22518 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22520 echo "$as_me:$LINENO: checking for $ac_header" >&5
22521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22523 echo $ECHO_N "(cached) $ECHO_C" >&6
22525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22526 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22528 # Is the header compilable?
22529 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22530 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22531 cat >conftest.
$ac_ext <<_ACEOF
22534 cat confdefs.h
>>conftest.
$ac_ext
22535 cat >>conftest.
$ac_ext <<_ACEOF
22536 /* end confdefs.h. */
22537 $ac_includes_default
22538 #include <$ac_header>
22540 rm -f conftest.
$ac_objext
22541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22542 (eval $ac_compile) 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" || test ! -s conftest.err'
22550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22551 (eval $ac_try) 2>&5
22553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22554 (exit $ac_status); }; } &&
22555 { ac_try
='test -s conftest.$ac_objext'
22556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22557 (eval $ac_try) 2>&5
22559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22560 (exit $ac_status); }; }; then
22561 ac_header_compiler
=yes
22563 echo "$as_me: failed program was:" >&5
22564 sed 's/^/| /' conftest.
$ac_ext >&5
22566 ac_header_compiler
=no
22568 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22569 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22570 echo "${ECHO_T}$ac_header_compiler" >&6
22572 # Is the header present?
22573 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22574 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22575 cat >conftest.
$ac_ext <<_ACEOF
22578 cat confdefs.h
>>conftest.
$ac_ext
22579 cat >>conftest.
$ac_ext <<_ACEOF
22580 /* end confdefs.h. */
22581 #include <$ac_header>
22583 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22584 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
22586 grep -v '^ *+' conftest.er1
>conftest.err
22588 cat conftest.err
>&5
22589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22590 (exit $ac_status); } >/dev
/null
; then
22591 if test -s conftest.err
; then
22592 ac_cpp_err
=$ac_c_preproc_warn_flag
22593 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
22600 if test -z "$ac_cpp_err"; then
22601 ac_header_preproc
=yes
22603 echo "$as_me: failed program was:" >&5
22604 sed 's/^/| /' conftest.
$ac_ext >&5
22606 ac_header_preproc
=no
22608 rm -f conftest.err conftest.
$ac_ext
22609 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22610 echo "${ECHO_T}$ac_header_preproc" >&6
22612 # So? What about this header?
22613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22615 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22616 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22618 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22619 ac_header_preproc
=yes
22622 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22623 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22624 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22625 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22626 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22627 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22628 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22629 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22631 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22632 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22633 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22636 ## ------------------------------------------ ##
22637 ## Report this to the AC_PACKAGE_NAME lists. ##
22638 ## ------------------------------------------ ##
22641 sed "s/^/$as_me: WARNING: /" >&2
22644 echo "$as_me:$LINENO: checking for $ac_header" >&5
22645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22647 echo $ECHO_N "(cached) $ECHO_C" >&6
22649 eval "$as_ac_Header=\$ac_header_preproc"
22651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22656 cat >>confdefs.h
<<_ACEOF
22657 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22666 for ac_func
in fork vfork
22668 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22669 echo "$as_me:$LINENO: checking for $ac_func" >&5
22670 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22671 if eval "test \"\${$as_ac_var+set}\" = set"; then
22672 echo $ECHO_N "(cached) $ECHO_C" >&6
22674 cat >conftest.
$ac_ext <<_ACEOF
22677 cat confdefs.h
>>conftest.
$ac_ext
22678 cat >>conftest.
$ac_ext <<_ACEOF
22679 /* end confdefs.h. */
22680 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22681 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22682 #define $ac_func innocuous_$ac_func
22684 /* System header to define __stub macros and hopefully few prototypes,
22685 which can conflict with char $ac_func (); below.
22686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22687 <limits.h> exists even on freestanding compilers. */
22690 # include <limits.h>
22692 # include <assert.h>
22697 /* Override any gcc2 internal prototype to avoid an error. */
22702 /* We use char because int might match the return type of a gcc2
22703 builtin and then its argument prototype would still apply. */
22705 /* The GNU C library defines this for functions which it implements
22706 to always fail with ENOSYS. Some functions are actually named
22707 something starting with __ and the normal name is an alias. */
22708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22711 char (*f) () = $ac_func;
22720 return f != $ac_func;
22725 rm -f conftest.
$ac_objext conftest
$ac_exeext
22726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22727 (eval $ac_link) 2>conftest.er1
22729 grep -v '^ *+' conftest.er1
>conftest.err
22731 cat conftest.err
>&5
22732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22733 (exit $ac_status); } &&
22734 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22736 (eval $ac_try) 2>&5
22738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22739 (exit $ac_status); }; } &&
22740 { ac_try
='test -s conftest$ac_exeext'
22741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22742 (eval $ac_try) 2>&5
22744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22745 (exit $ac_status); }; }; then
22746 eval "$as_ac_var=yes"
22748 echo "$as_me: failed program was:" >&5
22749 sed 's/^/| /' conftest.
$ac_ext >&5
22751 eval "$as_ac_var=no"
22753 rm -f conftest.err conftest.
$ac_objext \
22754 conftest
$ac_exeext conftest.
$ac_ext
22756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22757 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22758 if test `eval echo '${'$as_ac_var'}'` = yes; then
22759 cat >>confdefs.h
<<_ACEOF
22760 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22766 if test "x$ac_cv_func_fork" = xyes
; then
22767 echo "$as_me:$LINENO: checking for working fork" >&5
22768 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
22769 if test "${ac_cv_func_fork_works+set}" = set; then
22770 echo $ECHO_N "(cached) $ECHO_C" >&6
22772 if test "$cross_compiling" = yes; then
22773 ac_cv_func_fork_works
=cross
22775 cat >conftest.
$ac_ext <<_ACEOF
22776 /* By Ruediger Kuhlmann. */
22777 #include <sys/types.h>
22779 # include <unistd.h>
22781 /* Some systems only have a dummy stub for fork() */
22789 rm -f conftest
$ac_exeext
22790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22791 (eval $ac_link) 2>&5
22793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22794 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22796 (eval $ac_try) 2>&5
22798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22799 (exit $ac_status); }; }; then
22800 ac_cv_func_fork_works
=yes
22802 echo "$as_me: program exited with status $ac_status" >&5
22803 echo "$as_me: failed program was:" >&5
22804 sed 's/^/| /' conftest.
$ac_ext >&5
22806 ( exit $ac_status )
22807 ac_cv_func_fork_works
=no
22809 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22812 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22813 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
22816 ac_cv_func_fork_works
=$ac_cv_func_fork
22818 if test "x$ac_cv_func_fork_works" = xcross
; then
22820 *-*-amigaos* |
*-*-msdosdjgpp*)
22821 # Override, as these systems have only a dummy fork() stub
22822 ac_cv_func_fork_works
=no
22825 ac_cv_func_fork_works
=yes
22828 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22829 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22831 ac_cv_func_vfork_works
=$ac_cv_func_vfork
22832 if test "x$ac_cv_func_vfork" = xyes
; then
22833 echo "$as_me:$LINENO: checking for working vfork" >&5
22834 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
22835 if test "${ac_cv_func_vfork_works+set}" = set; then
22836 echo $ECHO_N "(cached) $ECHO_C" >&6
22838 if test "$cross_compiling" = yes; then
22839 ac_cv_func_vfork_works
=cross
22841 cat >conftest.
$ac_ext <<_ACEOF
22844 cat confdefs.h
>>conftest.
$ac_ext
22845 cat >>conftest.
$ac_ext <<_ACEOF
22846 /* end confdefs.h. */
22847 /* Thanks to Paul Eggert for this test. */
22849 #include <stdlib.h>
22850 #include <sys/types.h>
22851 #include <sys/stat.h>
22852 #include <sys/wait.h>
22854 # include <unistd.h>
22857 # include <vfork.h>
22859 /* On some sparc systems, changes by the child to local and incoming
22860 argument registers are propagated back to the parent. The compiler
22861 is told about this with #include <vfork.h>, but some compilers
22862 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22863 static variable whose address is put into a register that is
22864 clobbered by the vfork. */
22867 sparc_address_test (int arg)
22869 sparc_address_test (arg) int arg;
22872 static pid_t child;
22890 pid_t parent = getpid ();
22893 sparc_address_test (0);
22898 /* Here is another test for sparc vfork register problems. This
22899 test uses lots of local variables, at least as many local
22900 variables as main has allocated so far including compiler
22901 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22902 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22903 reuse the register of parent for one of the local variables,
22904 since it will think that parent can't possibly be used any more
22905 in this routine. Assigning to the local variable will thus
22906 munge parent in the parent process. */
22908 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22909 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22910 /* Convince the compiler that p..p7 are live; otherwise, it might
22911 use the same hardware register for all 8 local variables. */
22912 if (p != p1 || p != p2 || p != p3 || p != p4
22913 || p != p5 || p != p6 || p != p7)
22916 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22917 from child file descriptors. If the child closes a descriptor
22918 before it execs or exits, this munges the parent's descriptor
22919 as well. Test for this by closing stdout in the child. */
22920 _exit(close(fileno(stdout)) != 0);
22925 while (wait(&status) != child)
22928 /* Was there some problem with vforking? */
22931 /* Did the child fail? (This shouldn't happen.) */
22934 /* Did the vfork/compiler bug occur? */
22935 || parent != getpid()
22937 /* Did the file descriptor bug occur? */
22938 || fstat(fileno(stdout), &st) != 0
22943 rm -f conftest
$ac_exeext
22944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22945 (eval $ac_link) 2>&5
22947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22950 (eval $ac_try) 2>&5
22952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22953 (exit $ac_status); }; }; then
22954 ac_cv_func_vfork_works
=yes
22956 echo "$as_me: program exited with status $ac_status" >&5
22957 echo "$as_me: failed program was:" >&5
22958 sed 's/^/| /' conftest.
$ac_ext >&5
22960 ( exit $ac_status )
22961 ac_cv_func_vfork_works
=no
22963 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22966 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22967 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
22970 if test "x$ac_cv_func_fork_works" = xcross
; then
22971 ac_cv_func_vfork_works
=$ac_cv_func_vfork
22972 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22973 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22976 if test "x$ac_cv_func_vfork_works" = xyes
; then
22978 cat >>confdefs.h
<<\_ACEOF
22979 #define HAVE_WORKING_VFORK 1
22984 cat >>confdefs.h
<<\_ACEOF
22989 if test "x$ac_cv_func_fork_works" = xyes
; then
22991 cat >>confdefs.h
<<\_ACEOF
22992 #define HAVE_WORKING_FORK 1
22998 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22999 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
23000 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23001 echo $ECHO_N "(cached) $ECHO_C" >&6
23003 cat >conftest.
$ac_ext <<_ACEOF
23006 cat confdefs.h
>>conftest.
$ac_ext
23007 cat >>conftest.
$ac_ext <<_ACEOF
23008 /* end confdefs.h. */
23009 #include <langinfo.h>
23013 char* cs = nl_langinfo(CODESET);
23018 rm -f conftest.
$ac_objext conftest
$ac_exeext
23019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23020 (eval $ac_link) 2>conftest.er1
23022 grep -v '^ *+' conftest.er1
>conftest.err
23024 cat conftest.err
>&5
23025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23026 (exit $ac_status); } &&
23027 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23029 (eval $ac_try) 2>&5
23031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23032 (exit $ac_status); }; } &&
23033 { ac_try
='test -s conftest$ac_exeext'
23034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23035 (eval $ac_try) 2>&5
23037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038 (exit $ac_status); }; }; then
23039 emacs_cv_langinfo_codeset
=yes
23041 echo "$as_me: failed program was:" >&5
23042 sed 's/^/| /' conftest.
$ac_ext >&5
23044 emacs_cv_langinfo_codeset
=no
23046 rm -f conftest.err conftest.
$ac_objext \
23047 conftest
$ac_exeext conftest.
$ac_ext
23050 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23051 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
23052 if test $emacs_cv_langinfo_codeset = yes; then
23054 cat >>confdefs.h
<<\_ACEOF
23055 #define HAVE_LANGINFO_CODESET 1
23060 echo "$as_me:$LINENO: checking for size_t" >&5
23061 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
23062 if test "${ac_cv_type_size_t+set}" = set; then
23063 echo $ECHO_N "(cached) $ECHO_C" >&6
23065 cat >conftest.
$ac_ext <<_ACEOF
23068 cat confdefs.h
>>conftest.
$ac_ext
23069 cat >>conftest.
$ac_ext <<_ACEOF
23070 /* end confdefs.h. */
23071 $ac_includes_default
23077 if (sizeof (size_t))
23083 rm -f conftest.
$ac_objext
23084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23085 (eval $ac_compile) 2>conftest.er1
23087 grep -v '^ *+' conftest.er1
>conftest.err
23089 cat conftest.err
>&5
23090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23091 (exit $ac_status); } &&
23092 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23094 (eval $ac_try) 2>&5
23096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23097 (exit $ac_status); }; } &&
23098 { ac_try
='test -s conftest.$ac_objext'
23099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23100 (eval $ac_try) 2>&5
23102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23103 (exit $ac_status); }; }; then
23104 ac_cv_type_size_t
=yes
23106 echo "$as_me: failed program was:" >&5
23107 sed 's/^/| /' conftest.
$ac_ext >&5
23109 ac_cv_type_size_t
=no
23111 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
23113 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23114 echo "${ECHO_T}$ac_cv_type_size_t" >&6
23115 if test $ac_cv_type_size_t = yes; then
23117 cat >>confdefs.h
<<_ACEOF
23118 #define HAVE_SIZE_T 1
23125 echo "$as_me:$LINENO: checking for mbstate_t" >&5
23126 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
23127 if test "${ac_cv_type_mbstate_t+set}" = set; then
23128 echo $ECHO_N "(cached) $ECHO_C" >&6
23130 cat >conftest.
$ac_ext <<_ACEOF
23133 cat confdefs.h
>>conftest.
$ac_ext
23134 cat >>conftest.
$ac_ext <<_ACEOF
23135 /* end confdefs.h. */
23136 $ac_includes_default
23137 # include <wchar.h>
23141 mbstate_t x; return sizeof x;
23146 rm -f conftest.
$ac_objext
23147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23148 (eval $ac_compile) 2>conftest.er1
23150 grep -v '^ *+' conftest.er1
>conftest.err
23152 cat conftest.err
>&5
23153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154 (exit $ac_status); } &&
23155 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23157 (eval $ac_try) 2>&5
23159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23160 (exit $ac_status); }; } &&
23161 { ac_try
='test -s conftest.$ac_objext'
23162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23163 (eval $ac_try) 2>&5
23165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23166 (exit $ac_status); }; }; then
23167 ac_cv_type_mbstate_t
=yes
23169 echo "$as_me: failed program was:" >&5
23170 sed 's/^/| /' conftest.
$ac_ext >&5
23172 ac_cv_type_mbstate_t
=no
23174 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
23176 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23177 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
23178 if test $ac_cv_type_mbstate_t = yes; then
23180 cat >>confdefs.h
<<\_ACEOF
23181 #define HAVE_MBSTATE_T 1
23186 cat >>confdefs.h
<<\_ACEOF
23187 #define mbstate_t int
23192 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23193 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
23194 if test "${emacs_cv_c_restrict+set}" = set; then
23195 echo $ECHO_N "(cached) $ECHO_C" >&6
23197 cat >conftest.
$ac_ext <<_ACEOF
23200 cat confdefs.h
>>conftest.
$ac_ext
23201 cat >>conftest.
$ac_ext <<_ACEOF
23202 /* end confdefs.h. */
23203 void fred (int *restrict x);
23212 rm -f conftest.
$ac_objext
23213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23214 (eval $ac_compile) 2>conftest.er1
23216 grep -v '^ *+' conftest.er1
>conftest.err
23218 cat conftest.err
>&5
23219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220 (exit $ac_status); } &&
23221 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23223 (eval $ac_try) 2>&5
23225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23226 (exit $ac_status); }; } &&
23227 { ac_try
='test -s conftest.$ac_objext'
23228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23229 (eval $ac_try) 2>&5
23231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23232 (exit $ac_status); }; }; then
23233 emacs_cv_c_restrict
=yes
23235 echo "$as_me: failed program was:" >&5
23236 sed 's/^/| /' conftest.
$ac_ext >&5
23238 cat >conftest.
$ac_ext <<_ACEOF
23241 cat confdefs.h
>>conftest.
$ac_ext
23242 cat >>conftest.
$ac_ext <<_ACEOF
23243 /* end confdefs.h. */
23244 void fred (int *__restrict x);
23253 rm -f conftest.
$ac_objext
23254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23255 (eval $ac_compile) 2>conftest.er1
23257 grep -v '^ *+' conftest.er1
>conftest.err
23259 cat conftest.err
>&5
23260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23261 (exit $ac_status); } &&
23262 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23264 (eval $ac_try) 2>&5
23266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267 (exit $ac_status); }; } &&
23268 { ac_try
='test -s conftest.$ac_objext'
23269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23270 (eval $ac_try) 2>&5
23272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273 (exit $ac_status); }; }; then
23274 emacs_cv_c_restrict
=__restrict
23276 echo "$as_me: failed program was:" >&5
23277 sed 's/^/| /' conftest.
$ac_ext >&5
23279 emacs_cv_c_restrict
=no
23281 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
23283 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
23285 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23286 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
23287 case "$emacs_cv_c_restrict" in
23288 yes) emacs_restrict
=restrict
;;
23289 no
) emacs_restrict
="";;
23290 *) emacs_restrict
="$emacs_cv_c_restrict";;
23292 if test "$emacs_restrict" != __restrict
; then
23294 cat >>confdefs.h
<<_ACEOF
23295 #define __restrict $emacs_restrict
23300 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23301 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
23302 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23303 echo $ECHO_N "(cached) $ECHO_C" >&6
23305 cat >conftest.
$ac_ext <<_ACEOF
23308 cat confdefs.h
>>conftest.
$ac_ext
23309 cat >>conftest.
$ac_ext <<_ACEOF
23310 /* end confdefs.h. */
23311 void fred (int x[__restrict]);
23320 rm -f conftest.
$ac_objext
23321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23322 (eval $ac_compile) 2>conftest.er1
23324 grep -v '^ *+' conftest.er1
>conftest.err
23326 cat conftest.err
>&5
23327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23328 (exit $ac_status); } &&
23329 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23331 (eval $ac_try) 2>&5
23333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23334 (exit $ac_status); }; } &&
23335 { ac_try
='test -s conftest.$ac_objext'
23336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23337 (eval $ac_try) 2>&5
23339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23340 (exit $ac_status); }; }; then
23341 emacs_cv_c_restrict_arr
=yes
23343 echo "$as_me: failed program was:" >&5
23344 sed 's/^/| /' conftest.
$ac_ext >&5
23346 emacs_cv_c_restrict_arr
=no
23348 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
23350 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23351 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
23352 if test "$emacs_cv_c_restrict_arr" = yes; then
23354 cat >>confdefs.h
<<\_ACEOF
23355 #define __restrict_arr __restrict
23362 # Set up the CFLAGS for real compilation, so we can substitute it.
23363 CFLAGS
="$REAL_CFLAGS"
23364 CPPFLAGS
="$REAL_CPPFLAGS"
23366 #### Find out which version of Emacs this is.
23367 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23368 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23369 if test x
"${version}" = x
; then
23370 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23371 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23372 { (exit 1); exit 1; }; }
23375 ### Specify what sort of things we'll be editing into Makefile and config.h.
23376 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23412 cat >>confdefs.h
<<_ACEOF
23413 #define EMACS_CONFIGURATION "${canonical}"
23417 cat >>confdefs.h
<<_ACEOF
23418 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23422 cat >>confdefs.h
<<_ACEOF
23423 #define config_machfile "${machfile}"
23427 cat >>confdefs.h
<<_ACEOF
23428 #define config_opsysfile "${opsysfile}"
23432 cat >>confdefs.h
<<_ACEOF
23433 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23437 cat >>confdefs.h
<<_ACEOF
23438 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23442 cat >>confdefs.h
<<_ACEOF
23443 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23447 cat >>confdefs.h
<<_ACEOF
23448 #define UNEXEC_SRC ${UNEXEC_SRC}
23452 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23454 cat >>confdefs.h
<<\_ACEOF
23455 #define HAVE_X_WINDOWS 1
23459 if test "${USE_X_TOOLKIT}" != "none" ; then
23461 cat >>confdefs.h
<<\_ACEOF
23462 #define USE_X_TOOLKIT 1
23466 if test "${HAVE_X11}" = "yes" ; then
23468 cat >>confdefs.h
<<\_ACEOF
23473 if test "${HAVE_XFREE386}" = "yes" ; then
23475 cat >>confdefs.h
<<\_ACEOF
23476 #define HAVE_XFREE386 1
23480 if test "${HAVE_MENUS}" = "yes" ; then
23482 cat >>confdefs.h
<<\_ACEOF
23483 #define HAVE_MENUS 1
23487 if test "${GNU_MALLOC}" = "yes" ; then
23489 cat >>confdefs.h
<<\_ACEOF
23490 #define GNU_MALLOC 1
23494 if test "${REL_ALLOC}" = "yes" ; then
23496 cat >>confdefs.h
<<\_ACEOF
23497 #define REL_ALLOC 1
23506 #### Report on what we decided to do.
23507 #### Report GTK as a toolkit, even if it doesn't use Xt.
23508 #### It makes printing result more understandable as using GTK sets
23509 #### toolkit_scroll_bars to yes by default.
23510 if test "${HAVE_GTK}" = "yes"; then
23515 Configured for \`${canonical}'.
23517 Where should the build process find the source code? ${srcdir}
23518 What operating system and machine description files should Emacs use?
23519 \`${opsysfile}' and \`${machfile}'
23520 What compiler should emacs be built with? ${CC} ${CFLAGS}
23521 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23522 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23523 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23524 What window system should Emacs use? ${window_system}
23525 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23527 if test -n "${x_includes}"; then
23528 echo " Where do we find X Windows header files? ${x_includes}"
23530 echo " Where do we find X Windows header files? Standard dirs"
23532 if test -n "${x_libraries}"; then
23533 echo " Where do we find X Windows libraries? ${x_libraries}"
23535 echo " Where do we find X Windows libraries? Standard dirs"
23538 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23539 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23540 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23541 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23542 echo " Does Emacs use -lungif? ${HAVE_GIF}"
23543 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23544 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23547 if test $USE_XASSERTS = yes; then
23548 echo " Compiling with asserts turned on."
23549 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
23555 # Remove any trailing slashes in these variables.
23556 test "${prefix}" != NONE
&&
23557 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23558 test "${exec_prefix}" != NONE
&&
23559 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23561 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23562 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23563 ## from Makefile.c can correctly provide the arg `-traditional' to the
23566 cat >conftest.
$ac_ext <<_ACEOF
23569 cat confdefs.h
>>conftest.
$ac_ext
23570 cat >>conftest.
$ac_ext <<_ACEOF
23571 /* end confdefs.h. */
23574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23575 $EGREP "yes..yes" >/dev
/null
2>&1; then
23576 CPP_NEED_TRADITIONAL
=no
23578 CPP_NEED_TRADITIONAL
=yes
23583 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"
23584 ac_config_commands
="$ac_config_commands default"
23585 cat >confcache
<<\_ACEOF
23586 # This file is a shell script that caches the results of configure
23587 # tests run on this system so they can be shared between configure
23588 # scripts and configure runs, see configure's option --config-cache.
23589 # It is not useful on other systems. If it contains results you don't
23590 # want to keep, you may remove or edit it.
23592 # config.status only pays attention to the cache file if you give it
23593 # the --recheck option to rerun configure.
23595 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23596 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23597 # following values.
23601 # The following way of writing the cache mishandles newlines in values,
23602 # but we know of no workaround that is simple, portable, and efficient.
23603 # So, don't put newlines in cache variables' values.
23604 # Ultrix sh set writes to stderr and can't be redirected directly,
23605 # and sets the high bit in the cache file unless we assign to the vars.
23608 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23610 # `set' does not quote correctly, so add quotes (double-quote
23611 # substitution turns \\\\ into \\, and sed turns \\ into \).
23614 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23617 # `set' quotes correctly as required by POSIX, so do not add quotes.
23619 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23626 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23628 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23630 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
23631 if test -w $cache_file; then
23632 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23633 cat confcache
>$cache_file
23635 echo "not updating unwritable cache $cache_file"
23640 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
23641 # Let make expand exec_prefix.
23642 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
23644 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23645 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23646 # trailing colons and then remove the whole line if VPATH becomes empty
23647 # (actually we leave an empty line to preserve line numbers).
23648 if test "x$srcdir" = x.
; then
23649 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
23650 s/:*\$(srcdir):*/:/;
23651 s/:*\${srcdir}:*/:/;
23653 s/^\([^=]*=[ ]*\):*/\1/;
23659 DEFS
=-DHAVE_CONFIG_H
23663 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
23664 # 1. Remove the extension, and $U if already installed.
23665 ac_i
=`echo "$ac_i" |
23666 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23668 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
23669 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
23671 LIBOBJS
=$ac_libobjs
23673 LTLIBOBJS
=$ac_ltlibobjs
23677 : ${CONFIG_STATUS=./config.status}
23678 ac_clean_files_save
=$ac_clean_files
23679 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
23680 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23681 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23682 cat >$CONFIG_STATUS <<_ACEOF
23684 # Generated by $as_me.
23685 # Run this file to recreate the current configuration.
23686 # Compiler output produced by configure, useful for debugging
23687 # configure, is in config.log if it exists.
23690 ac_cs_recheck=false
23692 SHELL=\${CONFIG_SHELL-$SHELL}
23695 cat >>$CONFIG_STATUS <<\_ACEOF
23696 ## --------------------- ##
23697 ## M4sh Initialization. ##
23698 ## --------------------- ##
23700 # Be Bourne compatible
23701 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
23704 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23705 # is contrary to our usage. Disable this feature.
23706 alias -g '${1+"$@"}'='"$@"'
23707 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
23710 DUALCASE
=1; export DUALCASE
# for MKS sh
23712 # Support unset when possible.
23713 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23720 # Work around bugs in pre-3.0 UWIN ksh.
23721 $as_unset ENV MAIL MAILPATH
23728 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23729 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23730 LC_TELEPHONE LC_TIME
23732 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23733 eval $as_var=C
; export $as_var
23739 # Required to use basename.
23740 if expr a
: '\(a\)' >/dev
/null
2>&1; then
23746 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
23747 as_basename
=basename
23753 # Name of the executable.
23754 as_me
=`$as_basename "$0" ||
23755 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23756 X"$0" : 'X\(//\)$' \| \
23757 X"$0" : 'X\(/\)$' \| \
23758 . : '\(.\)' 2>/dev/null ||
23760 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23761 /^X\/\(\/\/\)$/{ s//\1/; q; }
23762 /^X\/\(\/\).*/{ s//\1/; q; }
23766 # PATH needs CR, and LINENO needs CR and PATH.
23767 # Avoid depending upon Character Ranges.
23768 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
23769 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23770 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
23771 as_cr_digits
='0123456789'
23772 as_cr_alnum
=$as_cr_Letters$as_cr_digits
23774 # The user is always right.
23775 if test "${PATH_SEPARATOR+set}" != set; then
23776 echo "#! /bin/sh" >conf$$.sh
23777 echo "exit 0" >>conf$$.sh
23779 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23788 as_lineno_1
=$LINENO
23789 as_lineno_2
=$LINENO
23790 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
23791 test "x$as_lineno_1" != "x$as_lineno_2" &&
23792 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
23793 # Find who we are. Look in the path if we contain no path at all
23796 *[\\/]* ) as_myself
=$0 ;;
23797 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23798 for as_dir
in $PATH
23801 test -z "$as_dir" && as_dir
=.
23802 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23807 # We did not find ourselves, most probably we were run as `sh COMMAND'
23808 # in which case we are not to be found in the path.
23809 if test "x$as_myself" = x
; then
23812 if test ! -f "$as_myself"; then
23813 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23814 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23815 { (exit 1); exit 1; }; }
23817 case $CONFIG_SHELL in
23819 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23820 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
23823 test -z "$as_dir" && as_dir
=.
23824 for as_base
in sh bash ksh sh5
; do
23827 if ("$as_dir/$as_base" -c '
23828 as_lineno_1=$LINENO
23829 as_lineno_2=$LINENO
23830 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23831 test "x$as_lineno_1" != "x$as_lineno_2" &&
23832 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
23833 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
23834 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
23835 CONFIG_SHELL
=$as_dir/$as_base
23836 export CONFIG_SHELL
23837 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23845 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23846 # uniformly replaced by the line number. The first 'sed' inserts a
23847 # line-number line before each line; the second 'sed' does the real
23848 # work. The second script uses 'N' to pair each line-number line
23849 # with the numbered line, and appends trailing '-' during
23850 # substitution so that $LINENO is not a special case at line end.
23851 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23852 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23853 sed '=' <$as_myself |
23858 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23861 s,^['$as_cr_digits']*\n,,
23862 ' >$as_me.lineno
&&
23863 chmod +x
$as_me.lineno ||
23864 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23865 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23866 { (exit 1); exit 1; }; }
23868 # Don't try to exec as it changes $[0], causing all sort of problems
23869 # (the dirname of $[0] is not the place where we might find the
23870 # original and so on. Autoconf is especially sensible to this).
23872 # Exit status is that of the last command.
23877 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23878 *c
*,-n*) ECHO_N
= ECHO_C
='
23880 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
23881 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
23884 if expr a
: '\(a\)' >/dev
/null
2>&1; then
23890 rm -f conf$$ conf$$.exe conf$$.
file
23892 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23893 # We could just check for DJGPP; but this test a) works b) is more generic
23894 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23895 if test -f conf$$.exe
; then
23896 # Don't use ln at all; we don't have any links
23901 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23906 rm -f conf$$ conf$$.exe conf$$.
file
23908 if mkdir
-p .
2>/dev
/null
; then
23911 test -d .
/-p && rmdir .
/-p
23915 as_executable_p
="test -f"
23917 # Sed expression to map a string onto a valid CPP name.
23918 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23920 # Sed expression to map a string onto a valid variable name.
23921 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23925 # We need space, tab and new line, in precisely that order.
23935 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23936 # report actual input values of CONFIG_FILES etc. instead of their
23937 # values after options handling. Logging --version etc. is OK.
23941 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23942 ## Running $as_me. ##
23947 This file was extended by $as_me, which was
23948 generated by GNU Autoconf 2.59. Invocation command line was
23950 CONFIG_FILES = $CONFIG_FILES
23951 CONFIG_HEADERS = $CONFIG_HEADERS
23952 CONFIG_LINKS = $CONFIG_LINKS
23953 CONFIG_COMMANDS = $CONFIG_COMMANDS
23957 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23961 # Files that config.status was made for.
23962 if test -n "$ac_config_files"; then
23963 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23966 if test -n "$ac_config_headers"; then
23967 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23970 if test -n "$ac_config_links"; then
23971 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23974 if test -n "$ac_config_commands"; then
23975 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23978 cat >>$CONFIG_STATUS <<\_ACEOF
23981 \`$as_me' instantiates files from templates according to the
23982 current configuration.
23984 Usage: $0 [OPTIONS] [FILE]...
23986 -h, --help print this help, then exit
23987 -V, --version print version number, then exit
23988 -q, --quiet do not print progress messages
23989 -d, --debug don't remove temporary files
23990 --recheck update $as_me by reconfiguring in the same conditions
23991 --file=FILE[:TEMPLATE]
23992 instantiate the configuration file FILE
23993 --header=FILE[:TEMPLATE]
23994 instantiate the configuration header FILE
23996 Configuration files:
23999 Configuration headers:
24002 Configuration commands:
24005 Report bugs to <bug-autoconf@gnu.org>."
24008 cat >>$CONFIG_STATUS <<_ACEOF
24011 configured by $0, generated by GNU Autoconf 2.59,
24012 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24014 Copyright (C) 2003 Free Software Foundation, Inc.
24015 This config.status script is free software; the Free Software Foundation
24016 gives unlimited permission to copy, distribute and modify it."
24021 cat >>$CONFIG_STATUS <<\_ACEOF
24022 # If no file are specified by the user, then we need to provide default
24023 # value. By we need to know if files were specified by the user.
24029 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
24030 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
24038 *) # This is not an option, so the user has probably given explicit
24041 ac_need_defaults
=false
;;
24045 # Handling of the options.
24047 cat >>$CONFIG_STATUS <<\_ACEOF
24048 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24050 --version |
--vers* |
-V )
24051 echo "$ac_cs_version"; exit 0 ;;
24053 # Conflict between --help and --header
24054 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24055 Try \`$0 --help' for more information." >&5
24056 echo "$as_me: error: ambiguous option: $1
24057 Try \`$0 --help' for more information." >&2;}
24058 { (exit 1); exit 1; }; };;
24059 --help |
--hel |
-h )
24060 echo "$ac_cs_usage"; exit 0 ;;
24061 --debug |
--d* |
-d )
24063 --file |
--fil |
--fi |
--f )
24065 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24066 ac_need_defaults
=false
;;
24067 --header |
--heade |
--head |
--hea )
24069 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24070 ac_need_defaults
=false
;;
24071 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24072 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24075 # This is an error.
24076 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24077 Try \`$0 --help' for more information." >&5
24078 echo "$as_me: error: unrecognized option: $1
24079 Try \`$0 --help' for more information." >&2;}
24080 { (exit 1); exit 1; }; } ;;
24082 *) ac_config_targets
="$ac_config_targets $1" ;;
24088 ac_configure_extra_args
=
24090 if $ac_cs_silent; then
24092 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24096 cat >>$CONFIG_STATUS <<_ACEOF
24097 if \$ac_cs_recheck; then
24098 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24099 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24104 cat >>$CONFIG_STATUS <<_ACEOF
24106 # INIT-COMMANDS section.
24109 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24115 cat >>$CONFIG_STATUS <<\_ACEOF
24116 for ac_config_target
in $ac_config_targets
24118 case "$ac_config_target" in
24119 # Handling of arguments.
24120 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24121 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24122 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24123 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
24124 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24125 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24126 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24127 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
24128 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
24129 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24130 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24131 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24132 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24133 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24134 { (exit 1); exit 1; }; };;
24138 # If the user did not use the arguments to specify the items to instantiate,
24139 # then the envvar interface is used. Set only those that are not.
24140 # We use the long form for the default assignment because of an extremely
24141 # bizarre bug on SunOS 4.1.3.
24142 if $ac_need_defaults; then
24143 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24144 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24145 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24148 # Have a temporary directory for convenience. Make it in the build tree
24149 # simply because there is no reason to put it here, and in addition,
24150 # creating and moving files from /tmp can sometimes cause problems.
24151 # Create a temporary directory, and hook for its removal unless debugging.
24154 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24155 trap '{ (exit 1); exit 1; }' 1 2 13 15
24158 # Create a (secure) tmp directory for tmp files.
24161 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24162 test -n "$tmp" && test -d "$tmp"
24165 tmp
=.
/confstat$$
-$RANDOM
24166 (umask 077 && mkdir
$tmp)
24169 echo "$me: cannot create a temporary directory in ." >&2
24170 { (exit 1); exit 1; }
24175 cat >>$CONFIG_STATUS <<_ACEOF
24178 # CONFIG_FILES section.
24181 # No need to generate the scripts if there are no CONFIG_FILES.
24182 # This happens for instance when ./config.status config.h
24183 if test -n "\$CONFIG_FILES"; then
24184 # Protect against being on the right side of a sed subst in config.status.
24185 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24186 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24187 s,@SHELL@,$SHELL,;t t
24188 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24189 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24190 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24191 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24192 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24193 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24194 s,@exec_prefix@,$exec_prefix,;t t
24195 s,@prefix@,$prefix,;t t
24196 s,@program_transform_name@,$program_transform_name,;t t
24197 s,@bindir@,$bindir,;t t
24198 s,@sbindir@,$sbindir,;t t
24199 s,@libexecdir@,$libexecdir,;t t
24200 s,@datadir@,$datadir,;t t
24201 s,@sysconfdir@,$sysconfdir,;t t
24202 s,@sharedstatedir@,$sharedstatedir,;t t
24203 s,@localstatedir@,$localstatedir,;t t
24204 s,@libdir@,$libdir,;t t
24205 s,@includedir@,$includedir,;t t
24206 s,@oldincludedir@,$oldincludedir,;t t
24207 s,@infodir@,$infodir,;t t
24208 s,@mandir@,$mandir,;t t
24209 s,@build_alias@,$build_alias,;t t
24210 s,@host_alias@,$host_alias,;t t
24211 s,@target_alias@,$target_alias,;t t
24212 s,@DEFS@,$DEFS,;t t
24213 s,@ECHO_C@,$ECHO_C,;t t
24214 s,@ECHO_N@,$ECHO_N,;t t
24215 s,@ECHO_T@,$ECHO_T,;t t
24216 s,@LIBS@,$LIBS,;t t
24217 s,@MAINT@,$MAINT,;t t
24218 s,@build@,$build,;t t
24219 s,@build_cpu@,$build_cpu,;t t
24220 s,@build_vendor@,$build_vendor,;t t
24221 s,@build_os@,$build_os,;t t
24222 s,@host@,$host,;t t
24223 s,@host_cpu@,$host_cpu,;t t
24224 s,@host_vendor@,$host_vendor,;t t
24225 s,@host_os@,$host_os,;t t
24227 s,@CFLAGS@,$CFLAGS,;t t
24228 s,@LDFLAGS@,$LDFLAGS,;t t
24229 s,@CPPFLAGS@,$CPPFLAGS,;t t
24230 s,@ac_ct_CC@,$ac_ct_CC,;t t
24231 s,@EXEEXT@,$EXEEXT,;t t
24232 s,@OBJEXT@,$OBJEXT,;t t
24234 s,@EGREP@,$EGREP,;t t
24235 s,@LN_S@,$LN_S,;t t
24236 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24237 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24238 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24239 s,@RANLIB@,$RANLIB,;t t
24240 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24241 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
24242 s,@GZIP_PROG@,$GZIP_PROG,;t t
24243 s,@LIBSOUND@,$LIBSOUND,;t t
24244 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
24245 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
24246 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
24247 s,@CFLAGS_SOUND@,$CFLAGS_SOUND,;t t
24248 s,@SET_MAKE@,$SET_MAKE,;t t
24249 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
24250 s,@GTK_LIBS@,$GTK_LIBS,;t t
24251 s,@XFT_CFLAGS@,$XFT_CFLAGS,;t t
24252 s,@XFT_LIBS@,$XFT_LIBS,;t t
24253 s,@FREETYPE_CFLAGS@,$FREETYPE_CFLAGS,;t t
24254 s,@FREETYPE_LIBS@,$FREETYPE_LIBS,;t t
24255 s,@FONTCONFIG_CFLAGS@,$FONTCONFIG_CFLAGS,;t t
24256 s,@FONTCONFIG_LIBS@,$FONTCONFIG_LIBS,;t t
24257 s,@HAVE_LIBOTF@,$HAVE_LIBOTF,;t t
24258 s,@LIBOTF_CFLAGS@,$LIBOTF_CFLAGS,;t t
24259 s,@LIBOTF_LIBS@,$LIBOTF_LIBS,;t t
24260 s,@ALLOCA@,$ALLOCA,;t t
24261 s,@liblockfile@,$liblockfile,;t t
24262 s,@LIBOBJS@,$LIBOBJS,;t t
24263 s,@NEED_SETGID@,$NEED_SETGID,;t t
24264 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
24265 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
24266 s,@GETOPT_H@,$GETOPT_H,;t t
24267 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
24268 s,@version@,$version,;t t
24269 s,@configuration@,$configuration,;t t
24270 s,@canonical@,$canonical,;t t
24271 s,@srcdir@,$srcdir,;t t
24272 s,@lispdir@,$lispdir,;t t
24273 s,@locallisppath@,$locallisppath,;t t
24274 s,@lisppath@,$lisppath,;t t
24275 s,@x_default_search_path@,$x_default_search_path,;t t
24276 s,@etcdir@,$etcdir,;t t
24277 s,@archlibdir@,$archlibdir,;t t
24278 s,@docdir@,$docdir,;t t
24279 s,@bitmapdir@,$bitmapdir,;t t
24280 s,@gamedir@,$gamedir,;t t
24281 s,@gameuser@,$gameuser,;t t
24282 s,@c_switch_system@,$c_switch_system,;t t
24283 s,@c_switch_machine@,$c_switch_machine,;t t
24284 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
24285 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
24286 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
24287 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
24288 s,@machfile@,$machfile,;t t
24289 s,@opsysfile@,$opsysfile,;t t
24290 s,@carbon_appdir@,$carbon_appdir,;t t
24291 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24296 cat >>$CONFIG_STATUS <<\_ACEOF
24297 # Split the substitutions into bite-sized pieces for seds with
24298 # small command number limits, like on Digital OSF/1 and HP-UX.
24299 ac_max_sed_lines
=48
24300 ac_sed_frag
=1 # Number of current file.
24301 ac_beg
=1 # First line for current file.
24302 ac_end
=$ac_max_sed_lines # Line after last line for current file.
24305 while $ac_more_lines; do
24306 if test $ac_beg -gt 1; then
24307 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
24309 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
24311 if test ! -s $tmp/subs.frag
; then
24312 ac_more_lines
=false
24314 # The purpose of the label and of the branching condition is to
24315 # speed up the sed processing (if there are no `@' at all, there
24316 # is no need to browse any of the substitutions).
24317 # These are the two extra sed commands mentioned above.
24319 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
24320 if test -z "$ac_sed_cmds"; then
24321 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
24323 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24325 ac_sed_frag
=`expr $ac_sed_frag + 1`
24327 ac_end
=`expr $ac_end + $ac_max_sed_lines`
24330 if test -z "$ac_sed_cmds"; then
24333 fi # test -n "$CONFIG_FILES"
24336 cat >>$CONFIG_STATUS <<\_ACEOF
24337 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
24338 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24340 - |
*:- |
*:-:* ) # input from stdin
24342 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24343 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
24344 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24345 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
24346 * ) ac_file_in
=$ac_file.
in ;;
24349 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24350 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
24351 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24352 X"$ac_file" : 'X\(//\)[^/]' \| \
24353 X"$ac_file" : 'X\(//\)$' \| \
24354 X"$ac_file" : 'X\(/\)' \| \
24355 . : '\(.\)' 2>/dev/null ||
24357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24358 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24359 /^X\(\/\/\)$/{ s//\1/; q; }
24360 /^X\(\/\).*/{ s//\1/; q; }
24362 { if $as_mkdir_p; then
24367 while test ! -d "$as_dir"; do
24368 as_dirs
="$as_dir $as_dirs"
24369 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
24370 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24371 X"$as_dir" : 'X\(//\)[^/]' \| \
24372 X"$as_dir" : 'X\(//\)$' \| \
24373 X"$as_dir" : 'X\(/\)' \| \
24374 . : '\(.\)' 2>/dev/null ||
24376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24377 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24378 /^X\(\/\/\)$/{ s//\1/; q; }
24379 /^X\(\/\).*/{ s//\1/; q; }
24382 test ! -n "$as_dirs" || mkdir
$as_dirs
24383 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24384 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24385 { (exit 1); exit 1; }; }; }
24389 if test "$ac_dir" != .
; then
24390 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24391 # A "../" for each directory in $ac_dir_suffix.
24392 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24394 ac_dir_suffix
= ac_top_builddir
=
24398 .
) # No --srcdir option. We are building in place.
24400 if test -z "$ac_top_builddir"; then
24403 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
24405 [\\/]* | ?
:[\\/]* ) # Absolute path.
24406 ac_srcdir
=$srcdir$ac_dir_suffix;
24407 ac_top_srcdir
=$srcdir ;;
24408 *) # Relative path.
24409 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
24410 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
24413 # Do not use `cd foo && pwd` to compute absolute paths, because
24414 # the directories may not exist.
24416 .
) ac_abs_builddir
="$ac_dir";;
24419 .
) ac_abs_builddir
=`pwd`;;
24420 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
24421 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
24424 case $ac_abs_builddir in
24425 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24427 case ${ac_top_builddir}.
in
24428 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
24429 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24430 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
24433 case $ac_abs_builddir in
24434 .
) ac_abs_srcdir
=$ac_srcdir;;
24437 .
) ac_abs_srcdir
=$ac_abs_builddir;;
24438 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
24439 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
24442 case $ac_abs_builddir in
24443 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
24445 case $ac_top_srcdir in
24446 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
24447 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
24448 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
24454 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24455 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
24458 # Let's still pretend it is `configure' which instantiates (i.e., don't
24459 # use $as_me), people would be surprised to read:
24460 # /* config.h. Generated by config.status. */
24461 if test x
"$ac_file" = x-
; then
24464 configure_input
="$ac_file. "
24466 configure_input
=$configure_input"Generated from `echo $ac_file_in |
24467 sed 's,.*/,,'` by configure."
24469 # First look for the input files in the build tree, otherwise in the
24471 ac_file_inputs
=`IFS=:
24472 for f in $ac_file_in; do
24474 -) echo $tmp/stdin ;;
24476 # Absolute (can't be DOS-style, as IFS=:)
24477 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24478 echo "$as_me: error: cannot find input file: $f" >&2;}
24479 { (exit 1); exit 1; }; }
24482 if test -f "$f"; then
24485 elif test -f "$srcdir/$f"; then
24490 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24491 echo "$as_me: error: cannot find input file: $f" >&2;}
24492 { (exit 1); exit 1; }; }
24495 done` ||
{ (exit 1); exit 1; }
24497 if test x
"$ac_file" != x-
; then
24498 { echo "$as_me:$LINENO: creating $ac_file" >&5
24499 echo "$as_me: creating $ac_file" >&6;}
24503 cat >>$CONFIG_STATUS <<_ACEOF
24507 cat >>$CONFIG_STATUS <<\_ACEOF
24509 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24510 s
,@configure_input@
,$configure_input,;t t
24511 s
,@srcdir@
,$ac_srcdir,;t t
24512 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
24513 s
,@top_srcdir@
,$ac_top_srcdir,;t t
24514 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
24515 s
,@builddir@
,$ac_builddir,;t t
24516 s
,@abs_builddir@
,$ac_abs_builddir,;t t
24517 s
,@top_builddir@
,$ac_top_builddir,;t t
24518 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
24519 s
,@INSTALL@
,$ac_INSTALL,;t t
24520 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24522 if test x"$ac_file" != x-; then
24523 mv $tmp/out $ac_file
24531 cat >>$CONFIG_STATUS <<\_ACEOF
24534 # CONFIG_HEADER section.
24537 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
24538 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24540 # ac_d sets the value in "#define NAME VALUE" lines.
24541 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24542 ac_dB
='[ ].*$,\1#\2'
24545 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24546 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24547 ac_uB
='$,\1#\2define\3'
24551 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
24552 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24554 - |
*:- |
*:-:* ) # input from stdin
24556 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24557 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
24558 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24559 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
24560 * ) ac_file_in
=$ac_file.
in ;;
24563 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
24564 echo "$as_me: creating $ac_file" >&6;}
24566 # First look for the input files in the build tree, otherwise in the
24568 ac_file_inputs
=`IFS=:
24569 for f in $ac_file_in; do
24571 -) echo $tmp/stdin ;;
24573 # Absolute (can't be DOS-style, as IFS=:)
24574 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24575 echo "$as_me: error: cannot find input file: $f" >&2;}
24576 { (exit 1); exit 1; }; }
24577 # Do quote $f, to prevent DOS paths from being IFS'd.
24580 if test -f "$f"; then
24583 elif test -f "$srcdir/$f"; then
24588 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24589 echo "$as_me: error: cannot find input file: $f" >&2;}
24590 { (exit 1); exit 1; }; }
24593 done` ||
{ (exit 1); exit 1; }
24594 # Remove the trailing spaces.
24595 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24599 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24600 # `conftest.undefs', that substitutes the proper values into
24601 # config.h.in to produce config.h. The first handles `#define'
24602 # templates, and the second `#undef' templates.
24603 # And first: Protect against being on the right side of a sed subst in
24604 # config.status. Protect against being in an unquoted here document
24605 # in config.status.
24606 rm -f conftest.defines conftest.undefs
24607 # Using a here document instead of a string reduces the quoting nightmare.
24608 # Putting comments in sed scripts is not portable.
24610 # `end' is used to avoid that the second main sed command (meant for
24611 # 0-ary CPP macros) applies to n-ary macro definitions.
24612 # See the Autoconf documentation for `clear'.
24613 cat >confdef2sed.
sed <<\_ACEOF
24618 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24620 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24623 # If some macros were called several times there might be several times
24624 # the same #defines, which is useless. Nevertheless, we may not want to
24625 # sort them, since we want the *last* AC-DEFINE to be honored.
24626 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24627 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24628 rm -f confdef2sed.sed
24630 # This sed command replaces #undef with comments. This is necessary, for
24631 # example, in the case of _POSIX_SOURCE, which is predefined and required
24632 # on some systems where configure will not decide to define it.
24633 cat >>conftest.undefs <<\_ACEOF
24634 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24637 # Break up conftest.defines because some shells have a limit on the size
24638 # of here documents, and old seds have small limits too (100 cmds).
24639 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24640 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24641 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24642 echo ' :' >>$CONFIG_STATUS
24643 rm -f conftest.tail
24644 while grep . conftest.defines >/dev/null
24646 # Write a limited-size here document to $tmp/defines.sed.
24647 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24648 # Speed up: don't consider the non `#define' lines.
24649 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24650 # Work around the forget-to-reset-the-flag bug.
24651 echo 't clr' >>$CONFIG_STATUS
24652 echo ': clr' >>$CONFIG_STATUS
24653 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
24655 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24657 mv $tmp/out $tmp/in
24659 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
24660 rm -f conftest.defines
24661 mv conftest.
tail conftest.defines
24663 rm -f conftest.defines
24664 echo ' fi # grep' >>$CONFIG_STATUS
24665 echo >>$CONFIG_STATUS
24667 # Break up conftest.undefs because some shells have a limit on the size
24668 # of here documents, and old seds have small limits too (100 cmds).
24669 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24670 rm -f conftest.
tail
24671 while grep . conftest.undefs
>/dev
/null
24673 # Write a limited-size here document to $tmp/undefs.sed.
24674 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24675 # Speed up: don't consider the non
`#undef'
24676 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24677 # Work around the forget-to-reset-the-flag bug.
24678 echo 't clr' >>$CONFIG_STATUS
24679 echo ': clr' >>$CONFIG_STATUS
24680 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24682 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24684 mv $tmp/out $tmp/in
24686 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24687 rm -f conftest.undefs
24688 mv conftest.tail conftest.undefs
24690 rm -f conftest.undefs
24692 cat >>$CONFIG_STATUS <<\_ACEOF
24693 # Let's still pretend it is `configure
' which instantiates (i.e., don't
24694 # use $as_me), people would be surprised to read:
24695 # /* config.h. Generated by config.status. */
24696 if test x
"$ac_file" = x-
; then
24697 echo "/* Generated by configure. */" >$tmp/config.h
24699 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24701 cat $tmp/in >>$tmp/config.h
24703 if test x
"$ac_file" != x-
; then
24704 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
24705 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24706 echo "$as_me: $ac_file is unchanged" >&6;}
24708 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
24709 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24710 X"$ac_file" : 'X\(//\)[^/]' \| \
24711 X"$ac_file" : 'X\(//\)$' \| \
24712 X"$ac_file" : 'X\(/\)' \| \
24713 . : '\(.\)' 2>/dev/null ||
24715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24717 /^X\(\/\/\)$/{ s//\1/; q; }
24718 /^X\(\/\).*/{ s//\1/; q; }
24720 { if $as_mkdir_p; then
24725 while test ! -d "$as_dir"; do
24726 as_dirs
="$as_dir $as_dirs"
24727 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
24728 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24729 X"$as_dir" : 'X\(//\)[^/]' \| \
24730 X"$as_dir" : 'X\(//\)$' \| \
24731 X"$as_dir" : 'X\(/\)' \| \
24732 . : '\(.\)' 2>/dev/null ||
24734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24735 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24736 /^X\(\/\/\)$/{ s//\1/; q; }
24737 /^X\(\/\).*/{ s//\1/; q; }
24740 test ! -n "$as_dirs" || mkdir
$as_dirs
24741 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24742 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24743 { (exit 1); exit 1; }; }; }
24746 mv $tmp/config.h
$ac_file
24750 rm -f $tmp/config.h
24754 cat >>$CONFIG_STATUS <<\_ACEOF
24757 # CONFIG_COMMANDS section.
24759 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
24760 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
24761 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24762 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
24763 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24764 X"$ac_dest" : 'X\(//\)[^/]' \| \
24765 X"$ac_dest" : 'X\(//\)$' \| \
24766 X"$ac_dest" : 'X\(/\)' \| \
24767 . : '\(.\)' 2>/dev/null ||
24769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24770 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24771 /^X\(\/\/\)$/{ s//\1/; q; }
24772 /^X\(\/\).*/{ s//\1/; q; }
24774 { if $as_mkdir_p; then
24779 while test ! -d "$as_dir"; do
24780 as_dirs
="$as_dir $as_dirs"
24781 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
24782 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24783 X"$as_dir" : 'X\(//\)[^/]' \| \
24784 X"$as_dir" : 'X\(//\)$' \| \
24785 X"$as_dir" : 'X\(/\)' \| \
24786 . : '\(.\)' 2>/dev/null ||
24788 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24789 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24790 /^X\(\/\/\)$/{ s//\1/; q; }
24791 /^X\(\/\).*/{ s//\1/; q; }
24794 test ! -n "$as_dirs" || mkdir
$as_dirs
24795 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24796 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24797 { (exit 1); exit 1; }; }; }
24801 if test "$ac_dir" != .
; then
24802 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24803 # A "../" for each directory in $ac_dir_suffix.
24804 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24806 ac_dir_suffix
= ac_top_builddir
=
24810 .
) # No --srcdir option. We are building in place.
24812 if test -z "$ac_top_builddir"; then
24815 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
24817 [\\/]* | ?
:[\\/]* ) # Absolute path.
24818 ac_srcdir
=$srcdir$ac_dir_suffix;
24819 ac_top_srcdir
=$srcdir ;;
24820 *) # Relative path.
24821 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
24822 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
24825 # Do not use `cd foo && pwd` to compute absolute paths, because
24826 # the directories may not exist.
24828 .
) ac_abs_builddir
="$ac_dir";;
24831 .
) ac_abs_builddir
=`pwd`;;
24832 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
24833 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
24836 case $ac_abs_builddir in
24837 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24839 case ${ac_top_builddir}.
in
24840 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
24841 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24842 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
24845 case $ac_abs_builddir in
24846 .
) ac_abs_srcdir
=$ac_srcdir;;
24849 .
) ac_abs_srcdir
=$ac_abs_builddir;;
24850 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
24851 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
24854 case $ac_abs_builddir in
24855 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
24857 case $ac_top_srcdir in
24858 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
24859 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
24860 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
24865 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24866 echo "$as_me: executing $ac_dest commands" >&6;}
24870 ### Make the necessary directories, if they don't exist.
24871 for dir
in etc lisp
; do
24872 test -d ${dir} || mkdir
${dir}
24875 # Build src/Makefile from ${srcdir}/src/Makefile.c
24876 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24877 # This must be done after src/config.h is built, since we rely on that file.
24879 # Now get this: Some word that is part of the ${srcdir} directory name
24880 # or the ${configuration} value might, just might, happen to be an
24881 # identifier like `sun4' or `i386' or something, and be predefined by
24882 # the C preprocessor to some helpful value like 1, or maybe the empty
24883 # string. Needless to say consequent macro substitutions are less
24884 # than conducive to the makefile finding the correct directory.
24885 undefs
="`echo $top_srcdir $configuration $canonical |
24886 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24887 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24890 echo creating src
/epaths.h
24891 ${MAKE-make} epaths-force
24893 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24894 # `..' to `. .' unless invoked with -traditional
24896 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24897 CPPFLAGS
="$CPPFLAGS -traditional"
24900 echo creating lib-src
/Makefile
24902 rm -f junk.c junk1.c junk2.c
24903 sed -e '/start of cpp stuff/q' \
24904 < Makefile.c
> junk1.c
24905 sed -e '1,/start of cpp stuff/d'\
24906 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24907 < Makefile.c
> junk.c
24908 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24909 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24910 cat junk1.c junk2.c
> Makefile.new
24911 rm -f junk.c junk1.c junk2.c
24912 chmod 444 Makefile.new
24913 mv -f Makefile.new Makefile
24916 echo creating src
/Makefile
24918 rm -f junk.c junk1.c junk2.c
24919 sed -e '/start of cpp stuff/q' \
24920 < Makefile.c
> junk1.c
24921 sed -e '1,/start of cpp stuff/d'\
24922 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24923 < Makefile.c
> junk.c
24924 if test -f ${srcdir}/admin
/unidata
/UnicodeData.txt
; then
24925 CPPFLAGS
="$CPPFLAGS -DHAVE_UNIDATA"
24927 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24928 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24929 cat junk1.c junk2.c
> Makefile.new
24930 rm -f junk.c junk1.c junk2.c
24931 chmod 444 Makefile.new
24932 mv -f Makefile.new Makefile
24935 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24936 echo creating src
/.gdbinit
24937 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24940 # This is how we know whether to re-run configure in certain cases.
24941 touch src
/config.stamp
24948 cat >>$CONFIG_STATUS <<\_ACEOF
24950 { (exit 0); exit 0; }
24952 chmod +x
$CONFIG_STATUS
24953 ac_clean_files
=$ac_clean_files_save
24956 # configure is writing to config.log, and then calls config.status.
24957 # config.status does its own redirection, appending to config.log.
24958 # Unfortunately, on DOS this fails, as config.log is still kept open
24959 # by configure, so config.status won't be able to write to it; its
24960 # output is simply discarded. So we exec the FD to /dev/null,
24961 # effectively closing config.log, so it can be properly (re)opened and
24962 # appended to by config.status. When coming back to configure, we
24963 # need to make the FD available again.
24964 if test "$no_create" != yes; then
24966 ac_config_status_args
=
24967 test "$silent" = yes &&
24968 ac_config_status_args
="$ac_config_status_args --quiet"
24970 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24972 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24973 # would make configure fail if this is the last instruction.
24974 $ac_cs_success ||
{ (exit 1); exit 1; }