2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53a.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
25 # Support unset when possible.
26 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
32 (set +x
; test -n "`(LANG=C; export LANG) 2>&1`") &&
33 { $as_unset LANG ||
test "${LANG+set}" != set; } ||
34 { LANG
=C
; export LANG
; }
35 (set +x
; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
36 { $as_unset LC_ALL ||
test "${LC_ALL+set}" != set; } ||
37 { LC_ALL
=C
; export LC_ALL
; }
38 (set +x
; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
39 { $as_unset LC_TIME ||
test "${LC_TIME+set}" != set; } ||
40 { LC_TIME
=C
; export LC_TIME
; }
41 (set +x
; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
42 { $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set; } ||
43 { LC_CTYPE
=C
; export LC_CTYPE
; }
44 (set +x
; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
45 { $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set; } ||
46 { LANGUAGE
=C
; export LANGUAGE
; }
47 (set +x
; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
48 { $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set; } ||
49 { LC_COLLATE
=C
; export LC_COLLATE
; }
50 (set +x
; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
51 { $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set; } ||
52 { LC_NUMERIC
=C
; export LC_NUMERIC
; }
53 (set +x
; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
54 { $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set; } ||
55 { LC_MESSAGES
=C
; export LC_MESSAGES
; }
58 # Required to use basename.
59 if expr a
: '\(a\)' >/dev
/null
2>&1; then
65 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
72 # Name of the executable.
73 as_me
=`$as_basename "$0" ||
74 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
75 X"$0" : 'X\(//\)$' \| \
76 X"$0" : 'X\(/\)$' \| \
77 . : '\(.\)' 2>/dev/null ||
79 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
80 /^X\/\(\/\/\)$/{ s//\1/; q; }
81 /^X\/\(\/\).*/{ s//\1/; q; }
85 # PATH needs CR, and LINENO needs CR and PATH.
86 # Avoid depending upon Character Ranges.
87 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
88 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
89 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
90 as_cr_digits
='0123456789'
91 as_cr_alnum
=$as_cr_Letters$as_cr_digits
93 # The user is always right.
94 if test "${PATH_SEPARATOR+set}" != set; then
95 echo "#! /bin/sh" >conftest.sh
96 echo "exit 0" >>conftest.sh
98 if (PATH
=".;."; conftest.sh
) >/dev
/null
2>&1; then
109 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
110 test "x$as_lineno_1" != "x$as_lineno_2" &&
111 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
112 # Find who we are. Look in the path if we contain no path at all
115 *[\\/]* ) as_myself
=$0 ;;
116 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
120 test -z "$as_dir" && as_dir
=.
121 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
126 # We did not find ourselves, most probably we were run as `sh COMMAND'
127 # in which case we are not to be found in the path.
128 if test "x$as_myself" = x
; then
131 if test ! -f "$as_myself"; then
132 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
133 { (exit 1); exit 1; }; }
135 case $CONFIG_SHELL in
137 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
138 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
141 test -z "$as_dir" && as_dir
=.
142 for as_base
in sh bash ksh sh5
; do
145 if ("$as_dir/$as_base" -c '
148 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
149 test "x$as_lineno_1" != "x$as_lineno_2" &&
150 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
151 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
152 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
153 CONFIG_SHELL
=$as_dir/$as_base
155 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
163 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
164 # uniformly replaced by the line number. The first 'sed' inserts a
165 # line-number line before each line; the second 'sed' does the real
166 # work. The second script uses 'N' to pair each line-number line
167 # with the numbered line, and appends trailing '-' during
168 # substitution so that $LINENO is not a special case at line end.
169 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
170 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
171 sed '=' <$as_myself |
176 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
179 s,^['$as_cr_digits']*\n,,
181 chmod +x
$as_me.lineno ||
182 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
183 { (exit 1); exit 1; }; }
185 # Don't try to exec as it changes $[0], causing all sort of problems
186 # (the dirname of $[0] is not the place where we might find the
187 # original and so on. Autoconf is especially sensible to this).
189 # Exit status is that of the last command.
194 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
195 *c
*,-n*) ECHO_N
= ECHO_C
='
197 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
198 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
201 if expr a
: '\(a\)' >/dev
/null
2>&1; then
207 rm -f conf$$ conf$$.exe conf$$.
file
209 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
210 # We could just check for DJGPP; but this test a) works b) is more generic
211 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
212 if test -f conf$$.exe
; then
213 # Don't use ln at all; we don't have any links
218 elif ln conf$$.
file conf$$
2>/dev
/null
; then
223 rm -f conf$$ conf$$.exe conf$$.
file
225 if mkdir
-p .
2>/dev
/null
; then
231 as_executable_p
="test -f"
233 # Sed expression to map a string onto a valid CPP name.
234 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
236 # Sed expression to map a string onto a valid variable name.
237 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
241 # We need space, tab and new line, in precisely that order.
247 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=$PATH_SEPARATOR; export CDPATH
; }
251 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
252 # so uname gets run too.
253 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
260 ac_default_prefix
=/usr
/local
265 SHELL
=${CONFIG_SHELL-/bin/sh}
267 # Maximum number of lines to put in a shell here document.
268 # This variable seems obsolete. It should probably be removed, and
269 # only ac_max_sed_lines should be used.
270 : ${ac_max_here_lines=38}
272 # Identity of this package.
279 ac_unique_file
="src/lisp.h"
280 # Factoring default headers for most tests.
281 ac_includes_default
="\
284 # include <sys/types.h>
287 # include <sys/stat.h>
298 # if !STDC_HEADERS && HAVE_MEMORY_H
304 # include <strings.h>
307 # include <inttypes.h>
318 # Initialize some variables set by options.
320 ac_init_version
=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
330 program_transform_name
=s
,x
,x
,
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir
='${exec_prefix}/bin'
344 sbindir
='${exec_prefix}/sbin'
345 libexecdir
='${exec_prefix}/libexec'
346 datadir
='${prefix}/share'
347 sysconfdir
='${prefix}/etc'
348 sharedstatedir
='${prefix}/com'
349 localstatedir
='${prefix}/var'
350 libdir
='${exec_prefix}/lib'
351 includedir
='${prefix}/include'
352 oldincludedir
='/usr/include'
353 infodir
='${prefix}/info'
354 mandir
='${prefix}/man'
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
366 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368 # Accept the important Cygnus configure options, so we can diagnose typos.
372 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
374 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
377 -build |
--build |
--buil |
--bui |
--bu)
378 ac_prev
=build_alias
;;
379 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
380 build_alias
=$ac_optarg ;;
382 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
383 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
384 ac_prev
=cache_file
;;
385 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
386 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
387 cache_file
=$ac_optarg ;;
390 cache_file
=config.cache
;;
392 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
394 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
396 datadir
=$ac_optarg ;;
398 -disable-* |
--disable-*)
399 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
407 -enable-* |
--enable-*)
408 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
415 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
418 eval "enable_$ac_feature='$ac_optarg'" ;;
420 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
421 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
422 |
--exec |
--exe |
--ex)
423 ac_prev
=exec_prefix
;;
424 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
425 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
426 |
--exec=* |
--exe=* |
--ex=*)
427 exec_prefix
=$ac_optarg ;;
429 -gas |
--gas |
--ga |
--g)
430 # Obsolete; use --with-gas.
433 -help |
--help |
--hel |
--he |
-h)
435 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
436 ac_init_help
=recursive
;;
437 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
438 ac_init_help
=short
;;
440 -host |
--host |
--hos |
--ho)
441 ac_prev
=host_alias
;;
442 -host=* |
--host=* |
--hos=* |
--ho=*)
443 host_alias
=$ac_optarg ;;
445 -includedir |
--includedir |
--includedi |
--included |
--include \
446 |
--includ |
--inclu |
--incl |
--inc)
447 ac_prev
=includedir
;;
448 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
449 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
450 includedir
=$ac_optarg ;;
452 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
454 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
455 infodir
=$ac_optarg ;;
457 -libdir |
--libdir |
--libdi |
--libd)
459 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
462 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
463 |
--libexe |
--libex |
--libe)
464 ac_prev
=libexecdir
;;
465 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
466 |
--libexe=* |
--libex=* |
--libe=*)
467 libexecdir
=$ac_optarg ;;
469 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
470 |
--localstate |
--localstat |
--localsta |
--localst \
471 |
--locals |
--local |
--loca |
--loc |
--lo)
472 ac_prev
=localstatedir
;;
473 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
474 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
475 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
476 localstatedir
=$ac_optarg ;;
478 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
480 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
484 # Obsolete; use --without-fp.
487 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
488 |
--no-cr |
--no-c |
-n)
491 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
492 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
495 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
496 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
497 |
--oldin |
--oldi |
--old |
--ol |
--o)
498 ac_prev
=oldincludedir
;;
499 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
500 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
501 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
502 oldincludedir
=$ac_optarg ;;
504 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
506 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
509 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
510 |
--program-pre |
--program-pr |
--program-p)
511 ac_prev
=program_prefix
;;
512 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
513 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
514 program_prefix
=$ac_optarg ;;
516 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
517 |
--program-suf |
--program-su |
--program-s)
518 ac_prev
=program_suffix
;;
519 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
520 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
521 program_suffix
=$ac_optarg ;;
523 -program-transform-name |
--program-transform-name \
524 |
--program-transform-nam |
--program-transform-na \
525 |
--program-transform-n |
--program-transform- \
526 |
--program-transform |
--program-transfor \
527 |
--program-transfo |
--program-transf \
528 |
--program-trans |
--program-tran \
529 |
--progr-tra |
--program-tr |
--program-t)
530 ac_prev
=program_transform_name
;;
531 -program-transform-name=* |
--program-transform-name=* \
532 |
--program-transform-nam=* |
--program-transform-na=* \
533 |
--program-transform-n=* |
--program-transform-=* \
534 |
--program-transform=* |
--program-transfor=* \
535 |
--program-transfo=* |
--program-transf=* \
536 |
--program-trans=* |
--program-tran=* \
537 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
538 program_transform_name
=$ac_optarg ;;
540 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
541 |
-silent |
--silent |
--silen |
--sile |
--sil)
544 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
546 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
548 sbindir
=$ac_optarg ;;
550 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
551 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
552 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
554 ac_prev
=sharedstatedir
;;
555 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
556 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
557 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
559 sharedstatedir
=$ac_optarg ;;
561 -site |
--site |
--sit)
563 -site=* |
--site=* |
--sit=*)
566 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
568 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
571 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
572 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
573 ac_prev
=sysconfdir
;;
574 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
575 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
576 sysconfdir
=$ac_optarg ;;
578 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
579 ac_prev
=target_alias
;;
580 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
581 target_alias
=$ac_optarg ;;
583 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
586 -version |
--version |
--versio |
--versi |
--vers |
-V)
590 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package
=`echo $ac_package| sed 's/-/_/g'`
597 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
600 eval "with_$ac_package='$ac_optarg'" ;;
602 -without-* |
--without-*)
603 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package
=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
612 # Obsolete; use --with-x.
615 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
616 |
--x-incl |
--x-inc |
--x-in |
--x-i)
617 ac_prev
=x_includes
;;
618 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
619 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
620 x_includes
=$ac_optarg ;;
622 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
623 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
624 ac_prev
=x_libraries
;;
625 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
626 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
627 x_libraries
=$ac_optarg ;;
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
635 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
655 if test -n "$ac_prev"; then
656 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
661 # Be sure to have absolute paths.
662 for ac_var
in exec_prefix prefix
664 eval ac_val
=$
`echo $ac_var`
666 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
672 # Be sure to have absolute paths.
673 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
676 eval ac_val
=$
`echo $ac_var`
678 [\\/$
]* | ?
:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x
; then
693 if test "x$build_alias" = x
; then
694 cross_compiling
=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
703 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
705 test "$silent" = yes && exec 6>/dev
/null
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710 ac_srcdir_defaulted
=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir
=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
725 if test ! -r $srcdir/$ac_unique_file; then
729 ac_srcdir_defaulted
=no
731 if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
740 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set
=${build_alias+set}
742 ac_env_build_alias_value
=$build_alias
743 ac_cv_env_build_alias_set
=${build_alias+set}
744 ac_cv_env_build_alias_value
=$build_alias
745 ac_env_host_alias_set
=${host_alias+set}
746 ac_env_host_alias_value
=$host_alias
747 ac_cv_env_host_alias_set
=${host_alias+set}
748 ac_cv_env_host_alias_value
=$host_alias
749 ac_env_target_alias_set
=${target_alias+set}
750 ac_env_target_alias_value
=$target_alias
751 ac_cv_env_target_alias_set
=${target_alias+set}
752 ac_cv_env_target_alias_value
=$target_alias
753 ac_env_CC_set
=${CC+set}
755 ac_cv_env_CC_set
=${CC+set}
756 ac_cv_env_CC_value
=$CC
757 ac_env_CFLAGS_set
=${CFLAGS+set}
758 ac_env_CFLAGS_value
=$CFLAGS
759 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value
=$CFLAGS
761 ac_env_LDFLAGS_set
=${LDFLAGS+set}
762 ac_env_LDFLAGS_value
=$LDFLAGS
763 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value
=$LDFLAGS
765 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value
=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_env_CPP_set
=${CPP+set}
770 ac_env_CPP_value
=$CPP
771 ac_cv_env_CPP_set
=${CPP+set}
772 ac_cv_env_CPP_value
=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
840 --x-includes=DIR X include files are
in DIR
841 --x-libraries=DIR X library files are
in DIR
844 --build=BUILD configure
for building on BUILD
[guessed
]
845 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
849 if test -n "$ac_init_help"; then
854 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
855 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
856 --disable-largefile omit support
for large files
859 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
860 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
861 --with-game-dir use a shared game directory
if possible
862 --with-game-user use specified user
for game directory
863 --without-gcc don
't use GCC to compile Emacs if GCC is found
864 --without-pop don't support POP
mail retrieval with movemail
865 --with-kerberos support Kerberos-authenticated POP
866 --with-kerberos5 support Kerberos version
5 authenticated POP
867 --with-hesiod support Hesiod to get the POP server
host
868 --without-sound don
't compile with sound support
869 --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no)
870 --with-xpm use -lXpm for displaying XPM images
871 --with-jpeg use -ljpeg for displaying JPEG images
872 --with-tiff use -ltiff for displaying TIFF images
873 --with-gif use -lungif for displaying GIF images
874 --with-png use -lpng for displaying PNG images
875 --without-toolkit-scroll-bars
876 don't use Motif or Xaw3d scroll bars
877 --without-xim don
't use X11 XIM
878 --without-carbon don't use Carbon GUI on Mac OS X
879 --with-x use the X Window System
881 Some influential environment variables
:
882 CC C compiler
command
883 CFLAGS C compiler flags
884 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
885 nonstandard directory
<lib dir
>
886 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
887 headers
in a nonstandard directory
<include dir
>
890 Use these variables to override the choices made by
`configure' or to help
891 it to find libraries and programs with nonstandard names/locations.
896 if test "$ac_init_help" = "recursive"; then
897 # If there are subdirs, report their specific --help.
899 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
900 test -d $ac_dir || continue
903 if test "$ac_dir" != .; then
904 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
905 # A "../" for each directory in $ac_dir_suffix.
906 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
908 ac_dir_suffix= ac_top_builddir=
912 .) # No --srcdir option. We are building in place.
914 if test -z "$ac_top_builddir"; then
917 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
919 [\\/]* | ?:[\\/]* ) # Absolute path.
920 ac_srcdir=$srcdir$ac_dir_suffix;
921 ac_top_srcdir=$srcdir ;;
923 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
924 ac_top_srcdir=$ac_top_builddir$srcdir ;;
926 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
928 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
929 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}.
&& pwd`
930 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
931 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
934 # Check for guested configure; otherwise get Cygnus style configure.
935 if test -f $ac_srcdir/configure.gnu; then
937 $SHELL $ac_srcdir/configure.gnu --help=recursive
938 elif test -f $ac_srcdir/configure; then
940 $SHELL $ac_srcdir/configure --help=recursive
941 elif test -f $ac_srcdir/configure.ac ||
942 test -f $ac_srcdir/configure.in; then
946 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
952 test -n "$ac_init_help" && exit 0
953 if $ac_init_version; then
956 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
957 Free Software Foundation, Inc.
958 This configure script is free software; the Free Software Foundation
959 gives unlimited permission to copy, distribute and modify it.
965 This file contains any messages produced by compilers while
966 running configure, to aid debugging if configure makes a mistake.
968 It was created by $as_me, which was
969 generated by GNU Autoconf 2.53a. Invocation command line was
980 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
981 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
982 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
983 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
984 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
986 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
987 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
989 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
990 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
991 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
992 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
993 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
994 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
995 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1003 test -z "$as_dir" && as_dir=.
1004 echo "PATH: $as_dir"
1019 # Keep a trace of the command line.
1020 # Strip out --no-create and --no-recursion so they do not pile up.
1021 # Also quote any args containing shell meta-characters.
1027 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028 | --no-cr | --no-c | -n ) continue ;;
1029 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1033 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1035 case " $ac_configure_args " in
1036 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1037 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1040 # Get rid of the leading space.
1043 # When interrupted or exit'd, cleanup temporary files, and complete
1044 # config.log. We remove comments because anyway the quotes in there
1045 # would cause problems or look ugly.
1046 # WARNING: Be sure not to use single quotes in there, as some shells,
1047 # such as our DU 5.0 friend, will then `close
' the trap.
1048 trap 'exit_status
=$?
1049 # Save into config.log some information that might help in debugging.
1053 ## ---------------- ##
1054 ## Cache variables. ##
1055 ## ---------------- ##
1058 # The following way of writing the cache mishandles newlines in values,
1061 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1064 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1065 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1069 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1074 if test -s confdefs.h
; then
1081 sed "/^$/d" confdefs.h
1084 test "$ac_signal" != 0 &&
1085 echo "$as_me: caught signal $ac_signal"
1086 echo "$as_me: exit $exit_status"
1088 rm -f core core.
* *.core
&&
1089 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1092 for ac_signal in 1 2 13 15; do
1093 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1097 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1098 rm -rf conftest* confdefs.h
1099 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1102 # Predefined preprocessor variables.
1104 cat >>confdefs.h <<_ACEOF
1105 #define PACKAGE_NAME "$PACKAGE_NAME"
1109 cat >>confdefs.h <<_ACEOF
1110 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1114 cat >>confdefs.h <<_ACEOF
1115 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1119 cat >>confdefs.h <<_ACEOF
1120 #define PACKAGE_STRING "$PACKAGE_STRING"
1124 cat >>confdefs.h <<_ACEOF
1125 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1129 # Let the site file select an alternate cache file if it wants to.
1130 # Prefer explicitly selected file to automatically selected ones.
1131 if test -z "$CONFIG_SITE"; then
1132 if test "x$prefix" != xNONE; then
1133 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1135 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1138 for ac_site_file in $CONFIG_SITE; do
1139 if test -r "$ac_site_file"; then
1140 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1141 echo "$as_me: loading site script $ac_site_file" >&6;}
1142 sed 's
/^
/|
/' "$ac_site_file" >&5
1147 if test -r "$cache_file"; then
1148 # Some versions of bash will fail to source /dev/null (special
1149 # files actually), so we avoid doing that.
1150 if test -f "$cache_file"; then
1151 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1152 echo "$as_me: loading cache $cache_file" >&6;}
1154 [\\/]* | ?:[\\/]* ) . $cache_file;;
1155 *) . ./$cache_file;;
1159 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1160 echo "$as_me: creating cache $cache_file" >&6;}
1164 # Check that the precious variables saved in the cache have kept the same
1166 ac_cache_corrupted=false
1167 for ac_var in `(set) 2>&1 |
1168 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1169 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1170 eval ac_new_set=\$ac_env_${ac_var}_set
1171 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1172 eval ac_new_val="\$ac_env_${ac_var}_value"
1173 case $ac_old_set,$ac_new_set in
1175 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1176 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1177 ac_cache_corrupted=: ;;
1179 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1180 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1181 ac_cache_corrupted=: ;;
1184 if test "x$ac_old_val" != "x$ac_new_val"; then
1185 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1186 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1187 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1188 echo "$as_me: former value: $ac_old_val" >&2;}
1189 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1190 echo "$as_me: current value: $ac_new_val" >&2;}
1191 ac_cache_corrupted=:
1194 # Pass precious variables to config.status.
1195 if test "$ac_new_set" = set; then
1197 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1198 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1199 *) ac_arg=$ac_var=$ac_new_val ;;
1201 case " $ac_configure_args " in
1202 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1203 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1207 if $ac_cache_corrupted; then
1208 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1209 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1210 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1211 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1212 { (exit 1); exit 1; }; }
1216 ac_cpp='$CPP $CPPFLAGS'
1217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1218 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1239 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1242 test "$program_prefix" != NONE &&
1243 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1244 # Use a double $ so make ignores it.
1245 test "$program_suffix" != NONE &&
1246 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1247 # Double any \ or $. echo might interpret backslashes.
1248 # By default was `s,x,x', remove it
if useless.
1249 cat <<\_ACEOF
>conftest.
sed
1250 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1252 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1256 lispdir
='${datadir}/emacs/${version}/lisp'
1257 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1258 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1259 lisppath
='${locallisppath}:${lispdir}'
1260 etcdir
='${datadir}/emacs/${version}/etc'
1261 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1262 docdir
='${datadir}/emacs/${version}/etc'
1266 # Check whether --with-game-dir or --without-game-dir was given.
1267 if test "${with_game_dir+set}" = set; then
1268 withval
="$with_game_dir"
1269 if test "$withval" = yes; then
1270 gamedir
="${localstatedir}/games/emacs"
1272 if test "$withval" = no
; then
1283 # Check whether --with-game-user or --without-game-user was given.
1284 if test "${with_game_user+set}" = set; then
1285 withval
="$with_game_user"
1290 # Check whether --with-gcc or --without-gcc was given.
1291 if test "${with_gcc+set}" = set; then
1296 # Check whether --with-pop or --without-pop was given.
1297 if test "${with_pop+set}" = set; then
1299 if test "$withval" = yes; then
1300 cat >>confdefs.h
<<\_ACEOF
1301 #define MAIL_USE_POP 1
1307 cat >>confdefs.h
<<\_ACEOF
1308 #define MAIL_USE_POP 1
1314 # Check whether --with-kerberos or --without-kerberos was given.
1315 if test "${with_kerberos+set}" = set; then
1316 withval
="$with_kerberos"
1317 cat >>confdefs.h
<<\_ACEOF
1324 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1325 if test "${with_kerberos5+set}" = set; then
1326 withval
="$with_kerberos5"
1327 if test "${with_kerberos5+set}" = set; then
1328 if test "${with_kerberos+set}" != set; then
1330 cat >>confdefs.h
<<\_ACEOF
1337 cat >>confdefs.h
<<\_ACEOF
1343 # Check whether --with-hesiod or --without-hesiod was given.
1344 if test "${with_hesiod+set}" = set; then
1345 withval
="$with_hesiod"
1347 cat >>confdefs.h
<<\_ACEOF
1354 # Check whether --with-sound or --without-sound was given.
1355 if test "${with_sound+set}" = set; then
1356 withval
="$with_sound"
1361 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1362 if test "${with_x_toolkit+set}" = set; then
1363 withval
="$with_x_toolkit"
1364 case "${withval}" in
1365 y | ye |
yes ) val
=athena
;;
1367 l | lu | luc | luci | lucid
) val
=lucid
;;
1368 a |
at | ath | athe | athen | athena
) val
=athena
;;
1369 m | mo | mot | moti | motif
) val
=motif
;;
1371 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1372 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
1373 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1374 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1375 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
1376 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1377 { (exit 1); exit 1; }; }
1384 # Check whether --with-xpm or --without-xpm was given.
1385 if test "${with_xpm+set}" = set; then
1390 # Check whether --with-jpeg or --without-jpeg was given.
1391 if test "${with_jpeg+set}" = set; then
1392 withval
="$with_jpeg"
1396 # Check whether --with-tiff or --without-tiff was given.
1397 if test "${with_tiff+set}" = set; then
1398 withval
="$with_tiff"
1402 # Check whether --with-gif or --without-gif was given.
1403 if test "${with_gif+set}" = set; then
1408 # Check whether --with-png or --without-png was given.
1409 if test "${with_png+set}" = set; then
1414 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1415 if test "${with_toolkit_scroll_bars+set}" = set; then
1416 withval
="$with_toolkit_scroll_bars"
1420 # Check whether --with-xim or --without-xim was given.
1421 if test "${with_xim+set}" = set; then
1426 # Check whether --with-carbon or --without-carbon was given.
1427 if test "${with_carbon+set}" = set; then
1428 withval
="$with_carbon"
1432 #### Make srcdir absolute, if it isn't already. It's important to
1433 #### avoid running the path through pwd unnecessarily, since pwd can
1434 #### give you automounter prefixes, which can go away. We do all this
1435 #### so Emacs can find its files when run uninstalled.
1436 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1441 ## We may be able to use the $PWD environment variable to make this
1442 ## absolute. But sometimes PWD is inaccurate.
1443 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1444 ## but that tested only for a well-formed and valid PWD,
1445 ## it did not object when PWD was well-formed and valid but just wrong.
1446 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1450 srcdir
="`(cd ${srcdir}; pwd)`"
1453 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
1456 #### Check if the source directory already has a configured system in it.
1457 if test `pwd` != `(cd ${srcdir} && pwd)` \
1458 && test -f "${srcdir}/src/config.h" ; then
1459 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1460 as a build directory right now; it has been configured in its own
1461 right. To configure in another directory as well, you MUST
1462 use GNU make. If you do not have GNU make, then you must
1463 now do \`make distclean' in ${srcdir},
1464 and then run $0 again." >&5
1465 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1466 as a build directory right now; it has been configured in its own
1467 right. To configure in another directory as well, you MUST
1468 use GNU make. If you do not have GNU make, then you must
1469 now do \`make distclean' in ${srcdir},
1470 and then run $0 again." >&2;}
1472 extrasub
='/^VPATH[ ]*=/c\
1473 vpath %.c $(srcdir)\
1474 vpath %.h $(srcdir)\
1475 vpath %.y $(srcdir)\
1476 vpath %.l $(srcdir)\
1477 vpath %.s $(srcdir)\
1478 vpath %.in $(srcdir)\
1479 vpath %.texi $(srcdir)'
1482 #### Given the configuration name, set machfile and opsysfile to the
1483 #### names of the m/*.h and s/*.h files we should use.
1485 ### Canonicalize the configuration name.
1488 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1489 if test -f $ac_dir/install-sh
; then
1491 ac_install_sh
="$ac_aux_dir/install-sh -c"
1493 elif test -f $ac_dir/install.sh
; then
1495 ac_install_sh
="$ac_aux_dir/install.sh -c"
1497 elif test -f $ac_dir/shtool
; then
1499 ac_install_sh
="$ac_aux_dir/shtool install -c"
1503 if test -z "$ac_aux_dir"; then
1504 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1505 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1506 { (exit 1); exit 1; }; }
1508 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1509 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1510 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1512 # Make sure we can run config.sub.
1513 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1514 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1515 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1516 { (exit 1); exit 1; }; }
1518 echo "$as_me:$LINENO: checking build system type" >&5
1519 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1520 if test "${ac_cv_build+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1523 ac_cv_build_alias
=$build_alias
1524 test -z "$ac_cv_build_alias" &&
1525 ac_cv_build_alias
=`$ac_config_guess`
1526 test -z "$ac_cv_build_alias" &&
1527 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1528 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1529 { (exit 1); exit 1; }; }
1530 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1531 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1532 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1533 { (exit 1); exit 1; }; }
1536 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1537 echo "${ECHO_T}$ac_cv_build" >&6
1539 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1540 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1541 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1544 echo "$as_me:$LINENO: checking host system type" >&5
1545 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1546 if test "${ac_cv_host+set}" = set; then
1547 echo $ECHO_N "(cached) $ECHO_C" >&6
1549 ac_cv_host_alias
=$host_alias
1550 test -z "$ac_cv_host_alias" &&
1551 ac_cv_host_alias
=$ac_cv_build_alias
1552 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1553 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1554 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1555 { (exit 1); exit 1; }; }
1558 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1559 echo "${ECHO_T}$ac_cv_host" >&6
1561 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1562 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1563 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1567 configuration
=${host_alias-$host}
1570 ### If you add support for a new configuration, add code to this
1571 ### switch statement to recognize your configuration name and select
1572 ### the appropriate operating system and machine description files.
1574 ### You would hope that you could choose an m/*.h file pretty much
1575 ### based on the machine portion of the configuration name, and an s-
1576 ### file based on the operating system portion. However, it turns out
1577 ### that each m/*.h file is pretty manufacturer-specific - for
1578 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1579 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1580 ### machines. So we basically have to have a special case for each
1581 ### configuration name.
1583 ### As far as handling version numbers on operating systems is
1584 ### concerned, make sure things will fail in a fixable way. If
1585 ### /etc/MACHINES doesn't say anything about version numbers, be
1586 ### prepared to handle anything reasonably. If version numbers
1587 ### matter, be sure /etc/MACHINES says something about it.
1589 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1590 ### "System V Release 4"; he writes, "The old convention encouraged
1591 ### confusion between `system' and `release' levels'."
1593 machine
='' opsys
='' unported
=no
1594 case "${canonical}" in
1599 case "${canonical}" in
1600 alpha
*-*-freebsd*) machine
=alpha
;;
1601 i
[3456]86-*-freebsd*) machine
=intel386
;;
1608 case "${canonical}" in
1609 alpha
*-*-netbsd*) machine
=alpha
;;
1610 i
[3456]86-*-netbsd*) machine
=intel386
;;
1612 # This is somewhat bogus.
1613 machine
=hp9000s300
;;
1614 powerpc-apple-netbsd
*) machine
=macppc
;;
1615 mips-
*-netbsd*) machine
=pmax
;;
1616 mipsel-
*-netbsd*) machine
=pmax
;;
1617 ns32k-
*-netbsd*) machine
=ns32000
;;
1618 powerpc-
*-netbsd*) machine
=macppc
;;
1619 sparc
*-*-netbsd*) machine
=sparc
;;
1620 vax-
*-netbsd*) machine
=vax
;;
1621 arm-
*-netbsd*) machine
=arm
;;
1628 case "${canonical}" in
1629 alpha
*-*-openbsd*) machine
=alpha
;;
1630 i386-
*-openbsd*) machine
=intel386
;;
1631 m68k-
*-openbsd*) machine
=hp9000s300
;;
1632 mipsel-
*-openbsd*) machine
=pmax
;;
1633 ns32k-
*-openbsd*) machine
=ns32000
;;
1634 sparc-
*-openbsd*) machine
=sparc
;;
1635 vax-
*-openbsd*) machine
=vax
;;
1640 arm-acorn-riscix1.1
* )
1641 machine
=acorn opsys
=riscix1-1
1643 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1644 ## This name is riscix12 instead of riscix1.2
1645 ## to avoid a file name conflict on MSDOS.
1646 machine
=acorn opsys
=riscix12
1652 case "${canonical}" in
1653 i
[345]86-*-bsdi*) machine
=intel386
;;
1654 sparc-
*-bsdi*) machine
=sparc
;;
1655 powerpc-
*-bsdi*) machine
=macppc
;;
1657 case "${canonical}" in
1658 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1659 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1660 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1661 *-*-bsdi3* ) opsys
=bsdos3
;;
1662 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1667 ## Strictly speaking, we need the version of the alliant operating
1668 ## system to choose the right machine file, but currently the
1669 ## configuration name doesn't tell us enough to choose the right
1670 ## one; we need to give alliants their own operating system name to
1671 ## do this right. When someone cares, they can help us.
1673 machine
=alliant4 opsys
=bsd4-2
1676 machine
=alliant-2800 opsys
=bsd4-3
1679 ## Alpha (DEC) machines.
1681 machine
=alpha opsys
=osf1
1682 # This is needed to find X11R6.1 libraries for certain tests.
1683 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1684 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1685 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1686 # due to non-traditional preprocessing with the current compiler
1687 # defaults. OSF 4 can also have that compiler version, and there
1688 # seems always to have been a usable /usr/bin/cpp.
1689 NON_GNU_CPP
=/usr
/bin
/cpp
1690 case "${canonical}" in
1691 alpha
*-dec-osf[5-9]*)
1696 alpha
*-*-linux-gnu* )
1697 machine
=alpha opsys
=gnu-linux
1701 machine
=arm opsys
=gnu-linux
1706 machine
=macppc opsys
=gnu-linux
1711 machine
=altos opsys
=usg5-2
1716 machine
=amdahl opsys
=usg5-2-2
1719 ## Apollo, Domain/OS
1721 machine
=apollo opsys
=bsd4-3
1724 ## AT&T 3b2, 3b5, 3b15, 3b20
1726 machine
=att3b opsys
=usg5-2-2
1729 ## AT&T 3b1 - The Mighty Unix PC!
1731 machine
=7300 opsys
=usg5-2-2
1736 machine
=ibmrs6000 opsys
=aix3-2
1741 machine
=dpx2 opsys
=usg5-3
1746 machine
=sps7 opsys
=usg5-2
1749 ## CCI 5/32, 6/32 -- see "Tahoe".
1752 ## I don't know what configuration name to use for this; config.sub
1753 ## doesn't seem to know anything about it. Hey, Celerity users, get
1754 ## in touch with us!
1755 celerity-celerity-bsd
* )
1756 machine
=celerity opsys
=bsd4-2
1760 ## What operating systems does this chip run that Emacs has been
1764 ## We'll use the catch-all code at the bottom to guess the
1765 ## operating system.
1769 mips-compaq-nonstopux
* )
1770 machine
=nonstopux opsys
=nonstopux
1774 *-convex-bsd* |
*-convex-convexos* )
1775 machine
=convex opsys
=bsd4-3
1776 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1777 NON_GNU_CPP
="cc -E -P"
1781 i
[3456]86-cubix-sysv* )
1782 machine
=intel386 opsys
=usg5-3
1786 cydra
*-cydrome-sysv* )
1787 machine
=cydra5 opsys
=usg5-3
1790 ## Data General AViiON Machines
1791 ## DG changed naming conventions with the release of 5.4.4.10, they
1792 ## dropped the initial 5.4 but left the intervening R. Because of the
1793 ## R this shouldn't conflict with older versions of the OS (which I
1794 ## think were named like dgux4.*). In addition, DG new AViiONs series
1795 ## uses either Motorola M88k or Intel Pentium CPUs.
1796 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1797 machine
=aviion opsys
=dgux4
1799 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1800 ## This name is dgux5-4-3 instead of dgux5-4r3
1801 ## to avoid a file name conflict on MSDOS.
1802 machine
=aviion opsys
=dgux5-4-3
1804 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1805 machine
=aviion opsys
=dgux5-4r2
1808 machine
=aviion opsys
=dgux
1811 ## Data General AViiON Intel (x86) Machines
1812 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1813 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1814 i
[345]86-dg-dguxR4* )
1815 machine
=aviion-intel opsys
=dgux4
1819 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1820 machine
=pmax opsys
=bsd4-2
1822 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1823 machine
=pmax opsys
=bsd4-3
1826 machine
=pmax opsys
=ultrix4-3
1829 machine
=pmax opsys
=osf1
1831 mips-dec-mach_bsd4.3
* )
1832 machine
=pmax opsys
=mach-bsd4-3
1835 ## Motorola Delta machines
1836 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1837 machine
=delta opsys
=usg5-3
1838 if test -z "`type gnucc | grep 'not found'`"
1840 if test -s /etc
/167config
1841 then CC
="gnucc -m68040"
1842 else CC
="gnucc -m68881"
1845 if test -z "`type gcc | grep 'not found'`"
1851 m88k-motorola-sysv4
* )
1852 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1853 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1854 # I hope there are not other 4.0 versions for this machine
1855 # which really need usg5-4 instead.
1856 machine
=delta88k opsys
=usg5-4-2
1858 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1859 machine
=delta88k opsys
=usg5-3
1864 machine
=dual opsys
=usg5-2
1866 m68
*-dual-uniplus* )
1867 machine
=dual opsys
=unipl5-2
1872 machine
=elxsi opsys
=usg5-2
1877 machine
=ns16000 opsys
=umax
1880 ## The GEC 63 - apparently, this port isn't really finished yet.
1881 # I'm sure we finished off the last of the machines, though. -- fx
1883 ## Gould Power Node and NP1
1885 machine
=gould opsys
=bsd4-2
1888 machine
=gould opsys
=bsd4-3
1891 machine
=gould-np1 opsys
=bsd4-3
1894 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1895 ## as far as Emacs is concerned).
1897 # Build needs to be different on 7.0 and later releases
1898 case "`uname -r`" in
1899 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
1900 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
1902 NON_GNU_CPP
="/lib/cpp"
1904 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1906 machine
=nh3000 opsys
=cxux
1908 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1909 powerpc-harris-powerunix
)
1910 machine
=nh6000 opsys
=powerunix
1911 NON_GNU_CPP
="cc -Xo -E -P"
1913 ## SR2001/SR2201 running HI-UX/MPP
1914 hppa1.1
-hitachi-hiuxmpp* )
1915 machine
=sr2k opsys
=hiuxmpp
1917 hppa1.1
-hitachi-hiuxwe2* )
1918 machine
=sr2k opsys
=hiuxwe2
1921 xps
*-honeywell-sysv* )
1922 machine
=xps100 opsys
=usg5-2
1925 ## HP 9000 series 200 or 300
1927 machine
=hp9000s300 opsys
=bsd4-3
1929 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1931 case "`uname -r`" in
1932 ## Someone's system reports A.B8.05 for this.
1933 ## I wonder what other possibilities there are.
1934 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1935 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1936 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
1937 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
1938 *) machine
=hp9000s300 opsys
=hpux
;;
1942 ## HP 9000 series 700 and 800, running HP/UX
1944 machine
=hp800 opsys
=hpux
1947 machine
=hp800 opsys
=hpux8
1949 hppa
*-hp-hpux9shr* )
1950 machine
=hp800 opsys
=hpux9shr
1953 machine
=hp800 opsys
=hpux9
1956 machine
=hp800 opsys
=hpux10
1958 hppa
*-hp-hpux1[1-9]* )
1959 machine
=hp800 opsys
=hpux11
1962 hppa
*-*-linux-gnu* )
1963 machine
=hp800 opsys
=gnu-linux
1966 ## HP 9000 series 700 and 800, running HP/UX
1968 ## Cross-compilation? Nah!
1969 case "`uname -r`" in
1970 ## Someone's system reports A.B8.05 for this.
1971 ## I wonder what other possibilities there are.
1972 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
1973 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
1974 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
1975 *) machine
=hp800 opsys
=hpux10
;;
1979 machine
=hp800 opsys
=nextstep
1984 machine
=orion opsys
=bsd4-2
1986 clipper-orion-bsd
* )
1987 machine
=orion105 opsys
=bsd4-2
1991 i
[3456]86-ibm-aix1.1
* )
1992 machine
=ibmps2-aix opsys
=usg5-2-2
1994 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
1995 machine
=ibmps2-aix opsys
=usg5-3
1998 machine
=ibm370aix opsys
=usg5-3
2001 machine
=ibms390 opsys
=gnu-linux
2003 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2004 machine
=ibmrs6000 opsys
=aix3-1
2006 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2007 machine
=ibmrs6000 opsys
=aix3-2-5
2009 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2010 machine
=ibmrs6000 opsys
=aix4-1
2012 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2013 machine
=ibmrs6000 opsys
=aix4-2
2015 rs6000-ibm-aix5.1
* | powerpc-ibm-aix5.1
* )
2016 machine
=ibmrs6000 opsys
=aix4-2
2018 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2019 machine
=ibmrs6000 opsys
=aix4
2021 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2022 machine
=ibmrs6000 opsys
=aix4-1
2024 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2025 machine
=ibmrs6000 opsys
=aix3-2
2028 machine
=ibmrt opsys
=bsd4-3
2031 machine
=ibmrt opsys
=bsd4-2
2034 machine
=ibmrt opsys
=bsd4-3
2037 machine
=ibmrt opsys
=bsd4-2
2040 machine
=ibmrt opsys
=bsd4-3
2043 machine
=ibmrt opsys
=bsd4-3
2046 machine
=ibmrt-aix opsys
=usg5-2-2
2049 ## Integrated Solutions `Optimum V'
2051 machine
=isi-ov opsys
=bsd4-2
2054 machine
=isi-ov opsys
=bsd4-3
2057 ## Intel 386 machines where we do care about the manufacturer
2058 i
[3456]86-intsys-sysv* )
2059 machine
=is386 opsys
=usg5-2-2
2063 i
[3456]86-prime-sysv* )
2064 machine
=i386 opsys
=usg5-3
2067 ## Sequent Symmetry running Dynix
2068 i
[3456]86-sequent-bsd* )
2069 machine
=symmetry opsys
=bsd4-3
2072 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2073 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2074 machine
=sequent-ptx opsys
=ptx4
2075 NON_GNU_CPP
=/lib
/cpp
2078 ## Sequent Symmetry running DYNIX/ptx
2079 ## Use the old cpp rather than the newer ANSI one.
2080 i
[3456]86-sequent-ptx* )
2081 machine
=sequent-ptx opsys
=ptx
2082 NON_GNU_CPP
="/lib/cpp"
2085 ## ncr machine running svr4.3.
2086 i
[3456]86-ncr-sysv4.3
)
2087 machine
=ncr386 opsys
=usg5-4-3
2090 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2091 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2092 i
[3456]86-ncr-sysv* )
2093 machine
=ncr386 opsys
=usg5-4-2
2096 ## Intel Paragon OSF/1
2098 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2103 machine
=i860 opsys
=usg5-4
2104 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2105 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2108 ## Macintosh PowerPC
2109 powerpc
*-*-linux-gnu* )
2110 machine
=macppc opsys
=gnu-linux
2113 ## Masscomp machines
2114 m68
*-masscomp-rtu* )
2115 machine
=masscomp opsys
=rtu
2118 ## Megatest machines
2119 m68
*-megatest-bsd* )
2120 machine
=mega68 opsys
=bsd4-2
2123 ## Workstations sold by MIPS
2124 ## This is not necessarily all workstations using the MIPS processor -
2125 ## Irises are produced by SGI, and DECstations by DEC.
2127 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2128 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2129 ## it gives for choosing between the alternatives seems to be "Use
2130 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2131 ## the BSD world." I'll assume that these are instructions for
2132 ## handling two odd situations, and that every other situation
2133 ## should use mips.h and usg5-2-2, they being listed first.
2136 ## Fall through to the general code at the bottom to decide on the OS.
2138 mips-mips-riscos4
* )
2139 machine
=mips4 opsys
=bsd4-3
2140 NON_GNU_CC
="cc -systype bsd43"
2141 NON_GNU_CPP
="cc -systype bsd43 -E"
2143 mips-mips-riscos5
* )
2144 machine
=mips4 opsys
=riscos5
2145 NON_GNU_CC
="cc -systype bsd43"
2146 NON_GNU_CPP
="cc -systype bsd43 -E"
2149 machine
=mips opsys
=bsd4-3
2152 machine
=mips opsys
=usg5-2-2
2156 m68
*-next-* | m68k-
*-nextstep* )
2157 machine
=m68k opsys
=nextstep
2160 ## The complete machine from National Semiconductor
2162 machine
=ns32000 opsys
=usg5-2
2166 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2167 machine
=tower32 opsys
=usg5-2-2
2169 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2170 machine
=tower32v3 opsys
=usg5-3
2175 machine
=ews4800 opsys
=ux4800
2178 ## Nixdorf Targon 31
2179 m68
*-nixdorf-sysv* )
2180 machine
=targon31 opsys
=usg5-2-2
2185 machine
=nu opsys
=usg5-2
2190 machine
=plexus opsys
=usg5-2
2193 ## PowerPC reference platform
2194 powerpcle-
*-solaris2* )
2200 ## I don't really have any idea what sort of processor the Pyramid has,
2201 ## so I'm assuming it is its own architecture.
2202 pyramid-pyramid-bsd
* )
2203 machine
=pyramid opsys
=bsd4-2
2207 ns32k-sequent-bsd4.2
* )
2208 machine
=sequent opsys
=bsd4-2
2210 ns32k-sequent-bsd4.3
* )
2211 machine
=sequent opsys
=bsd4-3
2215 mips-siemens-sysv
* | mips-sni-sysv
*)
2216 machine
=mips-siemens opsys
=usg5-4
2217 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2218 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2221 ## Silicon Graphics machines
2222 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2224 machine
=irist opsys
=iris3-5
2226 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2227 machine
=irist opsys
=iris3-6
2231 machine
=iris4d opsys
=irix3-3
2234 machine
=iris4d opsys
=irix4-0
2237 machine
=iris4d opsys
=irix6-5
2238 # Without defining _LANGUAGE_C, things get masked out in the headers
2239 # so that, for instance, grepping for `free' in stdlib.h fails and
2240 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2241 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2242 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2245 machine
=iris4d opsys
=irix6-0
2246 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2247 # but presumably it does no harm.
2248 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2249 # -32 probably isn't necessary in later v.6s -- anyone know which?
2250 NON_GCC_TEST_OPTIONS
=-32
2252 mips-sgi-irix5.
[01]* )
2253 machine
=iris4d opsys
=irix5-0
2255 mips-sgi-irix5
* | mips-sgi-irix
* )
2256 machine
=iris4d opsys
=irix5-2
2261 machine
=news opsys
=bsd4-2
2264 machine
=news opsys
=bsd4-3
2266 m68
*-sony-newsos3* | m68
*-sony-news3*)
2267 machine
=news opsys
=bsd4-3
2269 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2270 machine
=news-risc opsys
=bsd4-3
2272 mips-sony-newsos6
* )
2273 machine
=news-r6 opsys
=newsos6
2276 machine
=news-risc opsys
=newsos5
2281 machine
=stride opsys
=usg5-2
2285 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2286 machine
=sparc opsys
=gnu-linux
2289 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2290 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2291 | rs6000-
*-solaris2*)
2292 case "${canonical}" in
2293 m68
*-sunos1* ) machine
=sun1
;;
2294 m68
*-sunos2* ) machine
=sun2
;;
2295 m68
* ) machine
=sun3
;;
2296 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2297 i
[3456]86-*-* ) machine
=intel386
;;
2298 powerpcle
* ) machine
=powerpcle
;;
2299 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2300 sparc
* ) machine
=sparc
;;
2303 case "${canonical}" in
2304 ## The Sun386 didn't get past 4.0.
2305 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2306 *-sunos4.0
* ) opsys
=sunos4-0
;;
2307 *-sunos4.1.
[3-9]*noshare
)
2308 ## This name is sunos413 instead of sunos4-1-3
2309 ## to avoid a file name conflict on MSDOS.
2311 NON_GNU_CPP
=/usr
/lib
/cpp
2312 NON_GCC_TEST_OPTIONS
=-Bstatic
2313 GCC_TEST_OPTIONS
=-static
2315 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2317 NON_GNU_CPP
=/usr
/lib
/cpp
2319 *-sunos4* |
*-sunos )
2321 NON_GCC_TEST_OPTIONS
=-Bstatic
2322 GCC_TEST_OPTIONS
=-static
2324 *-sunos5.3
* |
*-solaris2.3
* )
2326 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2328 *-sunos5.4
* |
*-solaris2.4
* )
2330 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2333 *-sunos5.5
* |
*-solaris2.5
* )
2335 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2338 *-sunos5* |
*-solaris* )
2340 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2344 ## Watch out for a compiler that we know will not work.
2345 case "${canonical}" in
2346 *-solaris* |
*-sunos5* )
2347 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2348 ## /usr/ucb/cc doesn't work;
2349 ## we should find some other compiler that does work.
2357 machine
=sparc opsys
=nextstep
2361 m68
*-tadpole-sysv* )
2362 machine
=tad68k opsys
=usg5-3
2366 tahoe-tahoe-bsd4.2
* )
2367 machine
=tahoe opsys
=bsd4-2
2369 tahoe-tahoe-bsd4.3
* )
2370 machine
=tahoe opsys
=bsd4-3
2373 ## Tandem Integrity S2
2375 machine
=tandem-s2 opsys
=usg5-3
2379 m88k-tektronix-sysv3
* )
2380 machine
=tekxd88 opsys
=usg5-3
2383 ## Tektronix 16000 box (6130?)
2384 ns16k-tektronix-bsd
* )
2385 machine
=ns16000 opsys
=bsd4-2
2388 ## src/m/tek4300.h hints that this is a m68k machine.
2389 m68
*-tektronix-bsd* )
2390 machine
=tek4300 opsys
=bsd4-3
2394 ## We seem to have lost the machine-description file titan.h!
2396 machine
=titan opsys
=usg5-3
2399 ## Ustation E30 (SS5E)
2400 m68
*-unisys-uniplus* )
2401 machine
=ustation opsystem
=unipl5-2
2407 case "${canonical}" in
2408 *-bsd4.1
* ) opsys
=bsd4-1
;;
2409 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2410 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2411 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2412 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2413 *-vms* ) opsys
=vms
;;
2419 ns16k-whitechapel-
* )
2421 ## We don't know what sort of OS runs on these; we'll let the
2422 ## operating system guessing code below try.
2427 machine
=wicat opsys
=usg5-2
2432 machine
=ia64 opsys
=gnu-linux
2435 ## Intel 386 machines where we don't care about the manufacturer
2438 case "${canonical}" in
2439 *-lynxos* ) opsys
=lynxos
;;
2440 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2441 *-isc2.2
* ) opsys
=isc2-2
;;
2442 *-isc4.0
* ) opsys
=isc4-0
;;
2443 *-isc4.
* ) opsys
=isc4-1
2444 GCC_TEST_OPTIONS
=-posix
2445 NON_GCC_TEST_OPTIONS
=-Xp
2447 *-isc* ) opsys
=isc3-0
;;
2448 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2449 *-esix* ) opsys
=esix
;;
2450 *-xenix* ) opsys
=xenix
;;
2451 *-linux-gnu* ) opsys
=gnu-linux
;;
2452 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2453 *-sco3.2v5
* ) opsys
=sco5
2454 NON_GNU_CPP
=/lib
/cpp
2455 # Prevent -belf from being passed to $CPP.
2456 # /lib/cpp does not accept it.
2457 OVERRIDE_CPPFLAGS
=" "
2459 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2460 *-386bsd* ) opsys
=386bsd
;;
2461 *-nextstep* ) opsys
=nextstep
;;
2462 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2466 ## m68k Linux-based GNU system
2468 machine
=m68k opsys
=gnu-linux
2471 ## Mips Linux-based GNU system
2473 machine
=mips opsys
=gnu-linux
2477 sparc-fujitsu-sysv4
* )
2478 machine
=sparc opsys
=uxpds
2479 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2484 f301-fujitsu-uxpv4.1
)
2485 machine
=f301 opsys
=uxpv
2488 ## Darwin / Mac OS X
2489 powerpc-apple-darwin
* )
2490 machine
=powermac opsys
=darwin
2491 # Define CPP as follows to make autoconf work correctly.
2492 CPP
="cc -E -traditional-cpp"
2500 ### If the code above didn't choose an operating system, just choose
2501 ### an operating system based on the configuration name. You really
2502 ### only want to use this when you have no idea what the right
2503 ### operating system is; if you know what operating systems a machine
2504 ### runs, it's cleaner to make it explicit in the case statement
2506 if test x
"${opsys}" = x
; then
2507 case "${canonical}" in
2508 *-gnu* ) opsys
=gnu
;;
2509 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2510 *-bsd4.2
) opsys
=bsd4-2
;;
2511 *-bsd4.3
) opsys
=bsd4-3
;;
2512 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2513 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2514 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2515 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2516 *-sysv4.2uw
* ) opsys
=unixware
;;
2517 *-sysv4.1
* |
*-sysvr4.1
* )
2518 NON_GNU_CPP
=/usr
/lib
/cpp
2520 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2521 if [ x
$NON_GNU_CPP = x
]; then
2522 if [ -f /usr
/ccs
/lib
/cpp
]; then
2523 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2525 NON_GNU_CPP
=/lib
/cpp
2529 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2537 if test $unported = yes; then
2538 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2539 Check \`etc/MACHINES' for recognized configuration names." >&5
2540 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2541 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2542 { (exit 1); exit 1; }; }
2545 machfile
="m/${machine}.h"
2546 opsysfile
="s/${opsys}.h"
2549 #### Choose a compiler.
2550 test -n "$CC" && cc_specified
=yes
2552 # Save the value of CFLAGS that the user specified.
2553 SPECIFIED_CFLAGS
="$CFLAGS"
2556 "yes" ) CC
="gcc" GCC
=yes ;;
2557 "no" ) : ${CC=cc} ;;
2561 ac_cpp
='$CPP $CPPFLAGS'
2562 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2563 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2564 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2565 if test -n "$ac_tool_prefix"; then
2566 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2567 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2568 echo "$as_me:$LINENO: checking for $ac_word" >&5
2569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2570 if test "${ac_cv_prog_CC+set}" = set; then
2571 echo $ECHO_N "(cached) $ECHO_C" >&6
2573 if test -n "$CC"; then
2574 ac_cv_prog_CC
="$CC" # Let the user override the test.
2576 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2580 test -z "$as_dir" && as_dir
=.
2581 for ac_exec_ext
in '' $ac_executable_extensions; do
2582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2583 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2593 if test -n "$CC"; then
2594 echo "$as_me:$LINENO: result: $CC" >&5
2595 echo "${ECHO_T}$CC" >&6
2597 echo "$as_me:$LINENO: result: no" >&5
2598 echo "${ECHO_T}no" >&6
2602 if test -z "$ac_cv_prog_CC"; then
2604 # Extract the first word of "gcc", so it can be a program name with args.
2605 set dummy gcc
; ac_word
=$2
2606 echo "$as_me:$LINENO: checking for $ac_word" >&5
2607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2608 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2609 echo $ECHO_N "(cached) $ECHO_C" >&6
2611 if test -n "$ac_ct_CC"; then
2612 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2614 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2618 test -z "$as_dir" && as_dir
=.
2619 for ac_exec_ext
in '' $ac_executable_extensions; do
2620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2621 ac_cv_prog_ac_ct_CC
="gcc"
2622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2630 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2631 if test -n "$ac_ct_CC"; then
2632 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2633 echo "${ECHO_T}$ac_ct_CC" >&6
2635 echo "$as_me:$LINENO: result: no" >&5
2636 echo "${ECHO_T}no" >&6
2644 if test -z "$CC"; then
2645 if test -n "$ac_tool_prefix"; then
2646 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2647 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2648 echo "$as_me:$LINENO: checking for $ac_word" >&5
2649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2650 if test "${ac_cv_prog_CC+set}" = set; then
2651 echo $ECHO_N "(cached) $ECHO_C" >&6
2653 if test -n "$CC"; then
2654 ac_cv_prog_CC
="$CC" # Let the user override the test.
2656 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2660 test -z "$as_dir" && as_dir
=.
2661 for ac_exec_ext
in '' $ac_executable_extensions; do
2662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2663 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2673 if test -n "$CC"; then
2674 echo "$as_me:$LINENO: result: $CC" >&5
2675 echo "${ECHO_T}$CC" >&6
2677 echo "$as_me:$LINENO: result: no" >&5
2678 echo "${ECHO_T}no" >&6
2682 if test -z "$ac_cv_prog_CC"; then
2684 # Extract the first word of "cc", so it can be a program name with args.
2685 set dummy cc
; ac_word
=$2
2686 echo "$as_me:$LINENO: checking for $ac_word" >&5
2687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2688 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2689 echo $ECHO_N "(cached) $ECHO_C" >&6
2691 if test -n "$ac_ct_CC"; then
2692 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2694 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2698 test -z "$as_dir" && as_dir
=.
2699 for ac_exec_ext
in '' $ac_executable_extensions; do
2700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2701 ac_cv_prog_ac_ct_CC
="cc"
2702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2710 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2711 if test -n "$ac_ct_CC"; then
2712 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2713 echo "${ECHO_T}$ac_ct_CC" >&6
2715 echo "$as_me:$LINENO: result: no" >&5
2716 echo "${ECHO_T}no" >&6
2725 if test -z "$CC"; then
2726 # Extract the first word of "cc", so it can be a program name with args.
2727 set dummy cc
; ac_word
=$2
2728 echo "$as_me:$LINENO: checking for $ac_word" >&5
2729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2730 if test "${ac_cv_prog_CC+set}" = set; then
2731 echo $ECHO_N "(cached) $ECHO_C" >&6
2733 if test -n "$CC"; then
2734 ac_cv_prog_CC
="$CC" # Let the user override the test.
2737 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2741 test -z "$as_dir" && as_dir
=.
2742 for ac_exec_ext
in '' $ac_executable_extensions; do
2743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2744 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2745 ac_prog_rejected
=yes
2749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2755 if test $ac_prog_rejected = yes; then
2756 # We found a bogon in the path, so make sure we never use it.
2757 set dummy
$ac_cv_prog_CC
2759 if test $# != 0; then
2760 # We chose a different compiler from the bogus one.
2761 # However, it has the same basename, so the bogon will be chosen
2762 # first if we set CC to just the basename; use the full file name.
2764 set dummy
"$as_dir/$ac_word" ${1+"$@"}
2772 if test -n "$CC"; then
2773 echo "$as_me:$LINENO: result: $CC" >&5
2774 echo "${ECHO_T}$CC" >&6
2776 echo "$as_me:$LINENO: result: no" >&5
2777 echo "${ECHO_T}no" >&6
2781 if test -z "$CC"; then
2782 if test -n "$ac_tool_prefix"; then
2785 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2786 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2787 echo "$as_me:$LINENO: checking for $ac_word" >&5
2788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2789 if test "${ac_cv_prog_CC+set}" = set; then
2790 echo $ECHO_N "(cached) $ECHO_C" >&6
2792 if test -n "$CC"; then
2793 ac_cv_prog_CC
="$CC" # Let the user override the test.
2795 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2799 test -z "$as_dir" && as_dir
=.
2800 for ac_exec_ext
in '' $ac_executable_extensions; do
2801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2802 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2812 if test -n "$CC"; then
2813 echo "$as_me:$LINENO: result: $CC" >&5
2814 echo "${ECHO_T}$CC" >&6
2816 echo "$as_me:$LINENO: result: no" >&5
2817 echo "${ECHO_T}no" >&6
2820 test -n "$CC" && break
2823 if test -z "$CC"; then
2827 # Extract the first word of "$ac_prog", so it can be a program name with args.
2828 set dummy
$ac_prog; ac_word
=$2
2829 echo "$as_me:$LINENO: checking for $ac_word" >&5
2830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2831 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2832 echo $ECHO_N "(cached) $ECHO_C" >&6
2834 if test -n "$ac_ct_CC"; then
2835 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2837 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2841 test -z "$as_dir" && as_dir
=.
2842 for ac_exec_ext
in '' $ac_executable_extensions; do
2843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2844 ac_cv_prog_ac_ct_CC
="$ac_prog"
2845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2853 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2854 if test -n "$ac_ct_CC"; then
2855 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2856 echo "${ECHO_T}$ac_ct_CC" >&6
2858 echo "$as_me:$LINENO: result: no" >&5
2859 echo "${ECHO_T}no" >&6
2862 test -n "$ac_ct_CC" && break
2871 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2872 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2873 { (exit 1); exit 1; }; }
2875 # Provide some information about the compiler.
2876 echo "$as_me:$LINENO:" \
2877 "checking for C compiler version" >&5
2878 ac_compiler
=`set X $ac_compile; echo $2`
2879 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2880 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); }
2884 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2885 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }
2889 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2890 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }
2895 cat >conftest.
$ac_ext <<_ACEOF
2896 #line $LINENO "configure"
2897 #include "confdefs.h"
2899 #ifdef F77_DUMMY_MAIN
2903 int F77_DUMMY_MAIN() { return 1; }
2913 ac_clean_files_save
=$ac_clean_files
2914 ac_clean_files
="$ac_clean_files a.out a.exe"
2915 # Try to create an executable without -o first, disregard a.out.
2916 # It will help us diagnose broken compilers, and finding out an intuition
2918 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2919 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2920 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2921 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2922 (eval $ac_link_default) 2>&5
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }; then
2926 # Find the output, starting from the most likely. This scheme is
2927 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2930 # Be careful to initialize this variable, since it used to be cached.
2931 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2933 for ac_file
in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2934 ls a.out conftest 2>/dev/null;
2935 ls a.* conftest.* 2>/dev/null`; do
2937 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2938 a.out
) # We found the default executable, but exeext='' is most
2941 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2942 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2949 echo "$as_me: failed program was:" >&5
2950 cat conftest.
$ac_ext >&5
2951 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2952 echo "$as_me: error: C compiler cannot create executables" >&2;}
2953 { (exit 77); exit 77; }; }
2956 ac_exeext
=$ac_cv_exeext
2957 echo "$as_me:$LINENO: result: $ac_file" >&5
2958 echo "${ECHO_T}$ac_file" >&6
2960 # Check the compiler produces executables we can run. If not, either
2961 # the compiler is broken, or we cross compile.
2962 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2963 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2964 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2965 # If not cross compiling, check that we can run a simple program.
2966 if test "$cross_compiling" != yes; then
2967 if { ac_try
='./$ac_file'
2968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); }; }; then
2975 if test "$cross_compiling" = maybe
; then
2978 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2979 If you meant to cross compile, use \`--host'." >&5
2980 echo "$as_me: error: cannot run C compiled programs.
2981 If you meant to cross compile, use \`--host'." >&2;}
2982 { (exit 1); exit 1; }; }
2986 echo "$as_me:$LINENO: result: yes" >&5
2987 echo "${ECHO_T}yes" >&6
2989 rm -f a.out a.exe conftest
$ac_cv_exeext
2990 ac_clean_files
=$ac_clean_files_save
2991 # Check the compiler produces executables we can run. If not, either
2992 # the compiler is broken, or we cross compile.
2993 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2994 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2995 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2996 echo "${ECHO_T}$cross_compiling" >&6
2998 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2999 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3001 (eval $ac_link) 2>&5
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); }; then
3005 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3006 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3007 # work properly (i.e., refer to `conftest.exe'), while it won't with
3009 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
3011 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3012 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3019 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
3020 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
3021 { (exit 1); exit 1; }; }
3024 rm -f conftest
$ac_cv_exeext
3025 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3026 echo "${ECHO_T}$ac_cv_exeext" >&6
3028 rm -f conftest.
$ac_ext
3029 EXEEXT
=$ac_cv_exeext
3031 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3032 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3033 if test "${ac_cv_objext+set}" = set; then
3034 echo $ECHO_N "(cached) $ECHO_C" >&6
3036 cat >conftest.
$ac_ext <<_ACEOF
3037 #line $LINENO "configure"
3038 #include "confdefs.h"
3040 #ifdef F77_DUMMY_MAIN
3044 int F77_DUMMY_MAIN() { return 1; }
3054 rm -f conftest.o conftest.obj
3055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3056 (eval $ac_compile) 2>&5
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); }; then
3060 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3062 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3063 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3068 echo "$as_me: failed program was:" >&5
3069 cat conftest.
$ac_ext >&5
3070 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
3071 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
3072 { (exit 1); exit 1; }; }
3075 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3077 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3078 echo "${ECHO_T}$ac_cv_objext" >&6
3079 OBJEXT
=$ac_cv_objext
3081 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3082 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3083 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3084 echo $ECHO_N "(cached) $ECHO_C" >&6
3086 cat >conftest.
$ac_ext <<_ACEOF
3087 #line $LINENO "configure"
3088 #include "confdefs.h"
3090 #ifdef F77_DUMMY_MAIN
3094 int F77_DUMMY_MAIN() { return 1; }
3107 rm -f conftest.
$ac_objext
3108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3109 (eval $ac_compile) 2>&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); } &&
3113 { ac_try
='test -s conftest.$ac_objext'
3114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); }; }; then
3121 echo "$as_me: failed program was:" >&5
3122 cat conftest.
$ac_ext >&5
3125 rm -f conftest.
$ac_objext conftest.
$ac_ext
3126 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3129 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3130 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3131 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3132 ac_test_CFLAGS
=${CFLAGS+set}
3133 ac_save_CFLAGS
=$CFLAGS
3135 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3136 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3137 if test "${ac_cv_prog_cc_g+set}" = set; then
3138 echo $ECHO_N "(cached) $ECHO_C" >&6
3140 cat >conftest.
$ac_ext <<_ACEOF
3141 #line $LINENO "configure"
3142 #include "confdefs.h"
3144 #ifdef F77_DUMMY_MAIN
3148 int F77_DUMMY_MAIN() { return 1; }
3158 rm -f conftest.
$ac_objext
3159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3160 (eval $ac_compile) 2>&5
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); } &&
3164 { ac_try
='test -s conftest.$ac_objext'
3165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }; }; then
3172 echo "$as_me: failed program was:" >&5
3173 cat conftest.
$ac_ext >&5
3176 rm -f conftest.
$ac_objext conftest.
$ac_ext
3178 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3179 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3180 if test "$ac_test_CFLAGS" = set; then
3181 CFLAGS
=$ac_save_CFLAGS
3182 elif test $ac_cv_prog_cc_g = yes; then
3183 if test "$GCC" = yes; then
3189 if test "$GCC" = yes; then
3195 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3196 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3197 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3198 echo $ECHO_N "(cached) $ECHO_C" >&6
3200 ac_cv_prog_cc_stdc
=no
3202 cat >conftest.
$ac_ext <<_ACEOF
3203 #line $LINENO "configure"
3204 #include "confdefs.h"
3207 #include <sys/types.h>
3208 #include <sys/stat.h>
3209 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3210 struct buf { int x; };
3211 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3212 static char *e (p, i)
3218 static char *f (char * (*g) (char **, int), char **p, ...)
3223 s = g (p, va_arg (v,int));
3227 int test (int i, double x);
3228 struct s1 {int (*f) (int a);};
3229 struct s2 {int (*f) (double a);};
3230 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3233 #ifdef F77_DUMMY_MAIN
3237 int F77_DUMMY_MAIN() { return 1; }
3242 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3247 # Don't try gcc -ansi; that turns off useful extensions and
3248 # breaks some systems' header files.
3249 # AIX -qlanglvl=ansi
3250 # Ultrix and OSF/1 -std1
3251 # HP-UX 10.20 and later -Ae
3252 # HP-UX older versions -Aa -D_HPUX_SOURCE
3253 # SVR4 -Xc -D__EXTENSIONS__
3254 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3256 CC
="$ac_save_CC $ac_arg"
3257 rm -f conftest.
$ac_objext
3258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3259 (eval $ac_compile) 2>&5
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); } &&
3263 { ac_try
='test -s conftest.$ac_objext'
3264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }; }; then
3269 ac_cv_prog_cc_stdc
=$ac_arg
3272 echo "$as_me: failed program was:" >&5
3273 cat conftest.
$ac_ext >&5
3275 rm -f conftest.
$ac_objext
3277 rm -f conftest.
$ac_ext conftest.
$ac_objext
3282 case "x$ac_cv_prog_cc_stdc" in
3284 echo "$as_me:$LINENO: result: none needed" >&5
3285 echo "${ECHO_T}none needed" >&6 ;;
3287 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3288 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3289 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3292 # Some people use a C++ compiler to compile C. Since we use `exit',
3293 # in C++ we need to declare it. In case someone uses the same compiler
3294 # for both compiling C and C++ we need to have the C++ compiler decide
3295 # the declaration of exit, since it's the most demanding environment.
3296 cat >conftest.
$ac_ext <<_ACEOF
3301 rm -f conftest.
$ac_objext
3302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3303 (eval $ac_compile) 2>&5
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); } &&
3307 { ac_try
='test -s conftest.$ac_objext'
3308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); }; }; then
3313 for ac_declaration
in \
3315 '#include <stdlib.h>' \
3316 'extern "C" void std::exit (int) throw (); using std::exit;' \
3317 'extern "C" void std::exit (int); using std::exit;' \
3318 'extern "C" void exit (int) throw ();' \
3319 'extern "C" void exit (int);' \
3322 cat >conftest.
$ac_ext <<_ACEOF
3323 #line $LINENO "configure"
3324 #include "confdefs.h"
3327 #ifdef F77_DUMMY_MAIN
3331 int F77_DUMMY_MAIN() { return 1; }
3341 rm -f conftest.
$ac_objext
3342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3343 (eval $ac_compile) 2>&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); } &&
3347 { ac_try
='test -s conftest.$ac_objext'
3348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }; }; then
3355 echo "$as_me: failed program was:" >&5
3356 cat conftest.
$ac_ext >&5
3359 rm -f conftest.
$ac_objext conftest.
$ac_ext
3360 cat >conftest.
$ac_ext <<_ACEOF
3361 #line $LINENO "configure"
3362 #include "confdefs.h"
3364 #ifdef F77_DUMMY_MAIN
3368 int F77_DUMMY_MAIN() { return 1; }
3378 rm -f conftest.
$ac_objext
3379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3380 (eval $ac_compile) 2>&5
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); } &&
3384 { ac_try
='test -s conftest.$ac_objext'
3385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); }; }; then
3392 echo "$as_me: failed program was:" >&5
3393 cat conftest.
$ac_ext >&5
3395 rm -f conftest.
$ac_objext conftest.
$ac_ext
3398 if test -n "$ac_declaration"; then
3399 echo '#ifdef __cplusplus' >>confdefs.h
3400 echo $ac_declaration >>confdefs.h
3401 echo '#endif' >>confdefs.h
3405 echo "$as_me: failed program was:" >&5
3406 cat conftest.
$ac_ext >&5
3408 rm -f conftest.
$ac_objext conftest.
$ac_ext
3410 ac_cpp
='$CPP $CPPFLAGS'
3411 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3412 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3413 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3416 # On Suns, sometimes $CPP names a directory.
3417 if test -n "$CPP" && test -d "$CPP"; then
3421 #### Some systems specify a CPP to use unless we are using GCC.
3422 #### Now that we know whether we are using GCC, we can decide whether
3423 #### to use that one.
3424 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3429 #### Some systems specify a CC to use unless we are using GCC.
3430 #### Now that we know whether we are using GCC, we can decide whether
3431 #### to use that one.
3432 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3433 test x
$cc_specified != xyes
3438 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3440 CC
="$CC $GCC_TEST_OPTIONS"
3443 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3445 CC
="$CC $NON_GCC_TEST_OPTIONS"
3448 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
3450 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
3453 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
3455 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
3458 #### Some other nice autoconf tests. If you add a test here which
3459 #### should make an entry in src/config.h, don't forget to add an
3460 #### #undef clause to src/config.h.in for autoconf to modify.
3462 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3463 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3465 if test "$LN_S" = "ln -s"; then
3466 echo "$as_me:$LINENO: result: yes" >&5
3467 echo "${ECHO_T}yes" >&6
3469 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3470 echo "${ECHO_T}no, using $LN_S" >&6
3474 ac_cpp
='$CPP $CPPFLAGS'
3475 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3476 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3477 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3478 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3479 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3480 # On Suns, sometimes $CPP names a directory.
3481 if test -n "$CPP" && test -d "$CPP"; then
3484 if test -z "$CPP"; then
3485 if test "${ac_cv_prog_CPP+set}" = set; then
3486 echo $ECHO_N "(cached) $ECHO_C" >&6
3488 # Double quotes because CPP needs to be expanded
3489 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3492 for ac_c_preproc_warn_flag
in '' yes
3494 # Use a header file that comes with gcc, so configuring glibc
3495 # with a fresh cross-compiler works.
3496 # On the NeXT, cc -E runs the code through the compiler's parser,
3497 # not just through cpp. "Syntax error" is here to catch this case.
3498 cat >conftest.
$ac_ext <<_ACEOF
3499 #line $LINENO "configure"
3500 #include "confdefs.h"
3504 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3505 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3507 egrep -v '^ *\+' conftest.er1
>conftest.err
3509 cat conftest.err
>&5
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); } >/dev
/null
; then
3512 if test -s conftest.err
; then
3513 ac_cpp_err
=$ac_c_preproc_warn_flag
3520 if test -z "$ac_cpp_err"; then
3523 echo "$as_me: failed program was:" >&5
3524 cat conftest.
$ac_ext >&5
3525 # Broken: fails on valid input.
3528 rm -f conftest.err conftest.
$ac_ext
3530 # OK, works on sane cases. Now check whether non-existent headers
3531 # can be detected and how.
3532 cat >conftest.
$ac_ext <<_ACEOF
3533 #line $LINENO "configure"
3534 #include "confdefs.h"
3535 #include <ac_nonexistent.h>
3537 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3538 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3540 egrep -v '^ *\+' conftest.er1
>conftest.err
3542 cat conftest.err
>&5
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); } >/dev
/null
; then
3545 if test -s conftest.err
; then
3546 ac_cpp_err
=$ac_c_preproc_warn_flag
3553 if test -z "$ac_cpp_err"; then
3554 # Broken: success on invalid input.
3557 echo "$as_me: failed program was:" >&5
3558 cat conftest.
$ac_ext >&5
3559 # Passes both tests.
3563 rm -f conftest.err conftest.
$ac_ext
3566 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3567 rm -f conftest.err conftest.
$ac_ext
3568 if $ac_preproc_ok; then
3580 echo "$as_me:$LINENO: result: $CPP" >&5
3581 echo "${ECHO_T}$CPP" >&6
3583 for ac_c_preproc_warn_flag
in '' yes
3585 # Use a header file that comes with gcc, so configuring glibc
3586 # with a fresh cross-compiler works.
3587 # On the NeXT, cc -E runs the code through the compiler's parser,
3588 # not just through cpp. "Syntax error" is here to catch this case.
3589 cat >conftest.
$ac_ext <<_ACEOF
3590 #line $LINENO "configure"
3591 #include "confdefs.h"
3595 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3596 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3598 egrep -v '^ *\+' conftest.er1
>conftest.err
3600 cat conftest.err
>&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } >/dev
/null
; then
3603 if test -s conftest.err
; then
3604 ac_cpp_err
=$ac_c_preproc_warn_flag
3611 if test -z "$ac_cpp_err"; then
3614 echo "$as_me: failed program was:" >&5
3615 cat conftest.
$ac_ext >&5
3616 # Broken: fails on valid input.
3619 rm -f conftest.err conftest.
$ac_ext
3621 # OK, works on sane cases. Now check whether non-existent headers
3622 # can be detected and how.
3623 cat >conftest.
$ac_ext <<_ACEOF
3624 #line $LINENO "configure"
3625 #include "confdefs.h"
3626 #include <ac_nonexistent.h>
3628 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3629 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3631 egrep -v '^ *\+' conftest.er1
>conftest.err
3633 cat conftest.err
>&5
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); } >/dev
/null
; then
3636 if test -s conftest.err
; then
3637 ac_cpp_err
=$ac_c_preproc_warn_flag
3644 if test -z "$ac_cpp_err"; then
3645 # Broken: success on invalid input.
3648 echo "$as_me: failed program was:" >&5
3649 cat conftest.
$ac_ext >&5
3650 # Passes both tests.
3654 rm -f conftest.err conftest.
$ac_ext
3657 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3658 rm -f conftest.err conftest.
$ac_ext
3659 if $ac_preproc_ok; then
3662 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3663 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3664 { (exit 1); exit 1; }; }
3668 ac_cpp
='$CPP $CPPFLAGS'
3669 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3670 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3671 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3673 # Find a good install program. We prefer a C program (faster),
3674 # so one script is as good as another. But avoid the broken or
3675 # incompatible versions:
3676 # SysV /etc/install, /usr/sbin/install
3677 # SunOS /usr/etc/install
3678 # IRIX /sbin/install
3680 # AmigaOS /C/install, which installs bootblocks on floppy discs
3681 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3682 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3683 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3684 # ./install, which can be erroneously created by make from ./install.sh.
3685 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3686 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3687 if test -z "$INSTALL"; then
3688 if test "${ac_cv_path_install+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
3691 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3695 test -z "$as_dir" && as_dir
=.
3696 # Account for people who put trailing slashes in PATH elements.
3698 .
/ | .
// |
/cC
/* | \
3699 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3702 # OSF1 and SCO ODT 3.0 have their own names for install.
3703 # Don't use installbsd from OSF since it installs stuff as root
3705 for ac_prog
in ginstall scoinst
install; do
3706 for ac_exec_ext
in '' $ac_executable_extensions; do
3707 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3708 if test $ac_prog = install &&
3709 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3710 # AIX install. It has an incompatible calling convention.
3712 elif test $ac_prog = install &&
3713 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3714 # program-specific install script used by HP pwplus--don't use.
3717 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3729 if test "${ac_cv_path_install+set}" = set; then
3730 INSTALL
=$ac_cv_path_install
3732 # As a last resort, use the slow shell script. We don't cache a
3733 # path for INSTALL within a source directory, because that will
3734 # break other packages using the cache if that directory is
3735 # removed, or if the path is relative.
3736 INSTALL
=$ac_install_sh
3739 echo "$as_me:$LINENO: result: $INSTALL" >&5
3740 echo "${ECHO_T}$INSTALL" >&6
3742 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3743 # It thinks the first close brace ends the variable substitution.
3744 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3746 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3748 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3750 for ac_prog
in 'bison -y' byacc
3752 # Extract the first word of "$ac_prog", so it can be a program name with args.
3753 set dummy
$ac_prog; ac_word
=$2
3754 echo "$as_me:$LINENO: checking for $ac_word" >&5
3755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3756 if test "${ac_cv_prog_YACC+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 if test -n "$YACC"; then
3760 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3762 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3766 test -z "$as_dir" && as_dir
=.
3767 for ac_exec_ext
in '' $ac_executable_extensions; do
3768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3769 ac_cv_prog_YACC
="$ac_prog"
3770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3778 YACC
=$ac_cv_prog_YACC
3779 if test -n "$YACC"; then
3780 echo "$as_me:$LINENO: result: $YACC" >&5
3781 echo "${ECHO_T}$YACC" >&6
3783 echo "$as_me:$LINENO: result: no" >&5
3784 echo "${ECHO_T}no" >&6
3787 test -n "$YACC" && break
3789 test -n "$YACC" || YACC
="yacc"
3791 if test "x$RANLIB" = x
; then
3792 if test -n "$ac_tool_prefix"; then
3793 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3794 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3795 echo "$as_me:$LINENO: checking for $ac_word" >&5
3796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3797 if test "${ac_cv_prog_RANLIB+set}" = set; then
3798 echo $ECHO_N "(cached) $ECHO_C" >&6
3800 if test -n "$RANLIB"; then
3801 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3803 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3807 test -z "$as_dir" && as_dir
=.
3808 for ac_exec_ext
in '' $ac_executable_extensions; do
3809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3810 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3819 RANLIB
=$ac_cv_prog_RANLIB
3820 if test -n "$RANLIB"; then
3821 echo "$as_me:$LINENO: result: $RANLIB" >&5
3822 echo "${ECHO_T}$RANLIB" >&6
3824 echo "$as_me:$LINENO: result: no" >&5
3825 echo "${ECHO_T}no" >&6
3829 if test -z "$ac_cv_prog_RANLIB"; then
3830 ac_ct_RANLIB
=$RANLIB
3831 # Extract the first word of "ranlib", so it can be a program name with args.
3832 set dummy ranlib
; ac_word
=$2
3833 echo "$as_me:$LINENO: checking for $ac_word" >&5
3834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3835 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3836 echo $ECHO_N "(cached) $ECHO_C" >&6
3838 if test -n "$ac_ct_RANLIB"; then
3839 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3841 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3845 test -z "$as_dir" && as_dir
=.
3846 for ac_exec_ext
in '' $ac_executable_extensions; do
3847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3848 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3855 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3858 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3859 if test -n "$ac_ct_RANLIB"; then
3860 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3861 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3863 echo "$as_me:$LINENO: result: no" >&5
3864 echo "${ECHO_T}no" >&6
3867 RANLIB
=$ac_ct_RANLIB
3869 RANLIB
="$ac_cv_prog_RANLIB"
3877 echo "$as_me:$LINENO: checking for AIX" >&5
3878 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3879 cat >conftest.
$ac_ext <<_ACEOF
3880 #line $LINENO "configure"
3881 #include "confdefs.h"
3887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3888 egrep "yes" >/dev
/null
2>&1; then
3889 echo "$as_me:$LINENO: result: yes" >&5
3890 echo "${ECHO_T}yes" >&6
3891 cat >>confdefs.h
<<\_ACEOF
3892 #define _ALL_SOURCE 1
3896 echo "$as_me:$LINENO: result: no" >&5
3897 echo "${ECHO_T}no" >&6
3903 #### Extract some information from the operating system and machine files.
3905 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
3906 - which libraries the lib-src programs will want, and
3907 - whether the GNU malloc routines are usable..." >&5
3908 echo "$as_me: checking the machine- and system-dependent files to find out
3909 - which libraries the lib-src programs will want, and
3910 - whether the GNU malloc routines are usable..." >&6;}
3912 ### First figure out CFLAGS (which we use for running the compiler here)
3913 ### and REAL_CFLAGS (which we use for real compilation).
3914 ### The two are the same except on a few systems, where they are made
3915 ### different to work around various lossages. For example,
3916 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
3917 ### as implying static linking.
3919 ### If the CFLAGS env var is specified, we use that value
3920 ### instead of the default.
3922 ### It's not important that this name contain the PID; you can't run
3923 ### two configures in the same directory and have anything work
3925 tempcname
="conftest.c"
3928 #include "'${srcdir}'/src/'${opsysfile}'"
3929 #include "'${srcdir}'/src/'${machfile}'"
3930 #ifndef LIBS_MACHINE
3931 #define LIBS_MACHINE
3936 #ifndef C_SWITCH_SYSTEM
3937 #define C_SWITCH_SYSTEM
3939 #ifndef C_SWITCH_MACHINE
3940 #define C_SWITCH_MACHINE
3942 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
3943 configure___ c_switch_system=C_SWITCH_SYSTEM
3944 configure___ c_switch_machine=C_SWITCH_MACHINE
3947 #define LIB_X11_LIB -lX11
3950 #ifndef LIBX11_MACHINE
3951 #define LIBX11_MACHINE
3954 #ifndef LIBX11_SYSTEM
3955 #define LIBX11_SYSTEM
3957 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
3960 configure___ unexec=UNEXEC
3962 configure___ unexec=unexec.o
3965 #ifdef SYSTEM_MALLOC
3966 configure___ system_malloc=yes
3968 configure___ system_malloc=no
3971 #ifdef USE_MMAP_FOR_BUFFERS
3972 configure___ use_mmap_for_buffers=yes
3974 configure___ use_mmap_for_buffers=no
3977 #ifndef C_DEBUG_SWITCH
3978 #define C_DEBUG_SWITCH -g
3981 #ifndef C_OPTIMIZE_SWITCH
3983 #define C_OPTIMIZE_SWITCH -O2
3985 #define C_OPTIMIZE_SWITCH -O
3989 #ifndef LD_SWITCH_MACHINE
3990 #define LD_SWITCH_MACHINE
3993 #ifndef LD_SWITCH_SYSTEM
3994 #define LD_SWITCH_SYSTEM
3997 #ifndef LD_SWITCH_X_SITE_AUX
3998 #define LD_SWITCH_X_SITE_AUX
4001 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4002 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4004 #ifdef THIS_IS_CONFIGURE
4006 /* Get the CFLAGS for tests in configure. */
4008 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4010 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4013 #else /* not THIS_IS_CONFIGURE */
4015 /* Get the CFLAGS for real compilation. */
4017 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4019 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4022 #endif /* not THIS_IS_CONFIGURE */
4025 # The value of CPP is a quoted variable reference, so we need to do this
4026 # to get its actual value...
4027 CPP
=`eval "echo $CPP"`
4028 eval `${CPP} -Isrc ${tempcname} \
4029 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4030 if test "x$SPECIFIED_CFLAGS" = x
; then
4031 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4032 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4034 REAL_CFLAGS
="$CFLAGS"
4038 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4040 ### Make sure subsequent tests use flags consistent with the build flags.
4042 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4043 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4045 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4048 # Check whether --enable-largefile or --disable-largefile was given.
4049 if test "${enable_largefile+set}" = set; then
4050 enableval
="$enable_largefile"
4053 if test "$enable_largefile" != no
; then
4055 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4056 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4057 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
4060 ac_cv_sys_largefile_CC
=no
4061 if test "$GCC" != yes; then
4064 # IRIX 6.2 and later do not support large files by default,
4065 # so use the C compiler's -n32 option if that helps.
4066 cat >conftest.
$ac_ext <<_ACEOF
4067 #line $LINENO "configure"
4068 #include "confdefs.h"
4069 #include <sys/types.h>
4070 /* Check that off_t can represent 2**63 - 1 correctly.
4071 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4072 since some C++ compilers masquerading as C compilers
4073 incorrectly reject 9223372036854775807. */
4074 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4075 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4076 && LARGE_OFF_T % 2147483647 == 1)
4078 #ifdef F77_DUMMY_MAIN
4082 int F77_DUMMY_MAIN() { return 1; }
4092 rm -f conftest.
$ac_objext
4093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4094 (eval $ac_compile) 2>&5
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); } &&
4098 { ac_try
='test -s conftest.$ac_objext'
4099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); }; }; then
4106 echo "$as_me: failed program was:" >&5
4107 cat conftest.
$ac_ext >&5
4109 rm -f conftest.
$ac_objext
4111 rm -f conftest.
$ac_objext
4112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4113 (eval $ac_compile) 2>&5
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); } &&
4117 { ac_try
='test -s conftest.$ac_objext'
4118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); }; }; then
4123 ac_cv_sys_largefile_CC
=' -n32'; break
4125 echo "$as_me: failed program was:" >&5
4126 cat conftest.
$ac_ext >&5
4128 rm -f conftest.
$ac_objext
4132 rm -f conftest.
$ac_ext
4135 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4136 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4137 if test "$ac_cv_sys_largefile_CC" != no
; then
4138 CC
=$CC$ac_cv_sys_largefile_CC
4141 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4142 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4143 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4144 echo $ECHO_N "(cached) $ECHO_C" >&6
4147 ac_cv_sys_file_offset_bits
=no
4148 cat >conftest.
$ac_ext <<_ACEOF
4149 #line $LINENO "configure"
4150 #include "confdefs.h"
4151 #include <sys/types.h>
4152 /* Check that off_t can represent 2**63 - 1 correctly.
4153 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4154 since some C++ compilers masquerading as C compilers
4155 incorrectly reject 9223372036854775807. */
4156 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4157 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4158 && LARGE_OFF_T % 2147483647 == 1)
4160 #ifdef F77_DUMMY_MAIN
4164 int F77_DUMMY_MAIN() { return 1; }
4174 rm -f conftest.
$ac_objext
4175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4176 (eval $ac_compile) 2>&5
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); } &&
4180 { ac_try
='test -s conftest.$ac_objext'
4181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); }; }; then
4188 echo "$as_me: failed program was:" >&5
4189 cat conftest.
$ac_ext >&5
4191 rm -f conftest.
$ac_objext conftest.
$ac_ext
4192 cat >conftest.
$ac_ext <<_ACEOF
4193 #line $LINENO "configure"
4194 #include "confdefs.h"
4195 #define _FILE_OFFSET_BITS 64
4196 #include <sys/types.h>
4197 /* Check that off_t can represent 2**63 - 1 correctly.
4198 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4199 since some C++ compilers masquerading as C compilers
4200 incorrectly reject 9223372036854775807. */
4201 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4202 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4203 && LARGE_OFF_T % 2147483647 == 1)
4205 #ifdef F77_DUMMY_MAIN
4209 int F77_DUMMY_MAIN() { return 1; }
4219 rm -f conftest.
$ac_objext
4220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4221 (eval $ac_compile) 2>&5
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); } &&
4225 { ac_try
='test -s conftest.$ac_objext'
4226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); }; }; then
4231 ac_cv_sys_file_offset_bits
=64; break
4233 echo "$as_me: failed program was:" >&5
4234 cat conftest.
$ac_ext >&5
4236 rm -f conftest.
$ac_objext conftest.
$ac_ext
4240 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4241 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4242 if test "$ac_cv_sys_file_offset_bits" != no
; then
4244 cat >>confdefs.h
<<_ACEOF
4245 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4250 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4251 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4252 if test "${ac_cv_sys_large_files+set}" = set; then
4253 echo $ECHO_N "(cached) $ECHO_C" >&6
4256 ac_cv_sys_large_files
=no
4257 cat >conftest.
$ac_ext <<_ACEOF
4258 #line $LINENO "configure"
4259 #include "confdefs.h"
4260 #include <sys/types.h>
4261 /* Check that off_t can represent 2**63 - 1 correctly.
4262 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4263 since some C++ compilers masquerading as C compilers
4264 incorrectly reject 9223372036854775807. */
4265 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4266 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4267 && LARGE_OFF_T % 2147483647 == 1)
4269 #ifdef F77_DUMMY_MAIN
4273 int F77_DUMMY_MAIN() { return 1; }
4283 rm -f conftest.
$ac_objext
4284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4285 (eval $ac_compile) 2>&5
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); } &&
4289 { ac_try
='test -s conftest.$ac_objext'
4290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); }; }; then
4297 echo "$as_me: failed program was:" >&5
4298 cat conftest.
$ac_ext >&5
4300 rm -f conftest.
$ac_objext conftest.
$ac_ext
4301 cat >conftest.
$ac_ext <<_ACEOF
4302 #line $LINENO "configure"
4303 #include "confdefs.h"
4304 #define _LARGE_FILES 1
4305 #include <sys/types.h>
4306 /* Check that off_t can represent 2**63 - 1 correctly.
4307 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4308 since some C++ compilers masquerading as C compilers
4309 incorrectly reject 9223372036854775807. */
4310 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4311 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4312 && LARGE_OFF_T % 2147483647 == 1)
4314 #ifdef F77_DUMMY_MAIN
4318 int F77_DUMMY_MAIN() { return 1; }
4328 rm -f conftest.
$ac_objext
4329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4330 (eval $ac_compile) 2>&5
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); } &&
4334 { ac_try
='test -s conftest.$ac_objext'
4335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); }; }; then
4340 ac_cv_sys_large_files
=1; break
4342 echo "$as_me: failed program was:" >&5
4343 cat conftest.
$ac_ext >&5
4345 rm -f conftest.
$ac_objext conftest.
$ac_ext
4349 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4350 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4351 if test "$ac_cv_sys_large_files" != no
; then
4353 cat >>confdefs.h
<<_ACEOF
4354 #define _LARGE_FILES $ac_cv_sys_large_files
4362 if test "${with_sound}" != "no"; then
4363 # Sound support for GNU/Linux and the free BSDs.
4364 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4365 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4366 if test "${ac_cv_header_stdc+set}" = set; then
4367 echo $ECHO_N "(cached) $ECHO_C" >&6
4369 cat >conftest.
$ac_ext <<_ACEOF
4370 #line $LINENO "configure"
4371 #include "confdefs.h"
4378 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4379 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4381 egrep -v '^ *\+' conftest.er1
>conftest.err
4383 cat conftest.err
>&5
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); } >/dev
/null
; then
4386 if test -s conftest.err
; then
4387 ac_cpp_err
=$ac_c_preproc_warn_flag
4394 if test -z "$ac_cpp_err"; then
4395 ac_cv_header_stdc
=yes
4397 echo "$as_me: failed program was:" >&5
4398 cat conftest.
$ac_ext >&5
4399 ac_cv_header_stdc
=no
4401 rm -f conftest.err conftest.
$ac_ext
4403 if test $ac_cv_header_stdc = yes; then
4404 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4405 cat >conftest.
$ac_ext <<_ACEOF
4406 #line $LINENO "configure"
4407 #include "confdefs.h"
4411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4412 egrep "memchr" >/dev
/null
2>&1; then
4415 ac_cv_header_stdc
=no
4421 if test $ac_cv_header_stdc = yes; then
4422 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4423 cat >conftest.
$ac_ext <<_ACEOF
4424 #line $LINENO "configure"
4425 #include "confdefs.h"
4429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4430 egrep "free" >/dev
/null
2>&1; then
4433 ac_cv_header_stdc
=no
4439 if test $ac_cv_header_stdc = yes; then
4440 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4441 if test "$cross_compiling" = yes; then
4444 cat >conftest.
$ac_ext <<_ACEOF
4445 #line $LINENO "configure"
4446 #include "confdefs.h"
4448 #if ((' ' & 0x0FF) == 0x020)
4449 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4450 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4452 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4453 || ('j' <= (c) && (c) <= 'r') \
4454 || ('s' <= (c) && (c) <= 'z'))
4455 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4458 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4463 for (i = 0; i < 256; i++)
4464 if (XOR (islower (i), ISLOWER (i))
4465 || toupper (i) != TOUPPER (i))
4470 rm -f conftest
$ac_exeext
4471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4472 (eval $ac_link) 2>&5
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); }; }; then
4483 echo "$as_me: program exited with status $ac_status" >&5
4484 echo "$as_me: failed program was:" >&5
4485 cat conftest.
$ac_ext >&5
4487 ac_cv_header_stdc
=no
4489 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4493 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4494 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4495 if test $ac_cv_header_stdc = yes; then
4497 cat >>confdefs.h
<<\_ACEOF
4498 #define STDC_HEADERS 1
4503 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4513 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4514 inttypes.h stdint.h unistd.h
4516 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4517 echo "$as_me:$LINENO: checking for $ac_header" >&5
4518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
4522 cat >conftest.
$ac_ext <<_ACEOF
4523 #line $LINENO "configure"
4524 #include "confdefs.h"
4525 $ac_includes_default
4527 #include <$ac_header>
4529 rm -f conftest.
$ac_objext
4530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4531 (eval $ac_compile) 2>&5
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); } &&
4535 { ac_try
='test -s conftest.$ac_objext'
4536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); }; }; then
4541 eval "$as_ac_Header=yes"
4543 echo "$as_me: failed program was:" >&5
4544 cat conftest.
$ac_ext >&5
4545 eval "$as_ac_Header=no"
4547 rm -f conftest.
$ac_objext conftest.
$ac_ext
4549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4552 cat >>confdefs.h
<<_ACEOF
4553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4564 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
4566 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4567 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4568 echo "$as_me:$LINENO: checking for $ac_header" >&5
4569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4571 echo $ECHO_N "(cached) $ECHO_C" >&6
4573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4576 # Is the header compilable?
4577 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4578 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4579 cat >conftest.
$ac_ext <<_ACEOF
4580 #line $LINENO "configure"
4581 #include "confdefs.h"
4582 $ac_includes_default
4583 #include <$ac_header>
4585 rm -f conftest.
$ac_objext
4586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4587 (eval $ac_compile) 2>&5
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); } &&
4591 { ac_try
='test -s conftest.$ac_objext'
4592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }; }; then
4597 ac_header_compiler
=yes
4599 echo "$as_me: failed program was:" >&5
4600 cat conftest.
$ac_ext >&5
4601 ac_header_compiler
=no
4603 rm -f conftest.
$ac_objext conftest.
$ac_ext
4604 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4605 echo "${ECHO_T}$ac_header_compiler" >&6
4607 # Is the header present?
4608 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4609 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4610 cat >conftest.
$ac_ext <<_ACEOF
4611 #line $LINENO "configure"
4612 #include "confdefs.h"
4613 #include <$ac_header>
4615 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4616 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4618 egrep -v '^ *\+' conftest.er1
>conftest.err
4620 cat conftest.err
>&5
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); } >/dev
/null
; then
4623 if test -s conftest.err
; then
4624 ac_cpp_err
=$ac_c_preproc_warn_flag
4631 if test -z "$ac_cpp_err"; then
4632 ac_header_preproc
=yes
4634 echo "$as_me: failed program was:" >&5
4635 cat conftest.
$ac_ext >&5
4636 ac_header_preproc
=no
4638 rm -f conftest.err conftest.
$ac_ext
4639 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4640 echo "${ECHO_T}$ac_header_preproc" >&6
4642 # So? What about this header?
4643 case $ac_header_compiler:$ac_header_preproc in
4645 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4646 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4650 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4651 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4652 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4653 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4655 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4657 echo "$as_me:$LINENO: checking for $ac_header" >&5
4658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4662 eval "$as_ac_Header=$ac_header_preproc"
4664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4668 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4669 cat >>confdefs.h
<<_ACEOF
4670 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4677 # Emulation library used on NetBSD.
4678 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4679 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4680 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4681 echo $ECHO_N "(cached) $ECHO_C" >&6
4683 ac_check_lib_save_LIBS
=$LIBS
4684 LIBS
="-lossaudio $LIBS"
4685 cat >conftest.
$ac_ext <<_ACEOF
4686 #line $LINENO "configure"
4687 #include "confdefs.h"
4689 /* Override any gcc2 internal prototype to avoid an error. */
4693 /* We use char because int might match the return type of a gcc2
4694 builtin and then its argument prototype would still apply. */
4696 #ifdef F77_DUMMY_MAIN
4700 int F77_DUMMY_MAIN() { return 1; }
4710 rm -f conftest.
$ac_objext conftest
$ac_exeext
4711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4712 (eval $ac_link) 2>&5
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); } &&
4716 { ac_try
='test -s conftest$ac_exeext'
4717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); }; }; then
4722 ac_cv_lib_ossaudio__oss_ioctl
=yes
4724 echo "$as_me: failed program was:" >&5
4725 cat conftest.
$ac_ext >&5
4726 ac_cv_lib_ossaudio__oss_ioctl
=no
4728 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4729 LIBS
=$ac_check_lib_save_LIBS
4731 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4732 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4733 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
4759 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
4760 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
4761 termcap.h stdio_ext.h fcntl.h term.h
strings.h coff.h
4763 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4765 echo "$as_me:$LINENO: checking for $ac_header" >&5
4766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4767 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4768 echo $ECHO_N "(cached) $ECHO_C" >&6
4770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4771 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4773 # Is the header compilable?
4774 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4775 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4776 cat >conftest.
$ac_ext <<_ACEOF
4777 #line $LINENO "configure"
4778 #include "confdefs.h"
4779 $ac_includes_default
4780 #include <$ac_header>
4782 rm -f conftest.
$ac_objext
4783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4784 (eval $ac_compile) 2>&5
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); } &&
4788 { ac_try
='test -s conftest.$ac_objext'
4789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); }; }; then
4794 ac_header_compiler
=yes
4796 echo "$as_me: failed program was:" >&5
4797 cat conftest.
$ac_ext >&5
4798 ac_header_compiler
=no
4800 rm -f conftest.
$ac_objext conftest.
$ac_ext
4801 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4802 echo "${ECHO_T}$ac_header_compiler" >&6
4804 # Is the header present?
4805 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4806 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4807 cat >conftest.
$ac_ext <<_ACEOF
4808 #line $LINENO "configure"
4809 #include "confdefs.h"
4810 #include <$ac_header>
4812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4813 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4815 egrep -v '^ *\+' conftest.er1
>conftest.err
4817 cat conftest.err
>&5
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); } >/dev
/null
; then
4820 if test -s conftest.err
; then
4821 ac_cpp_err
=$ac_c_preproc_warn_flag
4828 if test -z "$ac_cpp_err"; then
4829 ac_header_preproc
=yes
4831 echo "$as_me: failed program was:" >&5
4832 cat conftest.
$ac_ext >&5
4833 ac_header_preproc
=no
4835 rm -f conftest.err conftest.
$ac_ext
4836 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4837 echo "${ECHO_T}$ac_header_preproc" >&6
4839 # So? What about this header?
4840 case $ac_header_compiler:$ac_header_preproc in
4842 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4843 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4845 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4847 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4848 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4849 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4850 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4852 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4854 echo "$as_me:$LINENO: checking for $ac_header" >&5
4855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4857 echo $ECHO_N "(cached) $ECHO_C" >&6
4859 eval "$as_ac_Header=$ac_header_preproc"
4861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4862 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4866 cat >>confdefs.h
<<_ACEOF
4867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4874 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4875 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4876 if test "${ac_cv_header_stdc+set}" = set; then
4877 echo $ECHO_N "(cached) $ECHO_C" >&6
4879 cat >conftest.
$ac_ext <<_ACEOF
4880 #line $LINENO "configure"
4881 #include "confdefs.h"
4888 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4889 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4891 egrep -v '^ *\+' conftest.er1
>conftest.err
4893 cat conftest.err
>&5
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); } >/dev
/null
; then
4896 if test -s conftest.err
; then
4897 ac_cpp_err
=$ac_c_preproc_warn_flag
4904 if test -z "$ac_cpp_err"; then
4905 ac_cv_header_stdc
=yes
4907 echo "$as_me: failed program was:" >&5
4908 cat conftest.
$ac_ext >&5
4909 ac_cv_header_stdc
=no
4911 rm -f conftest.err conftest.
$ac_ext
4913 if test $ac_cv_header_stdc = yes; then
4914 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4915 cat >conftest.
$ac_ext <<_ACEOF
4916 #line $LINENO "configure"
4917 #include "confdefs.h"
4921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4922 egrep "memchr" >/dev
/null
2>&1; then
4925 ac_cv_header_stdc
=no
4931 if test $ac_cv_header_stdc = yes; then
4932 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4933 cat >conftest.
$ac_ext <<_ACEOF
4934 #line $LINENO "configure"
4935 #include "confdefs.h"
4939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4940 egrep "free" >/dev
/null
2>&1; then
4943 ac_cv_header_stdc
=no
4949 if test $ac_cv_header_stdc = yes; then
4950 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4951 if test "$cross_compiling" = yes; then
4954 cat >conftest.
$ac_ext <<_ACEOF
4955 #line $LINENO "configure"
4956 #include "confdefs.h"
4958 #if ((' ' & 0x0FF) == 0x020)
4959 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4960 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4962 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4963 || ('j' <= (c) && (c) <= 'r') \
4964 || ('s' <= (c) && (c) <= 'z'))
4965 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4968 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4973 for (i = 0; i < 256; i++)
4974 if (XOR (islower (i), ISLOWER (i))
4975 || toupper (i) != TOUPPER (i))
4980 rm -f conftest
$ac_exeext
4981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4982 (eval $ac_link) 2>&5
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); }; }; then
4993 echo "$as_me: program exited with status $ac_status" >&5
4994 echo "$as_me: failed program was:" >&5
4995 cat conftest.
$ac_ext >&5
4997 ac_cv_header_stdc
=no
4999 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5003 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5004 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5005 if test $ac_cv_header_stdc = yes; then
5007 cat >>confdefs.h
<<\_ACEOF
5008 #define STDC_HEADERS 1
5013 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5014 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5015 if test "${ac_cv_header_time+set}" = set; then
5016 echo $ECHO_N "(cached) $ECHO_C" >&6
5018 cat >conftest.
$ac_ext <<_ACEOF
5019 #line $LINENO "configure"
5020 #include "confdefs.h"
5021 #include <sys/types.h>
5022 #include <sys/time.h>
5025 #ifdef F77_DUMMY_MAIN
5029 int F77_DUMMY_MAIN() { return 1; }
5034 if ((struct tm *) 0)
5040 rm -f conftest.
$ac_objext
5041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5042 (eval $ac_compile) 2>&5
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); } &&
5046 { ac_try
='test -s conftest.$ac_objext'
5047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); }; }; then
5052 ac_cv_header_time
=yes
5054 echo "$as_me: failed program was:" >&5
5055 cat conftest.
$ac_ext >&5
5056 ac_cv_header_time
=no
5058 rm -f conftest.
$ac_objext conftest.
$ac_ext
5060 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5061 echo "${ECHO_T}$ac_cv_header_time" >&6
5062 if test $ac_cv_header_time = yes; then
5064 cat >>confdefs.h
<<\_ACEOF
5065 #define TIME_WITH_SYS_TIME 1
5070 echo "$as_me:$LINENO: checking for sys_siglist declaration in signal.h or unistd.h" >&5
5071 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
5072 if test "${ac_cv_decl_sys_siglist+set}" = set; then
5073 echo $ECHO_N "(cached) $ECHO_C" >&6
5075 cat >conftest.
$ac_ext <<_ACEOF
5076 #line $LINENO "configure"
5077 #include "confdefs.h"
5078 #include <sys/types.h>
5080 /* NetBSD declares sys_siglist in unistd.h. */
5082 # include <unistd.h>
5085 #ifdef F77_DUMMY_MAIN
5089 int F77_DUMMY_MAIN() { return 1; }
5094 char *msg = *(sys_siglist + 1);
5099 rm -f conftest.
$ac_objext
5100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5101 (eval $ac_compile) 2>&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); } &&
5105 { ac_try
='test -s conftest.$ac_objext'
5106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); }; }; then
5111 ac_cv_decl_sys_siglist
=yes
5113 echo "$as_me: failed program was:" >&5
5114 cat conftest.
$ac_ext >&5
5115 ac_cv_decl_sys_siglist
=no
5117 rm -f conftest.
$ac_objext conftest.
$ac_ext
5119 echo "$as_me:$LINENO: result: $ac_cv_decl_sys_siglist" >&5
5120 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
5121 if test $ac_cv_decl_sys_siglist = yes; then
5123 cat >>confdefs.h
<<\_ACEOF
5124 #define SYS_SIGLIST_DECLARED 1
5129 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5130 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5131 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5132 echo $ECHO_N "(cached) $ECHO_C" >&6
5134 cat >conftest.
$ac_ext <<_ACEOF
5135 #line $LINENO "configure"
5136 #include "confdefs.h"
5137 #include <sys/types.h>
5138 #include <sys/wait.h>
5140 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5143 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5146 #ifdef F77_DUMMY_MAIN
5150 int F77_DUMMY_MAIN() { return 1; }
5157 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5162 rm -f conftest.
$ac_objext
5163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5164 (eval $ac_compile) 2>&5
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); } &&
5168 { ac_try
='test -s conftest.$ac_objext'
5169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); }; }; then
5174 ac_cv_header_sys_wait_h
=yes
5176 echo "$as_me: failed program was:" >&5
5177 cat conftest.
$ac_ext >&5
5178 ac_cv_header_sys_wait_h
=no
5180 rm -f conftest.
$ac_objext conftest.
$ac_ext
5182 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5183 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5184 if test $ac_cv_header_sys_wait_h = yes; then
5186 cat >>confdefs.h
<<\_ACEOF
5187 #define HAVE_SYS_WAIT_H 1
5193 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5194 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5195 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5196 echo $ECHO_N "(cached) $ECHO_C" >&6
5198 cat >conftest.
$ac_ext <<_ACEOF
5199 #line $LINENO "configure"
5200 #include "confdefs.h"
5201 #ifdef TIME_WITH_SYS_TIME
5202 #include <sys/time.h>
5205 #ifdef HAVE_SYS_TIME_H
5206 #include <sys/time.h>
5214 #ifdef F77_DUMMY_MAIN
5218 int F77_DUMMY_MAIN() { return 1; }
5223 static struct utimbuf x; x.actime = x.modtime;
5228 rm -f conftest.
$ac_objext
5229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5230 (eval $ac_compile) 2>&5
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); } &&
5234 { ac_try
='test -s conftest.$ac_objext'
5235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); }; }; then
5240 emacs_cv_struct_utimbuf
=yes
5242 echo "$as_me: failed program was:" >&5
5243 cat conftest.
$ac_ext >&5
5244 emacs_cv_struct_utimbuf
=no
5246 rm -f conftest.
$ac_objext conftest.
$ac_ext
5248 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5249 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5250 if test $emacs_cv_struct_utimbuf = yes; then
5252 cat >>confdefs.h
<<\_ACEOF
5253 #define HAVE_STRUCT_UTIMBUF 1
5258 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5259 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5260 if test "${ac_cv_type_signal+set}" = set; then
5261 echo $ECHO_N "(cached) $ECHO_C" >&6
5263 cat >conftest.
$ac_ext <<_ACEOF
5264 #line $LINENO "configure"
5265 #include "confdefs.h"
5266 #include <sys/types.h>
5272 extern "C" void (*signal (int, void (*)(int)))(int);
5274 void (*signal ()) ();
5277 #ifdef F77_DUMMY_MAIN
5281 int F77_DUMMY_MAIN() { return 1; }
5291 rm -f conftest.
$ac_objext
5292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5293 (eval $ac_compile) 2>&5
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); } &&
5297 { ac_try
='test -s conftest.$ac_objext'
5298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); }; }; then
5303 ac_cv_type_signal
=void
5305 echo "$as_me: failed program was:" >&5
5306 cat conftest.
$ac_ext >&5
5307 ac_cv_type_signal
=int
5309 rm -f conftest.
$ac_objext conftest.
$ac_ext
5311 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5312 echo "${ECHO_T}$ac_cv_type_signal" >&6
5314 cat >>confdefs.h
<<_ACEOF
5315 #define RETSIGTYPE $ac_cv_type_signal
5320 echo "$as_me:$LINENO: checking for speed_t" >&5
5321 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5322 if test "${emacs_cv_speed_t+set}" = set; then
5323 echo $ECHO_N "(cached) $ECHO_C" >&6
5325 cat >conftest.
$ac_ext <<_ACEOF
5326 #line $LINENO "configure"
5327 #include "confdefs.h"
5328 #include <termios.h>
5329 #ifdef F77_DUMMY_MAIN
5333 int F77_DUMMY_MAIN() { return 1; }
5343 rm -f conftest.
$ac_objext
5344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5345 (eval $ac_compile) 2>&5
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); } &&
5349 { ac_try
='test -s conftest.$ac_objext'
5350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); }; }; then
5355 emacs_cv_speed_t
=yes
5357 echo "$as_me: failed program was:" >&5
5358 cat conftest.
$ac_ext >&5
5361 rm -f conftest.
$ac_objext conftest.
$ac_ext
5363 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5364 echo "${ECHO_T}$emacs_cv_speed_t" >&6
5365 if test $emacs_cv_speed_t = yes; then
5367 cat >>confdefs.h
<<\_ACEOF
5368 #define HAVE_SPEED_T 1
5373 echo "$as_me:$LINENO: checking for struct timeval" >&5
5374 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5375 if test "${emacs_cv_struct_timeval+set}" = set; then
5376 echo $ECHO_N "(cached) $ECHO_C" >&6
5378 cat >conftest.
$ac_ext <<_ACEOF
5379 #line $LINENO "configure"
5380 #include "confdefs.h"
5381 #ifdef TIME_WITH_SYS_TIME
5382 #include <sys/time.h>
5385 #ifdef HAVE_SYS_TIME_H
5386 #include <sys/time.h>
5391 #ifdef F77_DUMMY_MAIN
5395 int F77_DUMMY_MAIN() { return 1; }
5400 static struct timeval x; x.tv_sec = x.tv_usec;
5405 rm -f conftest.
$ac_objext
5406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5407 (eval $ac_compile) 2>&5
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); } &&
5411 { ac_try
='test -s conftest.$ac_objext'
5412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); }; }; then
5417 emacs_cv_struct_timeval
=yes
5419 echo "$as_me: failed program was:" >&5
5420 cat conftest.
$ac_ext >&5
5421 emacs_cv_struct_timeval
=no
5423 rm -f conftest.
$ac_objext conftest.
$ac_ext
5425 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
5426 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
5427 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
5428 if test $emacs_cv_struct_timeval = yes; then
5430 cat >>confdefs.h
<<\_ACEOF
5431 #define HAVE_TIMEVAL 1
5436 echo "$as_me:$LINENO: checking for struct exception" >&5
5437 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
5438 if test "${emacs_cv_struct_exception+set}" = set; then
5439 echo $ECHO_N "(cached) $ECHO_C" >&6
5441 cat >conftest.
$ac_ext <<_ACEOF
5442 #line $LINENO "configure"
5443 #include "confdefs.h"
5445 #ifdef F77_DUMMY_MAIN
5449 int F77_DUMMY_MAIN() { return 1; }
5454 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
5459 rm -f conftest.
$ac_objext
5460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5461 (eval $ac_compile) 2>&5
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 (exit $ac_status); } &&
5465 { ac_try
='test -s conftest.$ac_objext'
5466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); }; }; then
5471 emacs_cv_struct_exception
=yes
5473 echo "$as_me: failed program was:" >&5
5474 cat conftest.
$ac_ext >&5
5475 emacs_cv_struct_exception
=no
5477 rm -f conftest.
$ac_objext conftest.
$ac_ext
5479 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
5480 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
5481 HAVE_EXCEPTION
=$emacs_cv_struct_exception
5482 if test $emacs_cv_struct_exception != yes; then
5484 cat >>confdefs.h
<<\_ACEOF
5485 #define NO_MATHERR 1
5490 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5491 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5492 if test "${ac_cv_struct_tm+set}" = set; then
5493 echo $ECHO_N "(cached) $ECHO_C" >&6
5495 cat >conftest.
$ac_ext <<_ACEOF
5496 #line $LINENO "configure"
5497 #include "confdefs.h"
5498 #include <sys/types.h>
5501 #ifdef F77_DUMMY_MAIN
5505 int F77_DUMMY_MAIN() { return 1; }
5510 struct tm *tp; tp->tm_sec;
5515 rm -f conftest.
$ac_objext
5516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5517 (eval $ac_compile) 2>&5
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); } &&
5521 { ac_try
='test -s conftest.$ac_objext'
5522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); }; }; then
5527 ac_cv_struct_tm
=time.h
5529 echo "$as_me: failed program was:" >&5
5530 cat conftest.
$ac_ext >&5
5531 ac_cv_struct_tm
=sys
/time.h
5533 rm -f conftest.
$ac_objext conftest.
$ac_ext
5535 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5536 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5537 if test $ac_cv_struct_tm = sys
/time.h
; then
5539 cat >>confdefs.h
<<\_ACEOF
5540 #define TM_IN_SYS_TIME 1
5545 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5546 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5547 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5548 echo $ECHO_N "(cached) $ECHO_C" >&6
5550 cat >conftest.
$ac_ext <<_ACEOF
5551 #line $LINENO "configure"
5552 #include "confdefs.h"
5553 #include <sys/types.h>
5554 #include <$ac_cv_struct_tm>
5557 #ifdef F77_DUMMY_MAIN
5561 int F77_DUMMY_MAIN() { return 1; }
5566 static struct tm ac_aggr;
5567 if (ac_aggr.tm_zone)
5573 rm -f conftest.
$ac_objext
5574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5575 (eval $ac_compile) 2>&5
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); } &&
5579 { ac_try
='test -s conftest.$ac_objext'
5580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); }; }; then
5585 ac_cv_member_struct_tm_tm_zone
=yes
5587 echo "$as_me: failed program was:" >&5
5588 cat conftest.
$ac_ext >&5
5589 ac_cv_member_struct_tm_tm_zone
=no
5591 rm -f conftest.
$ac_objext conftest.
$ac_ext
5593 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
5594 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
5595 if test $ac_cv_member_struct_tm_tm_zone = yes; then
5597 cat >>confdefs.h
<<_ACEOF
5598 #define HAVE_STRUCT_TM_TM_ZONE 1
5604 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
5606 cat >>confdefs.h
<<\_ACEOF
5607 #define HAVE_TM_ZONE 1
5611 echo "$as_me:$LINENO: checking for tzname" >&5
5612 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
5613 if test "${ac_cv_var_tzname+set}" = set; then
5614 echo $ECHO_N "(cached) $ECHO_C" >&6
5616 cat >conftest.
$ac_ext <<_ACEOF
5617 #line $LINENO "configure"
5618 #include "confdefs.h"
5620 #ifndef tzname /* For SGI. */
5621 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5624 #ifdef F77_DUMMY_MAIN
5628 int F77_DUMMY_MAIN() { return 1; }
5638 rm -f conftest.
$ac_objext conftest
$ac_exeext
5639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5640 (eval $ac_link) 2>&5
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); } &&
5644 { ac_try
='test -s conftest$ac_exeext'
5645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); }; }; then
5650 ac_cv_var_tzname
=yes
5652 echo "$as_me: failed program was:" >&5
5653 cat conftest.
$ac_ext >&5
5656 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5658 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
5659 echo "${ECHO_T}$ac_cv_var_tzname" >&6
5660 if test $ac_cv_var_tzname = yes; then
5662 cat >>confdefs.h
<<\_ACEOF
5663 #define HAVE_TZNAME 1
5669 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
5670 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
5671 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
5672 echo $ECHO_N "(cached) $ECHO_C" >&6
5674 cat >conftest.
$ac_ext <<_ACEOF
5675 #line $LINENO "configure"
5676 #include "confdefs.h"
5679 #ifdef F77_DUMMY_MAIN
5683 int F77_DUMMY_MAIN() { return 1; }
5688 static struct tm ac_aggr;
5689 if (ac_aggr.tm_gmtoff)
5695 rm -f conftest.
$ac_objext
5696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5697 (eval $ac_compile) 2>&5
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); } &&
5701 { ac_try
='test -s conftest.$ac_objext'
5702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); }; }; then
5707 ac_cv_member_struct_tm_tm_gmtoff
=yes
5709 echo "$as_me: failed program was:" >&5
5710 cat conftest.
$ac_ext >&5
5711 ac_cv_member_struct_tm_tm_gmtoff
=no
5713 rm -f conftest.
$ac_objext conftest.
$ac_ext
5715 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
5716 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
5717 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
5719 cat >>confdefs.h
<<\_ACEOF
5720 #define HAVE_TM_GMTOFF 1
5727 echo "$as_me:$LINENO: checking for function prototypes" >&5
5728 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5729 if test "$ac_cv_prog_cc_stdc" != no
; then
5730 echo "$as_me:$LINENO: result: yes" >&5
5731 echo "${ECHO_T}yes" >&6
5733 cat >>confdefs.h
<<\_ACEOF
5734 #define PROTOTYPES 1
5738 cat >>confdefs.h
<<\_ACEOF
5739 #define __PROTOTYPES 1
5743 echo "$as_me:$LINENO: result: no" >&5
5744 echo "${ECHO_T}no" >&6
5747 echo "$as_me:$LINENO: checking for working volatile" >&5
5748 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
5749 if test "${ac_cv_c_volatile+set}" = set; then
5750 echo $ECHO_N "(cached) $ECHO_C" >&6
5752 cat >conftest.
$ac_ext <<_ACEOF
5753 #line $LINENO "configure"
5754 #include "confdefs.h"
5756 #ifdef F77_DUMMY_MAIN
5760 int F77_DUMMY_MAIN() { return 1; }
5772 rm -f conftest.
$ac_objext
5773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5774 (eval $ac_compile) 2>&5
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); } &&
5778 { ac_try
='test -s conftest.$ac_objext'
5779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); }; }; then
5784 ac_cv_c_volatile
=yes
5786 echo "$as_me: failed program was:" >&5
5787 cat conftest.
$ac_ext >&5
5790 rm -f conftest.
$ac_objext conftest.
$ac_ext
5792 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
5793 echo "${ECHO_T}$ac_cv_c_volatile" >&6
5794 if test $ac_cv_c_volatile = no
; then
5796 cat >>confdefs.h
<<\_ACEOF
5802 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5803 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5804 if test "${ac_cv_c_const+set}" = set; then
5805 echo $ECHO_N "(cached) $ECHO_C" >&6
5807 cat >conftest.
$ac_ext <<_ACEOF
5808 #line $LINENO "configure"
5809 #include "confdefs.h"
5811 #ifdef F77_DUMMY_MAIN
5815 int F77_DUMMY_MAIN() { return 1; }
5820 /* FIXME: Include the comments suggested by Paul. */
5822 /* Ultrix mips cc rejects this. */
5823 typedef int charset[2];
5825 /* SunOS 4.1.1 cc rejects this. */
5826 char const *const *ccp;
5828 /* NEC SVR4.0.2 mips cc rejects this. */
5829 struct point {int x, y;};
5830 static struct point const zero = {0,0};
5831 /* AIX XL C 1.02.0.0 rejects this.
5832 It does not let you subtract one const X* pointer from another in
5833 an arm of an if-expression whose if-part is not a constant
5835 const char *g = "string";
5836 ccp = &g + (g ? g-g : 0);
5837 /* HPUX 7.0 cc rejects these. */
5840 ccp = (char const *const *) p;
5841 { /* SCO 3.2v4 cc rejects this. */
5843 char const *s = 0 ? (char *) 0 : (char const *) 0;
5847 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5849 const int *foo = &x[0];
5852 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5853 typedef const int *iptr;
5857 { /* AIX XL C 1.02.0.0 rejects this saying
5858 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5859 struct s { int j; const int *ap[3]; };
5860 struct s *b; b->j = 5;
5862 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5871 rm -f conftest.
$ac_objext
5872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5873 (eval $ac_compile) 2>&5
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); } &&
5877 { ac_try
='test -s conftest.$ac_objext'
5878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); }; }; then
5885 echo "$as_me: failed program was:" >&5
5886 cat conftest.
$ac_ext >&5
5889 rm -f conftest.
$ac_objext conftest.
$ac_ext
5891 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5892 echo "${ECHO_T}$ac_cv_c_const" >&6
5893 if test $ac_cv_c_const = no
; then
5895 cat >>confdefs.h
<<\_ACEOF
5901 echo "$as_me:$LINENO: checking for void * support" >&5
5902 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
5903 if test "${emacs_cv_void_star+set}" = set; then
5904 echo $ECHO_N "(cached) $ECHO_C" >&6
5906 cat >conftest.
$ac_ext <<_ACEOF
5907 #line $LINENO "configure"
5908 #include "confdefs.h"
5910 #ifdef F77_DUMMY_MAIN
5914 int F77_DUMMY_MAIN() { return 1; }
5924 rm -f conftest.
$ac_objext
5925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5926 (eval $ac_compile) 2>&5
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); } &&
5930 { ac_try
='test -s conftest.$ac_objext'
5931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); }; }; then
5936 emacs_cv_void_star
=yes
5938 echo "$as_me: failed program was:" >&5
5939 cat conftest.
$ac_ext >&5
5940 emacs_cv_void_star
=no
5942 rm -f conftest.
$ac_objext conftest.
$ac_ext
5944 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
5945 echo "${ECHO_T}$emacs_cv_void_star" >&6
5946 if test $emacs_cv_void_star = yes; then
5947 cat >>confdefs.h
<<\_ACEOF
5948 #define POINTER_TYPE void
5952 cat >>confdefs.h
<<\_ACEOF
5953 #define POINTER_TYPE char
5959 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
5960 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
5961 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
5962 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5963 echo $ECHO_N "(cached) $ECHO_C" >&6
5965 cat >conftest.
make <<\_ACEOF
5967 @
echo 'ac_maketemp="${MAKE}"'
5969 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5970 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5971 if test -n "$ac_maketemp"; then
5972 eval ac_cv_prog_make_
${ac_make}_set
=yes
5974 eval ac_cv_prog_make_
${ac_make}_set
=no
5978 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5979 echo "$as_me:$LINENO: result: yes" >&5
5980 echo "${ECHO_T}yes" >&6
5983 echo "$as_me:$LINENO: result: no" >&5
5984 echo "${ECHO_T}no" >&6
5985 SET_MAKE
="MAKE=${MAKE-make}"
5989 echo "$as_me:$LINENO: checking for long file names" >&5
5990 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
5991 if test "${ac_cv_sys_long_file_names+set}" = set; then
5992 echo $ECHO_N "(cached) $ECHO_C" >&6
5994 ac_cv_sys_long_file_names
=yes
5995 # Test for long file names in all the places we know might matter:
5996 # . the current directory, where building will happen
5997 # $prefix/lib where we will be installing things
5998 # $exec_prefix/lib likewise
5999 # eval it to expand exec_prefix.
6000 # $TMPDIR if set, where it might want to write temporary files
6001 # if $TMPDIR is not set:
6002 # /tmp where it might want to write temporary files
6005 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
6008 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
6010 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
6011 test -d $ac_dir ||
continue
6012 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
6013 ac_xdir
=$ac_dir/cf$$
6014 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
6015 ac_tf1
=$ac_xdir/conftest9012345
6016 ac_tf2
=$ac_xdir/conftest9012346
6017 (echo 1 >$ac_tf1) 2>/dev
/null
6018 (echo 2 >$ac_tf2) 2>/dev
/null
6019 ac_val
=`cat $ac_tf1 2>/dev/null`
6020 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
6021 ac_cv_sys_long_file_names
=no
6022 rm -rf $ac_xdir 2>/dev
/null
6025 rm -rf $ac_xdir 2>/dev
/null
6028 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
6029 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
6030 if test $ac_cv_sys_long_file_names = yes; then
6032 cat >>confdefs.h
<<\_ACEOF
6033 #define HAVE_LONG_FILE_NAMES 1
6039 if test "$gamedir" = no
; then :
6041 echo "$as_me:$LINENO: checking for access to game group \"$gameuser\"" >&5
6042 echo $ECHO_N "checking for access to game group \"$gameuser\"... $ECHO_C" >&6
6043 rm -f conf$
$chown.
file
6044 touch conf$
$chown.
file
6045 if chown
"$gameuser" conf$
$chown.
file 1>/dev
/null
2>&1; then
6046 echo "$as_me:$LINENO: result: yes" >&5
6047 echo "${ECHO_T}yes" >&6
6048 if test "$gamedir" = "yes"; then
6049 gamedir
="${localstatedir}/games/emacs"
6051 eval tgamedir
=\"$gamedir\"
6053 cat >>confdefs.h
<<_ACEOF
6054 #define HAVE_SHARED_GAME_DIR "$tgamedir"
6058 echo "$as_me:$LINENO: result: no" >&5
6059 echo "${ECHO_T}no" >&6
6063 #### Choose a window system.
6065 echo "$as_me:$LINENO: checking for X" >&5
6066 echo $ECHO_N "checking for X... $ECHO_C" >&6
6069 # Check whether --with-x or --without-x was given.
6070 if test "${with_x+set}" = set; then
6074 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6075 if test "x$with_x" = xno
; then
6076 # The user explicitly disabled X.
6079 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
6080 # Both variables are already set.
6083 if test "${ac_cv_have_x+set}" = set; then
6084 echo $ECHO_N "(cached) $ECHO_C" >&6
6086 # One or both of the vars are not set, and there is no cached value.
6087 ac_x_includes
=no ac_x_libraries
=no
6089 if mkdir conftest.dir
; then
6091 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6092 cat >Imakefile
<<'_ACEOF'
6094 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6096 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
6097 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6098 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6099 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6100 for ac_extension
in a so sl
; do
6101 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
6102 test -f $ac_im_libdir/libX11.
$ac_extension; then
6103 ac_im_usrlibdir
=$ac_im_libdir; break
6106 # Screen out bogus values from the imake configuration. They are
6107 # bogus both because they are the default anyway, and because
6108 # using them would break gcc on systems where it needs fixed includes.
6109 case $ac_im_incroot in
6111 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
6113 case $ac_im_usrlibdir in
6115 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
6122 # Standard set of common directories for X headers.
6123 # Check X11 before X11Rn because it is often a symlink to the current release.
6135 /usr/local/X11/include
6136 /usr/local/X11R6/include
6137 /usr/local/X11R5/include
6138 /usr/local/X11R4/include
6140 /usr/local/include/X11
6141 /usr/local/include/X11R6
6142 /usr/local/include/X11R5
6143 /usr/local/include/X11R4
6147 /usr/XFree86/include/X11
6151 /usr/unsupported/include
6153 /usr/local/x11r5/include
6154 /usr/lpp/Xamples/include
6156 /usr/openwin/include
6157 /usr/openwin/share/include'
6159 if test "$ac_x_includes" = no
; then
6160 # Guess where to find include files, by looking for Intrinsic.h.
6161 # First, try using that file with no special directory specified.
6162 cat >conftest.
$ac_ext <<_ACEOF
6163 #line $LINENO "configure"
6164 #include "confdefs.h"
6165 #include <X11/Intrinsic.h>
6167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6168 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6170 egrep -v '^ *\+' conftest.er1
>conftest.err
6172 cat conftest.err
>&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); } >/dev
/null
; then
6175 if test -s conftest.err
; then
6176 ac_cpp_err
=$ac_c_preproc_warn_flag
6183 if test -z "$ac_cpp_err"; then
6184 # We can compile using X headers with no special include directory.
6187 echo "$as_me: failed program was:" >&5
6188 cat conftest.
$ac_ext >&5
6189 for ac_dir
in $ac_x_header_dirs; do
6190 if test -r "$ac_dir/X11/Intrinsic.h"; then
6191 ac_x_includes
=$ac_dir
6196 rm -f conftest.err conftest.
$ac_ext
6197 fi # $ac_x_includes = no
6199 if test "$ac_x_libraries" = no
; then
6200 # Check for the libraries.
6201 # See if we find them without any special options.
6202 # Don't add to $LIBS permanently.
6205 cat >conftest.
$ac_ext <<_ACEOF
6206 #line $LINENO "configure"
6207 #include "confdefs.h"
6208 #include <X11/Intrinsic.h>
6209 #ifdef F77_DUMMY_MAIN
6213 int F77_DUMMY_MAIN() { return 1; }
6223 rm -f conftest.
$ac_objext conftest
$ac_exeext
6224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6225 (eval $ac_link) 2>&5
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); } &&
6229 { ac_try
='test -s conftest$ac_exeext'
6230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); }; }; then
6236 # We can link X programs with no special library path.
6239 echo "$as_me: failed program was:" >&5
6240 cat conftest.
$ac_ext >&5
6242 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6244 # Don't even attempt the hair of trying to link an X program!
6245 for ac_extension
in a so sl
; do
6246 if test -r $ac_dir/libXt.
$ac_extension; then
6247 ac_x_libraries
=$ac_dir
6253 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6254 fi # $ac_x_libraries = no
6256 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
6257 # Didn't find X anywhere. Cache the known absence of X.
6258 ac_cv_have_x
="have_x=no"
6260 # Record where we found X for the cache.
6261 ac_cv_have_x
="have_x=yes \
6262 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6267 eval "$ac_cv_have_x"
6270 if test "$have_x" != yes; then
6271 echo "$as_me:$LINENO: result: $have_x" >&5
6272 echo "${ECHO_T}$have_x" >&6
6275 # If each of the values was on the command line, it overrides each guess.
6276 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
6277 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
6278 # Update the cache value to reflect the command line values.
6279 ac_cv_have_x
="have_x=yes \
6280 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6281 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6282 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6285 if test "$no_x" = yes; then
6291 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
6292 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
6293 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
6294 x_default_search_path
=""
6295 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
6297 ${x_library}/X11/%L/%T/%N%C%S:\
6298 ${x_library}/X11/%l/%T/%N%C%S:\
6299 ${x_library}/X11/%T/%N%C%S:\
6300 ${x_library}/X11/%L/%T/%N%S:\
6301 ${x_library}/X11/%l/%T/%N%S:\
6302 ${x_library}/X11/%T/%N%S"
6303 if test x
"${x_default_search_path}" = x
; then
6304 x_default_search_path
=${x_search_path}
6306 x_default_search_path
="${x_search_path}:${x_default_search_path}"
6310 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
6311 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
6314 if test x
"${x_includes}" = x
; then
6315 bitmapdir
=/usr
/include
/X11
/bitmaps
6317 # accumulate include directories that have X11 bitmap subdirectories
6319 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
6320 if test -d "${bmd}/X11/bitmaps"; then
6321 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
6323 if test -d "${bmd}/bitmaps"; then
6324 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
6327 if test ${bmd_acc} != "dummyval"; then
6328 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
6332 case "${window_system}" in
6336 case "${with_x_toolkit}" in
6337 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
6338 motif
) USE_X_TOOLKIT
=MOTIF
;;
6339 no
) USE_X_TOOLKIT
=none
;;
6340 * ) USE_X_TOOLKIT
=maybe
;;
6350 ### If we're using X11, we should use the X menu package.
6353 yes ) HAVE_MENUS
=yes ;;
6356 if test "${opsys}" = "hpux9"; then
6357 case "${x_libraries}" in
6359 opsysfile
="s/hpux9-x11r4.h"
6364 if test "${opsys}" = "hpux9shr"; then
6365 case "${x_libraries}" in
6367 opsysfile
="s/hpux9shxr4.h"
6372 ### Compute the unexec source name from the object name.
6373 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
6375 # Do the opsystem or machine files prohibit the use of the GNU malloc?
6376 # Assume not, until told otherwise.
6379 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
6380 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
6381 if test "${ac_cv_func_malloc_get_state+set}" = set; then
6382 echo $ECHO_N "(cached) $ECHO_C" >&6
6384 cat >conftest.
$ac_ext <<_ACEOF
6385 #line $LINENO "configure"
6386 #include "confdefs.h"
6387 /* System header to define __stub macros and hopefully few prototypes,
6388 which can conflict with char malloc_get_state (); below. */
6390 /* Override any gcc2 internal prototype to avoid an error. */
6394 /* We use char because int might match the return type of a gcc2
6395 builtin and then its argument prototype would still apply. */
6396 char malloc_get_state ();
6399 #ifdef F77_DUMMY_MAIN
6403 int F77_DUMMY_MAIN() { return 1; }
6408 /* The GNU C library defines this for functions which it implements
6409 to always fail with ENOSYS. Some functions are actually named
6410 something starting with __ and the normal name is an alias. */
6411 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
6414 f = malloc_get_state;
6421 rm -f conftest.
$ac_objext conftest
$ac_exeext
6422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6423 (eval $ac_link) 2>&5
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); } &&
6427 { ac_try
='test -s conftest$ac_exeext'
6428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; }; then
6433 ac_cv_func_malloc_get_state
=yes
6435 echo "$as_me: failed program was:" >&5
6436 cat conftest.
$ac_ext >&5
6437 ac_cv_func_malloc_get_state
=no
6439 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6441 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
6442 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
6443 if test $ac_cv_func_malloc_get_state = yes; then
6449 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
6450 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
6451 if test "${ac_cv_func_malloc_set_state+set}" = set; then
6452 echo $ECHO_N "(cached) $ECHO_C" >&6
6454 cat >conftest.
$ac_ext <<_ACEOF
6455 #line $LINENO "configure"
6456 #include "confdefs.h"
6457 /* System header to define __stub macros and hopefully few prototypes,
6458 which can conflict with char malloc_set_state (); below. */
6460 /* Override any gcc2 internal prototype to avoid an error. */
6464 /* We use char because int might match the return type of a gcc2
6465 builtin and then its argument prototype would still apply. */
6466 char malloc_set_state ();
6469 #ifdef F77_DUMMY_MAIN
6473 int F77_DUMMY_MAIN() { return 1; }
6478 /* The GNU C library defines this for functions which it implements
6479 to always fail with ENOSYS. Some functions are actually named
6480 something starting with __ and the normal name is an alias. */
6481 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
6484 f = malloc_set_state;
6491 rm -f conftest.
$ac_objext conftest
$ac_exeext
6492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6493 (eval $ac_link) 2>&5
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); } &&
6497 { ac_try
='test -s conftest$ac_exeext'
6498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); }; }; then
6503 ac_cv_func_malloc_set_state
=yes
6505 echo "$as_me: failed program was:" >&5
6506 cat conftest.
$ac_ext >&5
6507 ac_cv_func_malloc_set_state
=no
6509 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6511 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
6512 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
6513 if test $ac_cv_func_malloc_set_state = yes; then
6519 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
6520 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
6521 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
6522 echo $ECHO_N "(cached) $ECHO_C" >&6
6524 cat >conftest.
$ac_ext <<_ACEOF
6525 #line $LINENO "configure"
6526 #include "confdefs.h"
6527 extern void (* __after_morecore_hook)();
6528 #ifdef F77_DUMMY_MAIN
6532 int F77_DUMMY_MAIN() { return 1; }
6537 __after_morecore_hook = 0
6542 rm -f conftest.
$ac_objext conftest
$ac_exeext
6543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6544 (eval $ac_link) 2>&5
6546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547 (exit $ac_status); } &&
6548 { ac_try
='test -s conftest$ac_exeext'
6549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); }; }; then
6554 emacs_cv_var___after_morecore_hook
=yes
6556 echo "$as_me: failed program was:" >&5
6557 cat conftest.
$ac_ext >&5
6558 emacs_cv_var___after_morecore_hook
=no
6560 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6562 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
6563 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
6564 if test $emacs_cv_var___after_morecore_hook = no
; then
6567 if test "${system_malloc}" = "yes"; then
6570 (The GNU allocators don't work with this system configuration.)"
6572 if test "$doug_lea_malloc" = "yes" ; then
6573 if test "$GNU_MALLOC" = yes ; then
6575 (Using Doug Lea's new malloc from the GNU C Library.)"
6578 cat >>confdefs.h
<<\_ACEOF
6579 #define DOUG_LEA_MALLOC 1
6584 if test x
"${REL_ALLOC}" = x
; then
6585 REL_ALLOC
=${GNU_MALLOC}
6591 for ac_header
in stdlib.h unistd.h
6593 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6595 echo "$as_me:$LINENO: checking for $ac_header" >&5
6596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6598 echo $ECHO_N "(cached) $ECHO_C" >&6
6600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6603 # Is the header compilable?
6604 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6605 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6606 cat >conftest.
$ac_ext <<_ACEOF
6607 #line $LINENO "configure"
6608 #include "confdefs.h"
6609 $ac_includes_default
6610 #include <$ac_header>
6612 rm -f conftest.
$ac_objext
6613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6614 (eval $ac_compile) 2>&5
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); } &&
6618 { ac_try
='test -s conftest.$ac_objext'
6619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); }; }; then
6624 ac_header_compiler
=yes
6626 echo "$as_me: failed program was:" >&5
6627 cat conftest.
$ac_ext >&5
6628 ac_header_compiler
=no
6630 rm -f conftest.
$ac_objext conftest.
$ac_ext
6631 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6632 echo "${ECHO_T}$ac_header_compiler" >&6
6634 # Is the header present?
6635 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6636 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6637 cat >conftest.
$ac_ext <<_ACEOF
6638 #line $LINENO "configure"
6639 #include "confdefs.h"
6640 #include <$ac_header>
6642 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6643 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6645 egrep -v '^ *\+' conftest.er1
>conftest.err
6647 cat conftest.err
>&5
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); } >/dev
/null
; then
6650 if test -s conftest.err
; then
6651 ac_cpp_err
=$ac_c_preproc_warn_flag
6658 if test -z "$ac_cpp_err"; then
6659 ac_header_preproc
=yes
6661 echo "$as_me: failed program was:" >&5
6662 cat conftest.
$ac_ext >&5
6663 ac_header_preproc
=no
6665 rm -f conftest.err conftest.
$ac_ext
6666 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6667 echo "${ECHO_T}$ac_header_preproc" >&6
6669 # So? What about this header?
6670 case $ac_header_compiler:$ac_header_preproc in
6672 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6673 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6675 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6677 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6678 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6679 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6680 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6682 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6684 echo "$as_me:$LINENO: checking for $ac_header" >&5
6685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6687 echo $ECHO_N "(cached) $ECHO_C" >&6
6689 eval "$as_ac_Header=$ac_header_preproc"
6691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6696 cat >>confdefs.h
<<_ACEOF
6697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6705 for ac_func
in getpagesize
6707 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6708 echo "$as_me:$LINENO: checking for $ac_func" >&5
6709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6710 if eval "test \"\${$as_ac_var+set}\" = set"; then
6711 echo $ECHO_N "(cached) $ECHO_C" >&6
6713 cat >conftest.
$ac_ext <<_ACEOF
6714 #line $LINENO "configure"
6715 #include "confdefs.h"
6716 /* System header to define __stub macros and hopefully few prototypes,
6717 which can conflict with char $ac_func (); below. */
6719 /* Override any gcc2 internal prototype to avoid an error. */
6723 /* We use char because int might match the return type of a gcc2
6724 builtin and then its argument prototype would still apply. */
6728 #ifdef F77_DUMMY_MAIN
6732 int F77_DUMMY_MAIN() { return 1; }
6737 /* The GNU C library defines this for functions which it implements
6738 to always fail with ENOSYS. Some functions are actually named
6739 something starting with __ and the normal name is an alias. */
6740 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6750 rm -f conftest.
$ac_objext conftest
$ac_exeext
6751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6752 (eval $ac_link) 2>&5
6754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755 (exit $ac_status); } &&
6756 { ac_try
='test -s conftest$ac_exeext'
6757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761 (exit $ac_status); }; }; then
6762 eval "$as_ac_var=yes"
6764 echo "$as_me: failed program was:" >&5
6765 cat conftest.
$ac_ext >&5
6766 eval "$as_ac_var=no"
6768 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6771 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6772 if test `eval echo '${'$as_ac_var'}'` = yes; then
6773 cat >>confdefs.h
<<_ACEOF
6774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6780 echo "$as_me:$LINENO: checking for working mmap" >&5
6781 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6782 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6783 echo $ECHO_N "(cached) $ECHO_C" >&6
6785 if test "$cross_compiling" = yes; then
6786 ac_cv_func_mmap_fixed_mapped
=no
6788 cat >conftest.
$ac_ext <<_ACEOF
6789 #line $LINENO "configure"
6790 #include "confdefs.h"
6791 $ac_includes_default
6792 /* malloc might have been renamed as rpl_malloc. */
6795 /* Thanks to Mike Haertel and Jim Avera for this test.
6796 Here is a matrix of mmap possibilities:
6797 mmap private not fixed
6798 mmap private fixed at somewhere currently unmapped
6799 mmap private fixed at somewhere already mapped
6800 mmap shared not fixed
6801 mmap shared fixed at somewhere currently unmapped
6802 mmap shared fixed at somewhere already mapped
6803 For private mappings, we should verify that changes cannot be read()
6804 back from the file, nor mmap's back from the file at a different
6805 address. (There have been systems where private was not correctly
6806 implemented like the infamous i386 svr4.0, and systems where the
6807 VM page cache was not coherent with the file system buffer cache
6808 like early versions of FreeBSD and possibly contemporary NetBSD.)
6809 For shared mappings, we should conversely verify that changes get
6810 propagated back to all the places they're supposed to be.
6812 Grep wants private fixed already mapped.
6813 The main things grep needs to know about mmap are:
6814 * does it exist and is it safe to write into the mmap'd area
6815 * how to use it (BSD variants) */
6818 #include <sys/mman.h>
6820 #if !STDC_HEADERS && !HAVE_STDLIB_H
6824 /* This mess was copied from the GNU getpagesize.h. */
6825 #if !HAVE_GETPAGESIZE
6826 /* Assume that all systems that can run configure have sys/param.h. */
6827 # if !HAVE_SYS_PARAM_H
6828 # define HAVE_SYS_PARAM_H 1
6831 # ifdef _SC_PAGESIZE
6832 # define getpagesize() sysconf(_SC_PAGESIZE)
6833 # else /* no _SC_PAGESIZE */
6834 # if HAVE_SYS_PARAM_H
6835 # include <sys/param.h>
6836 # ifdef EXEC_PAGESIZE
6837 # define getpagesize() EXEC_PAGESIZE
6838 # else /* no EXEC_PAGESIZE */
6840 # define getpagesize() NBPG * CLSIZE
6843 # endif /* no CLSIZE */
6844 # else /* no NBPG */
6846 # define getpagesize() NBPC
6847 # else /* no NBPC */
6849 # define getpagesize() PAGESIZE
6850 # endif /* PAGESIZE */
6851 # endif /* no NBPC */
6852 # endif /* no NBPG */
6853 # endif /* no EXEC_PAGESIZE */
6854 # else /* no HAVE_SYS_PARAM_H */
6855 # define getpagesize() 8192 /* punt totally */
6856 # endif /* no HAVE_SYS_PARAM_H */
6857 # endif /* no _SC_PAGESIZE */
6859 #endif /* no HAVE_GETPAGESIZE */
6864 char *data, *data2, *data3;
6868 pagesize = getpagesize ();
6870 /* First, make a file with some known garbage in it. */
6871 data = (char *) malloc (pagesize);
6874 for (i = 0; i < pagesize; ++i)
6875 *(data + i) = rand ();
6877 fd = creat ("conftest.mmap", 0600);
6880 if (write (fd, data, pagesize) != pagesize)
6884 /* Next, try to mmap the file at a fixed address which already has
6885 something else allocated at it. If we can, also make sure that
6886 we see the same garbage. */
6887 fd = open ("conftest.mmap", O_RDWR);
6890 data2 = (char *) malloc (2 * pagesize);
6893 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6894 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6895 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6897 for (i = 0; i < pagesize; ++i)
6898 if (*(data + i) != *(data2 + i))
6901 /* Finally, make sure that changes to the mapped area do not
6902 percolate back to the file as seen by read(). (This is a bug on
6903 some variants of i386 svr4.0.) */
6904 for (i = 0; i < pagesize; ++i)
6905 *(data2 + i) = *(data2 + i) + 1;
6906 data3 = (char *) malloc (pagesize);
6909 if (read (fd, data3, pagesize) != pagesize)
6911 for (i = 0; i < pagesize; ++i)
6912 if (*(data + i) != *(data3 + i))
6918 rm -f conftest
$ac_exeext
6919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6920 (eval $ac_link) 2>&5
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); }; }; then
6929 ac_cv_func_mmap_fixed_mapped
=yes
6931 echo "$as_me: program exited with status $ac_status" >&5
6932 echo "$as_me: failed program was:" >&5
6933 cat conftest.
$ac_ext >&5
6935 ac_cv_func_mmap_fixed_mapped
=no
6937 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6940 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6941 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6942 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6944 cat >>confdefs.h
<<\_ACEOF
6951 if test $use_mmap_for_buffers = yes; then
6955 LIBS
="$libsrc_libs $LIBS"
6958 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6959 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6960 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6961 echo $ECHO_N "(cached) $ECHO_C" >&6
6963 ac_check_lib_save_LIBS
=$LIBS
6965 cat >conftest.
$ac_ext <<_ACEOF
6966 #line $LINENO "configure"
6967 #include "confdefs.h"
6969 /* Override any gcc2 internal prototype to avoid an error. */
6973 /* We use char because int might match the return type of a gcc2
6974 builtin and then its argument prototype would still apply. */
6976 #ifdef F77_DUMMY_MAIN
6980 int F77_DUMMY_MAIN() { return 1; }
6990 rm -f conftest.
$ac_objext conftest
$ac_exeext
6991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6992 (eval $ac_link) 2>&5
6994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995 (exit $ac_status); } &&
6996 { ac_try
='test -s conftest$ac_exeext'
6997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001 (exit $ac_status); }; }; then
7002 ac_cv_lib_dnet_dnet_ntoa
=yes
7004 echo "$as_me: failed program was:" >&5
7005 cat conftest.
$ac_ext >&5
7006 ac_cv_lib_dnet_dnet_ntoa
=no
7008 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7009 LIBS
=$ac_check_lib_save_LIBS
7011 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7012 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7013 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7014 cat >>confdefs.h
<<_ACEOF
7015 #define HAVE_LIBDNET 1
7023 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
7024 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
7025 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
7026 echo $ECHO_N "(cached) $ECHO_C" >&6
7028 ac_check_lib_save_LIBS
=$LIBS
7030 cat >conftest.
$ac_ext <<_ACEOF
7031 #line $LINENO "configure"
7032 #include "confdefs.h"
7035 #ifdef F77_DUMMY_MAIN
7039 int F77_DUMMY_MAIN() { return 1; }
7049 rm -f conftest.
$ac_objext conftest
$ac_exeext
7050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7051 (eval $ac_link) 2>&5
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); } &&
7055 { ac_try
='test -s conftest$ac_exeext'
7056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); }; }; then
7061 ac_cv_lib_Xbsd_main
=yes
7063 echo "$as_me: failed program was:" >&5
7064 cat conftest.
$ac_ext >&5
7065 ac_cv_lib_Xbsd_main
=no
7067 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7068 LIBS
=$ac_check_lib_save_LIBS
7070 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
7071 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
7072 if test $ac_cv_lib_Xbsd_main = yes; then
7073 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
7078 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
7079 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
7080 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
7081 echo $ECHO_N "(cached) $ECHO_C" >&6
7083 ac_check_lib_save_LIBS
=$LIBS
7084 LIBS
="-lpthreads $LIBS"
7085 cat >conftest.
$ac_ext <<_ACEOF
7086 #line $LINENO "configure"
7087 #include "confdefs.h"
7089 /* Override any gcc2 internal prototype to avoid an error. */
7093 /* We use char because int might match the return type of a gcc2
7094 builtin and then its argument prototype would still apply. */
7096 #ifdef F77_DUMMY_MAIN
7100 int F77_DUMMY_MAIN() { return 1; }
7110 rm -f conftest.
$ac_objext conftest
$ac_exeext
7111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7112 (eval $ac_link) 2>&5
7114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115 (exit $ac_status); } &&
7116 { ac_try
='test -s conftest$ac_exeext'
7117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); }; }; then
7122 ac_cv_lib_pthreads_cma_open
=yes
7124 echo "$as_me: failed program was:" >&5
7125 cat conftest.
$ac_ext >&5
7126 ac_cv_lib_pthreads_cma_open
=no
7128 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7129 LIBS
=$ac_check_lib_save_LIBS
7131 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
7132 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
7133 if test $ac_cv_lib_pthreads_cma_open = yes; then
7134 cat >>confdefs.h
<<_ACEOF
7135 #define HAVE_LIBPTHREADS 1
7138 LIBS
="-lpthreads $LIBS"
7143 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
7144 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
7145 if test -d /usr
/X386
/include
; then
7147 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
7151 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
7152 echo "${ECHO_T}$HAVE_XFREE386" >&6
7154 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
7155 # for the tests that follow. We set it back to REAL_CFLAGS later on.
7157 REAL_CPPFLAGS
="$CPPFLAGS"
7159 if test "${HAVE_X11}" = "yes"; then
7160 DEFS
="$C_SWITCH_X_SITE $DEFS"
7161 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
7163 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
7164 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
7166 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7167 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7168 # but it's more convenient here to set LD_RUN_PATH
7169 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7170 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
7171 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7175 if test "${opsys}" = "gnu-linux"; then
7176 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
7177 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
7178 cat >conftest.
$ac_ext <<_ACEOF
7179 #line $LINENO "configure"
7180 #include "confdefs.h"
7182 #ifdef F77_DUMMY_MAIN
7186 int F77_DUMMY_MAIN() { return 1; }
7191 XOpenDisplay ("foo");
7196 rm -f conftest.
$ac_objext conftest
$ac_exeext
7197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7198 (eval $ac_link) 2>&5
7200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201 (exit $ac_status); } &&
7202 { ac_try
='test -s conftest$ac_exeext'
7203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 (exit $ac_status); }; }; then
7208 xlinux_first_failure
=no
7210 echo "$as_me: failed program was:" >&5
7211 cat conftest.
$ac_ext >&5
7212 xlinux_first_failure
=yes
7214 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7215 if test "${xlinux_first_failure}" = "yes"; then
7216 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
7217 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
7218 OLD_CPPFLAGS
="$CPPFLAGS"
7220 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
7221 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
7222 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
7223 LIBS
="$LIBS -b i486-linuxaout"
7224 cat >conftest.
$ac_ext <<_ACEOF
7225 #line $LINENO "configure"
7226 #include "confdefs.h"
7228 #ifdef F77_DUMMY_MAIN
7232 int F77_DUMMY_MAIN() { return 1; }
7237 XOpenDisplay ("foo");
7242 rm -f conftest.
$ac_objext conftest
$ac_exeext
7243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7244 (eval $ac_link) 2>&5
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); } &&
7248 { ac_try
='test -s conftest$ac_exeext'
7249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253 (exit $ac_status); }; }; then
7254 xlinux_second_failure
=no
7256 echo "$as_me: failed program was:" >&5
7257 cat conftest.
$ac_ext >&5
7258 xlinux_second_failure
=yes
7260 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7261 if test "${xlinux_second_failure}" = "yes"; then
7262 # If we get the same failure with -b, there is no use adding -b.
7263 # So take it out. This plays safe.
7264 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
7265 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
7266 CPPFLAGS
="$OLD_CPPFLAGS"
7268 echo "$as_me:$LINENO: result: no" >&5
7269 echo "${ECHO_T}no" >&6
7271 echo "$as_me:$LINENO: result: yes" >&5
7272 echo "${ECHO_T}yes" >&6
7275 echo "$as_me:$LINENO: result: no" >&5
7276 echo "${ECHO_T}no" >&6
7280 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7281 # header files included from there.
7282 echo "$as_me:$LINENO: checking for Xkb" >&5
7283 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
7284 cat >conftest.
$ac_ext <<_ACEOF
7285 #line $LINENO "configure"
7286 #include "confdefs.h"
7287 #include <X11/Xlib.h>
7288 #include <X11/XKBlib.h>
7289 #ifdef F77_DUMMY_MAIN
7293 int F77_DUMMY_MAIN() { return 1; }
7298 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7303 rm -f conftest.
$ac_objext conftest
$ac_exeext
7304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7305 (eval $ac_link) 2>&5
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); } &&
7309 { ac_try
='test -s conftest$ac_exeext'
7310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314 (exit $ac_status); }; }; then
7317 echo "$as_me: failed program was:" >&5
7318 cat conftest.
$ac_ext >&5
7321 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7322 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
7323 echo "${ECHO_T}$emacs_xkb" >&6
7324 if test $emacs_xkb = yes; then
7326 cat >>confdefs.h
<<\_ACEOF
7327 #define HAVE_XKBGETKEYBOARD 1
7336 for ac_func
in XrmSetDatabase XScreenResourceString \
7337 XScreenNumberOfScreen XSetWMProtocols
7339 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7340 echo "$as_me:$LINENO: checking for $ac_func" >&5
7341 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7342 if eval "test \"\${$as_ac_var+set}\" = set"; then
7343 echo $ECHO_N "(cached) $ECHO_C" >&6
7345 cat >conftest.
$ac_ext <<_ACEOF
7346 #line $LINENO "configure"
7347 #include "confdefs.h"
7348 /* System header to define __stub macros and hopefully few prototypes,
7349 which can conflict with char $ac_func (); below. */
7351 /* Override any gcc2 internal prototype to avoid an error. */
7355 /* We use char because int might match the return type of a gcc2
7356 builtin and then its argument prototype would still apply. */
7360 #ifdef F77_DUMMY_MAIN
7364 int F77_DUMMY_MAIN() { return 1; }
7369 /* The GNU C library defines this for functions which it implements
7370 to always fail with ENOSYS. Some functions are actually named
7371 something starting with __ and the normal name is an alias. */
7372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7382 rm -f conftest.
$ac_objext conftest
$ac_exeext
7383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7384 (eval $ac_link) 2>&5
7386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387 (exit $ac_status); } &&
7388 { ac_try
='test -s conftest$ac_exeext'
7389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 (exit $ac_status); }; }; then
7394 eval "$as_ac_var=yes"
7396 echo "$as_me: failed program was:" >&5
7397 cat conftest.
$ac_ext >&5
7398 eval "$as_ac_var=no"
7400 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7403 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7404 if test `eval echo '${'$as_ac_var'}'` = yes; then
7405 cat >>confdefs.h
<<_ACEOF
7406 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7414 if test "${window_system}" = "x11"; then
7415 echo "$as_me:$LINENO: checking X11 version 6" >&5
7416 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
7417 if test "${emacs_cv_x11_version_6+set}" = set; then
7418 echo $ECHO_N "(cached) $ECHO_C" >&6
7420 cat >conftest.
$ac_ext <<_ACEOF
7421 #line $LINENO "configure"
7422 #include "confdefs.h"
7423 #include <X11/Xlib.h>
7424 #ifdef F77_DUMMY_MAIN
7428 int F77_DUMMY_MAIN() { return 1; }
7433 #if XlibSpecificationRelease < 6
7441 rm -f conftest.
$ac_objext conftest
$ac_exeext
7442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7443 (eval $ac_link) 2>&5
7445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446 (exit $ac_status); } &&
7447 { ac_try
='test -s conftest$ac_exeext'
7448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); }; }; then
7453 emacs_cv_x11_version_6
=yes
7455 echo "$as_me: failed program was:" >&5
7456 cat conftest.
$ac_ext >&5
7457 emacs_cv_x11_version_6
=no
7459 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7462 if test $emacs_cv_x11_version_6 = yes; then
7463 echo "$as_me:$LINENO: result: 6 or newer" >&5
7464 echo "${ECHO_T}6 or newer" >&6
7466 cat >>confdefs.h
<<\_ACEOF
7467 #define HAVE_X11R6 1
7471 echo "$as_me:$LINENO: result: before 6" >&5
7472 echo "${ECHO_T}before 6" >&6
7476 if test "${window_system}" = "x11"; then
7477 echo "$as_me:$LINENO: checking X11 version 5" >&5
7478 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
7479 if test "${emacs_cv_x11_version_5+set}" = set; then
7480 echo $ECHO_N "(cached) $ECHO_C" >&6
7482 cat >conftest.
$ac_ext <<_ACEOF
7483 #line $LINENO "configure"
7484 #include "confdefs.h"
7485 #include <X11/Xlib.h>
7486 #ifdef F77_DUMMY_MAIN
7490 int F77_DUMMY_MAIN() { return 1; }
7495 #if XlibSpecificationRelease < 5
7503 rm -f conftest.
$ac_objext conftest
$ac_exeext
7504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7505 (eval $ac_link) 2>&5
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 (exit $ac_status); } &&
7509 { ac_try
='test -s conftest$ac_exeext'
7510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 (exit $ac_status); }; }; then
7515 emacs_cv_x11_version_5
=yes
7517 echo "$as_me: failed program was:" >&5
7518 cat conftest.
$ac_ext >&5
7519 emacs_cv_x11_version_5
=no
7521 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7524 if test $emacs_cv_x11_version_5 = yes; then
7525 echo "$as_me:$LINENO: result: 5 or newer" >&5
7526 echo "${ECHO_T}5 or newer" >&6
7529 cat >>confdefs.h
<<\_ACEOF
7530 #define HAVE_X11R5 1
7535 echo "$as_me:$LINENO: result: before 5" >&5
7536 echo "${ECHO_T}before 5" >&6
7540 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
7541 if test x
"${HAVE_X11R5}" = xyes
; then
7542 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
7543 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
7544 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
7545 echo $ECHO_N "(cached) $ECHO_C" >&6
7547 cat >conftest.
$ac_ext <<_ACEOF
7548 #line $LINENO "configure"
7549 #include "confdefs.h"
7551 #include <X11/Intrinsic.h>
7552 #include <X11/Xaw/Simple.h>
7553 #ifdef F77_DUMMY_MAIN
7557 int F77_DUMMY_MAIN() { return 1; }
7567 rm -f conftest.
$ac_objext conftest
$ac_exeext
7568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7569 (eval $ac_link) 2>&5
7571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572 (exit $ac_status); } &&
7573 { ac_try
='test -s conftest$ac_exeext'
7574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); }; }; then
7579 emacs_cv_x11_version_5_with_xaw
=yes
7581 echo "$as_me: failed program was:" >&5
7582 cat conftest.
$ac_ext >&5
7583 emacs_cv_x11_version_5_with_xaw
=no
7585 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7588 if test $emacs_cv_x11_version_5_with_xaw = yes; then
7589 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
7590 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
7593 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
7594 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
7602 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
7604 if test "${USE_X_TOOLKIT}" != "none"; then
7605 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
7606 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
7607 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7610 cat >conftest.
$ac_ext <<_ACEOF
7611 #line $LINENO "configure"
7612 #include "confdefs.h"
7613 #include <X11/Intrinsic.h>
7614 #ifdef F77_DUMMY_MAIN
7618 int F77_DUMMY_MAIN() { return 1; }
7623 #if XtSpecificationRelease < 6
7631 rm -f conftest.
$ac_objext conftest
$ac_exeext
7632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7633 (eval $ac_link) 2>&5
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); } &&
7637 { ac_try
='test -s conftest$ac_exeext'
7638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); }; }; then
7643 emacs_cv_x11_toolkit_version_6
=yes
7645 echo "$as_me: failed program was:" >&5
7646 cat conftest.
$ac_ext >&5
7647 emacs_cv_x11_toolkit_version_6
=no
7649 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7652 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
7653 if test $emacs_cv_x11_toolkit_version_6 = yes; then
7654 echo "$as_me:$LINENO: result: 6 or newer" >&5
7655 echo "${ECHO_T}6 or newer" >&6
7657 cat >>confdefs.h
<<\_ACEOF
7658 #define HAVE_X11XTR6 1
7662 echo "$as_me:$LINENO: result: before 6" >&5
7663 echo "${ECHO_T}before 6" >&6
7667 if test x
$HAVE_X11XTR6 = xyes
; then
7668 LIBS
="-lXt -lSM -lICE $LIBS"
7673 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
7674 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
7675 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
7676 echo $ECHO_N "(cached) $ECHO_C" >&6
7678 ac_check_lib_save_LIBS
=$LIBS
7680 cat >conftest.
$ac_ext <<_ACEOF
7681 #line $LINENO "configure"
7682 #include "confdefs.h"
7684 /* Override any gcc2 internal prototype to avoid an error. */
7688 /* We use char because int might match the return type of a gcc2
7689 builtin and then its argument prototype would still apply. */
7690 char XmuConvertStandardSelection ();
7691 #ifdef F77_DUMMY_MAIN
7695 int F77_DUMMY_MAIN() { return 1; }
7700 XmuConvertStandardSelection ();
7705 rm -f conftest.
$ac_objext conftest
$ac_exeext
7706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7707 (eval $ac_link) 2>&5
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); } &&
7711 { ac_try
='test -s conftest$ac_exeext'
7712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); }; }; then
7717 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
7719 echo "$as_me: failed program was:" >&5
7720 cat conftest.
$ac_ext >&5
7721 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
7723 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7724 LIBS
=$ac_check_lib_save_LIBS
7726 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
7727 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
7728 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
7729 cat >>confdefs.h
<<_ACEOF
7730 #define HAVE_LIBXMU 1
7737 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
7740 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
7741 if test "${HAVE_X11}" = "yes"; then
7742 if test "${USE_X_TOOLKIT}" != "none"; then
7744 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
7745 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7746 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7747 echo $ECHO_N "(cached) $ECHO_C" >&6
7749 ac_check_lib_save_LIBS
=$LIBS
7751 cat >conftest.
$ac_ext <<_ACEOF
7752 #line $LINENO "configure"
7753 #include "confdefs.h"
7755 /* Override any gcc2 internal prototype to avoid an error. */
7759 /* We use char because int might match the return type of a gcc2
7760 builtin and then its argument prototype would still apply. */
7761 char XShapeQueryExtension ();
7762 #ifdef F77_DUMMY_MAIN
7766 int F77_DUMMY_MAIN() { return 1; }
7771 XShapeQueryExtension ();
7776 rm -f conftest.
$ac_objext conftest
$ac_exeext
7777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7778 (eval $ac_link) 2>&5
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); } &&
7782 { ac_try
='test -s conftest$ac_exeext'
7783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); }; }; then
7788 ac_cv_lib_Xext_XShapeQueryExtension
=yes
7790 echo "$as_me: failed program was:" >&5
7791 cat conftest.
$ac_ext >&5
7792 ac_cv_lib_Xext_XShapeQueryExtension
=no
7794 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7795 LIBS
=$ac_check_lib_save_LIBS
7797 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
7798 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
7799 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
7800 cat >>confdefs.h
<<_ACEOF
7801 #define HAVE_LIBXEXT 1
7811 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
7812 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
7813 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
7814 if test "${emacs_cv_motif_version_2_1+set}" = set; then
7815 echo $ECHO_N "(cached) $ECHO_C" >&6
7817 cat >conftest.
$ac_ext <<_ACEOF
7818 #line $LINENO "configure"
7819 #include "confdefs.h"
7821 #ifdef F77_DUMMY_MAIN
7825 int F77_DUMMY_MAIN() { return 1; }
7830 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
7833 Motif version prior to 2.1.
7839 rm -f conftest.
$ac_objext
7840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7841 (eval $ac_compile) 2>&5
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); } &&
7845 { ac_try
='test -s conftest.$ac_objext'
7846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); }; }; then
7851 emacs_cv_motif_version_2_1
=yes
7853 echo "$as_me: failed program was:" >&5
7854 cat conftest.
$ac_ext >&5
7855 emacs_cv_motif_version_2_1
=no
7857 rm -f conftest.
$ac_objext conftest.
$ac_ext
7859 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
7860 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
7861 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
7862 if test $emacs_cv_motif_version_2_1 = yes; then
7865 cat >>confdefs.h
<<\_ACEOF
7866 #define HAVE_MOTIF_2_1 1
7869 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
7870 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
7871 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
7872 echo $ECHO_N "(cached) $ECHO_C" >&6
7874 ac_check_lib_save_LIBS
=$LIBS
7876 cat >conftest.
$ac_ext <<_ACEOF
7877 #line $LINENO "configure"
7878 #include "confdefs.h"
7880 /* Override any gcc2 internal prototype to avoid an error. */
7884 /* We use char because int might match the return type of a gcc2
7885 builtin and then its argument prototype would still apply. */
7886 char XpCreateContext ();
7887 #ifdef F77_DUMMY_MAIN
7891 int F77_DUMMY_MAIN() { return 1; }
7901 rm -f conftest.
$ac_objext conftest
$ac_exeext
7902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7903 (eval $ac_link) 2>&5
7905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906 (exit $ac_status); } &&
7907 { ac_try
='test -s conftest$ac_exeext'
7908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912 (exit $ac_status); }; }; then
7913 ac_cv_lib_Xp_XpCreateContext
=yes
7915 echo "$as_me: failed program was:" >&5
7916 cat conftest.
$ac_ext >&5
7917 ac_cv_lib_Xp_XpCreateContext
=no
7919 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7920 LIBS
=$ac_check_lib_save_LIBS
7922 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
7923 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
7924 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
7928 if test ${HAVE_LIBXP} = yes; then
7930 cat >>confdefs.h
<<\_ACEOF
7931 #define HAVE_LIBXP 1
7938 ### Is -lXaw3d available?
7940 if test "${HAVE_X11}" = "yes"; then
7941 if test "${USE_X_TOOLKIT}" != "none"; then
7942 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
7943 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
7944 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
7945 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
7946 echo $ECHO_N "(cached) $ECHO_C" >&6
7948 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
7949 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
7951 # Is the header compilable?
7952 echo "$as_me:$LINENO: checking X11/Xaw3d/Scrollbar.h usability" >&5
7953 echo $ECHO_N "checking X11/Xaw3d/Scrollbar.h usability... $ECHO_C" >&6
7954 cat >conftest.
$ac_ext <<_ACEOF
7955 #line $LINENO "configure"
7956 #include "confdefs.h"
7957 $ac_includes_default
7958 #include <X11/Xaw3d/Scrollbar.h>
7960 rm -f conftest.
$ac_objext
7961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7962 (eval $ac_compile) 2>&5
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); } &&
7966 { ac_try
='test -s conftest.$ac_objext'
7967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); }; }; then
7972 ac_header_compiler
=yes
7974 echo "$as_me: failed program was:" >&5
7975 cat conftest.
$ac_ext >&5
7976 ac_header_compiler
=no
7978 rm -f conftest.
$ac_objext conftest.
$ac_ext
7979 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7980 echo "${ECHO_T}$ac_header_compiler" >&6
7982 # Is the header present?
7983 echo "$as_me:$LINENO: checking X11/Xaw3d/Scrollbar.h presence" >&5
7984 echo $ECHO_N "checking X11/Xaw3d/Scrollbar.h presence... $ECHO_C" >&6
7985 cat >conftest.
$ac_ext <<_ACEOF
7986 #line $LINENO "configure"
7987 #include "confdefs.h"
7988 #include <X11/Xaw3d/Scrollbar.h>
7990 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7991 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7993 egrep -v '^ *\+' conftest.er1
>conftest.err
7995 cat conftest.err
>&5
7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997 (exit $ac_status); } >/dev
/null
; then
7998 if test -s conftest.err
; then
7999 ac_cpp_err
=$ac_c_preproc_warn_flag
8006 if test -z "$ac_cpp_err"; then
8007 ac_header_preproc
=yes
8009 echo "$as_me: failed program was:" >&5
8010 cat conftest.
$ac_ext >&5
8011 ac_header_preproc
=no
8013 rm -f conftest.err conftest.
$ac_ext
8014 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8015 echo "${ECHO_T}$ac_header_preproc" >&6
8017 # So? What about this header?
8018 case $ac_header_compiler:$ac_header_preproc in
8020 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: accepted by the compiler, rejected by the preprocessor!" >&5
8021 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8022 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&5
8023 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&2;};;
8025 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: present but cannot be compiled" >&5
8026 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: present but cannot be compiled" >&2;}
8027 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: check for missing prerequisite headers?" >&5
8028 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: check for missing prerequisite headers?" >&2;}
8029 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&5
8030 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&2;};;
8032 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
8033 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
8034 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
8035 echo $ECHO_N "(cached) $ECHO_C" >&6
8037 ac_cv_header_X11_Xaw3d_Scrollbar_h
=$ac_header_preproc
8039 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
8040 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
8043 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
8044 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
8045 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
8046 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
8047 echo $ECHO_N "(cached) $ECHO_C" >&6
8049 ac_check_lib_save_LIBS
=$LIBS
8050 LIBS
="-lXaw3d $LIBS"
8051 cat >conftest.
$ac_ext <<_ACEOF
8052 #line $LINENO "configure"
8053 #include "confdefs.h"
8055 /* Override any gcc2 internal prototype to avoid an error. */
8059 /* We use char because int might match the return type of a gcc2
8060 builtin and then its argument prototype would still apply. */
8061 char XawScrollbarSetThumb ();
8062 #ifdef F77_DUMMY_MAIN
8066 int F77_DUMMY_MAIN() { return 1; }
8071 XawScrollbarSetThumb ();
8076 rm -f conftest.
$ac_objext conftest
$ac_exeext
8077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8078 (eval $ac_link) 2>&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); } &&
8082 { ac_try
='test -s conftest$ac_exeext'
8083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); }; }; then
8088 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
8090 echo "$as_me: failed program was:" >&5
8091 cat conftest.
$ac_ext >&5
8092 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
8094 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8095 LIBS
=$ac_check_lib_save_LIBS
8097 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
8098 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
8099 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
8106 if test "${HAVE_XAW3D}" = "yes"; then
8108 cat >>confdefs.h
<<\_ACEOF
8109 #define HAVE_XAW3D 1
8118 USE_TOOLKIT_SCROLL_BARS
=no
8119 if test "${with_toolkit_scroll_bars}" != "no"; then
8120 if test "${USE_X_TOOLKIT}" != "none"; then
8121 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8122 cat >>confdefs.h
<<\_ACEOF
8123 #define USE_TOOLKIT_SCROLL_BARS 1
8127 USE_TOOLKIT_SCROLL_BARS
=yes
8128 elif test "${HAVE_XAW3D}" = "yes"; then
8129 cat >>confdefs.h
<<\_ACEOF
8130 #define USE_TOOLKIT_SCROLL_BARS 1
8133 USE_TOOLKIT_SCROLL_BARS
=yes
8139 if test "${with_xim}" != "no"; then
8141 cat >>confdefs.h
<<\_ACEOF
8147 ### Use -lXpm if available, unless `--with-xpm=no'.
8149 if test "${HAVE_X11}" = "yes"; then
8150 if test "${with_xpm}" != "no"; then
8151 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8152 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8153 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8154 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8155 echo $ECHO_N "(cached) $ECHO_C" >&6
8157 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8158 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8160 # Is the header compilable?
8161 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
8162 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
8163 cat >conftest.
$ac_ext <<_ACEOF
8164 #line $LINENO "configure"
8165 #include "confdefs.h"
8166 $ac_includes_default
8167 #include <X11/xpm.h>
8169 rm -f conftest.
$ac_objext
8170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8171 (eval $ac_compile) 2>&5
8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); } &&
8175 { ac_try
='test -s conftest.$ac_objext'
8176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); }; }; then
8181 ac_header_compiler
=yes
8183 echo "$as_me: failed program was:" >&5
8184 cat conftest.
$ac_ext >&5
8185 ac_header_compiler
=no
8187 rm -f conftest.
$ac_objext conftest.
$ac_ext
8188 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8189 echo "${ECHO_T}$ac_header_compiler" >&6
8191 # Is the header present?
8192 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
8193 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
8194 cat >conftest.
$ac_ext <<_ACEOF
8195 #line $LINENO "configure"
8196 #include "confdefs.h"
8197 #include <X11/xpm.h>
8199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8200 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8202 egrep -v '^ *\+' conftest.er1
>conftest.err
8204 cat conftest.err
>&5
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); } >/dev
/null
; then
8207 if test -s conftest.err
; then
8208 ac_cpp_err
=$ac_c_preproc_warn_flag
8215 if test -z "$ac_cpp_err"; then
8216 ac_header_preproc
=yes
8218 echo "$as_me: failed program was:" >&5
8219 cat conftest.
$ac_ext >&5
8220 ac_header_preproc
=no
8222 rm -f conftest.err conftest.
$ac_ext
8223 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8224 echo "${ECHO_T}$ac_header_preproc" >&6
8226 # So? What about this header?
8227 case $ac_header_compiler:$ac_header_preproc in
8229 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
8230 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8231 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8232 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;};;
8234 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
8235 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
8236 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
8237 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
8238 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8239 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;};;
8241 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8242 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8243 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8244 echo $ECHO_N "(cached) $ECHO_C" >&6
8246 ac_cv_header_X11_xpm_h
=$ac_header_preproc
8248 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8249 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8252 if test $ac_cv_header_X11_xpm_h = yes; then
8253 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
8254 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
8255 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
8256 echo $ECHO_N "(cached) $ECHO_C" >&6
8258 ac_check_lib_save_LIBS
=$LIBS
8259 LIBS
="-lXpm -lX11 $LIBS"
8260 cat >conftest.
$ac_ext <<_ACEOF
8261 #line $LINENO "configure"
8262 #include "confdefs.h"
8264 /* Override any gcc2 internal prototype to avoid an error. */
8268 /* We use char because int might match the return type of a gcc2
8269 builtin and then its argument prototype would still apply. */
8270 char XpmReadFileToPixmap ();
8271 #ifdef F77_DUMMY_MAIN
8275 int F77_DUMMY_MAIN() { return 1; }
8280 XpmReadFileToPixmap ();
8285 rm -f conftest.
$ac_objext conftest
$ac_exeext
8286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8287 (eval $ac_link) 2>&5
8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290 (exit $ac_status); } &&
8291 { ac_try
='test -s conftest$ac_exeext'
8292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296 (exit $ac_status); }; }; then
8297 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
8299 echo "$as_me: failed program was:" >&5
8300 cat conftest.
$ac_ext >&5
8301 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
8303 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8304 LIBS
=$ac_check_lib_save_LIBS
8306 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
8307 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
8308 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
8315 if test "${HAVE_XPM}" = "yes"; then
8316 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
8317 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
8318 cat >conftest.
$ac_ext <<_ACEOF
8319 #line $LINENO "configure"
8320 #include "confdefs.h"
8321 #include "X11/xpm.h"
8322 #ifndef XpmReturnAllocPixels
8323 no_return_alloc_pixels
8327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8328 egrep "no_return_alloc_pixels" >/dev
/null
2>&1; then
8336 if test "${HAVE_XPM}" = "yes"; then
8337 echo "$as_me:$LINENO: result: yes" >&5
8338 echo "${ECHO_T}yes" >&6
8340 echo "$as_me:$LINENO: result: no" >&5
8341 echo "${ECHO_T}no" >&6
8346 if test "${HAVE_XPM}" = "yes"; then
8348 cat >>confdefs.h
<<\_ACEOF
8355 ### Use -ljpeg if available, unless `--with-jpeg=no'.
8357 if test "${HAVE_X11}" = "yes"; then
8358 if test "${with_jpeg}" != "no"; then
8359 if test "${ac_cv_header_jerror_h+set}" = set; then
8360 echo "$as_me:$LINENO: checking for jerror.h" >&5
8361 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
8362 if test "${ac_cv_header_jerror_h+set}" = set; then
8363 echo $ECHO_N "(cached) $ECHO_C" >&6
8365 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
8366 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
8368 # Is the header compilable?
8369 echo "$as_me:$LINENO: checking jerror.h usability" >&5
8370 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
8371 cat >conftest.
$ac_ext <<_ACEOF
8372 #line $LINENO "configure"
8373 #include "confdefs.h"
8374 $ac_includes_default
8377 rm -f conftest.
$ac_objext
8378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8379 (eval $ac_compile) 2>&5
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); } &&
8383 { ac_try
='test -s conftest.$ac_objext'
8384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); }; }; then
8389 ac_header_compiler
=yes
8391 echo "$as_me: failed program was:" >&5
8392 cat conftest.
$ac_ext >&5
8393 ac_header_compiler
=no
8395 rm -f conftest.
$ac_objext conftest.
$ac_ext
8396 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8397 echo "${ECHO_T}$ac_header_compiler" >&6
8399 # Is the header present?
8400 echo "$as_me:$LINENO: checking jerror.h presence" >&5
8401 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
8402 cat >conftest.
$ac_ext <<_ACEOF
8403 #line $LINENO "configure"
8404 #include "confdefs.h"
8407 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8408 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8410 egrep -v '^ *\+' conftest.er1
>conftest.err
8412 cat conftest.err
>&5
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); } >/dev
/null
; then
8415 if test -s conftest.err
; then
8416 ac_cpp_err
=$ac_c_preproc_warn_flag
8423 if test -z "$ac_cpp_err"; then
8424 ac_header_preproc
=yes
8426 echo "$as_me: failed program was:" >&5
8427 cat conftest.
$ac_ext >&5
8428 ac_header_preproc
=no
8430 rm -f conftest.err conftest.
$ac_ext
8431 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8432 echo "${ECHO_T}$ac_header_preproc" >&6
8434 # So? What about this header?
8435 case $ac_header_compiler:$ac_header_preproc in
8437 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
8438 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8439 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
8440 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;};;
8442 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
8443 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
8444 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
8445 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
8446 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
8447 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;};;
8449 echo "$as_me:$LINENO: checking for jerror.h" >&5
8450 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
8451 if test "${ac_cv_header_jerror_h+set}" = set; then
8452 echo $ECHO_N "(cached) $ECHO_C" >&6
8454 ac_cv_header_jerror_h
=$ac_header_preproc
8456 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
8457 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
8460 if test $ac_cv_header_jerror_h = yes; then
8461 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
8462 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
8463 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
8464 echo $ECHO_N "(cached) $ECHO_C" >&6
8466 ac_check_lib_save_LIBS
=$LIBS
8468 cat >conftest.
$ac_ext <<_ACEOF
8469 #line $LINENO "configure"
8470 #include "confdefs.h"
8472 /* Override any gcc2 internal prototype to avoid an error. */
8476 /* We use char because int might match the return type of a gcc2
8477 builtin and then its argument prototype would still apply. */
8478 char jpeg_destroy_compress ();
8479 #ifdef F77_DUMMY_MAIN
8483 int F77_DUMMY_MAIN() { return 1; }
8488 jpeg_destroy_compress ();
8493 rm -f conftest.
$ac_objext conftest
$ac_exeext
8494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8495 (eval $ac_link) 2>&5
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); } &&
8499 { ac_try
='test -s conftest$ac_exeext'
8500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); }; }; then
8505 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
8507 echo "$as_me: failed program was:" >&5
8508 cat conftest.
$ac_ext >&5
8509 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
8511 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8512 LIBS
=$ac_check_lib_save_LIBS
8514 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
8515 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
8516 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
8526 if test "${HAVE_JPEG}" = "yes"; then
8527 cat >>confdefs.h
<<\_ACEOF
8531 cat >conftest.
$ac_ext <<_ACEOF
8532 #line $LINENO "configure"
8533 #include "confdefs.h"
8534 #include <jpeglib.h>
8535 version=JPEG_LIB_VERSION
8538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8539 egrep "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
8540 cat >>confdefs.h
<<\_ACEOF
8545 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
8546 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
8554 ### Use -lpng if available, unless `--with-png=no'.
8556 if test "${HAVE_X11}" = "yes"; then
8557 if test "${with_png}" != "no"; then
8558 if test "${ac_cv_header_png_h+set}" = set; then
8559 echo "$as_me:$LINENO: checking for png.h" >&5
8560 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
8561 if test "${ac_cv_header_png_h+set}" = set; then
8562 echo $ECHO_N "(cached) $ECHO_C" >&6
8564 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
8565 echo "${ECHO_T}$ac_cv_header_png_h" >&6
8567 # Is the header compilable?
8568 echo "$as_me:$LINENO: checking png.h usability" >&5
8569 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
8570 cat >conftest.
$ac_ext <<_ACEOF
8571 #line $LINENO "configure"
8572 #include "confdefs.h"
8573 $ac_includes_default
8576 rm -f conftest.
$ac_objext
8577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8578 (eval $ac_compile) 2>&5
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); } &&
8582 { ac_try
='test -s conftest.$ac_objext'
8583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); }; }; then
8588 ac_header_compiler
=yes
8590 echo "$as_me: failed program was:" >&5
8591 cat conftest.
$ac_ext >&5
8592 ac_header_compiler
=no
8594 rm -f conftest.
$ac_objext conftest.
$ac_ext
8595 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8596 echo "${ECHO_T}$ac_header_compiler" >&6
8598 # Is the header present?
8599 echo "$as_me:$LINENO: checking png.h presence" >&5
8600 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
8601 cat >conftest.
$ac_ext <<_ACEOF
8602 #line $LINENO "configure"
8603 #include "confdefs.h"
8606 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8607 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8609 egrep -v '^ *\+' conftest.er1
>conftest.err
8611 cat conftest.err
>&5
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); } >/dev
/null
; then
8614 if test -s conftest.err
; then
8615 ac_cpp_err
=$ac_c_preproc_warn_flag
8622 if test -z "$ac_cpp_err"; then
8623 ac_header_preproc
=yes
8625 echo "$as_me: failed program was:" >&5
8626 cat conftest.
$ac_ext >&5
8627 ac_header_preproc
=no
8629 rm -f conftest.err conftest.
$ac_ext
8630 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8631 echo "${ECHO_T}$ac_header_preproc" >&6
8633 # So? What about this header?
8634 case $ac_header_compiler:$ac_header_preproc in
8636 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
8637 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8638 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
8639 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;};;
8641 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
8642 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
8643 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
8644 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
8645 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
8646 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;};;
8648 echo "$as_me:$LINENO: checking for png.h" >&5
8649 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
8650 if test "${ac_cv_header_png_h+set}" = set; then
8651 echo $ECHO_N "(cached) $ECHO_C" >&6
8653 ac_cv_header_png_h
=$ac_header_preproc
8655 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
8656 echo "${ECHO_T}$ac_cv_header_png_h" >&6
8659 if test $ac_cv_header_png_h = yes; then
8660 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
8661 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
8662 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
8663 echo $ECHO_N "(cached) $ECHO_C" >&6
8665 ac_check_lib_save_LIBS
=$LIBS
8666 LIBS
="-lpng -lz -lm $LIBS"
8667 cat >conftest.
$ac_ext <<_ACEOF
8668 #line $LINENO "configure"
8669 #include "confdefs.h"
8671 /* Override any gcc2 internal prototype to avoid an error. */
8675 /* We use char because int might match the return type of a gcc2
8676 builtin and then its argument prototype would still apply. */
8677 char png_get_channels ();
8678 #ifdef F77_DUMMY_MAIN
8682 int F77_DUMMY_MAIN() { return 1; }
8687 png_get_channels ();
8692 rm -f conftest.
$ac_objext conftest
$ac_exeext
8693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8694 (eval $ac_link) 2>&5
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); } &&
8698 { ac_try
='test -s conftest$ac_exeext'
8699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); }; }; then
8704 ac_cv_lib_png_png_get_channels
=yes
8706 echo "$as_me: failed program was:" >&5
8707 cat conftest.
$ac_ext >&5
8708 ac_cv_lib_png_png_get_channels
=no
8710 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8711 LIBS
=$ac_check_lib_save_LIBS
8713 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
8714 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
8715 if test $ac_cv_lib_png_png_get_channels = yes; then
8724 if test "${HAVE_PNG}" = "yes"; then
8726 cat >>confdefs.h
<<\_ACEOF
8733 ### Use -ltiff if available, unless `--with-tiff=no'.
8735 if test "${HAVE_X11}" = "yes"; then
8736 if test "${with_tiff}" != "no"; then
8737 if test "${ac_cv_header_tiffio_h+set}" = set; then
8738 echo "$as_me:$LINENO: checking for tiffio.h" >&5
8739 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
8740 if test "${ac_cv_header_tiffio_h+set}" = set; then
8741 echo $ECHO_N "(cached) $ECHO_C" >&6
8743 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
8744 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
8746 # Is the header compilable?
8747 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
8748 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
8749 cat >conftest.
$ac_ext <<_ACEOF
8750 #line $LINENO "configure"
8751 #include "confdefs.h"
8752 $ac_includes_default
8755 rm -f conftest.
$ac_objext
8756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8757 (eval $ac_compile) 2>&5
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); } &&
8761 { ac_try
='test -s conftest.$ac_objext'
8762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); }; }; then
8767 ac_header_compiler
=yes
8769 echo "$as_me: failed program was:" >&5
8770 cat conftest.
$ac_ext >&5
8771 ac_header_compiler
=no
8773 rm -f conftest.
$ac_objext conftest.
$ac_ext
8774 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8775 echo "${ECHO_T}$ac_header_compiler" >&6
8777 # Is the header present?
8778 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
8779 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
8780 cat >conftest.
$ac_ext <<_ACEOF
8781 #line $LINENO "configure"
8782 #include "confdefs.h"
8785 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8786 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8788 egrep -v '^ *\+' conftest.er1
>conftest.err
8790 cat conftest.err
>&5
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); } >/dev
/null
; then
8793 if test -s conftest.err
; then
8794 ac_cpp_err
=$ac_c_preproc_warn_flag
8801 if test -z "$ac_cpp_err"; then
8802 ac_header_preproc
=yes
8804 echo "$as_me: failed program was:" >&5
8805 cat conftest.
$ac_ext >&5
8806 ac_header_preproc
=no
8808 rm -f conftest.err conftest.
$ac_ext
8809 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8810 echo "${ECHO_T}$ac_header_preproc" >&6
8812 # So? What about this header?
8813 case $ac_header_compiler:$ac_header_preproc in
8815 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
8816 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8817 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
8818 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;};;
8820 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
8821 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
8822 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
8823 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
8824 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
8825 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;};;
8827 echo "$as_me:$LINENO: checking for tiffio.h" >&5
8828 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
8829 if test "${ac_cv_header_tiffio_h+set}" = set; then
8830 echo $ECHO_N "(cached) $ECHO_C" >&6
8832 ac_cv_header_tiffio_h
=$ac_header_preproc
8834 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
8835 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
8838 if test $ac_cv_header_tiffio_h = yes; then
8840 # At least one tiff package requires the jpeg library.
8841 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
8842 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
8843 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
8844 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
8845 echo $ECHO_N "(cached) $ECHO_C" >&6
8847 ac_check_lib_save_LIBS
=$LIBS
8848 LIBS
="-ltiff $tifflibs $LIBS"
8849 cat >conftest.
$ac_ext <<_ACEOF
8850 #line $LINENO "configure"
8851 #include "confdefs.h"
8853 /* Override any gcc2 internal prototype to avoid an error. */
8857 /* We use char because int might match the return type of a gcc2
8858 builtin and then its argument prototype would still apply. */
8859 char TIFFGetVersion ();
8860 #ifdef F77_DUMMY_MAIN
8864 int F77_DUMMY_MAIN() { return 1; }
8874 rm -f conftest.
$ac_objext conftest
$ac_exeext
8875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8876 (eval $ac_link) 2>&5
8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); } &&
8880 { ac_try
='test -s conftest$ac_exeext'
8881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 (exit $ac_status); }; }; then
8886 ac_cv_lib_tiff_TIFFGetVersion
=yes
8888 echo "$as_me: failed program was:" >&5
8889 cat conftest.
$ac_ext >&5
8890 ac_cv_lib_tiff_TIFFGetVersion
=no
8892 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8893 LIBS
=$ac_check_lib_save_LIBS
8895 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
8896 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
8897 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
8906 if test "${HAVE_TIFF}" = "yes"; then
8908 cat >>confdefs.h
<<\_ACEOF
8915 ### Use -lgif if available, unless `--with-gif=no'.
8917 if test "${HAVE_X11}" = "yes"; then
8918 if test "${with_gif}" != "no"; then
8919 if test "${ac_cv_header_gif_lib_h+set}" = set; then
8920 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
8921 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
8922 if test "${ac_cv_header_gif_lib_h+set}" = set; then
8923 echo $ECHO_N "(cached) $ECHO_C" >&6
8925 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
8926 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
8928 # Is the header compilable?
8929 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
8930 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
8931 cat >conftest.
$ac_ext <<_ACEOF
8932 #line $LINENO "configure"
8933 #include "confdefs.h"
8934 $ac_includes_default
8935 #include <gif_lib.h>
8937 rm -f conftest.
$ac_objext
8938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8939 (eval $ac_compile) 2>&5
8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942 (exit $ac_status); } &&
8943 { ac_try
='test -s conftest.$ac_objext'
8944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); }; }; then
8949 ac_header_compiler
=yes
8951 echo "$as_me: failed program was:" >&5
8952 cat conftest.
$ac_ext >&5
8953 ac_header_compiler
=no
8955 rm -f conftest.
$ac_objext conftest.
$ac_ext
8956 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8957 echo "${ECHO_T}$ac_header_compiler" >&6
8959 # Is the header present?
8960 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
8961 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
8962 cat >conftest.
$ac_ext <<_ACEOF
8963 #line $LINENO "configure"
8964 #include "confdefs.h"
8965 #include <gif_lib.h>
8967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8968 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8970 egrep -v '^ *\+' conftest.er1
>conftest.err
8972 cat conftest.err
>&5
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); } >/dev
/null
; then
8975 if test -s conftest.err
; then
8976 ac_cpp_err
=$ac_c_preproc_warn_flag
8983 if test -z "$ac_cpp_err"; then
8984 ac_header_preproc
=yes
8986 echo "$as_me: failed program was:" >&5
8987 cat conftest.
$ac_ext >&5
8988 ac_header_preproc
=no
8990 rm -f conftest.err conftest.
$ac_ext
8991 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8992 echo "${ECHO_T}$ac_header_preproc" >&6
8994 # So? What about this header?
8995 case $ac_header_compiler:$ac_header_preproc in
8997 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8998 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8999 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9000 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;};;
9002 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
9003 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
9004 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
9005 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
9006 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9007 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;};;
9009 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9010 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9011 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9012 echo $ECHO_N "(cached) $ECHO_C" >&6
9014 ac_cv_header_gif_lib_h
=$ac_header_preproc
9016 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9017 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9020 if test $ac_cv_header_gif_lib_h = yes; then
9021 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
9022 # Earlier versions can crash Emacs.
9023 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
9024 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
9025 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
9026 echo $ECHO_N "(cached) $ECHO_C" >&6
9028 ac_check_lib_save_LIBS
=$LIBS
9029 LIBS
="-lungif $LIBS"
9030 cat >conftest.
$ac_ext <<_ACEOF
9031 #line $LINENO "configure"
9032 #include "confdefs.h"
9034 /* Override any gcc2 internal prototype to avoid an error. */
9038 /* We use char because int might match the return type of a gcc2
9039 builtin and then its argument prototype would still apply. */
9040 char EGifPutExtensionLast ();
9041 #ifdef F77_DUMMY_MAIN
9045 int F77_DUMMY_MAIN() { return 1; }
9050 EGifPutExtensionLast ();
9055 rm -f conftest.
$ac_objext conftest
$ac_exeext
9056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9057 (eval $ac_link) 2>&5
9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 (exit $ac_status); } &&
9061 { ac_try
='test -s conftest$ac_exeext'
9062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); }; }; then
9067 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
9069 echo "$as_me: failed program was:" >&5
9070 cat conftest.
$ac_ext >&5
9071 ac_cv_lib_ungif_EGifPutExtensionLast
=no
9073 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9074 LIBS
=$ac_check_lib_save_LIBS
9076 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
9077 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
9078 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
9087 if test "${HAVE_GIF}" = "yes"; then
9089 cat >>confdefs.h
<<\_ACEOF
9096 ### Use Mac OS X Carbon API to implement GUI.
9098 if test "${with_carbon}" != "no"; then
9099 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9100 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9101 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
9102 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9103 echo $ECHO_N "(cached) $ECHO_C" >&6
9105 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9106 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
9108 # Is the header compilable?
9109 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9110 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
9111 cat >conftest.
$ac_ext <<_ACEOF
9112 #line $LINENO "configure"
9113 #include "confdefs.h"
9114 $ac_includes_default
9115 #include <Carbon/Carbon.h>
9117 rm -f conftest.
$ac_objext
9118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9119 (eval $ac_compile) 2>&5
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 (exit $ac_status); } &&
9123 { ac_try
='test -s conftest.$ac_objext'
9124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128 (exit $ac_status); }; }; then
9129 ac_header_compiler
=yes
9131 echo "$as_me: failed program was:" >&5
9132 cat conftest.
$ac_ext >&5
9133 ac_header_compiler
=no
9135 rm -f conftest.
$ac_objext conftest.
$ac_ext
9136 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9137 echo "${ECHO_T}$ac_header_compiler" >&6
9139 # Is the header present?
9140 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9141 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
9142 cat >conftest.
$ac_ext <<_ACEOF
9143 #line $LINENO "configure"
9144 #include "confdefs.h"
9145 #include <Carbon/Carbon.h>
9147 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9148 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9150 egrep -v '^ *\+' conftest.er1
>conftest.err
9152 cat conftest.err
>&5
9153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154 (exit $ac_status); } >/dev
/null
; then
9155 if test -s conftest.err
; then
9156 ac_cpp_err
=$ac_c_preproc_warn_flag
9163 if test -z "$ac_cpp_err"; then
9164 ac_header_preproc
=yes
9166 echo "$as_me: failed program was:" >&5
9167 cat conftest.
$ac_ext >&5
9168 ac_header_preproc
=no
9170 rm -f conftest.err conftest.
$ac_ext
9171 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9172 echo "${ECHO_T}$ac_header_preproc" >&6
9174 # So? What about this header?
9175 case $ac_header_compiler:$ac_header_preproc in
9177 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9178 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9179 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9180 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;};;
9182 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9183 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9184 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9185 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9186 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9187 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;};;
9189 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9190 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
9191 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9192 echo $ECHO_N "(cached) $ECHO_C" >&6
9194 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
9196 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9197 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
9200 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9207 if test "${HAVE_CARBON}" = "yes"; then
9208 cat >>confdefs.h
<<\_ACEOF
9209 #define HAVE_CARBON 1
9214 ### Use session management (-lSM -lICE) if available
9216 if test "${HAVE_X11}" = "yes"; then
9217 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9218 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
9219 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
9220 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9221 echo $ECHO_N "(cached) $ECHO_C" >&6
9223 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
9224 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
9226 # Is the header compilable?
9227 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
9228 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
9229 cat >conftest.
$ac_ext <<_ACEOF
9230 #line $LINENO "configure"
9231 #include "confdefs.h"
9232 $ac_includes_default
9233 #include <X11/SM/SMlib.h>
9235 rm -f conftest.
$ac_objext
9236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9237 (eval $ac_compile) 2>&5
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); } &&
9241 { ac_try
='test -s conftest.$ac_objext'
9242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 (exit $ac_status); }; }; then
9247 ac_header_compiler
=yes
9249 echo "$as_me: failed program was:" >&5
9250 cat conftest.
$ac_ext >&5
9251 ac_header_compiler
=no
9253 rm -f conftest.
$ac_objext conftest.
$ac_ext
9254 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9255 echo "${ECHO_T}$ac_header_compiler" >&6
9257 # Is the header present?
9258 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
9259 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
9260 cat >conftest.
$ac_ext <<_ACEOF
9261 #line $LINENO "configure"
9262 #include "confdefs.h"
9263 #include <X11/SM/SMlib.h>
9265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9266 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9268 egrep -v '^ *\+' conftest.er1
>conftest.err
9270 cat conftest.err
>&5
9271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272 (exit $ac_status); } >/dev
/null
; then
9273 if test -s conftest.err
; then
9274 ac_cpp_err
=$ac_c_preproc_warn_flag
9281 if test -z "$ac_cpp_err"; then
9282 ac_header_preproc
=yes
9284 echo "$as_me: failed program was:" >&5
9285 cat conftest.
$ac_ext >&5
9286 ac_header_preproc
=no
9288 rm -f conftest.err conftest.
$ac_ext
9289 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9290 echo "${ECHO_T}$ac_header_preproc" >&6
9292 # So? What about this header?
9293 case $ac_header_compiler:$ac_header_preproc in
9295 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9296 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9297 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
9298 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;};;
9300 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
9301 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
9302 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
9303 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
9304 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
9305 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;};;
9307 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
9308 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
9309 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9310 echo $ECHO_N "(cached) $ECHO_C" >&6
9312 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
9314 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
9315 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
9318 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
9319 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
9320 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
9321 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
9322 echo $ECHO_N "(cached) $ECHO_C" >&6
9324 ac_check_lib_save_LIBS
=$LIBS
9326 cat >conftest.
$ac_ext <<_ACEOF
9327 #line $LINENO "configure"
9328 #include "confdefs.h"
9330 /* Override any gcc2 internal prototype to avoid an error. */
9334 /* We use char because int might match the return type of a gcc2
9335 builtin and then its argument prototype would still apply. */
9336 char SmcOpenConnection ();
9337 #ifdef F77_DUMMY_MAIN
9341 int F77_DUMMY_MAIN() { return 1; }
9346 SmcOpenConnection ();
9351 rm -f conftest.
$ac_objext conftest
$ac_exeext
9352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9353 (eval $ac_link) 2>&5
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); } &&
9357 { ac_try
='test -s conftest$ac_exeext'
9358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); }; }; then
9363 ac_cv_lib_SM_SmcOpenConnection
=yes
9365 echo "$as_me: failed program was:" >&5
9366 cat conftest.
$ac_ext >&5
9367 ac_cv_lib_SM_SmcOpenConnection
=no
9369 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9370 LIBS
=$ac_check_lib_save_LIBS
9372 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
9373 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
9374 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
9384 if test "${HAVE_X_SM}" = "yes"; then
9386 cat >>confdefs.h
<<\_ACEOF
9392 *) LIBS
="-lSM -lICE $LIBS" ;;
9397 # If netdb.h doesn't declare h_errno, we must declare it by hand.
9398 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
9399 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
9400 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
9401 echo $ECHO_N "(cached) $ECHO_C" >&6
9403 cat >conftest.
$ac_ext <<_ACEOF
9404 #line $LINENO "configure"
9405 #include "confdefs.h"
9407 #ifdef F77_DUMMY_MAIN
9411 int F77_DUMMY_MAIN() { return 1; }
9421 rm -f conftest.
$ac_objext conftest
$ac_exeext
9422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9423 (eval $ac_link) 2>&5
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); } &&
9427 { ac_try
='test -s conftest$ac_exeext'
9428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 (exit $ac_status); }; }; then
9433 emacs_cv_netdb_declares_h_errno
=yes
9435 echo "$as_me: failed program was:" >&5
9436 cat conftest.
$ac_ext >&5
9437 emacs_cv_netdb_declares_h_errno
=no
9439 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9441 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
9442 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
9443 if test $emacs_cv_netdb_declares_h_errno = yes; then
9445 cat >>confdefs.h
<<\_ACEOF
9446 #define HAVE_H_ERRNO 1
9451 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9452 # for constant arguments. Useless!
9453 echo "$as_me:$LINENO: checking for working alloca.h" >&5
9454 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9455 if test "${ac_cv_working_alloca_h+set}" = set; then
9456 echo $ECHO_N "(cached) $ECHO_C" >&6
9458 cat >conftest.
$ac_ext <<_ACEOF
9459 #line $LINENO "configure"
9460 #include "confdefs.h"
9462 #ifdef F77_DUMMY_MAIN
9466 int F77_DUMMY_MAIN() { return 1; }
9471 char *p = (char *) alloca (2 * sizeof (int));
9476 rm -f conftest.
$ac_objext conftest
$ac_exeext
9477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9478 (eval $ac_link) 2>&5
9480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481 (exit $ac_status); } &&
9482 { ac_try
='test -s conftest$ac_exeext'
9483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); }; }; then
9488 ac_cv_working_alloca_h
=yes
9490 echo "$as_me: failed program was:" >&5
9491 cat conftest.
$ac_ext >&5
9492 ac_cv_working_alloca_h
=no
9494 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9496 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9497 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9498 if test $ac_cv_working_alloca_h = yes; then
9500 cat >>confdefs.h
<<\_ACEOF
9501 #define HAVE_ALLOCA_H 1
9506 echo "$as_me:$LINENO: checking for alloca" >&5
9507 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9508 if test "${ac_cv_func_alloca_works+set}" = set; then
9509 echo $ECHO_N "(cached) $ECHO_C" >&6
9511 cat >conftest.
$ac_ext <<_ACEOF
9512 #line $LINENO "configure"
9513 #include "confdefs.h"
9515 # define alloca __builtin_alloca
9518 # include <malloc.h>
9519 # define alloca _alloca
9522 # include <alloca.h>
9527 # ifndef alloca /* predefined by HP cc +Olibcalls */
9535 #ifdef F77_DUMMY_MAIN
9539 int F77_DUMMY_MAIN() { return 1; }
9544 char *p = (char *) alloca (1);
9549 rm -f conftest.
$ac_objext conftest
$ac_exeext
9550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9551 (eval $ac_link) 2>&5
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); } &&
9555 { ac_try
='test -s conftest$ac_exeext'
9556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 (exit $ac_status); }; }; then
9561 ac_cv_func_alloca_works
=yes
9563 echo "$as_me: failed program was:" >&5
9564 cat conftest.
$ac_ext >&5
9565 ac_cv_func_alloca_works
=no
9567 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9569 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9570 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9572 if test $ac_cv_func_alloca_works = yes; then
9574 cat >>confdefs.h
<<\_ACEOF
9575 #define HAVE_ALLOCA 1
9579 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9580 # that cause trouble. Some versions do not even contain alloca or
9581 # contain a buggy version. If you still want to use their alloca,
9582 # use ar to extract alloca.o from them instead of compiling alloca.c.
9584 ALLOCA
=alloca.
$ac_objext
9586 cat >>confdefs.h
<<\_ACEOF
9591 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9592 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9593 if test "${ac_cv_os_cray+set}" = set; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
9596 cat >conftest.
$ac_ext <<_ACEOF
9597 #line $LINENO "configure"
9598 #include "confdefs.h"
9599 #if defined(CRAY) && ! defined(CRAY2)
9606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9607 egrep "webecray" >/dev
/null
2>&1; then
9615 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9616 echo "${ECHO_T}$ac_cv_os_cray" >&6
9617 if test $ac_cv_os_cray = yes; then
9618 for ac_func
in _getb67 GETB67 getb67
; do
9619 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9620 echo "$as_me:$LINENO: checking for $ac_func" >&5
9621 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9622 if eval "test \"\${$as_ac_var+set}\" = set"; then
9623 echo $ECHO_N "(cached) $ECHO_C" >&6
9625 cat >conftest.
$ac_ext <<_ACEOF
9626 #line $LINENO "configure"
9627 #include "confdefs.h"
9628 /* System header to define __stub macros and hopefully few prototypes,
9629 which can conflict with char $ac_func (); below. */
9631 /* Override any gcc2 internal prototype to avoid an error. */
9635 /* We use char because int might match the return type of a gcc2
9636 builtin and then its argument prototype would still apply. */
9640 #ifdef F77_DUMMY_MAIN
9644 int F77_DUMMY_MAIN() { return 1; }
9649 /* The GNU C library defines this for functions which it implements
9650 to always fail with ENOSYS. Some functions are actually named
9651 something starting with __ and the normal name is an alias. */
9652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9662 rm -f conftest.
$ac_objext conftest
$ac_exeext
9663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9664 (eval $ac_link) 2>&5
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); } &&
9668 { ac_try
='test -s conftest$ac_exeext'
9669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); }; }; then
9674 eval "$as_ac_var=yes"
9676 echo "$as_me: failed program was:" >&5
9677 cat conftest.
$ac_ext >&5
9678 eval "$as_ac_var=no"
9680 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9682 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9683 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9684 if test `eval echo '${'$as_ac_var'}'` = yes; then
9686 cat >>confdefs.h
<<_ACEOF
9687 #define CRAY_STACKSEG_END $ac_func
9696 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9697 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9698 if test "${ac_cv_c_stack_direction+set}" = set; then
9699 echo $ECHO_N "(cached) $ECHO_C" >&6
9701 if test "$cross_compiling" = yes; then
9702 ac_cv_c_stack_direction
=0
9704 cat >conftest.
$ac_ext <<_ACEOF
9705 #line $LINENO "configure"
9706 #include "confdefs.h"
9708 find_stack_direction ()
9710 static char *addr = 0;
9715 return find_stack_direction ();
9718 return (&dummy > addr) ? 1 : -1;
9724 exit (find_stack_direction () < 0);
9727 rm -f conftest
$ac_exeext
9728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9729 (eval $ac_link) 2>&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); }; }; then
9738 ac_cv_c_stack_direction
=1
9740 echo "$as_me: program exited with status $ac_status" >&5
9741 echo "$as_me: failed program was:" >&5
9742 cat conftest.
$ac_ext >&5
9744 ac_cv_c_stack_direction
=-1
9746 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9749 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9750 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9752 cat >>confdefs.h
<<_ACEOF
9753 #define STACK_DIRECTION $ac_cv_c_stack_direction
9760 # fmod, logb, and frexp are found in -lm on most systems.
9761 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
9763 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
9764 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
9765 if test "${ac_cv_lib_m_sqrt+set}" = set; then
9766 echo $ECHO_N "(cached) $ECHO_C" >&6
9768 ac_check_lib_save_LIBS
=$LIBS
9770 cat >conftest.
$ac_ext <<_ACEOF
9771 #line $LINENO "configure"
9772 #include "confdefs.h"
9774 /* Override any gcc2 internal prototype to avoid an error. */
9778 /* We use char because int might match the return type of a gcc2
9779 builtin and then its argument prototype would still apply. */
9781 #ifdef F77_DUMMY_MAIN
9785 int F77_DUMMY_MAIN() { return 1; }
9795 rm -f conftest.
$ac_objext conftest
$ac_exeext
9796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9797 (eval $ac_link) 2>&5
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); } &&
9801 { ac_try
='test -s conftest$ac_exeext'
9802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); }; }; then
9807 ac_cv_lib_m_sqrt
=yes
9809 echo "$as_me: failed program was:" >&5
9810 cat conftest.
$ac_ext >&5
9813 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9814 LIBS
=$ac_check_lib_save_LIBS
9816 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
9817 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
9818 if test $ac_cv_lib_m_sqrt = yes; then
9819 cat >>confdefs.h
<<_ACEOF
9828 # Check for mail-locking functions in a "mail" library
9830 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
9831 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
9832 if test "${ac_cv_lib_mail_maillock+set}" = set; then
9833 echo $ECHO_N "(cached) $ECHO_C" >&6
9835 ac_check_lib_save_LIBS
=$LIBS
9837 cat >conftest.
$ac_ext <<_ACEOF
9838 #line $LINENO "configure"
9839 #include "confdefs.h"
9841 /* Override any gcc2 internal prototype to avoid an error. */
9845 /* We use char because int might match the return type of a gcc2
9846 builtin and then its argument prototype would still apply. */
9848 #ifdef F77_DUMMY_MAIN
9852 int F77_DUMMY_MAIN() { return 1; }
9862 rm -f conftest.
$ac_objext conftest
$ac_exeext
9863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9864 (eval $ac_link) 2>&5
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); } &&
9868 { ac_try
='test -s conftest$ac_exeext'
9869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); }; }; then
9874 ac_cv_lib_mail_maillock
=yes
9876 echo "$as_me: failed program was:" >&5
9877 cat conftest.
$ac_ext >&5
9878 ac_cv_lib_mail_maillock
=no
9880 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9881 LIBS
=$ac_check_lib_save_LIBS
9883 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
9884 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
9885 if test $ac_cv_lib_mail_maillock = yes; then
9886 cat >>confdefs.h
<<_ACEOF
9887 #define HAVE_LIBMAIL 1
9895 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
9896 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
9897 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
9898 echo $ECHO_N "(cached) $ECHO_C" >&6
9900 ac_check_lib_save_LIBS
=$LIBS
9901 LIBS
="-llockfile $LIBS"
9902 cat >conftest.
$ac_ext <<_ACEOF
9903 #line $LINENO "configure"
9904 #include "confdefs.h"
9906 /* Override any gcc2 internal prototype to avoid an error. */
9910 /* We use char because int might match the return type of a gcc2
9911 builtin and then its argument prototype would still apply. */
9913 #ifdef F77_DUMMY_MAIN
9917 int F77_DUMMY_MAIN() { return 1; }
9927 rm -f conftest.
$ac_objext conftest
$ac_exeext
9928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9929 (eval $ac_link) 2>&5
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); } &&
9933 { ac_try
='test -s conftest$ac_exeext'
9934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); }; }; then
9939 ac_cv_lib_lockfile_maillock
=yes
9941 echo "$as_me: failed program was:" >&5
9942 cat conftest.
$ac_ext >&5
9943 ac_cv_lib_lockfile_maillock
=no
9945 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9946 LIBS
=$ac_check_lib_save_LIBS
9948 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
9949 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
9950 if test $ac_cv_lib_lockfile_maillock = yes; then
9951 cat >>confdefs.h
<<_ACEOF
9952 #define HAVE_LIBLOCKFILE 1
9955 LIBS
="-llockfile $LIBS"
9959 # If we have the shared liblockfile, assume we must use it for mail
9960 # locking (e.g. Debian). If we couldn't link against liblockfile
9961 # (no liblockfile.a installed), ensure that we don't need to.
9962 if test "$ac_cv_lib_lockfile_maillock" = no
; then
9963 # Extract the first word of "liblockfile.so", so it can be a program name with args.
9964 set dummy liblockfile.so
; ac_word
=$2
9965 echo "$as_me:$LINENO: checking for $ac_word" >&5
9966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9967 if test "${ac_cv_prog_liblockfile+set}" = set; then
9968 echo $ECHO_N "(cached) $ECHO_C" >&6
9970 if test -n "$liblockfile"; then
9971 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
9973 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9974 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
9975 for as_dir
in $as_dummy
9978 test -z "$as_dir" && as_dir
=.
9979 for ac_exec_ext
in '' $ac_executable_extensions; do
9980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9981 ac_cv_prog_liblockfile
="yes"
9982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9988 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
9991 liblockfile
=$ac_cv_prog_liblockfile
9992 if test -n "$liblockfile"; then
9993 echo "$as_me:$LINENO: result: $liblockfile" >&5
9994 echo "${ECHO_T}$liblockfile" >&6
9996 echo "$as_me:$LINENO: result: no" >&5
9997 echo "${ECHO_T}no" >&6
10000 if test $ac_cv_prog_liblockfile = yes; then
10001 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
10002 This probably means that movemail could lose mail.
10003 There may be a \`development' package to install containing liblockfile." >&5
10004 echo "$as_me: error: Shared liblockfile found but can't link against it.
10005 This probably means that movemail could lose mail.
10006 There may be a \`development' package to install containing liblockfile." >&2;}
10007 { (exit 1); exit 1; }; }
10009 cat >>confdefs.h
<<\_ACEOF
10010 #define LIBMAIL -llockfile
10017 for ac_func
in touchlock
10019 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10020 echo "$as_me:$LINENO: checking for $ac_func" >&5
10021 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10022 if eval "test \"\${$as_ac_var+set}\" = set"; then
10023 echo $ECHO_N "(cached) $ECHO_C" >&6
10025 cat >conftest.
$ac_ext <<_ACEOF
10026 #line $LINENO "configure"
10027 #include "confdefs.h"
10028 /* System header to define __stub macros and hopefully few prototypes,
10029 which can conflict with char $ac_func (); below. */
10030 #include <assert.h>
10031 /* Override any gcc2 internal prototype to avoid an error. */
10035 /* We use char because int might match the return type of a gcc2
10036 builtin and then its argument prototype would still apply. */
10040 #ifdef F77_DUMMY_MAIN
10041 # ifdef __cplusplus
10044 int F77_DUMMY_MAIN() { return 1; }
10049 /* The GNU C library defines this for functions which it implements
10050 to always fail with ENOSYS. Some functions are actually named
10051 something starting with __ and the normal name is an alias. */
10052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10062 rm -f conftest.
$ac_objext conftest
$ac_exeext
10063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10064 (eval $ac_link) 2>&5
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); } &&
10068 { ac_try
='test -s conftest$ac_exeext'
10069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10070 (eval $ac_try) 2>&5
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); }; }; then
10074 eval "$as_ac_var=yes"
10076 echo "$as_me: failed program was:" >&5
10077 cat conftest.
$ac_ext >&5
10078 eval "$as_ac_var=no"
10080 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10083 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10084 if test `eval echo '${'$as_ac_var'}'` = yes; then
10085 cat >>confdefs.h
<<_ACEOF
10086 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10093 for ac_header
in maillock.h
10095 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10097 echo "$as_me:$LINENO: checking for $ac_header" >&5
10098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10100 echo $ECHO_N "(cached) $ECHO_C" >&6
10102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10105 # Is the header compilable?
10106 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10107 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10108 cat >conftest.
$ac_ext <<_ACEOF
10109 #line $LINENO "configure"
10110 #include "confdefs.h"
10111 $ac_includes_default
10112 #include <$ac_header>
10114 rm -f conftest.
$ac_objext
10115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10116 (eval $ac_compile) 2>&5
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); } &&
10120 { ac_try
='test -s conftest.$ac_objext'
10121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10122 (eval $ac_try) 2>&5
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); }; }; then
10126 ac_header_compiler
=yes
10128 echo "$as_me: failed program was:" >&5
10129 cat conftest.
$ac_ext >&5
10130 ac_header_compiler
=no
10132 rm -f conftest.
$ac_objext conftest.
$ac_ext
10133 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10134 echo "${ECHO_T}$ac_header_compiler" >&6
10136 # Is the header present?
10137 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10138 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10139 cat >conftest.
$ac_ext <<_ACEOF
10140 #line $LINENO "configure"
10141 #include "confdefs.h"
10142 #include <$ac_header>
10144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10145 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10147 egrep -v '^ *\+' conftest.er1
>conftest.err
10149 cat conftest.err
>&5
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); } >/dev
/null
; then
10152 if test -s conftest.err
; then
10153 ac_cpp_err
=$ac_c_preproc_warn_flag
10160 if test -z "$ac_cpp_err"; then
10161 ac_header_preproc
=yes
10163 echo "$as_me: failed program was:" >&5
10164 cat conftest.
$ac_ext >&5
10165 ac_header_preproc
=no
10167 rm -f conftest.err conftest.
$ac_ext
10168 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10169 echo "${ECHO_T}$ac_header_preproc" >&6
10171 # So? What about this header?
10172 case $ac_header_compiler:$ac_header_preproc in
10174 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10175 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10177 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10182 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10184 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10186 echo "$as_me:$LINENO: checking for $ac_header" >&5
10187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10189 echo $ECHO_N "(cached) $ECHO_C" >&6
10191 eval "$as_ac_Header=$ac_header_preproc"
10193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10194 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10197 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10198 cat >>confdefs.h
<<_ACEOF
10199 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10262 for ac_func
in gethostname getdomainname dup2 \
10263 rename closedir mkdir
rmdir sysinfo \
10264 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
10265 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
10266 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
10267 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
10268 sendto recvfrom getsockopt setsockopt getsockname getpeername \
10269 gai_strerror mkstemp getline getdelim
10271 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10272 echo "$as_me:$LINENO: checking for $ac_func" >&5
10273 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10274 if eval "test \"\${$as_ac_var+set}\" = set"; then
10275 echo $ECHO_N "(cached) $ECHO_C" >&6
10277 cat >conftest.
$ac_ext <<_ACEOF
10278 #line $LINENO "configure"
10279 #include "confdefs.h"
10280 /* System header to define __stub macros and hopefully few prototypes,
10281 which can conflict with char $ac_func (); below. */
10282 #include <assert.h>
10283 /* Override any gcc2 internal prototype to avoid an error. */
10287 /* We use char because int might match the return type of a gcc2
10288 builtin and then its argument prototype would still apply. */
10292 #ifdef F77_DUMMY_MAIN
10293 # ifdef __cplusplus
10296 int F77_DUMMY_MAIN() { return 1; }
10301 /* The GNU C library defines this for functions which it implements
10302 to always fail with ENOSYS. Some functions are actually named
10303 something starting with __ and the normal name is an alias. */
10304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10314 rm -f conftest.
$ac_objext conftest
$ac_exeext
10315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10316 (eval $ac_link) 2>&5
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); } &&
10320 { ac_try
='test -s conftest$ac_exeext'
10321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10322 (eval $ac_try) 2>&5
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); }; }; then
10326 eval "$as_ac_var=yes"
10328 echo "$as_me: failed program was:" >&5
10329 cat conftest.
$ac_ext >&5
10330 eval "$as_ac_var=no"
10332 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10335 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10336 if test `eval echo '${'$as_ac_var'}'` = yes; then
10337 cat >>confdefs.h
<<_ACEOF
10338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10346 for ac_header
in sys
/un.h
10348 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10350 echo "$as_me:$LINENO: checking for $ac_header" >&5
10351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10353 echo $ECHO_N "(cached) $ECHO_C" >&6
10355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10358 # Is the header compilable?
10359 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10360 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10361 cat >conftest.
$ac_ext <<_ACEOF
10362 #line $LINENO "configure"
10363 #include "confdefs.h"
10364 $ac_includes_default
10365 #include <$ac_header>
10367 rm -f conftest.
$ac_objext
10368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10369 (eval $ac_compile) 2>&5
10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 (exit $ac_status); } &&
10373 { ac_try
='test -s conftest.$ac_objext'
10374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10375 (eval $ac_try) 2>&5
10377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378 (exit $ac_status); }; }; then
10379 ac_header_compiler
=yes
10381 echo "$as_me: failed program was:" >&5
10382 cat conftest.
$ac_ext >&5
10383 ac_header_compiler
=no
10385 rm -f conftest.
$ac_objext conftest.
$ac_ext
10386 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10387 echo "${ECHO_T}$ac_header_compiler" >&6
10389 # Is the header present?
10390 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10392 cat >conftest.
$ac_ext <<_ACEOF
10393 #line $LINENO "configure"
10394 #include "confdefs.h"
10395 #include <$ac_header>
10397 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10398 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10400 egrep -v '^ *\+' conftest.er1
>conftest.err
10402 cat conftest.err
>&5
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); } >/dev
/null
; then
10405 if test -s conftest.err
; then
10406 ac_cpp_err
=$ac_c_preproc_warn_flag
10413 if test -z "$ac_cpp_err"; then
10414 ac_header_preproc
=yes
10416 echo "$as_me: failed program was:" >&5
10417 cat conftest.
$ac_ext >&5
10418 ac_header_preproc
=no
10420 rm -f conftest.err conftest.
$ac_ext
10421 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10422 echo "${ECHO_T}$ac_header_preproc" >&6
10424 # So? What about this header?
10425 case $ac_header_compiler:$ac_header_preproc in
10427 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10428 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10430 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10432 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10433 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10434 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10435 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10437 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10439 echo "$as_me:$LINENO: checking for $ac_header" >&5
10440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10442 echo $ECHO_N "(cached) $ECHO_C" >&6
10444 eval "$as_ac_Header=$ac_header_preproc"
10446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10447 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10450 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10451 cat >>confdefs.h
<<_ACEOF
10452 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10462 for ac_header
in sys
/time.h unistd.h
10464 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10466 echo "$as_me:$LINENO: checking for $ac_header" >&5
10467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10469 echo $ECHO_N "(cached) $ECHO_C" >&6
10471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10474 # Is the header compilable?
10475 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10477 cat >conftest.
$ac_ext <<_ACEOF
10478 #line $LINENO "configure"
10479 #include "confdefs.h"
10480 $ac_includes_default
10481 #include <$ac_header>
10483 rm -f conftest.
$ac_objext
10484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10485 (eval $ac_compile) 2>&5
10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 (exit $ac_status); } &&
10489 { ac_try
='test -s conftest.$ac_objext'
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 ac_header_compiler
=yes
10497 echo "$as_me: failed program was:" >&5
10498 cat conftest.
$ac_ext >&5
10499 ac_header_compiler
=no
10501 rm -f conftest.
$ac_objext conftest.
$ac_ext
10502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10503 echo "${ECHO_T}$ac_header_compiler" >&6
10505 # Is the header present?
10506 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10508 cat >conftest.
$ac_ext <<_ACEOF
10509 #line $LINENO "configure"
10510 #include "confdefs.h"
10511 #include <$ac_header>
10513 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10514 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10516 egrep -v '^ *\+' conftest.er1
>conftest.err
10518 cat conftest.err
>&5
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); } >/dev
/null
; then
10521 if test -s conftest.err
; then
10522 ac_cpp_err
=$ac_c_preproc_warn_flag
10529 if test -z "$ac_cpp_err"; then
10530 ac_header_preproc
=yes
10532 echo "$as_me: failed program was:" >&5
10533 cat conftest.
$ac_ext >&5
10534 ac_header_preproc
=no
10536 rm -f conftest.err conftest.
$ac_ext
10537 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10538 echo "${ECHO_T}$ac_header_preproc" >&6
10540 # So? What about this header?
10541 case $ac_header_compiler:$ac_header_preproc in
10543 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10544 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10546 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10548 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10549 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10550 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10551 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10553 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10555 echo "$as_me:$LINENO: checking for $ac_header" >&5
10556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10558 echo $ECHO_N "(cached) $ECHO_C" >&6
10560 eval "$as_ac_Header=$ac_header_preproc"
10562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10563 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10567 cat >>confdefs.h
<<_ACEOF
10568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10576 for ac_func
in alarm
10578 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10579 echo "$as_me:$LINENO: checking for $ac_func" >&5
10580 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10581 if eval "test \"\${$as_ac_var+set}\" = set"; then
10582 echo $ECHO_N "(cached) $ECHO_C" >&6
10584 cat >conftest.
$ac_ext <<_ACEOF
10585 #line $LINENO "configure"
10586 #include "confdefs.h"
10587 /* System header to define __stub macros and hopefully few prototypes,
10588 which can conflict with char $ac_func (); below. */
10589 #include <assert.h>
10590 /* Override any gcc2 internal prototype to avoid an error. */
10594 /* We use char because int might match the return type of a gcc2
10595 builtin and then its argument prototype would still apply. */
10599 #ifdef F77_DUMMY_MAIN
10600 # ifdef __cplusplus
10603 int F77_DUMMY_MAIN() { return 1; }
10608 /* The GNU C library defines this for functions which it implements
10609 to always fail with ENOSYS. Some functions are actually named
10610 something starting with __ and the normal name is an alias. */
10611 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10621 rm -f conftest.
$ac_objext conftest
$ac_exeext
10622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10623 (eval $ac_link) 2>&5
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); } &&
10627 { ac_try
='test -s conftest$ac_exeext'
10628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10629 (eval $ac_try) 2>&5
10631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632 (exit $ac_status); }; }; then
10633 eval "$as_ac_var=yes"
10635 echo "$as_me: failed program was:" >&5
10636 cat conftest.
$ac_ext >&5
10637 eval "$as_ac_var=no"
10639 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10642 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10643 if test `eval echo '${'$as_ac_var'}'` = yes; then
10644 cat >>confdefs.h
<<_ACEOF
10645 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10651 echo "$as_me:$LINENO: checking for working mktime" >&5
10652 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
10653 if test "${ac_cv_func_working_mktime+set}" = set; then
10654 echo $ECHO_N "(cached) $ECHO_C" >&6
10656 if test "$cross_compiling" = yes; then
10657 ac_cv_func_working_mktime
=no
10659 cat >conftest.
$ac_ext <<_ACEOF
10660 #line $LINENO "configure"
10661 #include "confdefs.h"
10662 /* Test program from Paul Eggert and Tony Leneis. */
10663 #if TIME_WITH_SYS_TIME
10664 # include <sys/time.h>
10667 # if HAVE_SYS_TIME_H
10668 # include <sys/time.h>
10675 # include <unistd.h>
10679 # define alarm(X) /* empty */
10682 /* Work around redefinition to rpl_putenv by other config tests. */
10685 static time_t time_t_max;
10687 /* Values we'll use to set the TZ environment variable. */
10688 static const char *const tz_strings[] = {
10689 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
10690 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
10692 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
10694 /* Fail if mktime fails to convert a date in the spring-forward gap.
10695 Based on a problem report from Andreas Jaeger. */
10697 spring_forward_gap ()
10699 /* glibc (up to about 1998-10-07) failed this test. */
10702 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10703 instead of "TZ=America/Vancouver" in order to detect the bug even
10704 on systems that don't support the Olson extension, or don't have the
10705 full zoneinfo tables installed. */
10706 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
10715 if (mktime (&tm) == (time_t)-1)
10724 if ((lt = localtime (&now)) && mktime (lt) != now)
10726 now = time_t_max - now;
10727 if ((lt = localtime (&now)) && mktime (lt) != now)
10734 /* Based on code from Ariel Faigon. */
10744 if (tm.tm_mon != 2 || tm.tm_mday != 31)
10754 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
10755 now = mktime (&tm);
10756 if (now != (time_t) -1)
10758 struct tm *lt = localtime (&now);
10760 && lt->tm_year == tm.tm_year
10761 && lt->tm_mon == tm.tm_mon
10762 && lt->tm_mday == tm.tm_mday
10763 && lt->tm_hour == tm.tm_hour
10764 && lt->tm_min == tm.tm_min
10765 && lt->tm_sec == tm.tm_sec
10766 && lt->tm_yday == tm.tm_yday
10767 && lt->tm_wday == tm.tm_wday
10768 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
10769 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
10780 /* This test makes some buggy mktime implementations loop.
10781 Give up after 60 seconds; a mktime slower than that
10782 isn't worth using anyway. */
10785 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
10788 delta = time_t_max / 997; /* a suitable prime number */
10789 for (i = 0; i < N_STRINGS; i++)
10792 putenv (tz_strings[i]);
10794 for (t = 0; t <= time_t_max - delta; t += delta)
10796 mktime_test ((time_t) 60 * 60);
10797 mktime_test ((time_t) 60 * 60 * 24);
10799 for (j = 1; 0 < j; j *= 2)
10801 bigtime_test (j - 1);
10804 spring_forward_gap ();
10808 rm -f conftest
$ac_exeext
10809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10810 (eval $ac_link) 2>&5
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10815 (eval $ac_try) 2>&5
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); }; }; then
10819 ac_cv_func_working_mktime
=yes
10821 echo "$as_me: program exited with status $ac_status" >&5
10822 echo "$as_me: failed program was:" >&5
10823 cat conftest.
$ac_ext >&5
10824 ( exit $ac_status )
10825 ac_cv_func_working_mktime
=no
10827 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10830 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
10831 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
10832 if test $ac_cv_func_working_mktime = no
; then
10833 LIBOBJS
="$LIBOBJS mktime.$ac_objext"
10836 if test "$ac_cv_func_working_mktime" = no
; then
10838 cat >>confdefs.h
<<\_ACEOF
10839 #define BROKEN_MKTIME 1
10844 ac_have_func
=no
# yes means we've found a way to get the load average.
10848 # Check for getloadavg, but be sure not to touch the cache variable.
10849 (echo "$as_me:$LINENO: checking for getloadavg" >&5
10850 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
10851 if test "${ac_cv_func_getloadavg+set}" = set; then
10852 echo $ECHO_N "(cached) $ECHO_C" >&6
10854 cat >conftest.
$ac_ext <<_ACEOF
10855 #line $LINENO "configure"
10856 #include "confdefs.h"
10857 /* System header to define __stub macros and hopefully few prototypes,
10858 which can conflict with char getloadavg (); below. */
10859 #include <assert.h>
10860 /* Override any gcc2 internal prototype to avoid an error. */
10864 /* We use char because int might match the return type of a gcc2
10865 builtin and then its argument prototype would still apply. */
10866 char getloadavg ();
10869 #ifdef F77_DUMMY_MAIN
10870 # ifdef __cplusplus
10873 int F77_DUMMY_MAIN() { return 1; }
10878 /* The GNU C library defines this for functions which it implements
10879 to always fail with ENOSYS. Some functions are actually named
10880 something starting with __ and the normal name is an alias. */
10881 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
10891 rm -f conftest.
$ac_objext conftest
$ac_exeext
10892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10893 (eval $ac_link) 2>&5
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); } &&
10897 { ac_try
='test -s conftest$ac_exeext'
10898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10899 (eval $ac_try) 2>&5
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); }; }; then
10903 ac_cv_func_getloadavg
=yes
10905 echo "$as_me: failed program was:" >&5
10906 cat conftest.
$ac_ext >&5
10907 ac_cv_func_getloadavg
=no
10909 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10911 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
10912 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
10913 if test $ac_cv_func_getloadavg = yes; then
10918 ) && ac_have_func
=yes
10920 # On HPUX9, an unprivileged user can get load averages through this function.
10922 for ac_func
in pstat_getdynamic
10924 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10925 echo "$as_me:$LINENO: checking for $ac_func" >&5
10926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10927 if eval "test \"\${$as_ac_var+set}\" = set"; then
10928 echo $ECHO_N "(cached) $ECHO_C" >&6
10930 cat >conftest.
$ac_ext <<_ACEOF
10931 #line $LINENO "configure"
10932 #include "confdefs.h"
10933 /* System header to define __stub macros and hopefully few prototypes,
10934 which can conflict with char $ac_func (); below. */
10935 #include <assert.h>
10936 /* Override any gcc2 internal prototype to avoid an error. */
10940 /* We use char because int might match the return type of a gcc2
10941 builtin and then its argument prototype would still apply. */
10945 #ifdef F77_DUMMY_MAIN
10946 # ifdef __cplusplus
10949 int F77_DUMMY_MAIN() { return 1; }
10954 /* The GNU C library defines this for functions which it implements
10955 to always fail with ENOSYS. Some functions are actually named
10956 something starting with __ and the normal name is an alias. */
10957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10967 rm -f conftest.
$ac_objext conftest
$ac_exeext
10968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10969 (eval $ac_link) 2>&5
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); } &&
10973 { ac_try
='test -s conftest$ac_exeext'
10974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10975 (eval $ac_try) 2>&5
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); }; }; then
10979 eval "$as_ac_var=yes"
10981 echo "$as_me: failed program was:" >&5
10982 cat conftest.
$ac_ext >&5
10983 eval "$as_ac_var=no"
10985 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10988 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10989 if test `eval echo '${'$as_ac_var'}'` = yes; then
10990 cat >>confdefs.h
<<_ACEOF
10991 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10998 # Solaris has libkstat which does not require root.
11000 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
11001 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
11002 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
11003 echo $ECHO_N "(cached) $ECHO_C" >&6
11005 ac_check_lib_save_LIBS
=$LIBS
11006 LIBS
="-lkstat $LIBS"
11007 cat >conftest.
$ac_ext <<_ACEOF
11008 #line $LINENO "configure"
11009 #include "confdefs.h"
11011 /* Override any gcc2 internal prototype to avoid an error. */
11015 /* We use char because int might match the return type of a gcc2
11016 builtin and then its argument prototype would still apply. */
11017 char kstat_open ();
11018 #ifdef F77_DUMMY_MAIN
11019 # ifdef __cplusplus
11022 int F77_DUMMY_MAIN() { return 1; }
11032 rm -f conftest.
$ac_objext conftest
$ac_exeext
11033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11034 (eval $ac_link) 2>&5
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); } &&
11038 { ac_try
='test -s conftest$ac_exeext'
11039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11040 (eval $ac_try) 2>&5
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); }; }; then
11044 ac_cv_lib_kstat_kstat_open
=yes
11046 echo "$as_me: failed program was:" >&5
11047 cat conftest.
$ac_ext >&5
11048 ac_cv_lib_kstat_kstat_open
=no
11050 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11051 LIBS
=$ac_check_lib_save_LIBS
11053 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
11054 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
11055 if test $ac_cv_lib_kstat_kstat_open = yes; then
11056 cat >>confdefs.h
<<_ACEOF
11057 #define HAVE_LIBKSTAT 1
11060 LIBS
="-lkstat $LIBS"
11064 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
11066 # Some systems with -lutil have (and need) -lkvm as well, some do not.
11067 # On Solaris, -lkvm requires nlist from -lelf, so check that first
11068 # to get the right answer into the cache.
11069 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
11070 if test $ac_have_func = no
; then
11071 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
11072 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
11073 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
11074 echo $ECHO_N "(cached) $ECHO_C" >&6
11076 ac_check_lib_save_LIBS
=$LIBS
11078 cat >conftest.
$ac_ext <<_ACEOF
11079 #line $LINENO "configure"
11080 #include "confdefs.h"
11082 /* Override any gcc2 internal prototype to avoid an error. */
11086 /* We use char because int might match the return type of a gcc2
11087 builtin and then its argument prototype would still apply. */
11089 #ifdef F77_DUMMY_MAIN
11090 # ifdef __cplusplus
11093 int F77_DUMMY_MAIN() { return 1; }
11103 rm -f conftest.
$ac_objext conftest
$ac_exeext
11104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11105 (eval $ac_link) 2>&5
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); } &&
11109 { ac_try
='test -s conftest$ac_exeext'
11110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11111 (eval $ac_try) 2>&5
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); }; }; then
11115 ac_cv_lib_elf_elf_begin
=yes
11117 echo "$as_me: failed program was:" >&5
11118 cat conftest.
$ac_ext >&5
11119 ac_cv_lib_elf_elf_begin
=no
11121 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11122 LIBS
=$ac_check_lib_save_LIBS
11124 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
11125 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
11126 if test $ac_cv_lib_elf_elf_begin = yes; then
11131 if test $ac_have_func = no
; then
11132 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
11133 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
11134 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
11135 echo $ECHO_N "(cached) $ECHO_C" >&6
11137 ac_check_lib_save_LIBS
=$LIBS
11139 cat >conftest.
$ac_ext <<_ACEOF
11140 #line $LINENO "configure"
11141 #include "confdefs.h"
11143 /* Override any gcc2 internal prototype to avoid an error. */
11147 /* We use char because int might match the return type of a gcc2
11148 builtin and then its argument prototype would still apply. */
11150 #ifdef F77_DUMMY_MAIN
11151 # ifdef __cplusplus
11154 int F77_DUMMY_MAIN() { return 1; }
11164 rm -f conftest.
$ac_objext conftest
$ac_exeext
11165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11166 (eval $ac_link) 2>&5
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); } &&
11170 { ac_try
='test -s conftest$ac_exeext'
11171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11172 (eval $ac_try) 2>&5
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); }; }; then
11176 ac_cv_lib_kvm_kvm_open
=yes
11178 echo "$as_me: failed program was:" >&5
11179 cat conftest.
$ac_ext >&5
11180 ac_cv_lib_kvm_kvm_open
=no
11182 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11183 LIBS
=$ac_check_lib_save_LIBS
11185 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
11186 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
11187 if test $ac_cv_lib_kvm_kvm_open = yes; then
11191 # Check for the 4.4BSD definition of getloadavg.
11192 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
11193 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
11194 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
11195 echo $ECHO_N "(cached) $ECHO_C" >&6
11197 ac_check_lib_save_LIBS
=$LIBS
11198 LIBS
="-lutil $LIBS"
11199 cat >conftest.
$ac_ext <<_ACEOF
11200 #line $LINENO "configure"
11201 #include "confdefs.h"
11203 /* Override any gcc2 internal prototype to avoid an error. */
11207 /* We use char because int might match the return type of a gcc2
11208 builtin and then its argument prototype would still apply. */
11209 char getloadavg ();
11210 #ifdef F77_DUMMY_MAIN
11211 # ifdef __cplusplus
11214 int F77_DUMMY_MAIN() { return 1; }
11224 rm -f conftest.
$ac_objext conftest
$ac_exeext
11225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11226 (eval $ac_link) 2>&5
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); } &&
11230 { ac_try
='test -s conftest$ac_exeext'
11231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11232 (eval $ac_try) 2>&5
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); }; }; then
11236 ac_cv_lib_util_getloadavg
=yes
11238 echo "$as_me: failed program was:" >&5
11239 cat conftest.
$ac_ext >&5
11240 ac_cv_lib_util_getloadavg
=no
11242 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11243 LIBS
=$ac_check_lib_save_LIBS
11245 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
11246 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
11247 if test $ac_cv_lib_util_getloadavg = yes; then
11248 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
11253 if test $ac_have_func = no
; then
11254 # There is a commonly available library for RS/6000 AIX.
11255 # Since it is not a standard part of AIX, it might be installed locally.
11256 ac_getloadavg_LIBS
=$LIBS
11257 LIBS
="-L/usr/local/lib $LIBS"
11258 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
11259 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
11260 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
11261 echo $ECHO_N "(cached) $ECHO_C" >&6
11263 ac_check_lib_save_LIBS
=$LIBS
11264 LIBS
="-lgetloadavg $LIBS"
11265 cat >conftest.
$ac_ext <<_ACEOF
11266 #line $LINENO "configure"
11267 #include "confdefs.h"
11269 /* Override any gcc2 internal prototype to avoid an error. */
11273 /* We use char because int might match the return type of a gcc2
11274 builtin and then its argument prototype would still apply. */
11275 char getloadavg ();
11276 #ifdef F77_DUMMY_MAIN
11277 # ifdef __cplusplus
11280 int F77_DUMMY_MAIN() { return 1; }
11290 rm -f conftest.
$ac_objext conftest
$ac_exeext
11291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11292 (eval $ac_link) 2>&5
11294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295 (exit $ac_status); } &&
11296 { ac_try
='test -s conftest$ac_exeext'
11297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11298 (eval $ac_try) 2>&5
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); }; }; then
11302 ac_cv_lib_getloadavg_getloadavg
=yes
11304 echo "$as_me: failed program was:" >&5
11305 cat conftest.
$ac_ext >&5
11306 ac_cv_lib_getloadavg_getloadavg
=no
11308 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11309 LIBS
=$ac_check_lib_save_LIBS
11311 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
11312 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
11313 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
11314 LIBS
="-lgetloadavg $LIBS"
11316 LIBS
=$ac_getloadavg_LIBS
11321 # Make sure it is really in the library, if we think we found it,
11322 # otherwise set up the replacement function.
11324 for ac_func
in getloadavg
11326 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11327 echo "$as_me:$LINENO: checking for $ac_func" >&5
11328 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11329 if eval "test \"\${$as_ac_var+set}\" = set"; then
11330 echo $ECHO_N "(cached) $ECHO_C" >&6
11332 cat >conftest.
$ac_ext <<_ACEOF
11333 #line $LINENO "configure"
11334 #include "confdefs.h"
11335 /* System header to define __stub macros and hopefully few prototypes,
11336 which can conflict with char $ac_func (); below. */
11337 #include <assert.h>
11338 /* Override any gcc2 internal prototype to avoid an error. */
11342 /* We use char because int might match the return type of a gcc2
11343 builtin and then its argument prototype would still apply. */
11347 #ifdef F77_DUMMY_MAIN
11348 # ifdef __cplusplus
11351 int F77_DUMMY_MAIN() { return 1; }
11356 /* The GNU C library defines this for functions which it implements
11357 to always fail with ENOSYS. Some functions are actually named
11358 something starting with __ and the normal name is an alias. */
11359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11369 rm -f conftest.
$ac_objext conftest
$ac_exeext
11370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11371 (eval $ac_link) 2>&5
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); } &&
11375 { ac_try
='test -s conftest$ac_exeext'
11376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11377 (eval $ac_try) 2>&5
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); }; }; then
11381 eval "$as_ac_var=yes"
11383 echo "$as_me: failed program was:" >&5
11384 cat conftest.
$ac_ext >&5
11385 eval "$as_ac_var=no"
11387 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11390 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11391 if test `eval echo '${'$as_ac_var'}'` = yes; then
11392 cat >>confdefs.h
<<_ACEOF
11393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11397 LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
11399 cat >>confdefs.h
<<\_ACEOF
11400 #define C_GETLOADAVG 1
11403 # Figure out what our getloadavg.c needs.
11405 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11406 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
11407 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
11408 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11409 echo $ECHO_N "(cached) $ECHO_C" >&6
11411 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
11412 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
11414 # Is the header compilable?
11415 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
11416 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
11417 cat >conftest.
$ac_ext <<_ACEOF
11418 #line $LINENO "configure"
11419 #include "confdefs.h"
11420 $ac_includes_default
11421 #include <sys/dg_sys_info.h>
11423 rm -f conftest.
$ac_objext
11424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11425 (eval $ac_compile) 2>&5
11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); } &&
11429 { ac_try
='test -s conftest.$ac_objext'
11430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11431 (eval $ac_try) 2>&5
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); }; }; then
11435 ac_header_compiler
=yes
11437 echo "$as_me: failed program was:" >&5
11438 cat conftest.
$ac_ext >&5
11439 ac_header_compiler
=no
11441 rm -f conftest.
$ac_objext conftest.
$ac_ext
11442 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11443 echo "${ECHO_T}$ac_header_compiler" >&6
11445 # Is the header present?
11446 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
11447 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
11448 cat >conftest.
$ac_ext <<_ACEOF
11449 #line $LINENO "configure"
11450 #include "confdefs.h"
11451 #include <sys/dg_sys_info.h>
11453 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11454 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11456 egrep -v '^ *\+' conftest.er1
>conftest.err
11458 cat conftest.err
>&5
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); } >/dev
/null
; then
11461 if test -s conftest.err
; then
11462 ac_cpp_err
=$ac_c_preproc_warn_flag
11469 if test -z "$ac_cpp_err"; then
11470 ac_header_preproc
=yes
11472 echo "$as_me: failed program was:" >&5
11473 cat conftest.
$ac_ext >&5
11474 ac_header_preproc
=no
11476 rm -f conftest.err conftest.
$ac_ext
11477 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11478 echo "${ECHO_T}$ac_header_preproc" >&6
11480 # So? What about this header?
11481 case $ac_header_compiler:$ac_header_preproc in
11483 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
11484 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11485 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
11486 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};;
11488 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
11489 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
11490 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
11491 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
11492 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
11493 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};;
11495 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
11496 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
11497 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11498 echo $ECHO_N "(cached) $ECHO_C" >&6
11500 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
11502 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
11503 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
11506 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
11509 cat >>confdefs.h
<<\_ACEOF
11514 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
11515 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
11516 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
11517 echo $ECHO_N "(cached) $ECHO_C" >&6
11519 ac_check_lib_save_LIBS
=$LIBS
11521 cat >conftest.
$ac_ext <<_ACEOF
11522 #line $LINENO "configure"
11523 #include "confdefs.h"
11525 /* Override any gcc2 internal prototype to avoid an error. */
11529 /* We use char because int might match the return type of a gcc2
11530 builtin and then its argument prototype would still apply. */
11531 char dg_sys_info ();
11532 #ifdef F77_DUMMY_MAIN
11533 # ifdef __cplusplus
11536 int F77_DUMMY_MAIN() { return 1; }
11546 rm -f conftest.
$ac_objext conftest
$ac_exeext
11547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11548 (eval $ac_link) 2>&5
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); } &&
11552 { ac_try
='test -s conftest$ac_exeext'
11553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11554 (eval $ac_try) 2>&5
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); }; }; then
11558 ac_cv_lib_dgc_dg_sys_info
=yes
11560 echo "$as_me: failed program was:" >&5
11561 cat conftest.
$ac_ext >&5
11562 ac_cv_lib_dgc_dg_sys_info
=no
11564 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11565 LIBS
=$ac_check_lib_save_LIBS
11567 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
11568 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
11569 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
11570 cat >>confdefs.h
<<_ACEOF
11571 #define HAVE_LIBDGC 1
11582 if test "${ac_cv_header_locale_h+set}" = set; then
11583 echo "$as_me:$LINENO: checking for locale.h" >&5
11584 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
11585 if test "${ac_cv_header_locale_h+set}" = set; then
11586 echo $ECHO_N "(cached) $ECHO_C" >&6
11588 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
11589 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
11591 # Is the header compilable?
11592 echo "$as_me:$LINENO: checking locale.h usability" >&5
11593 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
11594 cat >conftest.
$ac_ext <<_ACEOF
11595 #line $LINENO "configure"
11596 #include "confdefs.h"
11597 $ac_includes_default
11598 #include <locale.h>
11600 rm -f conftest.
$ac_objext
11601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11602 (eval $ac_compile) 2>&5
11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 (exit $ac_status); } &&
11606 { ac_try
='test -s conftest.$ac_objext'
11607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11608 (eval $ac_try) 2>&5
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); }; }; then
11612 ac_header_compiler
=yes
11614 echo "$as_me: failed program was:" >&5
11615 cat conftest.
$ac_ext >&5
11616 ac_header_compiler
=no
11618 rm -f conftest.
$ac_objext conftest.
$ac_ext
11619 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11620 echo "${ECHO_T}$ac_header_compiler" >&6
11622 # Is the header present?
11623 echo "$as_me:$LINENO: checking locale.h presence" >&5
11624 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
11625 cat >conftest.
$ac_ext <<_ACEOF
11626 #line $LINENO "configure"
11627 #include "confdefs.h"
11628 #include <locale.h>
11630 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11631 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11633 egrep -v '^ *\+' conftest.er1
>conftest.err
11635 cat conftest.err
>&5
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); } >/dev
/null
; then
11638 if test -s conftest.err
; then
11639 ac_cpp_err
=$ac_c_preproc_warn_flag
11646 if test -z "$ac_cpp_err"; then
11647 ac_header_preproc
=yes
11649 echo "$as_me: failed program was:" >&5
11650 cat conftest.
$ac_ext >&5
11651 ac_header_preproc
=no
11653 rm -f conftest.err conftest.
$ac_ext
11654 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11655 echo "${ECHO_T}$ac_header_preproc" >&6
11657 # So? What about this header?
11658 case $ac_header_compiler:$ac_header_preproc in
11660 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
11661 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11662 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
11663 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;};;
11665 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
11666 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
11667 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
11668 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
11669 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
11670 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;};;
11672 echo "$as_me:$LINENO: checking for locale.h" >&5
11673 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
11674 if test "${ac_cv_header_locale_h+set}" = set; then
11675 echo $ECHO_N "(cached) $ECHO_C" >&6
11677 ac_cv_header_locale_h
=$ac_header_preproc
11679 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
11680 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
11686 for ac_func
in setlocale
11688 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11689 echo "$as_me:$LINENO: checking for $ac_func" >&5
11690 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11691 if eval "test \"\${$as_ac_var+set}\" = set"; then
11692 echo $ECHO_N "(cached) $ECHO_C" >&6
11694 cat >conftest.
$ac_ext <<_ACEOF
11695 #line $LINENO "configure"
11696 #include "confdefs.h"
11697 /* System header to define __stub macros and hopefully few prototypes,
11698 which can conflict with char $ac_func (); below. */
11699 #include <assert.h>
11700 /* Override any gcc2 internal prototype to avoid an error. */
11704 /* We use char because int might match the return type of a gcc2
11705 builtin and then its argument prototype would still apply. */
11709 #ifdef F77_DUMMY_MAIN
11710 # ifdef __cplusplus
11713 int F77_DUMMY_MAIN() { return 1; }
11718 /* The GNU C library defines this for functions which it implements
11719 to always fail with ENOSYS. Some functions are actually named
11720 something starting with __ and the normal name is an alias. */
11721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11731 rm -f conftest.
$ac_objext conftest
$ac_exeext
11732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11733 (eval $ac_link) 2>&5
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); } &&
11737 { ac_try
='test -s conftest$ac_exeext'
11738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11739 (eval $ac_try) 2>&5
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); }; }; then
11743 eval "$as_ac_var=yes"
11745 echo "$as_me: failed program was:" >&5
11746 cat conftest.
$ac_ext >&5
11747 eval "$as_ac_var=no"
11749 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11752 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11753 if test `eval echo '${'$as_ac_var'}'` = yes; then
11754 cat >>confdefs.h
<<_ACEOF
11755 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11762 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
11763 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
11764 # Irix 4.0.5F has the header but not the library.
11765 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
11768 cat >>confdefs.h
<<\_ACEOF
11774 if test $ac_have_func = no
; then
11775 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11776 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
11777 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
11778 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11779 echo $ECHO_N "(cached) $ECHO_C" >&6
11781 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
11782 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
11784 # Is the header compilable?
11785 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
11786 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
11787 cat >conftest.
$ac_ext <<_ACEOF
11788 #line $LINENO "configure"
11789 #include "confdefs.h"
11790 $ac_includes_default
11791 #include <inq_stats/cpustats.h>
11793 rm -f conftest.
$ac_objext
11794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11795 (eval $ac_compile) 2>&5
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); } &&
11799 { ac_try
='test -s conftest.$ac_objext'
11800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11801 (eval $ac_try) 2>&5
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); }; }; then
11805 ac_header_compiler
=yes
11807 echo "$as_me: failed program was:" >&5
11808 cat conftest.
$ac_ext >&5
11809 ac_header_compiler
=no
11811 rm -f conftest.
$ac_objext conftest.
$ac_ext
11812 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11813 echo "${ECHO_T}$ac_header_compiler" >&6
11815 # Is the header present?
11816 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
11817 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
11818 cat >conftest.
$ac_ext <<_ACEOF
11819 #line $LINENO "configure"
11820 #include "confdefs.h"
11821 #include <inq_stats/cpustats.h>
11823 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11824 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11826 egrep -v '^ *\+' conftest.er1
>conftest.err
11828 cat conftest.err
>&5
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); } >/dev
/null
; then
11831 if test -s conftest.err
; then
11832 ac_cpp_err
=$ac_c_preproc_warn_flag
11839 if test -z "$ac_cpp_err"; then
11840 ac_header_preproc
=yes
11842 echo "$as_me: failed program was:" >&5
11843 cat conftest.
$ac_ext >&5
11844 ac_header_preproc
=no
11846 rm -f conftest.err conftest.
$ac_ext
11847 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11848 echo "${ECHO_T}$ac_header_preproc" >&6
11850 # So? What about this header?
11851 case $ac_header_compiler:$ac_header_preproc in
11853 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
11854 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11855 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
11856 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11858 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
11859 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
11860 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
11861 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
11862 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
11863 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11865 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
11866 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
11867 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11868 echo $ECHO_N "(cached) $ECHO_C" >&6
11870 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
11872 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
11873 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
11876 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
11879 cat >>confdefs.h
<<\_ACEOF
11884 cat >>confdefs.h
<<\_ACEOF
11893 if test $ac_have_func = no
; then
11894 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11895 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
11896 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
11897 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11898 echo $ECHO_N "(cached) $ECHO_C" >&6
11900 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
11901 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
11903 # Is the header compilable?
11904 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
11905 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
11906 cat >conftest.
$ac_ext <<_ACEOF
11907 #line $LINENO "configure"
11908 #include "confdefs.h"
11909 $ac_includes_default
11910 #include <sys/cpustats.h>
11912 rm -f conftest.
$ac_objext
11913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11914 (eval $ac_compile) 2>&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); } &&
11918 { ac_try
='test -s conftest.$ac_objext'
11919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920 (eval $ac_try) 2>&5
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); }; }; then
11924 ac_header_compiler
=yes
11926 echo "$as_me: failed program was:" >&5
11927 cat conftest.
$ac_ext >&5
11928 ac_header_compiler
=no
11930 rm -f conftest.
$ac_objext conftest.
$ac_ext
11931 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11932 echo "${ECHO_T}$ac_header_compiler" >&6
11934 # Is the header present?
11935 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
11936 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
11937 cat >conftest.
$ac_ext <<_ACEOF
11938 #line $LINENO "configure"
11939 #include "confdefs.h"
11940 #include <sys/cpustats.h>
11942 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11943 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11945 egrep -v '^ *\+' conftest.er1
>conftest.err
11947 cat conftest.err
>&5
11948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); } >/dev
/null
; then
11950 if test -s conftest.err
; then
11951 ac_cpp_err
=$ac_c_preproc_warn_flag
11958 if test -z "$ac_cpp_err"; then
11959 ac_header_preproc
=yes
11961 echo "$as_me: failed program was:" >&5
11962 cat conftest.
$ac_ext >&5
11963 ac_header_preproc
=no
11965 rm -f conftest.err conftest.
$ac_ext
11966 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11967 echo "${ECHO_T}$ac_header_preproc" >&6
11969 # So? What about this header?
11970 case $ac_header_compiler:$ac_header_preproc in
11972 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
11973 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11974 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
11975 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11977 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
11978 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
11979 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
11980 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
11981 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
11982 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11984 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
11985 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
11986 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11987 echo $ECHO_N "(cached) $ECHO_C" >&6
11989 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
11991 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
11992 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
11995 if test $ac_cv_header_sys_cpustats_h = yes; then
11996 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
12005 if test $ac_have_func = no
; then
12007 for ac_header
in mach
/mach.h
12009 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12011 echo "$as_me:$LINENO: checking for $ac_header" >&5
12012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12014 echo $ECHO_N "(cached) $ECHO_C" >&6
12016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12017 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12019 # Is the header compilable?
12020 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12021 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12022 cat >conftest.
$ac_ext <<_ACEOF
12023 #line $LINENO "configure"
12024 #include "confdefs.h"
12025 $ac_includes_default
12026 #include <$ac_header>
12028 rm -f conftest.
$ac_objext
12029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12030 (eval $ac_compile) 2>&5
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); } &&
12034 { ac_try
='test -s conftest.$ac_objext'
12035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12036 (eval $ac_try) 2>&5
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); }; }; then
12040 ac_header_compiler
=yes
12042 echo "$as_me: failed program was:" >&5
12043 cat conftest.
$ac_ext >&5
12044 ac_header_compiler
=no
12046 rm -f conftest.
$ac_objext conftest.
$ac_ext
12047 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12048 echo "${ECHO_T}$ac_header_compiler" >&6
12050 # Is the header present?
12051 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12052 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12053 cat >conftest.
$ac_ext <<_ACEOF
12054 #line $LINENO "configure"
12055 #include "confdefs.h"
12056 #include <$ac_header>
12058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12059 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12061 egrep -v '^ *\+' conftest.er1
>conftest.err
12063 cat conftest.err
>&5
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); } >/dev
/null
; then
12066 if test -s conftest.err
; then
12067 ac_cpp_err
=$ac_c_preproc_warn_flag
12074 if test -z "$ac_cpp_err"; then
12075 ac_header_preproc
=yes
12077 echo "$as_me: failed program was:" >&5
12078 cat conftest.
$ac_ext >&5
12079 ac_header_preproc
=no
12081 rm -f conftest.err conftest.
$ac_ext
12082 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12083 echo "${ECHO_T}$ac_header_preproc" >&6
12085 # So? What about this header?
12086 case $ac_header_compiler:$ac_header_preproc in
12088 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12089 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12090 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12091 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12093 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12094 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12095 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12096 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12098 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12100 echo "$as_me:$LINENO: checking for $ac_header" >&5
12101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12103 echo $ECHO_N "(cached) $ECHO_C" >&6
12105 eval "$as_ac_Header=$ac_header_preproc"
12107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12108 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12112 cat >>confdefs.h
<<_ACEOF
12113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12123 for ac_header
in nlist.h
12125 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12127 echo "$as_me:$LINENO: checking for $ac_header" >&5
12128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12130 echo $ECHO_N "(cached) $ECHO_C" >&6
12132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12133 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12135 # Is the header compilable?
12136 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12137 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12138 cat >conftest.
$ac_ext <<_ACEOF
12139 #line $LINENO "configure"
12140 #include "confdefs.h"
12141 $ac_includes_default
12142 #include <$ac_header>
12144 rm -f conftest.
$ac_objext
12145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12146 (eval $ac_compile) 2>&5
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); } &&
12150 { ac_try
='test -s conftest.$ac_objext'
12151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12152 (eval $ac_try) 2>&5
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); }; }; then
12156 ac_header_compiler
=yes
12158 echo "$as_me: failed program was:" >&5
12159 cat conftest.
$ac_ext >&5
12160 ac_header_compiler
=no
12162 rm -f conftest.
$ac_objext conftest.
$ac_ext
12163 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12164 echo "${ECHO_T}$ac_header_compiler" >&6
12166 # Is the header present?
12167 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12168 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12169 cat >conftest.
$ac_ext <<_ACEOF
12170 #line $LINENO "configure"
12171 #include "confdefs.h"
12172 #include <$ac_header>
12174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12175 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12177 egrep -v '^ *\+' conftest.er1
>conftest.err
12179 cat conftest.err
>&5
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); } >/dev
/null
; then
12182 if test -s conftest.err
; then
12183 ac_cpp_err
=$ac_c_preproc_warn_flag
12190 if test -z "$ac_cpp_err"; then
12191 ac_header_preproc
=yes
12193 echo "$as_me: failed program was:" >&5
12194 cat conftest.
$ac_ext >&5
12195 ac_header_preproc
=no
12197 rm -f conftest.err conftest.
$ac_ext
12198 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12199 echo "${ECHO_T}$ac_header_preproc" >&6
12201 # So? What about this header?
12202 case $ac_header_compiler:$ac_header_preproc in
12204 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12205 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12207 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12209 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12210 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12211 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12212 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12214 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12216 echo "$as_me:$LINENO: checking for $ac_header" >&5
12217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12219 echo $ECHO_N "(cached) $ECHO_C" >&6
12221 eval "$as_ac_Header=$ac_header_preproc"
12223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12224 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12227 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12228 cat >>confdefs.h
<<_ACEOF
12229 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12231 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
12232 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
12233 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
12234 echo $ECHO_N "(cached) $ECHO_C" >&6
12236 cat >conftest.
$ac_ext <<_ACEOF
12237 #line $LINENO "configure"
12238 #include "confdefs.h"
12241 #ifdef F77_DUMMY_MAIN
12242 # ifdef __cplusplus
12245 int F77_DUMMY_MAIN() { return 1; }
12250 static struct nlist ac_aggr;
12251 if (ac_aggr.n_un.n_name)
12257 rm -f conftest.
$ac_objext
12258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12259 (eval $ac_compile) 2>&5
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); } &&
12263 { ac_try
='test -s conftest.$ac_objext'
12264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12265 (eval $ac_try) 2>&5
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); }; }; then
12269 ac_cv_member_struct_nlist_n_un_n_name
=yes
12271 echo "$as_me: failed program was:" >&5
12272 cat conftest.
$ac_ext >&5
12273 ac_cv_member_struct_nlist_n_un_n_name
=no
12275 rm -f conftest.
$ac_objext conftest.
$ac_ext
12277 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
12278 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
12279 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
12281 cat >>confdefs.h
<<_ACEOF
12282 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
12286 cat >>confdefs.h
<<\_ACEOF
12287 #define NLIST_NAME_UNION 1
12301 # Some definitions of getloadavg require that the program be installed setgid.
12302 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
12303 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
12304 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
12305 echo $ECHO_N "(cached) $ECHO_C" >&6
12307 cat >conftest.
$ac_ext <<_ACEOF
12308 #line $LINENO "configure"
12309 #include "confdefs.h"
12310 #include "$srcdir/getloadavg.c"
12311 #ifdef LDAV_PRIVILEGED
12312 Yowza Am I SETGID yet
12315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12316 egrep "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
12317 ac_cv_func_getloadavg_setgid
=yes
12319 ac_cv_func_getloadavg_setgid
=no
12324 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
12325 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
12326 if test $ac_cv_func_getloadavg_setgid = yes; then
12329 cat >>confdefs.h
<<\_ACEOF
12330 #define GETLOADAVG_PRIVILEGED 1
12337 if test $ac_cv_func_getloadavg_setgid = yes; then
12338 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
12339 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
12340 if test "${ac_cv_group_kmem+set}" = set; then
12341 echo $ECHO_N "(cached) $ECHO_C" >&6
12343 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
12344 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
12345 # If we got an error (system does not support symlinks), try without -L.
12346 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
12347 ac_cv_group_kmem
=`echo $ac_ls_output \
12348 | sed -ne 's/[ ][ ]*/ /g;
12349 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
12353 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
12354 echo "${ECHO_T}$ac_cv_group_kmem" >&6
12355 KMEM_GROUP
=$ac_cv_group_kmem
12357 if test "x$ac_save_LIBS" = x
; then
12358 GETLOADAVG_LIBS
=$LIBS
12360 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
12366 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12367 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
12368 if test "${ac_cv_sys_largefile_source+set}" = set; then
12369 echo $ECHO_N "(cached) $ECHO_C" >&6
12372 ac_cv_sys_largefile_source
=no
12373 cat >conftest.
$ac_ext <<_ACEOF
12374 #line $LINENO "configure"
12375 #include "confdefs.h"
12377 #ifdef F77_DUMMY_MAIN
12378 # ifdef __cplusplus
12381 int F77_DUMMY_MAIN() { return 1; }
12391 rm -f conftest.
$ac_objext
12392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12393 (eval $ac_compile) 2>&5
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); } &&
12397 { ac_try
='test -s conftest.$ac_objext'
12398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12399 (eval $ac_try) 2>&5
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); }; }; then
12405 echo "$as_me: failed program was:" >&5
12406 cat conftest.
$ac_ext >&5
12408 rm -f conftest.
$ac_objext conftest.
$ac_ext
12409 cat >conftest.
$ac_ext <<_ACEOF
12410 #line $LINENO "configure"
12411 #include "confdefs.h"
12412 #define _LARGEFILE_SOURCE 1
12414 #ifdef F77_DUMMY_MAIN
12415 # ifdef __cplusplus
12418 int F77_DUMMY_MAIN() { return 1; }
12428 rm -f conftest.
$ac_objext
12429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12430 (eval $ac_compile) 2>&5
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); } &&
12434 { ac_try
='test -s conftest.$ac_objext'
12435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436 (eval $ac_try) 2>&5
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); }; }; then
12440 ac_cv_sys_largefile_source
=1; break
12442 echo "$as_me: failed program was:" >&5
12443 cat conftest.
$ac_ext >&5
12445 rm -f conftest.
$ac_objext conftest.
$ac_ext
12449 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12450 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
12451 if test "$ac_cv_sys_largefile_source" != no
; then
12453 cat >>confdefs.h
<<_ACEOF
12454 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12460 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12461 # in glibc 2.1.3, but that breaks too many other things.
12462 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12463 echo "$as_me:$LINENO: checking for fseeko" >&5
12464 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
12465 if test "${ac_cv_func_fseeko+set}" = set; then
12466 echo $ECHO_N "(cached) $ECHO_C" >&6
12468 cat >conftest.
$ac_ext <<_ACEOF
12469 #line $LINENO "configure"
12470 #include "confdefs.h"
12472 #ifdef F77_DUMMY_MAIN
12473 # ifdef __cplusplus
12476 int F77_DUMMY_MAIN() { return 1; }
12481 return fseeko && fseeko (stdin, 0, 0);
12486 rm -f conftest.
$ac_objext conftest
$ac_exeext
12487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12488 (eval $ac_link) 2>&5
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); } &&
12492 { ac_try
='test -s conftest$ac_exeext'
12493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12494 (eval $ac_try) 2>&5
12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 (exit $ac_status); }; }; then
12498 ac_cv_func_fseeko
=yes
12500 echo "$as_me: failed program was:" >&5
12501 cat conftest.
$ac_ext >&5
12502 ac_cv_func_fseeko
=no
12504 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12506 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
12507 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
12508 if test $ac_cv_func_fseeko = yes; then
12510 cat >>confdefs.h
<<\_ACEOF
12511 #define HAVE_FSEEKO 1
12519 for ac_func
in grantpt
12521 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12522 echo "$as_me:$LINENO: checking for $ac_func" >&5
12523 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12524 if eval "test \"\${$as_ac_var+set}\" = set"; then
12525 echo $ECHO_N "(cached) $ECHO_C" >&6
12527 cat >conftest.
$ac_ext <<_ACEOF
12528 #line $LINENO "configure"
12529 #include "confdefs.h"
12530 /* System header to define __stub macros and hopefully few prototypes,
12531 which can conflict with char $ac_func (); below. */
12532 #include <assert.h>
12533 /* Override any gcc2 internal prototype to avoid an error. */
12537 /* We use char because int might match the return type of a gcc2
12538 builtin and then its argument prototype would still apply. */
12542 #ifdef F77_DUMMY_MAIN
12543 # ifdef __cplusplus
12546 int F77_DUMMY_MAIN() { return 1; }
12551 /* The GNU C library defines this for functions which it implements
12552 to always fail with ENOSYS. Some functions are actually named
12553 something starting with __ and the normal name is an alias. */
12554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12564 rm -f conftest.
$ac_objext conftest
$ac_exeext
12565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12566 (eval $ac_link) 2>&5
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); } &&
12570 { ac_try
='test -s conftest$ac_exeext'
12571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12572 (eval $ac_try) 2>&5
12574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575 (exit $ac_status); }; }; then
12576 eval "$as_ac_var=yes"
12578 echo "$as_me: failed program was:" >&5
12579 cat conftest.
$ac_ext >&5
12580 eval "$as_ac_var=no"
12582 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12585 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12586 if test `eval echo '${'$as_ac_var'}'` = yes; then
12587 cat >>confdefs.h
<<_ACEOF
12588 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12595 # PTY-related GNU extensions.
12597 for ac_func
in getpt
12599 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12600 echo "$as_me:$LINENO: checking for $ac_func" >&5
12601 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12602 if eval "test \"\${$as_ac_var+set}\" = set"; then
12603 echo $ECHO_N "(cached) $ECHO_C" >&6
12605 cat >conftest.
$ac_ext <<_ACEOF
12606 #line $LINENO "configure"
12607 #include "confdefs.h"
12608 /* System header to define __stub macros and hopefully few prototypes,
12609 which can conflict with char $ac_func (); below. */
12610 #include <assert.h>
12611 /* Override any gcc2 internal prototype to avoid an error. */
12615 /* We use char because int might match the return type of a gcc2
12616 builtin and then its argument prototype would still apply. */
12620 #ifdef F77_DUMMY_MAIN
12621 # ifdef __cplusplus
12624 int F77_DUMMY_MAIN() { return 1; }
12629 /* The GNU C library defines this for functions which it implements
12630 to always fail with ENOSYS. Some functions are actually named
12631 something starting with __ and the normal name is an alias. */
12632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12642 rm -f conftest.
$ac_objext conftest
$ac_exeext
12643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12644 (eval $ac_link) 2>&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); } &&
12648 { ac_try
='test -s conftest$ac_exeext'
12649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12650 (eval $ac_try) 2>&5
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); }; }; then
12654 eval "$as_ac_var=yes"
12656 echo "$as_me: failed program was:" >&5
12657 cat conftest.
$ac_ext >&5
12658 eval "$as_ac_var=no"
12660 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12663 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12664 if test `eval echo '${'$as_ac_var'}'` = yes; then
12665 cat >>confdefs.h
<<_ACEOF
12666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12673 # Check this now, so that we will NOT find the above functions in ncurses.
12674 # That is because we have not set up to link ncurses in lib-src.
12675 # It's better to believe a function is not available
12676 # than to expect to find it in ncurses.
12678 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
12679 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
12680 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
12681 echo $ECHO_N "(cached) $ECHO_C" >&6
12683 ac_check_lib_save_LIBS
=$LIBS
12684 LIBS
="-lncurses $LIBS"
12685 cat >conftest.
$ac_ext <<_ACEOF
12686 #line $LINENO "configure"
12687 #include "confdefs.h"
12689 /* Override any gcc2 internal prototype to avoid an error. */
12693 /* We use char because int might match the return type of a gcc2
12694 builtin and then its argument prototype would still apply. */
12696 #ifdef F77_DUMMY_MAIN
12697 # ifdef __cplusplus
12700 int F77_DUMMY_MAIN() { return 1; }
12710 rm -f conftest.
$ac_objext conftest
$ac_exeext
12711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12712 (eval $ac_link) 2>&5
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); } &&
12716 { ac_try
='test -s conftest$ac_exeext'
12717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12718 (eval $ac_try) 2>&5
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); }; }; then
12722 ac_cv_lib_ncurses_tparm
=yes
12724 echo "$as_me: failed program was:" >&5
12725 cat conftest.
$ac_ext >&5
12726 ac_cv_lib_ncurses_tparm
=no
12728 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12729 LIBS
=$ac_check_lib_save_LIBS
12731 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
12732 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
12733 if test $ac_cv_lib_ncurses_tparm = yes; then
12734 cat >>confdefs.h
<<_ACEOF
12735 #define HAVE_LIBNCURSES 1
12738 LIBS
="-lncurses $LIBS"
12743 # Do we need the Hesiod library to provide the support routines?
12744 if test "$with_hesiod" = yes ; then
12745 # Don't set $LIBS here -- see comments above.
12747 echo "$as_me:$LINENO: checking for res_send" >&5
12748 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
12749 if test "${ac_cv_func_res_send+set}" = set; then
12750 echo $ECHO_N "(cached) $ECHO_C" >&6
12752 cat >conftest.
$ac_ext <<_ACEOF
12753 #line $LINENO "configure"
12754 #include "confdefs.h"
12755 /* System header to define __stub macros and hopefully few prototypes,
12756 which can conflict with char res_send (); below. */
12757 #include <assert.h>
12758 /* Override any gcc2 internal prototype to avoid an error. */
12762 /* We use char because int might match the return type of a gcc2
12763 builtin and then its argument prototype would still apply. */
12767 #ifdef F77_DUMMY_MAIN
12768 # ifdef __cplusplus
12771 int F77_DUMMY_MAIN() { return 1; }
12776 /* The GNU C library defines this for functions which it implements
12777 to always fail with ENOSYS. Some functions are actually named
12778 something starting with __ and the normal name is an alias. */
12779 #if defined (__stub_res_send) || defined (__stub___res_send)
12789 rm -f conftest.
$ac_objext conftest
$ac_exeext
12790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12791 (eval $ac_link) 2>&5
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); } &&
12795 { ac_try
='test -s conftest$ac_exeext'
12796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12797 (eval $ac_try) 2>&5
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); }; }; then
12801 ac_cv_func_res_send
=yes
12803 echo "$as_me: failed program was:" >&5
12804 cat conftest.
$ac_ext >&5
12805 ac_cv_func_res_send
=no
12807 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12809 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
12810 echo "${ECHO_T}$ac_cv_func_res_send" >&6
12811 if test $ac_cv_func_res_send = yes; then
12814 echo "$as_me:$LINENO: checking for __res_send" >&5
12815 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
12816 if test "${ac_cv_func___res_send+set}" = set; then
12817 echo $ECHO_N "(cached) $ECHO_C" >&6
12819 cat >conftest.
$ac_ext <<_ACEOF
12820 #line $LINENO "configure"
12821 #include "confdefs.h"
12822 /* System header to define __stub macros and hopefully few prototypes,
12823 which can conflict with char __res_send (); below. */
12824 #include <assert.h>
12825 /* Override any gcc2 internal prototype to avoid an error. */
12829 /* We use char because int might match the return type of a gcc2
12830 builtin and then its argument prototype would still apply. */
12831 char __res_send ();
12834 #ifdef F77_DUMMY_MAIN
12835 # ifdef __cplusplus
12838 int F77_DUMMY_MAIN() { return 1; }
12843 /* The GNU C library defines this for functions which it implements
12844 to always fail with ENOSYS. Some functions are actually named
12845 something starting with __ and the normal name is an alias. */
12846 #if defined (__stub___res_send) || defined (__stub_____res_send)
12856 rm -f conftest.
$ac_objext conftest
$ac_exeext
12857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12858 (eval $ac_link) 2>&5
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); } &&
12862 { ac_try
='test -s conftest$ac_exeext'
12863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12864 (eval $ac_try) 2>&5
12866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867 (exit $ac_status); }; }; then
12868 ac_cv_func___res_send
=yes
12870 echo "$as_me: failed program was:" >&5
12871 cat conftest.
$ac_ext >&5
12872 ac_cv_func___res_send
=no
12874 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12876 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
12877 echo "${ECHO_T}$ac_cv_func___res_send" >&6
12878 if test $ac_cv_func___res_send = yes; then
12881 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
12882 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
12883 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
12884 echo $ECHO_N "(cached) $ECHO_C" >&6
12886 ac_check_lib_save_LIBS
=$LIBS
12887 LIBS
="-lresolv $LIBS"
12888 cat >conftest.
$ac_ext <<_ACEOF
12889 #line $LINENO "configure"
12890 #include "confdefs.h"
12892 /* Override any gcc2 internal prototype to avoid an error. */
12896 /* We use char because int might match the return type of a gcc2
12897 builtin and then its argument prototype would still apply. */
12899 #ifdef F77_DUMMY_MAIN
12900 # ifdef __cplusplus
12903 int F77_DUMMY_MAIN() { return 1; }
12913 rm -f conftest.
$ac_objext conftest
$ac_exeext
12914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12915 (eval $ac_link) 2>&5
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); } &&
12919 { ac_try
='test -s conftest$ac_exeext'
12920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12921 (eval $ac_try) 2>&5
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); }; }; then
12925 ac_cv_lib_resolv_res_send
=yes
12927 echo "$as_me: failed program was:" >&5
12928 cat conftest.
$ac_ext >&5
12929 ac_cv_lib_resolv_res_send
=no
12931 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12932 LIBS
=$ac_check_lib_save_LIBS
12934 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
12935 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
12936 if test $ac_cv_lib_resolv_res_send = yes; then
12939 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
12940 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
12941 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
12942 echo $ECHO_N "(cached) $ECHO_C" >&6
12944 ac_check_lib_save_LIBS
=$LIBS
12945 LIBS
="-lresolv $LIBS"
12946 cat >conftest.
$ac_ext <<_ACEOF
12947 #line $LINENO "configure"
12948 #include "confdefs.h"
12950 /* Override any gcc2 internal prototype to avoid an error. */
12954 /* We use char because int might match the return type of a gcc2
12955 builtin and then its argument prototype would still apply. */
12956 char __res_send ();
12957 #ifdef F77_DUMMY_MAIN
12958 # ifdef __cplusplus
12961 int F77_DUMMY_MAIN() { return 1; }
12971 rm -f conftest.
$ac_objext conftest
$ac_exeext
12972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12973 (eval $ac_link) 2>&5
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); } &&
12977 { ac_try
='test -s conftest$ac_exeext'
12978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12979 (eval $ac_try) 2>&5
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); }; }; then
12983 ac_cv_lib_resolv___res_send
=yes
12985 echo "$as_me: failed program was:" >&5
12986 cat conftest.
$ac_ext >&5
12987 ac_cv_lib_resolv___res_send
=no
12989 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12990 LIBS
=$ac_check_lib_save_LIBS
12992 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
12993 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
12994 if test $ac_cv_lib_resolv___res_send = yes; then
13004 if test "$resolv" = yes ; then
13007 cat >>confdefs.h
<<\_ACEOF
13008 #define HAVE_LIBRESOLV 1
13014 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
13015 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
13016 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
13017 echo $ECHO_N "(cached) $ECHO_C" >&6
13019 cat >conftest.
$ac_ext <<_ACEOF
13020 #line $LINENO "configure"
13021 #include "confdefs.h"
13022 /* System header to define __stub macros and hopefully few prototypes,
13023 which can conflict with char hes_getmailhost (); below. */
13024 #include <assert.h>
13025 /* Override any gcc2 internal prototype to avoid an error. */
13029 /* We use char because int might match the return type of a gcc2
13030 builtin and then its argument prototype would still apply. */
13031 char hes_getmailhost ();
13034 #ifdef F77_DUMMY_MAIN
13035 # ifdef __cplusplus
13038 int F77_DUMMY_MAIN() { return 1; }
13043 /* The GNU C library defines this for functions which it implements
13044 to always fail with ENOSYS. Some functions are actually named
13045 something starting with __ and the normal name is an alias. */
13046 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
13049 f = hes_getmailhost;
13056 rm -f conftest.
$ac_objext conftest
$ac_exeext
13057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13058 (eval $ac_link) 2>&5
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); } &&
13062 { ac_try
='test -s conftest$ac_exeext'
13063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13064 (eval $ac_try) 2>&5
13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); }; }; then
13068 ac_cv_func_hes_getmailhost
=yes
13070 echo "$as_me: failed program was:" >&5
13071 cat conftest.
$ac_ext >&5
13072 ac_cv_func_hes_getmailhost
=no
13074 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13076 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
13077 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
13078 if test $ac_cv_func_hes_getmailhost = yes; then
13081 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
13082 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
13083 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
13084 echo $ECHO_N "(cached) $ECHO_C" >&6
13086 ac_check_lib_save_LIBS
=$LIBS
13087 LIBS
="-lhesiod $RESOLVLIB $LIBS"
13088 cat >conftest.
$ac_ext <<_ACEOF
13089 #line $LINENO "configure"
13090 #include "confdefs.h"
13092 /* Override any gcc2 internal prototype to avoid an error. */
13096 /* We use char because int might match the return type of a gcc2
13097 builtin and then its argument prototype would still apply. */
13098 char hes_getmailhost ();
13099 #ifdef F77_DUMMY_MAIN
13100 # ifdef __cplusplus
13103 int F77_DUMMY_MAIN() { return 1; }
13108 hes_getmailhost ();
13113 rm -f conftest.
$ac_objext conftest
$ac_exeext
13114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13115 (eval $ac_link) 2>&5
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); } &&
13119 { ac_try
='test -s conftest$ac_exeext'
13120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13121 (eval $ac_try) 2>&5
13123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124 (exit $ac_status); }; }; then
13125 ac_cv_lib_hesiod_hes_getmailhost
=yes
13127 echo "$as_me: failed program was:" >&5
13128 cat conftest.
$ac_ext >&5
13129 ac_cv_lib_hesiod_hes_getmailhost
=no
13131 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13132 LIBS
=$ac_check_lib_save_LIBS
13134 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13135 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
13136 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
13138 cat >>confdefs.h
<<\_ACEOF
13139 #define HAVE_LIBHESIOD 1
13150 # These tell us which Kerberos-related libraries to use.
13151 if test "${with_kerberos+set}" = set; then
13153 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
13154 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
13155 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
13156 echo $ECHO_N "(cached) $ECHO_C" >&6
13158 ac_check_lib_save_LIBS
=$LIBS
13159 LIBS
="-lcom_err $LIBS"
13160 cat >conftest.
$ac_ext <<_ACEOF
13161 #line $LINENO "configure"
13162 #include "confdefs.h"
13164 /* Override any gcc2 internal prototype to avoid an error. */
13168 /* We use char because int might match the return type of a gcc2
13169 builtin and then its argument prototype would still apply. */
13171 #ifdef F77_DUMMY_MAIN
13172 # ifdef __cplusplus
13175 int F77_DUMMY_MAIN() { return 1; }
13185 rm -f conftest.
$ac_objext conftest
$ac_exeext
13186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13187 (eval $ac_link) 2>&5
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); } &&
13191 { ac_try
='test -s conftest$ac_exeext'
13192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13193 (eval $ac_try) 2>&5
13195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196 (exit $ac_status); }; }; then
13197 ac_cv_lib_com_err_com_err
=yes
13199 echo "$as_me: failed program was:" >&5
13200 cat conftest.
$ac_ext >&5
13201 ac_cv_lib_com_err_com_err
=no
13203 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13204 LIBS
=$ac_check_lib_save_LIBS
13206 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
13207 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
13208 if test $ac_cv_lib_com_err_com_err = yes; then
13209 cat >>confdefs.h
<<_ACEOF
13210 #define HAVE_LIBCOM_ERR 1
13213 LIBS
="-lcom_err $LIBS"
13218 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13219 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
13220 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
13221 echo $ECHO_N "(cached) $ECHO_C" >&6
13223 ac_check_lib_save_LIBS
=$LIBS
13224 LIBS
="-lk5crypto $LIBS"
13225 cat >conftest.
$ac_ext <<_ACEOF
13226 #line $LINENO "configure"
13227 #include "confdefs.h"
13229 /* Override any gcc2 internal prototype to avoid an error. */
13233 /* We use char because int might match the return type of a gcc2
13234 builtin and then its argument prototype would still apply. */
13235 char mit_des_cbc_encrypt ();
13236 #ifdef F77_DUMMY_MAIN
13237 # ifdef __cplusplus
13240 int F77_DUMMY_MAIN() { return 1; }
13245 mit_des_cbc_encrypt ();
13250 rm -f conftest.
$ac_objext conftest
$ac_exeext
13251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13252 (eval $ac_link) 2>&5
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); } &&
13256 { ac_try
='test -s conftest$ac_exeext'
13257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13258 (eval $ac_try) 2>&5
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); }; }; then
13262 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
13264 echo "$as_me: failed program was:" >&5
13265 cat conftest.
$ac_ext >&5
13266 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
13268 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13269 LIBS
=$ac_check_lib_save_LIBS
13271 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13272 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
13273 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
13274 cat >>confdefs.h
<<_ACEOF
13275 #define HAVE_LIBK5CRYPTO 1
13278 LIBS
="-lk5crypto $LIBS"
13283 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13284 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
13285 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
13286 echo $ECHO_N "(cached) $ECHO_C" >&6
13288 ac_check_lib_save_LIBS
=$LIBS
13289 LIBS
="-lcrypto $LIBS"
13290 cat >conftest.
$ac_ext <<_ACEOF
13291 #line $LINENO "configure"
13292 #include "confdefs.h"
13294 /* Override any gcc2 internal prototype to avoid an error. */
13298 /* We use char because int might match the return type of a gcc2
13299 builtin and then its argument prototype would still apply. */
13300 char mit_des_cbc_encrypt ();
13301 #ifdef F77_DUMMY_MAIN
13302 # ifdef __cplusplus
13305 int F77_DUMMY_MAIN() { return 1; }
13310 mit_des_cbc_encrypt ();
13315 rm -f conftest.
$ac_objext conftest
$ac_exeext
13316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13317 (eval $ac_link) 2>&5
13319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320 (exit $ac_status); } &&
13321 { ac_try
='test -s conftest$ac_exeext'
13322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13323 (eval $ac_try) 2>&5
13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); }; }; then
13327 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
13329 echo "$as_me: failed program was:" >&5
13330 cat conftest.
$ac_ext >&5
13331 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
13333 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13334 LIBS
=$ac_check_lib_save_LIBS
13336 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13337 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
13338 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
13339 cat >>confdefs.h
<<_ACEOF
13340 #define HAVE_LIBCRYPTO 1
13343 LIBS
="-lcrypto $LIBS"
13348 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
13349 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
13350 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
13351 echo $ECHO_N "(cached) $ECHO_C" >&6
13353 ac_check_lib_save_LIBS
=$LIBS
13354 LIBS
="-lkrb5 $LIBS"
13355 cat >conftest.
$ac_ext <<_ACEOF
13356 #line $LINENO "configure"
13357 #include "confdefs.h"
13359 /* Override any gcc2 internal prototype to avoid an error. */
13363 /* We use char because int might match the return type of a gcc2
13364 builtin and then its argument prototype would still apply. */
13365 char krb5_init_context ();
13366 #ifdef F77_DUMMY_MAIN
13367 # ifdef __cplusplus
13370 int F77_DUMMY_MAIN() { return 1; }
13375 krb5_init_context ();
13380 rm -f conftest.
$ac_objext conftest
$ac_exeext
13381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13382 (eval $ac_link) 2>&5
13384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); } &&
13386 { ac_try
='test -s conftest$ac_exeext'
13387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13388 (eval $ac_try) 2>&5
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); }; }; then
13392 ac_cv_lib_krb5_krb5_init_context
=yes
13394 echo "$as_me: failed program was:" >&5
13395 cat conftest.
$ac_ext >&5
13396 ac_cv_lib_krb5_krb5_init_context
=no
13398 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13399 LIBS
=$ac_check_lib_save_LIBS
13401 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
13402 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
13403 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
13404 cat >>confdefs.h
<<_ACEOF
13405 #define HAVE_LIBKRB5 1
13408 LIBS
="-lkrb5 $LIBS"
13412 if test "${with_kerberos5+set}" != set; then
13414 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
13415 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
13416 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
13417 echo $ECHO_N "(cached) $ECHO_C" >&6
13419 ac_check_lib_save_LIBS
=$LIBS
13420 LIBS
="-ldes425 $LIBS"
13421 cat >conftest.
$ac_ext <<_ACEOF
13422 #line $LINENO "configure"
13423 #include "confdefs.h"
13425 /* Override any gcc2 internal prototype to avoid an error. */
13429 /* We use char because int might match the return type of a gcc2
13430 builtin and then its argument prototype would still apply. */
13431 char des_cbc_encrypt ();
13432 #ifdef F77_DUMMY_MAIN
13433 # ifdef __cplusplus
13436 int F77_DUMMY_MAIN() { return 1; }
13441 des_cbc_encrypt ();
13446 rm -f conftest.
$ac_objext conftest
$ac_exeext
13447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13448 (eval $ac_link) 2>&5
13450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); } &&
13452 { ac_try
='test -s conftest$ac_exeext'
13453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13454 (eval $ac_try) 2>&5
13456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); }; }; then
13458 ac_cv_lib_des425_des_cbc_encrypt
=yes
13460 echo "$as_me: failed program was:" >&5
13461 cat conftest.
$ac_ext >&5
13462 ac_cv_lib_des425_des_cbc_encrypt
=no
13464 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13465 LIBS
=$ac_check_lib_save_LIBS
13467 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13468 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
13469 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
13470 cat >>confdefs.h
<<_ACEOF
13471 #define HAVE_LIBDES425 1
13474 LIBS
="-ldes425 $LIBS"
13478 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
13479 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
13480 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
13481 echo $ECHO_N "(cached) $ECHO_C" >&6
13483 ac_check_lib_save_LIBS
=$LIBS
13485 cat >conftest.
$ac_ext <<_ACEOF
13486 #line $LINENO "configure"
13487 #include "confdefs.h"
13489 /* Override any gcc2 internal prototype to avoid an error. */
13493 /* We use char because int might match the return type of a gcc2
13494 builtin and then its argument prototype would still apply. */
13495 char des_cbc_encrypt ();
13496 #ifdef F77_DUMMY_MAIN
13497 # ifdef __cplusplus
13500 int F77_DUMMY_MAIN() { return 1; }
13505 des_cbc_encrypt ();
13510 rm -f conftest.
$ac_objext conftest
$ac_exeext
13511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13512 (eval $ac_link) 2>&5
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); } &&
13516 { ac_try
='test -s conftest$ac_exeext'
13517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13518 (eval $ac_try) 2>&5
13520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521 (exit $ac_status); }; }; then
13522 ac_cv_lib_des_des_cbc_encrypt
=yes
13524 echo "$as_me: failed program was:" >&5
13525 cat conftest.
$ac_ext >&5
13526 ac_cv_lib_des_des_cbc_encrypt
=no
13528 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13529 LIBS
=$ac_check_lib_save_LIBS
13531 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13532 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
13533 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
13534 cat >>confdefs.h
<<_ACEOF
13535 #define HAVE_LIBDES 1
13545 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
13546 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
13547 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
13548 echo $ECHO_N "(cached) $ECHO_C" >&6
13550 ac_check_lib_save_LIBS
=$LIBS
13551 LIBS
="-lkrb4 $LIBS"
13552 cat >conftest.
$ac_ext <<_ACEOF
13553 #line $LINENO "configure"
13554 #include "confdefs.h"
13556 /* Override any gcc2 internal prototype to avoid an error. */
13560 /* We use char because int might match the return type of a gcc2
13561 builtin and then its argument prototype would still apply. */
13562 char krb_get_cred ();
13563 #ifdef F77_DUMMY_MAIN
13564 # ifdef __cplusplus
13567 int F77_DUMMY_MAIN() { return 1; }
13577 rm -f conftest.
$ac_objext conftest
$ac_exeext
13578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13579 (eval $ac_link) 2>&5
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); } &&
13583 { ac_try
='test -s conftest$ac_exeext'
13584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13585 (eval $ac_try) 2>&5
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); }; }; then
13589 ac_cv_lib_krb4_krb_get_cred
=yes
13591 echo "$as_me: failed program was:" >&5
13592 cat conftest.
$ac_ext >&5
13593 ac_cv_lib_krb4_krb_get_cred
=no
13595 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13596 LIBS
=$ac_check_lib_save_LIBS
13598 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
13599 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
13600 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
13601 cat >>confdefs.h
<<_ACEOF
13602 #define HAVE_LIBKRB4 1
13605 LIBS
="-lkrb4 $LIBS"
13609 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
13610 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
13611 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
13612 echo $ECHO_N "(cached) $ECHO_C" >&6
13614 ac_check_lib_save_LIBS
=$LIBS
13616 cat >conftest.
$ac_ext <<_ACEOF
13617 #line $LINENO "configure"
13618 #include "confdefs.h"
13620 /* Override any gcc2 internal prototype to avoid an error. */
13624 /* We use char because int might match the return type of a gcc2
13625 builtin and then its argument prototype would still apply. */
13626 char krb_get_cred ();
13627 #ifdef F77_DUMMY_MAIN
13628 # ifdef __cplusplus
13631 int F77_DUMMY_MAIN() { return 1; }
13641 rm -f conftest.
$ac_objext conftest
$ac_exeext
13642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13643 (eval $ac_link) 2>&5
13645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); } &&
13647 { ac_try
='test -s conftest$ac_exeext'
13648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13649 (eval $ac_try) 2>&5
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); }; }; then
13653 ac_cv_lib_krb_krb_get_cred
=yes
13655 echo "$as_me: failed program was:" >&5
13656 cat conftest.
$ac_ext >&5
13657 ac_cv_lib_krb_krb_get_cred
=no
13659 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13660 LIBS
=$ac_check_lib_save_LIBS
13662 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
13663 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
13664 if test $ac_cv_lib_krb_krb_get_cred = yes; then
13665 cat >>confdefs.h
<<_ACEOF
13666 #define HAVE_LIBKRB 1
13677 if test "${with_kerberos5+set}" = set; then
13679 for ac_header
in krb5.h
13681 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13682 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13683 echo "$as_me:$LINENO: checking for $ac_header" >&5
13684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13686 echo $ECHO_N "(cached) $ECHO_C" >&6
13688 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13689 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13691 # Is the header compilable?
13692 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13693 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13694 cat >conftest.
$ac_ext <<_ACEOF
13695 #line $LINENO "configure"
13696 #include "confdefs.h"
13697 $ac_includes_default
13698 #include <$ac_header>
13700 rm -f conftest.
$ac_objext
13701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13702 (eval $ac_compile) 2>&5
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); } &&
13706 { ac_try
='test -s conftest.$ac_objext'
13707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13708 (eval $ac_try) 2>&5
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); }; }; then
13712 ac_header_compiler
=yes
13714 echo "$as_me: failed program was:" >&5
13715 cat conftest.
$ac_ext >&5
13716 ac_header_compiler
=no
13718 rm -f conftest.
$ac_objext conftest.
$ac_ext
13719 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13720 echo "${ECHO_T}$ac_header_compiler" >&6
13722 # Is the header present?
13723 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13724 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13725 cat >conftest.
$ac_ext <<_ACEOF
13726 #line $LINENO "configure"
13727 #include "confdefs.h"
13728 #include <$ac_header>
13730 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13731 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13733 egrep -v '^ *\+' conftest.er1
>conftest.err
13735 cat conftest.err
>&5
13736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737 (exit $ac_status); } >/dev
/null
; then
13738 if test -s conftest.err
; then
13739 ac_cpp_err
=$ac_c_preproc_warn_flag
13746 if test -z "$ac_cpp_err"; then
13747 ac_header_preproc
=yes
13749 echo "$as_me: failed program was:" >&5
13750 cat conftest.
$ac_ext >&5
13751 ac_header_preproc
=no
13753 rm -f conftest.err conftest.
$ac_ext
13754 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13755 echo "${ECHO_T}$ac_header_preproc" >&6
13757 # So? What about this header?
13758 case $ac_header_compiler:$ac_header_preproc in
13760 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13761 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13765 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13766 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13767 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13768 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13772 echo "$as_me:$LINENO: checking for $ac_header" >&5
13773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13775 echo $ECHO_N "(cached) $ECHO_C" >&6
13777 eval "$as_ac_Header=$ac_header_preproc"
13779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13780 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13783 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13784 cat >>confdefs.h
<<_ACEOF
13785 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13794 for ac_header
in des.h
13796 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13798 echo "$as_me:$LINENO: checking for $ac_header" >&5
13799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13801 echo $ECHO_N "(cached) $ECHO_C" >&6
13803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13804 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13806 # Is the header compilable?
13807 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13808 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13809 cat >conftest.
$ac_ext <<_ACEOF
13810 #line $LINENO "configure"
13811 #include "confdefs.h"
13812 $ac_includes_default
13813 #include <$ac_header>
13815 rm -f conftest.
$ac_objext
13816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13817 (eval $ac_compile) 2>&5
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); } &&
13821 { ac_try
='test -s conftest.$ac_objext'
13822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823 (eval $ac_try) 2>&5
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); }; }; then
13827 ac_header_compiler
=yes
13829 echo "$as_me: failed program was:" >&5
13830 cat conftest.
$ac_ext >&5
13831 ac_header_compiler
=no
13833 rm -f conftest.
$ac_objext conftest.
$ac_ext
13834 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13835 echo "${ECHO_T}$ac_header_compiler" >&6
13837 # Is the header present?
13838 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13839 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13840 cat >conftest.
$ac_ext <<_ACEOF
13841 #line $LINENO "configure"
13842 #include "confdefs.h"
13843 #include <$ac_header>
13845 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13846 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13848 egrep -v '^ *\+' conftest.er1
>conftest.err
13850 cat conftest.err
>&5
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); } >/dev
/null
; then
13853 if test -s conftest.err
; then
13854 ac_cpp_err
=$ac_c_preproc_warn_flag
13861 if test -z "$ac_cpp_err"; then
13862 ac_header_preproc
=yes
13864 echo "$as_me: failed program was:" >&5
13865 cat conftest.
$ac_ext >&5
13866 ac_header_preproc
=no
13868 rm -f conftest.err conftest.
$ac_ext
13869 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13870 echo "${ECHO_T}$ac_header_preproc" >&6
13872 # So? What about this header?
13873 case $ac_header_compiler:$ac_header_preproc in
13875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13880 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13881 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13882 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13883 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13885 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13887 echo "$as_me:$LINENO: checking for $ac_header" >&5
13888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13890 echo $ECHO_N "(cached) $ECHO_C" >&6
13892 eval "$as_ac_Header=$ac_header_preproc"
13894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13899 cat >>confdefs.h
<<_ACEOF
13900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13905 for ac_header
in kerberosIV
/des.h
13907 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13909 echo "$as_me:$LINENO: checking for $ac_header" >&5
13910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13912 echo $ECHO_N "(cached) $ECHO_C" >&6
13914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13917 # Is the header compilable?
13918 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13919 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13920 cat >conftest.
$ac_ext <<_ACEOF
13921 #line $LINENO "configure"
13922 #include "confdefs.h"
13923 $ac_includes_default
13924 #include <$ac_header>
13926 rm -f conftest.
$ac_objext
13927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13928 (eval $ac_compile) 2>&5
13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); } &&
13932 { ac_try
='test -s conftest.$ac_objext'
13933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13934 (eval $ac_try) 2>&5
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); }; }; then
13938 ac_header_compiler
=yes
13940 echo "$as_me: failed program was:" >&5
13941 cat conftest.
$ac_ext >&5
13942 ac_header_compiler
=no
13944 rm -f conftest.
$ac_objext conftest.
$ac_ext
13945 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13946 echo "${ECHO_T}$ac_header_compiler" >&6
13948 # Is the header present?
13949 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13950 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13951 cat >conftest.
$ac_ext <<_ACEOF
13952 #line $LINENO "configure"
13953 #include "confdefs.h"
13954 #include <$ac_header>
13956 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13957 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13959 egrep -v '^ *\+' conftest.er1
>conftest.err
13961 cat conftest.err
>&5
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); } >/dev
/null
; then
13964 if test -s conftest.err
; then
13965 ac_cpp_err
=$ac_c_preproc_warn_flag
13972 if test -z "$ac_cpp_err"; then
13973 ac_header_preproc
=yes
13975 echo "$as_me: failed program was:" >&5
13976 cat conftest.
$ac_ext >&5
13977 ac_header_preproc
=no
13979 rm -f conftest.err conftest.
$ac_ext
13980 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13981 echo "${ECHO_T}$ac_header_preproc" >&6
13983 # So? What about this header?
13984 case $ac_header_compiler:$ac_header_preproc in
13986 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13987 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13989 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13991 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13992 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13993 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13994 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13996 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13998 echo "$as_me:$LINENO: checking for $ac_header" >&5
13999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14001 echo $ECHO_N "(cached) $ECHO_C" >&6
14003 eval "$as_ac_Header=$ac_header_preproc"
14005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14006 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14009 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14010 cat >>confdefs.h
<<_ACEOF
14011 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14016 for ac_header
in kerberos
/des.h
14018 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14020 echo "$as_me:$LINENO: checking for $ac_header" >&5
14021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14022 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14023 echo $ECHO_N "(cached) $ECHO_C" >&6
14025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14026 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14028 # Is the header compilable?
14029 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14030 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14031 cat >conftest.
$ac_ext <<_ACEOF
14032 #line $LINENO "configure"
14033 #include "confdefs.h"
14034 $ac_includes_default
14035 #include <$ac_header>
14037 rm -f conftest.
$ac_objext
14038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14039 (eval $ac_compile) 2>&5
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); } &&
14043 { ac_try
='test -s conftest.$ac_objext'
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_header_compiler
=yes
14051 echo "$as_me: failed program was:" >&5
14052 cat conftest.
$ac_ext >&5
14053 ac_header_compiler
=no
14055 rm -f conftest.
$ac_objext conftest.
$ac_ext
14056 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14057 echo "${ECHO_T}$ac_header_compiler" >&6
14059 # Is the header present?
14060 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14061 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14062 cat >conftest.
$ac_ext <<_ACEOF
14063 #line $LINENO "configure"
14064 #include "confdefs.h"
14065 #include <$ac_header>
14067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14068 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14070 egrep -v '^ *\+' conftest.er1
>conftest.err
14072 cat conftest.err
>&5
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); } >/dev
/null
; then
14075 if test -s conftest.err
; then
14076 ac_cpp_err
=$ac_c_preproc_warn_flag
14083 if test -z "$ac_cpp_err"; then
14084 ac_header_preproc
=yes
14086 echo "$as_me: failed program was:" >&5
14087 cat conftest.
$ac_ext >&5
14088 ac_header_preproc
=no
14090 rm -f conftest.err conftest.
$ac_ext
14091 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14092 echo "${ECHO_T}$ac_header_preproc" >&6
14094 # So? What about this header?
14095 case $ac_header_compiler:$ac_header_preproc in
14097 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14098 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14100 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14102 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14103 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14104 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14105 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14107 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14109 echo "$as_me:$LINENO: checking for $ac_header" >&5
14110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14112 echo $ECHO_N "(cached) $ECHO_C" >&6
14114 eval "$as_ac_Header=$ac_header_preproc"
14116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14117 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14120 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14121 cat >>confdefs.h
<<_ACEOF
14122 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14138 for ac_header
in krb.h
14140 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14141 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14142 echo "$as_me:$LINENO: checking for $ac_header" >&5
14143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14145 echo $ECHO_N "(cached) $ECHO_C" >&6
14147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14148 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14150 # Is the header compilable?
14151 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14152 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14153 cat >conftest.
$ac_ext <<_ACEOF
14154 #line $LINENO "configure"
14155 #include "confdefs.h"
14156 $ac_includes_default
14157 #include <$ac_header>
14159 rm -f conftest.
$ac_objext
14160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14161 (eval $ac_compile) 2>&5
14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 (exit $ac_status); } &&
14165 { ac_try
='test -s conftest.$ac_objext'
14166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14167 (eval $ac_try) 2>&5
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); }; }; then
14171 ac_header_compiler
=yes
14173 echo "$as_me: failed program was:" >&5
14174 cat conftest.
$ac_ext >&5
14175 ac_header_compiler
=no
14177 rm -f conftest.
$ac_objext conftest.
$ac_ext
14178 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14179 echo "${ECHO_T}$ac_header_compiler" >&6
14181 # Is the header present?
14182 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14183 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14184 cat >conftest.
$ac_ext <<_ACEOF
14185 #line $LINENO "configure"
14186 #include "confdefs.h"
14187 #include <$ac_header>
14189 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14190 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14192 egrep -v '^ *\+' conftest.er1
>conftest.err
14194 cat conftest.err
>&5
14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196 (exit $ac_status); } >/dev
/null
; then
14197 if test -s conftest.err
; then
14198 ac_cpp_err
=$ac_c_preproc_warn_flag
14205 if test -z "$ac_cpp_err"; then
14206 ac_header_preproc
=yes
14208 echo "$as_me: failed program was:" >&5
14209 cat conftest.
$ac_ext >&5
14210 ac_header_preproc
=no
14212 rm -f conftest.err conftest.
$ac_ext
14213 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14214 echo "${ECHO_T}$ac_header_preproc" >&6
14216 # So? What about this header?
14217 case $ac_header_compiler:$ac_header_preproc in
14219 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14220 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14224 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14225 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14226 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14227 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14229 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14231 echo "$as_me:$LINENO: checking for $ac_header" >&5
14232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14234 echo $ECHO_N "(cached) $ECHO_C" >&6
14236 eval "$as_ac_Header=$ac_header_preproc"
14238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14239 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14243 cat >>confdefs.h
<<_ACEOF
14244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14249 for ac_header
in kerberosIV
/krb.h
14251 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14253 echo "$as_me:$LINENO: checking for $ac_header" >&5
14254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14256 echo $ECHO_N "(cached) $ECHO_C" >&6
14258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14259 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14261 # Is the header compilable?
14262 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14263 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14264 cat >conftest.
$ac_ext <<_ACEOF
14265 #line $LINENO "configure"
14266 #include "confdefs.h"
14267 $ac_includes_default
14268 #include <$ac_header>
14270 rm -f conftest.
$ac_objext
14271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14272 (eval $ac_compile) 2>&5
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); } &&
14276 { ac_try
='test -s conftest.$ac_objext'
14277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14278 (eval $ac_try) 2>&5
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); }; }; then
14282 ac_header_compiler
=yes
14284 echo "$as_me: failed program was:" >&5
14285 cat conftest.
$ac_ext >&5
14286 ac_header_compiler
=no
14288 rm -f conftest.
$ac_objext conftest.
$ac_ext
14289 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14290 echo "${ECHO_T}$ac_header_compiler" >&6
14292 # Is the header present?
14293 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14294 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14295 cat >conftest.
$ac_ext <<_ACEOF
14296 #line $LINENO "configure"
14297 #include "confdefs.h"
14298 #include <$ac_header>
14300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14301 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14303 egrep -v '^ *\+' conftest.er1
>conftest.err
14305 cat conftest.err
>&5
14306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307 (exit $ac_status); } >/dev
/null
; then
14308 if test -s conftest.err
; then
14309 ac_cpp_err
=$ac_c_preproc_warn_flag
14316 if test -z "$ac_cpp_err"; then
14317 ac_header_preproc
=yes
14319 echo "$as_me: failed program was:" >&5
14320 cat conftest.
$ac_ext >&5
14321 ac_header_preproc
=no
14323 rm -f conftest.err conftest.
$ac_ext
14324 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14325 echo "${ECHO_T}$ac_header_preproc" >&6
14327 # So? What about this header?
14328 case $ac_header_compiler:$ac_header_preproc in
14330 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14331 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14333 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14335 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14336 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14337 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14338 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14340 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14342 echo "$as_me:$LINENO: checking for $ac_header" >&5
14343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14345 echo $ECHO_N "(cached) $ECHO_C" >&6
14347 eval "$as_ac_Header=$ac_header_preproc"
14349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14350 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14353 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14354 cat >>confdefs.h
<<_ACEOF
14355 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14360 for ac_header
in kerberos
/krb.h
14362 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14364 echo "$as_me:$LINENO: checking for $ac_header" >&5
14365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14367 echo $ECHO_N "(cached) $ECHO_C" >&6
14369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14372 # Is the header compilable?
14373 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14374 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14375 cat >conftest.
$ac_ext <<_ACEOF
14376 #line $LINENO "configure"
14377 #include "confdefs.h"
14378 $ac_includes_default
14379 #include <$ac_header>
14381 rm -f conftest.
$ac_objext
14382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14383 (eval $ac_compile) 2>&5
14385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386 (exit $ac_status); } &&
14387 { ac_try
='test -s conftest.$ac_objext'
14388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14389 (eval $ac_try) 2>&5
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); }; }; then
14393 ac_header_compiler
=yes
14395 echo "$as_me: failed program was:" >&5
14396 cat conftest.
$ac_ext >&5
14397 ac_header_compiler
=no
14399 rm -f conftest.
$ac_objext conftest.
$ac_ext
14400 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14401 echo "${ECHO_T}$ac_header_compiler" >&6
14403 # Is the header present?
14404 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14405 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14406 cat >conftest.
$ac_ext <<_ACEOF
14407 #line $LINENO "configure"
14408 #include "confdefs.h"
14409 #include <$ac_header>
14411 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14412 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14414 egrep -v '^ *\+' conftest.er1
>conftest.err
14416 cat conftest.err
>&5
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); } >/dev
/null
; then
14419 if test -s conftest.err
; then
14420 ac_cpp_err
=$ac_c_preproc_warn_flag
14427 if test -z "$ac_cpp_err"; then
14428 ac_header_preproc
=yes
14430 echo "$as_me: failed program was:" >&5
14431 cat conftest.
$ac_ext >&5
14432 ac_header_preproc
=no
14434 rm -f conftest.err conftest.
$ac_ext
14435 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14436 echo "${ECHO_T}$ac_header_preproc" >&6
14438 # So? What about this header?
14439 case $ac_header_compiler:$ac_header_preproc in
14441 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14442 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14444 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14446 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14447 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14448 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14449 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14453 echo "$as_me:$LINENO: checking for $ac_header" >&5
14454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14456 echo $ECHO_N "(cached) $ECHO_C" >&6
14458 eval "$as_ac_Header=$ac_header_preproc"
14460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14464 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14465 cat >>confdefs.h
<<_ACEOF
14466 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14483 for ac_header
in com_err.h
14485 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14487 echo "$as_me:$LINENO: checking for $ac_header" >&5
14488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14490 echo $ECHO_N "(cached) $ECHO_C" >&6
14492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14495 # Is the header compilable?
14496 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14497 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14498 cat >conftest.
$ac_ext <<_ACEOF
14499 #line $LINENO "configure"
14500 #include "confdefs.h"
14501 $ac_includes_default
14502 #include <$ac_header>
14504 rm -f conftest.
$ac_objext
14505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14506 (eval $ac_compile) 2>&5
14508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509 (exit $ac_status); } &&
14510 { ac_try
='test -s conftest.$ac_objext'
14511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14512 (eval $ac_try) 2>&5
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); }; }; then
14516 ac_header_compiler
=yes
14518 echo "$as_me: failed program was:" >&5
14519 cat conftest.
$ac_ext >&5
14520 ac_header_compiler
=no
14522 rm -f conftest.
$ac_objext conftest.
$ac_ext
14523 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14524 echo "${ECHO_T}$ac_header_compiler" >&6
14526 # Is the header present?
14527 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14528 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14529 cat >conftest.
$ac_ext <<_ACEOF
14530 #line $LINENO "configure"
14531 #include "confdefs.h"
14532 #include <$ac_header>
14534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14535 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14537 egrep -v '^ *\+' conftest.er1
>conftest.err
14539 cat conftest.err
>&5
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); } >/dev
/null
; then
14542 if test -s conftest.err
; then
14543 ac_cpp_err
=$ac_c_preproc_warn_flag
14550 if test -z "$ac_cpp_err"; then
14551 ac_header_preproc
=yes
14553 echo "$as_me: failed program was:" >&5
14554 cat conftest.
$ac_ext >&5
14555 ac_header_preproc
=no
14557 rm -f conftest.err conftest.
$ac_ext
14558 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14559 echo "${ECHO_T}$ac_header_preproc" >&6
14561 # So? What about this header?
14562 case $ac_header_compiler:$ac_header_preproc in
14564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14569 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14570 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14571 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14572 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14576 echo "$as_me:$LINENO: checking for $ac_header" >&5
14577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14578 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14579 echo $ECHO_N "(cached) $ECHO_C" >&6
14581 eval "$as_ac_Header=$ac_header_preproc"
14583 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14584 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14587 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14588 cat >>confdefs.h
<<_ACEOF
14589 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14598 # Solaris requires -lintl if you want strerror (which calls dgettext)
14599 # to return localized messages.
14601 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
14602 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
14603 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
14604 echo $ECHO_N "(cached) $ECHO_C" >&6
14606 ac_check_lib_save_LIBS
=$LIBS
14607 LIBS
="-lintl $LIBS"
14608 cat >conftest.
$ac_ext <<_ACEOF
14609 #line $LINENO "configure"
14610 #include "confdefs.h"
14612 /* Override any gcc2 internal prototype to avoid an error. */
14616 /* We use char because int might match the return type of a gcc2
14617 builtin and then its argument prototype would still apply. */
14619 #ifdef F77_DUMMY_MAIN
14620 # ifdef __cplusplus
14623 int F77_DUMMY_MAIN() { return 1; }
14633 rm -f conftest.
$ac_objext conftest
$ac_exeext
14634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14635 (eval $ac_link) 2>&5
14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 (exit $ac_status); } &&
14639 { ac_try
='test -s conftest$ac_exeext'
14640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14641 (eval $ac_try) 2>&5
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); }; }; then
14645 ac_cv_lib_intl_dgettext
=yes
14647 echo "$as_me: failed program was:" >&5
14648 cat conftest.
$ac_ext >&5
14649 ac_cv_lib_intl_dgettext
=no
14651 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14652 LIBS
=$ac_check_lib_save_LIBS
14654 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
14655 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
14656 if test $ac_cv_lib_intl_dgettext = yes; then
14657 cat >>confdefs.h
<<_ACEOF
14658 #define HAVE_LIBINTL 1
14661 LIBS
="-lintl $LIBS"
14666 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
14667 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
14668 if test "${emacs_cv_localtime_cache+set}" = set; then
14669 echo $ECHO_N "(cached) $ECHO_C" >&6
14671 if test x
$ac_cv_func_tzset = xyes
; then
14672 if test "$cross_compiling" = yes; then
14673 # If we have tzset, assume the worst when cross-compiling.
14674 emacs_cv_localtime_cache
=yes
14676 cat >conftest.
$ac_ext <<_ACEOF
14677 #line $LINENO "configure"
14678 #include "confdefs.h"
14680 extern char **environ;
14684 for (to = from = environ; (*to = *from); from++)
14685 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
14688 char TZ_GMT0[] = "TZ=GMT0";
14689 char TZ_PST8[] = "TZ=PST8";
14692 time_t now = time ((time_t *) 0);
14693 int hour_GMT0, hour_unset;
14694 if (putenv (TZ_GMT0) != 0)
14696 hour_GMT0 = localtime (&now)->tm_hour;
14698 hour_unset = localtime (&now)->tm_hour;
14699 if (putenv (TZ_PST8) != 0)
14701 if (localtime (&now)->tm_hour == hour_GMT0)
14704 if (localtime (&now)->tm_hour != hour_unset)
14709 rm -f conftest
$ac_exeext
14710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14711 (eval $ac_link) 2>&5
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14716 (eval $ac_try) 2>&5
14718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719 (exit $ac_status); }; }; then
14720 emacs_cv_localtime_cache
=no
14722 echo "$as_me: program exited with status $ac_status" >&5
14723 echo "$as_me: failed program was:" >&5
14724 cat conftest.
$ac_ext >&5
14725 ( exit $ac_status )
14726 emacs_cv_localtime_cache
=yes
14728 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14731 # If we lack tzset, report that localtime does not cache TZ,
14732 # since we can't invalidate the cache if we don't have tzset.
14733 emacs_cv_localtime_cache
=no
14736 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
14737 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
14738 if test $emacs_cv_localtime_cache = yes; then
14740 cat >>confdefs.h
<<\_ACEOF
14741 #define LOCALTIME_CACHE 1
14746 if test "x$HAVE_TIMEVAL" = xyes
; then
14748 for ac_func
in gettimeofday
14750 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14751 echo "$as_me:$LINENO: checking for $ac_func" >&5
14752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14753 if eval "test \"\${$as_ac_var+set}\" = set"; then
14754 echo $ECHO_N "(cached) $ECHO_C" >&6
14756 cat >conftest.
$ac_ext <<_ACEOF
14757 #line $LINENO "configure"
14758 #include "confdefs.h"
14759 /* System header to define __stub macros and hopefully few prototypes,
14760 which can conflict with char $ac_func (); below. */
14761 #include <assert.h>
14762 /* Override any gcc2 internal prototype to avoid an error. */
14766 /* We use char because int might match the return type of a gcc2
14767 builtin and then its argument prototype would still apply. */
14771 #ifdef F77_DUMMY_MAIN
14772 # ifdef __cplusplus
14775 int F77_DUMMY_MAIN() { return 1; }
14780 /* The GNU C library defines this for functions which it implements
14781 to always fail with ENOSYS. Some functions are actually named
14782 something starting with __ and the normal name is an alias. */
14783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14793 rm -f conftest.
$ac_objext conftest
$ac_exeext
14794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14795 (eval $ac_link) 2>&5
14797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798 (exit $ac_status); } &&
14799 { ac_try
='test -s conftest$ac_exeext'
14800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14801 (eval $ac_try) 2>&5
14803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 (exit $ac_status); }; }; then
14805 eval "$as_ac_var=yes"
14807 echo "$as_me: failed program was:" >&5
14808 cat conftest.
$ac_ext >&5
14809 eval "$as_ac_var=no"
14811 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14814 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14815 if test `eval echo '${'$as_ac_var'}'` = yes; then
14816 cat >>confdefs.h
<<_ACEOF
14817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14823 if test $ac_cv_func_gettimeofday = yes; then
14824 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
14825 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
14826 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
14827 echo $ECHO_N "(cached) $ECHO_C" >&6
14829 cat >conftest.
$ac_ext <<_ACEOF
14830 #line $LINENO "configure"
14831 #include "confdefs.h"
14833 #ifdef TIME_WITH_SYS_TIME
14834 #include <sys/time.h>
14837 #ifdef HAVE_SYS_TIME_H
14838 #include <sys/time.h>
14843 #ifdef F77_DUMMY_MAIN
14844 # ifdef __cplusplus
14847 int F77_DUMMY_MAIN() { return 1; }
14852 struct timeval time;
14853 gettimeofday (&time, 0);
14858 rm -f conftest.
$ac_objext
14859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14860 (eval $ac_compile) 2>&5
14862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863 (exit $ac_status); } &&
14864 { ac_try
='test -s conftest.$ac_objext'
14865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14866 (eval $ac_try) 2>&5
14868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869 (exit $ac_status); }; }; then
14870 emacs_cv_gettimeofday_two_arguments
=yes
14872 echo "$as_me: failed program was:" >&5
14873 cat conftest.
$ac_ext >&5
14874 emacs_cv_gettimeofday_two_arguments
=no
14876 rm -f conftest.
$ac_objext conftest.
$ac_ext
14878 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
14879 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
14880 if test $emacs_cv_gettimeofday_two_arguments = no
; then
14882 cat >>confdefs.h
<<\_ACEOF
14883 #define GETTIMEOFDAY_ONE_ARGUMENT 1
14890 if test "$ac_cv_func_gettimeofday" = yes; then
14891 echo "$as_me:$LINENO: checking for struct timezone" >&5
14892 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
14893 if test "${emacs_cv_struct_timezone+set}" = set; then
14894 echo $ECHO_N "(cached) $ECHO_C" >&6
14896 cat >conftest.
$ac_ext <<_ACEOF
14897 #line $LINENO "configure"
14898 #include "confdefs.h"
14899 #include <sys/time.h>
14900 #ifdef F77_DUMMY_MAIN
14901 # ifdef __cplusplus
14904 int F77_DUMMY_MAIN() { return 1; }
14909 struct timezone tz;
14914 rm -f conftest.
$ac_objext
14915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14916 (eval $ac_compile) 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 if test "$cross_compiling" = yes; then
14927 emacs_cv_struct_timezone
=yes
14929 cat >conftest.
$ac_ext <<_ACEOF
14930 #line $LINENO "configure"
14931 #include "confdefs.h"
14933 #ifdef TIME_WITH_SYS_TIME
14934 #include <sys/time.h>
14937 #ifdef HAVE_SYS_TIME_H
14938 #include <sys/time.h>
14944 struct timeval time;
14945 struct timezone dummy;
14946 exit (gettimeofday (&time, &dummy));
14949 rm -f conftest
$ac_exeext
14950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14951 (eval $ac_link) 2>&5
14953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14956 (eval $ac_try) 2>&5
14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 (exit $ac_status); }; }; then
14960 emacs_cv_struct_timezone
=yes
14962 echo "$as_me: program exited with status $ac_status" >&5
14963 echo "$as_me: failed program was:" >&5
14964 cat conftest.
$ac_ext >&5
14965 ( exit $ac_status )
14966 emacs_cv_struct_timezone
=no
14968 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14971 echo "$as_me: failed program was:" >&5
14972 cat conftest.
$ac_ext >&5
14973 emacs_cv_struct_timezone
=no
14975 rm -f conftest.
$ac_objext conftest.
$ac_ext
14977 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
14978 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
14982 echo "$as_me:$LINENO: checking for socket" >&5
14983 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14984 if test "${ac_cv_func_socket+set}" = set; then
14985 echo $ECHO_N "(cached) $ECHO_C" >&6
14987 cat >conftest.
$ac_ext <<_ACEOF
14988 #line $LINENO "configure"
14989 #include "confdefs.h"
14990 /* System header to define __stub macros and hopefully few prototypes,
14991 which can conflict with char socket (); below. */
14992 #include <assert.h>
14993 /* Override any gcc2 internal prototype to avoid an error. */
14997 /* We use char because int might match the return type of a gcc2
14998 builtin and then its argument prototype would still apply. */
15002 #ifdef F77_DUMMY_MAIN
15003 # ifdef __cplusplus
15006 int F77_DUMMY_MAIN() { return 1; }
15011 /* The GNU C library defines this for functions which it implements
15012 to always fail with ENOSYS. Some functions are actually named
15013 something starting with __ and the normal name is an alias. */
15014 #if defined (__stub_socket) || defined (__stub___socket)
15024 rm -f conftest.
$ac_objext conftest
$ac_exeext
15025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15026 (eval $ac_link) 2>&5
15028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029 (exit $ac_status); } &&
15030 { ac_try
='test -s conftest$ac_exeext'
15031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15032 (eval $ac_try) 2>&5
15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); }; }; then
15036 ac_cv_func_socket
=yes
15038 echo "$as_me: failed program was:" >&5
15039 cat conftest.
$ac_ext >&5
15040 ac_cv_func_socket
=no
15042 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15044 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15045 echo "${ECHO_T}$ac_cv_func_socket" >&6
15046 if test $ac_cv_func_socket = yes; then
15052 if test $ok_so_far = yes; then
15053 if test "${ac_cv_header_netinet_in_h+set}" = set; then
15054 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
15055 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
15056 if test "${ac_cv_header_netinet_in_h+set}" = set; then
15057 echo $ECHO_N "(cached) $ECHO_C" >&6
15059 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
15060 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
15062 # Is the header compilable?
15063 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
15064 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
15065 cat >conftest.
$ac_ext <<_ACEOF
15066 #line $LINENO "configure"
15067 #include "confdefs.h"
15068 $ac_includes_default
15069 #include <netinet/in.h>
15071 rm -f conftest.
$ac_objext
15072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15073 (eval $ac_compile) 2>&5
15075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076 (exit $ac_status); } &&
15077 { ac_try
='test -s conftest.$ac_objext'
15078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15079 (eval $ac_try) 2>&5
15081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082 (exit $ac_status); }; }; then
15083 ac_header_compiler
=yes
15085 echo "$as_me: failed program was:" >&5
15086 cat conftest.
$ac_ext >&5
15087 ac_header_compiler
=no
15089 rm -f conftest.
$ac_objext conftest.
$ac_ext
15090 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15091 echo "${ECHO_T}$ac_header_compiler" >&6
15093 # Is the header present?
15094 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
15095 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
15096 cat >conftest.
$ac_ext <<_ACEOF
15097 #line $LINENO "configure"
15098 #include "confdefs.h"
15099 #include <netinet/in.h>
15101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15102 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15104 egrep -v '^ *\+' conftest.er1
>conftest.err
15106 cat conftest.err
>&5
15107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 (exit $ac_status); } >/dev
/null
; then
15109 if test -s conftest.err
; then
15110 ac_cpp_err
=$ac_c_preproc_warn_flag
15117 if test -z "$ac_cpp_err"; then
15118 ac_header_preproc
=yes
15120 echo "$as_me: failed program was:" >&5
15121 cat conftest.
$ac_ext >&5
15122 ac_header_preproc
=no
15124 rm -f conftest.err conftest.
$ac_ext
15125 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15126 echo "${ECHO_T}$ac_header_preproc" >&6
15128 # So? What about this header?
15129 case $ac_header_compiler:$ac_header_preproc in
15131 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
15132 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15133 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
15134 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;};;
15136 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
15137 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
15138 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
15139 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
15140 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
15141 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;};;
15143 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
15144 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
15145 if test "${ac_cv_header_netinet_in_h+set}" = set; then
15146 echo $ECHO_N "(cached) $ECHO_C" >&6
15148 ac_cv_header_netinet_in_h
=$ac_header_preproc
15150 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
15151 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
15154 if test $ac_cv_header_netinet_in_h = yes; then
15162 if test $ok_so_far = yes; then
15163 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
15164 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
15165 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
15166 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
15167 echo $ECHO_N "(cached) $ECHO_C" >&6
15169 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
15170 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
15172 # Is the header compilable?
15173 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
15174 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
15175 cat >conftest.
$ac_ext <<_ACEOF
15176 #line $LINENO "configure"
15177 #include "confdefs.h"
15178 $ac_includes_default
15179 #include <arpa/inet.h>
15181 rm -f conftest.
$ac_objext
15182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15183 (eval $ac_compile) 2>&5
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); } &&
15187 { ac_try
='test -s conftest.$ac_objext'
15188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15189 (eval $ac_try) 2>&5
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); }; }; then
15193 ac_header_compiler
=yes
15195 echo "$as_me: failed program was:" >&5
15196 cat conftest.
$ac_ext >&5
15197 ac_header_compiler
=no
15199 rm -f conftest.
$ac_objext conftest.
$ac_ext
15200 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15201 echo "${ECHO_T}$ac_header_compiler" >&6
15203 # Is the header present?
15204 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
15205 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
15206 cat >conftest.
$ac_ext <<_ACEOF
15207 #line $LINENO "configure"
15208 #include "confdefs.h"
15209 #include <arpa/inet.h>
15211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15212 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15214 egrep -v '^ *\+' conftest.er1
>conftest.err
15216 cat conftest.err
>&5
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); } >/dev
/null
; then
15219 if test -s conftest.err
; then
15220 ac_cpp_err
=$ac_c_preproc_warn_flag
15227 if test -z "$ac_cpp_err"; then
15228 ac_header_preproc
=yes
15230 echo "$as_me: failed program was:" >&5
15231 cat conftest.
$ac_ext >&5
15232 ac_header_preproc
=no
15234 rm -f conftest.err conftest.
$ac_ext
15235 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15236 echo "${ECHO_T}$ac_header_preproc" >&6
15238 # So? What about this header?
15239 case $ac_header_compiler:$ac_header_preproc in
15241 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
15242 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15243 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
15244 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;};;
15246 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
15247 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
15248 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
15249 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
15250 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
15251 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;};;
15253 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
15254 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
15255 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
15256 echo $ECHO_N "(cached) $ECHO_C" >&6
15258 ac_cv_header_arpa_inet_h
=$ac_header_preproc
15260 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
15261 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
15264 if test $ac_cv_header_arpa_inet_h = yes; then
15272 if test $ok_so_far = yes; then
15274 cat >>confdefs.h
<<\_ACEOF
15275 #define HAVE_INET_SOCKETS 1
15280 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
15282 cat >>confdefs.h
<<\_ACEOF
15283 #define HAVE_AIX_SMT_EXP 1
15288 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
15289 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
15290 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
15291 echo "$as_me:$LINENO: result: yes" >&5
15292 echo "${ECHO_T}yes" >&6
15294 cat >>confdefs.h
<<\_ACEOF
15295 #define HAVE_DEV_PTMX 1
15299 echo "$as_me:$LINENO: result: no" >&5
15300 echo "${ECHO_T}no" >&6
15303 echo "$as_me:$LINENO: checking for pid_t" >&5
15304 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
15305 if test "${ac_cv_type_pid_t+set}" = set; then
15306 echo $ECHO_N "(cached) $ECHO_C" >&6
15308 cat >conftest.
$ac_ext <<_ACEOF
15309 #line $LINENO "configure"
15310 #include "confdefs.h"
15311 $ac_includes_default
15312 #ifdef F77_DUMMY_MAIN
15313 # ifdef __cplusplus
15316 int F77_DUMMY_MAIN() { return 1; }
15323 if (sizeof (pid_t))
15329 rm -f conftest.
$ac_objext
15330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15331 (eval $ac_compile) 2>&5
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); } &&
15335 { ac_try
='test -s conftest.$ac_objext'
15336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15337 (eval $ac_try) 2>&5
15339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340 (exit $ac_status); }; }; then
15341 ac_cv_type_pid_t
=yes
15343 echo "$as_me: failed program was:" >&5
15344 cat conftest.
$ac_ext >&5
15345 ac_cv_type_pid_t
=no
15347 rm -f conftest.
$ac_objext conftest.
$ac_ext
15349 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15350 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15351 if test $ac_cv_type_pid_t = yes; then
15355 cat >>confdefs.h
<<_ACEOF
15363 for ac_header
in unistd.h vfork.h
15365 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15367 echo "$as_me:$LINENO: checking for $ac_header" >&5
15368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15370 echo $ECHO_N "(cached) $ECHO_C" >&6
15372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15375 # Is the header compilable?
15376 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15378 cat >conftest.
$ac_ext <<_ACEOF
15379 #line $LINENO "configure"
15380 #include "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>&5
15388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389 (exit $ac_status); } &&
15390 { ac_try
='test -s conftest.$ac_objext'
15391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15392 (eval $ac_try) 2>&5
15394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395 (exit $ac_status); }; }; then
15396 ac_header_compiler
=yes
15398 echo "$as_me: failed program was:" >&5
15399 cat conftest.
$ac_ext >&5
15400 ac_header_compiler
=no
15402 rm -f conftest.
$ac_objext conftest.
$ac_ext
15403 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15404 echo "${ECHO_T}$ac_header_compiler" >&6
15406 # Is the header present?
15407 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15408 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15409 cat >conftest.
$ac_ext <<_ACEOF
15410 #line $LINENO "configure"
15411 #include "confdefs.h"
15412 #include <$ac_header>
15414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15415 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15417 egrep -v '^ *\+' conftest.er1
>conftest.err
15419 cat conftest.err
>&5
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); } >/dev
/null
; then
15422 if test -s conftest.err
; then
15423 ac_cpp_err
=$ac_c_preproc_warn_flag
15430 if test -z "$ac_cpp_err"; then
15431 ac_header_preproc
=yes
15433 echo "$as_me: failed program was:" >&5
15434 cat conftest.
$ac_ext >&5
15435 ac_header_preproc
=no
15437 rm -f conftest.err conftest.
$ac_ext
15438 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15439 echo "${ECHO_T}$ac_header_preproc" >&6
15441 # So? What about this header?
15442 case $ac_header_compiler:$ac_header_preproc in
15444 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15445 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15449 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15450 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15451 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15452 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15454 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15456 echo "$as_me:$LINENO: checking for $ac_header" >&5
15457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15459 echo $ECHO_N "(cached) $ECHO_C" >&6
15461 eval "$as_ac_Header=$ac_header_preproc"
15463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15464 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15468 cat >>confdefs.h
<<_ACEOF
15469 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15478 for ac_func
in fork vfork
15480 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15481 echo "$as_me:$LINENO: checking for $ac_func" >&5
15482 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15483 if eval "test \"\${$as_ac_var+set}\" = set"; then
15484 echo $ECHO_N "(cached) $ECHO_C" >&6
15486 cat >conftest.
$ac_ext <<_ACEOF
15487 #line $LINENO "configure"
15488 #include "confdefs.h"
15489 /* System header to define __stub macros and hopefully few prototypes,
15490 which can conflict with char $ac_func (); below. */
15491 #include <assert.h>
15492 /* Override any gcc2 internal prototype to avoid an error. */
15496 /* We use char because int might match the return type of a gcc2
15497 builtin and then its argument prototype would still apply. */
15501 #ifdef F77_DUMMY_MAIN
15502 # ifdef __cplusplus
15505 int F77_DUMMY_MAIN() { return 1; }
15510 /* The GNU C library defines this for functions which it implements
15511 to always fail with ENOSYS. Some functions are actually named
15512 something starting with __ and the normal name is an alias. */
15513 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15523 rm -f conftest.
$ac_objext conftest
$ac_exeext
15524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15525 (eval $ac_link) 2>&5
15527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528 (exit $ac_status); } &&
15529 { ac_try
='test -s conftest$ac_exeext'
15530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15531 (eval $ac_try) 2>&5
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); }; }; then
15535 eval "$as_ac_var=yes"
15537 echo "$as_me: failed program was:" >&5
15538 cat conftest.
$ac_ext >&5
15539 eval "$as_ac_var=no"
15541 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15544 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15545 if test `eval echo '${'$as_ac_var'}'` = yes; then
15546 cat >>confdefs.h
<<_ACEOF
15547 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15553 ac_cv_func_fork_works
=$ac_cv_func_fork
15554 if test "x$ac_cv_func_fork" = xyes
; then
15555 echo "$as_me:$LINENO: checking for working fork" >&5
15556 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
15557 if test "${ac_cv_func_fork_works+set}" = set; then
15558 echo $ECHO_N "(cached) $ECHO_C" >&6
15560 if test "$cross_compiling" = yes; then
15561 ac_cv_func_fork_works
=cross
15563 cat >conftest.
$ac_ext <<_ACEOF
15564 /* By Ruediger Kuhlmann. */
15565 #include <sys/types.h>
15567 # include <unistd.h>
15569 /* Some systems only have a dummy stub for fork() */
15577 rm -f conftest
$ac_exeext
15578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15579 (eval $ac_link) 2>&5
15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15584 (eval $ac_try) 2>&5
15586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587 (exit $ac_status); }; }; then
15588 ac_cv_func_fork_works
=yes
15590 echo "$as_me: program exited with status $ac_status" >&5
15591 echo "$as_me: failed program was:" >&5
15592 cat conftest.
$ac_ext >&5
15593 ( exit $ac_status )
15594 ac_cv_func_fork_works
=no
15596 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15599 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
15600 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
15603 if test "x$ac_cv_func_fork_works" = xcross
; then
15605 *-*-amigaos* |
*-*-msdosdjgpp*)
15606 # Override, as these systems have only a dummy fork() stub
15607 ac_cv_func_fork_works
=no
15610 ac_cv_func_fork_works
=yes
15613 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15614 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15616 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15617 if test "x$ac_cv_func_vfork" = xyes
; then
15618 echo "$as_me:$LINENO: checking for working vfork" >&5
15619 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
15620 if test "${ac_cv_func_vfork_works+set}" = set; then
15621 echo $ECHO_N "(cached) $ECHO_C" >&6
15623 if test "$cross_compiling" = yes; then
15624 ac_cv_func_vfork_works
=cross
15626 cat >conftest.
$ac_ext <<_ACEOF
15627 #line $LINENO "configure"
15628 #include "confdefs.h"
15629 /* Thanks to Paul Eggert for this test. */
15631 #include <sys/types.h>
15632 #include <sys/stat.h>
15634 # include <unistd.h>
15637 # include <vfork.h>
15639 /* On some sparc systems, changes by the child to local and incoming
15640 argument registers are propagated back to the parent. The compiler
15641 is told about this with #include <vfork.h>, but some compilers
15642 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15643 static variable whose address is put into a register that is
15644 clobbered by the vfork. */
15647 sparc_address_test (int arg)
15649 sparc_address_test (arg) int arg;
15652 static pid_t child;
15670 pid_t parent = getpid ();
15673 sparc_address_test ();
15678 /* Here is another test for sparc vfork register problems. This
15679 test uses lots of local variables, at least as many local
15680 variables as main has allocated so far including compiler
15681 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15682 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15683 reuse the register of parent for one of the local variables,
15684 since it will think that parent can't possibly be used any more
15685 in this routine. Assigning to the local variable will thus
15686 munge parent in the parent process. */
15688 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15689 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15690 /* Convince the compiler that p..p7 are live; otherwise, it might
15691 use the same hardware register for all 8 local variables. */
15692 if (p != p1 || p != p2 || p != p3 || p != p4
15693 || p != p5 || p != p6 || p != p7)
15696 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15697 from child file descriptors. If the child closes a descriptor
15698 before it execs or exits, this munges the parent's descriptor
15699 as well. Test for this by closing stdout in the child. */
15700 _exit(close(fileno(stdout)) != 0);
15705 while (wait(&status) != child)
15708 /* Was there some problem with vforking? */
15711 /* Did the child fail? (This shouldn't happen.) */
15714 /* Did the vfork/compiler bug occur? */
15715 || parent != getpid()
15717 /* Did the file descriptor bug occur? */
15718 || fstat(fileno(stdout), &st) != 0
15723 rm -f conftest
$ac_exeext
15724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15725 (eval $ac_link) 2>&5
15727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15730 (eval $ac_try) 2>&5
15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 (exit $ac_status); }; }; then
15734 ac_cv_func_vfork_works
=yes
15736 echo "$as_me: program exited with status $ac_status" >&5
15737 echo "$as_me: failed program was:" >&5
15738 cat conftest.
$ac_ext >&5
15739 ( exit $ac_status )
15740 ac_cv_func_vfork_works
=no
15742 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15745 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
15746 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
15749 if test "x$ac_cv_func_fork_works" = xcross
; then
15750 ac_cv_func_vfork_works
=ac_cv_func_vfork
15751 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15752 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15755 if test "x$ac_cv_func_vfork_works" = xyes
; then
15757 cat >>confdefs.h
<<\_ACEOF
15758 #define HAVE_WORKING_VFORK 1
15763 cat >>confdefs.h
<<\_ACEOF
15768 if test "x$ac_cv_func_fork_works" = xyes
; then
15770 cat >>confdefs.h
<<\_ACEOF
15771 #define HAVE_WORKING_FORK 1
15777 # Fixme: This should be replaced when we have autoconf 2.14.
15778 echo "$as_me:$LINENO: checking for size_t" >&5
15779 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
15780 if test "${ac_cv_type_size_t+set}" = set; then
15781 echo $ECHO_N "(cached) $ECHO_C" >&6
15783 cat >conftest.
$ac_ext <<_ACEOF
15784 #line $LINENO "configure"
15785 #include "confdefs.h"
15786 $ac_includes_default
15787 #ifdef F77_DUMMY_MAIN
15788 # ifdef __cplusplus
15791 int F77_DUMMY_MAIN() { return 1; }
15798 if (sizeof (size_t))
15804 rm -f conftest.
$ac_objext
15805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15806 (eval $ac_compile) 2>&5
15808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809 (exit $ac_status); } &&
15810 { ac_try
='test -s conftest.$ac_objext'
15811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15812 (eval $ac_try) 2>&5
15814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815 (exit $ac_status); }; }; then
15816 ac_cv_type_size_t
=yes
15818 echo "$as_me: failed program was:" >&5
15819 cat conftest.
$ac_ext >&5
15820 ac_cv_type_size_t
=no
15822 rm -f conftest.
$ac_objext conftest.
$ac_ext
15824 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15825 echo "${ECHO_T}$ac_cv_type_size_t" >&6
15826 if test $ac_cv_type_size_t = yes; then
15830 cat >>confdefs.h
<<_ACEOF
15831 #define size_t unsigned
15837 # Set up the CFLAGS for real compilation, so we can substitute it.
15838 CFLAGS
="$REAL_CFLAGS"
15839 CPPFLAGS
="$REAL_CPPFLAGS"
15841 #### Find out which version of Emacs this is.
15842 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
15843 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
15844 if test x
"${version}" = x
; then
15845 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
15846 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
15847 { (exit 1); exit 1; }; }
15850 ### Specify what sort of things we'll be editing into Makefile and config.h.
15851 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15886 cat >>confdefs.h
<<_ACEOF
15887 #define EMACS_CONFIGURATION "${canonical}"
15891 cat >>confdefs.h
<<_ACEOF
15892 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15896 cat >>confdefs.h
<<_ACEOF
15897 #define config_machfile "${machfile}"
15901 cat >>confdefs.h
<<_ACEOF
15902 #define config_opsysfile "${opsysfile}"
15906 cat >>confdefs.h
<<_ACEOF
15907 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
15911 cat >>confdefs.h
<<_ACEOF
15912 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
15916 cat >>confdefs.h
<<_ACEOF
15917 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
15921 cat >>confdefs.h
<<_ACEOF
15922 #define UNEXEC_SRC ${UNEXEC_SRC}
15926 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15928 cat >>confdefs.h
<<\_ACEOF
15929 #define HAVE_X_WINDOWS 1
15933 if test "${USE_X_TOOLKIT}" != "none" ; then
15935 cat >>confdefs.h
<<\_ACEOF
15936 #define USE_X_TOOLKIT 1
15940 if test "${HAVE_X11}" = "yes" ; then
15942 cat >>confdefs.h
<<\_ACEOF
15947 if test "${HAVE_XFREE386}" = "yes" ; then
15949 cat >>confdefs.h
<<\_ACEOF
15950 #define HAVE_XFREE386 1
15954 if test "${HAVE_MENUS}" = "yes" ; then
15956 cat >>confdefs.h
<<\_ACEOF
15957 #define HAVE_MENUS 1
15961 if test "${GNU_MALLOC}" = "yes" ; then
15963 cat >>confdefs.h
<<\_ACEOF
15964 #define GNU_MALLOC 1
15968 if test "${REL_ALLOC}" = "yes" ; then
15970 cat >>confdefs.h
<<\_ACEOF
15971 #define REL_ALLOC 1
15977 for ac_header
in nlist.h
15979 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15981 echo "$as_me:$LINENO: checking for $ac_header" >&5
15982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15984 echo $ECHO_N "(cached) $ECHO_C" >&6
15986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15987 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15989 # Is the header compilable?
15990 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15991 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15992 cat >conftest.
$ac_ext <<_ACEOF
15993 #line $LINENO "configure"
15994 #include "confdefs.h"
15995 $ac_includes_default
15996 #include <$ac_header>
15998 rm -f conftest.
$ac_objext
15999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16000 (eval $ac_compile) 2>&5
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); } &&
16004 { ac_try
='test -s conftest.$ac_objext'
16005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16006 (eval $ac_try) 2>&5
16008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); }; }; then
16010 ac_header_compiler
=yes
16012 echo "$as_me: failed program was:" >&5
16013 cat conftest.
$ac_ext >&5
16014 ac_header_compiler
=no
16016 rm -f conftest.
$ac_objext conftest.
$ac_ext
16017 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16018 echo "${ECHO_T}$ac_header_compiler" >&6
16020 # Is the header present?
16021 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16022 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16023 cat >conftest.
$ac_ext <<_ACEOF
16024 #line $LINENO "configure"
16025 #include "confdefs.h"
16026 #include <$ac_header>
16028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16029 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16031 egrep -v '^ *\+' conftest.er1
>conftest.err
16033 cat conftest.err
>&5
16034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035 (exit $ac_status); } >/dev
/null
; then
16036 if test -s conftest.err
; then
16037 ac_cpp_err
=$ac_c_preproc_warn_flag
16044 if test -z "$ac_cpp_err"; then
16045 ac_header_preproc
=yes
16047 echo "$as_me: failed program was:" >&5
16048 cat conftest.
$ac_ext >&5
16049 ac_header_preproc
=no
16051 rm -f conftest.err conftest.
$ac_ext
16052 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16053 echo "${ECHO_T}$ac_header_preproc" >&6
16055 # So? What about this header?
16056 case $ac_header_compiler:$ac_header_preproc in
16058 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16059 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16060 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16061 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
16063 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16065 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16066 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
16070 echo "$as_me:$LINENO: checking for $ac_header" >&5
16071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16073 echo $ECHO_N "(cached) $ECHO_C" >&6
16075 eval "$as_ac_Header=$ac_header_preproc"
16077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16082 cat >>confdefs.h
<<_ACEOF
16083 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16086 cat >>confdefs.h
<<\_ACEOF
16087 #define NLIST_STRUCT 1
16099 #### Report on what we decided to do.
16101 Configured for \`${canonical}'.
16103 Where should the build process find the source code? ${srcdir}
16104 What operating system and machine description files should Emacs use?
16105 \`${opsysfile}' and \`${machfile}'
16106 What compiler should emacs be built with? ${CC} ${CFLAGS}
16107 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
16108 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
16109 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
16110 What window system should Emacs use? ${window_system}
16111 What toolkit should Emacs use? ${USE_X_TOOLKIT}
16112 Should Emacs use a shared game state directory? ${gamedir}"
16114 if test -n "${x_includes}"; then
16115 echo " Where do we find X Windows header files? ${x_includes}"
16117 echo " Where do we find X Windows header files? Standard dirs"
16119 if test -n "${x_libraries}"; then
16120 echo " Where do we find X Windows libraries? ${x_libraries}"
16122 echo " Where do we find X Windows libraries? Standard dirs"
16125 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
16126 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
16127 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
16128 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
16129 echo " Does Emacs use -lungif? ${HAVE_GIF}"
16130 echo " Does Emacs use -lpng? ${HAVE_PNG}"
16131 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
16134 # Remove any trailing slashes in these variables.
16135 test "${prefix}" != NONE
&&
16136 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
16137 test "${exec_prefix}" != NONE
&&
16138 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
16140 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
16141 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
16142 ## from Makefile.c can correctly provide the arg `-traditional' to the
16145 cat >conftest.
$ac_ext <<_ACEOF
16146 #line $LINENO "configure"
16147 #include "confdefs.h"
16150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16151 egrep "yes..yes" >/dev
/null
2>&1; then
16152 CPP_NEED_TRADITIONAL
=no
16154 CPP_NEED_TRADITIONAL
=yes
16159 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"
16160 ac_config_commands
="$ac_config_commands default"
16161 cat >confcache
<<\_ACEOF
16162 # This file is a shell script that caches the results of configure
16163 # tests run on this system so they can be shared between configure
16164 # scripts and configure runs, see configure's option --config-cache.
16165 # It is not useful on other systems. If it contains results you don't
16166 # want to keep, you may remove or edit it.
16168 # config.status only pays attention to the cache file if you give it
16169 # the --recheck option to rerun configure.
16171 # `ac_cv_env_foo' variables (set or unset) will be overriden when
16172 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16173 # following values.
16177 # The following way of writing the cache mishandles newlines in values,
16178 # but we know of no workaround that is simple, portable, and efficient.
16179 # So, don't put newlines in cache variables' values.
16180 # Ultrix sh set writes to stderr and can't be redirected directly,
16181 # and sets the high bit in the cache file unless we assign to the vars.
16184 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16186 # `set' does not quote correctly, so add quotes (double-quote
16187 # substitution turns \\\\ into \\, and sed turns \\ into \).
16190 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16193 # `set' quotes correctly as required by POSIX, so do not add quotes.
16195 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16202 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16204 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16206 if cmp -s $cache_file confcache
; then :; else
16207 if test -w $cache_file; then
16208 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16209 cat confcache
>$cache_file
16211 echo "not updating unwritable cache $cache_file"
16216 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16217 # Let make expand exec_prefix.
16218 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16220 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16221 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16222 # trailing colons and then remove the whole line if VPATH becomes empty
16223 # (actually we leave an empty line to preserve line numbers).
16224 if test "x$srcdir" = x.
; then
16225 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
16226 s/:*\$(srcdir):*/:/;
16227 s/:*\${srcdir}:*/:/;
16229 s/^\([^=]*=[ ]*\):*/\1/;
16235 DEFS
=-DHAVE_CONFIG_H
16238 : ${CONFIG_STATUS=./config.status}
16239 ac_clean_files_save
=$ac_clean_files
16240 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16241 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16242 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16243 cat >$CONFIG_STATUS <<_ACEOF
16245 # Generated by $as_me.
16246 # Run this file to recreate the current configuration.
16247 # Compiler output produced by configure, useful for debugging
16248 # configure, is in config.log if it exists.
16251 SHELL=\${CONFIG_SHELL-$SHELL}
16254 cat >>$CONFIG_STATUS <<\_ACEOF
16255 ## --------------------- ##
16256 ## M4sh Initialization. ##
16257 ## --------------------- ##
16259 # Be Bourne compatible
16260 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16263 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16264 # is contrary to our usage. Disable this feature.
16265 alias -g '${1+"$@"}'='"$@"'
16266 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
16271 # Support unset when possible.
16272 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
16278 (set +x
; test -n "`(LANG=C; export LANG) 2>&1`") &&
16279 { $as_unset LANG ||
test "${LANG+set}" != set; } ||
16280 { LANG
=C
; export LANG
; }
16281 (set +x
; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
16282 { $as_unset LC_ALL ||
test "${LC_ALL+set}" != set; } ||
16283 { LC_ALL
=C
; export LC_ALL
; }
16284 (set +x
; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
16285 { $as_unset LC_TIME ||
test "${LC_TIME+set}" != set; } ||
16286 { LC_TIME
=C
; export LC_TIME
; }
16287 (set +x
; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
16288 { $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set; } ||
16289 { LC_CTYPE
=C
; export LC_CTYPE
; }
16290 (set +x
; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
16291 { $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set; } ||
16292 { LANGUAGE
=C
; export LANGUAGE
; }
16293 (set +x
; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
16294 { $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set; } ||
16295 { LC_COLLATE
=C
; export LC_COLLATE
; }
16296 (set +x
; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
16297 { $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set; } ||
16298 { LC_NUMERIC
=C
; export LC_NUMERIC
; }
16299 (set +x
; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
16300 { $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set; } ||
16301 { LC_MESSAGES
=C
; export LC_MESSAGES
; }
16304 # Required to use basename.
16305 if expr a
: '\(a\)' >/dev
/null
2>&1; then
16311 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
16312 as_basename
=basename
16318 # Name of the executable.
16319 as_me
=`$as_basename "$0" ||
16320 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16321 X"$0" : 'X\(//\)$' \| \
16322 X"$0" : 'X\(/\)$' \| \
16323 . : '\(.\)' 2>/dev/null ||
16325 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16326 /^X\/\(\/\/\)$/{ s//\1/; q; }
16327 /^X\/\(\/\).*/{ s//\1/; q; }
16331 # PATH needs CR, and LINENO needs CR and PATH.
16332 # Avoid depending upon Character Ranges.
16333 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16334 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16335 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16336 as_cr_digits
='0123456789'
16337 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16339 # The user is always right.
16340 if test "${PATH_SEPARATOR+set}" != set; then
16341 echo "#! /bin/sh" >conftest.sh
16342 echo "exit 0" >>conftest.sh
16343 chmod +x conftest.sh
16344 if (PATH
=".;."; conftest.sh
) >/dev
/null
2>&1; then
16353 as_lineno_1
=$LINENO
16354 as_lineno_2
=$LINENO
16355 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
16356 test "x$as_lineno_1" != "x$as_lineno_2" &&
16357 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
16358 # Find who we are. Look in the path if we contain no path at all
16361 *[\\/]* ) as_myself
=$0 ;;
16362 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16363 for as_dir
in $PATH
16366 test -z "$as_dir" && as_dir
=.
16367 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
16372 # We did not find ourselves, most probably we were run as `sh COMMAND'
16373 # in which case we are not to be found in the path.
16374 if test "x$as_myself" = x
; then
16377 if test ! -f "$as_myself"; then
16378 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16379 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16380 { (exit 1); exit 1; }; }
16382 case $CONFIG_SHELL in
16384 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16385 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
16388 test -z "$as_dir" && as_dir
=.
16389 for as_base
in sh bash ksh sh5
; do
16392 if ("$as_dir/$as_base" -c '
16393 as_lineno_1=$LINENO
16394 as_lineno_2=$LINENO
16395 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16396 test "x$as_lineno_1" != "x$as_lineno_2" &&
16397 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
16398 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
16399 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
16400 CONFIG_SHELL
=$as_dir/$as_base
16401 export CONFIG_SHELL
16402 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16410 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16411 # uniformly replaced by the line number. The first 'sed' inserts a
16412 # line-number line before each line; the second 'sed' does the real
16413 # work. The second script uses 'N' to pair each line-number line
16414 # with the numbered line, and appends trailing '-' during
16415 # substitution so that $LINENO is not a special case at line end.
16416 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16417 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16418 sed '=' <$as_myself |
16423 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16426 s,^['$as_cr_digits']*\n,,
16427 ' >$as_me.lineno
&&
16428 chmod +x
$as_me.lineno ||
16429 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16430 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16431 { (exit 1); exit 1; }; }
16433 # Don't try to exec as it changes $[0], causing all sort of problems
16434 # (the dirname of $[0] is not the place where we might find the
16435 # original and so on. Autoconf is especially sensible to this).
16437 # Exit status is that of the last command.
16442 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16443 *c
*,-n*) ECHO_N
= ECHO_C
='
16445 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
16446 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
16449 if expr a
: '\(a\)' >/dev
/null
2>&1; then
16455 rm -f conf$$ conf$$.exe conf$$.
file
16457 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16458 # We could just check for DJGPP; but this test a) works b) is more generic
16459 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16460 if test -f conf$$.exe
; then
16461 # Don't use ln at all; we don't have any links
16466 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16471 rm -f conf$$ conf$$.exe conf$$.
file
16473 if mkdir
-p .
2>/dev
/null
; then
16479 as_executable_p
="test -f"
16481 # Sed expression to map a string onto a valid CPP name.
16482 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16484 # Sed expression to map a string onto a valid variable name.
16485 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16489 # We need space, tab and new line, in precisely that order.
16495 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=$PATH_SEPARATOR; export CDPATH
; }
16499 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16500 # report actual input values of CONFIG_FILES etc. instead of their
16501 # values after options handling. Logging --version etc. is OK.
16505 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16506 ## Running $as_me. ##
16511 This file was extended by $as_me, which was
16512 generated by GNU Autoconf 2.53a. Invocation command line was
16514 CONFIG_FILES = $CONFIG_FILES
16515 CONFIG_HEADERS = $CONFIG_HEADERS
16516 CONFIG_LINKS = $CONFIG_LINKS
16517 CONFIG_COMMANDS = $CONFIG_COMMANDS
16521 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16525 # Files that config.status was made for.
16526 if test -n "$ac_config_files"; then
16527 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16530 if test -n "$ac_config_headers"; then
16531 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16534 if test -n "$ac_config_links"; then
16535 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16538 if test -n "$ac_config_commands"; then
16539 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16542 cat >>$CONFIG_STATUS <<\_ACEOF
16545 \`$as_me' instantiates files from templates according to the
16546 current configuration.
16548 Usage: $0 [OPTIONS] [FILE]...
16550 -h, --help print this help, then exit
16551 -V, --version print version number, then exit
16552 -d, --debug don't remove temporary files
16553 --recheck update $as_me by reconfiguring in the same conditions
16554 --file=FILE[:TEMPLATE]
16555 instantiate the configuration file FILE
16556 --header=FILE[:TEMPLATE]
16557 instantiate the configuration header FILE
16559 Configuration files:
16562 Configuration headers:
16565 Configuration commands:
16568 Report bugs to <bug-autoconf@gnu.org>."
16571 cat >>$CONFIG_STATUS <<_ACEOF
16574 configured by $0, generated by GNU Autoconf 2.53a,
16575 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16577 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16578 Free Software Foundation, Inc.
16579 This config.status script is free software; the Free Software Foundation
16580 gives unlimited permission to copy, distribute and modify it."
16585 cat >>$CONFIG_STATUS <<\_ACEOF
16586 # If no file are specified by the user, then we need to provide default
16587 # value. By we need to know if files were specified by the user.
16593 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
16594 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
16596 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
16600 *) # This is not an option, so the user has probably given explicit
16602 ac_need_defaults
=false
;;
16606 # Handling of the options.
16608 cat >>$CONFIG_STATUS <<_ACEOF
16609 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16610 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
16611 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
16613 cat >>$CONFIG_STATUS <<\_ACEOF
16614 --version |
--vers* |
-V )
16615 echo "$ac_cs_version"; exit 0 ;;
16617 # Conflict between --help and --header
16618 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16619 Try \`$0 --help' for more information." >&5
16620 echo "$as_me: error: ambiguous option: $1
16621 Try \`$0 --help' for more information." >&2;}
16622 { (exit 1); exit 1; }; };;
16623 --help |
--hel |
-h )
16624 echo "$ac_cs_usage"; exit 0 ;;
16625 --debug |
--d* |
-d )
16627 --file |
--fil |
--fi |
--f )
16629 CONFIG_FILES
="$CONFIG_FILES $1"
16630 ac_need_defaults
=false
;;
16631 --header |
--heade |
--head |
--hea )
16633 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
16634 ac_need_defaults
=false
;;
16636 # This is an error.
16637 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16638 Try \`$0 --help' for more information." >&5
16639 echo "$as_me: error: unrecognized option: $1
16640 Try \`$0 --help' for more information." >&2;}
16641 { (exit 1); exit 1; }; } ;;
16643 *) ac_config_targets
="$ac_config_targets $1" ;;
16651 cat >>$CONFIG_STATUS <<_ACEOF
16653 # INIT-COMMANDS section.
16656 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
16662 cat >>$CONFIG_STATUS <<\_ACEOF
16663 for ac_config_target
in $ac_config_targets
16665 case "$ac_config_target" in
16666 # Handling of arguments.
16667 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16668 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
16669 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
16670 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
16671 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
16672 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
16673 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
16674 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
16675 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
16676 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
16677 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
16678 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
16679 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16680 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16681 { (exit 1); exit 1; }; };;
16685 # If the user did not use the arguments to specify the items to instantiate,
16686 # then the envvar interface is used. Set only those that are not.
16687 # We use the long form for the default assignment because of an extremely
16688 # bizarre bug on SunOS 4.1.3.
16689 if $ac_need_defaults; then
16690 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16691 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16692 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16695 # Create a temporary directory, and hook for its removal unless debugging.
16698 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16699 trap '{ (exit 1); exit 1; }' 1 2 13 15
16702 # Create a (secure) tmp directory for tmp files.
16705 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
16706 test -n "$tmp" && test -d "$tmp"
16709 tmp
=$TMPDIR/cs$$
-$RANDOM
16710 (umask 077 && mkdir
$tmp)
16713 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
16714 { (exit 1); exit 1; }
16719 cat >>$CONFIG_STATUS <<_ACEOF
16722 # CONFIG_FILES section.
16725 # No need to generate the scripts if there are no CONFIG_FILES.
16726 # This happens for instance when ./config.status config.h
16727 if test -n "\$CONFIG_FILES"; then
16728 # Protect against being on the right side of a sed subst in config.status.
16729 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16730 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16731 s,@SHELL@,$SHELL,;t t
16732 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16733 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16734 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16735 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16736 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16737 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16738 s,@exec_prefix@,$exec_prefix,;t t
16739 s,@prefix@,$prefix,;t t
16740 s,@program_transform_name@,$program_transform_name,;t t
16741 s,@bindir@,$bindir,;t t
16742 s,@sbindir@,$sbindir,;t t
16743 s,@libexecdir@,$libexecdir,;t t
16744 s,@datadir@,$datadir,;t t
16745 s,@sysconfdir@,$sysconfdir,;t t
16746 s,@sharedstatedir@,$sharedstatedir,;t t
16747 s,@localstatedir@,$localstatedir,;t t
16748 s,@libdir@,$libdir,;t t
16749 s,@includedir@,$includedir,;t t
16750 s,@oldincludedir@,$oldincludedir,;t t
16751 s,@infodir@,$infodir,;t t
16752 s,@mandir@,$mandir,;t t
16753 s,@build_alias@,$build_alias,;t t
16754 s,@host_alias@,$host_alias,;t t
16755 s,@target_alias@,$target_alias,;t t
16756 s,@DEFS@,$DEFS,;t t
16757 s,@ECHO_C@,$ECHO_C,;t t
16758 s,@ECHO_N@,$ECHO_N,;t t
16759 s,@ECHO_T@,$ECHO_T,;t t
16760 s,@LIBS@,$LIBS,;t t
16761 s,@build@,$build,;t t
16762 s,@build_cpu@,$build_cpu,;t t
16763 s,@build_vendor@,$build_vendor,;t t
16764 s,@build_os@,$build_os,;t t
16765 s,@host@,$host,;t t
16766 s,@host_cpu@,$host_cpu,;t t
16767 s,@host_vendor@,$host_vendor,;t t
16768 s,@host_os@,$host_os,;t t
16770 s,@CFLAGS@,$CFLAGS,;t t
16771 s,@LDFLAGS@,$LDFLAGS,;t t
16772 s,@CPPFLAGS@,$CPPFLAGS,;t t
16773 s,@ac_ct_CC@,$ac_ct_CC,;t t
16774 s,@EXEEXT@,$EXEEXT,;t t
16775 s,@OBJEXT@,$OBJEXT,;t t
16776 s,@LN_S@,$LN_S,;t t
16778 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16779 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16780 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16781 s,@YACC@,$YACC,;t t
16782 s,@RANLIB@,$RANLIB,;t t
16783 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16784 s,@LIBSOUND@,$LIBSOUND,;t t
16785 s,@SET_MAKE@,$SET_MAKE,;t t
16786 s,@ALLOCA@,$ALLOCA,;t t
16787 s,@liblockfile@,$liblockfile,;t t
16788 s,@LIBOBJS@,$LIBOBJS,;t t
16789 s,@NEED_SETGID@,$NEED_SETGID,;t t
16790 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
16791 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
16792 s,@version@,$version,;t t
16793 s,@configuration@,$configuration,;t t
16794 s,@canonical@,$canonical,;t t
16795 s,@srcdir@,$srcdir,;t t
16796 s,@lispdir@,$lispdir,;t t
16797 s,@locallisppath@,$locallisppath,;t t
16798 s,@lisppath@,$lisppath,;t t
16799 s,@x_default_search_path@,$x_default_search_path,;t t
16800 s,@etcdir@,$etcdir,;t t
16801 s,@archlibdir@,$archlibdir,;t t
16802 s,@docdir@,$docdir,;t t
16803 s,@bitmapdir@,$bitmapdir,;t t
16804 s,@gamedir@,$gamedir,;t t
16805 s,@gameuser@,$gameuser,;t t
16806 s,@c_switch_system@,$c_switch_system,;t t
16807 s,@c_switch_machine@,$c_switch_machine,;t t
16808 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
16809 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
16810 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
16811 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
16812 s,@machfile@,$machfile,;t t
16813 s,@opsysfile@,$opsysfile,;t t
16818 cat >>$CONFIG_STATUS <<\_ACEOF
16819 # Split the substitutions into bite-sized pieces for seds with
16820 # small command number limits, like on Digital OSF/1 and HP-UX.
16821 ac_max_sed_lines
=48
16822 ac_sed_frag
=1 # Number of current file.
16823 ac_beg
=1 # First line for current file.
16824 ac_end
=$ac_max_sed_lines # Line after last line for current file.
16827 while $ac_more_lines; do
16828 if test $ac_beg -gt 1; then
16829 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
16831 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
16833 if test ! -s $tmp/subs.frag
; then
16834 ac_more_lines
=false
16836 # The purpose of the label and of the branching condition is to
16837 # speed up the sed processing (if there are no `@' at all, there
16838 # is no need to browse any of the substitutions).
16839 # These are the two extra sed commands mentioned above.
16841 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
16842 if test -z "$ac_sed_cmds"; then
16843 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
16845 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16847 ac_sed_frag
=`expr $ac_sed_frag + 1`
16849 ac_end
=`expr $ac_end + $ac_max_sed_lines`
16852 if test -z "$ac_sed_cmds"; then
16855 fi # test -n "$CONFIG_FILES"
16858 cat >>$CONFIG_STATUS <<\_ACEOF
16859 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
16860 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16862 - |
*:- |
*:-:* ) # input from stdin
16864 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16865 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16866 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16867 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16868 * ) ac_file_in
=$ac_file.
in ;;
16871 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16872 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
16873 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16874 X"$ac_file" : 'X\(//\)[^/]' \| \
16875 X"$ac_file" : 'X\(//\)$' \| \
16876 X"$ac_file" : 'X\(/\)' \| \
16877 . : '\(.\)' 2>/dev/null ||
16879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16880 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16881 /^X\(\/\/\)$/{ s//\1/; q; }
16882 /^X\(\/\).*/{ s//\1/; q; }
16884 { if $as_mkdir_p; then
16889 while test ! -d "$as_dir"; do
16890 as_dirs
="$as_dir $as_dirs"
16891 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16892 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16893 X"$as_dir" : 'X\(//\)[^/]' \| \
16894 X"$as_dir" : 'X\(//\)$' \| \
16895 X"$as_dir" : 'X\(/\)' \| \
16896 . : '\(.\)' 2>/dev/null ||
16898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16899 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16900 /^X\(\/\/\)$/{ s//\1/; q; }
16901 /^X\(\/\).*/{ s//\1/; q; }
16904 test ! -n "$as_dirs" || mkdir
$as_dirs
16905 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16906 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16907 { (exit 1); exit 1; }; }; }
16911 if test "$ac_dir" != .
; then
16912 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16913 # A "../" for each directory in $ac_dir_suffix.
16914 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16916 ac_dir_suffix
= ac_top_builddir
=
16920 .
) # No --srcdir option. We are building in place.
16922 if test -z "$ac_top_builddir"; then
16925 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
16927 [\\/]* | ?
:[\\/]* ) # Absolute path.
16928 ac_srcdir
=$srcdir$ac_dir_suffix;
16929 ac_top_srcdir
=$srcdir ;;
16930 *) # Relative path.
16931 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
16932 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
16934 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16936 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
16937 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
16938 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16939 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16943 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
16944 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
16947 if test x
"$ac_file" != x-
; then
16948 { echo "$as_me:$LINENO: creating $ac_file" >&5
16949 echo "$as_me: creating $ac_file" >&6;}
16952 # Let's still pretend it is `configure' which instantiates (i.e., don't
16953 # use $as_me), people would be surprised to read:
16954 # /* config.h. Generated by config.status. */
16955 if test x
"$ac_file" = x-
; then
16958 configure_input
="$ac_file. "
16960 configure_input
=$configure_input"Generated from `echo $ac_file_in |
16961 sed 's,.*/,,'` by configure."
16963 # First look for the input files in the build tree, otherwise in the
16965 ac_file_inputs
=`IFS=:
16966 for f in $ac_file_in; do
16968 -) echo $tmp/stdin ;;
16970 # Absolute (can't be DOS-style, as IFS=:)
16971 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16972 echo "$as_me: error: cannot find input file: $f" >&2;}
16973 { (exit 1); exit 1; }; }
16976 if test -f "$f"; then
16979 elif test -f "$srcdir/$f"; then
16984 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16985 echo "$as_me: error: cannot find input file: $f" >&2;}
16986 { (exit 1); exit 1; }; }
16989 done` ||
{ (exit 1); exit 1; }
16991 cat >>$CONFIG_STATUS <<_ACEOF
16995 cat >>$CONFIG_STATUS <<\_ACEOF
16997 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16998 s
,@configure_input@
,$configure_input,;t t
16999 s
,@srcdir@
,$ac_srcdir,;t t
17000 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
17001 s
,@top_srcdir@
,$ac_top_srcdir,;t t
17002 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
17003 s
,@builddir@
,$ac_builddir,;t t
17004 s
,@abs_builddir@
,$ac_abs_builddir,;t t
17005 s
,@top_builddir@
,$ac_top_builddir,;t t
17006 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
17007 s
,@INSTALL@
,$ac_INSTALL,;t t
17008 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17010 if test x"$ac_file" != x-; then
17011 mv $tmp/out $ac_file
17019 cat >>$CONFIG_STATUS <<\_ACEOF
17022 # CONFIG_HEADER section.
17025 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
17026 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17028 # ac_d sets the value in "#define NAME VALUE" lines.
17029 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17030 ac_dB
='[ ].*$,\1#\2'
17033 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17034 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17035 ac_uB
='$,\1#\2define\3'
17039 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
17040 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17042 - |
*:- |
*:-:* ) # input from stdin
17044 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17045 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17046 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17047 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17048 * ) ac_file_in
=$ac_file.
in ;;
17051 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
17052 echo "$as_me: creating $ac_file" >&6;}
17054 # First look for the input files in the build tree, otherwise in the
17056 ac_file_inputs
=`IFS=:
17057 for f in $ac_file_in; do
17059 -) echo $tmp/stdin ;;
17061 # Absolute (can't be DOS-style, as IFS=:)
17062 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17063 echo "$as_me: error: cannot find input file: $f" >&2;}
17064 { (exit 1); exit 1; }; }
17067 if test -f "$f"; then
17070 elif test -f "$srcdir/$f"; then
17075 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17076 echo "$as_me: error: cannot find input file: $f" >&2;}
17077 { (exit 1); exit 1; }; }
17080 done` ||
{ (exit 1); exit 1; }
17081 # Remove the trailing spaces.
17082 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17086 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17087 # `conftest.undefs', that substitutes the proper values into
17088 # config.h.in to produce config.h. The first handles `#define'
17089 # templates, and the second `#undef' templates.
17090 # And first: Protect against being on the right side of a sed subst in
17091 # config.status. Protect against being in an unquoted here document
17092 # in config.status.
17093 rm -f conftest.defines conftest.undefs
17094 # Using a here document instead of a string reduces the quoting nightmare.
17095 # Putting comments in sed scripts is not portable.
17097 # `end' is used to avoid that the second main sed command (meant for
17098 # 0-ary CPP macros) applies to n-ary macro definitions.
17099 # See the Autoconf documentation for `clear'.
17100 cat >confdef2sed.
sed <<\_ACEOF
17105 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17107 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17110 # If some macros were called several times there might be several times
17111 # the same #defines, which is useless. Nevertheless, we may not want to
17112 # sort them, since we want the *last* AC-DEFINE to be honored.
17113 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17114 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17115 rm -f confdef2sed.sed
17117 # This sed command replaces #undef with comments. This is necessary, for
17118 # example, in the case of _POSIX_SOURCE, which is predefined and required
17119 # on some systems where configure will not decide to define it.
17120 cat >>conftest.undefs <<\_ACEOF
17121 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17124 # Break up conftest.defines because some shells have a limit on the size
17125 # of here documents, and old seds have small limits too (100 cmds).
17126 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17127 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17128 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17129 echo ' :' >>$CONFIG_STATUS
17130 rm -f conftest.tail
17131 while grep . conftest.defines >/dev/null
17133 # Write a limited-size here document to $tmp/defines.sed.
17134 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17135 # Speed up: don't consider the non `#define' lines.
17136 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17137 # Work around the forget-to-reset-the-flag bug.
17138 echo 't clr' >>$CONFIG_STATUS
17139 echo ': clr' >>$CONFIG_STATUS
17140 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
17142 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17144 mv $tmp/out $tmp/in
17146 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
17147 rm -f conftest.defines
17148 mv conftest.
tail conftest.defines
17150 rm -f conftest.defines
17151 echo ' fi # egrep' >>$CONFIG_STATUS
17152 echo >>$CONFIG_STATUS
17154 # Break up conftest.undefs because some shells have a limit on the size
17155 # of here documents, and old seds have small limits too (100 cmds).
17156 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17157 rm -f conftest.
tail
17158 while grep . conftest.undefs
>/dev
/null
17160 # Write a limited-size here document to $tmp/undefs.sed.
17161 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17162 # Speed up: don't consider the non
`#undef'
17163 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17164 # Work around the forget-to-reset-the-flag bug.
17165 echo 't clr' >>$CONFIG_STATUS
17166 echo ': clr' >>$CONFIG_STATUS
17167 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17169 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17171 mv $tmp/out $tmp/in
17173 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17174 rm -f conftest.undefs
17175 mv conftest.tail conftest.undefs
17177 rm -f conftest.undefs
17179 cat >>$CONFIG_STATUS <<\_ACEOF
17180 # Let's still pretend it is `configure
' which instantiates (i.e., don't
17181 # use $as_me), people would be surprised to read:
17182 # /* config.h. Generated by config.status. */
17183 if test x
"$ac_file" = x-
; then
17184 echo "/* Generated by configure. */" >$tmp/config.h
17186 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17188 cat $tmp/in >>$tmp/config.h
17190 if test x
"$ac_file" != x-
; then
17191 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
17192 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17193 echo "$as_me: $ac_file is unchanged" >&6;}
17195 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
17196 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17197 X"$ac_file" : 'X\(//\)[^/]' \| \
17198 X"$ac_file" : 'X\(//\)$' \| \
17199 X"$ac_file" : 'X\(/\)' \| \
17200 . : '\(.\)' 2>/dev/null ||
17202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17203 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17204 /^X\(\/\/\)$/{ s//\1/; q; }
17205 /^X\(\/\).*/{ s//\1/; q; }
17207 { if $as_mkdir_p; then
17212 while test ! -d "$as_dir"; do
17213 as_dirs
="$as_dir $as_dirs"
17214 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
17215 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17216 X"$as_dir" : 'X\(//\)[^/]' \| \
17217 X"$as_dir" : 'X\(//\)$' \| \
17218 X"$as_dir" : 'X\(/\)' \| \
17219 . : '\(.\)' 2>/dev/null ||
17221 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17222 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17223 /^X\(\/\/\)$/{ s//\1/; q; }
17224 /^X\(\/\).*/{ s//\1/; q; }
17227 test ! -n "$as_dirs" || mkdir
$as_dirs
17228 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17229 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17230 { (exit 1); exit 1; }; }; }
17233 mv $tmp/config.h
$ac_file
17237 rm -f $tmp/config.h
17241 cat >>$CONFIG_STATUS <<\_ACEOF
17244 # CONFIG_COMMANDS section.
17246 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
17247 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
17248 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17249 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
17250 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17251 X"$ac_dest" : 'X\(//\)[^/]' \| \
17252 X"$ac_dest" : 'X\(//\)$' \| \
17253 X"$ac_dest" : 'X\(/\)' \| \
17254 . : '\(.\)' 2>/dev/null ||
17256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17257 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17258 /^X\(\/\/\)$/{ s//\1/; q; }
17259 /^X\(\/\).*/{ s//\1/; q; }
17263 if test "$ac_dir" != .
; then
17264 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17265 # A "../" for each directory in $ac_dir_suffix.
17266 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17268 ac_dir_suffix
= ac_top_builddir
=
17272 .
) # No --srcdir option. We are building in place.
17274 if test -z "$ac_top_builddir"; then
17277 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
17279 [\\/]* | ?
:[\\/]* ) # Absolute path.
17280 ac_srcdir
=$srcdir$ac_dir_suffix;
17281 ac_top_srcdir
=$srcdir ;;
17282 *) # Relative path.
17283 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
17284 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
17286 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17288 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
17289 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
17290 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17291 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17294 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17295 echo "$as_me: executing $ac_dest commands" >&6;}
17299 ### Make the necessary directories, if they don't exist.
17300 for dir
in etc lisp
; do
17301 test -d ${dir} || mkdir
${dir}
17304 # Build src/Makefile from ${srcdir}/src/Makefile.c
17305 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
17306 # This must be done after src/config.h is built, since we rely on that file.
17308 # Now get this: Some word that is part of the ${srcdir} directory name
17309 # or the ${configuration} value might, just might, happen to be an
17310 # identifier like `sun4' or `i386' or something, and be predefined by
17311 # the C preprocessor to some helpful value like 1, or maybe the empty
17312 # string. Needless to say consequent macro substitutions are less
17313 # than conducive to the makefile finding the correct directory.
17314 undefs
="`echo $top_srcdir $configuration $canonical |
17315 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
17316 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
17319 echo creating src
/epaths.h
17320 ${MAKE-make} epaths-force
17322 # As of 2000-11-19, newest development versions of GNU cpp preprocess
17323 # `..' to `. .' unless invoked with -traditional
17325 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
17326 CPPFLAGS
="$CPPFLAGS -traditional"
17329 echo creating lib-src
/Makefile
17331 rm -f junk.c junk1.c junk2.c
17332 sed -e '/start of cpp stuff/q' \
17333 < Makefile.c
> junk1.c
17334 sed -e '1,/start of cpp stuff/d'\
17335 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
17336 < Makefile.c
> junk.c
17337 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
17338 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
17339 cat junk1.c junk2.c
> Makefile.new
17340 rm -f junk.c junk1.c junk2.c
17341 chmod 444 Makefile.new
17342 mv -f Makefile.new Makefile
17345 echo creating src
/Makefile
17347 rm -f junk.c junk1.c junk2.c
17348 sed -e '/start of cpp stuff/q' \
17349 < Makefile.c
> junk1.c
17350 sed -e '1,/start of cpp stuff/d'\
17351 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
17352 < Makefile.c
> junk.c
17353 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
17354 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
17355 cat junk1.c junk2.c
> Makefile.new
17356 rm -f junk.c junk1.c junk2.c
17357 chmod 444 Makefile.new
17358 mv -f Makefile.new Makefile
17361 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
17362 echo creating src
/.gdbinit
17363 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
17366 # This is how we know whether to re-run configure in certain cases.
17367 touch src
/config.stamp
17374 cat >>$CONFIG_STATUS <<\_ACEOF
17376 { (exit 0); exit 0; }
17378 chmod +x
$CONFIG_STATUS
17379 ac_clean_files
=$ac_clean_files_save
17382 # configure is writing to config.log, and then calls config.status.
17383 # config.status does its own redirection, appending to config.log.
17384 # Unfortunately, on DOS this fails, as config.log is still kept open
17385 # by configure, so config.status won't be able to write to it; its
17386 # output is simply discarded. So we exec the FD to /dev/null,
17387 # effectively closing config.log, so it can be properly (re)opened and
17388 # appended to by config.status. When coming back to configure, we
17389 # need to make the FD available again.
17390 if test "$no_create" != yes; then
17393 $SHELL $CONFIG_STATUS || ac_cs_success
=false
17395 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17396 # would make configure fail if this is the last instruction.
17397 $ac_cs_success ||
{ (exit 1); exit 1; }