2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53.
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.
10 if expr a
: '\(a\)' >/dev
/null
2>&1; then
17 ## --------------------- ##
18 ## M4sh Initialization. ##
19 ## --------------------- ##
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
25 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
30 # Support unset when possible.
31 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
37 (set +x
; test -n "`(LANG=C; export LANG) 2>&1`") &&
38 { $as_unset LANG ||
test "${LANG+set}" != set; } ||
39 { LANG
=C
; export LANG
; }
40 (set +x
; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41 { $as_unset LC_ALL ||
test "${LC_ALL+set}" != set; } ||
42 { LC_ALL
=C
; export LC_ALL
; }
43 (set +x
; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44 { $as_unset LC_TIME ||
test "${LC_TIME+set}" != set; } ||
45 { LC_TIME
=C
; export LC_TIME
; }
46 (set +x
; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47 { $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set; } ||
48 { LC_CTYPE
=C
; export LC_CTYPE
; }
49 (set +x
; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50 { $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set; } ||
51 { LANGUAGE
=C
; export LANGUAGE
; }
52 (set +x
; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53 { $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set; } ||
54 { LC_COLLATE
=C
; export LC_COLLATE
; }
55 (set +x
; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56 { $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set; } ||
57 { LC_NUMERIC
=C
; export LC_NUMERIC
; }
58 (set +x
; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59 { $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set; } ||
60 { LC_MESSAGES
=C
; export LC_MESSAGES
; }
63 # Name of the executable.
64 as_me
=`(basename "$0") 2>/dev/null ||
65 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66 X"$0" : 'X\(//\)$' \| \
67 X"$0" : 'X\(/\)$' \| \
68 . : '\(.\)' 2>/dev/null ||
70 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71 /^X\/\(\/\/\)$/{ s//\1/; q; }
72 /^X\/\(\/\).*/{ s//\1/; q; }
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits
='0123456789'
81 as_cr_alnum
=$as_cr_Letters$as_cr_digits
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
88 if (PATH
=".;."; conftest.sh
) >/dev
/null
2>&1; then
99 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
102 # Find who we are. Look in the path if we contain no path at all
105 *[\\/]* ) as_myself
=$0 ;;
106 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
110 test -z "$as_dir" && as_dir
=.
111 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x
; then
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
125 case $CONFIG_SHELL in
127 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
128 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
131 test -z "$as_dir" && as_dir
=.
132 for as_base
in sh bash ksh sh5
; do
135 if ("$as_dir/$as_base" -c '
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
141 CONFIG_SHELL
=$as_dir/$as_base
143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152 # uniformly replaced by the line number. The first 'sed' inserts a
153 # line-number line before each line; the second 'sed' does the real
154 # work. The second script uses 'N' to pair each line-number line
155 # with the numbered line, and appends trailing '-' during
156 # substitution so that $LINENO is not a special case at line end.
157 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
159 sed '=' <$as_myself |
164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167 s,^['$as_cr_digits']*\n,,
169 chmod +x
$as_me.lineno ||
170 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171 { (exit 1); exit 1; }; }
173 # Don't try to exec as it changes $[0], causing all sort of problems
174 # (the dirname of $[0] is not the place where we might find the
175 # original and so on. Autoconf is especially sensible to this).
177 # Exit status is that of the last command.
182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183 *c
*,-n*) ECHO_N
= ECHO_C
='
185 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
186 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
189 if expr a
: '\(a\)' >/dev
/null
2>&1; then
195 rm -f conf$$ conf$$.exe conf$$.
file
197 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
198 # We could just check for DJGPP; but this test a) works b) is more generic
199 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200 if test -f conf$$.exe
; then
201 # Don't use ln at all; we don't have any links
206 elif ln conf$$.
file conf$$
2>/dev
/null
; then
211 rm -f conf$$ conf$$.exe conf$$.
file
213 as_executable_p
="test -f"
215 # Sed expression to map a string onto a valid CPP name.
216 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
218 # Sed expression to map a string onto a valid variable name.
219 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
223 # We need space, tab and new line, in precisely that order.
229 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=$PATH_SEPARATOR; export CDPATH
; }
233 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234 # so uname gets run too.
235 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
242 ac_default_prefix
=/usr
/local
247 SHELL
=${CONFIG_SHELL-/bin/sh}
249 # Maximum number of lines to put in a shell here document.
250 # This variable seems obsolete. It should probably be removed, and
251 # only ac_max_sed_lines should be used.
252 : ${ac_max_here_lines=38}
254 # Identity of this package.
261 ac_unique_file
="src/lisp.h"
262 # Factoring default headers for most tests.
263 ac_includes_default
="\
266 # include <sys/types.h>
269 # include <sys/stat.h>
280 # if !STDC_HEADERS && HAVE_MEMORY_H
286 # include <strings.h>
289 # include <inttypes.h>
300 # Initialize some variables set by options.
302 ac_init_version
=false
303 # The variables have the same names as the options, with
304 # dashes changed to underlines.
312 program_transform_name
=s
,x
,x
,
320 # Installation directory options.
321 # These are left unexpanded so users can "make install exec_prefix=/foo"
322 # and all the variables that are supposed to be based on exec_prefix
323 # by default will actually change.
324 # Use braces instead of parens because sh, perl, etc. also accept them.
325 bindir
='${exec_prefix}/bin'
326 sbindir
='${exec_prefix}/sbin'
327 libexecdir
='${exec_prefix}/libexec'
328 datadir
='${prefix}/share'
329 sysconfdir
='${prefix}/etc'
330 sharedstatedir
='${prefix}/com'
331 localstatedir
='${prefix}/var'
332 libdir
='${exec_prefix}/lib'
333 includedir
='${prefix}/include'
334 oldincludedir
='/usr/include'
335 infodir
='${prefix}/info'
336 mandir
='${prefix}/man'
341 # If the previous option needs an argument, assign it.
342 if test -n "$ac_prev"; then
343 eval "$ac_prev=\$ac_option"
348 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
350 # Accept the important Cygnus configure options, so we can diagnose typos.
354 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
356 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
359 -build |
--build |
--buil |
--bui |
--bu)
360 ac_prev
=build_alias
;;
361 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
362 build_alias
=$ac_optarg ;;
364 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
365 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
366 ac_prev
=cache_file
;;
367 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
368 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
369 cache_file
=$ac_optarg ;;
372 cache_file
=config.cache
;;
374 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
376 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
378 datadir
=$ac_optarg ;;
380 -disable-* |
--disable-*)
381 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382 # Reject names that are not valid shell variable names.
383 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
384 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385 { (exit 1); exit 1; }; }
386 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
387 eval "enable_$ac_feature=no" ;;
389 -enable-* |
--enable-*)
390 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391 # Reject names that are not valid shell variable names.
392 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
393 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394 { (exit 1); exit 1; }; }
395 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
397 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
400 eval "enable_$ac_feature='$ac_optarg'" ;;
402 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
403 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
404 |
--exec |
--exe |
--ex)
405 ac_prev
=exec_prefix
;;
406 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
407 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
408 |
--exec=* |
--exe=* |
--ex=*)
409 exec_prefix
=$ac_optarg ;;
411 -gas |
--gas |
--ga |
--g)
412 # Obsolete; use --with-gas.
415 -help |
--help |
--hel |
--he |
-h)
417 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
418 ac_init_help
=recursive
;;
419 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
420 ac_init_help
=short
;;
422 -host |
--host |
--hos |
--ho)
423 ac_prev
=host_alias
;;
424 -host=* |
--host=* |
--hos=* |
--ho=*)
425 host_alias
=$ac_optarg ;;
427 -includedir |
--includedir |
--includedi |
--included |
--include \
428 |
--includ |
--inclu |
--incl |
--inc)
429 ac_prev
=includedir
;;
430 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
431 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
432 includedir
=$ac_optarg ;;
434 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
436 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
437 infodir
=$ac_optarg ;;
439 -libdir |
--libdir |
--libdi |
--libd)
441 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
444 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
445 |
--libexe |
--libex |
--libe)
446 ac_prev
=libexecdir
;;
447 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
448 |
--libexe=* |
--libex=* |
--libe=*)
449 libexecdir
=$ac_optarg ;;
451 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
452 |
--localstate |
--localstat |
--localsta |
--localst \
453 |
--locals |
--local |
--loca |
--loc |
--lo)
454 ac_prev
=localstatedir
;;
455 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
456 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
457 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
458 localstatedir
=$ac_optarg ;;
460 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
462 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
466 # Obsolete; use --without-fp.
469 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
470 |
--no-cr |
--no-c |
-n)
473 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
474 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
477 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
478 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
479 |
--oldin |
--oldi |
--old |
--ol |
--o)
480 ac_prev
=oldincludedir
;;
481 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
482 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
483 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
484 oldincludedir
=$ac_optarg ;;
486 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
488 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
491 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
492 |
--program-pre |
--program-pr |
--program-p)
493 ac_prev
=program_prefix
;;
494 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
495 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
496 program_prefix
=$ac_optarg ;;
498 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
499 |
--program-suf |
--program-su |
--program-s)
500 ac_prev
=program_suffix
;;
501 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
502 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
503 program_suffix
=$ac_optarg ;;
505 -program-transform-name |
--program-transform-name \
506 |
--program-transform-nam |
--program-transform-na \
507 |
--program-transform-n |
--program-transform- \
508 |
--program-transform |
--program-transfor \
509 |
--program-transfo |
--program-transf \
510 |
--program-trans |
--program-tran \
511 |
--progr-tra |
--program-tr |
--program-t)
512 ac_prev
=program_transform_name
;;
513 -program-transform-name=* |
--program-transform-name=* \
514 |
--program-transform-nam=* |
--program-transform-na=* \
515 |
--program-transform-n=* |
--program-transform-=* \
516 |
--program-transform=* |
--program-transfor=* \
517 |
--program-transfo=* |
--program-transf=* \
518 |
--program-trans=* |
--program-tran=* \
519 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
520 program_transform_name
=$ac_optarg ;;
522 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
523 |
-silent |
--silent |
--silen |
--sile |
--sil)
526 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
528 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
530 sbindir
=$ac_optarg ;;
532 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
533 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
534 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
536 ac_prev
=sharedstatedir
;;
537 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
538 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
539 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
541 sharedstatedir
=$ac_optarg ;;
543 -site |
--site |
--sit)
545 -site=* |
--site=* |
--sit=*)
548 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
550 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
553 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
554 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
555 ac_prev
=sysconfdir
;;
556 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
557 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
558 sysconfdir
=$ac_optarg ;;
560 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
561 ac_prev
=target_alias
;;
562 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
563 target_alias
=$ac_optarg ;;
565 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
568 -version |
--version |
--versio |
--versi |
--vers |
-V)
572 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
575 { echo "$as_me: error: invalid package name: $ac_package" >&2
576 { (exit 1); exit 1; }; }
577 ac_package
=`echo $ac_package| sed 's/-/_/g'`
579 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
582 eval "with_$ac_package='$ac_optarg'" ;;
584 -without-* |
--without-*)
585 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586 # Reject names that are not valid shell variable names.
587 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
588 { echo "$as_me: error: invalid package name: $ac_package" >&2
589 { (exit 1); exit 1; }; }
590 ac_package
=`echo $ac_package | sed 's/-/_/g'`
591 eval "with_$ac_package=no" ;;
594 # Obsolete; use --with-x.
597 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
598 |
--x-incl |
--x-inc |
--x-in |
--x-i)
599 ac_prev
=x_includes
;;
600 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
601 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
602 x_includes
=$ac_optarg ;;
604 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
605 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
606 ac_prev
=x_libraries
;;
607 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
608 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
609 x_libraries
=$ac_optarg ;;
611 -*) { echo "$as_me: error: unrecognized option: $ac_option
612 Try \`$0 --help' for more information." >&2
613 { (exit 1); exit 1; }; }
617 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
618 # Reject names that are not valid shell variable names.
619 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
620 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621 { (exit 1); exit 1; }; }
622 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623 eval "$ac_envvar='$ac_optarg'"
627 # FIXME: should be removed in autoconf 3.0.
628 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
630 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
637 if test -n "$ac_prev"; then
638 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
639 { echo "$as_me: error: missing argument to $ac_option" >&2
640 { (exit 1); exit 1; }; }
643 # Be sure to have absolute paths.
644 for ac_var
in exec_prefix prefix
646 eval ac_val
=$
`echo $ac_var`
648 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
649 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650 { (exit 1); exit 1; }; };;
654 # Be sure to have absolute paths.
655 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656 localstatedir libdir includedir oldincludedir infodir mandir
658 eval ac_val
=$
`echo $ac_var`
660 [\\/$
]* | ?
:[\\/]* ) ;;
661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662 { (exit 1); exit 1; }; };;
666 # There might be people who depend on the old broken behavior: `$host'
667 # used to hold the argument of --host etc.
668 # FIXME: To remove some day.
673 # FIXME: To remove some day.
674 if test "x$host_alias" != x
; then
675 if test "x$build_alias" = x
; then
676 cross_compiling
=maybe
677 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678 If a cross compiler is detected then cross compile mode will be used." >&2
679 elif test "x$build_alias" != "x$host_alias"; then
685 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
687 test "$silent" = yes && exec 6>/dev
/null
690 # Find the source files, if location was not specified.
691 if test -z "$srcdir"; then
692 ac_srcdir_defaulted
=yes
693 # Try the directory containing this script, then its parent.
694 ac_confdir
=`(dirname "$0") 2>/dev/null ||
695 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696 X"$0" : 'X\(//\)[^/]' \| \
697 X"$0" : 'X\(//\)$' \| \
698 X"$0" : 'X\(/\)' \| \
699 . : '\(.\)' 2>/dev/null ||
701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703 /^X\(\/\/\)$/{ s//\1/; q; }
704 /^X\(\/\).*/{ s//\1/; q; }
707 if test ! -r $srcdir/$ac_unique_file; then
711 ac_srcdir_defaulted
=no
713 if test ! -r $srcdir/$ac_unique_file; then
714 if test "$ac_srcdir_defaulted" = yes; then
715 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716 { (exit 1); exit 1; }; }
718 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719 { (exit 1); exit 1; }; }
722 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723 ac_env_build_alias_set
=${build_alias+set}
724 ac_env_build_alias_value
=$build_alias
725 ac_cv_env_build_alias_set
=${build_alias+set}
726 ac_cv_env_build_alias_value
=$build_alias
727 ac_env_host_alias_set
=${host_alias+set}
728 ac_env_host_alias_value
=$host_alias
729 ac_cv_env_host_alias_set
=${host_alias+set}
730 ac_cv_env_host_alias_value
=$host_alias
731 ac_env_target_alias_set
=${target_alias+set}
732 ac_env_target_alias_value
=$target_alias
733 ac_cv_env_target_alias_set
=${target_alias+set}
734 ac_cv_env_target_alias_value
=$target_alias
735 ac_env_CC_set
=${CC+set}
737 ac_cv_env_CC_set
=${CC+set}
738 ac_cv_env_CC_value
=$CC
739 ac_env_CFLAGS_set
=${CFLAGS+set}
740 ac_env_CFLAGS_value
=$CFLAGS
741 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
742 ac_cv_env_CFLAGS_value
=$CFLAGS
743 ac_env_LDFLAGS_set
=${LDFLAGS+set}
744 ac_env_LDFLAGS_value
=$LDFLAGS
745 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
746 ac_cv_env_LDFLAGS_value
=$LDFLAGS
747 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
748 ac_env_CPPFLAGS_value
=$CPPFLAGS
749 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
750 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
751 ac_env_CPP_set
=${CPP+set}
752 ac_env_CPP_value
=$CPP
753 ac_cv_env_CPP_set
=${CPP+set}
754 ac_cv_env_CPP_value
=$CPP
757 # Report the --help message.
759 if test "$ac_init_help" = "long"; then
760 # Omit some internal or obsolete options to make the list less imposing.
761 # This message is too long to be a string in the A/UX 3.1 sh.
763 \`configure' configures this package to adapt to many kinds of systems.
765 Usage: $0 [OPTION]... [VAR=VALUE]...
767 To assign environment variables (e.g., CC, CFLAGS...), specify them as
768 VAR=VALUE. See below for descriptions of some of the useful variables.
770 Defaults for the options are specified in brackets.
773 -h, --help display this help and exit
774 --help=short display options specific to this package
775 --help=recursive display the short help of all the included packages
776 -V, --version display version information and exit
777 -q, --quiet, --silent do not print \`checking...' messages
778 --cache-file=FILE cache test results in FILE [disabled]
779 -C, --config-cache alias for \`--cache-file=config.cache'
780 -n, --no-create do not create output files
781 --srcdir=DIR find the sources in DIR [configure dir or \`..']
786 Installation directories:
787 --prefix=PREFIX install architecture-independent files in PREFIX
789 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
792 By default, \`make install' will install all the files in
793 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
794 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
795 for instance \`--prefix=\$HOME'.
797 For better control, use the options below.
799 Fine tuning of the installation directories:
800 --bindir=DIR user executables [EPREFIX/bin]
801 --sbindir=DIR system admin executables [EPREFIX/sbin]
802 --libexecdir=DIR program executables [EPREFIX/libexec]
803 --datadir=DIR read-only architecture-independent data [PREFIX/share]
804 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
805 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
806 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
807 --libdir=DIR object code libraries [EPREFIX/lib]
808 --includedir=DIR C header files [PREFIX/include]
809 --oldincludedir=DIR C header files for non-gcc [/usr/include]
810 --infodir=DIR info documentation [PREFIX/info]
811 --mandir=DIR man documentation [PREFIX/man]
817 --program-prefix=PREFIX prepend PREFIX to installed program names
818 --program-suffix=SUFFIX append SUFFIX to installed program names
819 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
822 --x-includes=DIR X include files are
in DIR
823 --x-libraries=DIR X library files are
in DIR
826 --build=BUILD configure
for building on BUILD
[guessed
]
827 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
831 if test -n "$ac_init_help"; then
836 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
837 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
838 --disable-largefile omit support
for large files
841 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
842 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
843 --with-game-dir use a shared game directory
if possible
844 --with-game-user use specified user
for game directory
845 --without-gcc don
't use GCC to compile Emacs if GCC is found
846 --without-pop don't support POP
mail retrieval with movemail
847 --with-kerberos support Kerberos-authenticated POP
848 --with-kerberos5 support Kerberos version
5 authenticated POP
849 --with-hesiod support Hesiod to get the POP server
host
850 --without-sound don
't compile with sound support
851 --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no)
852 --with-xpm use -lXpm for displaying XPM images
853 --with-jpeg use -ljpeg for displaying JPEG images
854 --with-tiff use -ltiff for displaying TIFF images
855 --with-gif use -lungif for displaying GIF images
856 --with-png use -lpng for displaying PNG images
857 --without-toolkit-scroll-bars
858 don't use Motif or Xaw3d scroll bars
859 --without-xim don
't use X11 XIM
860 --with-x use the X Window System
862 Some influential environment variables:
863 CC C compiler command
864 CFLAGS C compiler flags
865 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
866 nonstandard directory <lib dir>
867 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
868 headers in a nonstandard directory <include dir>
871 Use these variables to override the choices made by `configure' or to
help
872 it to
find libraries and programs with nonstandard names
/locations.
877 if test "$ac_init_help" = "recursive"; then
878 # If there are subdirs, report their specific --help.
880 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
881 test -d $ac_dir ||
continue
884 if test "$ac_dir" != .
; then
885 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
886 # A "../" for each directory in $ac_dir_suffix.
887 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
889 ac_dir_suffix
= ac_top_builddir
=
893 .
) # No --srcdir option. We are building in place.
895 if test -z "$ac_top_builddir"; then
898 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
900 [\\/]* | ?
:[\\/]* ) # Absolute path.
901 ac_srcdir
=$srcdir$ac_dir_suffix;
902 ac_top_srcdir
=$srcdir ;;
904 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
905 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
907 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
909 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
910 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
911 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
912 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
915 # Check for guested configure; otherwise get Cygnus style configure.
916 if test -f $ac_srcdir/configure.gnu
; then
918 $SHELL $ac_srcdir/configure.gnu
--help=recursive
919 elif test -f $ac_srcdir/configure
; then
921 $SHELL $ac_srcdir/configure
--help=recursive
922 elif test -f $ac_srcdir/configure.ac ||
923 test -f $ac_srcdir/configure.
in; then
927 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
933 test -n "$ac_init_help" && exit 0
934 if $ac_init_version; then
937 Copyright
1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
938 Free Software Foundation
, Inc.
939 This configure
script is free software
; the Free Software Foundation
940 gives unlimited permission to copy
, distribute and modify it.
946 This file contains any messages produced by compilers while
947 running configure, to aid debugging if configure makes a mistake.
949 It was created by $as_me, which was
950 generated by GNU Autoconf 2.53. Invocation command line was
961 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
962 uname -m = `(uname -m) 2>/dev/null || echo unknown`
963 uname -r = `(uname -r) 2>/dev/null || echo unknown`
964 uname -s = `(uname -s) 2>/dev/null || echo unknown`
965 uname -v = `(uname -v) 2>/dev/null || echo unknown`
967 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
968 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
970 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
971 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
972 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
973 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
974 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
975 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
976 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
980 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
984 test -z "$as_dir" && as_dir
=.
1000 # Keep a trace of the command line.
1001 # Strip out --no-create and --no-recursion so they do not pile up.
1002 # Also quote any args containing shell meta-characters.
1008 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1009 |
--no-cr |
--no-c |
-n ) continue ;;
1010 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1011 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1013 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1014 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1016 case " $ac_configure_args " in
1017 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1018 *) ac_configure_args
="$ac_configure_args$ac_sep'$ac_arg'"
1021 # Get rid of the leading space.
1024 # When interrupted or exit'd, cleanup temporary files, and complete
1025 # config.log. We remove comments because anyway the quotes in there
1026 # would cause problems or look ugly.
1027 # WARNING: Be sure not to use single quotes in there, as some shells,
1028 # such as our DU 5.0 friend, will then `close' the trap.
1029 trap 'exit_status=$?
1030 # Save into config.log some information that might help in debugging.
1034 ## ---------------- ##
1035 ## Cache variables. ##
1036 ## ---------------- ##
1039 # The following way of writing the cache mishandles newlines in values,
1042 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1045 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1046 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1050 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1055 if test -s confdefs.h; then
1062 sed "/^$/d" confdefs.h
1065 test "$ac_signal" != 0 &&
1066 echo "$as_me: caught signal $ac_signal"
1067 echo "$as_me: exit $exit_status"
1069 rm -f core core.* *.core &&
1070 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1073 for ac_signal
in 1 2 13 15; do
1074 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1078 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1079 rm -rf conftest
* confdefs.h
1080 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1083 # Predefined preprocessor variables.
1085 cat >>confdefs.h
<<_ACEOF
1086 #define PACKAGE_NAME "$PACKAGE_NAME"
1090 cat >>confdefs.h
<<_ACEOF
1091 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1095 cat >>confdefs.h
<<_ACEOF
1096 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1100 cat >>confdefs.h
<<_ACEOF
1101 #define PACKAGE_STRING "$PACKAGE_STRING"
1105 cat >>confdefs.h
<<_ACEOF
1106 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1110 # Let the site file select an alternate cache file if it wants to.
1111 # Prefer explicitly selected file to automatically selected ones.
1112 if test -z "$CONFIG_SITE"; then
1113 if test "x$prefix" != xNONE
; then
1114 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
1116 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1119 for ac_site_file
in $CONFIG_SITE; do
1120 if test -r "$ac_site_file"; then
1121 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1122 echo "$as_me: loading site script $ac_site_file" >&6;}
1123 sed 's/^/| /' "$ac_site_file" >&5
1128 if test -r "$cache_file"; then
1129 # Some versions of bash will fail to source /dev/null (special
1130 # files actually), so we avoid doing that.
1131 if test -f "$cache_file"; then
1132 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1133 echo "$as_me: loading cache $cache_file" >&6;}
1135 [\\/]* | ?
:[\\/]* ) .
$cache_file;;
1136 *) . .
/$cache_file;;
1140 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1141 echo "$as_me: creating cache $cache_file" >&6;}
1145 # Check that the precious variables saved in the cache have kept the same
1147 ac_cache_corrupted
=false
1148 for ac_var
in `(set) 2>&1 |
1149 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1150 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1151 eval ac_new_set
=\
$ac_env_${ac_var}_set
1152 eval ac_old_val
="\$ac_cv_env_${ac_var}_value"
1153 eval ac_new_val
="\$ac_env_${ac_var}_value"
1154 case $ac_old_set,$ac_new_set in
1156 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1157 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1158 ac_cache_corrupted
=: ;;
1160 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1161 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1162 ac_cache_corrupted
=: ;;
1165 if test "x$ac_old_val" != "x$ac_new_val"; then
1166 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1167 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1168 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1169 echo "$as_me: former value: $ac_old_val" >&2;}
1170 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1171 echo "$as_me: current value: $ac_new_val" >&2;}
1172 ac_cache_corrupted
=:
1175 # Pass precious variables to config.status.
1176 if test "$ac_new_set" = set; then
1178 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1179 ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1180 *) ac_arg
=$ac_var=$ac_new_val ;;
1182 case " $ac_configure_args " in
1183 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1184 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1188 if $ac_cache_corrupted; then
1189 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1190 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1191 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1192 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1193 { (exit 1); exit 1; }; }
1197 ac_cpp
='$CPP $CPPFLAGS'
1198 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1199 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1200 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1219 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
1222 test "$program_prefix" != NONE
&&
1223 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1224 # Use a double $ so make ignores it.
1225 test "$program_suffix" != NONE
&&
1226 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1227 # Double any \ or $. echo might interpret backslashes.
1228 # By default was `s,x,x', remove it if useless.
1229 cat <<\_ACEOF
>conftest.
sed
1230 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1232 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1236 lispdir
='${datadir}/emacs/${version}/lisp'
1237 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1238 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1239 lisppath
='${locallisppath}:${lispdir}'
1240 etcdir
='${datadir}/emacs/${version}/etc'
1241 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1242 docdir
='${datadir}/emacs/${version}/etc'
1246 # Check whether --with-game-dir or --without-game-dir was given.
1247 if test "${with_game_dir+set}" = set; then
1248 withval
="$with_game_dir"
1249 if test "$withval" = yes; then
1250 gamedir
="${localstatedir}/games/emacs"
1252 if test "$withval" = no
; then
1263 # Check whether --with-game-user or --without-game-user was given.
1264 if test "${with_game_user+set}" = set; then
1265 withval
="$with_game_user"
1270 # Check whether --with-gcc or --without-gcc was given.
1271 if test "${with_gcc+set}" = set; then
1276 # Check whether --with-pop or --without-pop was given.
1277 if test "${with_pop+set}" = set; then
1279 if test "$withval" = yes; then
1280 cat >>confdefs.h
<<\_ACEOF
1281 #define MAIL_USE_POP 1
1287 cat >>confdefs.h
<<\_ACEOF
1288 #define MAIL_USE_POP 1
1294 # Check whether --with-kerberos or --without-kerberos was given.
1295 if test "${with_kerberos+set}" = set; then
1296 withval
="$with_kerberos"
1297 cat >>confdefs.h
<<\_ACEOF
1304 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1305 if test "${with_kerberos5+set}" = set; then
1306 withval
="$with_kerberos5"
1307 if test "${with_kerberos5+set}" = set; then
1308 if test "${with_kerberos+set}" != set; then
1310 cat >>confdefs.h
<<\_ACEOF
1317 cat >>confdefs.h
<<\_ACEOF
1323 # Check whether --with-hesiod or --without-hesiod was given.
1324 if test "${with_hesiod+set}" = set; then
1325 withval
="$with_hesiod"
1327 cat >>confdefs.h
<<\_ACEOF
1334 # Check whether --with-sound or --without-sound was given.
1335 if test "${with_sound+set}" = set; then
1336 withval
="$with_sound"
1341 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1342 if test "${with_x_toolkit+set}" = set; then
1343 withval
="$with_x_toolkit"
1344 case "${withval}" in
1345 y | ye |
yes ) val
=athena
;;
1347 l | lu | luc | luci | lucid
) val
=lucid
;;
1348 a |
at | ath | athe | athen | athena
) val
=athena
;;
1349 m | mo | mot | moti | motif
) val
=motif
;;
1351 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1352 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
1353 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1354 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1355 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
1356 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1357 { (exit 1); exit 1; }; }
1364 # Check whether --with-xpm or --without-xpm was given.
1365 if test "${with_xpm+set}" = set; then
1370 # Check whether --with-jpeg or --without-jpeg was given.
1371 if test "${with_jpeg+set}" = set; then
1372 withval
="$with_jpeg"
1376 # Check whether --with-tiff or --without-tiff was given.
1377 if test "${with_tiff+set}" = set; then
1378 withval
="$with_tiff"
1382 # Check whether --with-gif or --without-gif was given.
1383 if test "${with_gif+set}" = set; then
1388 # Check whether --with-png or --without-png was given.
1389 if test "${with_png+set}" = set; then
1394 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1395 if test "${with_toolkit_scroll_bars+set}" = set; then
1396 withval
="$with_toolkit_scroll_bars"
1400 # Check whether --with-xim or --without-xim was given.
1401 if test "${with_xim+set}" = set; then
1406 #### Make srcdir absolute, if it isn't already. It's important to
1407 #### avoid running the path through pwd unnecessarily, since pwd can
1408 #### give you automounter prefixes, which can go away. We do all this
1409 #### so Emacs can find its files when run uninstalled.
1410 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1415 ## We may be able to use the $PWD environment variable to make this
1416 ## absolute. But sometimes PWD is inaccurate.
1417 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1418 ## but that tested only for a well-formed and valid PWD,
1419 ## it did not object when PWD was well-formed and valid but just wrong.
1420 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1424 srcdir
="`(cd ${srcdir}; pwd)`"
1427 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
1430 #### Check if the source directory already has a configured system in it.
1431 if test `pwd` != `(cd ${srcdir} && pwd)` \
1432 && test -f "${srcdir}/src/config.h" ; then
1433 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1434 as a build directory right now; it has been configured in its own
1435 right. To configure in another directory as well, you MUST
1436 use GNU make. If you do not have GNU make, then you must
1437 now do \`make distclean' in ${srcdir},
1438 and then run $0 again." >&5
1439 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1440 as a build directory right now; it has been configured in its own
1441 right. To configure in another directory as well, you MUST
1442 use GNU make. If you do not have GNU make, then you must
1443 now do \`make distclean' in ${srcdir},
1444 and then run $0 again." >&2;}
1446 extrasub
='/^VPATH[ ]*=/c\
1447 vpath %.c $(srcdir)\
1448 vpath %.h $(srcdir)\
1449 vpath %.y $(srcdir)\
1450 vpath %.l $(srcdir)\
1451 vpath %.s $(srcdir)\
1452 vpath %.in $(srcdir)\
1453 vpath %.texi $(srcdir)'
1456 #### Given the configuration name, set machfile and opsysfile to the
1457 #### names of the m/*.h and s/*.h files we should use.
1459 ### Canonicalize the configuration name.
1462 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1463 if test -f $ac_dir/install-sh
; then
1465 ac_install_sh
="$ac_aux_dir/install-sh -c"
1467 elif test -f $ac_dir/install.sh
; then
1469 ac_install_sh
="$ac_aux_dir/install.sh -c"
1471 elif test -f $ac_dir/shtool
; then
1473 ac_install_sh
="$ac_aux_dir/shtool install -c"
1477 if test -z "$ac_aux_dir"; then
1478 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1479 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1480 { (exit 1); exit 1; }; }
1482 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1483 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1484 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1486 # Make sure we can run config.sub.
1487 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1488 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1489 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1490 { (exit 1); exit 1; }; }
1492 echo "$as_me:$LINENO: checking build system type" >&5
1493 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1494 if test "${ac_cv_build+set}" = set; then
1495 echo $ECHO_N "(cached) $ECHO_C" >&6
1497 ac_cv_build_alias
=$build_alias
1498 test -z "$ac_cv_build_alias" &&
1499 ac_cv_build_alias
=`$ac_config_guess`
1500 test -z "$ac_cv_build_alias" &&
1501 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1502 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1503 { (exit 1); exit 1; }; }
1504 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1505 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1506 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1507 { (exit 1); exit 1; }; }
1510 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1511 echo "${ECHO_T}$ac_cv_build" >&6
1513 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1514 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1515 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1518 echo "$as_me:$LINENO: checking host system type" >&5
1519 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1520 if test "${ac_cv_host+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1523 ac_cv_host_alias
=$host_alias
1524 test -z "$ac_cv_host_alias" &&
1525 ac_cv_host_alias
=$ac_cv_build_alias
1526 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1527 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1528 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1529 { (exit 1); exit 1; }; }
1532 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1533 echo "${ECHO_T}$ac_cv_host" >&6
1535 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1536 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1537 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1541 configuration
=${host_alias-$host}
1544 ### If you add support for a new configuration, add code to this
1545 ### switch statement to recognize your configuration name and select
1546 ### the appropriate operating system and machine description files.
1548 ### You would hope that you could choose an m/*.h file pretty much
1549 ### based on the machine portion of the configuration name, and an s-
1550 ### file based on the operating system portion. However, it turns out
1551 ### that each m/*.h file is pretty manufacturer-specific - for
1552 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1553 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1554 ### machines. So we basically have to have a special case for each
1555 ### configuration name.
1557 ### As far as handling version numbers on operating systems is
1558 ### concerned, make sure things will fail in a fixable way. If
1559 ### /etc/MACHINES doesn't say anything about version numbers, be
1560 ### prepared to handle anything reasonably. If version numbers
1561 ### matter, be sure /etc/MACHINES says something about it.
1563 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1564 ### "System V Release 4"; he writes, "The old convention encouraged
1565 ### confusion between `system' and `release' levels'."
1567 machine
='' opsys
='' unported
=no
1568 case "${canonical}" in
1573 case "${canonical}" in
1574 alpha
*-*-freebsd*) machine
=alpha
;;
1575 i
[3456]86-*-freebsd*) machine
=intel386
;;
1582 case "${canonical}" in
1583 alpha
*-*-netbsd*) machine
=alpha
;;
1584 i
[3456]86-*-netbsd*) machine
=intel386
;;
1586 # This is somewhat bogus.
1587 machine
=hp9000s300
;;
1588 powerpc-apple-netbsd
*) machine
=macppc
;;
1589 mips-
*-netbsd*) machine
=pmax
;;
1590 mipsel-
*-netbsd*) machine
=pmax
;;
1591 ns32k-
*-netbsd*) machine
=ns32000
;;
1592 powerpc-
*-netbsd*) machine
=macppc
;;
1593 sparc
*-*-netbsd*) machine
=sparc
;;
1594 vax-
*-netbsd*) machine
=vax
;;
1595 arm-
*-netbsd*) machine
=arm
;;
1602 case "${canonical}" in
1603 alpha
*-*-openbsd*) machine
=alpha
;;
1604 i386-
*-openbsd*) machine
=intel386
;;
1605 m68k-
*-openbsd*) machine
=hp9000s300
;;
1606 mipsel-
*-openbsd*) machine
=pmax
;;
1607 ns32k-
*-openbsd*) machine
=ns32000
;;
1608 sparc-
*-openbsd*) machine
=sparc
;;
1609 vax-
*-openbsd*) machine
=vax
;;
1614 arm-acorn-riscix1.1
* )
1615 machine
=acorn opsys
=riscix1-1
1617 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1618 ## This name is riscix12 instead of riscix1.2
1619 ## to avoid a file name conflict on MSDOS.
1620 machine
=acorn opsys
=riscix12
1626 case "${canonical}" in
1627 i
[345]86-*-bsdi*) machine
=intel386
;;
1628 sparc-
*-bsdi*) machine
=sparc
;;
1629 powerpc-
*-bsdi*) machine
=macppc
;;
1631 case "${canonical}" in
1632 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1633 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1634 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1635 *-*-bsdi3* ) opsys
=bsdos3
;;
1636 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1641 ## Strictly speaking, we need the version of the alliant operating
1642 ## system to choose the right machine file, but currently the
1643 ## configuration name doesn't tell us enough to choose the right
1644 ## one; we need to give alliants their own operating system name to
1645 ## do this right. When someone cares, they can help us.
1647 machine
=alliant4 opsys
=bsd4-2
1650 machine
=alliant-2800 opsys
=bsd4-3
1653 ## Alpha (DEC) machines.
1655 machine
=alpha opsys
=osf1
1656 # This is needed to find X11R6.1 libraries for certain tests.
1657 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1658 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1659 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1660 # due to non-traditional preprocessing with the current compiler
1661 # defaults. OSF 4 can also have that compiler version, and there
1662 # seems always to have been a usable /usr/bin/cpp.
1663 NON_GNU_CPP
=/usr
/bin
/cpp
1664 case "${canonical}" in
1665 alpha
*-dec-osf[5-9]*)
1670 alpha
*-*-linux-gnu* )
1671 machine
=alpha opsys
=gnu-linux
1675 machine
=arm opsys
=gnu-linux
1680 machine
=macppc opsys
=gnu-linux
1685 machine
=altos opsys
=usg5-2
1690 machine
=amdahl opsys
=usg5-2-2
1693 ## Apollo, Domain/OS
1695 machine
=apollo opsys
=bsd4-3
1698 ## AT&T 3b2, 3b5, 3b15, 3b20
1700 machine
=att3b opsys
=usg5-2-2
1703 ## AT&T 3b1 - The Mighty Unix PC!
1705 machine
=7300 opsys
=usg5-2-2
1710 machine
=ibmrs6000 opsys
=aix3-2
1715 machine
=dpx2 opsys
=usg5-3
1720 machine
=sps7 opsys
=usg5-2
1723 ## CCI 5/32, 6/32 -- see "Tahoe".
1726 ## I don't know what configuration name to use for this; config.sub
1727 ## doesn't seem to know anything about it. Hey, Celerity users, get
1728 ## in touch with us!
1729 celerity-celerity-bsd
* )
1730 machine
=celerity opsys
=bsd4-2
1734 ## What operating systems does this chip run that Emacs has been
1738 ## We'll use the catch-all code at the bottom to guess the
1739 ## operating system.
1743 mips-compaq-nonstopux
* )
1744 machine
=nonstopux opsys
=nonstopux
1748 *-convex-bsd* |
*-convex-convexos* )
1749 machine
=convex opsys
=bsd4-3
1750 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1751 NON_GNU_CPP
="cc -E -P"
1755 i
[3456]86-cubix-sysv* )
1756 machine
=intel386 opsys
=usg5-3
1760 cydra
*-cydrome-sysv* )
1761 machine
=cydra5 opsys
=usg5-3
1764 ## Data General AViiON Machines
1765 ## DG changed naming conventions with the release of 5.4.4.10, they
1766 ## dropped the initial 5.4 but left the intervening R. Because of the
1767 ## R this shouldn't conflict with older versions of the OS (which I
1768 ## think were named like dgux4.*). In addition, DG new AViiONs series
1769 ## uses either Motorola M88k or Intel Pentium CPUs.
1770 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1771 machine
=aviion opsys
=dgux4
1773 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1774 ## This name is dgux5-4-3 instead of dgux5-4r3
1775 ## to avoid a file name conflict on MSDOS.
1776 machine
=aviion opsys
=dgux5-4-3
1778 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1779 machine
=aviion opsys
=dgux5-4r2
1782 machine
=aviion opsys
=dgux
1785 ## Data General AViiON Intel (x86) Machines
1786 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1787 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1788 i
[345]86-dg-dguxR4* )
1789 machine
=aviion-intel opsys
=dgux4
1793 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1794 machine
=pmax opsys
=bsd4-2
1796 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1797 machine
=pmax opsys
=bsd4-3
1800 machine
=pmax opsys
=ultrix4-3
1803 machine
=pmax opsys
=osf1
1805 mips-dec-mach_bsd4.3
* )
1806 machine
=pmax opsys
=mach-bsd4-3
1809 ## Motorola Delta machines
1810 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1811 machine
=delta opsys
=usg5-3
1812 if test -z "`type gnucc | grep 'not found'`"
1814 if test -s /etc
/167config
1815 then CC
="gnucc -m68040"
1816 else CC
="gnucc -m68881"
1819 if test -z "`type gcc | grep 'not found'`"
1825 m88k-motorola-sysv4
* )
1826 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1827 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1828 # I hope there are not other 4.0 versions for this machine
1829 # which really need usg5-4 instead.
1830 machine
=delta88k opsys
=usg5-4-2
1832 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1833 machine
=delta88k opsys
=usg5-3
1838 machine
=dual opsys
=usg5-2
1840 m68
*-dual-uniplus* )
1841 machine
=dual opsys
=unipl5-2
1846 machine
=elxsi opsys
=usg5-2
1851 machine
=ns16000 opsys
=umax
1854 ## The GEC 63 - apparently, this port isn't really finished yet.
1855 # I'm sure we finished off the last of the machines, though. -- fx
1857 ## Gould Power Node and NP1
1859 machine
=gould opsys
=bsd4-2
1862 machine
=gould opsys
=bsd4-3
1865 machine
=gould-np1 opsys
=bsd4-3
1868 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1869 ## as far as Emacs is concerned).
1871 # Build needs to be different on 7.0 and later releases
1872 case "`uname -r`" in
1873 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
1874 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
1876 NON_GNU_CPP
="/lib/cpp"
1878 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1880 machine
=nh3000 opsys
=cxux
1882 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1883 powerpc-harris-powerunix
)
1884 machine
=nh6000 opsys
=powerunix
1885 NON_GNU_CPP
="cc -Xo -E -P"
1887 ## SR2001/SR2201 running HI-UX/MPP
1888 hppa1.1
-hitachi-hiuxmpp* )
1889 machine
=sr2k opsys
=hiuxmpp
1891 hppa1.1
-hitachi-hiuxwe2* )
1892 machine
=sr2k opsys
=hiuxwe2
1895 xps
*-honeywell-sysv* )
1896 machine
=xps100 opsys
=usg5-2
1899 ## HP 9000 series 200 or 300
1901 machine
=hp9000s300 opsys
=bsd4-3
1903 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1905 case "`uname -r`" in
1906 ## Someone's system reports A.B8.05 for this.
1907 ## I wonder what other possibilities there are.
1908 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1909 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1910 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
1911 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
1912 *) machine
=hp9000s300 opsys
=hpux
;;
1916 ## HP 9000 series 700 and 800, running HP/UX
1918 machine
=hp800 opsys
=hpux
1921 machine
=hp800 opsys
=hpux8
1923 hppa
*-hp-hpux9shr* )
1924 machine
=hp800 opsys
=hpux9shr
1927 machine
=hp800 opsys
=hpux9
1930 machine
=hp800 opsys
=hpux10
1932 hppa
*-hp-hpux1[1-9]* )
1933 machine
=hp800 opsys
=hpux11
1936 hppa
*-*-linux-gnu* )
1937 machine
=hp800 opsys
=gnu-linux
1940 ## HP 9000 series 700 and 800, running HP/UX
1942 ## Cross-compilation? Nah!
1943 case "`uname -r`" in
1944 ## Someone's system reports A.B8.05 for this.
1945 ## I wonder what other possibilities there are.
1946 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
1947 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
1948 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
1949 *) machine
=hp800 opsys
=hpux10
;;
1953 machine
=hp800 opsys
=nextstep
1958 machine
=orion opsys
=bsd4-2
1960 clipper-orion-bsd
* )
1961 machine
=orion105 opsys
=bsd4-2
1965 i
[3456]86-ibm-aix1.1
* )
1966 machine
=ibmps2-aix opsys
=usg5-2-2
1968 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
1969 machine
=ibmps2-aix opsys
=usg5-3
1972 machine
=ibm370aix opsys
=usg5-3
1975 machine
=ibms390 opsys
=gnu-linux
1977 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
1978 machine
=ibmrs6000 opsys
=aix3-1
1980 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
1981 machine
=ibmrs6000 opsys
=aix3-2-5
1983 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
1984 machine
=ibmrs6000 opsys
=aix4-1
1986 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
1987 machine
=ibmrs6000 opsys
=aix4-2
1989 rs6000-ibm-aix5.1
* | powerpc-ibm-aix5.1
* )
1990 machine
=ibmrs6000 opsys
=aix4-2
1992 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
1993 machine
=ibmrs6000 opsys
=aix4
1995 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
1996 machine
=ibmrs6000 opsys
=aix4-1
1998 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
1999 machine
=ibmrs6000 opsys
=aix3-2
2002 machine
=ibmrt opsys
=bsd4-3
2005 machine
=ibmrt opsys
=bsd4-2
2008 machine
=ibmrt opsys
=bsd4-3
2011 machine
=ibmrt opsys
=bsd4-2
2014 machine
=ibmrt opsys
=bsd4-3
2017 machine
=ibmrt opsys
=bsd4-3
2020 machine
=ibmrt-aix opsys
=usg5-2-2
2023 ## Integrated Solutions `Optimum V'
2025 machine
=isi-ov opsys
=bsd4-2
2028 machine
=isi-ov opsys
=bsd4-3
2031 ## Intel 386 machines where we do care about the manufacturer
2032 i
[3456]86-intsys-sysv* )
2033 machine
=is386 opsys
=usg5-2-2
2037 i
[3456]86-prime-sysv* )
2038 machine
=i386 opsys
=usg5-3
2041 ## Sequent Symmetry running Dynix
2042 i
[3456]86-sequent-bsd* )
2043 machine
=symmetry opsys
=bsd4-3
2046 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2047 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2048 machine
=sequent-ptx opsys
=ptx4
2049 NON_GNU_CPP
=/lib
/cpp
2052 ## Sequent Symmetry running DYNIX/ptx
2053 ## Use the old cpp rather than the newer ANSI one.
2054 i
[3456]86-sequent-ptx* )
2055 machine
=sequent-ptx opsys
=ptx
2056 NON_GNU_CPP
="/lib/cpp"
2059 ## ncr machine running svr4.3.
2060 i
[3456]86-ncr-sysv4.3
)
2061 machine
=ncr386 opsys
=usg5-4-3
2064 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2065 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2066 i
[3456]86-ncr-sysv* )
2067 machine
=ncr386 opsys
=usg5-4-2
2070 ## Intel Paragon OSF/1
2072 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2077 machine
=i860 opsys
=usg5-4
2078 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2079 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2082 ## Macintosh PowerPC
2083 powerpc
*-*-linux-gnu* )
2084 machine
=macppc opsys
=gnu-linux
2087 ## Masscomp machines
2088 m68
*-masscomp-rtu* )
2089 machine
=masscomp opsys
=rtu
2092 ## Megatest machines
2093 m68
*-megatest-bsd* )
2094 machine
=mega68 opsys
=bsd4-2
2097 ## Workstations sold by MIPS
2098 ## This is not necessarily all workstations using the MIPS processor -
2099 ## Irises are produced by SGI, and DECstations by DEC.
2101 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2102 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2103 ## it gives for choosing between the alternatives seems to be "Use
2104 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2105 ## the BSD world." I'll assume that these are instructions for
2106 ## handling two odd situations, and that every other situation
2107 ## should use mips.h and usg5-2-2, they being listed first.
2110 ## Fall through to the general code at the bottom to decide on the OS.
2112 mips-mips-riscos4
* )
2113 machine
=mips4 opsys
=bsd4-3
2114 NON_GNU_CC
="cc -systype bsd43"
2115 NON_GNU_CPP
="cc -systype bsd43 -E"
2117 mips-mips-riscos5
* )
2118 machine
=mips4 opsys
=riscos5
2119 NON_GNU_CC
="cc -systype bsd43"
2120 NON_GNU_CPP
="cc -systype bsd43 -E"
2123 machine
=mips opsys
=bsd4-3
2126 machine
=mips opsys
=usg5-2-2
2130 m68
*-next-* | m68k-
*-nextstep* )
2131 machine
=m68k opsys
=nextstep
2134 ## The complete machine from National Semiconductor
2136 machine
=ns32000 opsys
=usg5-2
2140 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2141 machine
=tower32 opsys
=usg5-2-2
2143 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2144 machine
=tower32v3 opsys
=usg5-3
2149 machine
=ews4800 opsys
=ux4800
2152 ## Nixdorf Targon 31
2153 m68
*-nixdorf-sysv* )
2154 machine
=targon31 opsys
=usg5-2-2
2159 machine
=nu opsys
=usg5-2
2164 machine
=plexus opsys
=usg5-2
2167 ## PowerPC reference platform
2168 powerpcle-
*-solaris2* )
2174 ## I don't really have any idea what sort of processor the Pyramid has,
2175 ## so I'm assuming it is its own architecture.
2176 pyramid-pyramid-bsd
* )
2177 machine
=pyramid opsys
=bsd4-2
2181 ns32k-sequent-bsd4.2
* )
2182 machine
=sequent opsys
=bsd4-2
2184 ns32k-sequent-bsd4.3
* )
2185 machine
=sequent opsys
=bsd4-3
2189 mips-siemens-sysv
* | mips-sni-sysv
*)
2190 machine
=mips-siemens opsys
=usg5-4
2191 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2192 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2195 ## Silicon Graphics machines
2196 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2198 machine
=irist opsys
=iris3-5
2200 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2201 machine
=irist opsys
=iris3-6
2205 machine
=iris4d opsys
=irix3-3
2208 machine
=iris4d opsys
=irix4-0
2211 machine
=iris4d opsys
=irix6-5
2212 # Without defining _LANGUAGE_C, things get masked out in the headers
2213 # so that, for instance, grepping for `free' in stdlib.h fails and
2214 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2215 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2216 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2219 machine
=iris4d opsys
=irix6-0
2220 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2221 # but presumably it does no harm.
2222 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2223 # -32 probably isn't necessary in later v.6s -- anyone know which?
2224 NON_GCC_TEST_OPTIONS
=-32
2226 mips-sgi-irix5.
[01]* )
2227 machine
=iris4d opsys
=irix5-0
2229 mips-sgi-irix5
* | mips-sgi-irix
* )
2230 machine
=iris4d opsys
=irix5-2
2235 machine
=news opsys
=bsd4-2
2238 machine
=news opsys
=bsd4-3
2240 m68
*-sony-newsos3* | m68
*-sony-news3*)
2241 machine
=news opsys
=bsd4-3
2243 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2244 machine
=news-risc opsys
=bsd4-3
2246 mips-sony-newsos6
* )
2247 machine
=news-r6 opsys
=newsos6
2250 machine
=news-risc opsys
=newsos5
2255 machine
=stride opsys
=usg5-2
2259 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2260 machine
=sparc opsys
=gnu-linux
2263 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2264 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2265 | rs6000-
*-solaris2*)
2266 case "${canonical}" in
2267 m68
*-sunos1* ) machine
=sun1
;;
2268 m68
*-sunos2* ) machine
=sun2
;;
2269 m68
* ) machine
=sun3
;;
2270 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2271 i
[3456]86-*-* ) machine
=intel386
;;
2272 powerpcle
* ) machine
=powerpcle
;;
2273 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2274 sparc
* ) machine
=sparc
;;
2277 case "${canonical}" in
2278 ## The Sun386 didn't get past 4.0.
2279 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2280 *-sunos4.0
* ) opsys
=sunos4-0
;;
2281 *-sunos4.1.
[3-9]*noshare
)
2282 ## This name is sunos413 instead of sunos4-1-3
2283 ## to avoid a file name conflict on MSDOS.
2285 NON_GNU_CPP
=/usr
/lib
/cpp
2286 NON_GCC_TEST_OPTIONS
=-Bstatic
2287 GCC_TEST_OPTIONS
=-static
2289 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2291 NON_GNU_CPP
=/usr
/lib
/cpp
2293 *-sunos4* |
*-sunos )
2295 NON_GCC_TEST_OPTIONS
=-Bstatic
2296 GCC_TEST_OPTIONS
=-static
2298 *-sunos5.3
* |
*-solaris2.3
* )
2300 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2302 *-sunos5.4
* |
*-solaris2.4
* )
2304 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2307 *-sunos5.5
* |
*-solaris2.5
* )
2309 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2312 *-sunos5* |
*-solaris* )
2314 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2318 ## Watch out for a compiler that we know will not work.
2319 case "${canonical}" in
2320 *-solaris* |
*-sunos5* )
2321 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2322 ## /usr/ucb/cc doesn't work;
2323 ## we should find some other compiler that does work.
2331 machine
=sparc opsys
=nextstep
2335 m68
*-tadpole-sysv* )
2336 machine
=tad68k opsys
=usg5-3
2340 tahoe-tahoe-bsd4.2
* )
2341 machine
=tahoe opsys
=bsd4-2
2343 tahoe-tahoe-bsd4.3
* )
2344 machine
=tahoe opsys
=bsd4-3
2347 ## Tandem Integrity S2
2349 machine
=tandem-s2 opsys
=usg5-3
2353 m88k-tektronix-sysv3
* )
2354 machine
=tekxd88 opsys
=usg5-3
2357 ## Tektronix 16000 box (6130?)
2358 ns16k-tektronix-bsd
* )
2359 machine
=ns16000 opsys
=bsd4-2
2362 ## src/m/tek4300.h hints that this is a m68k machine.
2363 m68
*-tektronix-bsd* )
2364 machine
=tek4300 opsys
=bsd4-3
2368 ## We seem to have lost the machine-description file titan.h!
2370 machine
=titan opsys
=usg5-3
2373 ## Ustation E30 (SS5E)
2374 m68
*-unisys-uniplus* )
2375 machine
=ustation opsystem
=unipl5-2
2381 case "${canonical}" in
2382 *-bsd4.1
* ) opsys
=bsd4-1
;;
2383 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2384 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2385 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2386 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2387 *-vms* ) opsys
=vms
;;
2393 ns16k-whitechapel-
* )
2395 ## We don't know what sort of OS runs on these; we'll let the
2396 ## operating system guessing code below try.
2401 machine
=wicat opsys
=usg5-2
2406 machine
=ia64 opsys
=gnu-linux
2409 ## Intel 386 machines where we don't care about the manufacturer
2412 case "${canonical}" in
2413 *-lynxos* ) opsys
=lynxos
;;
2414 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2415 *-isc2.2
* ) opsys
=isc2-2
;;
2416 *-isc4.0
* ) opsys
=isc4-0
;;
2417 *-isc4.
* ) opsys
=isc4-1
2418 GCC_TEST_OPTIONS
=-posix
2419 NON_GCC_TEST_OPTIONS
=-Xp
2421 *-isc* ) opsys
=isc3-0
;;
2422 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2423 *-esix* ) opsys
=esix
;;
2424 *-xenix* ) opsys
=xenix
;;
2425 *-linux-gnu* ) opsys
=gnu-linux
;;
2426 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2427 *-sco3.2v5
* ) opsys
=sco5
2428 NON_GNU_CPP
=/lib
/cpp
2429 # Prevent -belf from being passed to $CPP.
2430 # /lib/cpp does not accept it.
2431 OVERRIDE_CPPFLAGS
=" "
2433 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2434 *-386bsd* ) opsys
=386bsd
;;
2435 *-nextstep* ) opsys
=nextstep
;;
2436 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2440 ## m68k Linux-based GNU system
2442 machine
=m68k opsys
=gnu-linux
2445 ## Mips Linux-based GNU system
2447 machine
=mips opsys
=gnu-linux
2451 sparc-fujitsu-sysv4
* )
2452 machine
=sparc opsys
=uxpds
2453 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2458 f301-fujitsu-uxpv4.1
)
2459 machine
=f301 opsys
=uxpv
2467 ### If the code above didn't choose an operating system, just choose
2468 ### an operating system based on the configuration name. You really
2469 ### only want to use this when you have no idea what the right
2470 ### operating system is; if you know what operating systems a machine
2471 ### runs, it's cleaner to make it explicit in the case statement
2473 if test x
"${opsys}" = x
; then
2474 case "${canonical}" in
2475 *-gnu* ) opsys
=gnu
;;
2476 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2477 *-bsd4.2
) opsys
=bsd4-2
;;
2478 *-bsd4.3
) opsys
=bsd4-3
;;
2479 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2480 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2481 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2482 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2483 *-sysv4.2uw
* ) opsys
=unixware
;;
2484 *-sysv4.1
* |
*-sysvr4.1
* )
2485 NON_GNU_CPP
=/usr
/lib
/cpp
2487 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2488 if [ x
$NON_GNU_CPP = x
]; then
2489 if [ -f /usr
/ccs
/lib
/cpp
]; then
2490 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2492 NON_GNU_CPP
=/lib
/cpp
2496 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2504 if test $unported = yes; then
2505 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2506 Check \`etc/MACHINES' for recognized configuration names." >&5
2507 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2508 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2509 { (exit 1); exit 1; }; }
2512 machfile
="m/${machine}.h"
2513 opsysfile
="s/${opsys}.h"
2516 #### Choose a compiler.
2517 test -n "$CC" && cc_specified
=yes
2519 # Save the value of CFLAGS that the user specified.
2520 SPECIFIED_CFLAGS
="$CFLAGS"
2523 "yes" ) CC
="gcc" GCC
=yes ;;
2524 "no" ) : ${CC=cc} ;;
2528 ac_cpp
='$CPP $CPPFLAGS'
2529 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2530 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2531 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2532 if test -n "$ac_tool_prefix"; then
2533 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2534 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2535 echo "$as_me:$LINENO: checking for $ac_word" >&5
2536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2537 if test "${ac_cv_prog_CC+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
2540 if test -n "$CC"; then
2541 ac_cv_prog_CC
="$CC" # Let the user override the test.
2543 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2547 test -z "$as_dir" && as_dir
=.
2548 for ac_exec_ext
in '' $ac_executable_extensions; do
2549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2550 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2560 if test -n "$CC"; then
2561 echo "$as_me:$LINENO: result: $CC" >&5
2562 echo "${ECHO_T}$CC" >&6
2564 echo "$as_me:$LINENO: result: no" >&5
2565 echo "${ECHO_T}no" >&6
2569 if test -z "$ac_cv_prog_CC"; then
2571 # Extract the first word of "gcc", so it can be a program name with args.
2572 set dummy gcc
; ac_word
=$2
2573 echo "$as_me:$LINENO: checking for $ac_word" >&5
2574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2575 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2576 echo $ECHO_N "(cached) $ECHO_C" >&6
2578 if test -n "$ac_ct_CC"; then
2579 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2581 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2585 test -z "$as_dir" && as_dir
=.
2586 for ac_exec_ext
in '' $ac_executable_extensions; do
2587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2588 ac_cv_prog_ac_ct_CC
="gcc"
2589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2597 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2598 if test -n "$ac_ct_CC"; then
2599 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2600 echo "${ECHO_T}$ac_ct_CC" >&6
2602 echo "$as_me:$LINENO: result: no" >&5
2603 echo "${ECHO_T}no" >&6
2611 if test -z "$CC"; then
2612 if test -n "$ac_tool_prefix"; then
2613 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2614 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2615 echo "$as_me:$LINENO: checking for $ac_word" >&5
2616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2617 if test "${ac_cv_prog_CC+set}" = set; then
2618 echo $ECHO_N "(cached) $ECHO_C" >&6
2620 if test -n "$CC"; then
2621 ac_cv_prog_CC
="$CC" # Let the user override the test.
2623 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2627 test -z "$as_dir" && as_dir
=.
2628 for ac_exec_ext
in '' $ac_executable_extensions; do
2629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2630 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2640 if test -n "$CC"; then
2641 echo "$as_me:$LINENO: result: $CC" >&5
2642 echo "${ECHO_T}$CC" >&6
2644 echo "$as_me:$LINENO: result: no" >&5
2645 echo "${ECHO_T}no" >&6
2649 if test -z "$ac_cv_prog_CC"; then
2651 # Extract the first word of "cc", so it can be a program name with args.
2652 set dummy cc
; ac_word
=$2
2653 echo "$as_me:$LINENO: checking for $ac_word" >&5
2654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2655 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2656 echo $ECHO_N "(cached) $ECHO_C" >&6
2658 if test -n "$ac_ct_CC"; then
2659 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2661 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2665 test -z "$as_dir" && as_dir
=.
2666 for ac_exec_ext
in '' $ac_executable_extensions; do
2667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2668 ac_cv_prog_ac_ct_CC
="cc"
2669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2677 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2678 if test -n "$ac_ct_CC"; then
2679 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2680 echo "${ECHO_T}$ac_ct_CC" >&6
2682 echo "$as_me:$LINENO: result: no" >&5
2683 echo "${ECHO_T}no" >&6
2692 if test -z "$CC"; then
2693 # Extract the first word of "cc", so it can be a program name with args.
2694 set dummy cc
; ac_word
=$2
2695 echo "$as_me:$LINENO: checking for $ac_word" >&5
2696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2697 if test "${ac_cv_prog_CC+set}" = set; then
2698 echo $ECHO_N "(cached) $ECHO_C" >&6
2700 if test -n "$CC"; then
2701 ac_cv_prog_CC
="$CC" # Let the user override the test.
2704 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2708 test -z "$as_dir" && as_dir
=.
2709 for ac_exec_ext
in '' $ac_executable_extensions; do
2710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2711 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2712 ac_prog_rejected
=yes
2716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2722 if test $ac_prog_rejected = yes; then
2723 # We found a bogon in the path, so make sure we never use it.
2724 set dummy
$ac_cv_prog_CC
2726 if test $# != 0; then
2727 # We chose a different compiler from the bogus one.
2728 # However, it has the same basename, so the bogon will be chosen
2729 # first if we set CC to just the basename; use the full file name.
2731 set dummy
"$as_dir/$ac_word" ${1+"$@"}
2739 if test -n "$CC"; then
2740 echo "$as_me:$LINENO: result: $CC" >&5
2741 echo "${ECHO_T}$CC" >&6
2743 echo "$as_me:$LINENO: result: no" >&5
2744 echo "${ECHO_T}no" >&6
2748 if test -z "$CC"; then
2749 if test -n "$ac_tool_prefix"; then
2752 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2753 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2754 echo "$as_me:$LINENO: checking for $ac_word" >&5
2755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2756 if test "${ac_cv_prog_CC+set}" = set; then
2757 echo $ECHO_N "(cached) $ECHO_C" >&6
2759 if test -n "$CC"; then
2760 ac_cv_prog_CC
="$CC" # Let the user override the test.
2762 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2766 test -z "$as_dir" && as_dir
=.
2767 for ac_exec_ext
in '' $ac_executable_extensions; do
2768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2769 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2779 if test -n "$CC"; then
2780 echo "$as_me:$LINENO: result: $CC" >&5
2781 echo "${ECHO_T}$CC" >&6
2783 echo "$as_me:$LINENO: result: no" >&5
2784 echo "${ECHO_T}no" >&6
2787 test -n "$CC" && break
2790 if test -z "$CC"; then
2794 # Extract the first word of "$ac_prog", so it can be a program name with args.
2795 set dummy
$ac_prog; ac_word
=$2
2796 echo "$as_me:$LINENO: checking for $ac_word" >&5
2797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2798 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2799 echo $ECHO_N "(cached) $ECHO_C" >&6
2801 if test -n "$ac_ct_CC"; then
2802 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2804 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2808 test -z "$as_dir" && as_dir
=.
2809 for ac_exec_ext
in '' $ac_executable_extensions; do
2810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2811 ac_cv_prog_ac_ct_CC
="$ac_prog"
2812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2820 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2821 if test -n "$ac_ct_CC"; then
2822 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2823 echo "${ECHO_T}$ac_ct_CC" >&6
2825 echo "$as_me:$LINENO: result: no" >&5
2826 echo "${ECHO_T}no" >&6
2829 test -n "$ac_ct_CC" && break
2838 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2839 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2840 { (exit 1); exit 1; }; }
2842 # Provide some information about the compiler.
2843 echo "$as_me:$LINENO:" \
2844 "checking for C compiler version" >&5
2845 ac_compiler
=`set X $ac_compile; echo $2`
2846 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2847 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }
2851 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2852 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); }
2856 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2857 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); }
2862 cat >conftest.
$ac_ext <<_ACEOF
2863 #line $LINENO "configure"
2864 #include "confdefs.h"
2866 #ifdef F77_DUMMY_MAIN
2870 int F77_DUMMY_MAIN() { return 1; }
2880 ac_clean_files_save
=$ac_clean_files
2881 ac_clean_files
="$ac_clean_files a.out a.exe"
2882 # Try to create an executable without -o first, disregard a.out.
2883 # It will help us diagnose broken compilers, and finding out an intuition
2885 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2886 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2887 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2888 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2889 (eval $ac_link_default) 2>&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }; then
2893 # Find the output, starting from the most likely. This scheme is
2894 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2897 # Be careful to initialize this variable, since it used to be cached.
2898 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2900 for ac_file
in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2901 ls a.out conftest 2>/dev/null;
2902 ls a.* conftest.* 2>/dev/null`; do
2904 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM
) ;;
2905 a.out
) # We found the default executable, but exeext='' is most
2908 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2909 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2916 echo "$as_me: failed program was:" >&5
2917 cat conftest.
$ac_ext >&5
2918 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2919 echo "$as_me: error: C compiler cannot create executables" >&2;}
2920 { (exit 77); exit 77; }; }
2923 ac_exeext
=$ac_cv_exeext
2924 echo "$as_me:$LINENO: result: $ac_file" >&5
2925 echo "${ECHO_T}$ac_file" >&6
2927 # Check the compiler produces executables we can run. If not, either
2928 # the compiler is broken, or we cross compile.
2929 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2930 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2931 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2932 # If not cross compiling, check that we can run a simple program.
2933 if test "$cross_compiling" != yes; then
2934 if { ac_try
='./$ac_file'
2935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }; }; then
2942 if test "$cross_compiling" = maybe
; then
2945 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2946 If you meant to cross compile, use \`--host'." >&5
2947 echo "$as_me: error: cannot run C compiled programs.
2948 If you meant to cross compile, use \`--host'." >&2;}
2949 { (exit 1); exit 1; }; }
2953 echo "$as_me:$LINENO: result: yes" >&5
2954 echo "${ECHO_T}yes" >&6
2956 rm -f a.out a.exe conftest
$ac_cv_exeext
2957 ac_clean_files
=$ac_clean_files_save
2958 # Check the compiler produces executables we can run. If not, either
2959 # the compiler is broken, or we cross compile.
2960 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2961 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2962 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2963 echo "${ECHO_T}$cross_compiling" >&6
2965 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2966 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2968 (eval $ac_link) 2>&5
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); }; then
2972 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2973 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2974 # work properly (i.e., refer to `conftest.exe'), while it won't with
2976 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2978 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2979 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2986 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2987 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2988 { (exit 1); exit 1; }; }
2991 rm -f conftest
$ac_cv_exeext
2992 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2993 echo "${ECHO_T}$ac_cv_exeext" >&6
2995 rm -f conftest.
$ac_ext
2996 EXEEXT
=$ac_cv_exeext
2998 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2999 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3000 if test "${ac_cv_objext+set}" = set; then
3001 echo $ECHO_N "(cached) $ECHO_C" >&6
3003 cat >conftest.
$ac_ext <<_ACEOF
3004 #line $LINENO "configure"
3005 #include "confdefs.h"
3007 #ifdef F77_DUMMY_MAIN
3011 int F77_DUMMY_MAIN() { return 1; }
3021 rm -f conftest.o conftest.obj
3022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3023 (eval $ac_compile) 2>&5
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); }; then
3027 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3029 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
3030 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3035 echo "$as_me: failed program was:" >&5
3036 cat conftest.
$ac_ext >&5
3037 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
3038 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
3039 { (exit 1); exit 1; }; }
3042 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3044 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3045 echo "${ECHO_T}$ac_cv_objext" >&6
3046 OBJEXT
=$ac_cv_objext
3048 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3049 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3050 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3051 echo $ECHO_N "(cached) $ECHO_C" >&6
3053 cat >conftest.
$ac_ext <<_ACEOF
3054 #line $LINENO "configure"
3055 #include "confdefs.h"
3057 #ifdef F77_DUMMY_MAIN
3061 int F77_DUMMY_MAIN() { return 1; }
3074 rm -f conftest.
$ac_objext
3075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3076 (eval $ac_compile) 2>&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); } &&
3080 { ac_try
='test -s conftest.$ac_objext'
3081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); }; }; then
3088 echo "$as_me: failed program was:" >&5
3089 cat conftest.
$ac_ext >&5
3092 rm -f conftest.
$ac_objext conftest.
$ac_ext
3093 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3096 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3097 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3098 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3099 ac_test_CFLAGS
=${CFLAGS+set}
3100 ac_save_CFLAGS
=$CFLAGS
3102 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3103 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3104 if test "${ac_cv_prog_cc_g+set}" = set; then
3105 echo $ECHO_N "(cached) $ECHO_C" >&6
3107 cat >conftest.
$ac_ext <<_ACEOF
3108 #line $LINENO "configure"
3109 #include "confdefs.h"
3111 #ifdef F77_DUMMY_MAIN
3115 int F77_DUMMY_MAIN() { return 1; }
3125 rm -f conftest.
$ac_objext
3126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3127 (eval $ac_compile) 2>&5
3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130 (exit $ac_status); } &&
3131 { ac_try
='test -s conftest.$ac_objext'
3132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); }; }; then
3139 echo "$as_me: failed program was:" >&5
3140 cat conftest.
$ac_ext >&5
3143 rm -f conftest.
$ac_objext conftest.
$ac_ext
3145 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3146 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3147 if test "$ac_test_CFLAGS" = set; then
3148 CFLAGS
=$ac_save_CFLAGS
3149 elif test $ac_cv_prog_cc_g = yes; then
3150 if test "$GCC" = yes; then
3156 if test "$GCC" = yes; then
3162 # Some people use a C++ compiler to compile C. Since we use `exit',
3163 # in C++ we need to declare it. In case someone uses the same compiler
3164 # for both compiling C and C++ we need to have the C++ compiler decide
3165 # the declaration of exit, since it's the most demanding environment.
3166 cat >conftest.
$ac_ext <<_ACEOF
3171 rm -f conftest.
$ac_objext
3172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3173 (eval $ac_compile) 2>&5
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); } &&
3177 { ac_try
='test -s conftest.$ac_objext'
3178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }; }; then
3183 for ac_declaration
in \
3185 '#include <stdlib.h>' \
3186 'extern "C" void std::exit (int) throw (); using std::exit;' \
3187 'extern "C" void std::exit (int); using std::exit;' \
3188 'extern "C" void exit (int) throw ();' \
3189 'extern "C" void exit (int);' \
3192 cat >conftest.
$ac_ext <<_ACEOF
3193 #line $LINENO "configure"
3194 #include "confdefs.h"
3197 #ifdef F77_DUMMY_MAIN
3201 int F77_DUMMY_MAIN() { return 1; }
3211 rm -f conftest.
$ac_objext
3212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3213 (eval $ac_compile) 2>&5
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); } &&
3217 { ac_try
='test -s conftest.$ac_objext'
3218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222 (exit $ac_status); }; }; then
3225 echo "$as_me: failed program was:" >&5
3226 cat conftest.
$ac_ext >&5
3229 rm -f conftest.
$ac_objext conftest.
$ac_ext
3230 cat >conftest.
$ac_ext <<_ACEOF
3231 #line $LINENO "configure"
3232 #include "confdefs.h"
3234 #ifdef F77_DUMMY_MAIN
3238 int F77_DUMMY_MAIN() { return 1; }
3248 rm -f conftest.
$ac_objext
3249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3250 (eval $ac_compile) 2>&5
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); } &&
3254 { ac_try
='test -s conftest.$ac_objext'
3255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }; }; then
3262 echo "$as_me: failed program was:" >&5
3263 cat conftest.
$ac_ext >&5
3265 rm -f conftest.
$ac_objext conftest.
$ac_ext
3268 if test -n "$ac_declaration"; then
3269 echo '#ifdef __cplusplus' >>confdefs.h
3270 echo $ac_declaration >>confdefs.h
3271 echo '#endif' >>confdefs.h
3275 echo "$as_me: failed program was:" >&5
3276 cat conftest.
$ac_ext >&5
3278 rm -f conftest.
$ac_objext conftest.
$ac_ext
3280 ac_cpp
='$CPP $CPPFLAGS'
3281 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3282 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3283 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3286 # On Suns, sometimes $CPP names a directory.
3287 if test -n "$CPP" && test -d "$CPP"; then
3291 #### Some systems specify a CPP to use unless we are using GCC.
3292 #### Now that we know whether we are using GCC, we can decide whether
3293 #### to use that one.
3294 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3299 #### Some systems specify a CC to use unless we are using GCC.
3300 #### Now that we know whether we are using GCC, we can decide whether
3301 #### to use that one.
3302 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3303 test x
$cc_specified != xyes
3308 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3310 CC
="$CC $GCC_TEST_OPTIONS"
3313 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3315 CC
="$CC $NON_GCC_TEST_OPTIONS"
3318 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
3320 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
3323 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
3325 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
3328 #### Some other nice autoconf tests. If you add a test here which
3329 #### should make an entry in src/config.h, don't forget to add an
3330 #### #undef clause to src/config.h.in for autoconf to modify.
3332 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3333 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3335 if test "$LN_S" = "ln -s"; then
3336 echo "$as_me:$LINENO: result: yes" >&5
3337 echo "${ECHO_T}yes" >&6
3339 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3340 echo "${ECHO_T}no, using $LN_S" >&6
3344 ac_cpp
='$CPP $CPPFLAGS'
3345 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3346 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3347 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3348 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3349 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3350 # On Suns, sometimes $CPP names a directory.
3351 if test -n "$CPP" && test -d "$CPP"; then
3354 if test -z "$CPP"; then
3355 if test "${ac_cv_prog_CPP+set}" = set; then
3356 echo $ECHO_N "(cached) $ECHO_C" >&6
3358 # Double quotes because CPP needs to be expanded
3359 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3362 for ac_c_preproc_warn_flag
in '' yes
3364 # Use a header file that comes with gcc, so configuring glibc
3365 # with a fresh cross-compiler works.
3366 # On the NeXT, cc -E runs the code through the compiler's parser,
3367 # not just through cpp. "Syntax error" is here to catch this case.
3368 cat >conftest.
$ac_ext <<_ACEOF
3369 #line $LINENO "configure"
3370 #include "confdefs.h"
3374 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3375 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3377 egrep -v '^ *\+' conftest.er1
>conftest.err
3379 cat conftest.err
>&5
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); } >/dev
/null
; then
3382 if test -s conftest.err
; then
3383 ac_cpp_err
=$ac_c_preproc_warn_flag
3390 if test -z "$ac_cpp_err"; then
3393 echo "$as_me: failed program was:" >&5
3394 cat conftest.
$ac_ext >&5
3395 # Broken: fails on valid input.
3398 rm -f conftest.err conftest.
$ac_ext
3400 # OK, works on sane cases. Now check whether non-existent headers
3401 # can be detected and how.
3402 cat >conftest.
$ac_ext <<_ACEOF
3403 #line $LINENO "configure"
3404 #include "confdefs.h"
3405 #include <ac_nonexistent.h>
3407 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3408 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3410 egrep -v '^ *\+' conftest.er1
>conftest.err
3412 cat conftest.err
>&5
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); } >/dev
/null
; then
3415 if test -s conftest.err
; then
3416 ac_cpp_err
=$ac_c_preproc_warn_flag
3423 if test -z "$ac_cpp_err"; then
3424 # Broken: success on invalid input.
3427 echo "$as_me: failed program was:" >&5
3428 cat conftest.
$ac_ext >&5
3429 # Passes both tests.
3433 rm -f conftest.err conftest.
$ac_ext
3436 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3437 rm -f conftest.err conftest.
$ac_ext
3438 if $ac_preproc_ok; then
3450 echo "$as_me:$LINENO: result: $CPP" >&5
3451 echo "${ECHO_T}$CPP" >&6
3453 for ac_c_preproc_warn_flag
in '' yes
3455 # Use a header file that comes with gcc, so configuring glibc
3456 # with a fresh cross-compiler works.
3457 # On the NeXT, cc -E runs the code through the compiler's parser,
3458 # not just through cpp. "Syntax error" is here to catch this case.
3459 cat >conftest.
$ac_ext <<_ACEOF
3460 #line $LINENO "configure"
3461 #include "confdefs.h"
3465 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3466 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3468 egrep -v '^ *\+' conftest.er1
>conftest.err
3470 cat conftest.err
>&5
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); } >/dev
/null
; then
3473 if test -s conftest.err
; then
3474 ac_cpp_err
=$ac_c_preproc_warn_flag
3481 if test -z "$ac_cpp_err"; then
3484 echo "$as_me: failed program was:" >&5
3485 cat conftest.
$ac_ext >&5
3486 # Broken: fails on valid input.
3489 rm -f conftest.err conftest.
$ac_ext
3491 # OK, works on sane cases. Now check whether non-existent headers
3492 # can be detected and how.
3493 cat >conftest.
$ac_ext <<_ACEOF
3494 #line $LINENO "configure"
3495 #include "confdefs.h"
3496 #include <ac_nonexistent.h>
3498 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3499 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3501 egrep -v '^ *\+' conftest.er1
>conftest.err
3503 cat conftest.err
>&5
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); } >/dev
/null
; then
3506 if test -s conftest.err
; then
3507 ac_cpp_err
=$ac_c_preproc_warn_flag
3514 if test -z "$ac_cpp_err"; then
3515 # Broken: success on invalid input.
3518 echo "$as_me: failed program was:" >&5
3519 cat conftest.
$ac_ext >&5
3520 # Passes both tests.
3524 rm -f conftest.err conftest.
$ac_ext
3527 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3528 rm -f conftest.err conftest.
$ac_ext
3529 if $ac_preproc_ok; then
3532 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3533 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3534 { (exit 1); exit 1; }; }
3538 ac_cpp
='$CPP $CPPFLAGS'
3539 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3540 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3541 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3543 # Find a good install program. We prefer a C program (faster),
3544 # so one script is as good as another. But avoid the broken or
3545 # incompatible versions:
3546 # SysV /etc/install, /usr/sbin/install
3547 # SunOS /usr/etc/install
3548 # IRIX /sbin/install
3550 # AmigaOS /C/install, which installs bootblocks on floppy discs
3551 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3552 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3553 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3554 # ./install, which can be erroneously created by make from ./install.sh.
3555 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3556 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3557 if test -z "$INSTALL"; then
3558 if test "${ac_cv_path_install+set}" = set; then
3559 echo $ECHO_N "(cached) $ECHO_C" >&6
3561 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3565 test -z "$as_dir" && as_dir
=.
3566 # Account for people who put trailing slashes in PATH elements.
3568 .
/ | .
// |
/cC
/* | \
3569 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3572 # OSF1 and SCO ODT 3.0 have their own names for install.
3573 # Don't use installbsd from OSF since it installs stuff as root
3575 for ac_prog
in ginstall scoinst
install; do
3576 for ac_exec_ext
in '' $ac_executable_extensions; do
3577 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3578 if test $ac_prog = install &&
3579 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3580 # AIX install. It has an incompatible calling convention.
3582 elif test $ac_prog = install &&
3583 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3584 # program-specific install script used by HP pwplus--don't use.
3587 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3599 if test "${ac_cv_path_install+set}" = set; then
3600 INSTALL
=$ac_cv_path_install
3602 # As a last resort, use the slow shell script. We don't cache a
3603 # path for INSTALL within a source directory, because that will
3604 # break other packages using the cache if that directory is
3605 # removed, or if the path is relative.
3606 INSTALL
=$ac_install_sh
3609 echo "$as_me:$LINENO: result: $INSTALL" >&5
3610 echo "${ECHO_T}$INSTALL" >&6
3612 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3613 # It thinks the first close brace ends the variable substitution.
3614 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3616 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3618 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3620 for ac_prog
in 'bison -y' byacc
3622 # Extract the first word of "$ac_prog", so it can be a program name with args.
3623 set dummy
$ac_prog; ac_word
=$2
3624 echo "$as_me:$LINENO: checking for $ac_word" >&5
3625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3626 if test "${ac_cv_prog_YACC+set}" = set; then
3627 echo $ECHO_N "(cached) $ECHO_C" >&6
3629 if test -n "$YACC"; then
3630 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3632 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3636 test -z "$as_dir" && as_dir
=.
3637 for ac_exec_ext
in '' $ac_executable_extensions; do
3638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3639 ac_cv_prog_YACC
="$ac_prog"
3640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3648 YACC
=$ac_cv_prog_YACC
3649 if test -n "$YACC"; then
3650 echo "$as_me:$LINENO: result: $YACC" >&5
3651 echo "${ECHO_T}$YACC" >&6
3653 echo "$as_me:$LINENO: result: no" >&5
3654 echo "${ECHO_T}no" >&6
3657 test -n "$YACC" && break
3659 test -n "$YACC" || YACC
="yacc"
3661 if test "x$RANLIB" = x
; then
3662 if test -n "$ac_tool_prefix"; then
3663 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3664 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3665 echo "$as_me:$LINENO: checking for $ac_word" >&5
3666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3667 if test "${ac_cv_prog_RANLIB+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3670 if test -n "$RANLIB"; then
3671 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3673 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3677 test -z "$as_dir" && as_dir
=.
3678 for ac_exec_ext
in '' $ac_executable_extensions; do
3679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3680 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3689 RANLIB
=$ac_cv_prog_RANLIB
3690 if test -n "$RANLIB"; then
3691 echo "$as_me:$LINENO: result: $RANLIB" >&5
3692 echo "${ECHO_T}$RANLIB" >&6
3694 echo "$as_me:$LINENO: result: no" >&5
3695 echo "${ECHO_T}no" >&6
3699 if test -z "$ac_cv_prog_RANLIB"; then
3700 ac_ct_RANLIB
=$RANLIB
3701 # Extract the first word of "ranlib", so it can be a program name with args.
3702 set dummy ranlib
; ac_word
=$2
3703 echo "$as_me:$LINENO: checking for $ac_word" >&5
3704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3705 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3706 echo $ECHO_N "(cached) $ECHO_C" >&6
3708 if test -n "$ac_ct_RANLIB"; then
3709 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3711 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3715 test -z "$as_dir" && as_dir
=.
3716 for ac_exec_ext
in '' $ac_executable_extensions; do
3717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3718 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3725 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3728 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3729 if test -n "$ac_ct_RANLIB"; then
3730 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3731 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3733 echo "$as_me:$LINENO: result: no" >&5
3734 echo "${ECHO_T}no" >&6
3737 RANLIB
=$ac_ct_RANLIB
3739 RANLIB
="$ac_cv_prog_RANLIB"
3747 echo "$as_me:$LINENO: checking for AIX" >&5
3748 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3749 cat >conftest.
$ac_ext <<_ACEOF
3750 #line $LINENO "configure"
3751 #include "confdefs.h"
3757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3758 egrep "yes" >/dev
/null
2>&1; then
3759 echo "$as_me:$LINENO: result: yes" >&5
3760 echo "${ECHO_T}yes" >&6
3761 cat >>confdefs.h
<<\_ACEOF
3762 #define _ALL_SOURCE 1
3766 echo "$as_me:$LINENO: result: no" >&5
3767 echo "${ECHO_T}no" >&6
3773 #### Extract some information from the operating system and machine files.
3775 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
3776 - which libraries the lib-src programs will want, and
3777 - whether the GNU malloc routines are usable..." >&5
3778 echo "$as_me: checking the machine- and system-dependent files to find out
3779 - which libraries the lib-src programs will want, and
3780 - whether the GNU malloc routines are usable..." >&6;}
3782 ### First figure out CFLAGS (which we use for running the compiler here)
3783 ### and REAL_CFLAGS (which we use for real compilation).
3784 ### The two are the same except on a few systems, where they are made
3785 ### different to work around various lossages. For example,
3786 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
3787 ### as implying static linking.
3789 ### If the CFLAGS env var is specified, we use that value
3790 ### instead of the default.
3792 ### It's not important that this name contain the PID; you can't run
3793 ### two configures in the same directory and have anything work
3795 tempcname
="conftest.c"
3798 #include "'${srcdir}'/src/'${opsysfile}'"
3799 #include "'${srcdir}'/src/'${machfile}'"
3800 #ifndef LIBS_MACHINE
3801 #define LIBS_MACHINE
3806 #ifndef C_SWITCH_SYSTEM
3807 #define C_SWITCH_SYSTEM
3809 #ifndef C_SWITCH_MACHINE
3810 #define C_SWITCH_MACHINE
3812 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
3813 configure___ c_switch_system=C_SWITCH_SYSTEM
3814 configure___ c_switch_machine=C_SWITCH_MACHINE
3817 #define LIB_X11_LIB -lX11
3820 #ifndef LIBX11_MACHINE
3821 #define LIBX11_MACHINE
3824 #ifndef LIBX11_SYSTEM
3825 #define LIBX11_SYSTEM
3827 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
3830 configure___ unexec=UNEXEC
3832 configure___ unexec=unexec.o
3835 #ifdef SYSTEM_MALLOC
3836 configure___ system_malloc=yes
3838 configure___ system_malloc=no
3841 #ifdef USE_MMAP_FOR_BUFFERS
3842 configure___ use_mmap_for_buffers=yes
3844 configure___ use_mmap_for_buffers=no
3847 #ifndef C_DEBUG_SWITCH
3848 #define C_DEBUG_SWITCH -g
3851 #ifndef C_OPTIMIZE_SWITCH
3853 #define C_OPTIMIZE_SWITCH -O2
3855 #define C_OPTIMIZE_SWITCH -O
3859 #ifndef LD_SWITCH_MACHINE
3860 #define LD_SWITCH_MACHINE
3863 #ifndef LD_SWITCH_SYSTEM
3864 #define LD_SWITCH_SYSTEM
3867 #ifndef LD_SWITCH_X_SITE_AUX
3868 #define LD_SWITCH_X_SITE_AUX
3871 configure___ ld_switch_system=LD_SWITCH_SYSTEM
3872 configure___ ld_switch_machine=LD_SWITCH_MACHINE
3874 #ifdef THIS_IS_CONFIGURE
3876 /* Get the CFLAGS for tests in configure. */
3878 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3880 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3883 #else /* not THIS_IS_CONFIGURE */
3885 /* Get the CFLAGS for real compilation. */
3887 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3889 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3892 #endif /* not THIS_IS_CONFIGURE */
3895 # The value of CPP is a quoted variable reference, so we need to do this
3896 # to get its actual value...
3897 CPP
=`eval "echo $CPP"`
3898 eval `${CPP} -Isrc ${tempcname} \
3899 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3900 if test "x$SPECIFIED_CFLAGS" = x
; then
3901 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
3902 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3904 REAL_CFLAGS
="$CFLAGS"
3908 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
3910 ### Make sure subsequent tests use flags consistent with the build flags.
3912 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
3913 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
3915 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
3918 # Check whether --enable-largefile or --disable-largefile was given.
3919 if test "${enable_largefile+set}" = set; then
3920 enableval
="$enable_largefile"
3923 if test "$enable_largefile" != no
; then
3925 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3926 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3927 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3928 echo $ECHO_N "(cached) $ECHO_C" >&6
3930 ac_cv_sys_largefile_CC
=no
3931 if test "$GCC" != yes; then
3934 # IRIX 6.2 and later do not support large files by default,
3935 # so use the C compiler's -n32 option if that helps.
3936 cat >conftest.
$ac_ext <<_ACEOF
3937 #line $LINENO "configure"
3938 #include "confdefs.h"
3939 #include <sys/types.h>
3940 /* Check that off_t can represent 2**63 - 1 correctly.
3941 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3942 since some C++ compilers masquerading as C compilers
3943 incorrectly reject 9223372036854775807. */
3944 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3945 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3946 && LARGE_OFF_T % 2147483647 == 1)
3948 #ifdef F77_DUMMY_MAIN
3952 int F77_DUMMY_MAIN() { return 1; }
3962 rm -f conftest.
$ac_objext
3963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3964 (eval $ac_compile) 2>&5
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); } &&
3968 { ac_try
='test -s conftest.$ac_objext'
3969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); }; }; then
3976 echo "$as_me: failed program was:" >&5
3977 cat conftest.
$ac_ext >&5
3979 rm -f conftest.
$ac_objext
3981 rm -f conftest.
$ac_objext
3982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3983 (eval $ac_compile) 2>&5
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); } &&
3987 { ac_try
='test -s conftest.$ac_objext'
3988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); }; }; then
3993 ac_cv_sys_largefile_CC
=' -n32'; break
3995 echo "$as_me: failed program was:" >&5
3996 cat conftest.
$ac_ext >&5
3998 rm -f conftest.
$ac_objext
4002 rm -f conftest.
$ac_ext
4005 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4006 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4007 if test "$ac_cv_sys_largefile_CC" != no
; then
4008 CC
=$CC$ac_cv_sys_largefile_CC
4011 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4012 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4013 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4014 echo $ECHO_N "(cached) $ECHO_C" >&6
4017 ac_cv_sys_file_offset_bits
=no
4018 cat >conftest.
$ac_ext <<_ACEOF
4019 #line $LINENO "configure"
4020 #include "confdefs.h"
4021 #include <sys/types.h>
4022 /* Check that off_t can represent 2**63 - 1 correctly.
4023 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4024 since some C++ compilers masquerading as C compilers
4025 incorrectly reject 9223372036854775807. */
4026 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4027 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4028 && LARGE_OFF_T % 2147483647 == 1)
4030 #ifdef F77_DUMMY_MAIN
4034 int F77_DUMMY_MAIN() { return 1; }
4044 rm -f conftest.
$ac_objext
4045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4046 (eval $ac_compile) 2>&5
4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049 (exit $ac_status); } &&
4050 { ac_try
='test -s conftest.$ac_objext'
4051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055 (exit $ac_status); }; }; then
4058 echo "$as_me: failed program was:" >&5
4059 cat conftest.
$ac_ext >&5
4061 rm -f conftest.
$ac_objext conftest.
$ac_ext
4062 cat >conftest.
$ac_ext <<_ACEOF
4063 #line $LINENO "configure"
4064 #include "confdefs.h"
4065 #define _FILE_OFFSET_BITS 64
4066 #include <sys/types.h>
4067 /* Check that off_t can represent 2**63 - 1 correctly.
4068 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4069 since some C++ compilers masquerading as C compilers
4070 incorrectly reject 9223372036854775807. */
4071 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4072 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4073 && LARGE_OFF_T % 2147483647 == 1)
4075 #ifdef F77_DUMMY_MAIN
4079 int F77_DUMMY_MAIN() { return 1; }
4089 rm -f conftest.
$ac_objext
4090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4091 (eval $ac_compile) 2>&5
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); } &&
4095 { ac_try
='test -s conftest.$ac_objext'
4096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); }; }; then
4101 ac_cv_sys_file_offset_bits
=64; break
4103 echo "$as_me: failed program was:" >&5
4104 cat conftest.
$ac_ext >&5
4106 rm -f conftest.
$ac_objext conftest.
$ac_ext
4110 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4111 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4112 if test "$ac_cv_sys_file_offset_bits" != no
; then
4114 cat >>confdefs.h
<<_ACEOF
4115 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4120 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4121 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4122 if test "${ac_cv_sys_large_files+set}" = set; then
4123 echo $ECHO_N "(cached) $ECHO_C" >&6
4126 ac_cv_sys_large_files
=no
4127 cat >conftest.
$ac_ext <<_ACEOF
4128 #line $LINENO "configure"
4129 #include "confdefs.h"
4130 #include <sys/types.h>
4131 /* Check that off_t can represent 2**63 - 1 correctly.
4132 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4133 since some C++ compilers masquerading as C compilers
4134 incorrectly reject 9223372036854775807. */
4135 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4136 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4137 && LARGE_OFF_T % 2147483647 == 1)
4139 #ifdef F77_DUMMY_MAIN
4143 int F77_DUMMY_MAIN() { return 1; }
4153 rm -f conftest.
$ac_objext
4154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4155 (eval $ac_compile) 2>&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); } &&
4159 { ac_try
='test -s conftest.$ac_objext'
4160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }; }; then
4167 echo "$as_me: failed program was:" >&5
4168 cat conftest.
$ac_ext >&5
4170 rm -f conftest.
$ac_objext conftest.
$ac_ext
4171 cat >conftest.
$ac_ext <<_ACEOF
4172 #line $LINENO "configure"
4173 #include "confdefs.h"
4174 #define _LARGE_FILES 1
4175 #include <sys/types.h>
4176 /* Check that off_t can represent 2**63 - 1 correctly.
4177 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4178 since some C++ compilers masquerading as C compilers
4179 incorrectly reject 9223372036854775807. */
4180 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4181 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4182 && LARGE_OFF_T % 2147483647 == 1)
4184 #ifdef F77_DUMMY_MAIN
4188 int F77_DUMMY_MAIN() { return 1; }
4198 rm -f conftest.
$ac_objext
4199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4200 (eval $ac_compile) 2>&5
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); } &&
4204 { ac_try
='test -s conftest.$ac_objext'
4205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); }; }; then
4210 ac_cv_sys_large_files
=1; break
4212 echo "$as_me: failed program was:" >&5
4213 cat conftest.
$ac_ext >&5
4215 rm -f conftest.
$ac_objext conftest.
$ac_ext
4219 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4220 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4221 if test "$ac_cv_sys_large_files" != no
; then
4223 cat >>confdefs.h
<<_ACEOF
4224 #define _LARGE_FILES $ac_cv_sys_large_files
4232 if test "${with_sound}" != "no"; then
4233 # Sound support for GNU/Linux and the free BSDs.
4234 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4235 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4236 if test "${ac_cv_header_stdc+set}" = set; then
4237 echo $ECHO_N "(cached) $ECHO_C" >&6
4239 cat >conftest.
$ac_ext <<_ACEOF
4240 #line $LINENO "configure"
4241 #include "confdefs.h"
4248 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4249 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4251 egrep -v '^ *\+' conftest.er1
>conftest.err
4253 cat conftest.err
>&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); } >/dev
/null
; then
4256 if test -s conftest.err
; then
4257 ac_cpp_err
=$ac_c_preproc_warn_flag
4264 if test -z "$ac_cpp_err"; then
4265 ac_cv_header_stdc
=yes
4267 echo "$as_me: failed program was:" >&5
4268 cat conftest.
$ac_ext >&5
4269 ac_cv_header_stdc
=no
4271 rm -f conftest.err conftest.
$ac_ext
4273 if test $ac_cv_header_stdc = yes; then
4274 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4275 cat >conftest.
$ac_ext <<_ACEOF
4276 #line $LINENO "configure"
4277 #include "confdefs.h"
4281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4282 egrep "memchr" >/dev
/null
2>&1; then
4285 ac_cv_header_stdc
=no
4291 if test $ac_cv_header_stdc = yes; then
4292 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4293 cat >conftest.
$ac_ext <<_ACEOF
4294 #line $LINENO "configure"
4295 #include "confdefs.h"
4299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4300 egrep "free" >/dev
/null
2>&1; then
4303 ac_cv_header_stdc
=no
4309 if test $ac_cv_header_stdc = yes; then
4310 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4311 if test "$cross_compiling" = yes; then
4314 cat >conftest.
$ac_ext <<_ACEOF
4315 #line $LINENO "configure"
4316 #include "confdefs.h"
4318 #if ((' ' & 0x0FF) == 0x020)
4319 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4320 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4322 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4323 || ('j' <= (c) && (c) <= 'r') \
4324 || ('s' <= (c) && (c) <= 'z'))
4325 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4328 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4333 for (i = 0; i < 256; i++)
4334 if (XOR (islower (i), ISLOWER (i))
4335 || toupper (i) != TOUPPER (i))
4340 rm -f conftest
$ac_exeext
4341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4342 (eval $ac_link) 2>&5
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); }; }; then
4353 echo "$as_me: program exited with status $ac_status" >&5
4354 echo "$as_me: failed program was:" >&5
4355 cat conftest.
$ac_ext >&5
4357 ac_cv_header_stdc
=no
4359 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4363 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4364 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4365 if test $ac_cv_header_stdc = yes; then
4367 cat >>confdefs.h
<<\_ACEOF
4368 #define STDC_HEADERS 1
4373 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4383 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4384 inttypes.h stdint.h unistd.h
4386 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4387 echo "$as_me:$LINENO: checking for $ac_header" >&5
4388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4392 cat >conftest.
$ac_ext <<_ACEOF
4393 #line $LINENO "configure"
4394 #include "confdefs.h"
4395 $ac_includes_default
4397 #include <$ac_header>
4399 rm -f conftest.
$ac_objext
4400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4401 (eval $ac_compile) 2>&5
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); } &&
4405 { ac_try
='test -s conftest.$ac_objext'
4406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); }; }; then
4411 eval "$as_ac_Header=yes"
4413 echo "$as_me: failed program was:" >&5
4414 cat conftest.
$ac_ext >&5
4415 eval "$as_ac_Header=no"
4417 rm -f conftest.
$ac_objext conftest.
$ac_ext
4419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4421 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4422 cat >>confdefs.h
<<_ACEOF
4423 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4434 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
4436 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4438 echo "$as_me:$LINENO: checking for $ac_header" >&5
4439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
4443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4446 # Is the header compilable?
4447 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4448 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4449 cat >conftest.
$ac_ext <<_ACEOF
4450 #line $LINENO "configure"
4451 #include "confdefs.h"
4452 $ac_includes_default
4453 #include <$ac_header>
4455 rm -f conftest.
$ac_objext
4456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4457 (eval $ac_compile) 2>&5
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); } &&
4461 { ac_try
='test -s conftest.$ac_objext'
4462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); }; }; then
4467 ac_header_compiler
=yes
4469 echo "$as_me: failed program was:" >&5
4470 cat conftest.
$ac_ext >&5
4471 ac_header_compiler
=no
4473 rm -f conftest.
$ac_objext conftest.
$ac_ext
4474 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4475 echo "${ECHO_T}$ac_header_compiler" >&6
4477 # Is the header present?
4478 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4479 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4480 cat >conftest.
$ac_ext <<_ACEOF
4481 #line $LINENO "configure"
4482 #include "confdefs.h"
4483 #include <$ac_header>
4485 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4486 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4488 egrep -v '^ *\+' conftest.er1
>conftest.err
4490 cat conftest.err
>&5
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); } >/dev
/null
; then
4493 if test -s conftest.err
; then
4494 ac_cpp_err
=$ac_c_preproc_warn_flag
4501 if test -z "$ac_cpp_err"; then
4502 ac_header_preproc
=yes
4504 echo "$as_me: failed program was:" >&5
4505 cat conftest.
$ac_ext >&5
4506 ac_header_preproc
=no
4508 rm -f conftest.err conftest.
$ac_ext
4509 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4510 echo "${ECHO_T}$ac_header_preproc" >&6
4512 # So? What about this header?
4513 case $ac_header_compiler:$ac_header_preproc in
4515 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4516 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4518 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4520 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4521 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4522 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4523 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4527 echo "$as_me:$LINENO: checking for $ac_header" >&5
4528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4529 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4530 echo $ECHO_N "(cached) $ECHO_C" >&6
4532 eval "$as_ac_Header=$ac_header_preproc"
4534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4538 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4539 cat >>confdefs.h
<<_ACEOF
4540 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4547 # Emulation library used on NetBSD.
4548 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4549 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4550 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4553 ac_check_lib_save_LIBS
=$LIBS
4554 LIBS
="-lossaudio $LIBS"
4555 cat >conftest.
$ac_ext <<_ACEOF
4556 #line $LINENO "configure"
4557 #include "confdefs.h"
4559 /* Override any gcc2 internal prototype to avoid an error. */
4563 /* We use char because int might match the return type of a gcc2
4564 builtin and then its argument prototype would still apply. */
4566 #ifdef F77_DUMMY_MAIN
4570 int F77_DUMMY_MAIN() { return 1; }
4580 rm -f conftest.
$ac_objext conftest
$ac_exeext
4581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4582 (eval $ac_link) 2>&5
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); } &&
4586 { ac_try
='test -s conftest$ac_exeext'
4587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); }; }; then
4592 ac_cv_lib_ossaudio__oss_ioctl
=yes
4594 echo "$as_me: failed program was:" >&5
4595 cat conftest.
$ac_ext >&5
4596 ac_cv_lib_ossaudio__oss_ioctl
=no
4598 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4599 LIBS
=$ac_check_lib_save_LIBS
4601 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4602 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4603 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
4629 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
4630 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
4631 termcap.h stdio_ext.h fcntl.h term.h
strings.h coff.h
4633 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4635 echo "$as_me:$LINENO: checking for $ac_header" >&5
4636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4641 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4643 # Is the header compilable?
4644 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4646 cat >conftest.
$ac_ext <<_ACEOF
4647 #line $LINENO "configure"
4648 #include "confdefs.h"
4649 $ac_includes_default
4650 #include <$ac_header>
4652 rm -f conftest.
$ac_objext
4653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4654 (eval $ac_compile) 2>&5
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); } &&
4658 { ac_try
='test -s conftest.$ac_objext'
4659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); }; }; then
4664 ac_header_compiler
=yes
4666 echo "$as_me: failed program was:" >&5
4667 cat conftest.
$ac_ext >&5
4668 ac_header_compiler
=no
4670 rm -f conftest.
$ac_objext conftest.
$ac_ext
4671 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4672 echo "${ECHO_T}$ac_header_compiler" >&6
4674 # Is the header present?
4675 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4676 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4677 cat >conftest.
$ac_ext <<_ACEOF
4678 #line $LINENO "configure"
4679 #include "confdefs.h"
4680 #include <$ac_header>
4682 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4683 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4685 egrep -v '^ *\+' conftest.er1
>conftest.err
4687 cat conftest.err
>&5
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); } >/dev
/null
; then
4690 if test -s conftest.err
; then
4691 ac_cpp_err
=$ac_c_preproc_warn_flag
4698 if test -z "$ac_cpp_err"; then
4699 ac_header_preproc
=yes
4701 echo "$as_me: failed program was:" >&5
4702 cat conftest.
$ac_ext >&5
4703 ac_header_preproc
=no
4705 rm -f conftest.err conftest.
$ac_ext
4706 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4707 echo "${ECHO_T}$ac_header_preproc" >&6
4709 # So? What about this header?
4710 case $ac_header_compiler:$ac_header_preproc in
4712 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4713 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4715 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4717 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4718 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4719 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4720 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4722 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4724 echo "$as_me:$LINENO: checking for $ac_header" >&5
4725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4727 echo $ECHO_N "(cached) $ECHO_C" >&6
4729 eval "$as_ac_Header=$ac_header_preproc"
4731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4732 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4736 cat >>confdefs.h
<<_ACEOF
4737 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4744 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4745 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4746 if test "${ac_cv_header_stdc+set}" = set; then
4747 echo $ECHO_N "(cached) $ECHO_C" >&6
4749 cat >conftest.
$ac_ext <<_ACEOF
4750 #line $LINENO "configure"
4751 #include "confdefs.h"
4758 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4759 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4761 egrep -v '^ *\+' conftest.er1
>conftest.err
4763 cat conftest.err
>&5
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); } >/dev
/null
; then
4766 if test -s conftest.err
; then
4767 ac_cpp_err
=$ac_c_preproc_warn_flag
4774 if test -z "$ac_cpp_err"; then
4775 ac_cv_header_stdc
=yes
4777 echo "$as_me: failed program was:" >&5
4778 cat conftest.
$ac_ext >&5
4779 ac_cv_header_stdc
=no
4781 rm -f conftest.err conftest.
$ac_ext
4783 if test $ac_cv_header_stdc = yes; then
4784 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4785 cat >conftest.
$ac_ext <<_ACEOF
4786 #line $LINENO "configure"
4787 #include "confdefs.h"
4791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4792 egrep "memchr" >/dev
/null
2>&1; then
4795 ac_cv_header_stdc
=no
4801 if test $ac_cv_header_stdc = yes; then
4802 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4803 cat >conftest.
$ac_ext <<_ACEOF
4804 #line $LINENO "configure"
4805 #include "confdefs.h"
4809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4810 egrep "free" >/dev
/null
2>&1; then
4813 ac_cv_header_stdc
=no
4819 if test $ac_cv_header_stdc = yes; then
4820 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4821 if test "$cross_compiling" = yes; then
4824 cat >conftest.
$ac_ext <<_ACEOF
4825 #line $LINENO "configure"
4826 #include "confdefs.h"
4828 #if ((' ' & 0x0FF) == 0x020)
4829 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4830 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4832 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4833 || ('j' <= (c) && (c) <= 'r') \
4834 || ('s' <= (c) && (c) <= 'z'))
4835 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4838 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4843 for (i = 0; i < 256; i++)
4844 if (XOR (islower (i), ISLOWER (i))
4845 || toupper (i) != TOUPPER (i))
4850 rm -f conftest
$ac_exeext
4851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4852 (eval $ac_link) 2>&5
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); }; }; then
4863 echo "$as_me: program exited with status $ac_status" >&5
4864 echo "$as_me: failed program was:" >&5
4865 cat conftest.
$ac_ext >&5
4867 ac_cv_header_stdc
=no
4869 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4873 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4874 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4875 if test $ac_cv_header_stdc = yes; then
4877 cat >>confdefs.h
<<\_ACEOF
4878 #define STDC_HEADERS 1
4883 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4884 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4885 if test "${ac_cv_header_time+set}" = set; then
4886 echo $ECHO_N "(cached) $ECHO_C" >&6
4888 cat >conftest.
$ac_ext <<_ACEOF
4889 #line $LINENO "configure"
4890 #include "confdefs.h"
4891 #include <sys/types.h>
4892 #include <sys/time.h>
4895 #ifdef F77_DUMMY_MAIN
4899 int F77_DUMMY_MAIN() { return 1; }
4904 if ((struct tm *) 0)
4910 rm -f conftest.
$ac_objext
4911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4912 (eval $ac_compile) 2>&5
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); } &&
4916 { ac_try
='test -s conftest.$ac_objext'
4917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); }; }; then
4922 ac_cv_header_time
=yes
4924 echo "$as_me: failed program was:" >&5
4925 cat conftest.
$ac_ext >&5
4926 ac_cv_header_time
=no
4928 rm -f conftest.
$ac_objext conftest.
$ac_ext
4930 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4931 echo "${ECHO_T}$ac_cv_header_time" >&6
4932 if test $ac_cv_header_time = yes; then
4934 cat >>confdefs.h
<<\_ACEOF
4935 #define TIME_WITH_SYS_TIME 1
4940 echo "$as_me:$LINENO: checking for sys_siglist declaration in signal.h or unistd.h" >&5
4941 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
4942 if test "${ac_cv_decl_sys_siglist+set}" = set; then
4943 echo $ECHO_N "(cached) $ECHO_C" >&6
4945 cat >conftest.
$ac_ext <<_ACEOF
4946 #line $LINENO "configure"
4947 #include "confdefs.h"
4948 #include <sys/types.h>
4950 /* NetBSD declares sys_siglist in unistd.h. */
4952 # include <unistd.h>
4955 #ifdef F77_DUMMY_MAIN
4959 int F77_DUMMY_MAIN() { return 1; }
4964 char *msg = *(sys_siglist + 1);
4969 rm -f conftest.
$ac_objext
4970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4971 (eval $ac_compile) 2>&5
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); } &&
4975 { ac_try
='test -s conftest.$ac_objext'
4976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); }; }; then
4981 ac_cv_decl_sys_siglist
=yes
4983 echo "$as_me: failed program was:" >&5
4984 cat conftest.
$ac_ext >&5
4985 ac_cv_decl_sys_siglist
=no
4987 rm -f conftest.
$ac_objext conftest.
$ac_ext
4989 echo "$as_me:$LINENO: result: $ac_cv_decl_sys_siglist" >&5
4990 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
4991 if test $ac_cv_decl_sys_siglist = yes; then
4993 cat >>confdefs.h
<<\_ACEOF
4994 #define SYS_SIGLIST_DECLARED 1
4999 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5000 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5001 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5002 echo $ECHO_N "(cached) $ECHO_C" >&6
5004 cat >conftest.
$ac_ext <<_ACEOF
5005 #line $LINENO "configure"
5006 #include "confdefs.h"
5007 #include <sys/types.h>
5008 #include <sys/wait.h>
5010 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5013 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5016 #ifdef F77_DUMMY_MAIN
5020 int F77_DUMMY_MAIN() { return 1; }
5027 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5032 rm -f conftest.
$ac_objext
5033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5034 (eval $ac_compile) 2>&5
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); } &&
5038 { ac_try
='test -s conftest.$ac_objext'
5039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); }; }; then
5044 ac_cv_header_sys_wait_h
=yes
5046 echo "$as_me: failed program was:" >&5
5047 cat conftest.
$ac_ext >&5
5048 ac_cv_header_sys_wait_h
=no
5050 rm -f conftest.
$ac_objext conftest.
$ac_ext
5052 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5053 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5054 if test $ac_cv_header_sys_wait_h = yes; then
5056 cat >>confdefs.h
<<\_ACEOF
5057 #define HAVE_SYS_WAIT_H 1
5063 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5064 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5065 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5066 echo $ECHO_N "(cached) $ECHO_C" >&6
5068 cat >conftest.
$ac_ext <<_ACEOF
5069 #line $LINENO "configure"
5070 #include "confdefs.h"
5071 #ifdef TIME_WITH_SYS_TIME
5072 #include <sys/time.h>
5075 #ifdef HAVE_SYS_TIME_H
5076 #include <sys/time.h>
5084 #ifdef F77_DUMMY_MAIN
5088 int F77_DUMMY_MAIN() { return 1; }
5093 static struct utimbuf x; x.actime = x.modtime;
5098 rm -f conftest.
$ac_objext
5099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5100 (eval $ac_compile) 2>&5
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); } &&
5104 { ac_try
='test -s conftest.$ac_objext'
5105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); }; }; then
5110 emacs_cv_struct_utimbuf
=yes
5112 echo "$as_me: failed program was:" >&5
5113 cat conftest.
$ac_ext >&5
5114 emacs_cv_struct_utimbuf
=no
5116 rm -f conftest.
$ac_objext conftest.
$ac_ext
5118 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5119 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5120 if test $emacs_cv_struct_utimbuf = yes; then
5122 cat >>confdefs.h
<<\_ACEOF
5123 #define HAVE_STRUCT_UTIMBUF 1
5128 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5129 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5130 if test "${ac_cv_type_signal+set}" = set; then
5131 echo $ECHO_N "(cached) $ECHO_C" >&6
5133 cat >conftest.
$ac_ext <<_ACEOF
5134 #line $LINENO "configure"
5135 #include "confdefs.h"
5136 #include <sys/types.h>
5142 extern "C" void (*signal (int, void (*)(int)))(int);
5144 void (*signal ()) ();
5147 #ifdef F77_DUMMY_MAIN
5151 int F77_DUMMY_MAIN() { return 1; }
5161 rm -f conftest.
$ac_objext
5162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5163 (eval $ac_compile) 2>&5
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); } &&
5167 { ac_try
='test -s conftest.$ac_objext'
5168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); }; }; then
5173 ac_cv_type_signal
=void
5175 echo "$as_me: failed program was:" >&5
5176 cat conftest.
$ac_ext >&5
5177 ac_cv_type_signal
=int
5179 rm -f conftest.
$ac_objext conftest.
$ac_ext
5181 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5182 echo "${ECHO_T}$ac_cv_type_signal" >&6
5184 cat >>confdefs.h
<<_ACEOF
5185 #define RETSIGTYPE $ac_cv_type_signal
5190 echo "$as_me:$LINENO: checking for speed_t" >&5
5191 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5192 if test "${emacs_cv_speed_t+set}" = set; then
5193 echo $ECHO_N "(cached) $ECHO_C" >&6
5195 cat >conftest.
$ac_ext <<_ACEOF
5196 #line $LINENO "configure"
5197 #include "confdefs.h"
5198 #include <termios.h>
5199 #ifdef F77_DUMMY_MAIN
5203 int F77_DUMMY_MAIN() { return 1; }
5213 rm -f conftest.
$ac_objext
5214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5215 (eval $ac_compile) 2>&5
5217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218 (exit $ac_status); } &&
5219 { ac_try
='test -s conftest.$ac_objext'
5220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); }; }; then
5225 emacs_cv_speed_t
=yes
5227 echo "$as_me: failed program was:" >&5
5228 cat conftest.
$ac_ext >&5
5231 rm -f conftest.
$ac_objext conftest.
$ac_ext
5233 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5234 echo "${ECHO_T}$emacs_cv_speed_t" >&6
5235 if test $emacs_cv_speed_t = yes; then
5237 cat >>confdefs.h
<<\_ACEOF
5238 #define HAVE_SPEED_T 1
5243 echo "$as_me:$LINENO: checking for struct timeval" >&5
5244 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5245 if test "${emacs_cv_struct_timeval+set}" = set; then
5246 echo $ECHO_N "(cached) $ECHO_C" >&6
5248 cat >conftest.
$ac_ext <<_ACEOF
5249 #line $LINENO "configure"
5250 #include "confdefs.h"
5251 #ifdef TIME_WITH_SYS_TIME
5252 #include <sys/time.h>
5255 #ifdef HAVE_SYS_TIME_H
5256 #include <sys/time.h>
5261 #ifdef F77_DUMMY_MAIN
5265 int F77_DUMMY_MAIN() { return 1; }
5270 static struct timeval x; x.tv_sec = x.tv_usec;
5275 rm -f conftest.
$ac_objext
5276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5277 (eval $ac_compile) 2>&5
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); } &&
5281 { ac_try
='test -s conftest.$ac_objext'
5282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); }; }; then
5287 emacs_cv_struct_timeval
=yes
5289 echo "$as_me: failed program was:" >&5
5290 cat conftest.
$ac_ext >&5
5291 emacs_cv_struct_timeval
=no
5293 rm -f conftest.
$ac_objext conftest.
$ac_ext
5295 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
5296 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
5297 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
5298 if test $emacs_cv_struct_timeval = yes; then
5300 cat >>confdefs.h
<<\_ACEOF
5301 #define HAVE_TIMEVAL 1
5306 echo "$as_me:$LINENO: checking for struct exception" >&5
5307 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
5308 if test "${emacs_cv_struct_exception+set}" = set; then
5309 echo $ECHO_N "(cached) $ECHO_C" >&6
5311 cat >conftest.
$ac_ext <<_ACEOF
5312 #line $LINENO "configure"
5313 #include "confdefs.h"
5315 #ifdef F77_DUMMY_MAIN
5319 int F77_DUMMY_MAIN() { return 1; }
5324 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
5329 rm -f conftest.
$ac_objext
5330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5331 (eval $ac_compile) 2>&5
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); } &&
5335 { ac_try
='test -s conftest.$ac_objext'
5336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); }; }; then
5341 emacs_cv_struct_exception
=yes
5343 echo "$as_me: failed program was:" >&5
5344 cat conftest.
$ac_ext >&5
5345 emacs_cv_struct_exception
=no
5347 rm -f conftest.
$ac_objext conftest.
$ac_ext
5349 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
5350 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
5351 HAVE_EXCEPTION
=$emacs_cv_struct_exception
5352 if test $emacs_cv_struct_exception != yes; then
5354 cat >>confdefs.h
<<\_ACEOF
5355 #define NO_MATHERR 1
5360 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5361 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5362 if test "${ac_cv_struct_tm+set}" = set; then
5363 echo $ECHO_N "(cached) $ECHO_C" >&6
5365 cat >conftest.
$ac_ext <<_ACEOF
5366 #line $LINENO "configure"
5367 #include "confdefs.h"
5368 #include <sys/types.h>
5371 #ifdef F77_DUMMY_MAIN
5375 int F77_DUMMY_MAIN() { return 1; }
5380 struct tm *tp; tp->tm_sec;
5385 rm -f conftest.
$ac_objext
5386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5387 (eval $ac_compile) 2>&5
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); } &&
5391 { ac_try
='test -s conftest.$ac_objext'
5392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); }; }; then
5397 ac_cv_struct_tm
=time.h
5399 echo "$as_me: failed program was:" >&5
5400 cat conftest.
$ac_ext >&5
5401 ac_cv_struct_tm
=sys
/time.h
5403 rm -f conftest.
$ac_objext conftest.
$ac_ext
5405 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5406 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5407 if test $ac_cv_struct_tm = sys
/time.h
; then
5409 cat >>confdefs.h
<<\_ACEOF
5410 #define TM_IN_SYS_TIME 1
5415 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5416 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5417 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5418 echo $ECHO_N "(cached) $ECHO_C" >&6
5420 cat >conftest.
$ac_ext <<_ACEOF
5421 #line $LINENO "configure"
5422 #include "confdefs.h"
5423 #include <sys/types.h>
5424 #include <$ac_cv_struct_tm>
5427 #ifdef F77_DUMMY_MAIN
5431 int F77_DUMMY_MAIN() { return 1; }
5436 static struct tm ac_aggr;
5437 if (ac_aggr.tm_zone)
5443 rm -f conftest.
$ac_objext
5444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5445 (eval $ac_compile) 2>&5
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); } &&
5449 { ac_try
='test -s conftest.$ac_objext'
5450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); }; }; then
5455 ac_cv_member_struct_tm_tm_zone
=yes
5457 echo "$as_me: failed program was:" >&5
5458 cat conftest.
$ac_ext >&5
5459 ac_cv_member_struct_tm_tm_zone
=no
5461 rm -f conftest.
$ac_objext conftest.
$ac_ext
5463 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
5464 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
5465 if test $ac_cv_member_struct_tm_tm_zone = yes; then
5467 cat >>confdefs.h
<<_ACEOF
5468 #define HAVE_STRUCT_TM_TM_ZONE 1
5474 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
5476 cat >>confdefs.h
<<\_ACEOF
5477 #define HAVE_TM_ZONE 1
5481 echo "$as_me:$LINENO: checking for tzname" >&5
5482 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
5483 if test "${ac_cv_var_tzname+set}" = set; then
5484 echo $ECHO_N "(cached) $ECHO_C" >&6
5486 cat >conftest.
$ac_ext <<_ACEOF
5487 #line $LINENO "configure"
5488 #include "confdefs.h"
5490 #ifndef tzname /* For SGI. */
5491 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5494 #ifdef F77_DUMMY_MAIN
5498 int F77_DUMMY_MAIN() { return 1; }
5508 rm -f conftest.
$ac_objext conftest
$ac_exeext
5509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5510 (eval $ac_link) 2>&5
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); } &&
5514 { ac_try
='test -s conftest$ac_exeext'
5515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519 (exit $ac_status); }; }; then
5520 ac_cv_var_tzname
=yes
5522 echo "$as_me: failed program was:" >&5
5523 cat conftest.
$ac_ext >&5
5526 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5528 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
5529 echo "${ECHO_T}$ac_cv_var_tzname" >&6
5530 if test $ac_cv_var_tzname = yes; then
5532 cat >>confdefs.h
<<\_ACEOF
5533 #define HAVE_TZNAME 1
5539 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
5540 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
5541 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
5542 echo $ECHO_N "(cached) $ECHO_C" >&6
5544 cat >conftest.
$ac_ext <<_ACEOF
5545 #line $LINENO "configure"
5546 #include "confdefs.h"
5549 #ifdef F77_DUMMY_MAIN
5553 int F77_DUMMY_MAIN() { return 1; }
5558 static struct tm ac_aggr;
5559 if (ac_aggr.tm_gmtoff)
5565 rm -f conftest.
$ac_objext
5566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5567 (eval $ac_compile) 2>&5
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); } &&
5571 { ac_try
='test -s conftest.$ac_objext'
5572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); }; }; then
5577 ac_cv_member_struct_tm_tm_gmtoff
=yes
5579 echo "$as_me: failed program was:" >&5
5580 cat conftest.
$ac_ext >&5
5581 ac_cv_member_struct_tm_tm_gmtoff
=no
5583 rm -f conftest.
$ac_objext conftest.
$ac_ext
5585 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
5586 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
5587 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
5589 cat >>confdefs.h
<<\_ACEOF
5590 #define HAVE_TM_GMTOFF 1
5597 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5598 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5599 if test "${ac_cv_prog_cc_stdc+set}" = set; then
5600 echo $ECHO_N "(cached) $ECHO_C" >&6
5602 ac_cv_prog_cc_stdc
=no
5604 cat >conftest.
$ac_ext <<_ACEOF
5605 #line $LINENO "configure"
5606 #include "confdefs.h"
5609 #include <sys/types.h>
5610 #include <sys/stat.h>
5611 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5612 struct buf { int x; };
5613 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5614 static char *e (p, i)
5620 static char *f (char * (*g) (char **, int), char **p, ...)
5625 s = g (p, va_arg (v,int));
5629 int test (int i, double x);
5630 struct s1 {int (*f) (int a);};
5631 struct s2 {int (*f) (double a);};
5632 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5635 #ifdef F77_DUMMY_MAIN
5639 int F77_DUMMY_MAIN() { return 1; }
5644 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5649 # Don't try gcc -ansi; that turns off useful extensions and
5650 # breaks some systems' header files.
5651 # AIX -qlanglvl=ansi
5652 # Ultrix and OSF/1 -std1
5653 # HP-UX 10.20 and later -Ae
5654 # HP-UX older versions -Aa -D_HPUX_SOURCE
5655 # SVR4 -Xc -D__EXTENSIONS__
5656 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5658 CC
="$ac_save_CC $ac_arg"
5659 rm -f conftest.
$ac_objext
5660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5661 (eval $ac_compile) 2>&5
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); } &&
5665 { ac_try
='test -s conftest.$ac_objext'
5666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); }; }; then
5671 ac_cv_prog_cc_stdc
=$ac_arg
5674 echo "$as_me: failed program was:" >&5
5675 cat conftest.
$ac_ext >&5
5677 rm -f conftest.
$ac_objext
5679 rm -f conftest.
$ac_ext conftest.
$ac_objext
5684 case "x$ac_cv_prog_cc_stdc" in
5686 echo "$as_me:$LINENO: result: none needed" >&5
5687 echo "${ECHO_T}none needed" >&6 ;;
5689 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5690 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5691 CC
="$CC $ac_cv_prog_cc_stdc" ;;
5694 echo "$as_me:$LINENO: checking for function prototypes" >&5
5695 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5696 if test "$ac_cv_prog_cc_stdc" != no
; then
5697 echo "$as_me:$LINENO: result: yes" >&5
5698 echo "${ECHO_T}yes" >&6
5700 cat >>confdefs.h
<<\_ACEOF
5701 #define PROTOTYPES 1
5705 cat >>confdefs.h
<<\_ACEOF
5706 #define __PROTOTYPES 1
5710 echo "$as_me:$LINENO: result: no" >&5
5711 echo "${ECHO_T}no" >&6
5714 echo "$as_me:$LINENO: checking for working volatile" >&5
5715 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
5716 if test "${ac_cv_c_volatile+set}" = set; then
5717 echo $ECHO_N "(cached) $ECHO_C" >&6
5719 cat >conftest.
$ac_ext <<_ACEOF
5720 #line $LINENO "configure"
5721 #include "confdefs.h"
5723 #ifdef F77_DUMMY_MAIN
5727 int F77_DUMMY_MAIN() { return 1; }
5739 rm -f conftest.
$ac_objext
5740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5741 (eval $ac_compile) 2>&5
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); } &&
5745 { ac_try
='test -s conftest.$ac_objext'
5746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); }; }; then
5751 ac_cv_c_volatile
=yes
5753 echo "$as_me: failed program was:" >&5
5754 cat conftest.
$ac_ext >&5
5757 rm -f conftest.
$ac_objext conftest.
$ac_ext
5759 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
5760 echo "${ECHO_T}$ac_cv_c_volatile" >&6
5761 if test $ac_cv_c_volatile = no
; then
5763 cat >>confdefs.h
<<\_ACEOF
5769 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5770 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5771 if test "${ac_cv_c_const+set}" = set; then
5772 echo $ECHO_N "(cached) $ECHO_C" >&6
5774 cat >conftest.
$ac_ext <<_ACEOF
5775 #line $LINENO "configure"
5776 #include "confdefs.h"
5778 #ifdef F77_DUMMY_MAIN
5782 int F77_DUMMY_MAIN() { return 1; }
5787 /* FIXME: Include the comments suggested by Paul. */
5789 /* Ultrix mips cc rejects this. */
5790 typedef int charset[2];
5792 /* SunOS 4.1.1 cc rejects this. */
5793 char const *const *ccp;
5795 /* NEC SVR4.0.2 mips cc rejects this. */
5796 struct point {int x, y;};
5797 static struct point const zero = {0,0};
5798 /* AIX XL C 1.02.0.0 rejects this.
5799 It does not let you subtract one const X* pointer from another in
5800 an arm of an if-expression whose if-part is not a constant
5802 const char *g = "string";
5803 ccp = &g + (g ? g-g : 0);
5804 /* HPUX 7.0 cc rejects these. */
5807 ccp = (char const *const *) p;
5808 { /* SCO 3.2v4 cc rejects this. */
5810 char const *s = 0 ? (char *) 0 : (char const *) 0;
5814 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5816 const int *foo = &x[0];
5819 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5820 typedef const int *iptr;
5824 { /* AIX XL C 1.02.0.0 rejects this saying
5825 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5826 struct s { int j; const int *ap[3]; };
5827 struct s *b; b->j = 5;
5829 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5838 rm -f conftest.
$ac_objext
5839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5840 (eval $ac_compile) 2>&5
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); } &&
5844 { ac_try
='test -s conftest.$ac_objext'
5845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); }; }; then
5852 echo "$as_me: failed program was:" >&5
5853 cat conftest.
$ac_ext >&5
5856 rm -f conftest.
$ac_objext conftest.
$ac_ext
5858 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5859 echo "${ECHO_T}$ac_cv_c_const" >&6
5860 if test $ac_cv_c_const = no
; then
5862 cat >>confdefs.h
<<\_ACEOF
5868 echo "$as_me:$LINENO: checking for void * support" >&5
5869 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
5870 if test "${emacs_cv_void_star+set}" = set; then
5871 echo $ECHO_N "(cached) $ECHO_C" >&6
5873 cat >conftest.
$ac_ext <<_ACEOF
5874 #line $LINENO "configure"
5875 #include "confdefs.h"
5877 #ifdef F77_DUMMY_MAIN
5881 int F77_DUMMY_MAIN() { return 1; }
5891 rm -f conftest.
$ac_objext
5892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5893 (eval $ac_compile) 2>&5
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); } &&
5897 { ac_try
='test -s conftest.$ac_objext'
5898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); }; }; then
5903 emacs_cv_void_star
=yes
5905 echo "$as_me: failed program was:" >&5
5906 cat conftest.
$ac_ext >&5
5907 emacs_cv_void_star
=no
5909 rm -f conftest.
$ac_objext conftest.
$ac_ext
5911 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
5912 echo "${ECHO_T}$emacs_cv_void_star" >&6
5913 if test $emacs_cv_void_star = yes; then
5914 cat >>confdefs.h
<<\_ACEOF
5915 #define POINTER_TYPE void
5919 cat >>confdefs.h
<<\_ACEOF
5920 #define POINTER_TYPE char
5926 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
5927 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
5928 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
5929 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5930 echo $ECHO_N "(cached) $ECHO_C" >&6
5932 cat >conftest.
make <<\_ACEOF
5934 @
echo 'ac_maketemp="${MAKE}"'
5936 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5937 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5938 if test -n "$ac_maketemp"; then
5939 eval ac_cv_prog_make_
${ac_make}_set
=yes
5941 eval ac_cv_prog_make_
${ac_make}_set
=no
5945 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5946 echo "$as_me:$LINENO: result: yes" >&5
5947 echo "${ECHO_T}yes" >&6
5950 echo "$as_me:$LINENO: result: no" >&5
5951 echo "${ECHO_T}no" >&6
5952 SET_MAKE
="MAKE=${MAKE-make}"
5956 echo "$as_me:$LINENO: checking for long file names" >&5
5957 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
5958 if test "${ac_cv_sys_long_file_names+set}" = set; then
5959 echo $ECHO_N "(cached) $ECHO_C" >&6
5961 ac_cv_sys_long_file_names
=yes
5962 # Test for long file names in all the places we know might matter:
5963 # . the current directory, where building will happen
5964 # $prefix/lib where we will be installing things
5965 # $exec_prefix/lib likewise
5966 # eval it to expand exec_prefix.
5967 # $TMPDIR if set, where it might want to write temporary files
5968 # if $TMPDIR is not set:
5969 # /tmp where it might want to write temporary files
5972 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
5975 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
5977 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
5978 test -d $ac_dir ||
continue
5979 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
5980 ac_xdir
=$ac_dir/cf$$
5981 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
5982 ac_tf1
=$ac_xdir/conftest9012345
5983 ac_tf2
=$ac_xdir/conftest9012346
5984 (echo 1 >$ac_tf1) 2>/dev
/null
5985 (echo 2 >$ac_tf2) 2>/dev
/null
5986 ac_val
=`cat $ac_tf1 2>/dev/null`
5987 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
5988 ac_cv_sys_long_file_names
=no
5989 rm -rf $ac_xdir 2>/dev
/null
5992 rm -rf $ac_xdir 2>/dev
/null
5995 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
5996 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
5997 if test $ac_cv_sys_long_file_names = yes; then
5999 cat >>confdefs.h
<<\_ACEOF
6000 #define HAVE_LONG_FILE_NAMES 1
6006 if test "$gamedir" = no
; then :
6008 echo "$as_me:$LINENO: checking for access to game group \"$gameuser\"" >&5
6009 echo $ECHO_N "checking for access to game group \"$gameuser\"... $ECHO_C" >&6
6010 rm -f conf$
$chown.
file
6011 touch conf$
$chown.
file
6012 if chown
"$gameuser" conf$
$chown.
file 1>/dev
/null
2>&1; then
6013 echo "$as_me:$LINENO: result: yes" >&5
6014 echo "${ECHO_T}yes" >&6
6015 if test "$gamedir" = "yes"; then
6016 gamedir
="${localstatedir}/games/emacs"
6018 eval tgamedir
=\"$gamedir\"
6020 cat >>confdefs.h
<<_ACEOF
6021 #define HAVE_SHARED_GAME_DIR "$tgamedir"
6025 echo "$as_me:$LINENO: result: no" >&5
6026 echo "${ECHO_T}no" >&6
6030 #### Choose a window system.
6032 echo "$as_me:$LINENO: checking for X" >&5
6033 echo $ECHO_N "checking for X... $ECHO_C" >&6
6036 # Check whether --with-x or --without-x was given.
6037 if test "${with_x+set}" = set; then
6041 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6042 if test "x$with_x" = xno
; then
6043 # The user explicitly disabled X.
6046 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
6047 # Both variables are already set.
6050 if test "${ac_cv_have_x+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6053 # One or both of the vars are not set, and there is no cached value.
6054 ac_x_includes
=no ac_x_libraries
=no
6056 if mkdir conftest.dir
; then
6058 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6059 cat >Imakefile
<<'_ACEOF'
6061 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6063 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
6064 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6065 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6066 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6067 for ac_extension
in a so sl
; do
6068 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
6069 test -f $ac_im_libdir/libX11.
$ac_extension; then
6070 ac_im_usrlibdir
=$ac_im_libdir; break
6073 # Screen out bogus values from the imake configuration. They are
6074 # bogus both because they are the default anyway, and because
6075 # using them would break gcc on systems where it needs fixed includes.
6076 case $ac_im_incroot in
6078 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
6080 case $ac_im_usrlibdir in
6082 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
6089 # Standard set of common directories for X headers.
6090 # Check X11 before X11Rn because it is often a symlink to the current release.
6102 /usr/local/X11/include
6103 /usr/local/X11R6/include
6104 /usr/local/X11R5/include
6105 /usr/local/X11R4/include
6107 /usr/local/include/X11
6108 /usr/local/include/X11R6
6109 /usr/local/include/X11R5
6110 /usr/local/include/X11R4
6114 /usr/XFree86/include/X11
6118 /usr/unsupported/include
6120 /usr/local/x11r5/include
6121 /usr/lpp/Xamples/include
6123 /usr/openwin/include
6124 /usr/openwin/share/include'
6126 if test "$ac_x_includes" = no
; then
6127 # Guess where to find include files, by looking for Intrinsic.h.
6128 # First, try using that file with no special directory specified.
6129 cat >conftest.
$ac_ext <<_ACEOF
6130 #line $LINENO "configure"
6131 #include "confdefs.h"
6132 #include <X11/Intrinsic.h>
6134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6135 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6137 egrep -v '^ *\+' conftest.er1
>conftest.err
6139 cat conftest.err
>&5
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); } >/dev
/null
; then
6142 if test -s conftest.err
; then
6143 ac_cpp_err
=$ac_c_preproc_warn_flag
6150 if test -z "$ac_cpp_err"; then
6151 # We can compile using X headers with no special include directory.
6154 echo "$as_me: failed program was:" >&5
6155 cat conftest.
$ac_ext >&5
6156 for ac_dir
in $ac_x_header_dirs; do
6157 if test -r "$ac_dir/X11/Intrinsic.h"; then
6158 ac_x_includes
=$ac_dir
6163 rm -f conftest.err conftest.
$ac_ext
6164 fi # $ac_x_includes = no
6166 if test "$ac_x_libraries" = no
; then
6167 # Check for the libraries.
6168 # See if we find them without any special options.
6169 # Don't add to $LIBS permanently.
6172 cat >conftest.
$ac_ext <<_ACEOF
6173 #line $LINENO "configure"
6174 #include "confdefs.h"
6175 #include <X11/Intrinsic.h>
6176 #ifdef F77_DUMMY_MAIN
6180 int F77_DUMMY_MAIN() { return 1; }
6190 rm -f conftest.
$ac_objext conftest
$ac_exeext
6191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6192 (eval $ac_link) 2>&5
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); } &&
6196 { ac_try
='test -s conftest$ac_exeext'
6197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); }; }; then
6203 # We can link X programs with no special library path.
6206 echo "$as_me: failed program was:" >&5
6207 cat conftest.
$ac_ext >&5
6209 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6211 # Don't even attempt the hair of trying to link an X program!
6212 for ac_extension
in a so sl
; do
6213 if test -r $ac_dir/libXt.
$ac_extension; then
6214 ac_x_libraries
=$ac_dir
6220 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6221 fi # $ac_x_libraries = no
6223 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
6224 # Didn't find X anywhere. Cache the known absence of X.
6225 ac_cv_have_x
="have_x=no"
6227 # Record where we found X for the cache.
6228 ac_cv_have_x
="have_x=yes \
6229 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6234 eval "$ac_cv_have_x"
6237 if test "$have_x" != yes; then
6238 echo "$as_me:$LINENO: result: $have_x" >&5
6239 echo "${ECHO_T}$have_x" >&6
6242 # If each of the values was on the command line, it overrides each guess.
6243 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
6244 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
6245 # Update the cache value to reflect the command line values.
6246 ac_cv_have_x
="have_x=yes \
6247 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6248 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6249 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6252 if test "$no_x" = yes; then
6258 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
6259 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
6260 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
6261 x_default_search_path
=""
6262 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
6264 ${x_library}/X11/%L/%T/%N%C%S:\
6265 ${x_library}/X11/%l/%T/%N%C%S:\
6266 ${x_library}/X11/%T/%N%C%S:\
6267 ${x_library}/X11/%L/%T/%N%S:\
6268 ${x_library}/X11/%l/%T/%N%S:\
6269 ${x_library}/X11/%T/%N%S"
6270 if test x
"${x_default_search_path}" = x
; then
6271 x_default_search_path
=${x_search_path}
6273 x_default_search_path
="${x_search_path}:${x_default_search_path}"
6277 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
6278 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
6281 if test x
"${x_includes}" = x
; then
6282 bitmapdir
=/usr
/include
/X11
/bitmaps
6284 # accumulate include directories that have X11 bitmap subdirectories
6286 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
6287 if test -d "${bmd}/X11/bitmaps"; then
6288 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
6290 if test -d "${bmd}/bitmaps"; then
6291 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
6294 if test ${bmd_acc} != "dummyval"; then
6295 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
6299 case "${window_system}" in
6303 case "${with_x_toolkit}" in
6304 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
6305 motif
) USE_X_TOOLKIT
=MOTIF
;;
6306 no
) USE_X_TOOLKIT
=none
;;
6307 * ) USE_X_TOOLKIT
=maybe
;;
6317 ### If we're using X11, we should use the X menu package.
6320 yes ) HAVE_MENUS
=yes ;;
6323 if test "${opsys}" = "hpux9"; then
6324 case "${x_libraries}" in
6326 opsysfile
="s/hpux9-x11r4.h"
6331 if test "${opsys}" = "hpux9shr"; then
6332 case "${x_libraries}" in
6334 opsysfile
="s/hpux9shxr4.h"
6339 ### Compute the unexec source name from the object name.
6340 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
6342 # Do the opsystem or machine files prohibit the use of the GNU malloc?
6343 # Assume not, until told otherwise.
6346 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
6347 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
6348 if test "${ac_cv_func_malloc_get_state+set}" = set; then
6349 echo $ECHO_N "(cached) $ECHO_C" >&6
6351 cat >conftest.
$ac_ext <<_ACEOF
6352 #line $LINENO "configure"
6353 #include "confdefs.h"
6354 /* System header to define __stub macros and hopefully few prototypes,
6355 which can conflict with char malloc_get_state (); below. */
6357 /* Override any gcc2 internal prototype to avoid an error. */
6361 /* We use char because int might match the return type of a gcc2
6362 builtin and then its argument prototype would still apply. */
6363 char malloc_get_state ();
6366 #ifdef F77_DUMMY_MAIN
6370 int F77_DUMMY_MAIN() { return 1; }
6375 /* The GNU C library defines this for functions which it implements
6376 to always fail with ENOSYS. Some functions are actually named
6377 something starting with __ and the normal name is an alias. */
6378 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
6381 f = malloc_get_state;
6388 rm -f conftest.
$ac_objext conftest
$ac_exeext
6389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6390 (eval $ac_link) 2>&5
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); } &&
6394 { ac_try
='test -s conftest$ac_exeext'
6395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); }; }; then
6400 ac_cv_func_malloc_get_state
=yes
6402 echo "$as_me: failed program was:" >&5
6403 cat conftest.
$ac_ext >&5
6404 ac_cv_func_malloc_get_state
=no
6406 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6408 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
6409 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
6410 if test $ac_cv_func_malloc_get_state = yes; then
6416 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
6417 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
6418 if test "${ac_cv_func_malloc_set_state+set}" = set; then
6419 echo $ECHO_N "(cached) $ECHO_C" >&6
6421 cat >conftest.
$ac_ext <<_ACEOF
6422 #line $LINENO "configure"
6423 #include "confdefs.h"
6424 /* System header to define __stub macros and hopefully few prototypes,
6425 which can conflict with char malloc_set_state (); below. */
6427 /* Override any gcc2 internal prototype to avoid an error. */
6431 /* We use char because int might match the return type of a gcc2
6432 builtin and then its argument prototype would still apply. */
6433 char malloc_set_state ();
6436 #ifdef F77_DUMMY_MAIN
6440 int F77_DUMMY_MAIN() { return 1; }
6445 /* The GNU C library defines this for functions which it implements
6446 to always fail with ENOSYS. Some functions are actually named
6447 something starting with __ and the normal name is an alias. */
6448 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
6451 f = malloc_set_state;
6458 rm -f conftest.
$ac_objext conftest
$ac_exeext
6459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6460 (eval $ac_link) 2>&5
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); } &&
6464 { ac_try
='test -s conftest$ac_exeext'
6465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); }; }; then
6470 ac_cv_func_malloc_set_state
=yes
6472 echo "$as_me: failed program was:" >&5
6473 cat conftest.
$ac_ext >&5
6474 ac_cv_func_malloc_set_state
=no
6476 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6478 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
6479 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
6480 if test $ac_cv_func_malloc_set_state = yes; then
6486 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
6487 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
6488 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
6489 echo $ECHO_N "(cached) $ECHO_C" >&6
6491 cat >conftest.
$ac_ext <<_ACEOF
6492 #line $LINENO "configure"
6493 #include "confdefs.h"
6494 extern void (* __after_morecore_hook)();
6495 #ifdef F77_DUMMY_MAIN
6499 int F77_DUMMY_MAIN() { return 1; }
6504 __after_morecore_hook = 0
6509 rm -f conftest.
$ac_objext conftest
$ac_exeext
6510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6511 (eval $ac_link) 2>&5
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); } &&
6515 { ac_try
='test -s conftest$ac_exeext'
6516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); }; }; then
6521 emacs_cv_var___after_morecore_hook
=yes
6523 echo "$as_me: failed program was:" >&5
6524 cat conftest.
$ac_ext >&5
6525 emacs_cv_var___after_morecore_hook
=no
6527 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6529 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
6530 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
6531 if test $emacs_cv_var___after_morecore_hook = no
; then
6534 if test "${system_malloc}" = "yes"; then
6537 (The GNU allocators don't work with this system configuration.)"
6539 if test "$doug_lea_malloc" = "yes" ; then
6540 if test "$GNU_MALLOC" = yes ; then
6542 (Using Doug Lea's new malloc from the GNU C Library.)"
6545 cat >>confdefs.h
<<\_ACEOF
6546 #define DOUG_LEA_MALLOC 1
6551 if test x
"${REL_ALLOC}" = x
; then
6552 REL_ALLOC
=${GNU_MALLOC}
6558 for ac_header
in stdlib.h unistd.h
6560 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6562 echo "$as_me:$LINENO: checking for $ac_header" >&5
6563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6565 echo $ECHO_N "(cached) $ECHO_C" >&6
6567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6570 # Is the header compilable?
6571 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6572 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6573 cat >conftest.
$ac_ext <<_ACEOF
6574 #line $LINENO "configure"
6575 #include "confdefs.h"
6576 $ac_includes_default
6577 #include <$ac_header>
6579 rm -f conftest.
$ac_objext
6580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6581 (eval $ac_compile) 2>&5
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); } &&
6585 { ac_try
='test -s conftest.$ac_objext'
6586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); }; }; then
6591 ac_header_compiler
=yes
6593 echo "$as_me: failed program was:" >&5
6594 cat conftest.
$ac_ext >&5
6595 ac_header_compiler
=no
6597 rm -f conftest.
$ac_objext conftest.
$ac_ext
6598 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6599 echo "${ECHO_T}$ac_header_compiler" >&6
6601 # Is the header present?
6602 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6603 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6604 cat >conftest.
$ac_ext <<_ACEOF
6605 #line $LINENO "configure"
6606 #include "confdefs.h"
6607 #include <$ac_header>
6609 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6610 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6612 egrep -v '^ *\+' conftest.er1
>conftest.err
6614 cat conftest.err
>&5
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); } >/dev
/null
; then
6617 if test -s conftest.err
; then
6618 ac_cpp_err
=$ac_c_preproc_warn_flag
6625 if test -z "$ac_cpp_err"; then
6626 ac_header_preproc
=yes
6628 echo "$as_me: failed program was:" >&5
6629 cat conftest.
$ac_ext >&5
6630 ac_header_preproc
=no
6632 rm -f conftest.err conftest.
$ac_ext
6633 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6634 echo "${ECHO_T}$ac_header_preproc" >&6
6636 # So? What about this header?
6637 case $ac_header_compiler:$ac_header_preproc in
6639 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6640 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6642 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6644 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6645 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6646 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6647 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6649 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6651 echo "$as_me:$LINENO: checking for $ac_header" >&5
6652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6654 echo $ECHO_N "(cached) $ECHO_C" >&6
6656 eval "$as_ac_Header=$ac_header_preproc"
6658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6659 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6662 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6663 cat >>confdefs.h
<<_ACEOF
6664 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6672 for ac_func
in getpagesize
6674 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6675 echo "$as_me:$LINENO: checking for $ac_func" >&5
6676 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6677 if eval "test \"\${$as_ac_var+set}\" = set"; then
6678 echo $ECHO_N "(cached) $ECHO_C" >&6
6680 cat >conftest.
$ac_ext <<_ACEOF
6681 #line $LINENO "configure"
6682 #include "confdefs.h"
6683 /* System header to define __stub macros and hopefully few prototypes,
6684 which can conflict with char $ac_func (); below. */
6686 /* Override any gcc2 internal prototype to avoid an error. */
6690 /* We use char because int might match the return type of a gcc2
6691 builtin and then its argument prototype would still apply. */
6695 #ifdef F77_DUMMY_MAIN
6699 int F77_DUMMY_MAIN() { return 1; }
6704 /* The GNU C library defines this for functions which it implements
6705 to always fail with ENOSYS. Some functions are actually named
6706 something starting with __ and the normal name is an alias. */
6707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6717 rm -f conftest.
$ac_objext conftest
$ac_exeext
6718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6719 (eval $ac_link) 2>&5
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); } &&
6723 { ac_try
='test -s conftest$ac_exeext'
6724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728 (exit $ac_status); }; }; then
6729 eval "$as_ac_var=yes"
6731 echo "$as_me: failed program was:" >&5
6732 cat conftest.
$ac_ext >&5
6733 eval "$as_ac_var=no"
6735 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6738 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6739 if test `eval echo '${'$as_ac_var'}'` = yes; then
6740 cat >>confdefs.h
<<_ACEOF
6741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6747 echo "$as_me:$LINENO: checking for working mmap" >&5
6748 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6749 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6750 echo $ECHO_N "(cached) $ECHO_C" >&6
6752 if test "$cross_compiling" = yes; then
6753 ac_cv_func_mmap_fixed_mapped
=no
6755 cat >conftest.
$ac_ext <<_ACEOF
6756 #line $LINENO "configure"
6757 #include "confdefs.h"
6758 $ac_includes_default
6759 /* malloc might have been renamed as rpl_malloc. */
6762 /* Thanks to Mike Haertel and Jim Avera for this test.
6763 Here is a matrix of mmap possibilities:
6764 mmap private not fixed
6765 mmap private fixed at somewhere currently unmapped
6766 mmap private fixed at somewhere already mapped
6767 mmap shared not fixed
6768 mmap shared fixed at somewhere currently unmapped
6769 mmap shared fixed at somewhere already mapped
6770 For private mappings, we should verify that changes cannot be read()
6771 back from the file, nor mmap's back from the file at a different
6772 address. (There have been systems where private was not correctly
6773 implemented like the infamous i386 svr4.0, and systems where the
6774 VM page cache was not coherent with the file system buffer cache
6775 like early versions of FreeBSD and possibly contemporary NetBSD.)
6776 For shared mappings, we should conversely verify that changes get
6777 propagated back to all the places they're supposed to be.
6779 Grep wants private fixed already mapped.
6780 The main things grep needs to know about mmap are:
6781 * does it exist and is it safe to write into the mmap'd area
6782 * how to use it (BSD variants) */
6785 #include <sys/mman.h>
6787 #if !STDC_HEADERS && !HAVE_STDLIB_H
6791 /* This mess was copied from the GNU getpagesize.h. */
6792 #if !HAVE_GETPAGESIZE
6793 /* Assume that all systems that can run configure have sys/param.h. */
6794 # if !HAVE_SYS_PARAM_H
6795 # define HAVE_SYS_PARAM_H 1
6798 # ifdef _SC_PAGESIZE
6799 # define getpagesize() sysconf(_SC_PAGESIZE)
6800 # else /* no _SC_PAGESIZE */
6801 # if HAVE_SYS_PARAM_H
6802 # include <sys/param.h>
6803 # ifdef EXEC_PAGESIZE
6804 # define getpagesize() EXEC_PAGESIZE
6805 # else /* no EXEC_PAGESIZE */
6807 # define getpagesize() NBPG * CLSIZE
6810 # endif /* no CLSIZE */
6811 # else /* no NBPG */
6813 # define getpagesize() NBPC
6814 # else /* no NBPC */
6816 # define getpagesize() PAGESIZE
6817 # endif /* PAGESIZE */
6818 # endif /* no NBPC */
6819 # endif /* no NBPG */
6820 # endif /* no EXEC_PAGESIZE */
6821 # else /* no HAVE_SYS_PARAM_H */
6822 # define getpagesize() 8192 /* punt totally */
6823 # endif /* no HAVE_SYS_PARAM_H */
6824 # endif /* no _SC_PAGESIZE */
6826 #endif /* no HAVE_GETPAGESIZE */
6831 char *data, *data2, *data3;
6835 pagesize = getpagesize ();
6837 /* First, make a file with some known garbage in it. */
6838 data = (char *) malloc (pagesize);
6841 for (i = 0; i < pagesize; ++i)
6842 *(data + i) = rand ();
6844 fd = creat ("conftest.mmap", 0600);
6847 if (write (fd, data, pagesize) != pagesize)
6851 /* Next, try to mmap the file at a fixed address which already has
6852 something else allocated at it. If we can, also make sure that
6853 we see the same garbage. */
6854 fd = open ("conftest.mmap", O_RDWR);
6857 data2 = (char *) malloc (2 * pagesize);
6860 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6861 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6862 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6864 for (i = 0; i < pagesize; ++i)
6865 if (*(data + i) != *(data2 + i))
6868 /* Finally, make sure that changes to the mapped area do not
6869 percolate back to the file as seen by read(). (This is a bug on
6870 some variants of i386 svr4.0.) */
6871 for (i = 0; i < pagesize; ++i)
6872 *(data2 + i) = *(data2 + i) + 1;
6873 data3 = (char *) malloc (pagesize);
6876 if (read (fd, data3, pagesize) != pagesize)
6878 for (i = 0; i < pagesize; ++i)
6879 if (*(data + i) != *(data3 + i))
6885 rm -f conftest
$ac_exeext
6886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6887 (eval $ac_link) 2>&5
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); }; }; then
6896 ac_cv_func_mmap_fixed_mapped
=yes
6898 echo "$as_me: program exited with status $ac_status" >&5
6899 echo "$as_me: failed program was:" >&5
6900 cat conftest.
$ac_ext >&5
6902 ac_cv_func_mmap_fixed_mapped
=no
6904 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6907 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6908 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6909 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6911 cat >>confdefs.h
<<\_ACEOF
6918 if test $use_mmap_for_buffers = yes; then
6922 LIBS
="$libsrc_libs $LIBS"
6925 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6926 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6927 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6928 echo $ECHO_N "(cached) $ECHO_C" >&6
6930 ac_check_lib_save_LIBS
=$LIBS
6932 cat >conftest.
$ac_ext <<_ACEOF
6933 #line $LINENO "configure"
6934 #include "confdefs.h"
6936 /* Override any gcc2 internal prototype to avoid an error. */
6940 /* We use char because int might match the return type of a gcc2
6941 builtin and then its argument prototype would still apply. */
6943 #ifdef F77_DUMMY_MAIN
6947 int F77_DUMMY_MAIN() { return 1; }
6957 rm -f conftest.
$ac_objext conftest
$ac_exeext
6958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6959 (eval $ac_link) 2>&5
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); } &&
6963 { ac_try
='test -s conftest$ac_exeext'
6964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); }; }; then
6969 ac_cv_lib_dnet_dnet_ntoa
=yes
6971 echo "$as_me: failed program was:" >&5
6972 cat conftest.
$ac_ext >&5
6973 ac_cv_lib_dnet_dnet_ntoa
=no
6975 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6976 LIBS
=$ac_check_lib_save_LIBS
6978 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6979 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6980 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6981 cat >>confdefs.h
<<_ACEOF
6982 #define HAVE_LIBDNET 1
6990 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
6991 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
6992 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
6995 ac_check_lib_save_LIBS
=$LIBS
6997 cat >conftest.
$ac_ext <<_ACEOF
6998 #line $LINENO "configure"
6999 #include "confdefs.h"
7002 #ifdef F77_DUMMY_MAIN
7006 int F77_DUMMY_MAIN() { return 1; }
7016 rm -f conftest.
$ac_objext conftest
$ac_exeext
7017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7018 (eval $ac_link) 2>&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); } &&
7022 { ac_try
='test -s conftest$ac_exeext'
7023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); }; }; then
7028 ac_cv_lib_Xbsd_main
=yes
7030 echo "$as_me: failed program was:" >&5
7031 cat conftest.
$ac_ext >&5
7032 ac_cv_lib_Xbsd_main
=no
7034 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7035 LIBS
=$ac_check_lib_save_LIBS
7037 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
7038 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
7039 if test $ac_cv_lib_Xbsd_main = yes; then
7040 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
7045 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
7046 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
7047 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
7048 echo $ECHO_N "(cached) $ECHO_C" >&6
7050 ac_check_lib_save_LIBS
=$LIBS
7051 LIBS
="-lpthreads $LIBS"
7052 cat >conftest.
$ac_ext <<_ACEOF
7053 #line $LINENO "configure"
7054 #include "confdefs.h"
7056 /* Override any gcc2 internal prototype to avoid an error. */
7060 /* We use char because int might match the return type of a gcc2
7061 builtin and then its argument prototype would still apply. */
7063 #ifdef F77_DUMMY_MAIN
7067 int F77_DUMMY_MAIN() { return 1; }
7077 rm -f conftest.
$ac_objext conftest
$ac_exeext
7078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7079 (eval $ac_link) 2>&5
7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082 (exit $ac_status); } &&
7083 { ac_try
='test -s conftest$ac_exeext'
7084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088 (exit $ac_status); }; }; then
7089 ac_cv_lib_pthreads_cma_open
=yes
7091 echo "$as_me: failed program was:" >&5
7092 cat conftest.
$ac_ext >&5
7093 ac_cv_lib_pthreads_cma_open
=no
7095 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7096 LIBS
=$ac_check_lib_save_LIBS
7098 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
7099 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
7100 if test $ac_cv_lib_pthreads_cma_open = yes; then
7101 cat >>confdefs.h
<<_ACEOF
7102 #define HAVE_LIBPTHREADS 1
7105 LIBS
="-lpthreads $LIBS"
7110 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
7111 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
7112 if test -d /usr
/X386
/include
; then
7114 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
7118 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
7119 echo "${ECHO_T}$HAVE_XFREE386" >&6
7121 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
7122 # for the tests that follow. We set it back to REAL_CFLAGS later on.
7124 REAL_CPPFLAGS
="$CPPFLAGS"
7126 if test "${HAVE_X11}" = "yes"; then
7127 DEFS
="$C_SWITCH_X_SITE $DEFS"
7128 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
7130 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
7131 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
7133 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7134 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7135 # but it's more convenient here to set LD_RUN_PATH
7136 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7137 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
7138 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7142 if test "${opsys}" = "gnu-linux"; then
7143 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
7144 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
7145 cat >conftest.
$ac_ext <<_ACEOF
7146 #line $LINENO "configure"
7147 #include "confdefs.h"
7149 #ifdef F77_DUMMY_MAIN
7153 int F77_DUMMY_MAIN() { return 1; }
7158 XOpenDisplay ("foo");
7163 rm -f conftest.
$ac_objext conftest
$ac_exeext
7164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7165 (eval $ac_link) 2>&5
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); } &&
7169 { ac_try
='test -s conftest$ac_exeext'
7170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174 (exit $ac_status); }; }; then
7175 xlinux_first_failure
=no
7177 echo "$as_me: failed program was:" >&5
7178 cat conftest.
$ac_ext >&5
7179 xlinux_first_failure
=yes
7181 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7182 if test "${xlinux_first_failure}" = "yes"; then
7183 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
7184 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
7185 OLD_CPPFLAGS
="$CPPFLAGS"
7187 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
7188 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
7189 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
7190 LIBS
="$LIBS -b i486-linuxaout"
7191 cat >conftest.
$ac_ext <<_ACEOF
7192 #line $LINENO "configure"
7193 #include "confdefs.h"
7195 #ifdef F77_DUMMY_MAIN
7199 int F77_DUMMY_MAIN() { return 1; }
7204 XOpenDisplay ("foo");
7209 rm -f conftest.
$ac_objext conftest
$ac_exeext
7210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7211 (eval $ac_link) 2>&5
7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214 (exit $ac_status); } &&
7215 { ac_try
='test -s conftest$ac_exeext'
7216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220 (exit $ac_status); }; }; then
7221 xlinux_second_failure
=no
7223 echo "$as_me: failed program was:" >&5
7224 cat conftest.
$ac_ext >&5
7225 xlinux_second_failure
=yes
7227 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7228 if test "${xlinux_second_failure}" = "yes"; then
7229 # If we get the same failure with -b, there is no use adding -b.
7230 # So take it out. This plays safe.
7231 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
7232 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
7233 CPPFLAGS
="$OLD_CPPFLAGS"
7235 echo "$as_me:$LINENO: result: no" >&5
7236 echo "${ECHO_T}no" >&6
7238 echo "$as_me:$LINENO: result: yes" >&5
7239 echo "${ECHO_T}yes" >&6
7242 echo "$as_me:$LINENO: result: no" >&5
7243 echo "${ECHO_T}no" >&6
7247 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7248 # header files included from there.
7249 echo "$as_me:$LINENO: checking for Xkb" >&5
7250 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
7251 cat >conftest.
$ac_ext <<_ACEOF
7252 #line $LINENO "configure"
7253 #include "confdefs.h"
7254 #include <X11/Xlib.h>
7255 #include <X11/XKBlib.h>
7256 #ifdef F77_DUMMY_MAIN
7260 int F77_DUMMY_MAIN() { return 1; }
7265 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7270 rm -f conftest.
$ac_objext conftest
$ac_exeext
7271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7272 (eval $ac_link) 2>&5
7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); } &&
7276 { ac_try
='test -s conftest$ac_exeext'
7277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); }; }; then
7284 echo "$as_me: failed program was:" >&5
7285 cat conftest.
$ac_ext >&5
7288 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7289 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
7290 echo "${ECHO_T}$emacs_xkb" >&6
7291 if test $emacs_xkb = yes; then
7293 cat >>confdefs.h
<<\_ACEOF
7294 #define HAVE_XKBGETKEYBOARD 1
7303 for ac_func
in XrmSetDatabase XScreenResourceString \
7304 XScreenNumberOfScreen XSetWMProtocols
7306 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7307 echo "$as_me:$LINENO: checking for $ac_func" >&5
7308 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7309 if eval "test \"\${$as_ac_var+set}\" = set"; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
7312 cat >conftest.
$ac_ext <<_ACEOF
7313 #line $LINENO "configure"
7314 #include "confdefs.h"
7315 /* System header to define __stub macros and hopefully few prototypes,
7316 which can conflict with char $ac_func (); below. */
7318 /* Override any gcc2 internal prototype to avoid an error. */
7322 /* We use char because int might match the return type of a gcc2
7323 builtin and then its argument prototype would still apply. */
7327 #ifdef F77_DUMMY_MAIN
7331 int F77_DUMMY_MAIN() { return 1; }
7336 /* The GNU C library defines this for functions which it implements
7337 to always fail with ENOSYS. Some functions are actually named
7338 something starting with __ and the normal name is an alias. */
7339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7349 rm -f conftest.
$ac_objext conftest
$ac_exeext
7350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7351 (eval $ac_link) 2>&5
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); } &&
7355 { ac_try
='test -s conftest$ac_exeext'
7356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); }; }; then
7361 eval "$as_ac_var=yes"
7363 echo "$as_me: failed program was:" >&5
7364 cat conftest.
$ac_ext >&5
7365 eval "$as_ac_var=no"
7367 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7370 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7371 if test `eval echo '${'$as_ac_var'}'` = yes; then
7372 cat >>confdefs.h
<<_ACEOF
7373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7381 if test "${window_system}" = "x11"; then
7382 echo "$as_me:$LINENO: checking X11 version 6" >&5
7383 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
7384 if test "${emacs_cv_x11_version_6+set}" = set; then
7385 echo $ECHO_N "(cached) $ECHO_C" >&6
7387 cat >conftest.
$ac_ext <<_ACEOF
7388 #line $LINENO "configure"
7389 #include "confdefs.h"
7390 #include <X11/Xlib.h>
7391 #ifdef F77_DUMMY_MAIN
7395 int F77_DUMMY_MAIN() { return 1; }
7400 #if XlibSpecificationRelease < 6
7408 rm -f conftest.
$ac_objext conftest
$ac_exeext
7409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7410 (eval $ac_link) 2>&5
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); } &&
7414 { ac_try
='test -s conftest$ac_exeext'
7415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); }; }; then
7420 emacs_cv_x11_version_6
=yes
7422 echo "$as_me: failed program was:" >&5
7423 cat conftest.
$ac_ext >&5
7424 emacs_cv_x11_version_6
=no
7426 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7429 if test $emacs_cv_x11_version_6 = yes; then
7430 echo "$as_me:$LINENO: result: 6 or newer" >&5
7431 echo "${ECHO_T}6 or newer" >&6
7433 cat >>confdefs.h
<<\_ACEOF
7434 #define HAVE_X11R6 1
7438 echo "$as_me:$LINENO: result: before 6" >&5
7439 echo "${ECHO_T}before 6" >&6
7443 if test "${window_system}" = "x11"; then
7444 echo "$as_me:$LINENO: checking X11 version 5" >&5
7445 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
7446 if test "${emacs_cv_x11_version_5+set}" = set; then
7447 echo $ECHO_N "(cached) $ECHO_C" >&6
7449 cat >conftest.
$ac_ext <<_ACEOF
7450 #line $LINENO "configure"
7451 #include "confdefs.h"
7452 #include <X11/Xlib.h>
7453 #ifdef F77_DUMMY_MAIN
7457 int F77_DUMMY_MAIN() { return 1; }
7462 #if XlibSpecificationRelease < 5
7470 rm -f conftest.
$ac_objext conftest
$ac_exeext
7471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7472 (eval $ac_link) 2>&5
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); } &&
7476 { ac_try
='test -s conftest$ac_exeext'
7477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); }; }; then
7482 emacs_cv_x11_version_5
=yes
7484 echo "$as_me: failed program was:" >&5
7485 cat conftest.
$ac_ext >&5
7486 emacs_cv_x11_version_5
=no
7488 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7491 if test $emacs_cv_x11_version_5 = yes; then
7492 echo "$as_me:$LINENO: result: 5 or newer" >&5
7493 echo "${ECHO_T}5 or newer" >&6
7496 cat >>confdefs.h
<<\_ACEOF
7497 #define HAVE_X11R5 1
7502 echo "$as_me:$LINENO: result: before 5" >&5
7503 echo "${ECHO_T}before 5" >&6
7507 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
7508 if test x
"${HAVE_X11R5}" = xyes
; then
7509 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
7510 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
7511 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
7512 echo $ECHO_N "(cached) $ECHO_C" >&6
7514 cat >conftest.
$ac_ext <<_ACEOF
7515 #line $LINENO "configure"
7516 #include "confdefs.h"
7518 #include <X11/Intrinsic.h>
7519 #include <X11/Xaw/Simple.h>
7520 #ifdef F77_DUMMY_MAIN
7524 int F77_DUMMY_MAIN() { return 1; }
7534 rm -f conftest.
$ac_objext conftest
$ac_exeext
7535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7536 (eval $ac_link) 2>&5
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); } &&
7540 { ac_try
='test -s conftest$ac_exeext'
7541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); }; }; then
7546 emacs_cv_x11_version_5_with_xaw
=yes
7548 echo "$as_me: failed program was:" >&5
7549 cat conftest.
$ac_ext >&5
7550 emacs_cv_x11_version_5_with_xaw
=no
7552 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7555 if test $emacs_cv_x11_version_5_with_xaw = yes; then
7556 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
7557 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
7560 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
7561 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
7569 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
7571 if test "${USE_X_TOOLKIT}" != "none"; then
7572 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
7573 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
7574 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
7575 echo $ECHO_N "(cached) $ECHO_C" >&6
7577 cat >conftest.
$ac_ext <<_ACEOF
7578 #line $LINENO "configure"
7579 #include "confdefs.h"
7580 #include <X11/Intrinsic.h>
7581 #ifdef F77_DUMMY_MAIN
7585 int F77_DUMMY_MAIN() { return 1; }
7590 #if XtSpecificationRelease < 6
7598 rm -f conftest.
$ac_objext conftest
$ac_exeext
7599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7600 (eval $ac_link) 2>&5
7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); } &&
7604 { ac_try
='test -s conftest$ac_exeext'
7605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609 (exit $ac_status); }; }; then
7610 emacs_cv_x11_toolkit_version_6
=yes
7612 echo "$as_me: failed program was:" >&5
7613 cat conftest.
$ac_ext >&5
7614 emacs_cv_x11_toolkit_version_6
=no
7616 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7619 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
7620 if test $emacs_cv_x11_toolkit_version_6 = yes; then
7621 echo "$as_me:$LINENO: result: 6 or newer" >&5
7622 echo "${ECHO_T}6 or newer" >&6
7624 cat >>confdefs.h
<<\_ACEOF
7625 #define HAVE_X11XTR6 1
7629 echo "$as_me:$LINENO: result: before 6" >&5
7630 echo "${ECHO_T}before 6" >&6
7634 if test x
$HAVE_X11XTR6 = xyes
; then
7635 LIBS
="-lXt -lSM -lICE $LIBS"
7640 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
7641 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
7642 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
7643 echo $ECHO_N "(cached) $ECHO_C" >&6
7645 ac_check_lib_save_LIBS
=$LIBS
7647 cat >conftest.
$ac_ext <<_ACEOF
7648 #line $LINENO "configure"
7649 #include "confdefs.h"
7651 /* Override any gcc2 internal prototype to avoid an error. */
7655 /* We use char because int might match the return type of a gcc2
7656 builtin and then its argument prototype would still apply. */
7657 char XmuConvertStandardSelection ();
7658 #ifdef F77_DUMMY_MAIN
7662 int F77_DUMMY_MAIN() { return 1; }
7667 XmuConvertStandardSelection ();
7672 rm -f conftest.
$ac_objext conftest
$ac_exeext
7673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7674 (eval $ac_link) 2>&5
7676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677 (exit $ac_status); } &&
7678 { ac_try
='test -s conftest$ac_exeext'
7679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683 (exit $ac_status); }; }; then
7684 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
7686 echo "$as_me: failed program was:" >&5
7687 cat conftest.
$ac_ext >&5
7688 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
7690 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7691 LIBS
=$ac_check_lib_save_LIBS
7693 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
7694 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
7695 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
7696 cat >>confdefs.h
<<_ACEOF
7697 #define HAVE_LIBXMU 1
7704 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
7707 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
7708 if test "${HAVE_X11}" = "yes"; then
7709 if test "${USE_X_TOOLKIT}" != "none"; then
7711 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
7712 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7713 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7714 echo $ECHO_N "(cached) $ECHO_C" >&6
7716 ac_check_lib_save_LIBS
=$LIBS
7718 cat >conftest.
$ac_ext <<_ACEOF
7719 #line $LINENO "configure"
7720 #include "confdefs.h"
7722 /* Override any gcc2 internal prototype to avoid an error. */
7726 /* We use char because int might match the return type of a gcc2
7727 builtin and then its argument prototype would still apply. */
7728 char XShapeQueryExtension ();
7729 #ifdef F77_DUMMY_MAIN
7733 int F77_DUMMY_MAIN() { return 1; }
7738 XShapeQueryExtension ();
7743 rm -f conftest.
$ac_objext conftest
$ac_exeext
7744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7745 (eval $ac_link) 2>&5
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); } &&
7749 { ac_try
='test -s conftest$ac_exeext'
7750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 (exit $ac_status); }; }; then
7755 ac_cv_lib_Xext_XShapeQueryExtension
=yes
7757 echo "$as_me: failed program was:" >&5
7758 cat conftest.
$ac_ext >&5
7759 ac_cv_lib_Xext_XShapeQueryExtension
=no
7761 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7762 LIBS
=$ac_check_lib_save_LIBS
7764 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
7765 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
7766 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
7767 cat >>confdefs.h
<<_ACEOF
7768 #define HAVE_LIBXEXT 1
7778 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
7779 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
7780 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
7781 if test "${emacs_cv_motif_version_2_1+set}" = set; then
7782 echo $ECHO_N "(cached) $ECHO_C" >&6
7784 cat >conftest.
$ac_ext <<_ACEOF
7785 #line $LINENO "configure"
7786 #include "confdefs.h"
7788 #ifdef F77_DUMMY_MAIN
7792 int F77_DUMMY_MAIN() { return 1; }
7797 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
7800 Motif version prior to 2.1.
7806 rm -f conftest.
$ac_objext
7807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7808 (eval $ac_compile) 2>&5
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); } &&
7812 { ac_try
='test -s conftest.$ac_objext'
7813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817 (exit $ac_status); }; }; then
7818 emacs_cv_motif_version_2_1
=yes
7820 echo "$as_me: failed program was:" >&5
7821 cat conftest.
$ac_ext >&5
7822 emacs_cv_motif_version_2_1
=no
7824 rm -f conftest.
$ac_objext conftest.
$ac_ext
7826 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
7827 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
7828 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
7829 if test $emacs_cv_motif_version_2_1 = yes; then
7832 cat >>confdefs.h
<<\_ACEOF
7833 #define HAVE_MOTIF_2_1 1
7836 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
7837 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
7838 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
7839 echo $ECHO_N "(cached) $ECHO_C" >&6
7841 ac_check_lib_save_LIBS
=$LIBS
7843 cat >conftest.
$ac_ext <<_ACEOF
7844 #line $LINENO "configure"
7845 #include "confdefs.h"
7847 /* Override any gcc2 internal prototype to avoid an error. */
7851 /* We use char because int might match the return type of a gcc2
7852 builtin and then its argument prototype would still apply. */
7853 char XpCreateContext ();
7854 #ifdef F77_DUMMY_MAIN
7858 int F77_DUMMY_MAIN() { return 1; }
7868 rm -f conftest.
$ac_objext conftest
$ac_exeext
7869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7870 (eval $ac_link) 2>&5
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); } &&
7874 { ac_try
='test -s conftest$ac_exeext'
7875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); }; }; then
7880 ac_cv_lib_Xp_XpCreateContext
=yes
7882 echo "$as_me: failed program was:" >&5
7883 cat conftest.
$ac_ext >&5
7884 ac_cv_lib_Xp_XpCreateContext
=no
7886 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7887 LIBS
=$ac_check_lib_save_LIBS
7889 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
7890 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
7891 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
7895 if test ${HAVE_LIBXP} = yes; then
7897 cat >>confdefs.h
<<\_ACEOF
7898 #define HAVE_LIBXP 1
7905 ### Is -lXaw3d available?
7907 if test "${HAVE_X11}" = "yes"; then
7908 if test "${USE_X_TOOLKIT}" != "none"; then
7909 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
7910 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
7911 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
7912 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
7913 echo $ECHO_N "(cached) $ECHO_C" >&6
7915 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
7916 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
7918 # Is the header compilable?
7919 echo "$as_me:$LINENO: checking X11/Xaw3d/Scrollbar.h usability" >&5
7920 echo $ECHO_N "checking X11/Xaw3d/Scrollbar.h usability... $ECHO_C" >&6
7921 cat >conftest.
$ac_ext <<_ACEOF
7922 #line $LINENO "configure"
7923 #include "confdefs.h"
7924 $ac_includes_default
7925 #include <X11/Xaw3d/Scrollbar.h>
7927 rm -f conftest.
$ac_objext
7928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7929 (eval $ac_compile) 2>&5
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); } &&
7933 { ac_try
='test -s conftest.$ac_objext'
7934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938 (exit $ac_status); }; }; then
7939 ac_header_compiler
=yes
7941 echo "$as_me: failed program was:" >&5
7942 cat conftest.
$ac_ext >&5
7943 ac_header_compiler
=no
7945 rm -f conftest.
$ac_objext conftest.
$ac_ext
7946 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7947 echo "${ECHO_T}$ac_header_compiler" >&6
7949 # Is the header present?
7950 echo "$as_me:$LINENO: checking X11/Xaw3d/Scrollbar.h presence" >&5
7951 echo $ECHO_N "checking X11/Xaw3d/Scrollbar.h presence... $ECHO_C" >&6
7952 cat >conftest.
$ac_ext <<_ACEOF
7953 #line $LINENO "configure"
7954 #include "confdefs.h"
7955 #include <X11/Xaw3d/Scrollbar.h>
7957 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7958 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7960 egrep -v '^ *\+' conftest.er1
>conftest.err
7962 cat conftest.err
>&5
7963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964 (exit $ac_status); } >/dev
/null
; then
7965 if test -s conftest.err
; then
7966 ac_cpp_err
=$ac_c_preproc_warn_flag
7973 if test -z "$ac_cpp_err"; then
7974 ac_header_preproc
=yes
7976 echo "$as_me: failed program was:" >&5
7977 cat conftest.
$ac_ext >&5
7978 ac_header_preproc
=no
7980 rm -f conftest.err conftest.
$ac_ext
7981 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7982 echo "${ECHO_T}$ac_header_preproc" >&6
7984 # So? What about this header?
7985 case $ac_header_compiler:$ac_header_preproc in
7987 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: accepted by the compiler, rejected by the preprocessor!" >&5
7988 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7989 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&5
7990 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&2;};;
7992 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: present but cannot be compiled" >&5
7993 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: present but cannot be compiled" >&2;}
7994 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: check for missing prerequisite headers?" >&5
7995 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: check for missing prerequisite headers?" >&2;}
7996 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&5
7997 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&2;};;
7999 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
8000 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
8001 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
8002 echo $ECHO_N "(cached) $ECHO_C" >&6
8004 ac_cv_header_X11_Xaw3d_Scrollbar_h
=$ac_header_preproc
8006 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
8007 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
8010 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
8011 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
8012 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
8013 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
8014 echo $ECHO_N "(cached) $ECHO_C" >&6
8016 ac_check_lib_save_LIBS
=$LIBS
8017 LIBS
="-lXaw3d $LIBS"
8018 cat >conftest.
$ac_ext <<_ACEOF
8019 #line $LINENO "configure"
8020 #include "confdefs.h"
8022 /* Override any gcc2 internal prototype to avoid an error. */
8026 /* We use char because int might match the return type of a gcc2
8027 builtin and then its argument prototype would still apply. */
8028 char XawScrollbarSetThumb ();
8029 #ifdef F77_DUMMY_MAIN
8033 int F77_DUMMY_MAIN() { return 1; }
8038 XawScrollbarSetThumb ();
8043 rm -f conftest.
$ac_objext conftest
$ac_exeext
8044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8045 (eval $ac_link) 2>&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); } &&
8049 { ac_try
='test -s conftest$ac_exeext'
8050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; }; then
8055 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
8057 echo "$as_me: failed program was:" >&5
8058 cat conftest.
$ac_ext >&5
8059 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
8061 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8062 LIBS
=$ac_check_lib_save_LIBS
8064 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
8065 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
8066 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
8073 if test "${HAVE_XAW3D}" = "yes"; then
8075 cat >>confdefs.h
<<\_ACEOF
8076 #define HAVE_XAW3D 1
8085 USE_TOOLKIT_SCROLL_BARS
=no
8086 if test "${with_toolkit_scroll_bars}" != "no"; then
8087 if test "${USE_X_TOOLKIT}" != "none"; then
8088 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8089 cat >>confdefs.h
<<\_ACEOF
8090 #define USE_TOOLKIT_SCROLL_BARS 1
8094 USE_TOOLKIT_SCROLL_BARS
=yes
8095 elif test "${HAVE_XAW3D}" = "yes"; then
8096 cat >>confdefs.h
<<\_ACEOF
8097 #define USE_TOOLKIT_SCROLL_BARS 1
8100 USE_TOOLKIT_SCROLL_BARS
=yes
8106 if test "${with_xim}" != "no"; then
8108 cat >>confdefs.h
<<\_ACEOF
8114 ### Use -lXpm if available, unless `--with-xpm=no'.
8116 if test "${HAVE_X11}" = "yes"; then
8117 if test "${with_xpm}" != "no"; then
8118 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8119 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8120 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8121 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8122 echo $ECHO_N "(cached) $ECHO_C" >&6
8124 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8125 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8127 # Is the header compilable?
8128 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
8129 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
8130 cat >conftest.
$ac_ext <<_ACEOF
8131 #line $LINENO "configure"
8132 #include "confdefs.h"
8133 $ac_includes_default
8134 #include <X11/xpm.h>
8136 rm -f conftest.
$ac_objext
8137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8138 (eval $ac_compile) 2>&5
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); } &&
8142 { ac_try
='test -s conftest.$ac_objext'
8143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); }; }; then
8148 ac_header_compiler
=yes
8150 echo "$as_me: failed program was:" >&5
8151 cat conftest.
$ac_ext >&5
8152 ac_header_compiler
=no
8154 rm -f conftest.
$ac_objext conftest.
$ac_ext
8155 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8156 echo "${ECHO_T}$ac_header_compiler" >&6
8158 # Is the header present?
8159 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
8160 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
8161 cat >conftest.
$ac_ext <<_ACEOF
8162 #line $LINENO "configure"
8163 #include "confdefs.h"
8164 #include <X11/xpm.h>
8166 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8167 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8169 egrep -v '^ *\+' conftest.er1
>conftest.err
8171 cat conftest.err
>&5
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); } >/dev
/null
; then
8174 if test -s conftest.err
; then
8175 ac_cpp_err
=$ac_c_preproc_warn_flag
8182 if test -z "$ac_cpp_err"; then
8183 ac_header_preproc
=yes
8185 echo "$as_me: failed program was:" >&5
8186 cat conftest.
$ac_ext >&5
8187 ac_header_preproc
=no
8189 rm -f conftest.err conftest.
$ac_ext
8190 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8191 echo "${ECHO_T}$ac_header_preproc" >&6
8193 # So? What about this header?
8194 case $ac_header_compiler:$ac_header_preproc in
8196 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
8197 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8198 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8199 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;};;
8201 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
8202 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
8203 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
8204 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
8205 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8206 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;};;
8208 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8209 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8210 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8211 echo $ECHO_N "(cached) $ECHO_C" >&6
8213 ac_cv_header_X11_xpm_h
=$ac_header_preproc
8215 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8216 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8219 if test $ac_cv_header_X11_xpm_h = yes; then
8220 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
8221 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
8222 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
8223 echo $ECHO_N "(cached) $ECHO_C" >&6
8225 ac_check_lib_save_LIBS
=$LIBS
8226 LIBS
="-lXpm -lX11 $LIBS"
8227 cat >conftest.
$ac_ext <<_ACEOF
8228 #line $LINENO "configure"
8229 #include "confdefs.h"
8231 /* Override any gcc2 internal prototype to avoid an error. */
8235 /* We use char because int might match the return type of a gcc2
8236 builtin and then its argument prototype would still apply. */
8237 char XpmReadFileToPixmap ();
8238 #ifdef F77_DUMMY_MAIN
8242 int F77_DUMMY_MAIN() { return 1; }
8247 XpmReadFileToPixmap ();
8252 rm -f conftest.
$ac_objext conftest
$ac_exeext
8253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8254 (eval $ac_link) 2>&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); } &&
8258 { ac_try
='test -s conftest$ac_exeext'
8259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); }; }; then
8264 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
8266 echo "$as_me: failed program was:" >&5
8267 cat conftest.
$ac_ext >&5
8268 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
8270 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8271 LIBS
=$ac_check_lib_save_LIBS
8273 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
8274 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
8275 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
8282 if test "${HAVE_XPM}" = "yes"; then
8283 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
8284 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
8285 cat >conftest.
$ac_ext <<_ACEOF
8286 #line $LINENO "configure"
8287 #include "confdefs.h"
8288 #include "X11/xpm.h"
8289 #ifndef XpmReturnAllocPixels
8290 no_return_alloc_pixels
8294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8295 egrep "no_return_alloc_pixels" >/dev
/null
2>&1; then
8303 if test "${HAVE_XPM}" = "yes"; then
8304 echo "$as_me:$LINENO: result: yes" >&5
8305 echo "${ECHO_T}yes" >&6
8307 echo "$as_me:$LINENO: result: no" >&5
8308 echo "${ECHO_T}no" >&6
8313 if test "${HAVE_XPM}" = "yes"; then
8315 cat >>confdefs.h
<<\_ACEOF
8322 ### Use -ljpeg if available, unless `--with-jpeg=no'.
8324 if test "${HAVE_X11}" = "yes"; then
8325 if test "${with_jpeg}" != "no"; then
8326 if test "${ac_cv_header_jerror_h+set}" = set; then
8327 echo "$as_me:$LINENO: checking for jerror.h" >&5
8328 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
8329 if test "${ac_cv_header_jerror_h+set}" = set; then
8330 echo $ECHO_N "(cached) $ECHO_C" >&6
8332 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
8333 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
8335 # Is the header compilable?
8336 echo "$as_me:$LINENO: checking jerror.h usability" >&5
8337 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
8338 cat >conftest.
$ac_ext <<_ACEOF
8339 #line $LINENO "configure"
8340 #include "confdefs.h"
8341 $ac_includes_default
8344 rm -f conftest.
$ac_objext
8345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8346 (eval $ac_compile) 2>&5
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); } &&
8350 { ac_try
='test -s conftest.$ac_objext'
8351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); }; }; then
8356 ac_header_compiler
=yes
8358 echo "$as_me: failed program was:" >&5
8359 cat conftest.
$ac_ext >&5
8360 ac_header_compiler
=no
8362 rm -f conftest.
$ac_objext conftest.
$ac_ext
8363 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8364 echo "${ECHO_T}$ac_header_compiler" >&6
8366 # Is the header present?
8367 echo "$as_me:$LINENO: checking jerror.h presence" >&5
8368 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
8369 cat >conftest.
$ac_ext <<_ACEOF
8370 #line $LINENO "configure"
8371 #include "confdefs.h"
8374 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8375 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8377 egrep -v '^ *\+' conftest.er1
>conftest.err
8379 cat conftest.err
>&5
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); } >/dev
/null
; then
8382 if test -s conftest.err
; then
8383 ac_cpp_err
=$ac_c_preproc_warn_flag
8390 if test -z "$ac_cpp_err"; then
8391 ac_header_preproc
=yes
8393 echo "$as_me: failed program was:" >&5
8394 cat conftest.
$ac_ext >&5
8395 ac_header_preproc
=no
8397 rm -f conftest.err conftest.
$ac_ext
8398 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8399 echo "${ECHO_T}$ac_header_preproc" >&6
8401 # So? What about this header?
8402 case $ac_header_compiler:$ac_header_preproc in
8404 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
8405 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8406 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
8407 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;};;
8409 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
8410 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
8411 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
8412 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
8413 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
8414 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;};;
8416 echo "$as_me:$LINENO: checking for jerror.h" >&5
8417 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
8418 if test "${ac_cv_header_jerror_h+set}" = set; then
8419 echo $ECHO_N "(cached) $ECHO_C" >&6
8421 ac_cv_header_jerror_h
=$ac_header_preproc
8423 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
8424 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
8427 if test $ac_cv_header_jerror_h = yes; then
8428 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
8429 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
8430 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
8431 echo $ECHO_N "(cached) $ECHO_C" >&6
8433 ac_check_lib_save_LIBS
=$LIBS
8435 cat >conftest.
$ac_ext <<_ACEOF
8436 #line $LINENO "configure"
8437 #include "confdefs.h"
8439 /* Override any gcc2 internal prototype to avoid an error. */
8443 /* We use char because int might match the return type of a gcc2
8444 builtin and then its argument prototype would still apply. */
8445 char jpeg_destroy_compress ();
8446 #ifdef F77_DUMMY_MAIN
8450 int F77_DUMMY_MAIN() { return 1; }
8455 jpeg_destroy_compress ();
8460 rm -f conftest.
$ac_objext conftest
$ac_exeext
8461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8462 (eval $ac_link) 2>&5
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); } &&
8466 { ac_try
='test -s conftest$ac_exeext'
8467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); }; }; then
8472 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
8474 echo "$as_me: failed program was:" >&5
8475 cat conftest.
$ac_ext >&5
8476 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
8478 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8479 LIBS
=$ac_check_lib_save_LIBS
8481 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
8482 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
8483 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
8493 if test "${HAVE_JPEG}" = "yes"; then
8494 cat >>confdefs.h
<<\_ACEOF
8498 cat >conftest.
$ac_ext <<_ACEOF
8499 #line $LINENO "configure"
8500 #include "confdefs.h"
8501 #include <jpeglib.h>
8502 version=JPEG_LIB_VERSION
8505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8506 egrep "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
8507 cat >>confdefs.h
<<\_ACEOF
8512 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
8513 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
8521 ### Use -lpng if available, unless `--with-png=no'.
8523 if test "${HAVE_X11}" = "yes"; then
8524 if test "${with_png}" != "no"; then
8525 if test "${ac_cv_header_png_h+set}" = set; then
8526 echo "$as_me:$LINENO: checking for png.h" >&5
8527 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
8528 if test "${ac_cv_header_png_h+set}" = set; then
8529 echo $ECHO_N "(cached) $ECHO_C" >&6
8531 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
8532 echo "${ECHO_T}$ac_cv_header_png_h" >&6
8534 # Is the header compilable?
8535 echo "$as_me:$LINENO: checking png.h usability" >&5
8536 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
8537 cat >conftest.
$ac_ext <<_ACEOF
8538 #line $LINENO "configure"
8539 #include "confdefs.h"
8540 $ac_includes_default
8543 rm -f conftest.
$ac_objext
8544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8545 (eval $ac_compile) 2>&5
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); } &&
8549 { ac_try
='test -s conftest.$ac_objext'
8550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); }; }; then
8555 ac_header_compiler
=yes
8557 echo "$as_me: failed program was:" >&5
8558 cat conftest.
$ac_ext >&5
8559 ac_header_compiler
=no
8561 rm -f conftest.
$ac_objext conftest.
$ac_ext
8562 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8563 echo "${ECHO_T}$ac_header_compiler" >&6
8565 # Is the header present?
8566 echo "$as_me:$LINENO: checking png.h presence" >&5
8567 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
8568 cat >conftest.
$ac_ext <<_ACEOF
8569 #line $LINENO "configure"
8570 #include "confdefs.h"
8573 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8574 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8576 egrep -v '^ *\+' conftest.er1
>conftest.err
8578 cat conftest.err
>&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); } >/dev
/null
; then
8581 if test -s conftest.err
; then
8582 ac_cpp_err
=$ac_c_preproc_warn_flag
8589 if test -z "$ac_cpp_err"; then
8590 ac_header_preproc
=yes
8592 echo "$as_me: failed program was:" >&5
8593 cat conftest.
$ac_ext >&5
8594 ac_header_preproc
=no
8596 rm -f conftest.err conftest.
$ac_ext
8597 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8598 echo "${ECHO_T}$ac_header_preproc" >&6
8600 # So? What about this header?
8601 case $ac_header_compiler:$ac_header_preproc in
8603 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
8604 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8605 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
8606 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;};;
8608 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
8609 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
8610 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
8611 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
8612 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
8613 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;};;
8615 echo "$as_me:$LINENO: checking for png.h" >&5
8616 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
8617 if test "${ac_cv_header_png_h+set}" = set; then
8618 echo $ECHO_N "(cached) $ECHO_C" >&6
8620 ac_cv_header_png_h
=$ac_header_preproc
8622 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
8623 echo "${ECHO_T}$ac_cv_header_png_h" >&6
8626 if test $ac_cv_header_png_h = yes; then
8627 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
8628 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
8629 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
8630 echo $ECHO_N "(cached) $ECHO_C" >&6
8632 ac_check_lib_save_LIBS
=$LIBS
8633 LIBS
="-lpng -lz -lm $LIBS"
8634 cat >conftest.
$ac_ext <<_ACEOF
8635 #line $LINENO "configure"
8636 #include "confdefs.h"
8638 /* Override any gcc2 internal prototype to avoid an error. */
8642 /* We use char because int might match the return type of a gcc2
8643 builtin and then its argument prototype would still apply. */
8644 char png_get_channels ();
8645 #ifdef F77_DUMMY_MAIN
8649 int F77_DUMMY_MAIN() { return 1; }
8654 png_get_channels ();
8659 rm -f conftest.
$ac_objext conftest
$ac_exeext
8660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8661 (eval $ac_link) 2>&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); } &&
8665 { ac_try
='test -s conftest$ac_exeext'
8666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); }; }; then
8671 ac_cv_lib_png_png_get_channels
=yes
8673 echo "$as_me: failed program was:" >&5
8674 cat conftest.
$ac_ext >&5
8675 ac_cv_lib_png_png_get_channels
=no
8677 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8678 LIBS
=$ac_check_lib_save_LIBS
8680 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
8681 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
8682 if test $ac_cv_lib_png_png_get_channels = yes; then
8691 if test "${HAVE_PNG}" = "yes"; then
8693 cat >>confdefs.h
<<\_ACEOF
8700 ### Use -ltiff if available, unless `--with-tiff=no'.
8702 if test "${HAVE_X11}" = "yes"; then
8703 if test "${with_tiff}" != "no"; then
8704 if test "${ac_cv_header_tiffio_h+set}" = set; then
8705 echo "$as_me:$LINENO: checking for tiffio.h" >&5
8706 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
8707 if test "${ac_cv_header_tiffio_h+set}" = set; then
8708 echo $ECHO_N "(cached) $ECHO_C" >&6
8710 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
8711 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
8713 # Is the header compilable?
8714 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
8715 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
8716 cat >conftest.
$ac_ext <<_ACEOF
8717 #line $LINENO "configure"
8718 #include "confdefs.h"
8719 $ac_includes_default
8722 rm -f conftest.
$ac_objext
8723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8724 (eval $ac_compile) 2>&5
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); } &&
8728 { ac_try
='test -s conftest.$ac_objext'
8729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); }; }; then
8734 ac_header_compiler
=yes
8736 echo "$as_me: failed program was:" >&5
8737 cat conftest.
$ac_ext >&5
8738 ac_header_compiler
=no
8740 rm -f conftest.
$ac_objext conftest.
$ac_ext
8741 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8742 echo "${ECHO_T}$ac_header_compiler" >&6
8744 # Is the header present?
8745 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
8746 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
8747 cat >conftest.
$ac_ext <<_ACEOF
8748 #line $LINENO "configure"
8749 #include "confdefs.h"
8752 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8753 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8755 egrep -v '^ *\+' conftest.er1
>conftest.err
8757 cat conftest.err
>&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); } >/dev
/null
; then
8760 if test -s conftest.err
; then
8761 ac_cpp_err
=$ac_c_preproc_warn_flag
8768 if test -z "$ac_cpp_err"; then
8769 ac_header_preproc
=yes
8771 echo "$as_me: failed program was:" >&5
8772 cat conftest.
$ac_ext >&5
8773 ac_header_preproc
=no
8775 rm -f conftest.err conftest.
$ac_ext
8776 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8777 echo "${ECHO_T}$ac_header_preproc" >&6
8779 # So? What about this header?
8780 case $ac_header_compiler:$ac_header_preproc in
8782 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
8783 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8784 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
8785 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;};;
8787 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
8788 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
8789 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
8790 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
8791 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
8792 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;};;
8794 echo "$as_me:$LINENO: checking for tiffio.h" >&5
8795 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
8796 if test "${ac_cv_header_tiffio_h+set}" = set; then
8797 echo $ECHO_N "(cached) $ECHO_C" >&6
8799 ac_cv_header_tiffio_h
=$ac_header_preproc
8801 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
8802 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
8805 if test $ac_cv_header_tiffio_h = yes; then
8807 # At least one tiff package requires the jpeg library.
8808 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
8809 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
8810 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
8811 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
8812 echo $ECHO_N "(cached) $ECHO_C" >&6
8814 ac_check_lib_save_LIBS
=$LIBS
8815 LIBS
="-ltiff $tifflibs $LIBS"
8816 cat >conftest.
$ac_ext <<_ACEOF
8817 #line $LINENO "configure"
8818 #include "confdefs.h"
8820 /* Override any gcc2 internal prototype to avoid an error. */
8824 /* We use char because int might match the return type of a gcc2
8825 builtin and then its argument prototype would still apply. */
8826 char TIFFGetVersion ();
8827 #ifdef F77_DUMMY_MAIN
8831 int F77_DUMMY_MAIN() { return 1; }
8841 rm -f conftest.
$ac_objext conftest
$ac_exeext
8842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8843 (eval $ac_link) 2>&5
8845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846 (exit $ac_status); } &&
8847 { ac_try
='test -s conftest$ac_exeext'
8848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); }; }; then
8853 ac_cv_lib_tiff_TIFFGetVersion
=yes
8855 echo "$as_me: failed program was:" >&5
8856 cat conftest.
$ac_ext >&5
8857 ac_cv_lib_tiff_TIFFGetVersion
=no
8859 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8860 LIBS
=$ac_check_lib_save_LIBS
8862 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
8863 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
8864 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
8873 if test "${HAVE_TIFF}" = "yes"; then
8875 cat >>confdefs.h
<<\_ACEOF
8882 ### Use -lgif if available, unless `--with-gif=no'.
8884 if test "${HAVE_X11}" = "yes"; then
8885 if test "${with_gif}" != "no"; then
8886 if test "${ac_cv_header_gif_lib_h+set}" = set; then
8887 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
8888 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
8889 if test "${ac_cv_header_gif_lib_h+set}" = set; then
8890 echo $ECHO_N "(cached) $ECHO_C" >&6
8892 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
8893 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
8895 # Is the header compilable?
8896 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
8897 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
8898 cat >conftest.
$ac_ext <<_ACEOF
8899 #line $LINENO "configure"
8900 #include "confdefs.h"
8901 $ac_includes_default
8902 #include <gif_lib.h>
8904 rm -f conftest.
$ac_objext
8905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8906 (eval $ac_compile) 2>&5
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); } &&
8910 { ac_try
='test -s conftest.$ac_objext'
8911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); }; }; then
8916 ac_header_compiler
=yes
8918 echo "$as_me: failed program was:" >&5
8919 cat conftest.
$ac_ext >&5
8920 ac_header_compiler
=no
8922 rm -f conftest.
$ac_objext conftest.
$ac_ext
8923 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8924 echo "${ECHO_T}$ac_header_compiler" >&6
8926 # Is the header present?
8927 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
8928 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
8929 cat >conftest.
$ac_ext <<_ACEOF
8930 #line $LINENO "configure"
8931 #include "confdefs.h"
8932 #include <gif_lib.h>
8934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8935 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8937 egrep -v '^ *\+' conftest.er1
>conftest.err
8939 cat conftest.err
>&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); } >/dev
/null
; then
8942 if test -s conftest.err
; then
8943 ac_cpp_err
=$ac_c_preproc_warn_flag
8950 if test -z "$ac_cpp_err"; then
8951 ac_header_preproc
=yes
8953 echo "$as_me: failed program was:" >&5
8954 cat conftest.
$ac_ext >&5
8955 ac_header_preproc
=no
8957 rm -f conftest.err conftest.
$ac_ext
8958 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8959 echo "${ECHO_T}$ac_header_preproc" >&6
8961 # So? What about this header?
8962 case $ac_header_compiler:$ac_header_preproc in
8964 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8965 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8966 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
8967 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;};;
8969 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
8970 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
8971 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
8972 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
8973 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
8974 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;};;
8976 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
8977 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
8978 if test "${ac_cv_header_gif_lib_h+set}" = set; then
8979 echo $ECHO_N "(cached) $ECHO_C" >&6
8981 ac_cv_header_gif_lib_h
=$ac_header_preproc
8983 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
8984 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
8987 if test $ac_cv_header_gif_lib_h = yes; then
8988 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
8989 # Earlier versions can crash Emacs.
8990 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
8991 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
8992 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
8993 echo $ECHO_N "(cached) $ECHO_C" >&6
8995 ac_check_lib_save_LIBS
=$LIBS
8996 LIBS
="-lungif $LIBS"
8997 cat >conftest.
$ac_ext <<_ACEOF
8998 #line $LINENO "configure"
8999 #include "confdefs.h"
9001 /* Override any gcc2 internal prototype to avoid an error. */
9005 /* We use char because int might match the return type of a gcc2
9006 builtin and then its argument prototype would still apply. */
9007 char EGifPutExtensionLast ();
9008 #ifdef F77_DUMMY_MAIN
9012 int F77_DUMMY_MAIN() { return 1; }
9017 EGifPutExtensionLast ();
9022 rm -f conftest.
$ac_objext conftest
$ac_exeext
9023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9024 (eval $ac_link) 2>&5
9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027 (exit $ac_status); } &&
9028 { ac_try
='test -s conftest$ac_exeext'
9029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033 (exit $ac_status); }; }; then
9034 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
9036 echo "$as_me: failed program was:" >&5
9037 cat conftest.
$ac_ext >&5
9038 ac_cv_lib_ungif_EGifPutExtensionLast
=no
9040 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9041 LIBS
=$ac_check_lib_save_LIBS
9043 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
9044 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
9045 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
9054 if test "${HAVE_GIF}" = "yes"; then
9056 cat >>confdefs.h
<<\_ACEOF
9063 ### Use session management (-lSM -lICE) if available
9065 if test "${HAVE_X11}" = "yes"; then
9066 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9067 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
9068 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
9069 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9070 echo $ECHO_N "(cached) $ECHO_C" >&6
9072 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
9073 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
9075 # Is the header compilable?
9076 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
9077 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
9078 cat >conftest.
$ac_ext <<_ACEOF
9079 #line $LINENO "configure"
9080 #include "confdefs.h"
9081 $ac_includes_default
9082 #include <X11/SM/SMlib.h>
9084 rm -f conftest.
$ac_objext
9085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9086 (eval $ac_compile) 2>&5
9088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089 (exit $ac_status); } &&
9090 { ac_try
='test -s conftest.$ac_objext'
9091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); }; }; then
9096 ac_header_compiler
=yes
9098 echo "$as_me: failed program was:" >&5
9099 cat conftest.
$ac_ext >&5
9100 ac_header_compiler
=no
9102 rm -f conftest.
$ac_objext conftest.
$ac_ext
9103 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9104 echo "${ECHO_T}$ac_header_compiler" >&6
9106 # Is the header present?
9107 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
9108 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
9109 cat >conftest.
$ac_ext <<_ACEOF
9110 #line $LINENO "configure"
9111 #include "confdefs.h"
9112 #include <X11/SM/SMlib.h>
9114 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9115 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9117 egrep -v '^ *\+' conftest.er1
>conftest.err
9119 cat conftest.err
>&5
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); } >/dev
/null
; then
9122 if test -s conftest.err
; then
9123 ac_cpp_err
=$ac_c_preproc_warn_flag
9130 if test -z "$ac_cpp_err"; then
9131 ac_header_preproc
=yes
9133 echo "$as_me: failed program was:" >&5
9134 cat conftest.
$ac_ext >&5
9135 ac_header_preproc
=no
9137 rm -f conftest.err conftest.
$ac_ext
9138 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9139 echo "${ECHO_T}$ac_header_preproc" >&6
9141 # So? What about this header?
9142 case $ac_header_compiler:$ac_header_preproc in
9144 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9145 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9146 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
9147 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;};;
9149 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
9150 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
9151 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
9152 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
9153 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
9154 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;};;
9156 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
9157 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
9158 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9159 echo $ECHO_N "(cached) $ECHO_C" >&6
9161 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
9163 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
9164 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
9167 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
9168 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
9169 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
9170 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
9171 echo $ECHO_N "(cached) $ECHO_C" >&6
9173 ac_check_lib_save_LIBS
=$LIBS
9175 cat >conftest.
$ac_ext <<_ACEOF
9176 #line $LINENO "configure"
9177 #include "confdefs.h"
9179 /* Override any gcc2 internal prototype to avoid an error. */
9183 /* We use char because int might match the return type of a gcc2
9184 builtin and then its argument prototype would still apply. */
9185 char SmcOpenConnection ();
9186 #ifdef F77_DUMMY_MAIN
9190 int F77_DUMMY_MAIN() { return 1; }
9195 SmcOpenConnection ();
9200 rm -f conftest.
$ac_objext conftest
$ac_exeext
9201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9202 (eval $ac_link) 2>&5
9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 (exit $ac_status); } &&
9206 { ac_try
='test -s conftest$ac_exeext'
9207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211 (exit $ac_status); }; }; then
9212 ac_cv_lib_SM_SmcOpenConnection
=yes
9214 echo "$as_me: failed program was:" >&5
9215 cat conftest.
$ac_ext >&5
9216 ac_cv_lib_SM_SmcOpenConnection
=no
9218 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9219 LIBS
=$ac_check_lib_save_LIBS
9221 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
9222 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
9223 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
9233 if test "${HAVE_X_SM}" = "yes"; then
9235 cat >>confdefs.h
<<\_ACEOF
9241 *) LIBS
="-lSM -lICE $LIBS" ;;
9246 # If netdb.h doesn't declare h_errno, we must declare it by hand.
9247 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
9248 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
9249 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
9250 echo $ECHO_N "(cached) $ECHO_C" >&6
9252 cat >conftest.
$ac_ext <<_ACEOF
9253 #line $LINENO "configure"
9254 #include "confdefs.h"
9256 #ifdef F77_DUMMY_MAIN
9260 int F77_DUMMY_MAIN() { return 1; }
9270 rm -f conftest.
$ac_objext conftest
$ac_exeext
9271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9272 (eval $ac_link) 2>&5
9274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275 (exit $ac_status); } &&
9276 { ac_try
='test -s conftest$ac_exeext'
9277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); }; }; then
9282 emacs_cv_netdb_declares_h_errno
=yes
9284 echo "$as_me: failed program was:" >&5
9285 cat conftest.
$ac_ext >&5
9286 emacs_cv_netdb_declares_h_errno
=no
9288 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9290 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
9291 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
9292 if test $emacs_cv_netdb_declares_h_errno = yes; then
9294 cat >>confdefs.h
<<\_ACEOF
9295 #define HAVE_H_ERRNO 1
9300 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9301 # for constant arguments. Useless!
9302 echo "$as_me:$LINENO: checking for working alloca.h" >&5
9303 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9304 if test "${ac_cv_working_alloca_h+set}" = set; then
9305 echo $ECHO_N "(cached) $ECHO_C" >&6
9307 cat >conftest.
$ac_ext <<_ACEOF
9308 #line $LINENO "configure"
9309 #include "confdefs.h"
9311 #ifdef F77_DUMMY_MAIN
9315 int F77_DUMMY_MAIN() { return 1; }
9320 char *p = (char *) alloca (2 * sizeof (int));
9325 rm -f conftest.
$ac_objext conftest
$ac_exeext
9326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9327 (eval $ac_link) 2>&5
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); } &&
9331 { ac_try
='test -s conftest$ac_exeext'
9332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); }; }; then
9337 ac_cv_working_alloca_h
=yes
9339 echo "$as_me: failed program was:" >&5
9340 cat conftest.
$ac_ext >&5
9341 ac_cv_working_alloca_h
=no
9343 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9345 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9346 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9347 if test $ac_cv_working_alloca_h = yes; then
9349 cat >>confdefs.h
<<\_ACEOF
9350 #define HAVE_ALLOCA_H 1
9355 echo "$as_me:$LINENO: checking for alloca" >&5
9356 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9357 if test "${ac_cv_func_alloca_works+set}" = set; then
9358 echo $ECHO_N "(cached) $ECHO_C" >&6
9360 cat >conftest.
$ac_ext <<_ACEOF
9361 #line $LINENO "configure"
9362 #include "confdefs.h"
9364 # define alloca __builtin_alloca
9367 # include <malloc.h>
9368 # define alloca _alloca
9371 # include <alloca.h>
9376 # ifndef alloca /* predefined by HP cc +Olibcalls */
9384 #ifdef F77_DUMMY_MAIN
9388 int F77_DUMMY_MAIN() { return 1; }
9393 char *p = (char *) alloca (1);
9398 rm -f conftest.
$ac_objext conftest
$ac_exeext
9399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9400 (eval $ac_link) 2>&5
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); } &&
9404 { ac_try
='test -s conftest$ac_exeext'
9405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); }; }; then
9410 ac_cv_func_alloca_works
=yes
9412 echo "$as_me: failed program was:" >&5
9413 cat conftest.
$ac_ext >&5
9414 ac_cv_func_alloca_works
=no
9416 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9418 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9419 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9421 if test $ac_cv_func_alloca_works = yes; then
9423 cat >>confdefs.h
<<\_ACEOF
9424 #define HAVE_ALLOCA 1
9428 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9429 # that cause trouble. Some versions do not even contain alloca or
9430 # contain a buggy version. If you still want to use their alloca,
9431 # use ar to extract alloca.o from them instead of compiling alloca.c.
9433 ALLOCA
=alloca.
$ac_objext
9435 cat >>confdefs.h
<<\_ACEOF
9440 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9441 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9442 if test "${ac_cv_os_cray+set}" = set; then
9443 echo $ECHO_N "(cached) $ECHO_C" >&6
9445 cat >conftest.
$ac_ext <<_ACEOF
9446 #line $LINENO "configure"
9447 #include "confdefs.h"
9448 #if defined(CRAY) && ! defined(CRAY2)
9455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9456 egrep "webecray" >/dev
/null
2>&1; then
9464 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9465 echo "${ECHO_T}$ac_cv_os_cray" >&6
9466 if test $ac_cv_os_cray = yes; then
9467 for ac_func
in _getb67 GETB67 getb67
; do
9468 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9469 echo "$as_me:$LINENO: checking for $ac_func" >&5
9470 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9471 if eval "test \"\${$as_ac_var+set}\" = set"; then
9472 echo $ECHO_N "(cached) $ECHO_C" >&6
9474 cat >conftest.
$ac_ext <<_ACEOF
9475 #line $LINENO "configure"
9476 #include "confdefs.h"
9477 /* System header to define __stub macros and hopefully few prototypes,
9478 which can conflict with char $ac_func (); below. */
9480 /* Override any gcc2 internal prototype to avoid an error. */
9484 /* We use char because int might match the return type of a gcc2
9485 builtin and then its argument prototype would still apply. */
9489 #ifdef F77_DUMMY_MAIN
9493 int F77_DUMMY_MAIN() { return 1; }
9498 /* The GNU C library defines this for functions which it implements
9499 to always fail with ENOSYS. Some functions are actually named
9500 something starting with __ and the normal name is an alias. */
9501 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9511 rm -f conftest.
$ac_objext conftest
$ac_exeext
9512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9513 (eval $ac_link) 2>&5
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); } &&
9517 { ac_try
='test -s conftest$ac_exeext'
9518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522 (exit $ac_status); }; }; then
9523 eval "$as_ac_var=yes"
9525 echo "$as_me: failed program was:" >&5
9526 cat conftest.
$ac_ext >&5
9527 eval "$as_ac_var=no"
9529 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9532 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9533 if test `eval echo '${'$as_ac_var'}'` = yes; then
9535 cat >>confdefs.h
<<_ACEOF
9536 #define CRAY_STACKSEG_END $ac_func
9545 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9546 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9547 if test "${ac_cv_c_stack_direction+set}" = set; then
9548 echo $ECHO_N "(cached) $ECHO_C" >&6
9550 if test "$cross_compiling" = yes; then
9551 ac_cv_c_stack_direction
=0
9553 cat >conftest.
$ac_ext <<_ACEOF
9554 #line $LINENO "configure"
9555 #include "confdefs.h"
9557 find_stack_direction ()
9559 static char *addr = 0;
9564 return find_stack_direction ();
9567 return (&dummy > addr) ? 1 : -1;
9573 exit (find_stack_direction () < 0);
9576 rm -f conftest
$ac_exeext
9577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9578 (eval $ac_link) 2>&5
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); }; }; then
9587 ac_cv_c_stack_direction
=1
9589 echo "$as_me: program exited with status $ac_status" >&5
9590 echo "$as_me: failed program was:" >&5
9591 cat conftest.
$ac_ext >&5
9593 ac_cv_c_stack_direction
=-1
9595 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9598 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9599 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9601 cat >>confdefs.h
<<_ACEOF
9602 #define STACK_DIRECTION $ac_cv_c_stack_direction
9609 # fmod, logb, and frexp are found in -lm on most systems.
9610 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
9612 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
9613 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
9614 if test "${ac_cv_lib_m_sqrt+set}" = set; then
9615 echo $ECHO_N "(cached) $ECHO_C" >&6
9617 ac_check_lib_save_LIBS
=$LIBS
9619 cat >conftest.
$ac_ext <<_ACEOF
9620 #line $LINENO "configure"
9621 #include "confdefs.h"
9623 /* Override any gcc2 internal prototype to avoid an error. */
9627 /* We use char because int might match the return type of a gcc2
9628 builtin and then its argument prototype would still apply. */
9630 #ifdef F77_DUMMY_MAIN
9634 int F77_DUMMY_MAIN() { return 1; }
9644 rm -f conftest.
$ac_objext conftest
$ac_exeext
9645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9646 (eval $ac_link) 2>&5
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); } &&
9650 { ac_try
='test -s conftest$ac_exeext'
9651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); }; }; then
9656 ac_cv_lib_m_sqrt
=yes
9658 echo "$as_me: failed program was:" >&5
9659 cat conftest.
$ac_ext >&5
9662 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9663 LIBS
=$ac_check_lib_save_LIBS
9665 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
9666 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
9667 if test $ac_cv_lib_m_sqrt = yes; then
9668 cat >>confdefs.h
<<_ACEOF
9677 # Check for mail-locking functions in a "mail" library
9679 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
9680 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
9681 if test "${ac_cv_lib_mail_maillock+set}" = set; then
9682 echo $ECHO_N "(cached) $ECHO_C" >&6
9684 ac_check_lib_save_LIBS
=$LIBS
9686 cat >conftest.
$ac_ext <<_ACEOF
9687 #line $LINENO "configure"
9688 #include "confdefs.h"
9690 /* Override any gcc2 internal prototype to avoid an error. */
9694 /* We use char because int might match the return type of a gcc2
9695 builtin and then its argument prototype would still apply. */
9697 #ifdef F77_DUMMY_MAIN
9701 int F77_DUMMY_MAIN() { return 1; }
9711 rm -f conftest.
$ac_objext conftest
$ac_exeext
9712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9713 (eval $ac_link) 2>&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); } &&
9717 { ac_try
='test -s conftest$ac_exeext'
9718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); }; }; then
9723 ac_cv_lib_mail_maillock
=yes
9725 echo "$as_me: failed program was:" >&5
9726 cat conftest.
$ac_ext >&5
9727 ac_cv_lib_mail_maillock
=no
9729 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9730 LIBS
=$ac_check_lib_save_LIBS
9732 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
9733 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
9734 if test $ac_cv_lib_mail_maillock = yes; then
9735 cat >>confdefs.h
<<_ACEOF
9736 #define HAVE_LIBMAIL 1
9744 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
9745 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
9746 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
9747 echo $ECHO_N "(cached) $ECHO_C" >&6
9749 ac_check_lib_save_LIBS
=$LIBS
9750 LIBS
="-llockfile $LIBS"
9751 cat >conftest.
$ac_ext <<_ACEOF
9752 #line $LINENO "configure"
9753 #include "confdefs.h"
9755 /* Override any gcc2 internal prototype to avoid an error. */
9759 /* We use char because int might match the return type of a gcc2
9760 builtin and then its argument prototype would still apply. */
9762 #ifdef F77_DUMMY_MAIN
9766 int F77_DUMMY_MAIN() { return 1; }
9776 rm -f conftest.
$ac_objext conftest
$ac_exeext
9777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9778 (eval $ac_link) 2>&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); } &&
9782 { ac_try
='test -s conftest$ac_exeext'
9783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); }; }; then
9788 ac_cv_lib_lockfile_maillock
=yes
9790 echo "$as_me: failed program was:" >&5
9791 cat conftest.
$ac_ext >&5
9792 ac_cv_lib_lockfile_maillock
=no
9794 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9795 LIBS
=$ac_check_lib_save_LIBS
9797 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
9798 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
9799 if test $ac_cv_lib_lockfile_maillock = yes; then
9800 cat >>confdefs.h
<<_ACEOF
9801 #define HAVE_LIBLOCKFILE 1
9804 LIBS
="-llockfile $LIBS"
9808 # If we have the shared liblockfile, assume we must use it for mail
9809 # locking (e.g. Debian). If we couldn't link against liblockfile
9810 # (no liblockfile.a installed), ensure that we don't need to.
9811 if test "$ac_cv_lib_lockfile_maillock" = no
; then
9812 # Extract the first word of "liblockfile.so", so it can be a program name with args.
9813 set dummy liblockfile.so
; ac_word
=$2
9814 echo "$as_me:$LINENO: checking for $ac_word" >&5
9815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9816 if test "${ac_cv_prog_liblockfile+set}" = set; then
9817 echo $ECHO_N "(cached) $ECHO_C" >&6
9819 if test -n "$liblockfile"; then
9820 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
9822 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9823 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
9824 for as_dir
in $as_dummy
9827 test -z "$as_dir" && as_dir
=.
9828 for ac_exec_ext
in '' $ac_executable_extensions; do
9829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9830 ac_cv_prog_liblockfile
="yes"
9831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9837 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
9840 liblockfile
=$ac_cv_prog_liblockfile
9841 if test -n "$liblockfile"; then
9842 echo "$as_me:$LINENO: result: $liblockfile" >&5
9843 echo "${ECHO_T}$liblockfile" >&6
9845 echo "$as_me:$LINENO: result: no" >&5
9846 echo "${ECHO_T}no" >&6
9849 if test $ac_cv_prog_liblockfile = yes; then
9850 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
9851 This probably means that movemail could lose mail.
9852 There may be a \`development' package to install containing liblockfile." >&5
9853 echo "$as_me: error: Shared liblockfile found but can't link against it.
9854 This probably means that movemail could lose mail.
9855 There may be a \`development' package to install containing liblockfile." >&2;}
9856 { (exit 1); exit 1; }; }
9858 cat >>confdefs.h
<<\_ACEOF
9859 #define LIBMAIL -llockfile
9866 for ac_func
in touchlock
9868 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9869 echo "$as_me:$LINENO: checking for $ac_func" >&5
9870 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9871 if eval "test \"\${$as_ac_var+set}\" = set"; then
9872 echo $ECHO_N "(cached) $ECHO_C" >&6
9874 cat >conftest.
$ac_ext <<_ACEOF
9875 #line $LINENO "configure"
9876 #include "confdefs.h"
9877 /* System header to define __stub macros and hopefully few prototypes,
9878 which can conflict with char $ac_func (); below. */
9880 /* Override any gcc2 internal prototype to avoid an error. */
9884 /* We use char because int might match the return type of a gcc2
9885 builtin and then its argument prototype would still apply. */
9889 #ifdef F77_DUMMY_MAIN
9893 int F77_DUMMY_MAIN() { return 1; }
9898 /* The GNU C library defines this for functions which it implements
9899 to always fail with ENOSYS. Some functions are actually named
9900 something starting with __ and the normal name is an alias. */
9901 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9911 rm -f conftest.
$ac_objext conftest
$ac_exeext
9912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9913 (eval $ac_link) 2>&5
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); } &&
9917 { ac_try
='test -s conftest$ac_exeext'
9918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); }; }; then
9923 eval "$as_ac_var=yes"
9925 echo "$as_me: failed program was:" >&5
9926 cat conftest.
$ac_ext >&5
9927 eval "$as_ac_var=no"
9929 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9932 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9933 if test `eval echo '${'$as_ac_var'}'` = yes; then
9934 cat >>confdefs.h
<<_ACEOF
9935 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9942 for ac_header
in maillock.h
9944 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9945 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9946 echo "$as_me:$LINENO: checking for $ac_header" >&5
9947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9949 echo $ECHO_N "(cached) $ECHO_C" >&6
9951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9952 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9954 # Is the header compilable?
9955 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9956 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9957 cat >conftest.
$ac_ext <<_ACEOF
9958 #line $LINENO "configure"
9959 #include "confdefs.h"
9960 $ac_includes_default
9961 #include <$ac_header>
9963 rm -f conftest.
$ac_objext
9964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9965 (eval $ac_compile) 2>&5
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); } &&
9969 { ac_try
='test -s conftest.$ac_objext'
9970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); }; }; then
9975 ac_header_compiler
=yes
9977 echo "$as_me: failed program was:" >&5
9978 cat conftest.
$ac_ext >&5
9979 ac_header_compiler
=no
9981 rm -f conftest.
$ac_objext conftest.
$ac_ext
9982 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9983 echo "${ECHO_T}$ac_header_compiler" >&6
9985 # Is the header present?
9986 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9987 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9988 cat >conftest.
$ac_ext <<_ACEOF
9989 #line $LINENO "configure"
9990 #include "confdefs.h"
9991 #include <$ac_header>
9993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9994 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9996 egrep -v '^ *\+' conftest.er1
>conftest.err
9998 cat conftest.err
>&5
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); } >/dev
/null
; then
10001 if test -s conftest.err
; then
10002 ac_cpp_err
=$ac_c_preproc_warn_flag
10009 if test -z "$ac_cpp_err"; then
10010 ac_header_preproc
=yes
10012 echo "$as_me: failed program was:" >&5
10013 cat conftest.
$ac_ext >&5
10014 ac_header_preproc
=no
10016 rm -f conftest.err conftest.
$ac_ext
10017 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10018 echo "${ECHO_T}$ac_header_preproc" >&6
10020 # So? What about this header?
10021 case $ac_header_compiler:$ac_header_preproc in
10023 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10024 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10026 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10028 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10029 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10030 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10031 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10033 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10035 echo "$as_me:$LINENO: checking for $ac_header" >&5
10036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10038 echo $ECHO_N "(cached) $ECHO_C" >&6
10040 eval "$as_ac_Header=$ac_header_preproc"
10042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10043 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10046 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10047 cat >>confdefs.h
<<_ACEOF
10048 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10111 for ac_func
in gethostname getdomainname dup2 \
10112 rename closedir mkdir
rmdir sysinfo \
10113 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
10114 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
10115 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
10116 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
10117 sendto recvfrom getsockopt setsockopt getsockname getpeername \
10118 gai_strerror mkstemp getline getdelim
10120 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10121 echo "$as_me:$LINENO: checking for $ac_func" >&5
10122 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10123 if eval "test \"\${$as_ac_var+set}\" = set"; then
10124 echo $ECHO_N "(cached) $ECHO_C" >&6
10126 cat >conftest.
$ac_ext <<_ACEOF
10127 #line $LINENO "configure"
10128 #include "confdefs.h"
10129 /* System header to define __stub macros and hopefully few prototypes,
10130 which can conflict with char $ac_func (); below. */
10131 #include <assert.h>
10132 /* Override any gcc2 internal prototype to avoid an error. */
10136 /* We use char because int might match the return type of a gcc2
10137 builtin and then its argument prototype would still apply. */
10141 #ifdef F77_DUMMY_MAIN
10142 # ifdef __cplusplus
10145 int F77_DUMMY_MAIN() { return 1; }
10150 /* The GNU C library defines this for functions which it implements
10151 to always fail with ENOSYS. Some functions are actually named
10152 something starting with __ and the normal name is an alias. */
10153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10163 rm -f conftest.
$ac_objext conftest
$ac_exeext
10164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10165 (eval $ac_link) 2>&5
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); } &&
10169 { ac_try
='test -s conftest$ac_exeext'
10170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10171 (eval $ac_try) 2>&5
10173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174 (exit $ac_status); }; }; then
10175 eval "$as_ac_var=yes"
10177 echo "$as_me: failed program was:" >&5
10178 cat conftest.
$ac_ext >&5
10179 eval "$as_ac_var=no"
10181 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10184 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10185 if test `eval echo '${'$as_ac_var'}'` = yes; then
10186 cat >>confdefs.h
<<_ACEOF
10187 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10195 for ac_header
in sys
/un.h
10197 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10199 echo "$as_me:$LINENO: checking for $ac_header" >&5
10200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10202 echo $ECHO_N "(cached) $ECHO_C" >&6
10204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10205 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10207 # Is the header compilable?
10208 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10209 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10210 cat >conftest.
$ac_ext <<_ACEOF
10211 #line $LINENO "configure"
10212 #include "confdefs.h"
10213 $ac_includes_default
10214 #include <$ac_header>
10216 rm -f conftest.
$ac_objext
10217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10218 (eval $ac_compile) 2>&5
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); } &&
10222 { ac_try
='test -s conftest.$ac_objext'
10223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10224 (eval $ac_try) 2>&5
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); }; }; then
10228 ac_header_compiler
=yes
10230 echo "$as_me: failed program was:" >&5
10231 cat conftest.
$ac_ext >&5
10232 ac_header_compiler
=no
10234 rm -f conftest.
$ac_objext conftest.
$ac_ext
10235 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10236 echo "${ECHO_T}$ac_header_compiler" >&6
10238 # Is the header present?
10239 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10240 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10241 cat >conftest.
$ac_ext <<_ACEOF
10242 #line $LINENO "configure"
10243 #include "confdefs.h"
10244 #include <$ac_header>
10246 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10247 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10249 egrep -v '^ *\+' conftest.er1
>conftest.err
10251 cat conftest.err
>&5
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); } >/dev
/null
; then
10254 if test -s conftest.err
; then
10255 ac_cpp_err
=$ac_c_preproc_warn_flag
10262 if test -z "$ac_cpp_err"; then
10263 ac_header_preproc
=yes
10265 echo "$as_me: failed program was:" >&5
10266 cat conftest.
$ac_ext >&5
10267 ac_header_preproc
=no
10269 rm -f conftest.err conftest.
$ac_ext
10270 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10271 echo "${ECHO_T}$ac_header_preproc" >&6
10273 # So? What about this header?
10274 case $ac_header_compiler:$ac_header_preproc in
10276 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10277 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10279 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10281 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10282 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10283 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10284 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10286 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10288 echo "$as_me:$LINENO: checking for $ac_header" >&5
10289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10291 echo $ECHO_N "(cached) $ECHO_C" >&6
10293 eval "$as_ac_Header=$ac_header_preproc"
10295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10299 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10300 cat >>confdefs.h
<<_ACEOF
10301 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10311 for ac_header
in sys
/time.h unistd.h
10313 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10314 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10315 echo "$as_me:$LINENO: checking for $ac_header" >&5
10316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10318 echo $ECHO_N "(cached) $ECHO_C" >&6
10320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10321 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10323 # Is the header compilable?
10324 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10325 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10326 cat >conftest.
$ac_ext <<_ACEOF
10327 #line $LINENO "configure"
10328 #include "confdefs.h"
10329 $ac_includes_default
10330 #include <$ac_header>
10332 rm -f conftest.
$ac_objext
10333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10334 (eval $ac_compile) 2>&5
10336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); } &&
10338 { ac_try
='test -s conftest.$ac_objext'
10339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10340 (eval $ac_try) 2>&5
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); }; }; then
10344 ac_header_compiler
=yes
10346 echo "$as_me: failed program was:" >&5
10347 cat conftest.
$ac_ext >&5
10348 ac_header_compiler
=no
10350 rm -f conftest.
$ac_objext conftest.
$ac_ext
10351 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10352 echo "${ECHO_T}$ac_header_compiler" >&6
10354 # Is the header present?
10355 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10356 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10357 cat >conftest.
$ac_ext <<_ACEOF
10358 #line $LINENO "configure"
10359 #include "confdefs.h"
10360 #include <$ac_header>
10362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10363 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10365 egrep -v '^ *\+' conftest.er1
>conftest.err
10367 cat conftest.err
>&5
10368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369 (exit $ac_status); } >/dev
/null
; then
10370 if test -s conftest.err
; then
10371 ac_cpp_err
=$ac_c_preproc_warn_flag
10378 if test -z "$ac_cpp_err"; then
10379 ac_header_preproc
=yes
10381 echo "$as_me: failed program was:" >&5
10382 cat conftest.
$ac_ext >&5
10383 ac_header_preproc
=no
10385 rm -f conftest.err conftest.
$ac_ext
10386 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10387 echo "${ECHO_T}$ac_header_preproc" >&6
10389 # So? What about this header?
10390 case $ac_header_compiler:$ac_header_preproc in
10392 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10395 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10397 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10398 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10399 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10400 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10402 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10404 echo "$as_me:$LINENO: checking for $ac_header" >&5
10405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10407 echo $ECHO_N "(cached) $ECHO_C" >&6
10409 eval "$as_ac_Header=$ac_header_preproc"
10411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10416 cat >>confdefs.h
<<_ACEOF
10417 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10425 for ac_func
in alarm
10427 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10428 echo "$as_me:$LINENO: checking for $ac_func" >&5
10429 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10430 if eval "test \"\${$as_ac_var+set}\" = set"; then
10431 echo $ECHO_N "(cached) $ECHO_C" >&6
10433 cat >conftest.
$ac_ext <<_ACEOF
10434 #line $LINENO "configure"
10435 #include "confdefs.h"
10436 /* System header to define __stub macros and hopefully few prototypes,
10437 which can conflict with char $ac_func (); below. */
10438 #include <assert.h>
10439 /* Override any gcc2 internal prototype to avoid an error. */
10443 /* We use char because int might match the return type of a gcc2
10444 builtin and then its argument prototype would still apply. */
10448 #ifdef F77_DUMMY_MAIN
10449 # ifdef __cplusplus
10452 int F77_DUMMY_MAIN() { return 1; }
10457 /* The GNU C library defines this for functions which it implements
10458 to always fail with ENOSYS. Some functions are actually named
10459 something starting with __ and the normal name is an alias. */
10460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10470 rm -f conftest.
$ac_objext conftest
$ac_exeext
10471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10472 (eval $ac_link) 2>&5
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); } &&
10476 { ac_try
='test -s conftest$ac_exeext'
10477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10478 (eval $ac_try) 2>&5
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); }; }; then
10482 eval "$as_ac_var=yes"
10484 echo "$as_me: failed program was:" >&5
10485 cat conftest.
$ac_ext >&5
10486 eval "$as_ac_var=no"
10488 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10491 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10492 if test `eval echo '${'$as_ac_var'}'` = yes; then
10493 cat >>confdefs.h
<<_ACEOF
10494 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10500 echo "$as_me:$LINENO: checking for working mktime" >&5
10501 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
10502 if test "${ac_cv_func_working_mktime+set}" = set; then
10503 echo $ECHO_N "(cached) $ECHO_C" >&6
10505 if test "$cross_compiling" = yes; then
10506 ac_cv_func_working_mktime
=no
10508 cat >conftest.
$ac_ext <<_ACEOF
10509 #line $LINENO "configure"
10510 #include "confdefs.h"
10511 /* Test program from Paul Eggert and Tony Leneis. */
10512 #if TIME_WITH_SYS_TIME
10513 # include <sys/time.h>
10516 # if HAVE_SYS_TIME_H
10517 # include <sys/time.h>
10524 # include <unistd.h>
10528 # define alarm(X) /* empty */
10531 /* Work around redefinition to rpl_putenv by other config tests. */
10534 static time_t time_t_max;
10536 /* Values we'll use to set the TZ environment variable. */
10537 static const char *const tz_strings[] = {
10538 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
10539 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
10541 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
10543 /* Fail if mktime fails to convert a date in the spring-forward gap.
10544 Based on a problem report from Andreas Jaeger. */
10546 spring_forward_gap ()
10548 /* glibc (up to about 1998-10-07) failed this test. */
10551 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10552 instead of "TZ=America/Vancouver" in order to detect the bug even
10553 on systems that don't support the Olson extension, or don't have the
10554 full zoneinfo tables installed. */
10555 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
10564 if (mktime (&tm) == (time_t)-1)
10573 if ((lt = localtime (&now)) && mktime (lt) != now)
10575 now = time_t_max - now;
10576 if ((lt = localtime (&now)) && mktime (lt) != now)
10583 /* Based on code from Ariel Faigon. */
10593 if (tm.tm_mon != 2 || tm.tm_mday != 31)
10603 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
10604 now = mktime (&tm);
10605 if (now != (time_t) -1)
10607 struct tm *lt = localtime (&now);
10609 && lt->tm_year == tm.tm_year
10610 && lt->tm_mon == tm.tm_mon
10611 && lt->tm_mday == tm.tm_mday
10612 && lt->tm_hour == tm.tm_hour
10613 && lt->tm_min == tm.tm_min
10614 && lt->tm_sec == tm.tm_sec
10615 && lt->tm_yday == tm.tm_yday
10616 && lt->tm_wday == tm.tm_wday
10617 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
10618 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
10629 /* This test makes some buggy mktime implementations loop.
10630 Give up after 60 seconds; a mktime slower than that
10631 isn't worth using anyway. */
10634 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
10637 delta = time_t_max / 997; /* a suitable prime number */
10638 for (i = 0; i < N_STRINGS; i++)
10641 putenv (tz_strings[i]);
10643 for (t = 0; t <= time_t_max - delta; t += delta)
10645 mktime_test ((time_t) 60 * 60);
10646 mktime_test ((time_t) 60 * 60 * 24);
10648 for (j = 1; 0 < j; j *= 2)
10650 bigtime_test (j - 1);
10653 spring_forward_gap ();
10657 rm -f conftest
$ac_exeext
10658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10659 (eval $ac_link) 2>&5
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10664 (eval $ac_try) 2>&5
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); }; }; then
10668 ac_cv_func_working_mktime
=yes
10670 echo "$as_me: program exited with status $ac_status" >&5
10671 echo "$as_me: failed program was:" >&5
10672 cat conftest.
$ac_ext >&5
10673 ( exit $ac_status )
10674 ac_cv_func_working_mktime
=no
10676 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10679 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
10680 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
10681 if test $ac_cv_func_working_mktime = no
; then
10682 LIBOBJS
="$LIBOBJS mktime.$ac_objext"
10685 if test "$ac_cv_func_working_mktime" = no
; then
10687 cat >>confdefs.h
<<\_ACEOF
10688 #define BROKEN_MKTIME 1
10693 ac_have_func
=no
# yes means we've found a way to get the load average.
10697 # Check for getloadavg, but be sure not to touch the cache variable.
10698 (echo "$as_me:$LINENO: checking for getloadavg" >&5
10699 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
10700 if test "${ac_cv_func_getloadavg+set}" = set; then
10701 echo $ECHO_N "(cached) $ECHO_C" >&6
10703 cat >conftest.
$ac_ext <<_ACEOF
10704 #line $LINENO "configure"
10705 #include "confdefs.h"
10706 /* System header to define __stub macros and hopefully few prototypes,
10707 which can conflict with char getloadavg (); below. */
10708 #include <assert.h>
10709 /* Override any gcc2 internal prototype to avoid an error. */
10713 /* We use char because int might match the return type of a gcc2
10714 builtin and then its argument prototype would still apply. */
10715 char getloadavg ();
10718 #ifdef F77_DUMMY_MAIN
10719 # ifdef __cplusplus
10722 int F77_DUMMY_MAIN() { return 1; }
10727 /* The GNU C library defines this for functions which it implements
10728 to always fail with ENOSYS. Some functions are actually named
10729 something starting with __ and the normal name is an alias. */
10730 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
10740 rm -f conftest.
$ac_objext conftest
$ac_exeext
10741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10742 (eval $ac_link) 2>&5
10744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745 (exit $ac_status); } &&
10746 { ac_try
='test -s conftest$ac_exeext'
10747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10748 (eval $ac_try) 2>&5
10750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); }; }; then
10752 ac_cv_func_getloadavg
=yes
10754 echo "$as_me: failed program was:" >&5
10755 cat conftest.
$ac_ext >&5
10756 ac_cv_func_getloadavg
=no
10758 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10760 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
10761 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
10762 if test $ac_cv_func_getloadavg = yes; then
10767 ) && ac_have_func
=yes
10769 # On HPUX9, an unprivileged user can get load averages through this function.
10771 for ac_func
in pstat_getdynamic
10773 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10774 echo "$as_me:$LINENO: checking for $ac_func" >&5
10775 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10776 if eval "test \"\${$as_ac_var+set}\" = set"; then
10777 echo $ECHO_N "(cached) $ECHO_C" >&6
10779 cat >conftest.
$ac_ext <<_ACEOF
10780 #line $LINENO "configure"
10781 #include "confdefs.h"
10782 /* System header to define __stub macros and hopefully few prototypes,
10783 which can conflict with char $ac_func (); below. */
10784 #include <assert.h>
10785 /* Override any gcc2 internal prototype to avoid an error. */
10789 /* We use char because int might match the return type of a gcc2
10790 builtin and then its argument prototype would still apply. */
10794 #ifdef F77_DUMMY_MAIN
10795 # ifdef __cplusplus
10798 int F77_DUMMY_MAIN() { return 1; }
10803 /* The GNU C library defines this for functions which it implements
10804 to always fail with ENOSYS. Some functions are actually named
10805 something starting with __ and the normal name is an alias. */
10806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10816 rm -f conftest.
$ac_objext conftest
$ac_exeext
10817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10818 (eval $ac_link) 2>&5
10820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821 (exit $ac_status); } &&
10822 { ac_try
='test -s conftest$ac_exeext'
10823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10824 (eval $ac_try) 2>&5
10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 (exit $ac_status); }; }; then
10828 eval "$as_ac_var=yes"
10830 echo "$as_me: failed program was:" >&5
10831 cat conftest.
$ac_ext >&5
10832 eval "$as_ac_var=no"
10834 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10837 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10838 if test `eval echo '${'$as_ac_var'}'` = yes; then
10839 cat >>confdefs.h
<<_ACEOF
10840 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10847 # Solaris has libkstat which does not require root.
10849 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
10850 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
10851 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
10852 echo $ECHO_N "(cached) $ECHO_C" >&6
10854 ac_check_lib_save_LIBS
=$LIBS
10855 LIBS
="-lkstat $LIBS"
10856 cat >conftest.
$ac_ext <<_ACEOF
10857 #line $LINENO "configure"
10858 #include "confdefs.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 kstat_open ();
10867 #ifdef F77_DUMMY_MAIN
10868 # ifdef __cplusplus
10871 int F77_DUMMY_MAIN() { return 1; }
10881 rm -f conftest.
$ac_objext conftest
$ac_exeext
10882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10883 (eval $ac_link) 2>&5
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); } &&
10887 { ac_try
='test -s conftest$ac_exeext'
10888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10889 (eval $ac_try) 2>&5
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); }; }; then
10893 ac_cv_lib_kstat_kstat_open
=yes
10895 echo "$as_me: failed program was:" >&5
10896 cat conftest.
$ac_ext >&5
10897 ac_cv_lib_kstat_kstat_open
=no
10899 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10900 LIBS
=$ac_check_lib_save_LIBS
10902 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
10903 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
10904 if test $ac_cv_lib_kstat_kstat_open = yes; then
10905 cat >>confdefs.h
<<_ACEOF
10906 #define HAVE_LIBKSTAT 1
10909 LIBS
="-lkstat $LIBS"
10913 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
10915 # Some systems with -lutil have (and need) -lkvm as well, some do not.
10916 # On Solaris, -lkvm requires nlist from -lelf, so check that first
10917 # to get the right answer into the cache.
10918 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
10919 if test $ac_have_func = no
; then
10920 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
10921 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
10922 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
10923 echo $ECHO_N "(cached) $ECHO_C" >&6
10925 ac_check_lib_save_LIBS
=$LIBS
10927 cat >conftest.
$ac_ext <<_ACEOF
10928 #line $LINENO "configure"
10929 #include "confdefs.h"
10931 /* Override any gcc2 internal prototype to avoid an error. */
10935 /* We use char because int might match the return type of a gcc2
10936 builtin and then its argument prototype would still apply. */
10938 #ifdef F77_DUMMY_MAIN
10939 # ifdef __cplusplus
10942 int F77_DUMMY_MAIN() { return 1; }
10952 rm -f conftest.
$ac_objext conftest
$ac_exeext
10953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10954 (eval $ac_link) 2>&5
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); } &&
10958 { ac_try
='test -s conftest$ac_exeext'
10959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10960 (eval $ac_try) 2>&5
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); }; }; then
10964 ac_cv_lib_elf_elf_begin
=yes
10966 echo "$as_me: failed program was:" >&5
10967 cat conftest.
$ac_ext >&5
10968 ac_cv_lib_elf_elf_begin
=no
10970 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10971 LIBS
=$ac_check_lib_save_LIBS
10973 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
10974 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
10975 if test $ac_cv_lib_elf_elf_begin = yes; then
10980 if test $ac_have_func = no
; then
10981 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
10982 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
10983 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
10984 echo $ECHO_N "(cached) $ECHO_C" >&6
10986 ac_check_lib_save_LIBS
=$LIBS
10988 cat >conftest.
$ac_ext <<_ACEOF
10989 #line $LINENO "configure"
10990 #include "confdefs.h"
10992 /* Override any gcc2 internal prototype to avoid an error. */
10996 /* We use char because int might match the return type of a gcc2
10997 builtin and then its argument prototype would still apply. */
10999 #ifdef F77_DUMMY_MAIN
11000 # ifdef __cplusplus
11003 int F77_DUMMY_MAIN() { return 1; }
11013 rm -f conftest.
$ac_objext conftest
$ac_exeext
11014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11015 (eval $ac_link) 2>&5
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); } &&
11019 { ac_try
='test -s conftest$ac_exeext'
11020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11021 (eval $ac_try) 2>&5
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); }; }; then
11025 ac_cv_lib_kvm_kvm_open
=yes
11027 echo "$as_me: failed program was:" >&5
11028 cat conftest.
$ac_ext >&5
11029 ac_cv_lib_kvm_kvm_open
=no
11031 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11032 LIBS
=$ac_check_lib_save_LIBS
11034 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
11035 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
11036 if test $ac_cv_lib_kvm_kvm_open = yes; then
11040 # Check for the 4.4BSD definition of getloadavg.
11041 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
11042 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
11043 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
11044 echo $ECHO_N "(cached) $ECHO_C" >&6
11046 ac_check_lib_save_LIBS
=$LIBS
11047 LIBS
="-lutil $LIBS"
11048 cat >conftest.
$ac_ext <<_ACEOF
11049 #line $LINENO "configure"
11050 #include "confdefs.h"
11052 /* Override any gcc2 internal prototype to avoid an error. */
11056 /* We use char because int might match the return type of a gcc2
11057 builtin and then its argument prototype would still apply. */
11058 char getloadavg ();
11059 #ifdef F77_DUMMY_MAIN
11060 # ifdef __cplusplus
11063 int F77_DUMMY_MAIN() { return 1; }
11073 rm -f conftest.
$ac_objext conftest
$ac_exeext
11074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11075 (eval $ac_link) 2>&5
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); } &&
11079 { ac_try
='test -s conftest$ac_exeext'
11080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11081 (eval $ac_try) 2>&5
11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); }; }; then
11085 ac_cv_lib_util_getloadavg
=yes
11087 echo "$as_me: failed program was:" >&5
11088 cat conftest.
$ac_ext >&5
11089 ac_cv_lib_util_getloadavg
=no
11091 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11092 LIBS
=$ac_check_lib_save_LIBS
11094 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
11095 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
11096 if test $ac_cv_lib_util_getloadavg = yes; then
11097 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
11102 if test $ac_have_func = no
; then
11103 # There is a commonly available library for RS/6000 AIX.
11104 # Since it is not a standard part of AIX, it might be installed locally.
11105 ac_getloadavg_LIBS
=$LIBS
11106 LIBS
="-L/usr/local/lib $LIBS"
11107 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
11108 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
11109 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
11110 echo $ECHO_N "(cached) $ECHO_C" >&6
11112 ac_check_lib_save_LIBS
=$LIBS
11113 LIBS
="-lgetloadavg $LIBS"
11114 cat >conftest.
$ac_ext <<_ACEOF
11115 #line $LINENO "configure"
11116 #include "confdefs.h"
11118 /* Override any gcc2 internal prototype to avoid an error. */
11122 /* We use char because int might match the return type of a gcc2
11123 builtin and then its argument prototype would still apply. */
11124 char getloadavg ();
11125 #ifdef F77_DUMMY_MAIN
11126 # ifdef __cplusplus
11129 int F77_DUMMY_MAIN() { return 1; }
11139 rm -f conftest.
$ac_objext conftest
$ac_exeext
11140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11141 (eval $ac_link) 2>&5
11143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144 (exit $ac_status); } &&
11145 { ac_try
='test -s conftest$ac_exeext'
11146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11147 (eval $ac_try) 2>&5
11149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150 (exit $ac_status); }; }; then
11151 ac_cv_lib_getloadavg_getloadavg
=yes
11153 echo "$as_me: failed program was:" >&5
11154 cat conftest.
$ac_ext >&5
11155 ac_cv_lib_getloadavg_getloadavg
=no
11157 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11158 LIBS
=$ac_check_lib_save_LIBS
11160 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
11161 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
11162 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
11163 LIBS
="-lgetloadavg $LIBS"
11165 LIBS
=$ac_getloadavg_LIBS
11170 # Make sure it is really in the library, if we think we found it,
11171 # otherwise set up the replacement function.
11173 for ac_func
in getloadavg
11175 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11176 echo "$as_me:$LINENO: checking for $ac_func" >&5
11177 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11178 if eval "test \"\${$as_ac_var+set}\" = set"; then
11179 echo $ECHO_N "(cached) $ECHO_C" >&6
11181 cat >conftest.
$ac_ext <<_ACEOF
11182 #line $LINENO "configure"
11183 #include "confdefs.h"
11184 /* System header to define __stub macros and hopefully few prototypes,
11185 which can conflict with char $ac_func (); below. */
11186 #include <assert.h>
11187 /* Override any gcc2 internal prototype to avoid an error. */
11191 /* We use char because int might match the return type of a gcc2
11192 builtin and then its argument prototype would still apply. */
11196 #ifdef F77_DUMMY_MAIN
11197 # ifdef __cplusplus
11200 int F77_DUMMY_MAIN() { return 1; }
11205 /* The GNU C library defines this for functions which it implements
11206 to always fail with ENOSYS. Some functions are actually named
11207 something starting with __ and the normal name is an alias. */
11208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11218 rm -f conftest.
$ac_objext conftest
$ac_exeext
11219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11220 (eval $ac_link) 2>&5
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); } &&
11224 { ac_try
='test -s conftest$ac_exeext'
11225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11226 (eval $ac_try) 2>&5
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); }; }; then
11230 eval "$as_ac_var=yes"
11232 echo "$as_me: failed program was:" >&5
11233 cat conftest.
$ac_ext >&5
11234 eval "$as_ac_var=no"
11236 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11239 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11240 if test `eval echo '${'$as_ac_var'}'` = yes; then
11241 cat >>confdefs.h
<<_ACEOF
11242 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11246 LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
11248 cat >>confdefs.h
<<\_ACEOF
11249 #define C_GETLOADAVG 1
11252 # Figure out what our getloadavg.c needs.
11254 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11255 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
11256 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
11257 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11258 echo $ECHO_N "(cached) $ECHO_C" >&6
11260 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
11261 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
11263 # Is the header compilable?
11264 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
11265 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
11266 cat >conftest.
$ac_ext <<_ACEOF
11267 #line $LINENO "configure"
11268 #include "confdefs.h"
11269 $ac_includes_default
11270 #include <sys/dg_sys_info.h>
11272 rm -f conftest.
$ac_objext
11273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11274 (eval $ac_compile) 2>&5
11276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); } &&
11278 { ac_try
='test -s conftest.$ac_objext'
11279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11280 (eval $ac_try) 2>&5
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); }; }; then
11284 ac_header_compiler
=yes
11286 echo "$as_me: failed program was:" >&5
11287 cat conftest.
$ac_ext >&5
11288 ac_header_compiler
=no
11290 rm -f conftest.
$ac_objext conftest.
$ac_ext
11291 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11292 echo "${ECHO_T}$ac_header_compiler" >&6
11294 # Is the header present?
11295 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
11296 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
11297 cat >conftest.
$ac_ext <<_ACEOF
11298 #line $LINENO "configure"
11299 #include "confdefs.h"
11300 #include <sys/dg_sys_info.h>
11302 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11303 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11305 egrep -v '^ *\+' conftest.er1
>conftest.err
11307 cat conftest.err
>&5
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); } >/dev
/null
; then
11310 if test -s conftest.err
; then
11311 ac_cpp_err
=$ac_c_preproc_warn_flag
11318 if test -z "$ac_cpp_err"; then
11319 ac_header_preproc
=yes
11321 echo "$as_me: failed program was:" >&5
11322 cat conftest.
$ac_ext >&5
11323 ac_header_preproc
=no
11325 rm -f conftest.err conftest.
$ac_ext
11326 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11327 echo "${ECHO_T}$ac_header_preproc" >&6
11329 # So? What about this header?
11330 case $ac_header_compiler:$ac_header_preproc in
11332 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
11333 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11334 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
11335 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};;
11337 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
11338 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
11339 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
11340 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
11341 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
11342 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};;
11344 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
11345 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
11346 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11347 echo $ECHO_N "(cached) $ECHO_C" >&6
11349 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
11351 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
11352 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
11355 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
11358 cat >>confdefs.h
<<\_ACEOF
11363 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
11364 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
11365 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
11366 echo $ECHO_N "(cached) $ECHO_C" >&6
11368 ac_check_lib_save_LIBS
=$LIBS
11370 cat >conftest.
$ac_ext <<_ACEOF
11371 #line $LINENO "configure"
11372 #include "confdefs.h"
11374 /* Override any gcc2 internal prototype to avoid an error. */
11378 /* We use char because int might match the return type of a gcc2
11379 builtin and then its argument prototype would still apply. */
11380 char dg_sys_info ();
11381 #ifdef F77_DUMMY_MAIN
11382 # ifdef __cplusplus
11385 int F77_DUMMY_MAIN() { return 1; }
11395 rm -f conftest.
$ac_objext conftest
$ac_exeext
11396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11397 (eval $ac_link) 2>&5
11399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); } &&
11401 { ac_try
='test -s conftest$ac_exeext'
11402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11403 (eval $ac_try) 2>&5
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); }; }; then
11407 ac_cv_lib_dgc_dg_sys_info
=yes
11409 echo "$as_me: failed program was:" >&5
11410 cat conftest.
$ac_ext >&5
11411 ac_cv_lib_dgc_dg_sys_info
=no
11413 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11414 LIBS
=$ac_check_lib_save_LIBS
11416 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
11417 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
11418 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
11419 cat >>confdefs.h
<<_ACEOF
11420 #define HAVE_LIBDGC 1
11431 if test "${ac_cv_header_locale_h+set}" = set; then
11432 echo "$as_me:$LINENO: checking for locale.h" >&5
11433 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
11434 if test "${ac_cv_header_locale_h+set}" = set; then
11435 echo $ECHO_N "(cached) $ECHO_C" >&6
11437 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
11438 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
11440 # Is the header compilable?
11441 echo "$as_me:$LINENO: checking locale.h usability" >&5
11442 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
11443 cat >conftest.
$ac_ext <<_ACEOF
11444 #line $LINENO "configure"
11445 #include "confdefs.h"
11446 $ac_includes_default
11447 #include <locale.h>
11449 rm -f conftest.
$ac_objext
11450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11451 (eval $ac_compile) 2>&5
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); } &&
11455 { ac_try
='test -s conftest.$ac_objext'
11456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11457 (eval $ac_try) 2>&5
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); }; }; then
11461 ac_header_compiler
=yes
11463 echo "$as_me: failed program was:" >&5
11464 cat conftest.
$ac_ext >&5
11465 ac_header_compiler
=no
11467 rm -f conftest.
$ac_objext conftest.
$ac_ext
11468 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11469 echo "${ECHO_T}$ac_header_compiler" >&6
11471 # Is the header present?
11472 echo "$as_me:$LINENO: checking locale.h presence" >&5
11473 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
11474 cat >conftest.
$ac_ext <<_ACEOF
11475 #line $LINENO "configure"
11476 #include "confdefs.h"
11477 #include <locale.h>
11479 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11480 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11482 egrep -v '^ *\+' conftest.er1
>conftest.err
11484 cat conftest.err
>&5
11485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486 (exit $ac_status); } >/dev
/null
; then
11487 if test -s conftest.err
; then
11488 ac_cpp_err
=$ac_c_preproc_warn_flag
11495 if test -z "$ac_cpp_err"; then
11496 ac_header_preproc
=yes
11498 echo "$as_me: failed program was:" >&5
11499 cat conftest.
$ac_ext >&5
11500 ac_header_preproc
=no
11502 rm -f conftest.err conftest.
$ac_ext
11503 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11504 echo "${ECHO_T}$ac_header_preproc" >&6
11506 # So? What about this header?
11507 case $ac_header_compiler:$ac_header_preproc in
11509 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
11510 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11511 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
11512 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;};;
11514 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
11515 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
11516 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
11517 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
11518 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
11519 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;};;
11521 echo "$as_me:$LINENO: checking for locale.h" >&5
11522 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
11523 if test "${ac_cv_header_locale_h+set}" = set; then
11524 echo $ECHO_N "(cached) $ECHO_C" >&6
11526 ac_cv_header_locale_h
=$ac_header_preproc
11528 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
11529 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
11535 for ac_func
in setlocale
11537 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11538 echo "$as_me:$LINENO: checking for $ac_func" >&5
11539 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11540 if eval "test \"\${$as_ac_var+set}\" = set"; then
11541 echo $ECHO_N "(cached) $ECHO_C" >&6
11543 cat >conftest.
$ac_ext <<_ACEOF
11544 #line $LINENO "configure"
11545 #include "confdefs.h"
11546 /* System header to define __stub macros and hopefully few prototypes,
11547 which can conflict with char $ac_func (); below. */
11548 #include <assert.h>
11549 /* Override any gcc2 internal prototype to avoid an error. */
11553 /* We use char because int might match the return type of a gcc2
11554 builtin and then its argument prototype would still apply. */
11558 #ifdef F77_DUMMY_MAIN
11559 # ifdef __cplusplus
11562 int F77_DUMMY_MAIN() { return 1; }
11567 /* The GNU C library defines this for functions which it implements
11568 to always fail with ENOSYS. Some functions are actually named
11569 something starting with __ and the normal name is an alias. */
11570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11580 rm -f conftest.
$ac_objext conftest
$ac_exeext
11581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11582 (eval $ac_link) 2>&5
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); } &&
11586 { ac_try
='test -s conftest$ac_exeext'
11587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11588 (eval $ac_try) 2>&5
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); }; }; then
11592 eval "$as_ac_var=yes"
11594 echo "$as_me: failed program was:" >&5
11595 cat conftest.
$ac_ext >&5
11596 eval "$as_ac_var=no"
11598 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11601 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11602 if test `eval echo '${'$as_ac_var'}'` = yes; then
11603 cat >>confdefs.h
<<_ACEOF
11604 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11611 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
11612 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
11613 # Irix 4.0.5F has the header but not the library.
11614 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
11617 cat >>confdefs.h
<<\_ACEOF
11623 if test $ac_have_func = no
; then
11624 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11625 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
11626 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
11627 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11628 echo $ECHO_N "(cached) $ECHO_C" >&6
11630 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
11631 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
11633 # Is the header compilable?
11634 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
11635 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
11636 cat >conftest.
$ac_ext <<_ACEOF
11637 #line $LINENO "configure"
11638 #include "confdefs.h"
11639 $ac_includes_default
11640 #include <inq_stats/cpustats.h>
11642 rm -f conftest.
$ac_objext
11643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11644 (eval $ac_compile) 2>&5
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); } &&
11648 { ac_try
='test -s conftest.$ac_objext'
11649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11650 (eval $ac_try) 2>&5
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); }; }; then
11654 ac_header_compiler
=yes
11656 echo "$as_me: failed program was:" >&5
11657 cat conftest.
$ac_ext >&5
11658 ac_header_compiler
=no
11660 rm -f conftest.
$ac_objext conftest.
$ac_ext
11661 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11662 echo "${ECHO_T}$ac_header_compiler" >&6
11664 # Is the header present?
11665 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
11666 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
11667 cat >conftest.
$ac_ext <<_ACEOF
11668 #line $LINENO "configure"
11669 #include "confdefs.h"
11670 #include <inq_stats/cpustats.h>
11672 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11673 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11675 egrep -v '^ *\+' conftest.er1
>conftest.err
11677 cat conftest.err
>&5
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); } >/dev
/null
; then
11680 if test -s conftest.err
; then
11681 ac_cpp_err
=$ac_c_preproc_warn_flag
11688 if test -z "$ac_cpp_err"; then
11689 ac_header_preproc
=yes
11691 echo "$as_me: failed program was:" >&5
11692 cat conftest.
$ac_ext >&5
11693 ac_header_preproc
=no
11695 rm -f conftest.err conftest.
$ac_ext
11696 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11697 echo "${ECHO_T}$ac_header_preproc" >&6
11699 # So? What about this header?
11700 case $ac_header_compiler:$ac_header_preproc in
11702 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
11703 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11704 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
11705 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11707 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
11708 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
11709 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
11710 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
11711 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
11712 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11714 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
11715 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
11716 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11717 echo $ECHO_N "(cached) $ECHO_C" >&6
11719 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
11721 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
11722 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
11725 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
11728 cat >>confdefs.h
<<\_ACEOF
11733 cat >>confdefs.h
<<\_ACEOF
11742 if test $ac_have_func = no
; then
11743 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11744 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
11745 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
11746 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11747 echo $ECHO_N "(cached) $ECHO_C" >&6
11749 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
11750 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
11752 # Is the header compilable?
11753 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
11754 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
11755 cat >conftest.
$ac_ext <<_ACEOF
11756 #line $LINENO "configure"
11757 #include "confdefs.h"
11758 $ac_includes_default
11759 #include <sys/cpustats.h>
11761 rm -f conftest.
$ac_objext
11762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11763 (eval $ac_compile) 2>&5
11765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766 (exit $ac_status); } &&
11767 { ac_try
='test -s conftest.$ac_objext'
11768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11769 (eval $ac_try) 2>&5
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); }; }; then
11773 ac_header_compiler
=yes
11775 echo "$as_me: failed program was:" >&5
11776 cat conftest.
$ac_ext >&5
11777 ac_header_compiler
=no
11779 rm -f conftest.
$ac_objext conftest.
$ac_ext
11780 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11781 echo "${ECHO_T}$ac_header_compiler" >&6
11783 # Is the header present?
11784 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
11785 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
11786 cat >conftest.
$ac_ext <<_ACEOF
11787 #line $LINENO "configure"
11788 #include "confdefs.h"
11789 #include <sys/cpustats.h>
11791 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11792 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11794 egrep -v '^ *\+' conftest.er1
>conftest.err
11796 cat conftest.err
>&5
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); } >/dev
/null
; then
11799 if test -s conftest.err
; then
11800 ac_cpp_err
=$ac_c_preproc_warn_flag
11807 if test -z "$ac_cpp_err"; then
11808 ac_header_preproc
=yes
11810 echo "$as_me: failed program was:" >&5
11811 cat conftest.
$ac_ext >&5
11812 ac_header_preproc
=no
11814 rm -f conftest.err conftest.
$ac_ext
11815 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11816 echo "${ECHO_T}$ac_header_preproc" >&6
11818 # So? What about this header?
11819 case $ac_header_compiler:$ac_header_preproc in
11821 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
11822 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11823 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
11824 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11826 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
11827 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
11828 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
11829 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
11830 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
11831 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11833 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
11834 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
11835 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11836 echo $ECHO_N "(cached) $ECHO_C" >&6
11838 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
11840 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
11841 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
11844 if test $ac_cv_header_sys_cpustats_h = yes; then
11845 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
11854 if test $ac_have_func = no
; then
11856 for ac_header
in mach
/mach.h
11858 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11860 echo "$as_me:$LINENO: checking for $ac_header" >&5
11861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11862 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11863 echo $ECHO_N "(cached) $ECHO_C" >&6
11865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11866 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11868 # Is the header compilable?
11869 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11870 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11871 cat >conftest.
$ac_ext <<_ACEOF
11872 #line $LINENO "configure"
11873 #include "confdefs.h"
11874 $ac_includes_default
11875 #include <$ac_header>
11877 rm -f conftest.
$ac_objext
11878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11879 (eval $ac_compile) 2>&5
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); } &&
11883 { ac_try
='test -s conftest.$ac_objext'
11884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11885 (eval $ac_try) 2>&5
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); }; }; then
11889 ac_header_compiler
=yes
11891 echo "$as_me: failed program was:" >&5
11892 cat conftest.
$ac_ext >&5
11893 ac_header_compiler
=no
11895 rm -f conftest.
$ac_objext conftest.
$ac_ext
11896 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11897 echo "${ECHO_T}$ac_header_compiler" >&6
11899 # Is the header present?
11900 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11901 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11902 cat >conftest.
$ac_ext <<_ACEOF
11903 #line $LINENO "configure"
11904 #include "confdefs.h"
11905 #include <$ac_header>
11907 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11908 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11910 egrep -v '^ *\+' conftest.er1
>conftest.err
11912 cat conftest.err
>&5
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); } >/dev
/null
; then
11915 if test -s conftest.err
; then
11916 ac_cpp_err
=$ac_c_preproc_warn_flag
11923 if test -z "$ac_cpp_err"; then
11924 ac_header_preproc
=yes
11926 echo "$as_me: failed program was:" >&5
11927 cat conftest.
$ac_ext >&5
11928 ac_header_preproc
=no
11930 rm -f conftest.err conftest.
$ac_ext
11931 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11932 echo "${ECHO_T}$ac_header_preproc" >&6
11934 # So? What about this header?
11935 case $ac_header_compiler:$ac_header_preproc in
11937 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11940 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11942 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11943 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11944 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11945 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11949 echo "$as_me:$LINENO: checking for $ac_header" >&5
11950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11951 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11952 echo $ECHO_N "(cached) $ECHO_C" >&6
11954 eval "$as_ac_Header=$ac_header_preproc"
11956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11957 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11960 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11961 cat >>confdefs.h
<<_ACEOF
11962 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11972 for ac_header
in nlist.h
11974 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11975 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11976 echo "$as_me:$LINENO: checking for $ac_header" >&5
11977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11979 echo $ECHO_N "(cached) $ECHO_C" >&6
11981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11982 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11984 # Is the header compilable?
11985 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11986 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11987 cat >conftest.
$ac_ext <<_ACEOF
11988 #line $LINENO "configure"
11989 #include "confdefs.h"
11990 $ac_includes_default
11991 #include <$ac_header>
11993 rm -f conftest.
$ac_objext
11994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11995 (eval $ac_compile) 2>&5
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); } &&
11999 { ac_try
='test -s conftest.$ac_objext'
12000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12001 (eval $ac_try) 2>&5
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); }; }; then
12005 ac_header_compiler
=yes
12007 echo "$as_me: failed program was:" >&5
12008 cat conftest.
$ac_ext >&5
12009 ac_header_compiler
=no
12011 rm -f conftest.
$ac_objext conftest.
$ac_ext
12012 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12013 echo "${ECHO_T}$ac_header_compiler" >&6
12015 # Is the header present?
12016 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12017 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12018 cat >conftest.
$ac_ext <<_ACEOF
12019 #line $LINENO "configure"
12020 #include "confdefs.h"
12021 #include <$ac_header>
12023 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12024 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12026 egrep -v '^ *\+' conftest.er1
>conftest.err
12028 cat conftest.err
>&5
12029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030 (exit $ac_status); } >/dev
/null
; then
12031 if test -s conftest.err
; then
12032 ac_cpp_err
=$ac_c_preproc_warn_flag
12039 if test -z "$ac_cpp_err"; then
12040 ac_header_preproc
=yes
12042 echo "$as_me: failed program was:" >&5
12043 cat conftest.
$ac_ext >&5
12044 ac_header_preproc
=no
12046 rm -f conftest.err conftest.
$ac_ext
12047 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12048 echo "${ECHO_T}$ac_header_preproc" >&6
12050 # So? What about this header?
12051 case $ac_header_compiler:$ac_header_preproc in
12053 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12054 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12058 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12059 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12060 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12061 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12063 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12065 echo "$as_me:$LINENO: checking for $ac_header" >&5
12066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12068 echo $ECHO_N "(cached) $ECHO_C" >&6
12070 eval "$as_ac_Header=$ac_header_preproc"
12072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12073 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12076 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12077 cat >>confdefs.h
<<_ACEOF
12078 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12080 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
12081 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
12082 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
12083 echo $ECHO_N "(cached) $ECHO_C" >&6
12085 cat >conftest.
$ac_ext <<_ACEOF
12086 #line $LINENO "configure"
12087 #include "confdefs.h"
12090 #ifdef F77_DUMMY_MAIN
12091 # ifdef __cplusplus
12094 int F77_DUMMY_MAIN() { return 1; }
12099 static struct nlist ac_aggr;
12100 if (ac_aggr.n_un.n_name)
12106 rm -f conftest.
$ac_objext
12107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12108 (eval $ac_compile) 2>&5
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); } &&
12112 { ac_try
='test -s conftest.$ac_objext'
12113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12114 (eval $ac_try) 2>&5
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); }; }; then
12118 ac_cv_member_struct_nlist_n_un_n_name
=yes
12120 echo "$as_me: failed program was:" >&5
12121 cat conftest.
$ac_ext >&5
12122 ac_cv_member_struct_nlist_n_un_n_name
=no
12124 rm -f conftest.
$ac_objext conftest.
$ac_ext
12126 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
12127 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
12128 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
12130 cat >>confdefs.h
<<_ACEOF
12131 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
12135 cat >>confdefs.h
<<\_ACEOF
12136 #define NLIST_NAME_UNION 1
12150 # Some definitions of getloadavg require that the program be installed setgid.
12151 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
12152 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
12153 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
12154 echo $ECHO_N "(cached) $ECHO_C" >&6
12156 cat >conftest.
$ac_ext <<_ACEOF
12157 #line $LINENO "configure"
12158 #include "confdefs.h"
12159 #include "$srcdir/getloadavg.c"
12160 #ifdef LDAV_PRIVILEGED
12161 Yowza Am I SETGID yet
12164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12165 egrep "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
12166 ac_cv_func_getloadavg_setgid
=yes
12168 ac_cv_func_getloadavg_setgid
=no
12173 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
12174 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
12175 if test $ac_cv_func_getloadavg_setgid = yes; then
12178 cat >>confdefs.h
<<\_ACEOF
12179 #define GETLOADAVG_PRIVILEGED 1
12186 if test $ac_cv_func_getloadavg_setgid = yes; then
12187 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
12188 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
12189 if test "${ac_cv_group_kmem+set}" = set; then
12190 echo $ECHO_N "(cached) $ECHO_C" >&6
12192 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
12193 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
12194 # If we got an error (system does not support symlinks), try without -L.
12195 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
12196 ac_cv_group_kmem
=`echo $ac_ls_output \
12197 | sed -ne 's/[ ][ ]*/ /g;
12198 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
12202 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
12203 echo "${ECHO_T}$ac_cv_group_kmem" >&6
12204 KMEM_GROUP
=$ac_cv_group_kmem
12206 if test "x$ac_save_LIBS" = x
; then
12207 GETLOADAVG_LIBS
=$LIBS
12209 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
12215 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12216 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
12217 if test "${ac_cv_sys_largefile_source+set}" = set; then
12218 echo $ECHO_N "(cached) $ECHO_C" >&6
12221 ac_cv_sys_largefile_source
=no
12222 cat >conftest.
$ac_ext <<_ACEOF
12223 #line $LINENO "configure"
12224 #include "confdefs.h"
12226 #ifdef F77_DUMMY_MAIN
12227 # ifdef __cplusplus
12230 int F77_DUMMY_MAIN() { return 1; }
12240 rm -f conftest.
$ac_objext
12241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12242 (eval $ac_compile) 2>&5
12244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245 (exit $ac_status); } &&
12246 { ac_try
='test -s conftest.$ac_objext'
12247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12248 (eval $ac_try) 2>&5
12250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251 (exit $ac_status); }; }; then
12254 echo "$as_me: failed program was:" >&5
12255 cat conftest.
$ac_ext >&5
12257 rm -f conftest.
$ac_objext conftest.
$ac_ext
12258 cat >conftest.
$ac_ext <<_ACEOF
12259 #line $LINENO "configure"
12260 #include "confdefs.h"
12261 #define _LARGEFILE_SOURCE 1
12263 #ifdef F77_DUMMY_MAIN
12264 # ifdef __cplusplus
12267 int F77_DUMMY_MAIN() { return 1; }
12277 rm -f conftest.
$ac_objext
12278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12279 (eval $ac_compile) 2>&5
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); } &&
12283 { ac_try
='test -s conftest.$ac_objext'
12284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12285 (eval $ac_try) 2>&5
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); }; }; then
12289 ac_cv_sys_largefile_source
=1; break
12291 echo "$as_me: failed program was:" >&5
12292 cat conftest.
$ac_ext >&5
12294 rm -f conftest.
$ac_objext conftest.
$ac_ext
12298 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12299 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
12300 if test "$ac_cv_sys_largefile_source" != no
; then
12302 cat >>confdefs.h
<<_ACEOF
12303 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12309 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12310 # in glibc 2.1.3, but that breaks too many other things.
12311 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12312 echo "$as_me:$LINENO: checking for fseeko" >&5
12313 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
12314 if test "${ac_cv_func_fseeko+set}" = set; then
12315 echo $ECHO_N "(cached) $ECHO_C" >&6
12317 cat >conftest.
$ac_ext <<_ACEOF
12318 #line $LINENO "configure"
12319 #include "confdefs.h"
12321 #ifdef F77_DUMMY_MAIN
12322 # ifdef __cplusplus
12325 int F77_DUMMY_MAIN() { return 1; }
12330 return fseeko && fseeko (stdin, 0, 0);
12335 rm -f conftest.
$ac_objext conftest
$ac_exeext
12336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12337 (eval $ac_link) 2>&5
12339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340 (exit $ac_status); } &&
12341 { ac_try
='test -s conftest$ac_exeext'
12342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12343 (eval $ac_try) 2>&5
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); }; }; then
12347 ac_cv_func_fseeko
=yes
12349 echo "$as_me: failed program was:" >&5
12350 cat conftest.
$ac_ext >&5
12351 ac_cv_func_fseeko
=no
12353 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12355 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
12356 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
12357 if test $ac_cv_func_fseeko = yes; then
12359 cat >>confdefs.h
<<\_ACEOF
12360 #define HAVE_FSEEKO 1
12368 for ac_func
in grantpt
12370 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12371 echo "$as_me:$LINENO: checking for $ac_func" >&5
12372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12373 if eval "test \"\${$as_ac_var+set}\" = set"; then
12374 echo $ECHO_N "(cached) $ECHO_C" >&6
12376 cat >conftest.
$ac_ext <<_ACEOF
12377 #line $LINENO "configure"
12378 #include "confdefs.h"
12379 /* System header to define __stub macros and hopefully few prototypes,
12380 which can conflict with char $ac_func (); below. */
12381 #include <assert.h>
12382 /* Override any gcc2 internal prototype to avoid an error. */
12386 /* We use char because int might match the return type of a gcc2
12387 builtin and then its argument prototype would still apply. */
12391 #ifdef F77_DUMMY_MAIN
12392 # ifdef __cplusplus
12395 int F77_DUMMY_MAIN() { return 1; }
12400 /* The GNU C library defines this for functions which it implements
12401 to always fail with ENOSYS. Some functions are actually named
12402 something starting with __ and the normal name is an alias. */
12403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12413 rm -f conftest.
$ac_objext conftest
$ac_exeext
12414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12415 (eval $ac_link) 2>&5
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); } &&
12419 { ac_try
='test -s conftest$ac_exeext'
12420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12421 (eval $ac_try) 2>&5
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); }; }; then
12425 eval "$as_ac_var=yes"
12427 echo "$as_me: failed program was:" >&5
12428 cat conftest.
$ac_ext >&5
12429 eval "$as_ac_var=no"
12431 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12434 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12435 if test `eval echo '${'$as_ac_var'}'` = yes; then
12436 cat >>confdefs.h
<<_ACEOF
12437 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12444 # PTY-related GNU extensions.
12446 for ac_func
in getpt
12448 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12449 echo "$as_me:$LINENO: checking for $ac_func" >&5
12450 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12451 if eval "test \"\${$as_ac_var+set}\" = set"; then
12452 echo $ECHO_N "(cached) $ECHO_C" >&6
12454 cat >conftest.
$ac_ext <<_ACEOF
12455 #line $LINENO "configure"
12456 #include "confdefs.h"
12457 /* System header to define __stub macros and hopefully few prototypes,
12458 which can conflict with char $ac_func (); below. */
12459 #include <assert.h>
12460 /* Override any gcc2 internal prototype to avoid an error. */
12464 /* We use char because int might match the return type of a gcc2
12465 builtin and then its argument prototype would still apply. */
12469 #ifdef F77_DUMMY_MAIN
12470 # ifdef __cplusplus
12473 int F77_DUMMY_MAIN() { return 1; }
12478 /* The GNU C library defines this for functions which it implements
12479 to always fail with ENOSYS. Some functions are actually named
12480 something starting with __ and the normal name is an alias. */
12481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12491 rm -f conftest.
$ac_objext conftest
$ac_exeext
12492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12493 (eval $ac_link) 2>&5
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); } &&
12497 { ac_try
='test -s conftest$ac_exeext'
12498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12499 (eval $ac_try) 2>&5
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); }; }; then
12503 eval "$as_ac_var=yes"
12505 echo "$as_me: failed program was:" >&5
12506 cat conftest.
$ac_ext >&5
12507 eval "$as_ac_var=no"
12509 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12512 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12513 if test `eval echo '${'$as_ac_var'}'` = yes; then
12514 cat >>confdefs.h
<<_ACEOF
12515 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12522 # Check this now, so that we will NOT find the above functions in ncurses.
12523 # That is because we have not set up to link ncurses in lib-src.
12524 # It's better to believe a function is not available
12525 # than to expect to find it in ncurses.
12527 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
12528 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
12529 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
12530 echo $ECHO_N "(cached) $ECHO_C" >&6
12532 ac_check_lib_save_LIBS
=$LIBS
12533 LIBS
="-lncurses $LIBS"
12534 cat >conftest.
$ac_ext <<_ACEOF
12535 #line $LINENO "configure"
12536 #include "confdefs.h"
12538 /* Override any gcc2 internal prototype to avoid an error. */
12542 /* We use char because int might match the return type of a gcc2
12543 builtin and then its argument prototype would still apply. */
12545 #ifdef F77_DUMMY_MAIN
12546 # ifdef __cplusplus
12549 int F77_DUMMY_MAIN() { return 1; }
12559 rm -f conftest.
$ac_objext conftest
$ac_exeext
12560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12561 (eval $ac_link) 2>&5
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); } &&
12565 { ac_try
='test -s conftest$ac_exeext'
12566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12567 (eval $ac_try) 2>&5
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); }; }; then
12571 ac_cv_lib_ncurses_tparm
=yes
12573 echo "$as_me: failed program was:" >&5
12574 cat conftest.
$ac_ext >&5
12575 ac_cv_lib_ncurses_tparm
=no
12577 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12578 LIBS
=$ac_check_lib_save_LIBS
12580 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
12581 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
12582 if test $ac_cv_lib_ncurses_tparm = yes; then
12583 cat >>confdefs.h
<<_ACEOF
12584 #define HAVE_LIBNCURSES 1
12587 LIBS
="-lncurses $LIBS"
12592 # Do we need the Hesiod library to provide the support routines?
12593 if test "$with_hesiod" = yes ; then
12594 # Don't set $LIBS here -- see comments above.
12596 echo "$as_me:$LINENO: checking for res_send" >&5
12597 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
12598 if test "${ac_cv_func_res_send+set}" = set; then
12599 echo $ECHO_N "(cached) $ECHO_C" >&6
12601 cat >conftest.
$ac_ext <<_ACEOF
12602 #line $LINENO "configure"
12603 #include "confdefs.h"
12604 /* System header to define __stub macros and hopefully few prototypes,
12605 which can conflict with char res_send (); below. */
12606 #include <assert.h>
12607 /* Override any gcc2 internal prototype to avoid an error. */
12611 /* We use char because int might match the return type of a gcc2
12612 builtin and then its argument prototype would still apply. */
12616 #ifdef F77_DUMMY_MAIN
12617 # ifdef __cplusplus
12620 int F77_DUMMY_MAIN() { return 1; }
12625 /* The GNU C library defines this for functions which it implements
12626 to always fail with ENOSYS. Some functions are actually named
12627 something starting with __ and the normal name is an alias. */
12628 #if defined (__stub_res_send) || defined (__stub___res_send)
12638 rm -f conftest.
$ac_objext conftest
$ac_exeext
12639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12640 (eval $ac_link) 2>&5
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); } &&
12644 { ac_try
='test -s conftest$ac_exeext'
12645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12646 (eval $ac_try) 2>&5
12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); }; }; then
12650 ac_cv_func_res_send
=yes
12652 echo "$as_me: failed program was:" >&5
12653 cat conftest.
$ac_ext >&5
12654 ac_cv_func_res_send
=no
12656 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12658 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
12659 echo "${ECHO_T}$ac_cv_func_res_send" >&6
12660 if test $ac_cv_func_res_send = yes; then
12663 echo "$as_me:$LINENO: checking for __res_send" >&5
12664 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
12665 if test "${ac_cv_func___res_send+set}" = set; then
12666 echo $ECHO_N "(cached) $ECHO_C" >&6
12668 cat >conftest.
$ac_ext <<_ACEOF
12669 #line $LINENO "configure"
12670 #include "confdefs.h"
12671 /* System header to define __stub macros and hopefully few prototypes,
12672 which can conflict with char __res_send (); below. */
12673 #include <assert.h>
12674 /* Override any gcc2 internal prototype to avoid an error. */
12678 /* We use char because int might match the return type of a gcc2
12679 builtin and then its argument prototype would still apply. */
12680 char __res_send ();
12683 #ifdef F77_DUMMY_MAIN
12684 # ifdef __cplusplus
12687 int F77_DUMMY_MAIN() { return 1; }
12692 /* The GNU C library defines this for functions which it implements
12693 to always fail with ENOSYS. Some functions are actually named
12694 something starting with __ and the normal name is an alias. */
12695 #if defined (__stub___res_send) || defined (__stub_____res_send)
12705 rm -f conftest.
$ac_objext conftest
$ac_exeext
12706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12707 (eval $ac_link) 2>&5
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); } &&
12711 { ac_try
='test -s conftest$ac_exeext'
12712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12713 (eval $ac_try) 2>&5
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); }; }; then
12717 ac_cv_func___res_send
=yes
12719 echo "$as_me: failed program was:" >&5
12720 cat conftest.
$ac_ext >&5
12721 ac_cv_func___res_send
=no
12723 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12725 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
12726 echo "${ECHO_T}$ac_cv_func___res_send" >&6
12727 if test $ac_cv_func___res_send = yes; then
12730 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
12731 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
12732 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
12733 echo $ECHO_N "(cached) $ECHO_C" >&6
12735 ac_check_lib_save_LIBS
=$LIBS
12736 LIBS
="-lresolv $LIBS"
12737 cat >conftest.
$ac_ext <<_ACEOF
12738 #line $LINENO "configure"
12739 #include "confdefs.h"
12741 /* Override any gcc2 internal prototype to avoid an error. */
12745 /* We use char because int might match the return type of a gcc2
12746 builtin and then its argument prototype would still apply. */
12748 #ifdef F77_DUMMY_MAIN
12749 # ifdef __cplusplus
12752 int F77_DUMMY_MAIN() { return 1; }
12762 rm -f conftest.
$ac_objext conftest
$ac_exeext
12763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12764 (eval $ac_link) 2>&5
12766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767 (exit $ac_status); } &&
12768 { ac_try
='test -s conftest$ac_exeext'
12769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12770 (eval $ac_try) 2>&5
12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773 (exit $ac_status); }; }; then
12774 ac_cv_lib_resolv_res_send
=yes
12776 echo "$as_me: failed program was:" >&5
12777 cat conftest.
$ac_ext >&5
12778 ac_cv_lib_resolv_res_send
=no
12780 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12781 LIBS
=$ac_check_lib_save_LIBS
12783 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
12784 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
12785 if test $ac_cv_lib_resolv_res_send = yes; then
12788 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
12789 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
12790 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
12791 echo $ECHO_N "(cached) $ECHO_C" >&6
12793 ac_check_lib_save_LIBS
=$LIBS
12794 LIBS
="-lresolv $LIBS"
12795 cat >conftest.
$ac_ext <<_ACEOF
12796 #line $LINENO "configure"
12797 #include "confdefs.h"
12799 /* Override any gcc2 internal prototype to avoid an error. */
12803 /* We use char because int might match the return type of a gcc2
12804 builtin and then its argument prototype would still apply. */
12805 char __res_send ();
12806 #ifdef F77_DUMMY_MAIN
12807 # ifdef __cplusplus
12810 int F77_DUMMY_MAIN() { return 1; }
12820 rm -f conftest.
$ac_objext conftest
$ac_exeext
12821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12822 (eval $ac_link) 2>&5
12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); } &&
12826 { ac_try
='test -s conftest$ac_exeext'
12827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12828 (eval $ac_try) 2>&5
12830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831 (exit $ac_status); }; }; then
12832 ac_cv_lib_resolv___res_send
=yes
12834 echo "$as_me: failed program was:" >&5
12835 cat conftest.
$ac_ext >&5
12836 ac_cv_lib_resolv___res_send
=no
12838 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12839 LIBS
=$ac_check_lib_save_LIBS
12841 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
12842 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
12843 if test $ac_cv_lib_resolv___res_send = yes; then
12853 if test "$resolv" = yes ; then
12856 cat >>confdefs.h
<<\_ACEOF
12857 #define HAVE_LIBRESOLV 1
12863 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
12864 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
12865 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
12866 echo $ECHO_N "(cached) $ECHO_C" >&6
12868 cat >conftest.
$ac_ext <<_ACEOF
12869 #line $LINENO "configure"
12870 #include "confdefs.h"
12871 /* System header to define __stub macros and hopefully few prototypes,
12872 which can conflict with char hes_getmailhost (); below. */
12873 #include <assert.h>
12874 /* Override any gcc2 internal prototype to avoid an error. */
12878 /* We use char because int might match the return type of a gcc2
12879 builtin and then its argument prototype would still apply. */
12880 char hes_getmailhost ();
12883 #ifdef F77_DUMMY_MAIN
12884 # ifdef __cplusplus
12887 int F77_DUMMY_MAIN() { return 1; }
12892 /* The GNU C library defines this for functions which it implements
12893 to always fail with ENOSYS. Some functions are actually named
12894 something starting with __ and the normal name is an alias. */
12895 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
12898 f = hes_getmailhost;
12905 rm -f conftest.
$ac_objext conftest
$ac_exeext
12906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12907 (eval $ac_link) 2>&5
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); } &&
12911 { ac_try
='test -s conftest$ac_exeext'
12912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12913 (eval $ac_try) 2>&5
12915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916 (exit $ac_status); }; }; then
12917 ac_cv_func_hes_getmailhost
=yes
12919 echo "$as_me: failed program was:" >&5
12920 cat conftest.
$ac_ext >&5
12921 ac_cv_func_hes_getmailhost
=no
12923 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12925 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
12926 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
12927 if test $ac_cv_func_hes_getmailhost = yes; then
12930 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
12931 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
12932 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
12933 echo $ECHO_N "(cached) $ECHO_C" >&6
12935 ac_check_lib_save_LIBS
=$LIBS
12936 LIBS
="-lhesiod $RESOLVLIB $LIBS"
12937 cat >conftest.
$ac_ext <<_ACEOF
12938 #line $LINENO "configure"
12939 #include "confdefs.h"
12941 /* Override any gcc2 internal prototype to avoid an error. */
12945 /* We use char because int might match the return type of a gcc2
12946 builtin and then its argument prototype would still apply. */
12947 char hes_getmailhost ();
12948 #ifdef F77_DUMMY_MAIN
12949 # ifdef __cplusplus
12952 int F77_DUMMY_MAIN() { return 1; }
12957 hes_getmailhost ();
12962 rm -f conftest.
$ac_objext conftest
$ac_exeext
12963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12964 (eval $ac_link) 2>&5
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); } &&
12968 { ac_try
='test -s conftest$ac_exeext'
12969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12970 (eval $ac_try) 2>&5
12972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973 (exit $ac_status); }; }; then
12974 ac_cv_lib_hesiod_hes_getmailhost
=yes
12976 echo "$as_me: failed program was:" >&5
12977 cat conftest.
$ac_ext >&5
12978 ac_cv_lib_hesiod_hes_getmailhost
=no
12980 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12981 LIBS
=$ac_check_lib_save_LIBS
12983 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
12984 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
12985 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
12987 cat >>confdefs.h
<<\_ACEOF
12988 #define HAVE_LIBHESIOD 1
12999 # These tell us which Kerberos-related libraries to use.
13000 if test "${with_kerberos+set}" = set; then
13002 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
13003 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
13004 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
13005 echo $ECHO_N "(cached) $ECHO_C" >&6
13007 ac_check_lib_save_LIBS
=$LIBS
13008 LIBS
="-lcom_err $LIBS"
13009 cat >conftest.
$ac_ext <<_ACEOF
13010 #line $LINENO "configure"
13011 #include "confdefs.h"
13013 /* Override any gcc2 internal prototype to avoid an error. */
13017 /* We use char because int might match the return type of a gcc2
13018 builtin and then its argument prototype would still apply. */
13020 #ifdef F77_DUMMY_MAIN
13021 # ifdef __cplusplus
13024 int F77_DUMMY_MAIN() { return 1; }
13034 rm -f conftest.
$ac_objext conftest
$ac_exeext
13035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13036 (eval $ac_link) 2>&5
13038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039 (exit $ac_status); } &&
13040 { ac_try
='test -s conftest$ac_exeext'
13041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13042 (eval $ac_try) 2>&5
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); }; }; then
13046 ac_cv_lib_com_err_com_err
=yes
13048 echo "$as_me: failed program was:" >&5
13049 cat conftest.
$ac_ext >&5
13050 ac_cv_lib_com_err_com_err
=no
13052 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13053 LIBS
=$ac_check_lib_save_LIBS
13055 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
13056 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
13057 if test $ac_cv_lib_com_err_com_err = yes; then
13058 cat >>confdefs.h
<<_ACEOF
13059 #define HAVE_LIBCOM_ERR 1
13062 LIBS
="-lcom_err $LIBS"
13067 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13068 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
13069 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
13070 echo $ECHO_N "(cached) $ECHO_C" >&6
13072 ac_check_lib_save_LIBS
=$LIBS
13073 LIBS
="-lk5crypto $LIBS"
13074 cat >conftest.
$ac_ext <<_ACEOF
13075 #line $LINENO "configure"
13076 #include "confdefs.h"
13078 /* Override any gcc2 internal prototype to avoid an error. */
13082 /* We use char because int might match the return type of a gcc2
13083 builtin and then its argument prototype would still apply. */
13084 char mit_des_cbc_encrypt ();
13085 #ifdef F77_DUMMY_MAIN
13086 # ifdef __cplusplus
13089 int F77_DUMMY_MAIN() { return 1; }
13094 mit_des_cbc_encrypt ();
13099 rm -f conftest.
$ac_objext conftest
$ac_exeext
13100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13101 (eval $ac_link) 2>&5
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); } &&
13105 { ac_try
='test -s conftest$ac_exeext'
13106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13107 (eval $ac_try) 2>&5
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); }; }; then
13111 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
13113 echo "$as_me: failed program was:" >&5
13114 cat conftest.
$ac_ext >&5
13115 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
13117 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13118 LIBS
=$ac_check_lib_save_LIBS
13120 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13121 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
13122 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
13123 cat >>confdefs.h
<<_ACEOF
13124 #define HAVE_LIBK5CRYPTO 1
13127 LIBS
="-lk5crypto $LIBS"
13132 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13133 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
13134 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
13135 echo $ECHO_N "(cached) $ECHO_C" >&6
13137 ac_check_lib_save_LIBS
=$LIBS
13138 LIBS
="-lcrypto $LIBS"
13139 cat >conftest.
$ac_ext <<_ACEOF
13140 #line $LINENO "configure"
13141 #include "confdefs.h"
13143 /* Override any gcc2 internal prototype to avoid an error. */
13147 /* We use char because int might match the return type of a gcc2
13148 builtin and then its argument prototype would still apply. */
13149 char mit_des_cbc_encrypt ();
13150 #ifdef F77_DUMMY_MAIN
13151 # ifdef __cplusplus
13154 int F77_DUMMY_MAIN() { return 1; }
13159 mit_des_cbc_encrypt ();
13164 rm -f conftest.
$ac_objext conftest
$ac_exeext
13165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13166 (eval $ac_link) 2>&5
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); } &&
13170 { ac_try
='test -s conftest$ac_exeext'
13171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13172 (eval $ac_try) 2>&5
13174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175 (exit $ac_status); }; }; then
13176 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
13178 echo "$as_me: failed program was:" >&5
13179 cat conftest.
$ac_ext >&5
13180 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
13182 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13183 LIBS
=$ac_check_lib_save_LIBS
13185 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13186 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
13187 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
13188 cat >>confdefs.h
<<_ACEOF
13189 #define HAVE_LIBCRYPTO 1
13192 LIBS
="-lcrypto $LIBS"
13197 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
13198 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
13199 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
13200 echo $ECHO_N "(cached) $ECHO_C" >&6
13202 ac_check_lib_save_LIBS
=$LIBS
13203 LIBS
="-lkrb5 $LIBS"
13204 cat >conftest.
$ac_ext <<_ACEOF
13205 #line $LINENO "configure"
13206 #include "confdefs.h"
13208 /* Override any gcc2 internal prototype to avoid an error. */
13212 /* We use char because int might match the return type of a gcc2
13213 builtin and then its argument prototype would still apply. */
13214 char krb5_init_context ();
13215 #ifdef F77_DUMMY_MAIN
13216 # ifdef __cplusplus
13219 int F77_DUMMY_MAIN() { return 1; }
13224 krb5_init_context ();
13229 rm -f conftest.
$ac_objext conftest
$ac_exeext
13230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13231 (eval $ac_link) 2>&5
13233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234 (exit $ac_status); } &&
13235 { ac_try
='test -s conftest$ac_exeext'
13236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13237 (eval $ac_try) 2>&5
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); }; }; then
13241 ac_cv_lib_krb5_krb5_init_context
=yes
13243 echo "$as_me: failed program was:" >&5
13244 cat conftest.
$ac_ext >&5
13245 ac_cv_lib_krb5_krb5_init_context
=no
13247 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13248 LIBS
=$ac_check_lib_save_LIBS
13250 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
13251 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
13252 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
13253 cat >>confdefs.h
<<_ACEOF
13254 #define HAVE_LIBKRB5 1
13257 LIBS
="-lkrb5 $LIBS"
13261 if test "${with_kerberos5+set}" != set; then
13263 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
13264 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
13265 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
13266 echo $ECHO_N "(cached) $ECHO_C" >&6
13268 ac_check_lib_save_LIBS
=$LIBS
13269 LIBS
="-ldes425 $LIBS"
13270 cat >conftest.
$ac_ext <<_ACEOF
13271 #line $LINENO "configure"
13272 #include "confdefs.h"
13274 /* Override any gcc2 internal prototype to avoid an error. */
13278 /* We use char because int might match the return type of a gcc2
13279 builtin and then its argument prototype would still apply. */
13280 char des_cbc_encrypt ();
13281 #ifdef F77_DUMMY_MAIN
13282 # ifdef __cplusplus
13285 int F77_DUMMY_MAIN() { return 1; }
13290 des_cbc_encrypt ();
13295 rm -f conftest.
$ac_objext conftest
$ac_exeext
13296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13297 (eval $ac_link) 2>&5
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); } &&
13301 { ac_try
='test -s conftest$ac_exeext'
13302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13303 (eval $ac_try) 2>&5
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); }; }; then
13307 ac_cv_lib_des425_des_cbc_encrypt
=yes
13309 echo "$as_me: failed program was:" >&5
13310 cat conftest.
$ac_ext >&5
13311 ac_cv_lib_des425_des_cbc_encrypt
=no
13313 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13314 LIBS
=$ac_check_lib_save_LIBS
13316 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13317 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
13318 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
13319 cat >>confdefs.h
<<_ACEOF
13320 #define HAVE_LIBDES425 1
13323 LIBS
="-ldes425 $LIBS"
13327 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
13328 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
13329 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
13330 echo $ECHO_N "(cached) $ECHO_C" >&6
13332 ac_check_lib_save_LIBS
=$LIBS
13334 cat >conftest.
$ac_ext <<_ACEOF
13335 #line $LINENO "configure"
13336 #include "confdefs.h"
13338 /* Override any gcc2 internal prototype to avoid an error. */
13342 /* We use char because int might match the return type of a gcc2
13343 builtin and then its argument prototype would still apply. */
13344 char des_cbc_encrypt ();
13345 #ifdef F77_DUMMY_MAIN
13346 # ifdef __cplusplus
13349 int F77_DUMMY_MAIN() { return 1; }
13354 des_cbc_encrypt ();
13359 rm -f conftest.
$ac_objext conftest
$ac_exeext
13360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13361 (eval $ac_link) 2>&5
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); } &&
13365 { ac_try
='test -s conftest$ac_exeext'
13366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13367 (eval $ac_try) 2>&5
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); }; }; then
13371 ac_cv_lib_des_des_cbc_encrypt
=yes
13373 echo "$as_me: failed program was:" >&5
13374 cat conftest.
$ac_ext >&5
13375 ac_cv_lib_des_des_cbc_encrypt
=no
13377 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13378 LIBS
=$ac_check_lib_save_LIBS
13380 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13381 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
13382 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
13383 cat >>confdefs.h
<<_ACEOF
13384 #define HAVE_LIBDES 1
13394 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
13395 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
13396 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
13397 echo $ECHO_N "(cached) $ECHO_C" >&6
13399 ac_check_lib_save_LIBS
=$LIBS
13400 LIBS
="-lkrb4 $LIBS"
13401 cat >conftest.
$ac_ext <<_ACEOF
13402 #line $LINENO "configure"
13403 #include "confdefs.h"
13405 /* Override any gcc2 internal prototype to avoid an error. */
13409 /* We use char because int might match the return type of a gcc2
13410 builtin and then its argument prototype would still apply. */
13411 char krb_get_cred ();
13412 #ifdef F77_DUMMY_MAIN
13413 # ifdef __cplusplus
13416 int F77_DUMMY_MAIN() { return 1; }
13426 rm -f conftest.
$ac_objext conftest
$ac_exeext
13427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13428 (eval $ac_link) 2>&5
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); } &&
13432 { ac_try
='test -s conftest$ac_exeext'
13433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13434 (eval $ac_try) 2>&5
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); }; }; then
13438 ac_cv_lib_krb4_krb_get_cred
=yes
13440 echo "$as_me: failed program was:" >&5
13441 cat conftest.
$ac_ext >&5
13442 ac_cv_lib_krb4_krb_get_cred
=no
13444 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13445 LIBS
=$ac_check_lib_save_LIBS
13447 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
13448 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
13449 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
13450 cat >>confdefs.h
<<_ACEOF
13451 #define HAVE_LIBKRB4 1
13454 LIBS
="-lkrb4 $LIBS"
13458 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
13459 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
13460 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
13461 echo $ECHO_N "(cached) $ECHO_C" >&6
13463 ac_check_lib_save_LIBS
=$LIBS
13465 cat >conftest.
$ac_ext <<_ACEOF
13466 #line $LINENO "configure"
13467 #include "confdefs.h"
13469 /* Override any gcc2 internal prototype to avoid an error. */
13473 /* We use char because int might match the return type of a gcc2
13474 builtin and then its argument prototype would still apply. */
13475 char krb_get_cred ();
13476 #ifdef F77_DUMMY_MAIN
13477 # ifdef __cplusplus
13480 int F77_DUMMY_MAIN() { return 1; }
13490 rm -f conftest.
$ac_objext conftest
$ac_exeext
13491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13492 (eval $ac_link) 2>&5
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); } &&
13496 { ac_try
='test -s conftest$ac_exeext'
13497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13498 (eval $ac_try) 2>&5
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); }; }; then
13502 ac_cv_lib_krb_krb_get_cred
=yes
13504 echo "$as_me: failed program was:" >&5
13505 cat conftest.
$ac_ext >&5
13506 ac_cv_lib_krb_krb_get_cred
=no
13508 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13509 LIBS
=$ac_check_lib_save_LIBS
13511 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
13512 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
13513 if test $ac_cv_lib_krb_krb_get_cred = yes; then
13514 cat >>confdefs.h
<<_ACEOF
13515 #define HAVE_LIBKRB 1
13526 if test "${with_kerberos5+set}" = set; then
13528 for ac_header
in krb5.h
13530 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13532 echo "$as_me:$LINENO: checking for $ac_header" >&5
13533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13535 echo $ECHO_N "(cached) $ECHO_C" >&6
13537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13538 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13540 # Is the header compilable?
13541 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13542 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13543 cat >conftest.
$ac_ext <<_ACEOF
13544 #line $LINENO "configure"
13545 #include "confdefs.h"
13546 $ac_includes_default
13547 #include <$ac_header>
13549 rm -f conftest.
$ac_objext
13550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13551 (eval $ac_compile) 2>&5
13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); } &&
13555 { ac_try
='test -s conftest.$ac_objext'
13556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13557 (eval $ac_try) 2>&5
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); }; }; then
13561 ac_header_compiler
=yes
13563 echo "$as_me: failed program was:" >&5
13564 cat conftest.
$ac_ext >&5
13565 ac_header_compiler
=no
13567 rm -f conftest.
$ac_objext conftest.
$ac_ext
13568 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13569 echo "${ECHO_T}$ac_header_compiler" >&6
13571 # Is the header present?
13572 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13573 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13574 cat >conftest.
$ac_ext <<_ACEOF
13575 #line $LINENO "configure"
13576 #include "confdefs.h"
13577 #include <$ac_header>
13579 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13580 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13582 egrep -v '^ *\+' conftest.er1
>conftest.err
13584 cat conftest.err
>&5
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); } >/dev
/null
; then
13587 if test -s conftest.err
; then
13588 ac_cpp_err
=$ac_c_preproc_warn_flag
13595 if test -z "$ac_cpp_err"; then
13596 ac_header_preproc
=yes
13598 echo "$as_me: failed program was:" >&5
13599 cat conftest.
$ac_ext >&5
13600 ac_header_preproc
=no
13602 rm -f conftest.err conftest.
$ac_ext
13603 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13604 echo "${ECHO_T}$ac_header_preproc" >&6
13606 # So? What about this header?
13607 case $ac_header_compiler:$ac_header_preproc in
13609 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13610 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13612 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13614 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13615 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13616 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13617 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13619 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13621 echo "$as_me:$LINENO: checking for $ac_header" >&5
13622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13624 echo $ECHO_N "(cached) $ECHO_C" >&6
13626 eval "$as_ac_Header=$ac_header_preproc"
13628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13629 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13633 cat >>confdefs.h
<<_ACEOF
13634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13643 for ac_header
in des.h
13645 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13647 echo "$as_me:$LINENO: checking for $ac_header" >&5
13648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13650 echo $ECHO_N "(cached) $ECHO_C" >&6
13652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13655 # Is the header compilable?
13656 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13658 cat >conftest.
$ac_ext <<_ACEOF
13659 #line $LINENO "configure"
13660 #include "confdefs.h"
13661 $ac_includes_default
13662 #include <$ac_header>
13664 rm -f conftest.
$ac_objext
13665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13666 (eval $ac_compile) 2>&5
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); } &&
13670 { ac_try
='test -s conftest.$ac_objext'
13671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13672 (eval $ac_try) 2>&5
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); }; }; then
13676 ac_header_compiler
=yes
13678 echo "$as_me: failed program was:" >&5
13679 cat conftest.
$ac_ext >&5
13680 ac_header_compiler
=no
13682 rm -f conftest.
$ac_objext conftest.
$ac_ext
13683 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13684 echo "${ECHO_T}$ac_header_compiler" >&6
13686 # Is the header present?
13687 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13688 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13689 cat >conftest.
$ac_ext <<_ACEOF
13690 #line $LINENO "configure"
13691 #include "confdefs.h"
13692 #include <$ac_header>
13694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13695 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13697 egrep -v '^ *\+' conftest.er1
>conftest.err
13699 cat conftest.err
>&5
13700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701 (exit $ac_status); } >/dev
/null
; then
13702 if test -s conftest.err
; then
13703 ac_cpp_err
=$ac_c_preproc_warn_flag
13710 if test -z "$ac_cpp_err"; then
13711 ac_header_preproc
=yes
13713 echo "$as_me: failed program was:" >&5
13714 cat conftest.
$ac_ext >&5
13715 ac_header_preproc
=no
13717 rm -f conftest.err conftest.
$ac_ext
13718 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13719 echo "${ECHO_T}$ac_header_preproc" >&6
13721 # So? What about this header?
13722 case $ac_header_compiler:$ac_header_preproc in
13724 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13725 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13727 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13729 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13730 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13731 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13732 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13734 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13736 echo "$as_me:$LINENO: checking for $ac_header" >&5
13737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13739 echo $ECHO_N "(cached) $ECHO_C" >&6
13741 eval "$as_ac_Header=$ac_header_preproc"
13743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13747 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13748 cat >>confdefs.h
<<_ACEOF
13749 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13754 for ac_header
in kerberosIV
/des.h
13756 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13758 echo "$as_me:$LINENO: checking for $ac_header" >&5
13759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13761 echo $ECHO_N "(cached) $ECHO_C" >&6
13763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13766 # Is the header compilable?
13767 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13768 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13769 cat >conftest.
$ac_ext <<_ACEOF
13770 #line $LINENO "configure"
13771 #include "confdefs.h"
13772 $ac_includes_default
13773 #include <$ac_header>
13775 rm -f conftest.
$ac_objext
13776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13777 (eval $ac_compile) 2>&5
13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); } &&
13781 { ac_try
='test -s conftest.$ac_objext'
13782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13783 (eval $ac_try) 2>&5
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); }; }; then
13787 ac_header_compiler
=yes
13789 echo "$as_me: failed program was:" >&5
13790 cat conftest.
$ac_ext >&5
13791 ac_header_compiler
=no
13793 rm -f conftest.
$ac_objext conftest.
$ac_ext
13794 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13795 echo "${ECHO_T}$ac_header_compiler" >&6
13797 # Is the header present?
13798 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13799 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13800 cat >conftest.
$ac_ext <<_ACEOF
13801 #line $LINENO "configure"
13802 #include "confdefs.h"
13803 #include <$ac_header>
13805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13806 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13808 egrep -v '^ *\+' conftest.er1
>conftest.err
13810 cat conftest.err
>&5
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); } >/dev
/null
; then
13813 if test -s conftest.err
; then
13814 ac_cpp_err
=$ac_c_preproc_warn_flag
13821 if test -z "$ac_cpp_err"; then
13822 ac_header_preproc
=yes
13824 echo "$as_me: failed program was:" >&5
13825 cat conftest.
$ac_ext >&5
13826 ac_header_preproc
=no
13828 rm -f conftest.err conftest.
$ac_ext
13829 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13830 echo "${ECHO_T}$ac_header_preproc" >&6
13832 # So? What about this header?
13833 case $ac_header_compiler:$ac_header_preproc in
13835 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13836 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13838 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13840 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13841 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13842 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13843 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13845 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13847 echo "$as_me:$LINENO: checking for $ac_header" >&5
13848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13850 echo $ECHO_N "(cached) $ECHO_C" >&6
13852 eval "$as_ac_Header=$ac_header_preproc"
13854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13859 cat >>confdefs.h
<<_ACEOF
13860 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13865 for ac_header
in kerberos
/des.h
13867 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13869 echo "$as_me:$LINENO: checking for $ac_header" >&5
13870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13872 echo $ECHO_N "(cached) $ECHO_C" >&6
13874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13875 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13877 # Is the header compilable?
13878 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13879 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13880 cat >conftest.
$ac_ext <<_ACEOF
13881 #line $LINENO "configure"
13882 #include "confdefs.h"
13883 $ac_includes_default
13884 #include <$ac_header>
13886 rm -f conftest.
$ac_objext
13887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13888 (eval $ac_compile) 2>&5
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); } &&
13892 { ac_try
='test -s conftest.$ac_objext'
13893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13894 (eval $ac_try) 2>&5
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); }; }; then
13898 ac_header_compiler
=yes
13900 echo "$as_me: failed program was:" >&5
13901 cat conftest.
$ac_ext >&5
13902 ac_header_compiler
=no
13904 rm -f conftest.
$ac_objext conftest.
$ac_ext
13905 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13906 echo "${ECHO_T}$ac_header_compiler" >&6
13908 # Is the header present?
13909 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13910 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13911 cat >conftest.
$ac_ext <<_ACEOF
13912 #line $LINENO "configure"
13913 #include "confdefs.h"
13914 #include <$ac_header>
13916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13917 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13919 egrep -v '^ *\+' conftest.er1
>conftest.err
13921 cat conftest.err
>&5
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); } >/dev
/null
; then
13924 if test -s conftest.err
; then
13925 ac_cpp_err
=$ac_c_preproc_warn_flag
13932 if test -z "$ac_cpp_err"; then
13933 ac_header_preproc
=yes
13935 echo "$as_me: failed program was:" >&5
13936 cat conftest.
$ac_ext >&5
13937 ac_header_preproc
=no
13939 rm -f conftest.err conftest.
$ac_ext
13940 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13941 echo "${ECHO_T}$ac_header_preproc" >&6
13943 # So? What about this header?
13944 case $ac_header_compiler:$ac_header_preproc in
13946 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13947 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13949 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13951 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13952 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13953 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13954 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13956 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13958 echo "$as_me:$LINENO: checking for $ac_header" >&5
13959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13961 echo $ECHO_N "(cached) $ECHO_C" >&6
13963 eval "$as_ac_Header=$ac_header_preproc"
13965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13966 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13970 cat >>confdefs.h
<<_ACEOF
13971 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13987 for ac_header
in krb.h
13989 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13991 echo "$as_me:$LINENO: checking for $ac_header" >&5
13992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13994 echo $ECHO_N "(cached) $ECHO_C" >&6
13996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13999 # Is the header compilable?
14000 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14001 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14002 cat >conftest.
$ac_ext <<_ACEOF
14003 #line $LINENO "configure"
14004 #include "confdefs.h"
14005 $ac_includes_default
14006 #include <$ac_header>
14008 rm -f conftest.
$ac_objext
14009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14010 (eval $ac_compile) 2>&5
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); } &&
14014 { ac_try
='test -s conftest.$ac_objext'
14015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14016 (eval $ac_try) 2>&5
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); }; }; then
14020 ac_header_compiler
=yes
14022 echo "$as_me: failed program was:" >&5
14023 cat conftest.
$ac_ext >&5
14024 ac_header_compiler
=no
14026 rm -f conftest.
$ac_objext conftest.
$ac_ext
14027 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14028 echo "${ECHO_T}$ac_header_compiler" >&6
14030 # Is the header present?
14031 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14033 cat >conftest.
$ac_ext <<_ACEOF
14034 #line $LINENO "configure"
14035 #include "confdefs.h"
14036 #include <$ac_header>
14038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14039 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14041 egrep -v '^ *\+' conftest.er1
>conftest.err
14043 cat conftest.err
>&5
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); } >/dev
/null
; then
14046 if test -s conftest.err
; then
14047 ac_cpp_err
=$ac_c_preproc_warn_flag
14054 if test -z "$ac_cpp_err"; then
14055 ac_header_preproc
=yes
14057 echo "$as_me: failed program was:" >&5
14058 cat conftest.
$ac_ext >&5
14059 ac_header_preproc
=no
14061 rm -f conftest.err conftest.
$ac_ext
14062 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14063 echo "${ECHO_T}$ac_header_preproc" >&6
14065 # So? What about this header?
14066 case $ac_header_compiler:$ac_header_preproc in
14068 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14069 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14071 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14073 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14074 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14075 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14076 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14078 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14080 echo "$as_me:$LINENO: checking for $ac_header" >&5
14081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14083 echo $ECHO_N "(cached) $ECHO_C" >&6
14085 eval "$as_ac_Header=$ac_header_preproc"
14087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14092 cat >>confdefs.h
<<_ACEOF
14093 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14098 for ac_header
in kerberosIV
/krb.h
14100 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14102 echo "$as_me:$LINENO: checking for $ac_header" >&5
14103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14105 echo $ECHO_N "(cached) $ECHO_C" >&6
14107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14108 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14110 # Is the header compilable?
14111 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14112 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14113 cat >conftest.
$ac_ext <<_ACEOF
14114 #line $LINENO "configure"
14115 #include "confdefs.h"
14116 $ac_includes_default
14117 #include <$ac_header>
14119 rm -f conftest.
$ac_objext
14120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14121 (eval $ac_compile) 2>&5
14123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124 (exit $ac_status); } &&
14125 { ac_try
='test -s conftest.$ac_objext'
14126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14127 (eval $ac_try) 2>&5
14129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130 (exit $ac_status); }; }; then
14131 ac_header_compiler
=yes
14133 echo "$as_me: failed program was:" >&5
14134 cat conftest.
$ac_ext >&5
14135 ac_header_compiler
=no
14137 rm -f conftest.
$ac_objext conftest.
$ac_ext
14138 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14139 echo "${ECHO_T}$ac_header_compiler" >&6
14141 # Is the header present?
14142 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14143 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14144 cat >conftest.
$ac_ext <<_ACEOF
14145 #line $LINENO "configure"
14146 #include "confdefs.h"
14147 #include <$ac_header>
14149 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14150 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14152 egrep -v '^ *\+' conftest.er1
>conftest.err
14154 cat conftest.err
>&5
14155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156 (exit $ac_status); } >/dev
/null
; then
14157 if test -s conftest.err
; then
14158 ac_cpp_err
=$ac_c_preproc_warn_flag
14165 if test -z "$ac_cpp_err"; then
14166 ac_header_preproc
=yes
14168 echo "$as_me: failed program was:" >&5
14169 cat conftest.
$ac_ext >&5
14170 ac_header_preproc
=no
14172 rm -f conftest.err conftest.
$ac_ext
14173 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14174 echo "${ECHO_T}$ac_header_preproc" >&6
14176 # So? What about this header?
14177 case $ac_header_compiler:$ac_header_preproc in
14179 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14180 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14184 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14185 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14186 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14187 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14189 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14191 echo "$as_me:$LINENO: checking for $ac_header" >&5
14192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14194 echo $ECHO_N "(cached) $ECHO_C" >&6
14196 eval "$as_ac_Header=$ac_header_preproc"
14198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14203 cat >>confdefs.h
<<_ACEOF
14204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14209 for ac_header
in kerberos
/krb.h
14211 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14213 echo "$as_me:$LINENO: checking for $ac_header" >&5
14214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14216 echo $ECHO_N "(cached) $ECHO_C" >&6
14218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14219 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14221 # Is the header compilable?
14222 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14223 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14224 cat >conftest.
$ac_ext <<_ACEOF
14225 #line $LINENO "configure"
14226 #include "confdefs.h"
14227 $ac_includes_default
14228 #include <$ac_header>
14230 rm -f conftest.
$ac_objext
14231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14232 (eval $ac_compile) 2>&5
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); } &&
14236 { ac_try
='test -s conftest.$ac_objext'
14237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14238 (eval $ac_try) 2>&5
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); }; }; then
14242 ac_header_compiler
=yes
14244 echo "$as_me: failed program was:" >&5
14245 cat conftest.
$ac_ext >&5
14246 ac_header_compiler
=no
14248 rm -f conftest.
$ac_objext conftest.
$ac_ext
14249 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14250 echo "${ECHO_T}$ac_header_compiler" >&6
14252 # Is the header present?
14253 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14254 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14255 cat >conftest.
$ac_ext <<_ACEOF
14256 #line $LINENO "configure"
14257 #include "confdefs.h"
14258 #include <$ac_header>
14260 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14261 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14263 egrep -v '^ *\+' conftest.er1
>conftest.err
14265 cat conftest.err
>&5
14266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267 (exit $ac_status); } >/dev
/null
; then
14268 if test -s conftest.err
; then
14269 ac_cpp_err
=$ac_c_preproc_warn_flag
14276 if test -z "$ac_cpp_err"; then
14277 ac_header_preproc
=yes
14279 echo "$as_me: failed program was:" >&5
14280 cat conftest.
$ac_ext >&5
14281 ac_header_preproc
=no
14283 rm -f conftest.err conftest.
$ac_ext
14284 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14285 echo "${ECHO_T}$ac_header_preproc" >&6
14287 # So? What about this header?
14288 case $ac_header_compiler:$ac_header_preproc in
14290 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14291 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14293 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14295 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14296 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14297 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14298 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14300 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14302 echo "$as_me:$LINENO: checking for $ac_header" >&5
14303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14305 echo $ECHO_N "(cached) $ECHO_C" >&6
14307 eval "$as_ac_Header=$ac_header_preproc"
14309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14314 cat >>confdefs.h
<<_ACEOF
14315 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14332 for ac_header
in com_err.h
14334 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14336 echo "$as_me:$LINENO: checking for $ac_header" >&5
14337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14339 echo $ECHO_N "(cached) $ECHO_C" >&6
14341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14344 # Is the header compilable?
14345 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14346 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14347 cat >conftest.
$ac_ext <<_ACEOF
14348 #line $LINENO "configure"
14349 #include "confdefs.h"
14350 $ac_includes_default
14351 #include <$ac_header>
14353 rm -f conftest.
$ac_objext
14354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14355 (eval $ac_compile) 2>&5
14357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358 (exit $ac_status); } &&
14359 { ac_try
='test -s conftest.$ac_objext'
14360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14361 (eval $ac_try) 2>&5
14363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364 (exit $ac_status); }; }; then
14365 ac_header_compiler
=yes
14367 echo "$as_me: failed program was:" >&5
14368 cat conftest.
$ac_ext >&5
14369 ac_header_compiler
=no
14371 rm -f conftest.
$ac_objext conftest.
$ac_ext
14372 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14373 echo "${ECHO_T}$ac_header_compiler" >&6
14375 # Is the header present?
14376 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14377 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14378 cat >conftest.
$ac_ext <<_ACEOF
14379 #line $LINENO "configure"
14380 #include "confdefs.h"
14381 #include <$ac_header>
14383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14384 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14386 egrep -v '^ *\+' conftest.er1
>conftest.err
14388 cat conftest.err
>&5
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); } >/dev
/null
; then
14391 if test -s conftest.err
; then
14392 ac_cpp_err
=$ac_c_preproc_warn_flag
14399 if test -z "$ac_cpp_err"; then
14400 ac_header_preproc
=yes
14402 echo "$as_me: failed program was:" >&5
14403 cat conftest.
$ac_ext >&5
14404 ac_header_preproc
=no
14406 rm -f conftest.err conftest.
$ac_ext
14407 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14408 echo "${ECHO_T}$ac_header_preproc" >&6
14410 # So? What about this header?
14411 case $ac_header_compiler:$ac_header_preproc in
14413 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14414 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14416 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14418 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14419 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14420 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14421 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14423 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14425 echo "$as_me:$LINENO: checking for $ac_header" >&5
14426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14428 echo $ECHO_N "(cached) $ECHO_C" >&6
14430 eval "$as_ac_Header=$ac_header_preproc"
14432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14433 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14437 cat >>confdefs.h
<<_ACEOF
14438 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14447 # Solaris requires -lintl if you want strerror (which calls dgettext)
14448 # to return localized messages.
14450 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
14451 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
14452 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
14453 echo $ECHO_N "(cached) $ECHO_C" >&6
14455 ac_check_lib_save_LIBS
=$LIBS
14456 LIBS
="-lintl $LIBS"
14457 cat >conftest.
$ac_ext <<_ACEOF
14458 #line $LINENO "configure"
14459 #include "confdefs.h"
14461 /* Override any gcc2 internal prototype to avoid an error. */
14465 /* We use char because int might match the return type of a gcc2
14466 builtin and then its argument prototype would still apply. */
14468 #ifdef F77_DUMMY_MAIN
14469 # ifdef __cplusplus
14472 int F77_DUMMY_MAIN() { return 1; }
14482 rm -f conftest.
$ac_objext conftest
$ac_exeext
14483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14484 (eval $ac_link) 2>&5
14486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487 (exit $ac_status); } &&
14488 { ac_try
='test -s conftest$ac_exeext'
14489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14490 (eval $ac_try) 2>&5
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); }; }; then
14494 ac_cv_lib_intl_dgettext
=yes
14496 echo "$as_me: failed program was:" >&5
14497 cat conftest.
$ac_ext >&5
14498 ac_cv_lib_intl_dgettext
=no
14500 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14501 LIBS
=$ac_check_lib_save_LIBS
14503 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
14504 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
14505 if test $ac_cv_lib_intl_dgettext = yes; then
14506 cat >>confdefs.h
<<_ACEOF
14507 #define HAVE_LIBINTL 1
14510 LIBS
="-lintl $LIBS"
14515 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
14516 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
14517 if test "${emacs_cv_localtime_cache+set}" = set; then
14518 echo $ECHO_N "(cached) $ECHO_C" >&6
14520 if test x
$ac_cv_func_tzset = xyes
; then
14521 if test "$cross_compiling" = yes; then
14522 # If we have tzset, assume the worst when cross-compiling.
14523 emacs_cv_localtime_cache
=yes
14525 cat >conftest.
$ac_ext <<_ACEOF
14526 #line $LINENO "configure"
14527 #include "confdefs.h"
14529 extern char **environ;
14533 for (to = from = environ; (*to = *from); from++)
14534 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
14537 char TZ_GMT0[] = "TZ=GMT0";
14538 char TZ_PST8[] = "TZ=PST8";
14541 time_t now = time ((time_t *) 0);
14542 int hour_GMT0, hour_unset;
14543 if (putenv (TZ_GMT0) != 0)
14545 hour_GMT0 = localtime (&now)->tm_hour;
14547 hour_unset = localtime (&now)->tm_hour;
14548 if (putenv (TZ_PST8) != 0)
14550 if (localtime (&now)->tm_hour == hour_GMT0)
14553 if (localtime (&now)->tm_hour != hour_unset)
14558 rm -f conftest
$ac_exeext
14559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14560 (eval $ac_link) 2>&5
14562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14565 (eval $ac_try) 2>&5
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); }; }; then
14569 emacs_cv_localtime_cache
=no
14571 echo "$as_me: program exited with status $ac_status" >&5
14572 echo "$as_me: failed program was:" >&5
14573 cat conftest.
$ac_ext >&5
14574 ( exit $ac_status )
14575 emacs_cv_localtime_cache
=yes
14577 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14580 # If we lack tzset, report that localtime does not cache TZ,
14581 # since we can't invalidate the cache if we don't have tzset.
14582 emacs_cv_localtime_cache
=no
14585 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
14586 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
14587 if test $emacs_cv_localtime_cache = yes; then
14589 cat >>confdefs.h
<<\_ACEOF
14590 #define LOCALTIME_CACHE 1
14595 if test "x$HAVE_TIMEVAL" = xyes
; then
14597 for ac_func
in gettimeofday
14599 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14600 echo "$as_me:$LINENO: checking for $ac_func" >&5
14601 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14602 if eval "test \"\${$as_ac_var+set}\" = set"; then
14603 echo $ECHO_N "(cached) $ECHO_C" >&6
14605 cat >conftest.
$ac_ext <<_ACEOF
14606 #line $LINENO "configure"
14607 #include "confdefs.h"
14608 /* System header to define __stub macros and hopefully few prototypes,
14609 which can conflict with char $ac_func (); below. */
14610 #include <assert.h>
14611 /* Override any gcc2 internal prototype to avoid an error. */
14615 /* We use char because int might match the return type of a gcc2
14616 builtin and then its argument prototype would still apply. */
14620 #ifdef F77_DUMMY_MAIN
14621 # ifdef __cplusplus
14624 int F77_DUMMY_MAIN() { return 1; }
14629 /* The GNU C library defines this for functions which it implements
14630 to always fail with ENOSYS. Some functions are actually named
14631 something starting with __ and the normal name is an alias. */
14632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14642 rm -f conftest.
$ac_objext conftest
$ac_exeext
14643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14644 (eval $ac_link) 2>&5
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); } &&
14648 { ac_try
='test -s conftest$ac_exeext'
14649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14650 (eval $ac_try) 2>&5
14652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653 (exit $ac_status); }; }; then
14654 eval "$as_ac_var=yes"
14656 echo "$as_me: failed program was:" >&5
14657 cat conftest.
$ac_ext >&5
14658 eval "$as_ac_var=no"
14660 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14663 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14664 if test `eval echo '${'$as_ac_var'}'` = yes; then
14665 cat >>confdefs.h
<<_ACEOF
14666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14672 if test $ac_cv_func_gettimeofday = yes; then
14673 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
14674 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
14675 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
14676 echo $ECHO_N "(cached) $ECHO_C" >&6
14678 cat >conftest.
$ac_ext <<_ACEOF
14679 #line $LINENO "configure"
14680 #include "confdefs.h"
14682 #ifdef TIME_WITH_SYS_TIME
14683 #include <sys/time.h>
14686 #ifdef HAVE_SYS_TIME_H
14687 #include <sys/time.h>
14692 #ifdef F77_DUMMY_MAIN
14693 # ifdef __cplusplus
14696 int F77_DUMMY_MAIN() { return 1; }
14701 struct timeval time;
14702 gettimeofday (&time, 0);
14707 rm -f conftest.
$ac_objext
14708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14709 (eval $ac_compile) 2>&5
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); } &&
14713 { ac_try
='test -s conftest.$ac_objext'
14714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14715 (eval $ac_try) 2>&5
14717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718 (exit $ac_status); }; }; then
14719 emacs_cv_gettimeofday_two_arguments
=yes
14721 echo "$as_me: failed program was:" >&5
14722 cat conftest.
$ac_ext >&5
14723 emacs_cv_gettimeofday_two_arguments
=no
14725 rm -f conftest.
$ac_objext conftest.
$ac_ext
14727 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
14728 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
14729 if test $emacs_cv_gettimeofday_two_arguments = no
; then
14731 cat >>confdefs.h
<<\_ACEOF
14732 #define GETTIMEOFDAY_ONE_ARGUMENT 1
14739 if test "$ac_cv_func_gettimeofday" = yes; then
14740 echo "$as_me:$LINENO: checking for struct timezone" >&5
14741 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
14742 if test "${emacs_cv_struct_timezone+set}" = set; then
14743 echo $ECHO_N "(cached) $ECHO_C" >&6
14745 cat >conftest.
$ac_ext <<_ACEOF
14746 #line $LINENO "configure"
14747 #include "confdefs.h"
14748 #include <sys/time.h>
14749 #ifdef F77_DUMMY_MAIN
14750 # ifdef __cplusplus
14753 int F77_DUMMY_MAIN() { return 1; }
14758 struct timezone tz;
14763 rm -f conftest.
$ac_objext
14764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14765 (eval $ac_compile) 2>&5
14767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 (exit $ac_status); } &&
14769 { ac_try
='test -s conftest.$ac_objext'
14770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14771 (eval $ac_try) 2>&5
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); }; }; then
14775 if test "$cross_compiling" = yes; then
14776 emacs_cv_struct_timezone
=yes
14778 cat >conftest.
$ac_ext <<_ACEOF
14779 #line $LINENO "configure"
14780 #include "confdefs.h"
14782 #ifdef TIME_WITH_SYS_TIME
14783 #include <sys/time.h>
14786 #ifdef HAVE_SYS_TIME_H
14787 #include <sys/time.h>
14793 struct timeval time;
14794 struct timezone dummy;
14795 exit (gettimeofday (&time, &dummy));
14798 rm -f conftest
$ac_exeext
14799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14800 (eval $ac_link) 2>&5
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14805 (eval $ac_try) 2>&5
14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); }; }; then
14809 emacs_cv_struct_timezone
=yes
14811 echo "$as_me: program exited with status $ac_status" >&5
14812 echo "$as_me: failed program was:" >&5
14813 cat conftest.
$ac_ext >&5
14814 ( exit $ac_status )
14815 emacs_cv_struct_timezone
=no
14817 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14820 echo "$as_me: failed program was:" >&5
14821 cat conftest.
$ac_ext >&5
14822 emacs_cv_struct_timezone
=no
14824 rm -f conftest.
$ac_objext conftest.
$ac_ext
14826 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
14827 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
14831 echo "$as_me:$LINENO: checking for socket" >&5
14832 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14833 if test "${ac_cv_func_socket+set}" = set; then
14834 echo $ECHO_N "(cached) $ECHO_C" >&6
14836 cat >conftest.
$ac_ext <<_ACEOF
14837 #line $LINENO "configure"
14838 #include "confdefs.h"
14839 /* System header to define __stub macros and hopefully few prototypes,
14840 which can conflict with char socket (); below. */
14841 #include <assert.h>
14842 /* Override any gcc2 internal prototype to avoid an error. */
14846 /* We use char because int might match the return type of a gcc2
14847 builtin and then its argument prototype would still apply. */
14851 #ifdef F77_DUMMY_MAIN
14852 # ifdef __cplusplus
14855 int F77_DUMMY_MAIN() { return 1; }
14860 /* The GNU C library defines this for functions which it implements
14861 to always fail with ENOSYS. Some functions are actually named
14862 something starting with __ and the normal name is an alias. */
14863 #if defined (__stub_socket) || defined (__stub___socket)
14873 rm -f conftest.
$ac_objext conftest
$ac_exeext
14874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14875 (eval $ac_link) 2>&5
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); } &&
14879 { ac_try
='test -s conftest$ac_exeext'
14880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14881 (eval $ac_try) 2>&5
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); }; }; then
14885 ac_cv_func_socket
=yes
14887 echo "$as_me: failed program was:" >&5
14888 cat conftest.
$ac_ext >&5
14889 ac_cv_func_socket
=no
14891 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14893 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14894 echo "${ECHO_T}$ac_cv_func_socket" >&6
14895 if test $ac_cv_func_socket = yes; then
14901 if test $ok_so_far = yes; then
14902 if test "${ac_cv_header_netinet_in_h+set}" = set; then
14903 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
14904 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
14905 if test "${ac_cv_header_netinet_in_h+set}" = set; then
14906 echo $ECHO_N "(cached) $ECHO_C" >&6
14908 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
14909 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
14911 # Is the header compilable?
14912 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
14913 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
14914 cat >conftest.
$ac_ext <<_ACEOF
14915 #line $LINENO "configure"
14916 #include "confdefs.h"
14917 $ac_includes_default
14918 #include <netinet/in.h>
14920 rm -f conftest.
$ac_objext
14921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14922 (eval $ac_compile) 2>&5
14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); } &&
14926 { ac_try
='test -s conftest.$ac_objext'
14927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14928 (eval $ac_try) 2>&5
14930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931 (exit $ac_status); }; }; then
14932 ac_header_compiler
=yes
14934 echo "$as_me: failed program was:" >&5
14935 cat conftest.
$ac_ext >&5
14936 ac_header_compiler
=no
14938 rm -f conftest.
$ac_objext conftest.
$ac_ext
14939 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14940 echo "${ECHO_T}$ac_header_compiler" >&6
14942 # Is the header present?
14943 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
14944 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
14945 cat >conftest.
$ac_ext <<_ACEOF
14946 #line $LINENO "configure"
14947 #include "confdefs.h"
14948 #include <netinet/in.h>
14950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14951 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14953 egrep -v '^ *\+' conftest.er1
>conftest.err
14955 cat conftest.err
>&5
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); } >/dev
/null
; then
14958 if test -s conftest.err
; then
14959 ac_cpp_err
=$ac_c_preproc_warn_flag
14966 if test -z "$ac_cpp_err"; then
14967 ac_header_preproc
=yes
14969 echo "$as_me: failed program was:" >&5
14970 cat conftest.
$ac_ext >&5
14971 ac_header_preproc
=no
14973 rm -f conftest.err conftest.
$ac_ext
14974 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14975 echo "${ECHO_T}$ac_header_preproc" >&6
14977 # So? What about this header?
14978 case $ac_header_compiler:$ac_header_preproc in
14980 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
14981 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14982 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
14983 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;};;
14985 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
14986 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
14987 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
14988 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
14989 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
14990 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;};;
14992 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
14993 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
14994 if test "${ac_cv_header_netinet_in_h+set}" = set; then
14995 echo $ECHO_N "(cached) $ECHO_C" >&6
14997 ac_cv_header_netinet_in_h
=$ac_header_preproc
14999 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
15000 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
15003 if test $ac_cv_header_netinet_in_h = yes; then
15011 if test $ok_so_far = yes; then
15012 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
15013 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
15014 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
15015 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
15016 echo $ECHO_N "(cached) $ECHO_C" >&6
15018 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
15019 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
15021 # Is the header compilable?
15022 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
15023 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
15024 cat >conftest.
$ac_ext <<_ACEOF
15025 #line $LINENO "configure"
15026 #include "confdefs.h"
15027 $ac_includes_default
15028 #include <arpa/inet.h>
15030 rm -f conftest.
$ac_objext
15031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15032 (eval $ac_compile) 2>&5
15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); } &&
15036 { ac_try
='test -s conftest.$ac_objext'
15037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15038 (eval $ac_try) 2>&5
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); }; }; then
15042 ac_header_compiler
=yes
15044 echo "$as_me: failed program was:" >&5
15045 cat conftest.
$ac_ext >&5
15046 ac_header_compiler
=no
15048 rm -f conftest.
$ac_objext conftest.
$ac_ext
15049 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15050 echo "${ECHO_T}$ac_header_compiler" >&6
15052 # Is the header present?
15053 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
15054 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
15055 cat >conftest.
$ac_ext <<_ACEOF
15056 #line $LINENO "configure"
15057 #include "confdefs.h"
15058 #include <arpa/inet.h>
15060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15061 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15063 egrep -v '^ *\+' conftest.er1
>conftest.err
15065 cat conftest.err
>&5
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); } >/dev
/null
; then
15068 if test -s conftest.err
; then
15069 ac_cpp_err
=$ac_c_preproc_warn_flag
15076 if test -z "$ac_cpp_err"; then
15077 ac_header_preproc
=yes
15079 echo "$as_me: failed program was:" >&5
15080 cat conftest.
$ac_ext >&5
15081 ac_header_preproc
=no
15083 rm -f conftest.err conftest.
$ac_ext
15084 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15085 echo "${ECHO_T}$ac_header_preproc" >&6
15087 # So? What about this header?
15088 case $ac_header_compiler:$ac_header_preproc in
15090 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
15091 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15092 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
15093 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;};;
15095 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
15096 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
15097 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
15098 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
15099 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
15100 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;};;
15102 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
15103 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
15104 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
15105 echo $ECHO_N "(cached) $ECHO_C" >&6
15107 ac_cv_header_arpa_inet_h
=$ac_header_preproc
15109 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
15110 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
15113 if test $ac_cv_header_arpa_inet_h = yes; then
15121 if test $ok_so_far = yes; then
15123 cat >>confdefs.h
<<\_ACEOF
15124 #define HAVE_INET_SOCKETS 1
15129 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
15131 cat >>confdefs.h
<<\_ACEOF
15132 #define HAVE_AIX_SMT_EXP 1
15137 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
15138 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
15139 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
15140 echo "$as_me:$LINENO: result: yes" >&5
15141 echo "${ECHO_T}yes" >&6
15143 cat >>confdefs.h
<<\_ACEOF
15144 #define HAVE_DEV_PTMX 1
15148 echo "$as_me:$LINENO: result: no" >&5
15149 echo "${ECHO_T}no" >&6
15152 echo "$as_me:$LINENO: checking for pid_t" >&5
15153 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
15154 if test "${ac_cv_type_pid_t+set}" = set; then
15155 echo $ECHO_N "(cached) $ECHO_C" >&6
15157 cat >conftest.
$ac_ext <<_ACEOF
15158 #line $LINENO "configure"
15159 #include "confdefs.h"
15160 $ac_includes_default
15161 #ifdef F77_DUMMY_MAIN
15162 # ifdef __cplusplus
15165 int F77_DUMMY_MAIN() { return 1; }
15172 if (sizeof (pid_t))
15178 rm -f conftest.
$ac_objext
15179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15180 (eval $ac_compile) 2>&5
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); } &&
15184 { ac_try
='test -s conftest.$ac_objext'
15185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15186 (eval $ac_try) 2>&5
15188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189 (exit $ac_status); }; }; then
15190 ac_cv_type_pid_t
=yes
15192 echo "$as_me: failed program was:" >&5
15193 cat conftest.
$ac_ext >&5
15194 ac_cv_type_pid_t
=no
15196 rm -f conftest.
$ac_objext conftest.
$ac_ext
15198 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15199 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15200 if test $ac_cv_type_pid_t = yes; then
15204 cat >>confdefs.h
<<_ACEOF
15212 for ac_header
in unistd.h vfork.h
15214 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15216 echo "$as_me:$LINENO: checking for $ac_header" >&5
15217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15219 echo $ECHO_N "(cached) $ECHO_C" >&6
15221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15222 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15224 # Is the header compilable?
15225 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15226 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15227 cat >conftest.
$ac_ext <<_ACEOF
15228 #line $LINENO "configure"
15229 #include "confdefs.h"
15230 $ac_includes_default
15231 #include <$ac_header>
15233 rm -f conftest.
$ac_objext
15234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15235 (eval $ac_compile) 2>&5
15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); } &&
15239 { ac_try
='test -s conftest.$ac_objext'
15240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15241 (eval $ac_try) 2>&5
15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); }; }; then
15245 ac_header_compiler
=yes
15247 echo "$as_me: failed program was:" >&5
15248 cat conftest.
$ac_ext >&5
15249 ac_header_compiler
=no
15251 rm -f conftest.
$ac_objext conftest.
$ac_ext
15252 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15253 echo "${ECHO_T}$ac_header_compiler" >&6
15255 # Is the header present?
15256 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15257 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15258 cat >conftest.
$ac_ext <<_ACEOF
15259 #line $LINENO "configure"
15260 #include "confdefs.h"
15261 #include <$ac_header>
15263 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15264 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15266 egrep -v '^ *\+' conftest.er1
>conftest.err
15268 cat conftest.err
>&5
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); } >/dev
/null
; then
15271 if test -s conftest.err
; then
15272 ac_cpp_err
=$ac_c_preproc_warn_flag
15279 if test -z "$ac_cpp_err"; then
15280 ac_header_preproc
=yes
15282 echo "$as_me: failed program was:" >&5
15283 cat conftest.
$ac_ext >&5
15284 ac_header_preproc
=no
15286 rm -f conftest.err conftest.
$ac_ext
15287 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15288 echo "${ECHO_T}$ac_header_preproc" >&6
15290 # So? What about this header?
15291 case $ac_header_compiler:$ac_header_preproc in
15293 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15294 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15298 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15299 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15300 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15301 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15305 echo "$as_me:$LINENO: checking for $ac_header" >&5
15306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15308 echo $ECHO_N "(cached) $ECHO_C" >&6
15310 eval "$as_ac_Header=$ac_header_preproc"
15312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15316 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15317 cat >>confdefs.h
<<_ACEOF
15318 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15327 for ac_func
in fork vfork
15329 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15330 echo "$as_me:$LINENO: checking for $ac_func" >&5
15331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15332 if eval "test \"\${$as_ac_var+set}\" = set"; then
15333 echo $ECHO_N "(cached) $ECHO_C" >&6
15335 cat >conftest.
$ac_ext <<_ACEOF
15336 #line $LINENO "configure"
15337 #include "confdefs.h"
15338 /* System header to define __stub macros and hopefully few prototypes,
15339 which can conflict with char $ac_func (); below. */
15340 #include <assert.h>
15341 /* Override any gcc2 internal prototype to avoid an error. */
15345 /* We use char because int might match the return type of a gcc2
15346 builtin and then its argument prototype would still apply. */
15350 #ifdef F77_DUMMY_MAIN
15351 # ifdef __cplusplus
15354 int F77_DUMMY_MAIN() { return 1; }
15359 /* The GNU C library defines this for functions which it implements
15360 to always fail with ENOSYS. Some functions are actually named
15361 something starting with __ and the normal name is an alias. */
15362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15372 rm -f conftest.
$ac_objext conftest
$ac_exeext
15373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15374 (eval $ac_link) 2>&5
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); } &&
15378 { ac_try
='test -s conftest$ac_exeext'
15379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15380 (eval $ac_try) 2>&5
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); }; }; then
15384 eval "$as_ac_var=yes"
15386 echo "$as_me: failed program was:" >&5
15387 cat conftest.
$ac_ext >&5
15388 eval "$as_ac_var=no"
15390 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15393 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15394 if test `eval echo '${'$as_ac_var'}'` = yes; then
15395 cat >>confdefs.h
<<_ACEOF
15396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15402 ac_cv_func_fork_works
=$ac_cv_func_fork
15403 if test "x$ac_cv_func_fork" = xyes
; then
15404 echo "$as_me:$LINENO: checking for working fork" >&5
15405 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
15406 if test "${ac_cv_func_fork_works+set}" = set; then
15407 echo $ECHO_N "(cached) $ECHO_C" >&6
15409 if test "$cross_compiling" = yes; then
15410 ac_cv_func_fork_works
=cross
15412 cat >conftest.
$ac_ext <<_ACEOF
15413 /* By Ruediger Kuhlmann. */
15414 #include <sys/types.h>
15416 # include <unistd.h>
15418 /* Some systems only have a dummy stub for fork() */
15426 rm -f conftest
$ac_exeext
15427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15428 (eval $ac_link) 2>&5
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15433 (eval $ac_try) 2>&5
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); }; }; then
15437 ac_cv_func_fork_works
=yes
15439 echo "$as_me: program exited with status $ac_status" >&5
15440 echo "$as_me: failed program was:" >&5
15441 cat conftest.
$ac_ext >&5
15442 ( exit $ac_status )
15443 ac_cv_func_fork_works
=no
15445 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15448 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
15449 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
15452 if test "x$ac_cv_func_fork_works" = xcross
; then
15454 *-*-amigaos* |
*-*-msdosdjgpp*)
15455 # Override, as these systems have only a dummy fork() stub
15456 ac_cv_func_fork_works
=no
15459 ac_cv_func_fork_works
=yes
15462 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15463 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15465 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15466 if test "x$ac_cv_func_vfork" = xyes
; then
15467 echo "$as_me:$LINENO: checking for working vfork" >&5
15468 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
15469 if test "${ac_cv_func_vfork_works+set}" = set; then
15470 echo $ECHO_N "(cached) $ECHO_C" >&6
15472 if test "$cross_compiling" = yes; then
15473 ac_cv_func_vfork_works
=cross
15475 cat >conftest.
$ac_ext <<_ACEOF
15476 #line $LINENO "configure"
15477 #include "confdefs.h"
15478 /* Thanks to Paul Eggert for this test. */
15480 #include <sys/types.h>
15481 #include <sys/stat.h>
15483 # include <unistd.h>
15486 # include <vfork.h>
15488 /* On some sparc systems, changes by the child to local and incoming
15489 argument registers are propagated back to the parent. The compiler
15490 is told about this with #include <vfork.h>, but some compilers
15491 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15492 static variable whose address is put into a register that is
15493 clobbered by the vfork. */
15496 sparc_address_test (int arg)
15498 sparc_address_test (arg) int arg;
15501 static pid_t child;
15519 pid_t parent = getpid ();
15522 sparc_address_test ();
15527 /* Here is another test for sparc vfork register problems. This
15528 test uses lots of local variables, at least as many local
15529 variables as main has allocated so far including compiler
15530 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15531 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15532 reuse the register of parent for one of the local variables,
15533 since it will think that parent can't possibly be used any more
15534 in this routine. Assigning to the local variable will thus
15535 munge parent in the parent process. */
15537 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15538 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15539 /* Convince the compiler that p..p7 are live; otherwise, it might
15540 use the same hardware register for all 8 local variables. */
15541 if (p != p1 || p != p2 || p != p3 || p != p4
15542 || p != p5 || p != p6 || p != p7)
15545 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15546 from child file descriptors. If the child closes a descriptor
15547 before it execs or exits, this munges the parent's descriptor
15548 as well. Test for this by closing stdout in the child. */
15549 _exit(close(fileno(stdout)) != 0);
15554 while (wait(&status) != child)
15557 /* Was there some problem with vforking? */
15560 /* Did the child fail? (This shouldn't happen.) */
15563 /* Did the vfork/compiler bug occur? */
15564 || parent != getpid()
15566 /* Did the file descriptor bug occur? */
15567 || fstat(fileno(stdout), &st) != 0
15572 rm -f conftest
$ac_exeext
15573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15574 (eval $ac_link) 2>&5
15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15579 (eval $ac_try) 2>&5
15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 (exit $ac_status); }; }; then
15583 ac_cv_func_vfork_works
=yes
15585 echo "$as_me: program exited with status $ac_status" >&5
15586 echo "$as_me: failed program was:" >&5
15587 cat conftest.
$ac_ext >&5
15588 ( exit $ac_status )
15589 ac_cv_func_vfork_works
=no
15591 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15594 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
15595 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
15598 if test "x$ac_cv_func_fork_works" = xcross
; then
15599 ac_cv_func_vfork_works
=ac_cv_func_vfork
15600 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15601 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15604 if test "x$ac_cv_func_vfork_works" = xyes
; then
15606 cat >>confdefs.h
<<\_ACEOF
15607 #define HAVE_WORKING_VFORK 1
15612 cat >>confdefs.h
<<\_ACEOF
15617 if test "x$ac_cv_func_fork_works" = xyes
; then
15619 cat >>confdefs.h
<<\_ACEOF
15620 #define HAVE_WORKING_FORK 1
15626 # Fixme: This should be replaced when we have autoconf 2.14.
15627 echo "$as_me:$LINENO: checking for size_t" >&5
15628 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
15629 if test "${ac_cv_type_size_t+set}" = set; then
15630 echo $ECHO_N "(cached) $ECHO_C" >&6
15632 cat >conftest.
$ac_ext <<_ACEOF
15633 #line $LINENO "configure"
15634 #include "confdefs.h"
15635 $ac_includes_default
15636 #ifdef F77_DUMMY_MAIN
15637 # ifdef __cplusplus
15640 int F77_DUMMY_MAIN() { return 1; }
15647 if (sizeof (size_t))
15653 rm -f conftest.
$ac_objext
15654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15655 (eval $ac_compile) 2>&5
15657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658 (exit $ac_status); } &&
15659 { ac_try
='test -s conftest.$ac_objext'
15660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15661 (eval $ac_try) 2>&5
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); }; }; then
15665 ac_cv_type_size_t
=yes
15667 echo "$as_me: failed program was:" >&5
15668 cat conftest.
$ac_ext >&5
15669 ac_cv_type_size_t
=no
15671 rm -f conftest.
$ac_objext conftest.
$ac_ext
15673 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15674 echo "${ECHO_T}$ac_cv_type_size_t" >&6
15675 if test $ac_cv_type_size_t = yes; then
15679 cat >>confdefs.h
<<_ACEOF
15680 #define size_t unsigned
15686 # Set up the CFLAGS for real compilation, so we can substitute it.
15687 CFLAGS
="$REAL_CFLAGS"
15688 CPPFLAGS
="$REAL_CPPFLAGS"
15690 #### Find out which version of Emacs this is.
15691 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
15692 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
15693 if test x
"${version}" = x
; then
15694 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
15695 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
15696 { (exit 1); exit 1; }; }
15699 ### Specify what sort of things we'll be editing into Makefile and config.h.
15700 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15735 cat >>confdefs.h
<<_ACEOF
15736 #define EMACS_CONFIGURATION "${canonical}"
15740 cat >>confdefs.h
<<_ACEOF
15741 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15745 cat >>confdefs.h
<<_ACEOF
15746 #define config_machfile "${machfile}"
15750 cat >>confdefs.h
<<_ACEOF
15751 #define config_opsysfile "${opsysfile}"
15755 cat >>confdefs.h
<<_ACEOF
15756 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
15760 cat >>confdefs.h
<<_ACEOF
15761 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
15765 cat >>confdefs.h
<<_ACEOF
15766 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
15770 cat >>confdefs.h
<<_ACEOF
15771 #define UNEXEC_SRC ${UNEXEC_SRC}
15775 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15777 cat >>confdefs.h
<<\_ACEOF
15778 #define HAVE_X_WINDOWS 1
15782 if test "${USE_X_TOOLKIT}" != "none" ; then
15784 cat >>confdefs.h
<<\_ACEOF
15785 #define USE_X_TOOLKIT 1
15789 if test "${HAVE_X11}" = "yes" ; then
15791 cat >>confdefs.h
<<\_ACEOF
15796 if test "${HAVE_XFREE386}" = "yes" ; then
15798 cat >>confdefs.h
<<\_ACEOF
15799 #define HAVE_XFREE386 1
15803 if test "${HAVE_MENUS}" = "yes" ; then
15805 cat >>confdefs.h
<<\_ACEOF
15806 #define HAVE_MENUS 1
15810 if test "${GNU_MALLOC}" = "yes" ; then
15812 cat >>confdefs.h
<<\_ACEOF
15813 #define GNU_MALLOC 1
15817 if test "${REL_ALLOC}" = "yes" ; then
15819 cat >>confdefs.h
<<\_ACEOF
15820 #define REL_ALLOC 1
15826 for ac_header
in nlist.h
15828 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15829 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15830 echo "$as_me:$LINENO: checking for $ac_header" >&5
15831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15833 echo $ECHO_N "(cached) $ECHO_C" >&6
15835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15836 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15838 # Is the header compilable?
15839 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15840 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15841 cat >conftest.
$ac_ext <<_ACEOF
15842 #line $LINENO "configure"
15843 #include "confdefs.h"
15844 $ac_includes_default
15845 #include <$ac_header>
15847 rm -f conftest.
$ac_objext
15848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15849 (eval $ac_compile) 2>&5
15851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 (exit $ac_status); } &&
15853 { ac_try
='test -s conftest.$ac_objext'
15854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15855 (eval $ac_try) 2>&5
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); }; }; then
15859 ac_header_compiler
=yes
15861 echo "$as_me: failed program was:" >&5
15862 cat conftest.
$ac_ext >&5
15863 ac_header_compiler
=no
15865 rm -f conftest.
$ac_objext conftest.
$ac_ext
15866 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15867 echo "${ECHO_T}$ac_header_compiler" >&6
15869 # Is the header present?
15870 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15871 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15872 cat >conftest.
$ac_ext <<_ACEOF
15873 #line $LINENO "configure"
15874 #include "confdefs.h"
15875 #include <$ac_header>
15877 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15878 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15880 egrep -v '^ *\+' conftest.er1
>conftest.err
15882 cat conftest.err
>&5
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); } >/dev
/null
; then
15885 if test -s conftest.err
; then
15886 ac_cpp_err
=$ac_c_preproc_warn_flag
15893 if test -z "$ac_cpp_err"; then
15894 ac_header_preproc
=yes
15896 echo "$as_me: failed program was:" >&5
15897 cat conftest.
$ac_ext >&5
15898 ac_header_preproc
=no
15900 rm -f conftest.err conftest.
$ac_ext
15901 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15902 echo "${ECHO_T}$ac_header_preproc" >&6
15904 # So? What about this header?
15905 case $ac_header_compiler:$ac_header_preproc in
15907 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15908 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15910 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15912 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15913 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15914 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15915 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15917 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15919 echo "$as_me:$LINENO: checking for $ac_header" >&5
15920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15922 echo $ECHO_N "(cached) $ECHO_C" >&6
15924 eval "$as_ac_Header=$ac_header_preproc"
15926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15930 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15931 cat >>confdefs.h
<<_ACEOF
15932 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15935 cat >>confdefs.h
<<\_ACEOF
15936 #define NLIST_STRUCT 1
15948 #### Report on what we decided to do.
15950 Configured for \`${canonical}'.
15952 Where should the build process find the source code? ${srcdir}
15953 What operating system and machine description files should Emacs use?
15954 \`${opsysfile}' and \`${machfile}'
15955 What compiler should emacs be built with? ${CC} ${CFLAGS}
15956 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
15957 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
15958 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
15959 What window system should Emacs use? ${window_system}
15960 What toolkit should Emacs use? ${USE_X_TOOLKIT}
15961 Should Emacs use a shared game state directory? ${gamedir}"
15963 if test -n "${x_includes}"; then
15964 echo " Where do we find X Windows header files? ${x_includes}"
15966 echo " Where do we find X Windows header files? Standard dirs"
15968 if test -n "${x_libraries}"; then
15969 echo " Where do we find X Windows libraries? ${x_libraries}"
15971 echo " Where do we find X Windows libraries? Standard dirs"
15974 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
15975 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
15976 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
15977 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
15978 echo " Does Emacs use -lungif? ${HAVE_GIF}"
15979 echo " Does Emacs use -lpng? ${HAVE_PNG}"
15980 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
15983 # Remove any trailing slashes in these variables.
15984 test "${prefix}" != NONE
&&
15985 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
15986 test "${exec_prefix}" != NONE
&&
15987 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
15989 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
15990 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
15991 ## from Makefile.c can correctly provide the arg `-traditional' to the
15994 cat >conftest.
$ac_ext <<_ACEOF
15995 #line $LINENO "configure"
15996 #include "confdefs.h"
15999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16000 egrep "yes..yes" >/dev
/null
2>&1; then
16001 CPP_NEED_TRADITIONAL
=no
16003 CPP_NEED_TRADITIONAL
=yes
16008 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"
16009 ac_config_commands
="$ac_config_commands default"
16010 cat >confcache
<<\_ACEOF
16011 # This file is a shell script that caches the results of configure
16012 # tests run on this system so they can be shared between configure
16013 # scripts and configure runs, see configure's option --config-cache.
16014 # It is not useful on other systems. If it contains results you don't
16015 # want to keep, you may remove or edit it.
16017 # config.status only pays attention to the cache file if you give it
16018 # the --recheck option to rerun configure.
16020 # `ac_cv_env_foo' variables (set or unset) will be overriden when
16021 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16022 # following values.
16026 # The following way of writing the cache mishandles newlines in values,
16027 # but we know of no workaround that is simple, portable, and efficient.
16028 # So, don't put newlines in cache variables' values.
16029 # Ultrix sh set writes to stderr and can't be redirected directly,
16030 # and sets the high bit in the cache file unless we assign to the vars.
16033 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16035 # `set' does not quote correctly, so add quotes (double-quote
16036 # substitution turns \\\\ into \\, and sed turns \\ into \).
16039 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16042 # `set' quotes correctly as required by POSIX, so do not add quotes.
16044 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16051 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16053 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16055 if cmp -s $cache_file confcache
; then :; else
16056 if test -w $cache_file; then
16057 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16058 cat confcache
>$cache_file
16060 echo "not updating unwritable cache $cache_file"
16065 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16066 # Let make expand exec_prefix.
16067 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16069 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16070 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16071 # trailing colons and then remove the whole line if VPATH becomes empty
16072 # (actually we leave an empty line to preserve line numbers).
16073 if test "x$srcdir" = x.
; then
16074 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
16075 s/:*\$(srcdir):*/:/;
16076 s/:*\${srcdir}:*/:/;
16078 s/^\([^=]*=[ ]*\):*/\1/;
16084 DEFS
=-DHAVE_CONFIG_H
16087 : ${CONFIG_STATUS=./config.status}
16088 ac_clean_files_save
=$ac_clean_files
16089 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16090 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16091 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16092 cat >$CONFIG_STATUS <<_ACEOF
16094 # Generated by $as_me.
16095 # Run this file to recreate the current configuration.
16096 # Compiler output produced by configure, useful for debugging
16097 # configure, is in config.log if it exists.
16100 SHELL=\${CONFIG_SHELL-$SHELL}
16103 cat >>$CONFIG_STATUS <<\_ACEOF
16105 ## --------------------- ##
16106 ## M4sh Initialization. ##
16107 ## --------------------- ##
16109 # Be Bourne compatible
16110 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16113 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
16118 # Support unset when possible.
16119 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
16125 (set +x
; test -n "`(LANG=C; export LANG) 2>&1`") &&
16126 { $as_unset LANG ||
test "${LANG+set}" != set; } ||
16127 { LANG
=C
; export LANG
; }
16128 (set +x
; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
16129 { $as_unset LC_ALL ||
test "${LC_ALL+set}" != set; } ||
16130 { LC_ALL
=C
; export LC_ALL
; }
16131 (set +x
; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
16132 { $as_unset LC_TIME ||
test "${LC_TIME+set}" != set; } ||
16133 { LC_TIME
=C
; export LC_TIME
; }
16134 (set +x
; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
16135 { $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set; } ||
16136 { LC_CTYPE
=C
; export LC_CTYPE
; }
16137 (set +x
; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
16138 { $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set; } ||
16139 { LANGUAGE
=C
; export LANGUAGE
; }
16140 (set +x
; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
16141 { $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set; } ||
16142 { LC_COLLATE
=C
; export LC_COLLATE
; }
16143 (set +x
; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
16144 { $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set; } ||
16145 { LC_NUMERIC
=C
; export LC_NUMERIC
; }
16146 (set +x
; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
16147 { $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set; } ||
16148 { LC_MESSAGES
=C
; export LC_MESSAGES
; }
16151 # Name of the executable.
16152 as_me
=`(basename "$0") 2>/dev/null ||
16153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16154 X"$0" : 'X\(//\)$' \| \
16155 X"$0" : 'X\(/\)$' \| \
16156 . : '\(.\)' 2>/dev/null ||
16158 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16159 /^X\/\(\/\/\)$/{ s//\1/; q; }
16160 /^X\/\(\/\).*/{ s//\1/; q; }
16163 # PATH needs CR, and LINENO needs CR and PATH.
16164 # Avoid depending upon Character Ranges.
16165 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16166 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16167 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16168 as_cr_digits
='0123456789'
16169 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16171 # The user is always right.
16172 if test "${PATH_SEPARATOR+set}" != set; then
16173 echo "#! /bin/sh" >conftest.sh
16174 echo "exit 0" >>conftest.sh
16175 chmod +x conftest.sh
16176 if (PATH
=".;."; conftest.sh
) >/dev
/null
2>&1; then
16185 as_lineno_1
=$LINENO
16186 as_lineno_2
=$LINENO
16187 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
16188 test "x$as_lineno_1" != "x$as_lineno_2" &&
16189 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
16190 # Find who we are. Look in the path if we contain no path at all
16193 *[\\/]* ) as_myself
=$0 ;;
16194 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16195 for as_dir
in $PATH
16198 test -z "$as_dir" && as_dir
=.
16199 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
16204 # We did not find ourselves, most probably we were run as `sh COMMAND'
16205 # in which case we are not to be found in the path.
16206 if test "x$as_myself" = x
; then
16209 if test ! -f "$as_myself"; then
16210 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16211 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16212 { (exit 1); exit 1; }; }
16214 case $CONFIG_SHELL in
16216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16217 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
16220 test -z "$as_dir" && as_dir
=.
16221 for as_base
in sh bash ksh sh5
; do
16224 if ("$as_dir/$as_base" -c '
16225 as_lineno_1=$LINENO
16226 as_lineno_2=$LINENO
16227 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16228 test "x$as_lineno_1" != "x$as_lineno_2" &&
16229 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
16230 CONFIG_SHELL
=$as_dir/$as_base
16231 export CONFIG_SHELL
16232 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16240 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16241 # uniformly replaced by the line number. The first 'sed' inserts a
16242 # line-number line before each line; the second 'sed' does the real
16243 # work. The second script uses 'N' to pair each line-number line
16244 # with the numbered line, and appends trailing '-' during
16245 # substitution so that $LINENO is not a special case at line end.
16246 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16247 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16248 sed '=' <$as_myself |
16253 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16256 s,^['$as_cr_digits']*\n,,
16257 ' >$as_me.lineno
&&
16258 chmod +x
$as_me.lineno ||
16259 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16260 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16261 { (exit 1); exit 1; }; }
16263 # Don't try to exec as it changes $[0], causing all sort of problems
16264 # (the dirname of $[0] is not the place where we might find the
16265 # original and so on. Autoconf is especially sensible to this).
16267 # Exit status is that of the last command.
16272 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16273 *c
*,-n*) ECHO_N
= ECHO_C
='
16275 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
16276 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
16279 if expr a
: '\(a\)' >/dev
/null
2>&1; then
16285 rm -f conf$$ conf$$.exe conf$$.
file
16287 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16288 # We could just check for DJGPP; but this test a) works b) is more generic
16289 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16290 if test -f conf$$.exe
; then
16291 # Don't use ln at all; we don't have any links
16296 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16301 rm -f conf$$ conf$$.exe conf$$.
file
16303 as_executable_p
="test -f"
16305 # Sed expression to map a string onto a valid CPP name.
16306 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16308 # Sed expression to map a string onto a valid variable name.
16309 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16313 # We need space, tab and new line, in precisely that order.
16319 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=$PATH_SEPARATOR; export CDPATH
; }
16323 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16324 # report actual input values of CONFIG_FILES etc. instead of their
16325 # values after options handling. Logging --version etc. is OK.
16329 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16330 ## Running $as_me. ##
16335 This file was extended by $as_me, which was
16336 generated by GNU Autoconf 2.53. Invocation command line was
16338 CONFIG_FILES = $CONFIG_FILES
16339 CONFIG_HEADERS = $CONFIG_HEADERS
16340 CONFIG_LINKS = $CONFIG_LINKS
16341 CONFIG_COMMANDS = $CONFIG_COMMANDS
16345 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16349 # Files that config.status was made for.
16350 if test -n "$ac_config_files"; then
16351 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16354 if test -n "$ac_config_headers"; then
16355 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16358 if test -n "$ac_config_links"; then
16359 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16362 if test -n "$ac_config_commands"; then
16363 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16366 cat >>$CONFIG_STATUS <<\_ACEOF
16369 \`$as_me' instantiates files from templates according to the
16370 current configuration.
16372 Usage: $0 [OPTIONS] [FILE]...
16374 -h, --help print this help, then exit
16375 -V, --version print version number, then exit
16376 -d, --debug don't remove temporary files
16377 --recheck update $as_me by reconfiguring in the same conditions
16378 --file=FILE[:TEMPLATE]
16379 instantiate the configuration file FILE
16380 --header=FILE[:TEMPLATE]
16381 instantiate the configuration header FILE
16383 Configuration files:
16386 Configuration headers:
16389 Configuration commands:
16392 Report bugs to <bug-autoconf@gnu.org>."
16395 cat >>$CONFIG_STATUS <<_ACEOF
16398 configured by $0, generated by GNU Autoconf 2.53,
16399 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16401 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16402 Free Software Foundation, Inc.
16403 This config.status script is free software; the Free Software Foundation
16404 gives unlimited permission to copy, distribute and modify it."
16409 cat >>$CONFIG_STATUS <<\_ACEOF
16410 # If no file are specified by the user, then we need to provide default
16411 # value. By we need to know if files were specified by the user.
16417 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
16418 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
16420 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
16424 *) # This is not an option, so the user has probably given explicit
16426 ac_need_defaults
=false
;;
16430 # Handling of the options.
16432 cat >>$CONFIG_STATUS <<_ACEOF
16433 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16434 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
16435 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
16437 cat >>$CONFIG_STATUS <<\_ACEOF
16438 --version |
--vers* |
-V )
16439 echo "$ac_cs_version"; exit 0 ;;
16441 # Conflict between --help and --header
16442 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16443 Try \`$0 --help' for more information." >&5
16444 echo "$as_me: error: ambiguous option: $1
16445 Try \`$0 --help' for more information." >&2;}
16446 { (exit 1); exit 1; }; };;
16447 --help |
--hel |
-h )
16448 echo "$ac_cs_usage"; exit 0 ;;
16449 --debug |
--d* |
-d )
16451 --file |
--fil |
--fi |
--f )
16453 CONFIG_FILES
="$CONFIG_FILES $1"
16454 ac_need_defaults
=false
;;
16455 --header |
--heade |
--head |
--hea )
16457 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
16458 ac_need_defaults
=false
;;
16460 # This is an error.
16461 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16462 Try \`$0 --help' for more information." >&5
16463 echo "$as_me: error: unrecognized option: $1
16464 Try \`$0 --help' for more information." >&2;}
16465 { (exit 1); exit 1; }; } ;;
16467 *) ac_config_targets
="$ac_config_targets $1" ;;
16475 cat >>$CONFIG_STATUS <<_ACEOF
16477 # INIT-COMMANDS section.
16480 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
16486 cat >>$CONFIG_STATUS <<\_ACEOF
16487 for ac_config_target
in $ac_config_targets
16489 case "$ac_config_target" in
16490 # Handling of arguments.
16491 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16492 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
16493 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
16494 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
16495 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
16496 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
16497 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
16498 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
16499 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
16500 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
16501 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
16502 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
16503 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16504 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16505 { (exit 1); exit 1; }; };;
16509 # If the user did not use the arguments to specify the items to instantiate,
16510 # then the envvar interface is used. Set only those that are not.
16511 # We use the long form for the default assignment because of an extremely
16512 # bizarre bug on SunOS 4.1.3.
16513 if $ac_need_defaults; then
16514 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16515 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16516 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16519 # Create a temporary directory, and hook for its removal unless debugging.
16522 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16523 trap '{ (exit 1); exit 1; }' 1 2 13 15
16526 # Create a (secure) tmp directory for tmp files.
16529 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
16530 test -n "$tmp" && test -d "$tmp"
16533 tmp
=$TMPDIR/cs$$
-$RANDOM
16534 (umask 077 && mkdir
$tmp)
16537 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
16538 { (exit 1); exit 1; }
16543 cat >>$CONFIG_STATUS <<_ACEOF
16546 # CONFIG_FILES section.
16549 # No need to generate the scripts if there are no CONFIG_FILES.
16550 # This happens for instance when ./config.status config.h
16551 if test -n "\$CONFIG_FILES"; then
16552 # Protect against being on the right side of a sed subst in config.status.
16553 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16554 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16555 s,@SHELL@,$SHELL,;t t
16556 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16557 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16558 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16559 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16560 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16561 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16562 s,@exec_prefix@,$exec_prefix,;t t
16563 s,@prefix@,$prefix,;t t
16564 s,@program_transform_name@,$program_transform_name,;t t
16565 s,@bindir@,$bindir,;t t
16566 s,@sbindir@,$sbindir,;t t
16567 s,@libexecdir@,$libexecdir,;t t
16568 s,@datadir@,$datadir,;t t
16569 s,@sysconfdir@,$sysconfdir,;t t
16570 s,@sharedstatedir@,$sharedstatedir,;t t
16571 s,@localstatedir@,$localstatedir,;t t
16572 s,@libdir@,$libdir,;t t
16573 s,@includedir@,$includedir,;t t
16574 s,@oldincludedir@,$oldincludedir,;t t
16575 s,@infodir@,$infodir,;t t
16576 s,@mandir@,$mandir,;t t
16577 s,@build_alias@,$build_alias,;t t
16578 s,@host_alias@,$host_alias,;t t
16579 s,@target_alias@,$target_alias,;t t
16580 s,@DEFS@,$DEFS,;t t
16581 s,@ECHO_C@,$ECHO_C,;t t
16582 s,@ECHO_N@,$ECHO_N,;t t
16583 s,@ECHO_T@,$ECHO_T,;t t
16584 s,@LIBS@,$LIBS,;t t
16585 s,@build@,$build,;t t
16586 s,@build_cpu@,$build_cpu,;t t
16587 s,@build_vendor@,$build_vendor,;t t
16588 s,@build_os@,$build_os,;t t
16589 s,@host@,$host,;t t
16590 s,@host_cpu@,$host_cpu,;t t
16591 s,@host_vendor@,$host_vendor,;t t
16592 s,@host_os@,$host_os,;t t
16594 s,@CFLAGS@,$CFLAGS,;t t
16595 s,@LDFLAGS@,$LDFLAGS,;t t
16596 s,@CPPFLAGS@,$CPPFLAGS,;t t
16597 s,@ac_ct_CC@,$ac_ct_CC,;t t
16598 s,@EXEEXT@,$EXEEXT,;t t
16599 s,@OBJEXT@,$OBJEXT,;t t
16600 s,@LN_S@,$LN_S,;t t
16602 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16603 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16604 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16605 s,@YACC@,$YACC,;t t
16606 s,@RANLIB@,$RANLIB,;t t
16607 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16608 s,@LIBSOUND@,$LIBSOUND,;t t
16609 s,@SET_MAKE@,$SET_MAKE,;t t
16610 s,@ALLOCA@,$ALLOCA,;t t
16611 s,@liblockfile@,$liblockfile,;t t
16612 s,@LIBOBJS@,$LIBOBJS,;t t
16613 s,@NEED_SETGID@,$NEED_SETGID,;t t
16614 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
16615 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
16616 s,@version@,$version,;t t
16617 s,@configuration@,$configuration,;t t
16618 s,@canonical@,$canonical,;t t
16619 s,@srcdir@,$srcdir,;t t
16620 s,@lispdir@,$lispdir,;t t
16621 s,@locallisppath@,$locallisppath,;t t
16622 s,@lisppath@,$lisppath,;t t
16623 s,@x_default_search_path@,$x_default_search_path,;t t
16624 s,@etcdir@,$etcdir,;t t
16625 s,@archlibdir@,$archlibdir,;t t
16626 s,@docdir@,$docdir,;t t
16627 s,@bitmapdir@,$bitmapdir,;t t
16628 s,@gamedir@,$gamedir,;t t
16629 s,@gameuser@,$gameuser,;t t
16630 s,@c_switch_system@,$c_switch_system,;t t
16631 s,@c_switch_machine@,$c_switch_machine,;t t
16632 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
16633 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
16634 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
16635 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
16636 s,@machfile@,$machfile,;t t
16637 s,@opsysfile@,$opsysfile,;t t
16642 cat >>$CONFIG_STATUS <<\_ACEOF
16643 # Split the substitutions into bite-sized pieces for seds with
16644 # small command number limits, like on Digital OSF/1 and HP-UX.
16645 ac_max_sed_lines
=48
16646 ac_sed_frag
=1 # Number of current file.
16647 ac_beg
=1 # First line for current file.
16648 ac_end
=$ac_max_sed_lines # Line after last line for current file.
16651 while $ac_more_lines; do
16652 if test $ac_beg -gt 1; then
16653 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
16655 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
16657 if test ! -s $tmp/subs.frag
; then
16658 ac_more_lines
=false
16660 # The purpose of the label and of the branching condition is to
16661 # speed up the sed processing (if there are no `@' at all, there
16662 # is no need to browse any of the substitutions).
16663 # These are the two extra sed commands mentioned above.
16665 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
16666 if test -z "$ac_sed_cmds"; then
16667 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
16669 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16671 ac_sed_frag
=`expr $ac_sed_frag + 1`
16673 ac_end
=`expr $ac_end + $ac_max_sed_lines`
16676 if test -z "$ac_sed_cmds"; then
16679 fi # test -n "$CONFIG_FILES"
16682 cat >>$CONFIG_STATUS <<\_ACEOF
16683 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
16684 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16686 - |
*:- |
*:-:* ) # input from stdin
16688 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16689 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16690 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16691 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16692 * ) ac_file_in
=$ac_file.
in ;;
16695 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16696 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
16697 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16698 X"$ac_file" : 'X\(//\)[^/]' \| \
16699 X"$ac_file" : 'X\(//\)$' \| \
16700 X"$ac_file" : 'X\(/\)' \| \
16701 . : '\(.\)' 2>/dev/null ||
16703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16704 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16705 /^X\(\/\/\)$/{ s//\1/; q; }
16706 /^X\(\/\).*/{ s//\1/; q; }
16708 { case "$ac_dir" in
16709 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
16713 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16714 case $as_mkdir_dir in
16715 # Skip DOS drivespec
16716 ?
:) as_incr_dir
=$as_mkdir_dir ;;
16718 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
16719 test -d "$as_incr_dir" ||
16720 mkdir
"$as_incr_dir" ||
16721 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
16722 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
16723 { (exit 1); exit 1; }; }
16730 if test "$ac_dir" != .
; then
16731 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16732 # A "../" for each directory in $ac_dir_suffix.
16733 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16735 ac_dir_suffix
= ac_top_builddir
=
16739 .
) # No --srcdir option. We are building in place.
16741 if test -z "$ac_top_builddir"; then
16744 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
16746 [\\/]* | ?
:[\\/]* ) # Absolute path.
16747 ac_srcdir
=$srcdir$ac_dir_suffix;
16748 ac_top_srcdir
=$srcdir ;;
16749 *) # Relative path.
16750 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
16751 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
16753 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16755 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
16756 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
16757 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16758 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16762 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
16763 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
16766 if test x
"$ac_file" != x-
; then
16767 { echo "$as_me:$LINENO: creating $ac_file" >&5
16768 echo "$as_me: creating $ac_file" >&6;}
16771 # Let's still pretend it is `configure' which instantiates (i.e., don't
16772 # use $as_me), people would be surprised to read:
16773 # /* config.h. Generated by config.status. */
16774 if test x
"$ac_file" = x-
; then
16777 configure_input
="$ac_file. "
16779 configure_input
=$configure_input"Generated from `echo $ac_file_in |
16780 sed 's,.*/,,'` by configure."
16782 # First look for the input files in the build tree, otherwise in the
16784 ac_file_inputs
=`IFS=:
16785 for f in $ac_file_in; do
16787 -) echo $tmp/stdin ;;
16789 # Absolute (can't be DOS-style, as IFS=:)
16790 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16791 echo "$as_me: error: cannot find input file: $f" >&2;}
16792 { (exit 1); exit 1; }; }
16795 if test -f "$f"; then
16798 elif test -f "$srcdir/$f"; then
16803 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16804 echo "$as_me: error: cannot find input file: $f" >&2;}
16805 { (exit 1); exit 1; }; }
16808 done` ||
{ (exit 1); exit 1; }
16810 cat >>$CONFIG_STATUS <<_ACEOF
16814 cat >>$CONFIG_STATUS <<\_ACEOF
16816 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16817 s
,@configure_input@
,$configure_input,;t t
16818 s
,@srcdir@
,$ac_srcdir,;t t
16819 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
16820 s
,@top_srcdir@
,$ac_top_srcdir,;t t
16821 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
16822 s
,@builddir@
,$ac_builddir,;t t
16823 s
,@abs_builddir@
,$ac_abs_builddir,;t t
16824 s
,@top_builddir@
,$ac_top_builddir,;t t
16825 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
16826 s
,@INSTALL@
,$ac_INSTALL,;t t
16827 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16829 if test x"$ac_file" != x-; then
16830 mv $tmp/out $ac_file
16838 cat >>$CONFIG_STATUS <<\_ACEOF
16841 # CONFIG_HEADER section.
16844 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
16845 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16847 # ac_d sets the value in "#define NAME VALUE" lines.
16848 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16849 ac_dB
='[ ].*$,\1#\2'
16852 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16853 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16854 ac_uB
='$,\1#\2define\3'
16858 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
16859 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16861 - |
*:- |
*:-:* ) # input from stdin
16863 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16864 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16865 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16866 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16867 * ) ac_file_in
=$ac_file.
in ;;
16870 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
16871 echo "$as_me: creating $ac_file" >&6;}
16873 # First look for the input files in the build tree, otherwise in the
16875 ac_file_inputs
=`IFS=:
16876 for f in $ac_file_in; do
16878 -) echo $tmp/stdin ;;
16880 # Absolute (can't be DOS-style, as IFS=:)
16881 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16882 echo "$as_me: error: cannot find input file: $f" >&2;}
16883 { (exit 1); exit 1; }; }
16886 if test -f "$f"; then
16889 elif test -f "$srcdir/$f"; then
16894 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16895 echo "$as_me: error: cannot find input file: $f" >&2;}
16896 { (exit 1); exit 1; }; }
16899 done` ||
{ (exit 1); exit 1; }
16900 # Remove the trailing spaces.
16901 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16905 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16906 # `conftest.undefs', that substitutes the proper values into
16907 # config.h.in to produce config.h. The first handles `#define'
16908 # templates, and the second `#undef' templates.
16909 # And first: Protect against being on the right side of a sed subst in
16910 # config.status. Protect against being in an unquoted here document
16911 # in config.status.
16912 rm -f conftest.defines conftest.undefs
16913 # Using a here document instead of a string reduces the quoting nightmare.
16914 # Putting comments in sed scripts is not portable.
16916 # `end' is used to avoid that the second main sed command (meant for
16917 # 0-ary CPP macros) applies to n-ary macro definitions.
16918 # See the Autoconf documentation for `clear'.
16919 cat >confdef2sed.
sed <<\_ACEOF
16924 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16926 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16929 # If some macros were called several times there might be several times
16930 # the same #defines, which is useless. Nevertheless, we may not want to
16931 # sort them, since we want the *last* AC-DEFINE to be honored.
16932 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16933 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16934 rm -f confdef2sed.sed
16936 # This sed command replaces #undef with comments. This is necessary, for
16937 # example, in the case of _POSIX_SOURCE, which is predefined and required
16938 # on some systems where configure will not decide to define it.
16939 cat >>conftest.undefs <<\_ACEOF
16940 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16943 # Break up conftest.defines because some shells have a limit on the size
16944 # of here documents, and old seds have small limits too (100 cmds).
16945 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16946 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16947 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16948 echo ' :' >>$CONFIG_STATUS
16949 rm -f conftest.tail
16950 while grep . conftest.defines >/dev/null
16952 # Write a limited-size here document to $tmp/defines.sed.
16953 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16954 # Speed up: don't consider the non `#define' lines.
16955 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16956 # Work around the forget-to-reset-the-flag bug.
16957 echo 't clr' >>$CONFIG_STATUS
16958 echo ': clr' >>$CONFIG_STATUS
16959 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
16961 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16963 mv $tmp/out $tmp/in
16965 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
16966 rm -f conftest.defines
16967 mv conftest.
tail conftest.defines
16969 rm -f conftest.defines
16970 echo ' fi # egrep' >>$CONFIG_STATUS
16971 echo >>$CONFIG_STATUS
16973 # Break up conftest.undefs because some shells have a limit on the size
16974 # of here documents, and old seds have small limits too (100 cmds).
16975 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16976 rm -f conftest.
tail
16977 while grep . conftest.undefs
>/dev
/null
16979 # Write a limited-size here document to $tmp/undefs.sed.
16980 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16981 # Speed up: don't consider the non
`#undef'
16982 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16983 # Work around the forget-to-reset-the-flag bug.
16984 echo 't clr' >>$CONFIG_STATUS
16985 echo ': clr' >>$CONFIG_STATUS
16986 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16988 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16990 mv $tmp/out $tmp/in
16992 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16993 rm -f conftest.undefs
16994 mv conftest.tail conftest.undefs
16996 rm -f conftest.undefs
16998 cat >>$CONFIG_STATUS <<\_ACEOF
16999 # Let's still pretend it is `configure
' which instantiates (i.e., don't
17000 # use $as_me), people would be surprised to read:
17001 # /* config.h. Generated by config.status. */
17002 if test x
"$ac_file" = x-
; then
17003 echo "/* Generated by configure. */" >$tmp/config.h
17005 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17007 cat $tmp/in >>$tmp/config.h
17009 if test x
"$ac_file" != x-
; then
17010 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
17011 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17012 echo "$as_me: $ac_file is unchanged" >&6;}
17014 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
17015 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17016 X"$ac_file" : 'X\(//\)[^/]' \| \
17017 X"$ac_file" : 'X\(//\)$' \| \
17018 X"$ac_file" : 'X\(/\)' \| \
17019 . : '\(.\)' 2>/dev/null ||
17021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17022 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17023 /^X\(\/\/\)$/{ s//\1/; q; }
17024 /^X\(\/\).*/{ s//\1/; q; }
17026 { case "$ac_dir" in
17027 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
17031 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17032 case $as_mkdir_dir in
17033 # Skip DOS drivespec
17034 ?
:) as_incr_dir
=$as_mkdir_dir ;;
17036 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
17037 test -d "$as_incr_dir" ||
17038 mkdir
"$as_incr_dir" ||
17039 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17040 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17041 { (exit 1); exit 1; }; }
17047 mv $tmp/config.h
$ac_file
17051 rm -f $tmp/config.h
17055 cat >>$CONFIG_STATUS <<\_ACEOF
17058 # CONFIG_COMMANDS section.
17060 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
17061 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
17062 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17063 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
17064 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17065 X"$ac_dest" : 'X\(//\)[^/]' \| \
17066 X"$ac_dest" : 'X\(//\)$' \| \
17067 X"$ac_dest" : 'X\(/\)' \| \
17068 . : '\(.\)' 2>/dev/null ||
17070 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17071 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17072 /^X\(\/\/\)$/{ s//\1/; q; }
17073 /^X\(\/\).*/{ s//\1/; q; }
17077 if test "$ac_dir" != .
; then
17078 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17079 # A "../" for each directory in $ac_dir_suffix.
17080 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17082 ac_dir_suffix
= ac_top_builddir
=
17086 .
) # No --srcdir option. We are building in place.
17088 if test -z "$ac_top_builddir"; then
17091 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
17093 [\\/]* | ?
:[\\/]* ) # Absolute path.
17094 ac_srcdir
=$srcdir$ac_dir_suffix;
17095 ac_top_srcdir
=$srcdir ;;
17096 *) # Relative path.
17097 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
17098 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
17100 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17102 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
17103 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
17104 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17105 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17108 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17109 echo "$as_me: executing $ac_dest commands" >&6;}
17113 ### Make the necessary directories, if they don't exist.
17114 for dir
in etc lisp
; do
17115 test -d ${dir} || mkdir
${dir}
17118 # Build src/Makefile from ${srcdir}/src/Makefile.c
17119 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
17120 # This must be done after src/config.h is built, since we rely on that file.
17122 # Now get this: Some word that is part of the ${srcdir} directory name
17123 # or the ${configuration} value might, just might, happen to be an
17124 # identifier like `sun4' or `i386' or something, and be predefined by
17125 # the C preprocessor to some helpful value like 1, or maybe the empty
17126 # string. Needless to say consequent macro substitutions are less
17127 # than conducive to the makefile finding the correct directory.
17128 undefs
="`echo $top_srcdir $configuration $canonical |
17129 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
17130 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
17133 echo creating src
/epaths.h
17134 ${MAKE-make} epaths-force
17136 # As of 2000-11-19, newest development versions of GNU cpp preprocess
17137 # `..' to `. .' unless invoked with -traditional
17139 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
17140 CPPFLAGS
="$CPPFLAGS -traditional"
17143 echo creating lib-src
/Makefile
17145 rm -f junk.c junk1.c junk2.c
17146 sed -e '/start of cpp stuff/q' \
17147 < Makefile.c
> junk1.c
17148 sed -e '1,/start of cpp stuff/d'\
17149 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
17150 < Makefile.c
> junk.c
17151 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
17152 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
17153 cat junk1.c junk2.c
> Makefile.new
17154 rm -f junk.c junk1.c junk2.c
17155 chmod 444 Makefile.new
17156 mv -f Makefile.new Makefile
17159 echo creating src
/Makefile
17161 rm -f junk.c junk1.c junk2.c
17162 sed -e '/start of cpp stuff/q' \
17163 < Makefile.c
> junk1.c
17164 sed -e '1,/start of cpp stuff/d'\
17165 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
17166 < Makefile.c
> junk.c
17167 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
17168 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
17169 cat junk1.c junk2.c
> Makefile.new
17170 rm -f junk.c junk1.c junk2.c
17171 chmod 444 Makefile.new
17172 mv -f Makefile.new Makefile
17175 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
17176 echo creating src
/.gdbinit
17177 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
17180 # This is how we know whether to re-run configure in certain cases.
17181 touch src
/config.stamp
17188 cat >>$CONFIG_STATUS <<\_ACEOF
17190 { (exit 0); exit 0; }
17192 chmod +x
$CONFIG_STATUS
17193 ac_clean_files
=$ac_clean_files_save
17196 # configure is writing to config.log, and then calls config.status.
17197 # config.status does its own redirection, appending to config.log.
17198 # Unfortunately, on DOS this fails, as config.log is still kept open
17199 # by configure, so config.status won't be able to write to it; its
17200 # output is simply discarded. So we exec the FD to /dev/null,
17201 # effectively closing config.log, so it can be properly (re)opened and
17202 # appended to by config.status. When coming back to configure, we
17203 # need to make the FD available again.
17204 if test "$no_create" != yes; then
17207 $SHELL $CONFIG_STATUS || ac_cs_success
=false
17209 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17210 # would make configure fail if this is the last instruction.
17211 $ac_cs_success ||
{ (exit 1); exit 1; }