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 --without-carbon don't use Carbon GUI on Mac OS X
861 --with-x use the X Window System
863 Some influential environment variables
:
864 CC C compiler
command
865 CFLAGS C compiler flags
866 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
867 nonstandard directory
<lib dir
>
868 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
869 headers
in a nonstandard directory
<include dir
>
872 Use these variables to override the choices made by
`configure' or to help
873 it to find libraries and programs with nonstandard names/locations.
878 if test "$ac_init_help" = "recursive"; then
879 # If there are subdirs, report their specific --help.
881 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
882 test -d $ac_dir || continue
885 if test "$ac_dir" != .; then
886 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
887 # A "../" for each directory in $ac_dir_suffix.
888 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
890 ac_dir_suffix= ac_top_builddir=
894 .) # No --srcdir option. We are building in place.
896 if test -z "$ac_top_builddir"; then
899 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
901 [\\/]* | ?:[\\/]* ) # Absolute path.
902 ac_srcdir=$srcdir$ac_dir_suffix;
903 ac_top_srcdir=$srcdir ;;
905 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
906 ac_top_srcdir=$ac_top_builddir$srcdir ;;
908 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
910 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
911 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
912 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
913 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
916 # Check for guested configure; otherwise get Cygnus style configure.
917 if test -f $ac_srcdir/configure.gnu; then
919 $SHELL $ac_srcdir/configure.gnu --help=recursive
920 elif test -f $ac_srcdir/configure; then
922 $SHELL $ac_srcdir/configure --help=recursive
923 elif test -f $ac_srcdir/configure.ac ||
924 test -f $ac_srcdir/configure.in; then
928 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
934 test -n "$ac_init_help" && exit 0
935 if $ac_init_version; then
938 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
939 Free Software Foundation, Inc.
940 This configure script is free software; the Free Software Foundation
941 gives unlimited permission to copy, distribute and modify it.
947 This file contains any messages produced by compilers while
948 running configure, to aid debugging if configure makes a mistake.
950 It was created by $as_me, which was
951 generated by GNU Autoconf 2.53. Invocation command line was
962 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
963 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
964 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
965 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
966 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
968 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
969 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
971 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
972 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
973 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
974 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
975 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
976 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
977 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
985 test -z "$as_dir" && as_dir=.
1001 # Keep a trace of the command line.
1002 # Strip out --no-create and --no-recursion so they do not pile up.
1003 # Also quote any args containing shell meta-characters.
1009 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1010 | --no-cr | --no-c | -n ) continue ;;
1011 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1014 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1015 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1017 case " $ac_configure_args " in
1018 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1019 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1022 # Get rid of the leading space.
1025 # When interrupted or exit'd, cleanup temporary files, and complete
1026 # config.log. We remove comments because anyway the quotes in there
1027 # would cause problems or look ugly.
1028 # WARNING: Be sure not to use single quotes in there, as some shells,
1029 # such as our DU 5.0 friend, will then `close
' the trap.
1030 trap 'exit_status
=$?
1031 # Save into config.log some information that might help in debugging.
1035 ## ---------------- ##
1036 ## Cache variables. ##
1037 ## ---------------- ##
1040 # The following way of writing the cache mishandles newlines in values,
1043 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1046 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1047 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1051 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1056 if test -s confdefs.h
; then
1063 sed "/^$/d" confdefs.h
1066 test "$ac_signal" != 0 &&
1067 echo "$as_me: caught signal $ac_signal"
1068 echo "$as_me: exit $exit_status"
1070 rm -f core core.
* *.core
&&
1071 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1074 for ac_signal in 1 2 13 15; do
1075 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1079 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1080 rm -rf conftest* confdefs.h
1081 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1084 # Predefined preprocessor variables.
1086 cat >>confdefs.h <<_ACEOF
1087 #define PACKAGE_NAME "$PACKAGE_NAME"
1091 cat >>confdefs.h <<_ACEOF
1092 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1096 cat >>confdefs.h <<_ACEOF
1097 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1101 cat >>confdefs.h <<_ACEOF
1102 #define PACKAGE_STRING "$PACKAGE_STRING"
1106 cat >>confdefs.h <<_ACEOF
1107 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1111 # Let the site file select an alternate cache file if it wants to.
1112 # Prefer explicitly selected file to automatically selected ones.
1113 if test -z "$CONFIG_SITE"; then
1114 if test "x$prefix" != xNONE; then
1115 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1117 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1120 for ac_site_file in $CONFIG_SITE; do
1121 if test -r "$ac_site_file"; then
1122 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1123 echo "$as_me: loading site script $ac_site_file" >&6;}
1124 sed 's
/^
/|
/' "$ac_site_file" >&5
1129 if test -r "$cache_file"; then
1130 # Some versions of bash will fail to source /dev/null (special
1131 # files actually), so we avoid doing that.
1132 if test -f "$cache_file"; then
1133 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1134 echo "$as_me: loading cache $cache_file" >&6;}
1136 [\\/]* | ?:[\\/]* ) . $cache_file;;
1137 *) . ./$cache_file;;
1141 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1142 echo "$as_me: creating cache $cache_file" >&6;}
1146 # Check that the precious variables saved in the cache have kept the same
1148 ac_cache_corrupted=false
1149 for ac_var in `(set) 2>&1 |
1150 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1151 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1152 eval ac_new_set=\$ac_env_${ac_var}_set
1153 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1154 eval ac_new_val="\$ac_env_${ac_var}_value"
1155 case $ac_old_set,$ac_new_set in
1157 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1158 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1159 ac_cache_corrupted=: ;;
1161 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1162 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1163 ac_cache_corrupted=: ;;
1166 if test "x$ac_old_val" != "x$ac_new_val"; then
1167 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1168 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1169 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1170 echo "$as_me: former value: $ac_old_val" >&2;}
1171 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1172 echo "$as_me: current value: $ac_new_val" >&2;}
1173 ac_cache_corrupted=:
1176 # Pass precious variables to config.status.
1177 if test "$ac_new_set" = set; then
1179 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1180 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1181 *) ac_arg=$ac_var=$ac_new_val ;;
1183 case " $ac_configure_args " in
1184 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1185 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1189 if $ac_cache_corrupted; then
1190 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1191 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1192 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1193 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1194 { (exit 1); exit 1; }; }
1198 ac_cpp='$CPP $CPPFLAGS'
1199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1200 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1220 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1223 test "$program_prefix" != NONE &&
1224 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1225 # Use a double $ so make ignores it.
1226 test "$program_suffix" != NONE &&
1227 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1228 # Double any \ or $. echo might interpret backslashes.
1229 # By default was `s,x,x', remove it
if useless.
1230 cat <<\_ACEOF
>conftest.
sed
1231 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1233 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1237 lispdir
='${datadir}/emacs/${version}/lisp'
1238 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1239 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1240 lisppath
='${locallisppath}:${lispdir}'
1241 etcdir
='${datadir}/emacs/${version}/etc'
1242 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1243 docdir
='${datadir}/emacs/${version}/etc'
1247 # Check whether --with-game-dir or --without-game-dir was given.
1248 if test "${with_game_dir+set}" = set; then
1249 withval
="$with_game_dir"
1254 if test "$gamedir" = yes; then
1255 gamedir
="${localstatedir}/games/emacs"
1257 eval tgamedir
=\"$gamedir\"
1258 if test "$gamedir" != no
; then
1260 cat >>confdefs.h
<<_ACEOF
1261 #define HAVE_SHARED_GAME_DIR "$tgamedir"
1268 # Check whether --with-game-user or --without-game-user was given.
1269 if test "${with_game_user+set}" = set; then
1270 withval
="$with_game_user"
1275 # Check whether --with-gcc or --without-gcc was given.
1276 if test "${with_gcc+set}" = set; then
1281 # Check whether --with-pop or --without-pop was given.
1282 if test "${with_pop+set}" = set; then
1284 if test "$withval" = yes; then
1285 cat >>confdefs.h
<<\_ACEOF
1286 #define MAIL_USE_POP 1
1292 cat >>confdefs.h
<<\_ACEOF
1293 #define MAIL_USE_POP 1
1299 # Check whether --with-kerberos or --without-kerberos was given.
1300 if test "${with_kerberos+set}" = set; then
1301 withval
="$with_kerberos"
1302 cat >>confdefs.h
<<\_ACEOF
1309 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1310 if test "${with_kerberos5+set}" = set; then
1311 withval
="$with_kerberos5"
1312 if test "${with_kerberos5+set}" = set; then
1313 if test "${with_kerberos+set}" != set; then
1315 cat >>confdefs.h
<<\_ACEOF
1322 cat >>confdefs.h
<<\_ACEOF
1328 # Check whether --with-hesiod or --without-hesiod was given.
1329 if test "${with_hesiod+set}" = set; then
1330 withval
="$with_hesiod"
1332 cat >>confdefs.h
<<\_ACEOF
1339 # Check whether --with-sound or --without-sound was given.
1340 if test "${with_sound+set}" = set; then
1341 withval
="$with_sound"
1346 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1347 if test "${with_x_toolkit+set}" = set; then
1348 withval
="$with_x_toolkit"
1349 case "${withval}" in
1350 y | ye |
yes ) val
=athena
;;
1352 l | lu | luc | luci | lucid
) val
=lucid
;;
1353 a |
at | ath | athe | athen | athena
) val
=athena
;;
1354 m | mo | mot | moti | motif
) val
=motif
;;
1356 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1357 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
1358 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1359 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1360 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
1361 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1362 { (exit 1); exit 1; }; }
1369 # Check whether --with-xpm or --without-xpm was given.
1370 if test "${with_xpm+set}" = set; then
1375 # Check whether --with-jpeg or --without-jpeg was given.
1376 if test "${with_jpeg+set}" = set; then
1377 withval
="$with_jpeg"
1381 # Check whether --with-tiff or --without-tiff was given.
1382 if test "${with_tiff+set}" = set; then
1383 withval
="$with_tiff"
1387 # Check whether --with-gif or --without-gif was given.
1388 if test "${with_gif+set}" = set; then
1393 # Check whether --with-png or --without-png was given.
1394 if test "${with_png+set}" = set; then
1399 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1400 if test "${with_toolkit_scroll_bars+set}" = set; then
1401 withval
="$with_toolkit_scroll_bars"
1405 # Check whether --with-xim or --without-xim was given.
1406 if test "${with_xim+set}" = set; then
1411 # Check whether --with-carbon or --without-carbon was given.
1412 if test "${with_carbon+set}" = set; then
1413 withval
="$with_carbon"
1417 #### Make srcdir absolute, if it isn't already. It's important to
1418 #### avoid running the path through pwd unnecessarily, since pwd can
1419 #### give you automounter prefixes, which can go away. We do all this
1420 #### so Emacs can find its files when run uninstalled.
1421 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1426 ## We may be able to use the $PWD environment variable to make this
1427 ## absolute. But sometimes PWD is inaccurate.
1428 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1429 ## but that tested only for a well-formed and valid PWD,
1430 ## it did not object when PWD was well-formed and valid but just wrong.
1431 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1435 srcdir
="`(cd ${srcdir}; pwd)`"
1438 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
1441 #### Check if the source directory already has a configured system in it.
1442 if test `pwd` != `(cd ${srcdir} && pwd)` \
1443 && test -f "${srcdir}/src/config.h" ; then
1444 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1445 as a build directory right now; it has been configured in its own
1446 right. To configure in another directory as well, you MUST
1447 use GNU make. If you do not have GNU make, then you must
1448 now do \`make distclean' in ${srcdir},
1449 and then run $0 again." >&5
1450 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1451 as a build directory right now; it has been configured in its own
1452 right. To configure in another directory as well, you MUST
1453 use GNU make. If you do not have GNU make, then you must
1454 now do \`make distclean' in ${srcdir},
1455 and then run $0 again." >&2;}
1457 extrasub
='/^VPATH[ ]*=/c\
1458 vpath %.c $(srcdir)\
1459 vpath %.h $(srcdir)\
1460 vpath %.y $(srcdir)\
1461 vpath %.l $(srcdir)\
1462 vpath %.s $(srcdir)\
1463 vpath %.in $(srcdir)\
1464 vpath %.texi $(srcdir)'
1467 #### Given the configuration name, set machfile and opsysfile to the
1468 #### names of the m/*.h and s/*.h files we should use.
1470 ### Canonicalize the configuration name.
1473 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1474 if test -f $ac_dir/install-sh
; then
1476 ac_install_sh
="$ac_aux_dir/install-sh -c"
1478 elif test -f $ac_dir/install.sh
; then
1480 ac_install_sh
="$ac_aux_dir/install.sh -c"
1482 elif test -f $ac_dir/shtool
; then
1484 ac_install_sh
="$ac_aux_dir/shtool install -c"
1488 if test -z "$ac_aux_dir"; then
1489 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1490 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1491 { (exit 1); exit 1; }; }
1493 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1494 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1495 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1497 # Make sure we can run config.sub.
1498 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1499 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1500 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1501 { (exit 1); exit 1; }; }
1503 echo "$as_me:$LINENO: checking build system type" >&5
1504 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1505 if test "${ac_cv_build+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1508 ac_cv_build_alias
=$build_alias
1509 test -z "$ac_cv_build_alias" &&
1510 ac_cv_build_alias
=`$ac_config_guess`
1511 test -z "$ac_cv_build_alias" &&
1512 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1513 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1514 { (exit 1); exit 1; }; }
1515 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1516 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1517 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1518 { (exit 1); exit 1; }; }
1521 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1522 echo "${ECHO_T}$ac_cv_build" >&6
1524 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1525 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1526 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1529 echo "$as_me:$LINENO: checking host system type" >&5
1530 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1531 if test "${ac_cv_host+set}" = set; then
1532 echo $ECHO_N "(cached) $ECHO_C" >&6
1534 ac_cv_host_alias
=$host_alias
1535 test -z "$ac_cv_host_alias" &&
1536 ac_cv_host_alias
=$ac_cv_build_alias
1537 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1538 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1539 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1540 { (exit 1); exit 1; }; }
1543 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1544 echo "${ECHO_T}$ac_cv_host" >&6
1546 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1547 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1548 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1552 configuration
=${host_alias-$host}
1555 ### If you add support for a new configuration, add code to this
1556 ### switch statement to recognize your configuration name and select
1557 ### the appropriate operating system and machine description files.
1559 ### You would hope that you could choose an m/*.h file pretty much
1560 ### based on the machine portion of the configuration name, and an s-
1561 ### file based on the operating system portion. However, it turns out
1562 ### that each m/*.h file is pretty manufacturer-specific - for
1563 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1564 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1565 ### machines. So we basically have to have a special case for each
1566 ### configuration name.
1568 ### As far as handling version numbers on operating systems is
1569 ### concerned, make sure things will fail in a fixable way. If
1570 ### /etc/MACHINES doesn't say anything about version numbers, be
1571 ### prepared to handle anything reasonably. If version numbers
1572 ### matter, be sure /etc/MACHINES says something about it.
1574 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1575 ### "System V Release 4"; he writes, "The old convention encouraged
1576 ### confusion between `system' and `release' levels'."
1578 machine
='' opsys
='' unported
=no
1579 case "${canonical}" in
1584 case "${canonical}" in
1585 alpha
*-*-freebsd*) machine
=alpha
;;
1586 i
[3456]86-*-freebsd*) machine
=intel386
;;
1593 case "${canonical}" in
1594 alpha
*-*-netbsd*) machine
=alpha
;;
1595 i
[3456]86-*-netbsd*) machine
=intel386
;;
1597 # This is somewhat bogus.
1598 machine
=hp9000s300
;;
1599 powerpc-apple-netbsd
*) machine
=macppc
;;
1600 mips-
*-netbsd*) machine
=pmax
;;
1601 mipsel-
*-netbsd*) machine
=pmax
;;
1602 ns32k-
*-netbsd*) machine
=ns32000
;;
1603 powerpc-
*-netbsd*) machine
=macppc
;;
1604 sparc
*-*-netbsd*) machine
=sparc
;;
1605 vax-
*-netbsd*) machine
=vax
;;
1606 arm-
*-netbsd*) machine
=arm
;;
1613 case "${canonical}" in
1614 alpha
*-*-openbsd*) machine
=alpha
;;
1615 i386-
*-openbsd*) machine
=intel386
;;
1616 m68k-
*-openbsd*) machine
=hp9000s300
;;
1617 mipsel-
*-openbsd*) machine
=pmax
;;
1618 ns32k-
*-openbsd*) machine
=ns32000
;;
1619 sparc-
*-openbsd*) machine
=sparc
;;
1620 vax-
*-openbsd*) machine
=vax
;;
1625 arm-acorn-riscix1.1
* )
1626 machine
=acorn opsys
=riscix1-1
1628 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1629 ## This name is riscix12 instead of riscix1.2
1630 ## to avoid a file name conflict on MSDOS.
1631 machine
=acorn opsys
=riscix12
1637 case "${canonical}" in
1638 i
[345]86-*-bsdi*) machine
=intel386
;;
1639 sparc-
*-bsdi*) machine
=sparc
;;
1640 powerpc-
*-bsdi*) machine
=macppc
;;
1642 case "${canonical}" in
1643 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1644 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1645 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1646 *-*-bsdi3* ) opsys
=bsdos3
;;
1647 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1652 ## Strictly speaking, we need the version of the alliant operating
1653 ## system to choose the right machine file, but currently the
1654 ## configuration name doesn't tell us enough to choose the right
1655 ## one; we need to give alliants their own operating system name to
1656 ## do this right. When someone cares, they can help us.
1658 machine
=alliant4 opsys
=bsd4-2
1661 machine
=alliant-2800 opsys
=bsd4-3
1664 ## Alpha (DEC) machines.
1666 machine
=alpha opsys
=osf1
1667 # This is needed to find X11R6.1 libraries for certain tests.
1668 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1669 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1670 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1671 # due to non-traditional preprocessing with the current compiler
1672 # defaults. OSF 4 can also have that compiler version, and there
1673 # seems always to have been a usable /usr/bin/cpp.
1674 NON_GNU_CPP
=/usr
/bin
/cpp
1675 case "${canonical}" in
1676 alpha
*-dec-osf[5-9]*)
1681 alpha
*-*-linux-gnu* )
1682 machine
=alpha opsys
=gnu-linux
1686 machine
=arm opsys
=gnu-linux
1691 machine
=macppc opsys
=gnu-linux
1696 machine
=altos opsys
=usg5-2
1701 machine
=amdahl opsys
=usg5-2-2
1704 ## Apollo, Domain/OS
1706 machine
=apollo opsys
=bsd4-3
1709 ## AT&T 3b2, 3b5, 3b15, 3b20
1711 machine
=att3b opsys
=usg5-2-2
1714 ## AT&T 3b1 - The Mighty Unix PC!
1716 machine
=7300 opsys
=usg5-2-2
1721 machine
=ibmrs6000 opsys
=aix3-2
1726 machine
=dpx2 opsys
=usg5-3
1731 machine
=sps7 opsys
=usg5-2
1734 ## CCI 5/32, 6/32 -- see "Tahoe".
1737 ## I don't know what configuration name to use for this; config.sub
1738 ## doesn't seem to know anything about it. Hey, Celerity users, get
1739 ## in touch with us!
1740 celerity-celerity-bsd
* )
1741 machine
=celerity opsys
=bsd4-2
1745 ## What operating systems does this chip run that Emacs has been
1749 ## We'll use the catch-all code at the bottom to guess the
1750 ## operating system.
1754 mips-compaq-nonstopux
* )
1755 machine
=nonstopux opsys
=nonstopux
1759 *-convex-bsd* |
*-convex-convexos* )
1760 machine
=convex opsys
=bsd4-3
1761 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1762 NON_GNU_CPP
="cc -E -P"
1766 i
[3456]86-cubix-sysv* )
1767 machine
=intel386 opsys
=usg5-3
1771 cydra
*-cydrome-sysv* )
1772 machine
=cydra5 opsys
=usg5-3
1775 ## Data General AViiON Machines
1776 ## DG changed naming conventions with the release of 5.4.4.10, they
1777 ## dropped the initial 5.4 but left the intervening R. Because of the
1778 ## R this shouldn't conflict with older versions of the OS (which I
1779 ## think were named like dgux4.*). In addition, DG new AViiONs series
1780 ## uses either Motorola M88k or Intel Pentium CPUs.
1781 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1782 machine
=aviion opsys
=dgux4
1784 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1785 ## This name is dgux5-4-3 instead of dgux5-4r3
1786 ## to avoid a file name conflict on MSDOS.
1787 machine
=aviion opsys
=dgux5-4-3
1789 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1790 machine
=aviion opsys
=dgux5-4r2
1793 machine
=aviion opsys
=dgux
1796 ## Data General AViiON Intel (x86) Machines
1797 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1798 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1799 i
[345]86-dg-dguxR4* )
1800 machine
=aviion-intel opsys
=dgux4
1804 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1805 machine
=pmax opsys
=bsd4-2
1807 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1808 machine
=pmax opsys
=bsd4-3
1811 machine
=pmax opsys
=ultrix4-3
1814 machine
=pmax opsys
=osf1
1816 mips-dec-mach_bsd4.3
* )
1817 machine
=pmax opsys
=mach-bsd4-3
1820 ## Motorola Delta machines
1821 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1822 machine
=delta opsys
=usg5-3
1823 if test -z "`type gnucc | grep 'not found'`"
1825 if test -s /etc
/167config
1826 then CC
="gnucc -m68040"
1827 else CC
="gnucc -m68881"
1830 if test -z "`type gcc | grep 'not found'`"
1836 m88k-motorola-sysv4
* )
1837 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1838 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1839 # I hope there are not other 4.0 versions for this machine
1840 # which really need usg5-4 instead.
1841 machine
=delta88k opsys
=usg5-4-2
1843 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1844 machine
=delta88k opsys
=usg5-3
1849 machine
=dual opsys
=usg5-2
1851 m68
*-dual-uniplus* )
1852 machine
=dual opsys
=unipl5-2
1857 machine
=elxsi opsys
=usg5-2
1862 machine
=ns16000 opsys
=umax
1865 ## The GEC 63 - apparently, this port isn't really finished yet.
1866 # I'm sure we finished off the last of the machines, though. -- fx
1868 ## Gould Power Node and NP1
1870 machine
=gould opsys
=bsd4-2
1873 machine
=gould opsys
=bsd4-3
1876 machine
=gould-np1 opsys
=bsd4-3
1879 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1880 ## as far as Emacs is concerned).
1882 # Build needs to be different on 7.0 and later releases
1883 case "`uname -r`" in
1884 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
1885 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
1887 NON_GNU_CPP
="/lib/cpp"
1889 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1891 machine
=nh3000 opsys
=cxux
1893 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1894 powerpc-harris-powerunix
)
1895 machine
=nh6000 opsys
=powerunix
1896 NON_GNU_CPP
="cc -Xo -E -P"
1898 ## SR2001/SR2201 running HI-UX/MPP
1899 hppa1.1
-hitachi-hiuxmpp* )
1900 machine
=sr2k opsys
=hiuxmpp
1902 hppa1.1
-hitachi-hiuxwe2* )
1903 machine
=sr2k opsys
=hiuxwe2
1906 xps
*-honeywell-sysv* )
1907 machine
=xps100 opsys
=usg5-2
1910 ## HP 9000 series 200 or 300
1912 machine
=hp9000s300 opsys
=bsd4-3
1914 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1916 case "`uname -r`" in
1917 ## Someone's system reports A.B8.05 for this.
1918 ## I wonder what other possibilities there are.
1919 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1920 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1921 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
1922 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
1923 *) machine
=hp9000s300 opsys
=hpux
;;
1927 ## HP 9000 series 700 and 800, running HP/UX
1929 machine
=hp800 opsys
=hpux
1932 machine
=hp800 opsys
=hpux8
1934 hppa
*-hp-hpux9shr* )
1935 machine
=hp800 opsys
=hpux9shr
1938 machine
=hp800 opsys
=hpux9
1941 machine
=hp800 opsys
=hpux10
1943 hppa
*-hp-hpux1[1-9]* )
1944 machine
=hp800 opsys
=hpux11
1947 hppa
*-*-linux-gnu* )
1948 machine
=hp800 opsys
=gnu-linux
1951 ## HP 9000 series 700 and 800, running HP/UX
1953 ## Cross-compilation? Nah!
1954 case "`uname -r`" in
1955 ## Someone's system reports A.B8.05 for this.
1956 ## I wonder what other possibilities there are.
1957 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
1958 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
1959 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
1960 *) machine
=hp800 opsys
=hpux10
;;
1964 machine
=hp800 opsys
=nextstep
1969 machine
=orion opsys
=bsd4-2
1971 clipper-orion-bsd
* )
1972 machine
=orion105 opsys
=bsd4-2
1976 i
[3456]86-ibm-aix1.1
* )
1977 machine
=ibmps2-aix opsys
=usg5-2-2
1979 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
1980 machine
=ibmps2-aix opsys
=usg5-3
1983 machine
=ibm370aix opsys
=usg5-3
1986 machine
=ibms390 opsys
=gnu-linux
1988 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
1989 machine
=ibmrs6000 opsys
=aix3-1
1991 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
1992 machine
=ibmrs6000 opsys
=aix3-2-5
1994 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
1995 machine
=ibmrs6000 opsys
=aix4-1
1997 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
1998 machine
=ibmrs6000 opsys
=aix4-2
2000 rs6000-ibm-aix5.1
* | powerpc-ibm-aix5.1
* )
2001 machine
=ibmrs6000 opsys
=aix4-2
2003 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2004 machine
=ibmrs6000 opsys
=aix4
2006 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2007 machine
=ibmrs6000 opsys
=aix4-1
2009 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2010 machine
=ibmrs6000 opsys
=aix3-2
2013 machine
=ibmrt opsys
=bsd4-3
2016 machine
=ibmrt opsys
=bsd4-2
2019 machine
=ibmrt opsys
=bsd4-3
2022 machine
=ibmrt opsys
=bsd4-2
2025 machine
=ibmrt opsys
=bsd4-3
2028 machine
=ibmrt opsys
=bsd4-3
2031 machine
=ibmrt-aix opsys
=usg5-2-2
2034 ## Integrated Solutions `Optimum V'
2036 machine
=isi-ov opsys
=bsd4-2
2039 machine
=isi-ov opsys
=bsd4-3
2042 ## Intel 386 machines where we do care about the manufacturer
2043 i
[3456]86-intsys-sysv* )
2044 machine
=is386 opsys
=usg5-2-2
2048 i
[3456]86-prime-sysv* )
2049 machine
=i386 opsys
=usg5-3
2052 ## Sequent Symmetry running Dynix
2053 i
[3456]86-sequent-bsd* )
2054 machine
=symmetry opsys
=bsd4-3
2057 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2058 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2059 machine
=sequent-ptx opsys
=ptx4
2060 NON_GNU_CPP
=/lib
/cpp
2063 ## Sequent Symmetry running DYNIX/ptx
2064 ## Use the old cpp rather than the newer ANSI one.
2065 i
[3456]86-sequent-ptx* )
2066 machine
=sequent-ptx opsys
=ptx
2067 NON_GNU_CPP
="/lib/cpp"
2070 ## ncr machine running svr4.3.
2071 i
[3456]86-ncr-sysv4.3
)
2072 machine
=ncr386 opsys
=usg5-4-3
2075 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2076 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2077 i
[3456]86-ncr-sysv* )
2078 machine
=ncr386 opsys
=usg5-4-2
2081 ## Intel Paragon OSF/1
2083 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2088 machine
=i860 opsys
=usg5-4
2089 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2090 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2093 ## Macintosh PowerPC
2094 powerpc
*-*-linux-gnu* )
2095 machine
=macppc opsys
=gnu-linux
2098 ## Masscomp machines
2099 m68
*-masscomp-rtu* )
2100 machine
=masscomp opsys
=rtu
2103 ## Megatest machines
2104 m68
*-megatest-bsd* )
2105 machine
=mega68 opsys
=bsd4-2
2108 ## Workstations sold by MIPS
2109 ## This is not necessarily all workstations using the MIPS processor -
2110 ## Irises are produced by SGI, and DECstations by DEC.
2112 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2113 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2114 ## it gives for choosing between the alternatives seems to be "Use
2115 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2116 ## the BSD world." I'll assume that these are instructions for
2117 ## handling two odd situations, and that every other situation
2118 ## should use mips.h and usg5-2-2, they being listed first.
2121 ## Fall through to the general code at the bottom to decide on the OS.
2123 mips-mips-riscos4
* )
2124 machine
=mips4 opsys
=bsd4-3
2125 NON_GNU_CC
="cc -systype bsd43"
2126 NON_GNU_CPP
="cc -systype bsd43 -E"
2128 mips-mips-riscos5
* )
2129 machine
=mips4 opsys
=riscos5
2130 NON_GNU_CC
="cc -systype bsd43"
2131 NON_GNU_CPP
="cc -systype bsd43 -E"
2134 machine
=mips opsys
=bsd4-3
2137 machine
=mips opsys
=usg5-2-2
2141 m68
*-next-* | m68k-
*-nextstep* )
2142 machine
=m68k opsys
=nextstep
2145 ## The complete machine from National Semiconductor
2147 machine
=ns32000 opsys
=usg5-2
2151 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2152 machine
=tower32 opsys
=usg5-2-2
2154 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2155 machine
=tower32v3 opsys
=usg5-3
2160 machine
=ews4800 opsys
=ux4800
2163 ## Nixdorf Targon 31
2164 m68
*-nixdorf-sysv* )
2165 machine
=targon31 opsys
=usg5-2-2
2170 machine
=nu opsys
=usg5-2
2175 machine
=plexus opsys
=usg5-2
2178 ## PowerPC reference platform
2179 powerpcle-
*-solaris2* )
2185 ## I don't really have any idea what sort of processor the Pyramid has,
2186 ## so I'm assuming it is its own architecture.
2187 pyramid-pyramid-bsd
* )
2188 machine
=pyramid opsys
=bsd4-2
2192 ns32k-sequent-bsd4.2
* )
2193 machine
=sequent opsys
=bsd4-2
2195 ns32k-sequent-bsd4.3
* )
2196 machine
=sequent opsys
=bsd4-3
2200 mips-siemens-sysv
* | mips-sni-sysv
*)
2201 machine
=mips-siemens opsys
=usg5-4
2202 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2203 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2206 ## Silicon Graphics machines
2207 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2209 machine
=irist opsys
=iris3-5
2211 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2212 machine
=irist opsys
=iris3-6
2216 machine
=iris4d opsys
=irix3-3
2219 machine
=iris4d opsys
=irix4-0
2222 machine
=iris4d opsys
=irix6-5
2223 # Without defining _LANGUAGE_C, things get masked out in the headers
2224 # so that, for instance, grepping for `free' in stdlib.h fails and
2225 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2226 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2227 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2230 machine
=iris4d opsys
=irix6-0
2231 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2232 # but presumably it does no harm.
2233 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2234 # -32 probably isn't necessary in later v.6s -- anyone know which?
2235 NON_GCC_TEST_OPTIONS
=-32
2237 mips-sgi-irix5.
[01]* )
2238 machine
=iris4d opsys
=irix5-0
2240 mips-sgi-irix5
* | mips-sgi-irix
* )
2241 machine
=iris4d opsys
=irix5-2
2246 machine
=news opsys
=bsd4-2
2249 machine
=news opsys
=bsd4-3
2251 m68
*-sony-newsos3* | m68
*-sony-news3*)
2252 machine
=news opsys
=bsd4-3
2254 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2255 machine
=news-risc opsys
=bsd4-3
2257 mips-sony-newsos6
* )
2258 machine
=news-r6 opsys
=newsos6
2261 machine
=news-risc opsys
=newsos5
2266 machine
=stride opsys
=usg5-2
2270 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2271 machine
=sparc opsys
=gnu-linux
2274 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2275 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2276 | rs6000-
*-solaris2*)
2277 case "${canonical}" in
2278 m68
*-sunos1* ) machine
=sun1
;;
2279 m68
*-sunos2* ) machine
=sun2
;;
2280 m68
* ) machine
=sun3
;;
2281 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2282 i
[3456]86-*-* ) machine
=intel386
;;
2283 powerpcle
* ) machine
=powerpcle
;;
2284 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2285 sparc
* ) machine
=sparc
;;
2288 case "${canonical}" in
2289 ## The Sun386 didn't get past 4.0.
2290 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2291 *-sunos4.0
* ) opsys
=sunos4-0
;;
2292 *-sunos4.1.
[3-9]*noshare
)
2293 ## This name is sunos413 instead of sunos4-1-3
2294 ## to avoid a file name conflict on MSDOS.
2296 NON_GNU_CPP
=/usr
/lib
/cpp
2297 NON_GCC_TEST_OPTIONS
=-Bstatic
2298 GCC_TEST_OPTIONS
=-static
2300 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2302 NON_GNU_CPP
=/usr
/lib
/cpp
2304 *-sunos4* |
*-sunos )
2306 NON_GCC_TEST_OPTIONS
=-Bstatic
2307 GCC_TEST_OPTIONS
=-static
2309 *-sunos5.3
* |
*-solaris2.3
* )
2311 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2313 *-sunos5.4
* |
*-solaris2.4
* )
2315 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2318 *-sunos5.5
* |
*-solaris2.5
* )
2320 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2323 *-sunos5* |
*-solaris* )
2325 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2329 ## Watch out for a compiler that we know will not work.
2330 case "${canonical}" in
2331 *-solaris* |
*-sunos5* )
2332 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2333 ## /usr/ucb/cc doesn't work;
2334 ## we should find some other compiler that does work.
2342 machine
=sparc opsys
=nextstep
2346 m68
*-tadpole-sysv* )
2347 machine
=tad68k opsys
=usg5-3
2351 tahoe-tahoe-bsd4.2
* )
2352 machine
=tahoe opsys
=bsd4-2
2354 tahoe-tahoe-bsd4.3
* )
2355 machine
=tahoe opsys
=bsd4-3
2358 ## Tandem Integrity S2
2360 machine
=tandem-s2 opsys
=usg5-3
2364 m88k-tektronix-sysv3
* )
2365 machine
=tekxd88 opsys
=usg5-3
2368 ## Tektronix 16000 box (6130?)
2369 ns16k-tektronix-bsd
* )
2370 machine
=ns16000 opsys
=bsd4-2
2373 ## src/m/tek4300.h hints that this is a m68k machine.
2374 m68
*-tektronix-bsd* )
2375 machine
=tek4300 opsys
=bsd4-3
2379 ## We seem to have lost the machine-description file titan.h!
2381 machine
=titan opsys
=usg5-3
2384 ## Ustation E30 (SS5E)
2385 m68
*-unisys-uniplus* )
2386 machine
=ustation opsystem
=unipl5-2
2392 case "${canonical}" in
2393 *-bsd4.1
* ) opsys
=bsd4-1
;;
2394 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2395 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2396 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2397 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2398 *-vms* ) opsys
=vms
;;
2404 ns16k-whitechapel-
* )
2406 ## We don't know what sort of OS runs on these; we'll let the
2407 ## operating system guessing code below try.
2412 machine
=wicat opsys
=usg5-2
2417 machine
=ia64 opsys
=gnu-linux
2420 ## Intel 386 machines where we don't care about the manufacturer
2423 case "${canonical}" in
2424 *-lynxos* ) opsys
=lynxos
;;
2425 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2426 *-isc2.2
* ) opsys
=isc2-2
;;
2427 *-isc4.0
* ) opsys
=isc4-0
;;
2428 *-isc4.
* ) opsys
=isc4-1
2429 GCC_TEST_OPTIONS
=-posix
2430 NON_GCC_TEST_OPTIONS
=-Xp
2432 *-isc* ) opsys
=isc3-0
;;
2433 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2434 *-esix* ) opsys
=esix
;;
2435 *-xenix* ) opsys
=xenix
;;
2436 *-linux-gnu* ) opsys
=gnu-linux
;;
2437 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2438 *-sco3.2v5
* ) opsys
=sco5
2439 NON_GNU_CPP
=/lib
/cpp
2440 # Prevent -belf from being passed to $CPP.
2441 # /lib/cpp does not accept it.
2442 OVERRIDE_CPPFLAGS
=" "
2444 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2445 *-386bsd* ) opsys
=386bsd
;;
2446 *-nextstep* ) opsys
=nextstep
;;
2447 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2451 ## m68k Linux-based GNU system
2453 machine
=m68k opsys
=gnu-linux
2456 ## Mips Linux-based GNU system
2458 machine
=mips opsys
=gnu-linux
2462 sparc-fujitsu-sysv4
* )
2463 machine
=sparc opsys
=uxpds
2464 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2469 f301-fujitsu-uxpv4.1
)
2470 machine
=f301 opsys
=uxpv
2473 ## Darwin / Mac OS X
2474 powerpc-apple-darwin
* )
2475 machine
=powermac opsys
=darwin
2476 # Define CPP as follows to make autoconf work correctly.
2477 CPP
="cc -E -traditional-cpp"
2485 ### If the code above didn't choose an operating system, just choose
2486 ### an operating system based on the configuration name. You really
2487 ### only want to use this when you have no idea what the right
2488 ### operating system is; if you know what operating systems a machine
2489 ### runs, it's cleaner to make it explicit in the case statement
2491 if test x
"${opsys}" = x
; then
2492 case "${canonical}" in
2493 *-gnu* ) opsys
=gnu
;;
2494 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2495 *-bsd4.2
) opsys
=bsd4-2
;;
2496 *-bsd4.3
) opsys
=bsd4-3
;;
2497 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2498 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2499 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2500 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2501 *-sysv4.2uw
* ) opsys
=unixware
;;
2502 *-sysv4.1
* |
*-sysvr4.1
* )
2503 NON_GNU_CPP
=/usr
/lib
/cpp
2505 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2506 if [ x
$NON_GNU_CPP = x
]; then
2507 if [ -f /usr
/ccs
/lib
/cpp
]; then
2508 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2510 NON_GNU_CPP
=/lib
/cpp
2514 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2522 if test $unported = yes; then
2523 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2524 Check \`etc/MACHINES' for recognized configuration names." >&5
2525 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2526 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2527 { (exit 1); exit 1; }; }
2530 machfile
="m/${machine}.h"
2531 opsysfile
="s/${opsys}.h"
2534 #### Choose a compiler.
2535 test -n "$CC" && cc_specified
=yes
2537 # Save the value of CFLAGS that the user specified.
2538 SPECIFIED_CFLAGS
="$CFLAGS"
2541 "yes" ) CC
="gcc" GCC
=yes ;;
2542 "no" ) : ${CC=cc} ;;
2546 ac_cpp
='$CPP $CPPFLAGS'
2547 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2548 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2549 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2550 if test -n "$ac_tool_prefix"; then
2551 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2552 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2553 echo "$as_me:$LINENO: checking for $ac_word" >&5
2554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2555 if test "${ac_cv_prog_CC+set}" = set; then
2556 echo $ECHO_N "(cached) $ECHO_C" >&6
2558 if test -n "$CC"; then
2559 ac_cv_prog_CC
="$CC" # Let the user override the test.
2561 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2565 test -z "$as_dir" && as_dir
=.
2566 for ac_exec_ext
in '' $ac_executable_extensions; do
2567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2568 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2578 if test -n "$CC"; then
2579 echo "$as_me:$LINENO: result: $CC" >&5
2580 echo "${ECHO_T}$CC" >&6
2582 echo "$as_me:$LINENO: result: no" >&5
2583 echo "${ECHO_T}no" >&6
2587 if test -z "$ac_cv_prog_CC"; then
2589 # Extract the first word of "gcc", so it can be a program name with args.
2590 set dummy gcc
; ac_word
=$2
2591 echo "$as_me:$LINENO: checking for $ac_word" >&5
2592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2593 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2594 echo $ECHO_N "(cached) $ECHO_C" >&6
2596 if test -n "$ac_ct_CC"; then
2597 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2599 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2603 test -z "$as_dir" && as_dir
=.
2604 for ac_exec_ext
in '' $ac_executable_extensions; do
2605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2606 ac_cv_prog_ac_ct_CC
="gcc"
2607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2615 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2616 if test -n "$ac_ct_CC"; then
2617 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2618 echo "${ECHO_T}$ac_ct_CC" >&6
2620 echo "$as_me:$LINENO: result: no" >&5
2621 echo "${ECHO_T}no" >&6
2629 if test -z "$CC"; then
2630 if test -n "$ac_tool_prefix"; then
2631 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2632 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2633 echo "$as_me:$LINENO: checking for $ac_word" >&5
2634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2635 if test "${ac_cv_prog_CC+set}" = set; then
2636 echo $ECHO_N "(cached) $ECHO_C" >&6
2638 if test -n "$CC"; then
2639 ac_cv_prog_CC
="$CC" # Let the user override the test.
2641 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2645 test -z "$as_dir" && as_dir
=.
2646 for ac_exec_ext
in '' $ac_executable_extensions; do
2647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2648 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2658 if test -n "$CC"; then
2659 echo "$as_me:$LINENO: result: $CC" >&5
2660 echo "${ECHO_T}$CC" >&6
2662 echo "$as_me:$LINENO: result: no" >&5
2663 echo "${ECHO_T}no" >&6
2667 if test -z "$ac_cv_prog_CC"; then
2669 # Extract the first word of "cc", so it can be a program name with args.
2670 set dummy cc
; ac_word
=$2
2671 echo "$as_me:$LINENO: checking for $ac_word" >&5
2672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2673 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2674 echo $ECHO_N "(cached) $ECHO_C" >&6
2676 if test -n "$ac_ct_CC"; then
2677 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2679 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2683 test -z "$as_dir" && as_dir
=.
2684 for ac_exec_ext
in '' $ac_executable_extensions; do
2685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2686 ac_cv_prog_ac_ct_CC
="cc"
2687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2695 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2696 if test -n "$ac_ct_CC"; then
2697 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2698 echo "${ECHO_T}$ac_ct_CC" >&6
2700 echo "$as_me:$LINENO: result: no" >&5
2701 echo "${ECHO_T}no" >&6
2710 if test -z "$CC"; then
2711 # Extract the first word of "cc", so it can be a program name with args.
2712 set dummy cc
; ac_word
=$2
2713 echo "$as_me:$LINENO: checking for $ac_word" >&5
2714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2715 if test "${ac_cv_prog_CC+set}" = set; then
2716 echo $ECHO_N "(cached) $ECHO_C" >&6
2718 if test -n "$CC"; then
2719 ac_cv_prog_CC
="$CC" # Let the user override the test.
2722 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2726 test -z "$as_dir" && as_dir
=.
2727 for ac_exec_ext
in '' $ac_executable_extensions; do
2728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2729 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2730 ac_prog_rejected
=yes
2734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2740 if test $ac_prog_rejected = yes; then
2741 # We found a bogon in the path, so make sure we never use it.
2742 set dummy
$ac_cv_prog_CC
2744 if test $# != 0; then
2745 # We chose a different compiler from the bogus one.
2746 # However, it has the same basename, so the bogon will be chosen
2747 # first if we set CC to just the basename; use the full file name.
2749 set dummy
"$as_dir/$ac_word" ${1+"$@"}
2757 if test -n "$CC"; then
2758 echo "$as_me:$LINENO: result: $CC" >&5
2759 echo "${ECHO_T}$CC" >&6
2761 echo "$as_me:$LINENO: result: no" >&5
2762 echo "${ECHO_T}no" >&6
2766 if test -z "$CC"; then
2767 if test -n "$ac_tool_prefix"; then
2770 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2771 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2772 echo "$as_me:$LINENO: checking for $ac_word" >&5
2773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2774 if test "${ac_cv_prog_CC+set}" = set; then
2775 echo $ECHO_N "(cached) $ECHO_C" >&6
2777 if test -n "$CC"; then
2778 ac_cv_prog_CC
="$CC" # Let the user override the test.
2780 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2784 test -z "$as_dir" && as_dir
=.
2785 for ac_exec_ext
in '' $ac_executable_extensions; do
2786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2787 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2797 if test -n "$CC"; then
2798 echo "$as_me:$LINENO: result: $CC" >&5
2799 echo "${ECHO_T}$CC" >&6
2801 echo "$as_me:$LINENO: result: no" >&5
2802 echo "${ECHO_T}no" >&6
2805 test -n "$CC" && break
2808 if test -z "$CC"; then
2812 # Extract the first word of "$ac_prog", so it can be a program name with args.
2813 set dummy
$ac_prog; ac_word
=$2
2814 echo "$as_me:$LINENO: checking for $ac_word" >&5
2815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2816 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2817 echo $ECHO_N "(cached) $ECHO_C" >&6
2819 if test -n "$ac_ct_CC"; then
2820 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2822 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2826 test -z "$as_dir" && as_dir
=.
2827 for ac_exec_ext
in '' $ac_executable_extensions; do
2828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2829 ac_cv_prog_ac_ct_CC
="$ac_prog"
2830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2838 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2839 if test -n "$ac_ct_CC"; then
2840 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2841 echo "${ECHO_T}$ac_ct_CC" >&6
2843 echo "$as_me:$LINENO: result: no" >&5
2844 echo "${ECHO_T}no" >&6
2847 test -n "$ac_ct_CC" && break
2856 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2857 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2858 { (exit 1); exit 1; }; }
2860 # Provide some information about the compiler.
2861 echo "$as_me:$LINENO:" \
2862 "checking for C compiler version" >&5
2863 ac_compiler
=`set X $ac_compile; echo $2`
2864 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2865 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }
2869 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2870 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }
2874 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2875 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); }
2880 cat >conftest.
$ac_ext <<_ACEOF
2881 #line $LINENO "configure"
2882 #include "confdefs.h"
2884 #ifdef F77_DUMMY_MAIN
2888 int F77_DUMMY_MAIN() { return 1; }
2898 ac_clean_files_save
=$ac_clean_files
2899 ac_clean_files
="$ac_clean_files a.out a.exe"
2900 # Try to create an executable without -o first, disregard a.out.
2901 # It will help us diagnose broken compilers, and finding out an intuition
2903 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2904 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2905 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2906 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2907 (eval $ac_link_default) 2>&5
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }; then
2911 # Find the output, starting from the most likely. This scheme is
2912 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2915 # Be careful to initialize this variable, since it used to be cached.
2916 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2918 for ac_file
in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2919 ls a.out conftest 2>/dev/null;
2920 ls a.* conftest.* 2>/dev/null`; do
2922 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM
) ;;
2923 a.out
) # We found the default executable, but exeext='' is most
2926 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2927 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2934 echo "$as_me: failed program was:" >&5
2935 cat conftest.
$ac_ext >&5
2936 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2937 echo "$as_me: error: C compiler cannot create executables" >&2;}
2938 { (exit 77); exit 77; }; }
2941 ac_exeext
=$ac_cv_exeext
2942 echo "$as_me:$LINENO: result: $ac_file" >&5
2943 echo "${ECHO_T}$ac_file" >&6
2945 # Check the compiler produces executables we can run. If not, either
2946 # the compiler is broken, or we cross compile.
2947 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2948 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2949 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2950 # If not cross compiling, check that we can run a simple program.
2951 if test "$cross_compiling" != yes; then
2952 if { ac_try
='./$ac_file'
2953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); }; }; then
2960 if test "$cross_compiling" = maybe
; then
2963 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2964 If you meant to cross compile, use \`--host'." >&5
2965 echo "$as_me: error: cannot run C compiled programs.
2966 If you meant to cross compile, use \`--host'." >&2;}
2967 { (exit 1); exit 1; }; }
2971 echo "$as_me:$LINENO: result: yes" >&5
2972 echo "${ECHO_T}yes" >&6
2974 rm -f a.out a.exe conftest
$ac_cv_exeext
2975 ac_clean_files
=$ac_clean_files_save
2976 # Check the compiler produces executables we can run. If not, either
2977 # the compiler is broken, or we cross compile.
2978 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2979 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2980 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2981 echo "${ECHO_T}$cross_compiling" >&6
2983 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2984 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2986 (eval $ac_link) 2>&5
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); }; then
2990 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2991 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2992 # work properly (i.e., refer to `conftest.exe'), while it won't with
2994 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2996 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2997 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3004 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
3005 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
3006 { (exit 1); exit 1; }; }
3009 rm -f conftest
$ac_cv_exeext
3010 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3011 echo "${ECHO_T}$ac_cv_exeext" >&6
3013 rm -f conftest.
$ac_ext
3014 EXEEXT
=$ac_cv_exeext
3016 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3017 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3018 if test "${ac_cv_objext+set}" = set; then
3019 echo $ECHO_N "(cached) $ECHO_C" >&6
3021 cat >conftest.
$ac_ext <<_ACEOF
3022 #line $LINENO "configure"
3023 #include "confdefs.h"
3025 #ifdef F77_DUMMY_MAIN
3029 int F77_DUMMY_MAIN() { return 1; }
3039 rm -f conftest.o conftest.obj
3040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3041 (eval $ac_compile) 2>&5
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; then
3045 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3047 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
3048 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3053 echo "$as_me: failed program was:" >&5
3054 cat conftest.
$ac_ext >&5
3055 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
3056 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
3057 { (exit 1); exit 1; }; }
3060 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3062 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3063 echo "${ECHO_T}$ac_cv_objext" >&6
3064 OBJEXT
=$ac_cv_objext
3066 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3067 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3068 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3069 echo $ECHO_N "(cached) $ECHO_C" >&6
3071 cat >conftest.
$ac_ext <<_ACEOF
3072 #line $LINENO "configure"
3073 #include "confdefs.h"
3075 #ifdef F77_DUMMY_MAIN
3079 int F77_DUMMY_MAIN() { return 1; }
3092 rm -f conftest.
$ac_objext
3093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3094 (eval $ac_compile) 2>&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); } &&
3098 { ac_try
='test -s conftest.$ac_objext'
3099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; }; then
3106 echo "$as_me: failed program was:" >&5
3107 cat conftest.
$ac_ext >&5
3110 rm -f conftest.
$ac_objext conftest.
$ac_ext
3111 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3114 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3115 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3116 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3117 ac_test_CFLAGS
=${CFLAGS+set}
3118 ac_save_CFLAGS
=$CFLAGS
3120 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3121 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3122 if test "${ac_cv_prog_cc_g+set}" = set; then
3123 echo $ECHO_N "(cached) $ECHO_C" >&6
3125 cat >conftest.
$ac_ext <<_ACEOF
3126 #line $LINENO "configure"
3127 #include "confdefs.h"
3129 #ifdef F77_DUMMY_MAIN
3133 int F77_DUMMY_MAIN() { return 1; }
3143 rm -f conftest.
$ac_objext
3144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3145 (eval $ac_compile) 2>&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } &&
3149 { ac_try
='test -s conftest.$ac_objext'
3150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; }; then
3157 echo "$as_me: failed program was:" >&5
3158 cat conftest.
$ac_ext >&5
3161 rm -f conftest.
$ac_objext conftest.
$ac_ext
3163 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3164 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3165 if test "$ac_test_CFLAGS" = set; then
3166 CFLAGS
=$ac_save_CFLAGS
3167 elif test $ac_cv_prog_cc_g = yes; then
3168 if test "$GCC" = yes; then
3174 if test "$GCC" = yes; then
3180 # Some people use a C++ compiler to compile C. Since we use `exit',
3181 # in C++ we need to declare it. In case someone uses the same compiler
3182 # for both compiling C and C++ we need to have the C++ compiler decide
3183 # the declaration of exit, since it's the most demanding environment.
3184 cat >conftest.
$ac_ext <<_ACEOF
3189 rm -f conftest.
$ac_objext
3190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3191 (eval $ac_compile) 2>&5
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); } &&
3195 { ac_try
='test -s conftest.$ac_objext'
3196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }; }; then
3201 for ac_declaration
in \
3203 '#include <stdlib.h>' \
3204 'extern "C" void std::exit (int) throw (); using std::exit;' \
3205 'extern "C" void std::exit (int); using std::exit;' \
3206 'extern "C" void exit (int) throw ();' \
3207 'extern "C" void exit (int);' \
3210 cat >conftest.
$ac_ext <<_ACEOF
3211 #line $LINENO "configure"
3212 #include "confdefs.h"
3215 #ifdef F77_DUMMY_MAIN
3219 int F77_DUMMY_MAIN() { return 1; }
3229 rm -f conftest.
$ac_objext
3230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3231 (eval $ac_compile) 2>&5
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); } &&
3235 { ac_try
='test -s conftest.$ac_objext'
3236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); }; }; then
3243 echo "$as_me: failed program was:" >&5
3244 cat conftest.
$ac_ext >&5
3247 rm -f conftest.
$ac_objext conftest.
$ac_ext
3248 cat >conftest.
$ac_ext <<_ACEOF
3249 #line $LINENO "configure"
3250 #include "confdefs.h"
3252 #ifdef F77_DUMMY_MAIN
3256 int F77_DUMMY_MAIN() { return 1; }
3266 rm -f conftest.
$ac_objext
3267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3268 (eval $ac_compile) 2>&5
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); } &&
3272 { ac_try
='test -s conftest.$ac_objext'
3273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); }; }; then
3280 echo "$as_me: failed program was:" >&5
3281 cat conftest.
$ac_ext >&5
3283 rm -f conftest.
$ac_objext conftest.
$ac_ext
3286 if test -n "$ac_declaration"; then
3287 echo '#ifdef __cplusplus' >>confdefs.h
3288 echo $ac_declaration >>confdefs.h
3289 echo '#endif' >>confdefs.h
3293 echo "$as_me: failed program was:" >&5
3294 cat conftest.
$ac_ext >&5
3296 rm -f conftest.
$ac_objext conftest.
$ac_ext
3298 ac_cpp
='$CPP $CPPFLAGS'
3299 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3300 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3301 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3304 # On Suns, sometimes $CPP names a directory.
3305 if test -n "$CPP" && test -d "$CPP"; then
3309 #### Some systems specify a CPP to use unless we are using GCC.
3310 #### Now that we know whether we are using GCC, we can decide whether
3311 #### to use that one.
3312 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3317 #### Some systems specify a CC to use unless we are using GCC.
3318 #### Now that we know whether we are using GCC, we can decide whether
3319 #### to use that one.
3320 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3321 test x
$cc_specified != xyes
3326 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3328 CC
="$CC $GCC_TEST_OPTIONS"
3331 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3333 CC
="$CC $NON_GCC_TEST_OPTIONS"
3336 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
3338 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
3341 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
3343 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
3346 #### Some other nice autoconf tests. If you add a test here which
3347 #### should make an entry in src/config.h, don't forget to add an
3348 #### #undef clause to src/config.h.in for autoconf to modify.
3350 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3351 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3353 if test "$LN_S" = "ln -s"; then
3354 echo "$as_me:$LINENO: result: yes" >&5
3355 echo "${ECHO_T}yes" >&6
3357 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3358 echo "${ECHO_T}no, using $LN_S" >&6
3362 ac_cpp
='$CPP $CPPFLAGS'
3363 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3364 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3365 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3366 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3367 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3368 # On Suns, sometimes $CPP names a directory.
3369 if test -n "$CPP" && test -d "$CPP"; then
3372 if test -z "$CPP"; then
3373 if test "${ac_cv_prog_CPP+set}" = set; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3376 # Double quotes because CPP needs to be expanded
3377 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3380 for ac_c_preproc_warn_flag
in '' yes
3382 # Use a header file that comes with gcc, so configuring glibc
3383 # with a fresh cross-compiler works.
3384 # On the NeXT, cc -E runs the code through the compiler's parser,
3385 # not just through cpp. "Syntax error" is here to catch this case.
3386 cat >conftest.
$ac_ext <<_ACEOF
3387 #line $LINENO "configure"
3388 #include "confdefs.h"
3392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3393 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3395 egrep -v '^ *\+' conftest.er1
>conftest.err
3397 cat conftest.err
>&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); } >/dev
/null
; then
3400 if test -s conftest.err
; then
3401 ac_cpp_err
=$ac_c_preproc_warn_flag
3408 if test -z "$ac_cpp_err"; then
3411 echo "$as_me: failed program was:" >&5
3412 cat conftest.
$ac_ext >&5
3413 # Broken: fails on valid input.
3416 rm -f conftest.err conftest.
$ac_ext
3418 # OK, works on sane cases. Now check whether non-existent headers
3419 # can be detected and how.
3420 cat >conftest.
$ac_ext <<_ACEOF
3421 #line $LINENO "configure"
3422 #include "confdefs.h"
3423 #include <ac_nonexistent.h>
3425 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3426 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3428 egrep -v '^ *\+' conftest.er1
>conftest.err
3430 cat conftest.err
>&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); } >/dev
/null
; then
3433 if test -s conftest.err
; then
3434 ac_cpp_err
=$ac_c_preproc_warn_flag
3441 if test -z "$ac_cpp_err"; then
3442 # Broken: success on invalid input.
3445 echo "$as_me: failed program was:" >&5
3446 cat conftest.
$ac_ext >&5
3447 # Passes both tests.
3451 rm -f conftest.err conftest.
$ac_ext
3454 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3455 rm -f conftest.err conftest.
$ac_ext
3456 if $ac_preproc_ok; then
3468 echo "$as_me:$LINENO: result: $CPP" >&5
3469 echo "${ECHO_T}$CPP" >&6
3471 for ac_c_preproc_warn_flag
in '' yes
3473 # Use a header file that comes with gcc, so configuring glibc
3474 # with a fresh cross-compiler works.
3475 # On the NeXT, cc -E runs the code through the compiler's parser,
3476 # not just through cpp. "Syntax error" is here to catch this case.
3477 cat >conftest.
$ac_ext <<_ACEOF
3478 #line $LINENO "configure"
3479 #include "confdefs.h"
3483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3484 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3486 egrep -v '^ *\+' conftest.er1
>conftest.err
3488 cat conftest.err
>&5
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); } >/dev
/null
; then
3491 if test -s conftest.err
; then
3492 ac_cpp_err
=$ac_c_preproc_warn_flag
3499 if test -z "$ac_cpp_err"; then
3502 echo "$as_me: failed program was:" >&5
3503 cat conftest.
$ac_ext >&5
3504 # Broken: fails on valid input.
3507 rm -f conftest.err conftest.
$ac_ext
3509 # OK, works on sane cases. Now check whether non-existent headers
3510 # can be detected and how.
3511 cat >conftest.
$ac_ext <<_ACEOF
3512 #line $LINENO "configure"
3513 #include "confdefs.h"
3514 #include <ac_nonexistent.h>
3516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3517 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3519 egrep -v '^ *\+' conftest.er1
>conftest.err
3521 cat conftest.err
>&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); } >/dev
/null
; then
3524 if test -s conftest.err
; then
3525 ac_cpp_err
=$ac_c_preproc_warn_flag
3532 if test -z "$ac_cpp_err"; then
3533 # Broken: success on invalid input.
3536 echo "$as_me: failed program was:" >&5
3537 cat conftest.
$ac_ext >&5
3538 # Passes both tests.
3542 rm -f conftest.err conftest.
$ac_ext
3545 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3546 rm -f conftest.err conftest.
$ac_ext
3547 if $ac_preproc_ok; then
3550 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3551 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3552 { (exit 1); exit 1; }; }
3556 ac_cpp
='$CPP $CPPFLAGS'
3557 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3558 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3559 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3561 # Find a good install program. We prefer a C program (faster),
3562 # so one script is as good as another. But avoid the broken or
3563 # incompatible versions:
3564 # SysV /etc/install, /usr/sbin/install
3565 # SunOS /usr/etc/install
3566 # IRIX /sbin/install
3568 # AmigaOS /C/install, which installs bootblocks on floppy discs
3569 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3570 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3571 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3572 # ./install, which can be erroneously created by make from ./install.sh.
3573 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3574 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3575 if test -z "$INSTALL"; then
3576 if test "${ac_cv_path_install+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3579 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3583 test -z "$as_dir" && as_dir
=.
3584 # Account for people who put trailing slashes in PATH elements.
3586 .
/ | .
// |
/cC
/* | \
3587 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3590 # OSF1 and SCO ODT 3.0 have their own names for install.
3591 # Don't use installbsd from OSF since it installs stuff as root
3593 for ac_prog
in ginstall scoinst
install; do
3594 for ac_exec_ext
in '' $ac_executable_extensions; do
3595 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3596 if test $ac_prog = install &&
3597 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3598 # AIX install. It has an incompatible calling convention.
3600 elif test $ac_prog = install &&
3601 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3602 # program-specific install script used by HP pwplus--don't use.
3605 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3617 if test "${ac_cv_path_install+set}" = set; then
3618 INSTALL
=$ac_cv_path_install
3620 # As a last resort, use the slow shell script. We don't cache a
3621 # path for INSTALL within a source directory, because that will
3622 # break other packages using the cache if that directory is
3623 # removed, or if the path is relative.
3624 INSTALL
=$ac_install_sh
3627 echo "$as_me:$LINENO: result: $INSTALL" >&5
3628 echo "${ECHO_T}$INSTALL" >&6
3630 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3631 # It thinks the first close brace ends the variable substitution.
3632 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3634 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3636 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3638 for ac_prog
in 'bison -y' byacc
3640 # Extract the first word of "$ac_prog", so it can be a program name with args.
3641 set dummy
$ac_prog; ac_word
=$2
3642 echo "$as_me:$LINENO: checking for $ac_word" >&5
3643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3644 if test "${ac_cv_prog_YACC+set}" = set; then
3645 echo $ECHO_N "(cached) $ECHO_C" >&6
3647 if test -n "$YACC"; then
3648 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3650 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3654 test -z "$as_dir" && as_dir
=.
3655 for ac_exec_ext
in '' $ac_executable_extensions; do
3656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3657 ac_cv_prog_YACC
="$ac_prog"
3658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3666 YACC
=$ac_cv_prog_YACC
3667 if test -n "$YACC"; then
3668 echo "$as_me:$LINENO: result: $YACC" >&5
3669 echo "${ECHO_T}$YACC" >&6
3671 echo "$as_me:$LINENO: result: no" >&5
3672 echo "${ECHO_T}no" >&6
3675 test -n "$YACC" && break
3677 test -n "$YACC" || YACC
="yacc"
3679 if test "x$RANLIB" = x
; then
3680 if test -n "$ac_tool_prefix"; then
3681 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3682 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3683 echo "$as_me:$LINENO: checking for $ac_word" >&5
3684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3685 if test "${ac_cv_prog_RANLIB+set}" = set; then
3686 echo $ECHO_N "(cached) $ECHO_C" >&6
3688 if test -n "$RANLIB"; then
3689 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3691 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3695 test -z "$as_dir" && as_dir
=.
3696 for ac_exec_ext
in '' $ac_executable_extensions; do
3697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3698 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3707 RANLIB
=$ac_cv_prog_RANLIB
3708 if test -n "$RANLIB"; then
3709 echo "$as_me:$LINENO: result: $RANLIB" >&5
3710 echo "${ECHO_T}$RANLIB" >&6
3712 echo "$as_me:$LINENO: result: no" >&5
3713 echo "${ECHO_T}no" >&6
3717 if test -z "$ac_cv_prog_RANLIB"; then
3718 ac_ct_RANLIB
=$RANLIB
3719 # Extract the first word of "ranlib", so it can be a program name with args.
3720 set dummy ranlib
; ac_word
=$2
3721 echo "$as_me:$LINENO: checking for $ac_word" >&5
3722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3723 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3724 echo $ECHO_N "(cached) $ECHO_C" >&6
3726 if test -n "$ac_ct_RANLIB"; then
3727 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3729 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3733 test -z "$as_dir" && as_dir
=.
3734 for ac_exec_ext
in '' $ac_executable_extensions; do
3735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3736 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3743 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3746 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3747 if test -n "$ac_ct_RANLIB"; then
3748 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3749 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3751 echo "$as_me:$LINENO: result: no" >&5
3752 echo "${ECHO_T}no" >&6
3755 RANLIB
=$ac_ct_RANLIB
3757 RANLIB
="$ac_cv_prog_RANLIB"
3765 echo "$as_me:$LINENO: checking for AIX" >&5
3766 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3767 cat >conftest.
$ac_ext <<_ACEOF
3768 #line $LINENO "configure"
3769 #include "confdefs.h"
3775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3776 egrep "yes" >/dev
/null
2>&1; then
3777 echo "$as_me:$LINENO: result: yes" >&5
3778 echo "${ECHO_T}yes" >&6
3779 cat >>confdefs.h
<<\_ACEOF
3780 #define _ALL_SOURCE 1
3784 echo "$as_me:$LINENO: result: no" >&5
3785 echo "${ECHO_T}no" >&6
3791 #### Extract some information from the operating system and machine files.
3793 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
3794 - which libraries the lib-src programs will want, and
3795 - whether the GNU malloc routines are usable..." >&5
3796 echo "$as_me: checking the machine- and system-dependent files to find out
3797 - which libraries the lib-src programs will want, and
3798 - whether the GNU malloc routines are usable..." >&6;}
3800 ### First figure out CFLAGS (which we use for running the compiler here)
3801 ### and REAL_CFLAGS (which we use for real compilation).
3802 ### The two are the same except on a few systems, where they are made
3803 ### different to work around various lossages. For example,
3804 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
3805 ### as implying static linking.
3807 ### If the CFLAGS env var is specified, we use that value
3808 ### instead of the default.
3810 ### It's not important that this name contain the PID; you can't run
3811 ### two configures in the same directory and have anything work
3813 tempcname
="conftest.c"
3816 #include "'${srcdir}'/src/'${opsysfile}'"
3817 #include "'${srcdir}'/src/'${machfile}'"
3818 #ifndef LIBS_MACHINE
3819 #define LIBS_MACHINE
3824 #ifndef C_SWITCH_SYSTEM
3825 #define C_SWITCH_SYSTEM
3827 #ifndef C_SWITCH_MACHINE
3828 #define C_SWITCH_MACHINE
3830 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
3831 configure___ c_switch_system=C_SWITCH_SYSTEM
3832 configure___ c_switch_machine=C_SWITCH_MACHINE
3835 #define LIB_X11_LIB -lX11
3838 #ifndef LIBX11_MACHINE
3839 #define LIBX11_MACHINE
3842 #ifndef LIBX11_SYSTEM
3843 #define LIBX11_SYSTEM
3845 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
3848 configure___ unexec=UNEXEC
3850 configure___ unexec=unexec.o
3853 #ifdef SYSTEM_MALLOC
3854 configure___ system_malloc=yes
3856 configure___ system_malloc=no
3859 #ifdef USE_MMAP_FOR_BUFFERS
3860 configure___ use_mmap_for_buffers=yes
3862 configure___ use_mmap_for_buffers=no
3865 #ifndef C_DEBUG_SWITCH
3866 #define C_DEBUG_SWITCH -g
3869 #ifndef C_OPTIMIZE_SWITCH
3871 #define C_OPTIMIZE_SWITCH -O2
3873 #define C_OPTIMIZE_SWITCH -O
3877 #ifndef LD_SWITCH_MACHINE
3878 #define LD_SWITCH_MACHINE
3881 #ifndef LD_SWITCH_SYSTEM
3882 #define LD_SWITCH_SYSTEM
3885 #ifndef LD_SWITCH_X_SITE_AUX
3886 #define LD_SWITCH_X_SITE_AUX
3889 configure___ ld_switch_system=LD_SWITCH_SYSTEM
3890 configure___ ld_switch_machine=LD_SWITCH_MACHINE
3892 #ifdef THIS_IS_CONFIGURE
3894 /* Get the CFLAGS for tests in configure. */
3896 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3898 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3901 #else /* not THIS_IS_CONFIGURE */
3903 /* Get the CFLAGS for real compilation. */
3905 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3907 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3910 #endif /* not THIS_IS_CONFIGURE */
3913 # The value of CPP is a quoted variable reference, so we need to do this
3914 # to get its actual value...
3915 CPP
=`eval "echo $CPP"`
3916 eval `${CPP} -Isrc ${tempcname} \
3917 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3918 if test "x$SPECIFIED_CFLAGS" = x
; then
3919 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
3920 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3922 REAL_CFLAGS
="$CFLAGS"
3926 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
3928 ### Make sure subsequent tests use flags consistent with the build flags.
3930 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
3931 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
3933 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
3936 # Check whether --enable-largefile or --disable-largefile was given.
3937 if test "${enable_largefile+set}" = set; then
3938 enableval
="$enable_largefile"
3941 if test "$enable_largefile" != no
; then
3943 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3944 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3945 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3946 echo $ECHO_N "(cached) $ECHO_C" >&6
3948 ac_cv_sys_largefile_CC
=no
3949 if test "$GCC" != yes; then
3952 # IRIX 6.2 and later do not support large files by default,
3953 # so use the C compiler's -n32 option if that helps.
3954 cat >conftest.
$ac_ext <<_ACEOF
3955 #line $LINENO "configure"
3956 #include "confdefs.h"
3957 #include <sys/types.h>
3958 /* Check that off_t can represent 2**63 - 1 correctly.
3959 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3960 since some C++ compilers masquerading as C compilers
3961 incorrectly reject 9223372036854775807. */
3962 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3963 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3964 && LARGE_OFF_T % 2147483647 == 1)
3966 #ifdef F77_DUMMY_MAIN
3970 int F77_DUMMY_MAIN() { return 1; }
3980 rm -f conftest.
$ac_objext
3981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3982 (eval $ac_compile) 2>&5
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); } &&
3986 { ac_try
='test -s conftest.$ac_objext'
3987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); }; }; then
3994 echo "$as_me: failed program was:" >&5
3995 cat conftest.
$ac_ext >&5
3997 rm -f conftest.
$ac_objext
3999 rm -f conftest.
$ac_objext
4000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4001 (eval $ac_compile) 2>&5
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); } &&
4005 { ac_try
='test -s conftest.$ac_objext'
4006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); }; }; then
4011 ac_cv_sys_largefile_CC
=' -n32'; break
4013 echo "$as_me: failed program was:" >&5
4014 cat conftest.
$ac_ext >&5
4016 rm -f conftest.
$ac_objext
4020 rm -f conftest.
$ac_ext
4023 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4024 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4025 if test "$ac_cv_sys_largefile_CC" != no
; then
4026 CC
=$CC$ac_cv_sys_largefile_CC
4029 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4030 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4031 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4032 echo $ECHO_N "(cached) $ECHO_C" >&6
4035 ac_cv_sys_file_offset_bits
=no
4036 cat >conftest.
$ac_ext <<_ACEOF
4037 #line $LINENO "configure"
4038 #include "confdefs.h"
4039 #include <sys/types.h>
4040 /* Check that off_t can represent 2**63 - 1 correctly.
4041 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4042 since some C++ compilers masquerading as C compilers
4043 incorrectly reject 9223372036854775807. */
4044 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4045 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4046 && LARGE_OFF_T % 2147483647 == 1)
4048 #ifdef F77_DUMMY_MAIN
4052 int F77_DUMMY_MAIN() { return 1; }
4062 rm -f conftest.
$ac_objext
4063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4064 (eval $ac_compile) 2>&5
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); } &&
4068 { ac_try
='test -s conftest.$ac_objext'
4069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); }; }; then
4076 echo "$as_me: failed program was:" >&5
4077 cat conftest.
$ac_ext >&5
4079 rm -f conftest.
$ac_objext conftest.
$ac_ext
4080 cat >conftest.
$ac_ext <<_ACEOF
4081 #line $LINENO "configure"
4082 #include "confdefs.h"
4083 #define _FILE_OFFSET_BITS 64
4084 #include <sys/types.h>
4085 /* Check that off_t can represent 2**63 - 1 correctly.
4086 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4087 since some C++ compilers masquerading as C compilers
4088 incorrectly reject 9223372036854775807. */
4089 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4090 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4091 && LARGE_OFF_T % 2147483647 == 1)
4093 #ifdef F77_DUMMY_MAIN
4097 int F77_DUMMY_MAIN() { return 1; }
4107 rm -f conftest.
$ac_objext
4108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4109 (eval $ac_compile) 2>&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); } &&
4113 { ac_try
='test -s conftest.$ac_objext'
4114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); }; }; then
4119 ac_cv_sys_file_offset_bits
=64; break
4121 echo "$as_me: failed program was:" >&5
4122 cat conftest.
$ac_ext >&5
4124 rm -f conftest.
$ac_objext conftest.
$ac_ext
4128 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4129 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4130 if test "$ac_cv_sys_file_offset_bits" != no
; then
4132 cat >>confdefs.h
<<_ACEOF
4133 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4138 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4139 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4140 if test "${ac_cv_sys_large_files+set}" = set; then
4141 echo $ECHO_N "(cached) $ECHO_C" >&6
4144 ac_cv_sys_large_files
=no
4145 cat >conftest.
$ac_ext <<_ACEOF
4146 #line $LINENO "configure"
4147 #include "confdefs.h"
4148 #include <sys/types.h>
4149 /* Check that off_t can represent 2**63 - 1 correctly.
4150 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4151 since some C++ compilers masquerading as C compilers
4152 incorrectly reject 9223372036854775807. */
4153 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4154 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4155 && LARGE_OFF_T % 2147483647 == 1)
4157 #ifdef F77_DUMMY_MAIN
4161 int F77_DUMMY_MAIN() { return 1; }
4171 rm -f conftest.
$ac_objext
4172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4173 (eval $ac_compile) 2>&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); } &&
4177 { ac_try
='test -s conftest.$ac_objext'
4178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); }; }; then
4185 echo "$as_me: failed program was:" >&5
4186 cat conftest.
$ac_ext >&5
4188 rm -f conftest.
$ac_objext conftest.
$ac_ext
4189 cat >conftest.
$ac_ext <<_ACEOF
4190 #line $LINENO "configure"
4191 #include "confdefs.h"
4192 #define _LARGE_FILES 1
4193 #include <sys/types.h>
4194 /* Check that off_t can represent 2**63 - 1 correctly.
4195 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4196 since some C++ compilers masquerading as C compilers
4197 incorrectly reject 9223372036854775807. */
4198 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4199 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4200 && LARGE_OFF_T % 2147483647 == 1)
4202 #ifdef F77_DUMMY_MAIN
4206 int F77_DUMMY_MAIN() { return 1; }
4216 rm -f conftest.
$ac_objext
4217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4218 (eval $ac_compile) 2>&5
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); } &&
4222 { ac_try
='test -s conftest.$ac_objext'
4223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); }; }; then
4228 ac_cv_sys_large_files
=1; break
4230 echo "$as_me: failed program was:" >&5
4231 cat conftest.
$ac_ext >&5
4233 rm -f conftest.
$ac_objext conftest.
$ac_ext
4237 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4238 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4239 if test "$ac_cv_sys_large_files" != no
; then
4241 cat >>confdefs.h
<<_ACEOF
4242 #define _LARGE_FILES $ac_cv_sys_large_files
4250 if test "${with_sound}" != "no"; then
4251 # Sound support for GNU/Linux and the free BSDs.
4252 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4253 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4254 if test "${ac_cv_header_stdc+set}" = set; then
4255 echo $ECHO_N "(cached) $ECHO_C" >&6
4257 cat >conftest.
$ac_ext <<_ACEOF
4258 #line $LINENO "configure"
4259 #include "confdefs.h"
4266 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4267 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4269 egrep -v '^ *\+' conftest.er1
>conftest.err
4271 cat conftest.err
>&5
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); } >/dev
/null
; then
4274 if test -s conftest.err
; then
4275 ac_cpp_err
=$ac_c_preproc_warn_flag
4282 if test -z "$ac_cpp_err"; then
4283 ac_cv_header_stdc
=yes
4285 echo "$as_me: failed program was:" >&5
4286 cat conftest.
$ac_ext >&5
4287 ac_cv_header_stdc
=no
4289 rm -f conftest.err conftest.
$ac_ext
4291 if test $ac_cv_header_stdc = yes; then
4292 # SunOS 4.x string.h does not declare mem*, 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 "memchr" >/dev
/null
2>&1; then
4303 ac_cv_header_stdc
=no
4309 if test $ac_cv_header_stdc = yes; then
4310 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4311 cat >conftest.
$ac_ext <<_ACEOF
4312 #line $LINENO "configure"
4313 #include "confdefs.h"
4317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4318 egrep "free" >/dev
/null
2>&1; then
4321 ac_cv_header_stdc
=no
4327 if test $ac_cv_header_stdc = yes; then
4328 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4329 if test "$cross_compiling" = yes; then
4332 cat >conftest.
$ac_ext <<_ACEOF
4333 #line $LINENO "configure"
4334 #include "confdefs.h"
4336 #if ((' ' & 0x0FF) == 0x020)
4337 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4338 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4340 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4341 || ('j' <= (c) && (c) <= 'r') \
4342 || ('s' <= (c) && (c) <= 'z'))
4343 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4346 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4351 for (i = 0; i < 256; i++)
4352 if (XOR (islower (i), ISLOWER (i))
4353 || toupper (i) != TOUPPER (i))
4358 rm -f conftest
$ac_exeext
4359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4360 (eval $ac_link) 2>&5
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); }; }; then
4371 echo "$as_me: program exited with status $ac_status" >&5
4372 echo "$as_me: failed program was:" >&5
4373 cat conftest.
$ac_ext >&5
4375 ac_cv_header_stdc
=no
4377 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4381 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4382 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4383 if test $ac_cv_header_stdc = yes; then
4385 cat >>confdefs.h
<<\_ACEOF
4386 #define STDC_HEADERS 1
4391 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4401 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4402 inttypes.h stdint.h unistd.h
4404 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4405 echo "$as_me:$LINENO: checking for $ac_header" >&5
4406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4408 echo $ECHO_N "(cached) $ECHO_C" >&6
4410 cat >conftest.
$ac_ext <<_ACEOF
4411 #line $LINENO "configure"
4412 #include "confdefs.h"
4413 $ac_includes_default
4415 #include <$ac_header>
4417 rm -f conftest.
$ac_objext
4418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4419 (eval $ac_compile) 2>&5
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); } &&
4423 { ac_try
='test -s conftest.$ac_objext'
4424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); }; }; then
4429 eval "$as_ac_Header=yes"
4431 echo "$as_me: failed program was:" >&5
4432 cat conftest.
$ac_ext >&5
4433 eval "$as_ac_Header=no"
4435 rm -f conftest.
$ac_objext conftest.
$ac_ext
4437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4440 cat >>confdefs.h
<<_ACEOF
4441 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4452 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
4454 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4456 echo "$as_me:$LINENO: checking for $ac_header" >&5
4457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4459 echo $ECHO_N "(cached) $ECHO_C" >&6
4461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4464 # Is the header compilable?
4465 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4467 cat >conftest.
$ac_ext <<_ACEOF
4468 #line $LINENO "configure"
4469 #include "confdefs.h"
4470 $ac_includes_default
4471 #include <$ac_header>
4473 rm -f conftest.
$ac_objext
4474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4475 (eval $ac_compile) 2>&5
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); } &&
4479 { ac_try
='test -s conftest.$ac_objext'
4480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); }; }; then
4485 ac_header_compiler
=yes
4487 echo "$as_me: failed program was:" >&5
4488 cat conftest.
$ac_ext >&5
4489 ac_header_compiler
=no
4491 rm -f conftest.
$ac_objext conftest.
$ac_ext
4492 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4493 echo "${ECHO_T}$ac_header_compiler" >&6
4495 # Is the header present?
4496 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4497 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4498 cat >conftest.
$ac_ext <<_ACEOF
4499 #line $LINENO "configure"
4500 #include "confdefs.h"
4501 #include <$ac_header>
4503 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4504 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4506 egrep -v '^ *\+' conftest.er1
>conftest.err
4508 cat conftest.err
>&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); } >/dev
/null
; then
4511 if test -s conftest.err
; then
4512 ac_cpp_err
=$ac_c_preproc_warn_flag
4519 if test -z "$ac_cpp_err"; then
4520 ac_header_preproc
=yes
4522 echo "$as_me: failed program was:" >&5
4523 cat conftest.
$ac_ext >&5
4524 ac_header_preproc
=no
4526 rm -f conftest.err conftest.
$ac_ext
4527 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4528 echo "${ECHO_T}$ac_header_preproc" >&6
4530 # So? What about this header?
4531 case $ac_header_compiler:$ac_header_preproc in
4533 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4534 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4536 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4538 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4539 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4540 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4541 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4545 echo "$as_me:$LINENO: checking for $ac_header" >&5
4546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4548 echo $ECHO_N "(cached) $ECHO_C" >&6
4550 eval "$as_ac_Header=$ac_header_preproc"
4552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4556 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4557 cat >>confdefs.h
<<_ACEOF
4558 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4565 # Emulation library used on NetBSD.
4566 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4567 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4568 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4569 echo $ECHO_N "(cached) $ECHO_C" >&6
4571 ac_check_lib_save_LIBS
=$LIBS
4572 LIBS
="-lossaudio $LIBS"
4573 cat >conftest.
$ac_ext <<_ACEOF
4574 #line $LINENO "configure"
4575 #include "confdefs.h"
4577 /* Override any gcc2 internal prototype to avoid an error. */
4581 /* We use char because int might match the return type of a gcc2
4582 builtin and then its argument prototype would still apply. */
4584 #ifdef F77_DUMMY_MAIN
4588 int F77_DUMMY_MAIN() { return 1; }
4598 rm -f conftest.
$ac_objext conftest
$ac_exeext
4599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4600 (eval $ac_link) 2>&5
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); } &&
4604 { ac_try
='test -s conftest$ac_exeext'
4605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); }; }; then
4610 ac_cv_lib_ossaudio__oss_ioctl
=yes
4612 echo "$as_me: failed program was:" >&5
4613 cat conftest.
$ac_ext >&5
4614 ac_cv_lib_ossaudio__oss_ioctl
=no
4616 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4617 LIBS
=$ac_check_lib_save_LIBS
4619 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4620 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4621 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
4647 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
4648 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
4649 termcap.h stdio_ext.h fcntl.h term.h
strings.h coff.h
4651 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4653 echo "$as_me:$LINENO: checking for $ac_header" >&5
4654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
4658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4659 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4661 # Is the header compilable?
4662 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4663 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4664 cat >conftest.
$ac_ext <<_ACEOF
4665 #line $LINENO "configure"
4666 #include "confdefs.h"
4667 $ac_includes_default
4668 #include <$ac_header>
4670 rm -f conftest.
$ac_objext
4671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4672 (eval $ac_compile) 2>&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); } &&
4676 { ac_try
='test -s conftest.$ac_objext'
4677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); }; }; then
4682 ac_header_compiler
=yes
4684 echo "$as_me: failed program was:" >&5
4685 cat conftest.
$ac_ext >&5
4686 ac_header_compiler
=no
4688 rm -f conftest.
$ac_objext conftest.
$ac_ext
4689 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4690 echo "${ECHO_T}$ac_header_compiler" >&6
4692 # Is the header present?
4693 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4694 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4695 cat >conftest.
$ac_ext <<_ACEOF
4696 #line $LINENO "configure"
4697 #include "confdefs.h"
4698 #include <$ac_header>
4700 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4701 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4703 egrep -v '^ *\+' conftest.er1
>conftest.err
4705 cat conftest.err
>&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); } >/dev
/null
; then
4708 if test -s conftest.err
; then
4709 ac_cpp_err
=$ac_c_preproc_warn_flag
4716 if test -z "$ac_cpp_err"; then
4717 ac_header_preproc
=yes
4719 echo "$as_me: failed program was:" >&5
4720 cat conftest.
$ac_ext >&5
4721 ac_header_preproc
=no
4723 rm -f conftest.err conftest.
$ac_ext
4724 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4725 echo "${ECHO_T}$ac_header_preproc" >&6
4727 # So? What about this header?
4728 case $ac_header_compiler:$ac_header_preproc in
4730 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4731 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4733 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4735 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4736 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4737 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4738 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4740 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4742 echo "$as_me:$LINENO: checking for $ac_header" >&5
4743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4747 eval "$as_ac_Header=$ac_header_preproc"
4749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4750 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4753 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4754 cat >>confdefs.h
<<_ACEOF
4755 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4762 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4763 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4764 if test "${ac_cv_header_stdc+set}" = set; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4767 cat >conftest.
$ac_ext <<_ACEOF
4768 #line $LINENO "configure"
4769 #include "confdefs.h"
4776 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4777 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4779 egrep -v '^ *\+' conftest.er1
>conftest.err
4781 cat conftest.err
>&5
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); } >/dev
/null
; then
4784 if test -s conftest.err
; then
4785 ac_cpp_err
=$ac_c_preproc_warn_flag
4792 if test -z "$ac_cpp_err"; then
4793 ac_cv_header_stdc
=yes
4795 echo "$as_me: failed program was:" >&5
4796 cat conftest.
$ac_ext >&5
4797 ac_cv_header_stdc
=no
4799 rm -f conftest.err conftest.
$ac_ext
4801 if test $ac_cv_header_stdc = yes; then
4802 # SunOS 4.x string.h does not declare mem*, 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 "memchr" >/dev
/null
2>&1; then
4813 ac_cv_header_stdc
=no
4819 if test $ac_cv_header_stdc = yes; then
4820 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4821 cat >conftest.
$ac_ext <<_ACEOF
4822 #line $LINENO "configure"
4823 #include "confdefs.h"
4827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4828 egrep "free" >/dev
/null
2>&1; then
4831 ac_cv_header_stdc
=no
4837 if test $ac_cv_header_stdc = yes; then
4838 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4839 if test "$cross_compiling" = yes; then
4842 cat >conftest.
$ac_ext <<_ACEOF
4843 #line $LINENO "configure"
4844 #include "confdefs.h"
4846 #if ((' ' & 0x0FF) == 0x020)
4847 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4848 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4850 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4851 || ('j' <= (c) && (c) <= 'r') \
4852 || ('s' <= (c) && (c) <= 'z'))
4853 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4856 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4861 for (i = 0; i < 256; i++)
4862 if (XOR (islower (i), ISLOWER (i))
4863 || toupper (i) != TOUPPER (i))
4868 rm -f conftest
$ac_exeext
4869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4870 (eval $ac_link) 2>&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); }; }; then
4881 echo "$as_me: program exited with status $ac_status" >&5
4882 echo "$as_me: failed program was:" >&5
4883 cat conftest.
$ac_ext >&5
4885 ac_cv_header_stdc
=no
4887 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4891 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4892 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4893 if test $ac_cv_header_stdc = yes; then
4895 cat >>confdefs.h
<<\_ACEOF
4896 #define STDC_HEADERS 1
4901 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4902 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4903 if test "${ac_cv_header_time+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4906 cat >conftest.
$ac_ext <<_ACEOF
4907 #line $LINENO "configure"
4908 #include "confdefs.h"
4909 #include <sys/types.h>
4910 #include <sys/time.h>
4913 #ifdef F77_DUMMY_MAIN
4917 int F77_DUMMY_MAIN() { return 1; }
4922 if ((struct tm *) 0)
4928 rm -f conftest.
$ac_objext
4929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4930 (eval $ac_compile) 2>&5
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); } &&
4934 { ac_try
='test -s conftest.$ac_objext'
4935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); }; }; then
4940 ac_cv_header_time
=yes
4942 echo "$as_me: failed program was:" >&5
4943 cat conftest.
$ac_ext >&5
4944 ac_cv_header_time
=no
4946 rm -f conftest.
$ac_objext conftest.
$ac_ext
4948 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4949 echo "${ECHO_T}$ac_cv_header_time" >&6
4950 if test $ac_cv_header_time = yes; then
4952 cat >>confdefs.h
<<\_ACEOF
4953 #define TIME_WITH_SYS_TIME 1
4958 echo "$as_me:$LINENO: checking for sys_siglist declaration in signal.h or unistd.h" >&5
4959 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
4960 if test "${ac_cv_decl_sys_siglist+set}" = set; then
4961 echo $ECHO_N "(cached) $ECHO_C" >&6
4963 cat >conftest.
$ac_ext <<_ACEOF
4964 #line $LINENO "configure"
4965 #include "confdefs.h"
4966 #include <sys/types.h>
4968 /* NetBSD declares sys_siglist in unistd.h. */
4970 # include <unistd.h>
4973 #ifdef F77_DUMMY_MAIN
4977 int F77_DUMMY_MAIN() { return 1; }
4982 char *msg = *(sys_siglist + 1);
4987 rm -f conftest.
$ac_objext
4988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4989 (eval $ac_compile) 2>&5
4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); } &&
4993 { ac_try
='test -s conftest.$ac_objext'
4994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); }; }; then
4999 ac_cv_decl_sys_siglist
=yes
5001 echo "$as_me: failed program was:" >&5
5002 cat conftest.
$ac_ext >&5
5003 ac_cv_decl_sys_siglist
=no
5005 rm -f conftest.
$ac_objext conftest.
$ac_ext
5007 echo "$as_me:$LINENO: result: $ac_cv_decl_sys_siglist" >&5
5008 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
5009 if test $ac_cv_decl_sys_siglist = yes; then
5011 cat >>confdefs.h
<<\_ACEOF
5012 #define SYS_SIGLIST_DECLARED 1
5017 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5018 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5019 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5020 echo $ECHO_N "(cached) $ECHO_C" >&6
5022 cat >conftest.
$ac_ext <<_ACEOF
5023 #line $LINENO "configure"
5024 #include "confdefs.h"
5025 #include <sys/types.h>
5026 #include <sys/wait.h>
5028 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5031 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5034 #ifdef F77_DUMMY_MAIN
5038 int F77_DUMMY_MAIN() { return 1; }
5045 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5050 rm -f conftest.
$ac_objext
5051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5052 (eval $ac_compile) 2>&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } &&
5056 { ac_try
='test -s conftest.$ac_objext'
5057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); }; }; then
5062 ac_cv_header_sys_wait_h
=yes
5064 echo "$as_me: failed program was:" >&5
5065 cat conftest.
$ac_ext >&5
5066 ac_cv_header_sys_wait_h
=no
5068 rm -f conftest.
$ac_objext conftest.
$ac_ext
5070 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5071 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5072 if test $ac_cv_header_sys_wait_h = yes; then
5074 cat >>confdefs.h
<<\_ACEOF
5075 #define HAVE_SYS_WAIT_H 1
5081 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5082 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5083 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5084 echo $ECHO_N "(cached) $ECHO_C" >&6
5086 cat >conftest.
$ac_ext <<_ACEOF
5087 #line $LINENO "configure"
5088 #include "confdefs.h"
5089 #ifdef TIME_WITH_SYS_TIME
5090 #include <sys/time.h>
5093 #ifdef HAVE_SYS_TIME_H
5094 #include <sys/time.h>
5102 #ifdef F77_DUMMY_MAIN
5106 int F77_DUMMY_MAIN() { return 1; }
5111 static struct utimbuf x; x.actime = x.modtime;
5116 rm -f conftest.
$ac_objext
5117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5118 (eval $ac_compile) 2>&5
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); } &&
5122 { ac_try
='test -s conftest.$ac_objext'
5123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); }; }; then
5128 emacs_cv_struct_utimbuf
=yes
5130 echo "$as_me: failed program was:" >&5
5131 cat conftest.
$ac_ext >&5
5132 emacs_cv_struct_utimbuf
=no
5134 rm -f conftest.
$ac_objext conftest.
$ac_ext
5136 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5137 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5138 if test $emacs_cv_struct_utimbuf = yes; then
5140 cat >>confdefs.h
<<\_ACEOF
5141 #define HAVE_STRUCT_UTIMBUF 1
5146 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5147 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5148 if test "${ac_cv_type_signal+set}" = set; then
5149 echo $ECHO_N "(cached) $ECHO_C" >&6
5151 cat >conftest.
$ac_ext <<_ACEOF
5152 #line $LINENO "configure"
5153 #include "confdefs.h"
5154 #include <sys/types.h>
5160 extern "C" void (*signal (int, void (*)(int)))(int);
5162 void (*signal ()) ();
5165 #ifdef F77_DUMMY_MAIN
5169 int F77_DUMMY_MAIN() { return 1; }
5179 rm -f conftest.
$ac_objext
5180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5181 (eval $ac_compile) 2>&5
5183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184 (exit $ac_status); } &&
5185 { ac_try
='test -s conftest.$ac_objext'
5186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); }; }; then
5191 ac_cv_type_signal
=void
5193 echo "$as_me: failed program was:" >&5
5194 cat conftest.
$ac_ext >&5
5195 ac_cv_type_signal
=int
5197 rm -f conftest.
$ac_objext conftest.
$ac_ext
5199 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5200 echo "${ECHO_T}$ac_cv_type_signal" >&6
5202 cat >>confdefs.h
<<_ACEOF
5203 #define RETSIGTYPE $ac_cv_type_signal
5208 echo "$as_me:$LINENO: checking for speed_t" >&5
5209 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5210 if test "${emacs_cv_speed_t+set}" = set; then
5211 echo $ECHO_N "(cached) $ECHO_C" >&6
5213 cat >conftest.
$ac_ext <<_ACEOF
5214 #line $LINENO "configure"
5215 #include "confdefs.h"
5216 #include <termios.h>
5217 #ifdef F77_DUMMY_MAIN
5221 int F77_DUMMY_MAIN() { return 1; }
5231 rm -f conftest.
$ac_objext
5232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5233 (eval $ac_compile) 2>&5
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); } &&
5237 { ac_try
='test -s conftest.$ac_objext'
5238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); }; }; then
5243 emacs_cv_speed_t
=yes
5245 echo "$as_me: failed program was:" >&5
5246 cat conftest.
$ac_ext >&5
5249 rm -f conftest.
$ac_objext conftest.
$ac_ext
5251 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5252 echo "${ECHO_T}$emacs_cv_speed_t" >&6
5253 if test $emacs_cv_speed_t = yes; then
5255 cat >>confdefs.h
<<\_ACEOF
5256 #define HAVE_SPEED_T 1
5261 echo "$as_me:$LINENO: checking for struct timeval" >&5
5262 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5263 if test "${emacs_cv_struct_timeval+set}" = set; then
5264 echo $ECHO_N "(cached) $ECHO_C" >&6
5266 cat >conftest.
$ac_ext <<_ACEOF
5267 #line $LINENO "configure"
5268 #include "confdefs.h"
5269 #ifdef TIME_WITH_SYS_TIME
5270 #include <sys/time.h>
5273 #ifdef HAVE_SYS_TIME_H
5274 #include <sys/time.h>
5279 #ifdef F77_DUMMY_MAIN
5283 int F77_DUMMY_MAIN() { return 1; }
5288 static struct timeval x; x.tv_sec = x.tv_usec;
5293 rm -f conftest.
$ac_objext
5294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5295 (eval $ac_compile) 2>&5
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); } &&
5299 { ac_try
='test -s conftest.$ac_objext'
5300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); }; }; then
5305 emacs_cv_struct_timeval
=yes
5307 echo "$as_me: failed program was:" >&5
5308 cat conftest.
$ac_ext >&5
5309 emacs_cv_struct_timeval
=no
5311 rm -f conftest.
$ac_objext conftest.
$ac_ext
5313 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
5314 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
5315 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
5316 if test $emacs_cv_struct_timeval = yes; then
5318 cat >>confdefs.h
<<\_ACEOF
5319 #define HAVE_TIMEVAL 1
5324 echo "$as_me:$LINENO: checking for struct exception" >&5
5325 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
5326 if test "${emacs_cv_struct_exception+set}" = set; then
5327 echo $ECHO_N "(cached) $ECHO_C" >&6
5329 cat >conftest.
$ac_ext <<_ACEOF
5330 #line $LINENO "configure"
5331 #include "confdefs.h"
5333 #ifdef F77_DUMMY_MAIN
5337 int F77_DUMMY_MAIN() { return 1; }
5342 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
5347 rm -f conftest.
$ac_objext
5348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5349 (eval $ac_compile) 2>&5
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); } &&
5353 { ac_try
='test -s conftest.$ac_objext'
5354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); }; }; then
5359 emacs_cv_struct_exception
=yes
5361 echo "$as_me: failed program was:" >&5
5362 cat conftest.
$ac_ext >&5
5363 emacs_cv_struct_exception
=no
5365 rm -f conftest.
$ac_objext conftest.
$ac_ext
5367 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
5368 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
5369 HAVE_EXCEPTION
=$emacs_cv_struct_exception
5370 if test $emacs_cv_struct_exception != yes; then
5372 cat >>confdefs.h
<<\_ACEOF
5373 #define NO_MATHERR 1
5378 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5379 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5380 if test "${ac_cv_struct_tm+set}" = set; then
5381 echo $ECHO_N "(cached) $ECHO_C" >&6
5383 cat >conftest.
$ac_ext <<_ACEOF
5384 #line $LINENO "configure"
5385 #include "confdefs.h"
5386 #include <sys/types.h>
5389 #ifdef F77_DUMMY_MAIN
5393 int F77_DUMMY_MAIN() { return 1; }
5398 struct tm *tp; tp->tm_sec;
5403 rm -f conftest.
$ac_objext
5404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5405 (eval $ac_compile) 2>&5
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); } &&
5409 { ac_try
='test -s conftest.$ac_objext'
5410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414 (exit $ac_status); }; }; then
5415 ac_cv_struct_tm
=time.h
5417 echo "$as_me: failed program was:" >&5
5418 cat conftest.
$ac_ext >&5
5419 ac_cv_struct_tm
=sys
/time.h
5421 rm -f conftest.
$ac_objext conftest.
$ac_ext
5423 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5424 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5425 if test $ac_cv_struct_tm = sys
/time.h
; then
5427 cat >>confdefs.h
<<\_ACEOF
5428 #define TM_IN_SYS_TIME 1
5433 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5434 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5435 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5436 echo $ECHO_N "(cached) $ECHO_C" >&6
5438 cat >conftest.
$ac_ext <<_ACEOF
5439 #line $LINENO "configure"
5440 #include "confdefs.h"
5441 #include <sys/types.h>
5442 #include <$ac_cv_struct_tm>
5445 #ifdef F77_DUMMY_MAIN
5449 int F77_DUMMY_MAIN() { return 1; }
5454 static struct tm ac_aggr;
5455 if (ac_aggr.tm_zone)
5461 rm -f conftest.
$ac_objext
5462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5463 (eval $ac_compile) 2>&5
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); } &&
5467 { ac_try
='test -s conftest.$ac_objext'
5468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); }; }; then
5473 ac_cv_member_struct_tm_tm_zone
=yes
5475 echo "$as_me: failed program was:" >&5
5476 cat conftest.
$ac_ext >&5
5477 ac_cv_member_struct_tm_tm_zone
=no
5479 rm -f conftest.
$ac_objext conftest.
$ac_ext
5481 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
5482 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
5483 if test $ac_cv_member_struct_tm_tm_zone = yes; then
5485 cat >>confdefs.h
<<_ACEOF
5486 #define HAVE_STRUCT_TM_TM_ZONE 1
5492 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
5494 cat >>confdefs.h
<<\_ACEOF
5495 #define HAVE_TM_ZONE 1
5499 echo "$as_me:$LINENO: checking for tzname" >&5
5500 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
5501 if test "${ac_cv_var_tzname+set}" = set; then
5502 echo $ECHO_N "(cached) $ECHO_C" >&6
5504 cat >conftest.
$ac_ext <<_ACEOF
5505 #line $LINENO "configure"
5506 #include "confdefs.h"
5508 #ifndef tzname /* For SGI. */
5509 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5512 #ifdef F77_DUMMY_MAIN
5516 int F77_DUMMY_MAIN() { return 1; }
5526 rm -f conftest.
$ac_objext conftest
$ac_exeext
5527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5528 (eval $ac_link) 2>&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); } &&
5532 { ac_try
='test -s conftest$ac_exeext'
5533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }; }; then
5538 ac_cv_var_tzname
=yes
5540 echo "$as_me: failed program was:" >&5
5541 cat conftest.
$ac_ext >&5
5544 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5546 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
5547 echo "${ECHO_T}$ac_cv_var_tzname" >&6
5548 if test $ac_cv_var_tzname = yes; then
5550 cat >>confdefs.h
<<\_ACEOF
5551 #define HAVE_TZNAME 1
5557 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
5558 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
5559 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
5560 echo $ECHO_N "(cached) $ECHO_C" >&6
5562 cat >conftest.
$ac_ext <<_ACEOF
5563 #line $LINENO "configure"
5564 #include "confdefs.h"
5567 #ifdef F77_DUMMY_MAIN
5571 int F77_DUMMY_MAIN() { return 1; }
5576 static struct tm ac_aggr;
5577 if (ac_aggr.tm_gmtoff)
5583 rm -f conftest.
$ac_objext
5584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5585 (eval $ac_compile) 2>&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); } &&
5589 { ac_try
='test -s conftest.$ac_objext'
5590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); }; }; then
5595 ac_cv_member_struct_tm_tm_gmtoff
=yes
5597 echo "$as_me: failed program was:" >&5
5598 cat conftest.
$ac_ext >&5
5599 ac_cv_member_struct_tm_tm_gmtoff
=no
5601 rm -f conftest.
$ac_objext conftest.
$ac_ext
5603 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
5604 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
5605 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
5607 cat >>confdefs.h
<<\_ACEOF
5608 #define HAVE_TM_GMTOFF 1
5615 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5616 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5617 if test "${ac_cv_prog_cc_stdc+set}" = set; then
5618 echo $ECHO_N "(cached) $ECHO_C" >&6
5620 ac_cv_prog_cc_stdc
=no
5622 cat >conftest.
$ac_ext <<_ACEOF
5623 #line $LINENO "configure"
5624 #include "confdefs.h"
5627 #include <sys/types.h>
5628 #include <sys/stat.h>
5629 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5630 struct buf { int x; };
5631 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5632 static char *e (p, i)
5638 static char *f (char * (*g) (char **, int), char **p, ...)
5643 s = g (p, va_arg (v,int));
5647 int test (int i, double x);
5648 struct s1 {int (*f) (int a);};
5649 struct s2 {int (*f) (double a);};
5650 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5653 #ifdef F77_DUMMY_MAIN
5657 int F77_DUMMY_MAIN() { return 1; }
5662 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5667 # Don't try gcc -ansi; that turns off useful extensions and
5668 # breaks some systems' header files.
5669 # AIX -qlanglvl=ansi
5670 # Ultrix and OSF/1 -std1
5671 # HP-UX 10.20 and later -Ae
5672 # HP-UX older versions -Aa -D_HPUX_SOURCE
5673 # SVR4 -Xc -D__EXTENSIONS__
5674 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5676 CC
="$ac_save_CC $ac_arg"
5677 rm -f conftest.
$ac_objext
5678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5679 (eval $ac_compile) 2>&5
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); } &&
5683 { ac_try
='test -s conftest.$ac_objext'
5684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); }; }; then
5689 ac_cv_prog_cc_stdc
=$ac_arg
5692 echo "$as_me: failed program was:" >&5
5693 cat conftest.
$ac_ext >&5
5695 rm -f conftest.
$ac_objext
5697 rm -f conftest.
$ac_ext conftest.
$ac_objext
5702 case "x$ac_cv_prog_cc_stdc" in
5704 echo "$as_me:$LINENO: result: none needed" >&5
5705 echo "${ECHO_T}none needed" >&6 ;;
5707 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5708 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5709 CC
="$CC $ac_cv_prog_cc_stdc" ;;
5712 echo "$as_me:$LINENO: checking for function prototypes" >&5
5713 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5714 if test "$ac_cv_prog_cc_stdc" != no
; then
5715 echo "$as_me:$LINENO: result: yes" >&5
5716 echo "${ECHO_T}yes" >&6
5718 cat >>confdefs.h
<<\_ACEOF
5719 #define PROTOTYPES 1
5723 cat >>confdefs.h
<<\_ACEOF
5724 #define __PROTOTYPES 1
5728 echo "$as_me:$LINENO: result: no" >&5
5729 echo "${ECHO_T}no" >&6
5732 echo "$as_me:$LINENO: checking for working volatile" >&5
5733 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
5734 if test "${ac_cv_c_volatile+set}" = set; then
5735 echo $ECHO_N "(cached) $ECHO_C" >&6
5737 cat >conftest.
$ac_ext <<_ACEOF
5738 #line $LINENO "configure"
5739 #include "confdefs.h"
5741 #ifdef F77_DUMMY_MAIN
5745 int F77_DUMMY_MAIN() { return 1; }
5757 rm -f conftest.
$ac_objext
5758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5759 (eval $ac_compile) 2>&5
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); } &&
5763 { ac_try
='test -s conftest.$ac_objext'
5764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); }; }; then
5769 ac_cv_c_volatile
=yes
5771 echo "$as_me: failed program was:" >&5
5772 cat conftest.
$ac_ext >&5
5775 rm -f conftest.
$ac_objext conftest.
$ac_ext
5777 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
5778 echo "${ECHO_T}$ac_cv_c_volatile" >&6
5779 if test $ac_cv_c_volatile = no
; then
5781 cat >>confdefs.h
<<\_ACEOF
5787 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5788 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5789 if test "${ac_cv_c_const+set}" = set; then
5790 echo $ECHO_N "(cached) $ECHO_C" >&6
5792 cat >conftest.
$ac_ext <<_ACEOF
5793 #line $LINENO "configure"
5794 #include "confdefs.h"
5796 #ifdef F77_DUMMY_MAIN
5800 int F77_DUMMY_MAIN() { return 1; }
5805 /* FIXME: Include the comments suggested by Paul. */
5807 /* Ultrix mips cc rejects this. */
5808 typedef int charset[2];
5810 /* SunOS 4.1.1 cc rejects this. */
5811 char const *const *ccp;
5813 /* NEC SVR4.0.2 mips cc rejects this. */
5814 struct point {int x, y;};
5815 static struct point const zero = {0,0};
5816 /* AIX XL C 1.02.0.0 rejects this.
5817 It does not let you subtract one const X* pointer from another in
5818 an arm of an if-expression whose if-part is not a constant
5820 const char *g = "string";
5821 ccp = &g + (g ? g-g : 0);
5822 /* HPUX 7.0 cc rejects these. */
5825 ccp = (char const *const *) p;
5826 { /* SCO 3.2v4 cc rejects this. */
5828 char const *s = 0 ? (char *) 0 : (char const *) 0;
5832 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5834 const int *foo = &x[0];
5837 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5838 typedef const int *iptr;
5842 { /* AIX XL C 1.02.0.0 rejects this saying
5843 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5844 struct s { int j; const int *ap[3]; };
5845 struct s *b; b->j = 5;
5847 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5856 rm -f conftest.
$ac_objext
5857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5858 (eval $ac_compile) 2>&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); } &&
5862 { ac_try
='test -s conftest.$ac_objext'
5863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); }; }; then
5870 echo "$as_me: failed program was:" >&5
5871 cat conftest.
$ac_ext >&5
5874 rm -f conftest.
$ac_objext conftest.
$ac_ext
5876 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5877 echo "${ECHO_T}$ac_cv_c_const" >&6
5878 if test $ac_cv_c_const = no
; then
5880 cat >>confdefs.h
<<\_ACEOF
5886 echo "$as_me:$LINENO: checking for void * support" >&5
5887 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
5888 if test "${emacs_cv_void_star+set}" = set; then
5889 echo $ECHO_N "(cached) $ECHO_C" >&6
5891 cat >conftest.
$ac_ext <<_ACEOF
5892 #line $LINENO "configure"
5893 #include "confdefs.h"
5895 #ifdef F77_DUMMY_MAIN
5899 int F77_DUMMY_MAIN() { return 1; }
5909 rm -f conftest.
$ac_objext
5910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5911 (eval $ac_compile) 2>&5
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); } &&
5915 { ac_try
='test -s conftest.$ac_objext'
5916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); }; }; then
5921 emacs_cv_void_star
=yes
5923 echo "$as_me: failed program was:" >&5
5924 cat conftest.
$ac_ext >&5
5925 emacs_cv_void_star
=no
5927 rm -f conftest.
$ac_objext conftest.
$ac_ext
5929 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
5930 echo "${ECHO_T}$emacs_cv_void_star" >&6
5931 if test $emacs_cv_void_star = yes; then
5932 cat >>confdefs.h
<<\_ACEOF
5933 #define POINTER_TYPE void
5937 cat >>confdefs.h
<<\_ACEOF
5938 #define POINTER_TYPE char
5944 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
5945 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
5946 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
5947 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5948 echo $ECHO_N "(cached) $ECHO_C" >&6
5950 cat >conftest.
make <<\_ACEOF
5952 @
echo 'ac_maketemp="${MAKE}"'
5954 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5955 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5956 if test -n "$ac_maketemp"; then
5957 eval ac_cv_prog_make_
${ac_make}_set
=yes
5959 eval ac_cv_prog_make_
${ac_make}_set
=no
5963 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5964 echo "$as_me:$LINENO: result: yes" >&5
5965 echo "${ECHO_T}yes" >&6
5968 echo "$as_me:$LINENO: result: no" >&5
5969 echo "${ECHO_T}no" >&6
5970 SET_MAKE
="MAKE=${MAKE-make}"
5974 echo "$as_me:$LINENO: checking for long file names" >&5
5975 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
5976 if test "${ac_cv_sys_long_file_names+set}" = set; then
5977 echo $ECHO_N "(cached) $ECHO_C" >&6
5979 ac_cv_sys_long_file_names
=yes
5980 # Test for long file names in all the places we know might matter:
5981 # . the current directory, where building will happen
5982 # $prefix/lib where we will be installing things
5983 # $exec_prefix/lib likewise
5984 # eval it to expand exec_prefix.
5985 # $TMPDIR if set, where it might want to write temporary files
5986 # if $TMPDIR is not set:
5987 # /tmp where it might want to write temporary files
5990 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
5993 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
5995 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
5996 test -d $ac_dir ||
continue
5997 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
5998 ac_xdir
=$ac_dir/cf$$
5999 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
6000 ac_tf1
=$ac_xdir/conftest9012345
6001 ac_tf2
=$ac_xdir/conftest9012346
6002 (echo 1 >$ac_tf1) 2>/dev
/null
6003 (echo 2 >$ac_tf2) 2>/dev
/null
6004 ac_val
=`cat $ac_tf1 2>/dev/null`
6005 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
6006 ac_cv_sys_long_file_names
=no
6007 rm -rf $ac_xdir 2>/dev
/null
6010 rm -rf $ac_xdir 2>/dev
/null
6013 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
6014 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
6015 if test $ac_cv_sys_long_file_names = yes; then
6017 cat >>confdefs.h
<<\_ACEOF
6018 #define HAVE_LONG_FILE_NAMES 1
6024 #### Choose a window system.
6026 echo "$as_me:$LINENO: checking for X" >&5
6027 echo $ECHO_N "checking for X... $ECHO_C" >&6
6030 # Check whether --with-x or --without-x was given.
6031 if test "${with_x+set}" = set; then
6035 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6036 if test "x$with_x" = xno
; then
6037 # The user explicitly disabled X.
6040 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
6041 # Both variables are already set.
6044 if test "${ac_cv_have_x+set}" = set; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
6047 # One or both of the vars are not set, and there is no cached value.
6048 ac_x_includes
=no ac_x_libraries
=no
6050 if mkdir conftest.dir
; then
6052 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6053 cat >Imakefile
<<'_ACEOF'
6055 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6057 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
6058 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6059 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6060 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6061 for ac_extension
in a so sl
; do
6062 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
6063 test -f $ac_im_libdir/libX11.
$ac_extension; then
6064 ac_im_usrlibdir
=$ac_im_libdir; break
6067 # Screen out bogus values from the imake configuration. They are
6068 # bogus both because they are the default anyway, and because
6069 # using them would break gcc on systems where it needs fixed includes.
6070 case $ac_im_incroot in
6072 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
6074 case $ac_im_usrlibdir in
6076 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
6083 # Standard set of common directories for X headers.
6084 # Check X11 before X11Rn because it is often a symlink to the current release.
6096 /usr/local/X11/include
6097 /usr/local/X11R6/include
6098 /usr/local/X11R5/include
6099 /usr/local/X11R4/include
6101 /usr/local/include/X11
6102 /usr/local/include/X11R6
6103 /usr/local/include/X11R5
6104 /usr/local/include/X11R4
6108 /usr/XFree86/include/X11
6112 /usr/unsupported/include
6114 /usr/local/x11r5/include
6115 /usr/lpp/Xamples/include
6117 /usr/openwin/include
6118 /usr/openwin/share/include'
6120 if test "$ac_x_includes" = no
; then
6121 # Guess where to find include files, by looking for Intrinsic.h.
6122 # First, try using that file with no special directory specified.
6123 cat >conftest.
$ac_ext <<_ACEOF
6124 #line $LINENO "configure"
6125 #include "confdefs.h"
6126 #include <X11/Intrinsic.h>
6128 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6129 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6131 egrep -v '^ *\+' conftest.er1
>conftest.err
6133 cat conftest.err
>&5
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); } >/dev
/null
; then
6136 if test -s conftest.err
; then
6137 ac_cpp_err
=$ac_c_preproc_warn_flag
6144 if test -z "$ac_cpp_err"; then
6145 # We can compile using X headers with no special include directory.
6148 echo "$as_me: failed program was:" >&5
6149 cat conftest.
$ac_ext >&5
6150 for ac_dir
in $ac_x_header_dirs; do
6151 if test -r "$ac_dir/X11/Intrinsic.h"; then
6152 ac_x_includes
=$ac_dir
6157 rm -f conftest.err conftest.
$ac_ext
6158 fi # $ac_x_includes = no
6160 if test "$ac_x_libraries" = no
; then
6161 # Check for the libraries.
6162 # See if we find them without any special options.
6163 # Don't add to $LIBS permanently.
6166 cat >conftest.
$ac_ext <<_ACEOF
6167 #line $LINENO "configure"
6168 #include "confdefs.h"
6169 #include <X11/Intrinsic.h>
6170 #ifdef F77_DUMMY_MAIN
6174 int F77_DUMMY_MAIN() { return 1; }
6184 rm -f conftest.
$ac_objext conftest
$ac_exeext
6185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6186 (eval $ac_link) 2>&5
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); } &&
6190 { ac_try
='test -s conftest$ac_exeext'
6191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); }; }; then
6197 # We can link X programs with no special library path.
6200 echo "$as_me: failed program was:" >&5
6201 cat conftest.
$ac_ext >&5
6203 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6205 # Don't even attempt the hair of trying to link an X program!
6206 for ac_extension
in a so sl
; do
6207 if test -r $ac_dir/libXt.
$ac_extension; then
6208 ac_x_libraries
=$ac_dir
6214 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6215 fi # $ac_x_libraries = no
6217 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
6218 # Didn't find X anywhere. Cache the known absence of X.
6219 ac_cv_have_x
="have_x=no"
6221 # Record where we found X for the cache.
6222 ac_cv_have_x
="have_x=yes \
6223 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6228 eval "$ac_cv_have_x"
6231 if test "$have_x" != yes; then
6232 echo "$as_me:$LINENO: result: $have_x" >&5
6233 echo "${ECHO_T}$have_x" >&6
6236 # If each of the values was on the command line, it overrides each guess.
6237 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
6238 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
6239 # Update the cache value to reflect the command line values.
6240 ac_cv_have_x
="have_x=yes \
6241 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6242 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6243 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6246 if test "$no_x" = yes; then
6252 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
6253 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
6254 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
6255 x_default_search_path
=""
6256 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
6258 ${x_library}/X11/%L/%T/%N%C%S:\
6259 ${x_library}/X11/%l/%T/%N%C%S:\
6260 ${x_library}/X11/%T/%N%C%S:\
6261 ${x_library}/X11/%L/%T/%N%S:\
6262 ${x_library}/X11/%l/%T/%N%S:\
6263 ${x_library}/X11/%T/%N%S"
6264 if test x
"${x_default_search_path}" = x
; then
6265 x_default_search_path
=${x_search_path}
6267 x_default_search_path
="${x_search_path}:${x_default_search_path}"
6271 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
6272 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
6275 if test x
"${x_includes}" = x
; then
6276 bitmapdir
=/usr
/include
/X11
/bitmaps
6278 # accumulate include directories that have X11 bitmap subdirectories
6280 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
6281 if test -d "${bmd}/X11/bitmaps"; then
6282 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
6284 if test -d "${bmd}/bitmaps"; then
6285 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
6288 if test ${bmd_acc} != "dummyval"; then
6289 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
6293 case "${window_system}" in
6297 case "${with_x_toolkit}" in
6298 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
6299 motif
) USE_X_TOOLKIT
=MOTIF
;;
6300 no
) USE_X_TOOLKIT
=none
;;
6301 * ) USE_X_TOOLKIT
=maybe
;;
6311 ### If we're using X11, we should use the X menu package.
6314 yes ) HAVE_MENUS
=yes ;;
6317 if test "${opsys}" = "hpux9"; then
6318 case "${x_libraries}" in
6320 opsysfile
="s/hpux9-x11r4.h"
6325 if test "${opsys}" = "hpux9shr"; then
6326 case "${x_libraries}" in
6328 opsysfile
="s/hpux9shxr4.h"
6333 ### Compute the unexec source name from the object name.
6334 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
6336 # Do the opsystem or machine files prohibit the use of the GNU malloc?
6337 # Assume not, until told otherwise.
6340 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
6341 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
6342 if test "${ac_cv_func_malloc_get_state+set}" = set; then
6343 echo $ECHO_N "(cached) $ECHO_C" >&6
6345 cat >conftest.
$ac_ext <<_ACEOF
6346 #line $LINENO "configure"
6347 #include "confdefs.h"
6348 /* System header to define __stub macros and hopefully few prototypes,
6349 which can conflict with char malloc_get_state (); below. */
6351 /* Override any gcc2 internal prototype to avoid an error. */
6355 /* We use char because int might match the return type of a gcc2
6356 builtin and then its argument prototype would still apply. */
6357 char malloc_get_state ();
6360 #ifdef F77_DUMMY_MAIN
6364 int F77_DUMMY_MAIN() { return 1; }
6369 /* The GNU C library defines this for functions which it implements
6370 to always fail with ENOSYS. Some functions are actually named
6371 something starting with __ and the normal name is an alias. */
6372 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
6375 f = malloc_get_state;
6382 rm -f conftest.
$ac_objext conftest
$ac_exeext
6383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6384 (eval $ac_link) 2>&5
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); } &&
6388 { ac_try
='test -s conftest$ac_exeext'
6389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); }; }; then
6394 ac_cv_func_malloc_get_state
=yes
6396 echo "$as_me: failed program was:" >&5
6397 cat conftest.
$ac_ext >&5
6398 ac_cv_func_malloc_get_state
=no
6400 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6402 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
6403 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
6404 if test $ac_cv_func_malloc_get_state = yes; then
6410 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
6411 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
6412 if test "${ac_cv_func_malloc_set_state+set}" = set; then
6413 echo $ECHO_N "(cached) $ECHO_C" >&6
6415 cat >conftest.
$ac_ext <<_ACEOF
6416 #line $LINENO "configure"
6417 #include "confdefs.h"
6418 /* System header to define __stub macros and hopefully few prototypes,
6419 which can conflict with char malloc_set_state (); below. */
6421 /* Override any gcc2 internal prototype to avoid an error. */
6425 /* We use char because int might match the return type of a gcc2
6426 builtin and then its argument prototype would still apply. */
6427 char malloc_set_state ();
6430 #ifdef F77_DUMMY_MAIN
6434 int F77_DUMMY_MAIN() { return 1; }
6439 /* The GNU C library defines this for functions which it implements
6440 to always fail with ENOSYS. Some functions are actually named
6441 something starting with __ and the normal name is an alias. */
6442 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
6445 f = malloc_set_state;
6452 rm -f conftest.
$ac_objext conftest
$ac_exeext
6453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6454 (eval $ac_link) 2>&5
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); } &&
6458 { ac_try
='test -s conftest$ac_exeext'
6459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); }; }; then
6464 ac_cv_func_malloc_set_state
=yes
6466 echo "$as_me: failed program was:" >&5
6467 cat conftest.
$ac_ext >&5
6468 ac_cv_func_malloc_set_state
=no
6470 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6472 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
6473 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
6474 if test $ac_cv_func_malloc_set_state = yes; then
6480 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
6481 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
6482 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6485 cat >conftest.
$ac_ext <<_ACEOF
6486 #line $LINENO "configure"
6487 #include "confdefs.h"
6488 extern void (* __after_morecore_hook)();
6489 #ifdef F77_DUMMY_MAIN
6493 int F77_DUMMY_MAIN() { return 1; }
6498 __after_morecore_hook = 0
6503 rm -f conftest.
$ac_objext conftest
$ac_exeext
6504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6505 (eval $ac_link) 2>&5
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); } &&
6509 { ac_try
='test -s conftest$ac_exeext'
6510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); }; }; then
6515 emacs_cv_var___after_morecore_hook
=yes
6517 echo "$as_me: failed program was:" >&5
6518 cat conftest.
$ac_ext >&5
6519 emacs_cv_var___after_morecore_hook
=no
6521 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6523 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
6524 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
6525 if test $emacs_cv_var___after_morecore_hook = no
; then
6528 if test "${system_malloc}" = "yes"; then
6531 (The GNU allocators don't work with this system configuration.)"
6533 if test "$doug_lea_malloc" = "yes" ; then
6534 if test "$GNU_MALLOC" = yes ; then
6536 (Using Doug Lea's new malloc from the GNU C Library.)"
6539 cat >>confdefs.h
<<\_ACEOF
6540 #define DOUG_LEA_MALLOC 1
6545 if test x
"${REL_ALLOC}" = x
; then
6546 REL_ALLOC
=${GNU_MALLOC}
6552 for ac_header
in stdlib.h unistd.h
6554 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6556 echo "$as_me:$LINENO: checking for $ac_header" >&5
6557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6559 echo $ECHO_N "(cached) $ECHO_C" >&6
6561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6564 # Is the header compilable?
6565 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6566 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6567 cat >conftest.
$ac_ext <<_ACEOF
6568 #line $LINENO "configure"
6569 #include "confdefs.h"
6570 $ac_includes_default
6571 #include <$ac_header>
6573 rm -f conftest.
$ac_objext
6574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6575 (eval $ac_compile) 2>&5
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); } &&
6579 { ac_try
='test -s conftest.$ac_objext'
6580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); }; }; then
6585 ac_header_compiler
=yes
6587 echo "$as_me: failed program was:" >&5
6588 cat conftest.
$ac_ext >&5
6589 ac_header_compiler
=no
6591 rm -f conftest.
$ac_objext conftest.
$ac_ext
6592 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6593 echo "${ECHO_T}$ac_header_compiler" >&6
6595 # Is the header present?
6596 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6597 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6598 cat >conftest.
$ac_ext <<_ACEOF
6599 #line $LINENO "configure"
6600 #include "confdefs.h"
6601 #include <$ac_header>
6603 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6604 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6606 egrep -v '^ *\+' conftest.er1
>conftest.err
6608 cat conftest.err
>&5
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); } >/dev
/null
; then
6611 if test -s conftest.err
; then
6612 ac_cpp_err
=$ac_c_preproc_warn_flag
6619 if test -z "$ac_cpp_err"; then
6620 ac_header_preproc
=yes
6622 echo "$as_me: failed program was:" >&5
6623 cat conftest.
$ac_ext >&5
6624 ac_header_preproc
=no
6626 rm -f conftest.err conftest.
$ac_ext
6627 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6628 echo "${ECHO_T}$ac_header_preproc" >&6
6630 # So? What about this header?
6631 case $ac_header_compiler:$ac_header_preproc in
6633 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6634 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6636 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6638 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6639 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6640 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6641 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6643 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6645 echo "$as_me:$LINENO: checking for $ac_header" >&5
6646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6648 echo $ECHO_N "(cached) $ECHO_C" >&6
6650 eval "$as_ac_Header=$ac_header_preproc"
6652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6656 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6657 cat >>confdefs.h
<<_ACEOF
6658 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6666 for ac_func
in getpagesize
6668 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6669 echo "$as_me:$LINENO: checking for $ac_func" >&5
6670 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6671 if eval "test \"\${$as_ac_var+set}\" = set"; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
6674 cat >conftest.
$ac_ext <<_ACEOF
6675 #line $LINENO "configure"
6676 #include "confdefs.h"
6677 /* System header to define __stub macros and hopefully few prototypes,
6678 which can conflict with char $ac_func (); below. */
6680 /* Override any gcc2 internal prototype to avoid an error. */
6684 /* We use char because int might match the return type of a gcc2
6685 builtin and then its argument prototype would still apply. */
6689 #ifdef F77_DUMMY_MAIN
6693 int F77_DUMMY_MAIN() { return 1; }
6698 /* The GNU C library defines this for functions which it implements
6699 to always fail with ENOSYS. Some functions are actually named
6700 something starting with __ and the normal name is an alias. */
6701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6711 rm -f conftest.
$ac_objext conftest
$ac_exeext
6712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6713 (eval $ac_link) 2>&5
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); } &&
6717 { ac_try
='test -s conftest$ac_exeext'
6718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); }; }; then
6723 eval "$as_ac_var=yes"
6725 echo "$as_me: failed program was:" >&5
6726 cat conftest.
$ac_ext >&5
6727 eval "$as_ac_var=no"
6729 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6732 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6733 if test `eval echo '${'$as_ac_var'}'` = yes; then
6734 cat >>confdefs.h
<<_ACEOF
6735 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6741 echo "$as_me:$LINENO: checking for working mmap" >&5
6742 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6743 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6744 echo $ECHO_N "(cached) $ECHO_C" >&6
6746 if test "$cross_compiling" = yes; then
6747 ac_cv_func_mmap_fixed_mapped
=no
6749 cat >conftest.
$ac_ext <<_ACEOF
6750 #line $LINENO "configure"
6751 #include "confdefs.h"
6752 $ac_includes_default
6753 /* malloc might have been renamed as rpl_malloc. */
6756 /* Thanks to Mike Haertel and Jim Avera for this test.
6757 Here is a matrix of mmap possibilities:
6758 mmap private not fixed
6759 mmap private fixed at somewhere currently unmapped
6760 mmap private fixed at somewhere already mapped
6761 mmap shared not fixed
6762 mmap shared fixed at somewhere currently unmapped
6763 mmap shared fixed at somewhere already mapped
6764 For private mappings, we should verify that changes cannot be read()
6765 back from the file, nor mmap's back from the file at a different
6766 address. (There have been systems where private was not correctly
6767 implemented like the infamous i386 svr4.0, and systems where the
6768 VM page cache was not coherent with the file system buffer cache
6769 like early versions of FreeBSD and possibly contemporary NetBSD.)
6770 For shared mappings, we should conversely verify that changes get
6771 propagated back to all the places they're supposed to be.
6773 Grep wants private fixed already mapped.
6774 The main things grep needs to know about mmap are:
6775 * does it exist and is it safe to write into the mmap'd area
6776 * how to use it (BSD variants) */
6779 #include <sys/mman.h>
6781 #if !STDC_HEADERS && !HAVE_STDLIB_H
6785 /* This mess was copied from the GNU getpagesize.h. */
6786 #if !HAVE_GETPAGESIZE
6787 /* Assume that all systems that can run configure have sys/param.h. */
6788 # if !HAVE_SYS_PARAM_H
6789 # define HAVE_SYS_PARAM_H 1
6792 # ifdef _SC_PAGESIZE
6793 # define getpagesize() sysconf(_SC_PAGESIZE)
6794 # else /* no _SC_PAGESIZE */
6795 # if HAVE_SYS_PARAM_H
6796 # include <sys/param.h>
6797 # ifdef EXEC_PAGESIZE
6798 # define getpagesize() EXEC_PAGESIZE
6799 # else /* no EXEC_PAGESIZE */
6801 # define getpagesize() NBPG * CLSIZE
6804 # endif /* no CLSIZE */
6805 # else /* no NBPG */
6807 # define getpagesize() NBPC
6808 # else /* no NBPC */
6810 # define getpagesize() PAGESIZE
6811 # endif /* PAGESIZE */
6812 # endif /* no NBPC */
6813 # endif /* no NBPG */
6814 # endif /* no EXEC_PAGESIZE */
6815 # else /* no HAVE_SYS_PARAM_H */
6816 # define getpagesize() 8192 /* punt totally */
6817 # endif /* no HAVE_SYS_PARAM_H */
6818 # endif /* no _SC_PAGESIZE */
6820 #endif /* no HAVE_GETPAGESIZE */
6825 char *data, *data2, *data3;
6829 pagesize = getpagesize ();
6831 /* First, make a file with some known garbage in it. */
6832 data = (char *) malloc (pagesize);
6835 for (i = 0; i < pagesize; ++i)
6836 *(data + i) = rand ();
6838 fd = creat ("conftest.mmap", 0600);
6841 if (write (fd, data, pagesize) != pagesize)
6845 /* Next, try to mmap the file at a fixed address which already has
6846 something else allocated at it. If we can, also make sure that
6847 we see the same garbage. */
6848 fd = open ("conftest.mmap", O_RDWR);
6851 data2 = (char *) malloc (2 * pagesize);
6854 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6855 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6856 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6858 for (i = 0; i < pagesize; ++i)
6859 if (*(data + i) != *(data2 + i))
6862 /* Finally, make sure that changes to the mapped area do not
6863 percolate back to the file as seen by read(). (This is a bug on
6864 some variants of i386 svr4.0.) */
6865 for (i = 0; i < pagesize; ++i)
6866 *(data2 + i) = *(data2 + i) + 1;
6867 data3 = (char *) malloc (pagesize);
6870 if (read (fd, data3, pagesize) != pagesize)
6872 for (i = 0; i < pagesize; ++i)
6873 if (*(data + i) != *(data3 + i))
6879 rm -f conftest
$ac_exeext
6880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6881 (eval $ac_link) 2>&5
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); }; }; then
6890 ac_cv_func_mmap_fixed_mapped
=yes
6892 echo "$as_me: program exited with status $ac_status" >&5
6893 echo "$as_me: failed program was:" >&5
6894 cat conftest.
$ac_ext >&5
6896 ac_cv_func_mmap_fixed_mapped
=no
6898 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6901 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6902 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6903 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6905 cat >>confdefs.h
<<\_ACEOF
6912 if test $use_mmap_for_buffers = yes; then
6916 LIBS
="$libsrc_libs $LIBS"
6919 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6920 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6921 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6922 echo $ECHO_N "(cached) $ECHO_C" >&6
6924 ac_check_lib_save_LIBS
=$LIBS
6926 cat >conftest.
$ac_ext <<_ACEOF
6927 #line $LINENO "configure"
6928 #include "confdefs.h"
6930 /* Override any gcc2 internal prototype to avoid an error. */
6934 /* We use char because int might match the return type of a gcc2
6935 builtin and then its argument prototype would still apply. */
6937 #ifdef F77_DUMMY_MAIN
6941 int F77_DUMMY_MAIN() { return 1; }
6951 rm -f conftest.
$ac_objext conftest
$ac_exeext
6952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6953 (eval $ac_link) 2>&5
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); } &&
6957 { ac_try
='test -s conftest$ac_exeext'
6958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); }; }; then
6963 ac_cv_lib_dnet_dnet_ntoa
=yes
6965 echo "$as_me: failed program was:" >&5
6966 cat conftest.
$ac_ext >&5
6967 ac_cv_lib_dnet_dnet_ntoa
=no
6969 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6970 LIBS
=$ac_check_lib_save_LIBS
6972 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6973 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6974 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6975 cat >>confdefs.h
<<_ACEOF
6976 #define HAVE_LIBDNET 1
6984 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
6985 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
6986 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
6989 ac_check_lib_save_LIBS
=$LIBS
6991 cat >conftest.
$ac_ext <<_ACEOF
6992 #line $LINENO "configure"
6993 #include "confdefs.h"
6996 #ifdef F77_DUMMY_MAIN
7000 int F77_DUMMY_MAIN() { return 1; }
7010 rm -f conftest.
$ac_objext conftest
$ac_exeext
7011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7012 (eval $ac_link) 2>&5
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); } &&
7016 { ac_try
='test -s conftest$ac_exeext'
7017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); }; }; then
7022 ac_cv_lib_Xbsd_main
=yes
7024 echo "$as_me: failed program was:" >&5
7025 cat conftest.
$ac_ext >&5
7026 ac_cv_lib_Xbsd_main
=no
7028 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7029 LIBS
=$ac_check_lib_save_LIBS
7031 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
7032 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
7033 if test $ac_cv_lib_Xbsd_main = yes; then
7034 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
7039 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
7040 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
7041 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
7042 echo $ECHO_N "(cached) $ECHO_C" >&6
7044 ac_check_lib_save_LIBS
=$LIBS
7045 LIBS
="-lpthreads $LIBS"
7046 cat >conftest.
$ac_ext <<_ACEOF
7047 #line $LINENO "configure"
7048 #include "confdefs.h"
7050 /* Override any gcc2 internal prototype to avoid an error. */
7054 /* We use char because int might match the return type of a gcc2
7055 builtin and then its argument prototype would still apply. */
7057 #ifdef F77_DUMMY_MAIN
7061 int F77_DUMMY_MAIN() { return 1; }
7071 rm -f conftest.
$ac_objext conftest
$ac_exeext
7072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7073 (eval $ac_link) 2>&5
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); } &&
7077 { ac_try
='test -s conftest$ac_exeext'
7078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082 (exit $ac_status); }; }; then
7083 ac_cv_lib_pthreads_cma_open
=yes
7085 echo "$as_me: failed program was:" >&5
7086 cat conftest.
$ac_ext >&5
7087 ac_cv_lib_pthreads_cma_open
=no
7089 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7090 LIBS
=$ac_check_lib_save_LIBS
7092 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
7093 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
7094 if test $ac_cv_lib_pthreads_cma_open = yes; then
7095 cat >>confdefs.h
<<_ACEOF
7096 #define HAVE_LIBPTHREADS 1
7099 LIBS
="-lpthreads $LIBS"
7104 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
7105 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
7106 if test -d /usr
/X386
/include
; then
7108 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
7112 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
7113 echo "${ECHO_T}$HAVE_XFREE386" >&6
7115 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
7116 # for the tests that follow. We set it back to REAL_CFLAGS later on.
7118 REAL_CPPFLAGS
="$CPPFLAGS"
7120 if test "${HAVE_X11}" = "yes"; then
7121 DEFS
="$C_SWITCH_X_SITE $DEFS"
7122 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
7124 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
7125 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
7127 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7128 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7129 # but it's more convenient here to set LD_RUN_PATH
7130 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7131 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
7132 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7136 if test "${opsys}" = "gnu-linux"; then
7137 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
7138 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
7139 cat >conftest.
$ac_ext <<_ACEOF
7140 #line $LINENO "configure"
7141 #include "confdefs.h"
7143 #ifdef F77_DUMMY_MAIN
7147 int F77_DUMMY_MAIN() { return 1; }
7152 XOpenDisplay ("foo");
7157 rm -f conftest.
$ac_objext conftest
$ac_exeext
7158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7159 (eval $ac_link) 2>&5
7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 (exit $ac_status); } &&
7163 { ac_try
='test -s conftest$ac_exeext'
7164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); }; }; then
7169 xlinux_first_failure
=no
7171 echo "$as_me: failed program was:" >&5
7172 cat conftest.
$ac_ext >&5
7173 xlinux_first_failure
=yes
7175 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7176 if test "${xlinux_first_failure}" = "yes"; then
7177 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
7178 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
7179 OLD_CPPFLAGS
="$CPPFLAGS"
7181 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
7182 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
7183 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
7184 LIBS
="$LIBS -b i486-linuxaout"
7185 cat >conftest.
$ac_ext <<_ACEOF
7186 #line $LINENO "configure"
7187 #include "confdefs.h"
7189 #ifdef F77_DUMMY_MAIN
7193 int F77_DUMMY_MAIN() { return 1; }
7198 XOpenDisplay ("foo");
7203 rm -f conftest.
$ac_objext conftest
$ac_exeext
7204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7205 (eval $ac_link) 2>&5
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); } &&
7209 { ac_try
='test -s conftest$ac_exeext'
7210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214 (exit $ac_status); }; }; then
7215 xlinux_second_failure
=no
7217 echo "$as_me: failed program was:" >&5
7218 cat conftest.
$ac_ext >&5
7219 xlinux_second_failure
=yes
7221 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7222 if test "${xlinux_second_failure}" = "yes"; then
7223 # If we get the same failure with -b, there is no use adding -b.
7224 # So take it out. This plays safe.
7225 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
7226 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
7227 CPPFLAGS
="$OLD_CPPFLAGS"
7229 echo "$as_me:$LINENO: result: no" >&5
7230 echo "${ECHO_T}no" >&6
7232 echo "$as_me:$LINENO: result: yes" >&5
7233 echo "${ECHO_T}yes" >&6
7236 echo "$as_me:$LINENO: result: no" >&5
7237 echo "${ECHO_T}no" >&6
7241 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7242 # header files included from there.
7243 echo "$as_me:$LINENO: checking for Xkb" >&5
7244 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
7245 cat >conftest.
$ac_ext <<_ACEOF
7246 #line $LINENO "configure"
7247 #include "confdefs.h"
7248 #include <X11/Xlib.h>
7249 #include <X11/XKBlib.h>
7250 #ifdef F77_DUMMY_MAIN
7254 int F77_DUMMY_MAIN() { return 1; }
7259 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7264 rm -f conftest.
$ac_objext conftest
$ac_exeext
7265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7266 (eval $ac_link) 2>&5
7268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); } &&
7270 { ac_try
='test -s conftest$ac_exeext'
7271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); }; }; then
7278 echo "$as_me: failed program was:" >&5
7279 cat conftest.
$ac_ext >&5
7282 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7283 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
7284 echo "${ECHO_T}$emacs_xkb" >&6
7285 if test $emacs_xkb = yes; then
7287 cat >>confdefs.h
<<\_ACEOF
7288 #define HAVE_XKBGETKEYBOARD 1
7297 for ac_func
in XrmSetDatabase XScreenResourceString \
7298 XScreenNumberOfScreen XSetWMProtocols
7300 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7301 echo "$as_me:$LINENO: checking for $ac_func" >&5
7302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7303 if eval "test \"\${$as_ac_var+set}\" = set"; then
7304 echo $ECHO_N "(cached) $ECHO_C" >&6
7306 cat >conftest.
$ac_ext <<_ACEOF
7307 #line $LINENO "configure"
7308 #include "confdefs.h"
7309 /* System header to define __stub macros and hopefully few prototypes,
7310 which can conflict with char $ac_func (); below. */
7312 /* Override any gcc2 internal prototype to avoid an error. */
7316 /* We use char because int might match the return type of a gcc2
7317 builtin and then its argument prototype would still apply. */
7321 #ifdef F77_DUMMY_MAIN
7325 int F77_DUMMY_MAIN() { return 1; }
7330 /* The GNU C library defines this for functions which it implements
7331 to always fail with ENOSYS. Some functions are actually named
7332 something starting with __ and the normal name is an alias. */
7333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7343 rm -f conftest.
$ac_objext conftest
$ac_exeext
7344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7345 (eval $ac_link) 2>&5
7347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); } &&
7349 { ac_try
='test -s conftest$ac_exeext'
7350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); }; }; then
7355 eval "$as_ac_var=yes"
7357 echo "$as_me: failed program was:" >&5
7358 cat conftest.
$ac_ext >&5
7359 eval "$as_ac_var=no"
7361 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7364 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7365 if test `eval echo '${'$as_ac_var'}'` = yes; then
7366 cat >>confdefs.h
<<_ACEOF
7367 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7375 if test "${window_system}" = "x11"; then
7376 echo "$as_me:$LINENO: checking X11 version 6" >&5
7377 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
7378 if test "${emacs_cv_x11_version_6+set}" = set; then
7379 echo $ECHO_N "(cached) $ECHO_C" >&6
7381 cat >conftest.
$ac_ext <<_ACEOF
7382 #line $LINENO "configure"
7383 #include "confdefs.h"
7384 #include <X11/Xlib.h>
7385 #ifdef F77_DUMMY_MAIN
7389 int F77_DUMMY_MAIN() { return 1; }
7394 #if XlibSpecificationRelease < 6
7402 rm -f conftest.
$ac_objext conftest
$ac_exeext
7403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7404 (eval $ac_link) 2>&5
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); } &&
7408 { ac_try
='test -s conftest$ac_exeext'
7409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); }; }; then
7414 emacs_cv_x11_version_6
=yes
7416 echo "$as_me: failed program was:" >&5
7417 cat conftest.
$ac_ext >&5
7418 emacs_cv_x11_version_6
=no
7420 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7423 if test $emacs_cv_x11_version_6 = yes; then
7424 echo "$as_me:$LINENO: result: 6 or newer" >&5
7425 echo "${ECHO_T}6 or newer" >&6
7427 cat >>confdefs.h
<<\_ACEOF
7428 #define HAVE_X11R6 1
7432 echo "$as_me:$LINENO: result: before 6" >&5
7433 echo "${ECHO_T}before 6" >&6
7437 if test "${window_system}" = "x11"; then
7438 echo "$as_me:$LINENO: checking X11 version 5" >&5
7439 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
7440 if test "${emacs_cv_x11_version_5+set}" = set; then
7441 echo $ECHO_N "(cached) $ECHO_C" >&6
7443 cat >conftest.
$ac_ext <<_ACEOF
7444 #line $LINENO "configure"
7445 #include "confdefs.h"
7446 #include <X11/Xlib.h>
7447 #ifdef F77_DUMMY_MAIN
7451 int F77_DUMMY_MAIN() { return 1; }
7456 #if XlibSpecificationRelease < 5
7464 rm -f conftest.
$ac_objext conftest
$ac_exeext
7465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7466 (eval $ac_link) 2>&5
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); } &&
7470 { ac_try
='test -s conftest$ac_exeext'
7471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); }; }; then
7476 emacs_cv_x11_version_5
=yes
7478 echo "$as_me: failed program was:" >&5
7479 cat conftest.
$ac_ext >&5
7480 emacs_cv_x11_version_5
=no
7482 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7485 if test $emacs_cv_x11_version_5 = yes; then
7486 echo "$as_me:$LINENO: result: 5 or newer" >&5
7487 echo "${ECHO_T}5 or newer" >&6
7490 cat >>confdefs.h
<<\_ACEOF
7491 #define HAVE_X11R5 1
7496 echo "$as_me:$LINENO: result: before 5" >&5
7497 echo "${ECHO_T}before 5" >&6
7501 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
7502 if test x
"${HAVE_X11R5}" = xyes
; then
7503 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
7504 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
7505 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
7506 echo $ECHO_N "(cached) $ECHO_C" >&6
7508 cat >conftest.
$ac_ext <<_ACEOF
7509 #line $LINENO "configure"
7510 #include "confdefs.h"
7512 #include <X11/Intrinsic.h>
7513 #include <X11/Xaw/Simple.h>
7514 #ifdef F77_DUMMY_MAIN
7518 int F77_DUMMY_MAIN() { return 1; }
7528 rm -f conftest.
$ac_objext conftest
$ac_exeext
7529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7530 (eval $ac_link) 2>&5
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); } &&
7534 { ac_try
='test -s conftest$ac_exeext'
7535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); }; }; then
7540 emacs_cv_x11_version_5_with_xaw
=yes
7542 echo "$as_me: failed program was:" >&5
7543 cat conftest.
$ac_ext >&5
7544 emacs_cv_x11_version_5_with_xaw
=no
7546 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7549 if test $emacs_cv_x11_version_5_with_xaw = yes; then
7550 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
7551 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
7554 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
7555 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
7563 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
7565 if test "${USE_X_TOOLKIT}" != "none"; then
7566 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
7567 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
7568 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
7569 echo $ECHO_N "(cached) $ECHO_C" >&6
7571 cat >conftest.
$ac_ext <<_ACEOF
7572 #line $LINENO "configure"
7573 #include "confdefs.h"
7574 #include <X11/Intrinsic.h>
7575 #ifdef F77_DUMMY_MAIN
7579 int F77_DUMMY_MAIN() { return 1; }
7584 #if XtSpecificationRelease < 6
7592 rm -f conftest.
$ac_objext conftest
$ac_exeext
7593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7594 (eval $ac_link) 2>&5
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); } &&
7598 { ac_try
='test -s conftest$ac_exeext'
7599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); }; }; then
7604 emacs_cv_x11_toolkit_version_6
=yes
7606 echo "$as_me: failed program was:" >&5
7607 cat conftest.
$ac_ext >&5
7608 emacs_cv_x11_toolkit_version_6
=no
7610 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7613 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
7614 if test $emacs_cv_x11_toolkit_version_6 = yes; then
7615 echo "$as_me:$LINENO: result: 6 or newer" >&5
7616 echo "${ECHO_T}6 or newer" >&6
7618 cat >>confdefs.h
<<\_ACEOF
7619 #define HAVE_X11XTR6 1
7623 echo "$as_me:$LINENO: result: before 6" >&5
7624 echo "${ECHO_T}before 6" >&6
7628 if test x
$HAVE_X11XTR6 = xyes
; then
7629 LIBS
="-lXt -lSM -lICE $LIBS"
7634 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
7635 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
7636 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
7637 echo $ECHO_N "(cached) $ECHO_C" >&6
7639 ac_check_lib_save_LIBS
=$LIBS
7641 cat >conftest.
$ac_ext <<_ACEOF
7642 #line $LINENO "configure"
7643 #include "confdefs.h"
7645 /* Override any gcc2 internal prototype to avoid an error. */
7649 /* We use char because int might match the return type of a gcc2
7650 builtin and then its argument prototype would still apply. */
7651 char XmuConvertStandardSelection ();
7652 #ifdef F77_DUMMY_MAIN
7656 int F77_DUMMY_MAIN() { return 1; }
7661 XmuConvertStandardSelection ();
7666 rm -f conftest.
$ac_objext conftest
$ac_exeext
7667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7668 (eval $ac_link) 2>&5
7670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671 (exit $ac_status); } &&
7672 { ac_try
='test -s conftest$ac_exeext'
7673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677 (exit $ac_status); }; }; then
7678 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
7680 echo "$as_me: failed program was:" >&5
7681 cat conftest.
$ac_ext >&5
7682 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
7684 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7685 LIBS
=$ac_check_lib_save_LIBS
7687 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
7688 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
7689 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
7690 cat >>confdefs.h
<<_ACEOF
7691 #define HAVE_LIBXMU 1
7698 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
7701 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
7702 if test "${HAVE_X11}" = "yes"; then
7703 if test "${USE_X_TOOLKIT}" != "none"; then
7705 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
7706 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7707 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7708 echo $ECHO_N "(cached) $ECHO_C" >&6
7710 ac_check_lib_save_LIBS
=$LIBS
7712 cat >conftest.
$ac_ext <<_ACEOF
7713 #line $LINENO "configure"
7714 #include "confdefs.h"
7716 /* Override any gcc2 internal prototype to avoid an error. */
7720 /* We use char because int might match the return type of a gcc2
7721 builtin and then its argument prototype would still apply. */
7722 char XShapeQueryExtension ();
7723 #ifdef F77_DUMMY_MAIN
7727 int F77_DUMMY_MAIN() { return 1; }
7732 XShapeQueryExtension ();
7737 rm -f conftest.
$ac_objext conftest
$ac_exeext
7738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7739 (eval $ac_link) 2>&5
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); } &&
7743 { ac_try
='test -s conftest$ac_exeext'
7744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); }; }; then
7749 ac_cv_lib_Xext_XShapeQueryExtension
=yes
7751 echo "$as_me: failed program was:" >&5
7752 cat conftest.
$ac_ext >&5
7753 ac_cv_lib_Xext_XShapeQueryExtension
=no
7755 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7756 LIBS
=$ac_check_lib_save_LIBS
7758 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
7759 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
7760 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
7761 cat >>confdefs.h
<<_ACEOF
7762 #define HAVE_LIBXEXT 1
7772 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
7773 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
7774 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
7775 if test "${emacs_cv_motif_version_2_1+set}" = set; then
7776 echo $ECHO_N "(cached) $ECHO_C" >&6
7778 cat >conftest.
$ac_ext <<_ACEOF
7779 #line $LINENO "configure"
7780 #include "confdefs.h"
7782 #ifdef F77_DUMMY_MAIN
7786 int F77_DUMMY_MAIN() { return 1; }
7791 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
7794 Motif version prior to 2.1.
7800 rm -f conftest.
$ac_objext
7801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7802 (eval $ac_compile) 2>&5
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); } &&
7806 { ac_try
='test -s conftest.$ac_objext'
7807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); }; }; then
7812 emacs_cv_motif_version_2_1
=yes
7814 echo "$as_me: failed program was:" >&5
7815 cat conftest.
$ac_ext >&5
7816 emacs_cv_motif_version_2_1
=no
7818 rm -f conftest.
$ac_objext conftest.
$ac_ext
7820 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
7821 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
7822 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
7823 if test $emacs_cv_motif_version_2_1 = yes; then
7826 cat >>confdefs.h
<<\_ACEOF
7827 #define HAVE_MOTIF_2_1 1
7830 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
7831 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
7832 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
7833 echo $ECHO_N "(cached) $ECHO_C" >&6
7835 ac_check_lib_save_LIBS
=$LIBS
7837 cat >conftest.
$ac_ext <<_ACEOF
7838 #line $LINENO "configure"
7839 #include "confdefs.h"
7841 /* Override any gcc2 internal prototype to avoid an error. */
7845 /* We use char because int might match the return type of a gcc2
7846 builtin and then its argument prototype would still apply. */
7847 char XpCreateContext ();
7848 #ifdef F77_DUMMY_MAIN
7852 int F77_DUMMY_MAIN() { return 1; }
7862 rm -f conftest.
$ac_objext conftest
$ac_exeext
7863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7864 (eval $ac_link) 2>&5
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); } &&
7868 { ac_try
='test -s conftest$ac_exeext'
7869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); }; }; then
7874 ac_cv_lib_Xp_XpCreateContext
=yes
7876 echo "$as_me: failed program was:" >&5
7877 cat conftest.
$ac_ext >&5
7878 ac_cv_lib_Xp_XpCreateContext
=no
7880 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7881 LIBS
=$ac_check_lib_save_LIBS
7883 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
7884 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
7885 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
7889 if test ${HAVE_LIBXP} = yes; then
7891 cat >>confdefs.h
<<\_ACEOF
7892 #define HAVE_LIBXP 1
7899 ### Is -lXaw3d available?
7901 if test "${HAVE_X11}" = "yes"; then
7902 if test "${USE_X_TOOLKIT}" != "none"; then
7903 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
7904 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
7905 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
7906 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7909 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
7910 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
7912 # Is the header compilable?
7913 echo "$as_me:$LINENO: checking X11/Xaw3d/Scrollbar.h usability" >&5
7914 echo $ECHO_N "checking X11/Xaw3d/Scrollbar.h usability... $ECHO_C" >&6
7915 cat >conftest.
$ac_ext <<_ACEOF
7916 #line $LINENO "configure"
7917 #include "confdefs.h"
7918 $ac_includes_default
7919 #include <X11/Xaw3d/Scrollbar.h>
7921 rm -f conftest.
$ac_objext
7922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7923 (eval $ac_compile) 2>&5
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); } &&
7927 { ac_try
='test -s conftest.$ac_objext'
7928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); }; }; then
7933 ac_header_compiler
=yes
7935 echo "$as_me: failed program was:" >&5
7936 cat conftest.
$ac_ext >&5
7937 ac_header_compiler
=no
7939 rm -f conftest.
$ac_objext conftest.
$ac_ext
7940 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7941 echo "${ECHO_T}$ac_header_compiler" >&6
7943 # Is the header present?
7944 echo "$as_me:$LINENO: checking X11/Xaw3d/Scrollbar.h presence" >&5
7945 echo $ECHO_N "checking X11/Xaw3d/Scrollbar.h presence... $ECHO_C" >&6
7946 cat >conftest.
$ac_ext <<_ACEOF
7947 #line $LINENO "configure"
7948 #include "confdefs.h"
7949 #include <X11/Xaw3d/Scrollbar.h>
7951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7952 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7954 egrep -v '^ *\+' conftest.er1
>conftest.err
7956 cat conftest.err
>&5
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); } >/dev
/null
; then
7959 if test -s conftest.err
; then
7960 ac_cpp_err
=$ac_c_preproc_warn_flag
7967 if test -z "$ac_cpp_err"; then
7968 ac_header_preproc
=yes
7970 echo "$as_me: failed program was:" >&5
7971 cat conftest.
$ac_ext >&5
7972 ac_header_preproc
=no
7974 rm -f conftest.err conftest.
$ac_ext
7975 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7976 echo "${ECHO_T}$ac_header_preproc" >&6
7978 # So? What about this header?
7979 case $ac_header_compiler:$ac_header_preproc in
7981 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: accepted by the compiler, rejected by the preprocessor!" >&5
7982 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7983 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&5
7984 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&2;};;
7986 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: present but cannot be compiled" >&5
7987 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: present but cannot be compiled" >&2;}
7988 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: check for missing prerequisite headers?" >&5
7989 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: check for missing prerequisite headers?" >&2;}
7990 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&5
7991 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&2;};;
7993 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
7994 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
7995 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
7996 echo $ECHO_N "(cached) $ECHO_C" >&6
7998 ac_cv_header_X11_Xaw3d_Scrollbar_h
=$ac_header_preproc
8000 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
8001 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
8004 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
8005 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
8006 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
8007 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
8008 echo $ECHO_N "(cached) $ECHO_C" >&6
8010 ac_check_lib_save_LIBS
=$LIBS
8011 LIBS
="-lXaw3d $LIBS"
8012 cat >conftest.
$ac_ext <<_ACEOF
8013 #line $LINENO "configure"
8014 #include "confdefs.h"
8016 /* Override any gcc2 internal prototype to avoid an error. */
8020 /* We use char because int might match the return type of a gcc2
8021 builtin and then its argument prototype would still apply. */
8022 char XawScrollbarSetThumb ();
8023 #ifdef F77_DUMMY_MAIN
8027 int F77_DUMMY_MAIN() { return 1; }
8032 XawScrollbarSetThumb ();
8037 rm -f conftest.
$ac_objext conftest
$ac_exeext
8038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8039 (eval $ac_link) 2>&5
8041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042 (exit $ac_status); } &&
8043 { ac_try
='test -s conftest$ac_exeext'
8044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); }; }; then
8049 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
8051 echo "$as_me: failed program was:" >&5
8052 cat conftest.
$ac_ext >&5
8053 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
8055 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8056 LIBS
=$ac_check_lib_save_LIBS
8058 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
8059 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
8060 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
8067 if test "${HAVE_XAW3D}" = "yes"; then
8069 cat >>confdefs.h
<<\_ACEOF
8070 #define HAVE_XAW3D 1
8079 USE_TOOLKIT_SCROLL_BARS
=no
8080 if test "${with_toolkit_scroll_bars}" != "no"; then
8081 if test "${USE_X_TOOLKIT}" != "none"; then
8082 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8083 cat >>confdefs.h
<<\_ACEOF
8084 #define USE_TOOLKIT_SCROLL_BARS 1
8088 USE_TOOLKIT_SCROLL_BARS
=yes
8089 elif test "${HAVE_XAW3D}" = "yes"; then
8090 cat >>confdefs.h
<<\_ACEOF
8091 #define USE_TOOLKIT_SCROLL_BARS 1
8094 USE_TOOLKIT_SCROLL_BARS
=yes
8100 if test "${with_xim}" != "no"; then
8102 cat >>confdefs.h
<<\_ACEOF
8108 ### Use -lXpm if available, unless `--with-xpm=no'.
8110 if test "${HAVE_X11}" = "yes"; then
8111 if test "${with_xpm}" != "no"; then
8112 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8113 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8114 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8115 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8116 echo $ECHO_N "(cached) $ECHO_C" >&6
8118 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8119 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8121 # Is the header compilable?
8122 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
8123 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
8124 cat >conftest.
$ac_ext <<_ACEOF
8125 #line $LINENO "configure"
8126 #include "confdefs.h"
8127 $ac_includes_default
8128 #include <X11/xpm.h>
8130 rm -f conftest.
$ac_objext
8131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8132 (eval $ac_compile) 2>&5
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); } &&
8136 { ac_try
='test -s conftest.$ac_objext'
8137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); }; }; then
8142 ac_header_compiler
=yes
8144 echo "$as_me: failed program was:" >&5
8145 cat conftest.
$ac_ext >&5
8146 ac_header_compiler
=no
8148 rm -f conftest.
$ac_objext conftest.
$ac_ext
8149 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8150 echo "${ECHO_T}$ac_header_compiler" >&6
8152 # Is the header present?
8153 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
8154 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
8155 cat >conftest.
$ac_ext <<_ACEOF
8156 #line $LINENO "configure"
8157 #include "confdefs.h"
8158 #include <X11/xpm.h>
8160 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8161 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8163 egrep -v '^ *\+' conftest.er1
>conftest.err
8165 cat conftest.err
>&5
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); } >/dev
/null
; then
8168 if test -s conftest.err
; then
8169 ac_cpp_err
=$ac_c_preproc_warn_flag
8176 if test -z "$ac_cpp_err"; then
8177 ac_header_preproc
=yes
8179 echo "$as_me: failed program was:" >&5
8180 cat conftest.
$ac_ext >&5
8181 ac_header_preproc
=no
8183 rm -f conftest.err conftest.
$ac_ext
8184 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8185 echo "${ECHO_T}$ac_header_preproc" >&6
8187 # So? What about this header?
8188 case $ac_header_compiler:$ac_header_preproc in
8190 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
8191 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8192 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8193 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;};;
8195 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
8196 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
8197 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
8198 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
8199 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8200 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;};;
8202 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8203 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8204 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8205 echo $ECHO_N "(cached) $ECHO_C" >&6
8207 ac_cv_header_X11_xpm_h
=$ac_header_preproc
8209 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8210 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8213 if test $ac_cv_header_X11_xpm_h = yes; then
8214 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
8215 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
8216 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
8217 echo $ECHO_N "(cached) $ECHO_C" >&6
8219 ac_check_lib_save_LIBS
=$LIBS
8220 LIBS
="-lXpm -lX11 $LIBS"
8221 cat >conftest.
$ac_ext <<_ACEOF
8222 #line $LINENO "configure"
8223 #include "confdefs.h"
8225 /* Override any gcc2 internal prototype to avoid an error. */
8229 /* We use char because int might match the return type of a gcc2
8230 builtin and then its argument prototype would still apply. */
8231 char XpmReadFileToPixmap ();
8232 #ifdef F77_DUMMY_MAIN
8236 int F77_DUMMY_MAIN() { return 1; }
8241 XpmReadFileToPixmap ();
8246 rm -f conftest.
$ac_objext conftest
$ac_exeext
8247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8248 (eval $ac_link) 2>&5
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); } &&
8252 { ac_try
='test -s conftest$ac_exeext'
8253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; }; then
8258 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
8260 echo "$as_me: failed program was:" >&5
8261 cat conftest.
$ac_ext >&5
8262 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
8264 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8265 LIBS
=$ac_check_lib_save_LIBS
8267 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
8268 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
8269 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
8276 if test "${HAVE_XPM}" = "yes"; then
8277 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
8278 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
8279 cat >conftest.
$ac_ext <<_ACEOF
8280 #line $LINENO "configure"
8281 #include "confdefs.h"
8282 #include "X11/xpm.h"
8283 #ifndef XpmReturnAllocPixels
8284 no_return_alloc_pixels
8288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8289 egrep "no_return_alloc_pixels" >/dev
/null
2>&1; then
8297 if test "${HAVE_XPM}" = "yes"; then
8298 echo "$as_me:$LINENO: result: yes" >&5
8299 echo "${ECHO_T}yes" >&6
8301 echo "$as_me:$LINENO: result: no" >&5
8302 echo "${ECHO_T}no" >&6
8307 if test "${HAVE_XPM}" = "yes"; then
8309 cat >>confdefs.h
<<\_ACEOF
8316 ### Use -ljpeg if available, unless `--with-jpeg=no'.
8318 if test "${HAVE_X11}" = "yes"; then
8319 if test "${with_jpeg}" != "no"; then
8320 if test "${ac_cv_header_jerror_h+set}" = set; then
8321 echo "$as_me:$LINENO: checking for jerror.h" >&5
8322 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
8323 if test "${ac_cv_header_jerror_h+set}" = set; then
8324 echo $ECHO_N "(cached) $ECHO_C" >&6
8326 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
8327 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
8329 # Is the header compilable?
8330 echo "$as_me:$LINENO: checking jerror.h usability" >&5
8331 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
8332 cat >conftest.
$ac_ext <<_ACEOF
8333 #line $LINENO "configure"
8334 #include "confdefs.h"
8335 $ac_includes_default
8338 rm -f conftest.
$ac_objext
8339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8340 (eval $ac_compile) 2>&5
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); } &&
8344 { ac_try
='test -s conftest.$ac_objext'
8345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); }; }; then
8350 ac_header_compiler
=yes
8352 echo "$as_me: failed program was:" >&5
8353 cat conftest.
$ac_ext >&5
8354 ac_header_compiler
=no
8356 rm -f conftest.
$ac_objext conftest.
$ac_ext
8357 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8358 echo "${ECHO_T}$ac_header_compiler" >&6
8360 # Is the header present?
8361 echo "$as_me:$LINENO: checking jerror.h presence" >&5
8362 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
8363 cat >conftest.
$ac_ext <<_ACEOF
8364 #line $LINENO "configure"
8365 #include "confdefs.h"
8368 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8369 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8371 egrep -v '^ *\+' conftest.er1
>conftest.err
8373 cat conftest.err
>&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); } >/dev
/null
; then
8376 if test -s conftest.err
; then
8377 ac_cpp_err
=$ac_c_preproc_warn_flag
8384 if test -z "$ac_cpp_err"; then
8385 ac_header_preproc
=yes
8387 echo "$as_me: failed program was:" >&5
8388 cat conftest.
$ac_ext >&5
8389 ac_header_preproc
=no
8391 rm -f conftest.err conftest.
$ac_ext
8392 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8393 echo "${ECHO_T}$ac_header_preproc" >&6
8395 # So? What about this header?
8396 case $ac_header_compiler:$ac_header_preproc in
8398 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
8399 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8400 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
8401 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;};;
8403 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
8404 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
8405 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
8406 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
8407 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
8408 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;};;
8410 echo "$as_me:$LINENO: checking for jerror.h" >&5
8411 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
8412 if test "${ac_cv_header_jerror_h+set}" = set; then
8413 echo $ECHO_N "(cached) $ECHO_C" >&6
8415 ac_cv_header_jerror_h
=$ac_header_preproc
8417 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
8418 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
8421 if test $ac_cv_header_jerror_h = yes; then
8422 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
8423 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
8424 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
8425 echo $ECHO_N "(cached) $ECHO_C" >&6
8427 ac_check_lib_save_LIBS
=$LIBS
8429 cat >conftest.
$ac_ext <<_ACEOF
8430 #line $LINENO "configure"
8431 #include "confdefs.h"
8433 /* Override any gcc2 internal prototype to avoid an error. */
8437 /* We use char because int might match the return type of a gcc2
8438 builtin and then its argument prototype would still apply. */
8439 char jpeg_destroy_compress ();
8440 #ifdef F77_DUMMY_MAIN
8444 int F77_DUMMY_MAIN() { return 1; }
8449 jpeg_destroy_compress ();
8454 rm -f conftest.
$ac_objext conftest
$ac_exeext
8455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8456 (eval $ac_link) 2>&5
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); } &&
8460 { ac_try
='test -s conftest$ac_exeext'
8461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); }; }; then
8466 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
8468 echo "$as_me: failed program was:" >&5
8469 cat conftest.
$ac_ext >&5
8470 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
8472 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8473 LIBS
=$ac_check_lib_save_LIBS
8475 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
8476 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
8477 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
8487 if test "${HAVE_JPEG}" = "yes"; then
8488 cat >>confdefs.h
<<\_ACEOF
8492 cat >conftest.
$ac_ext <<_ACEOF
8493 #line $LINENO "configure"
8494 #include "confdefs.h"
8495 #include <jpeglib.h>
8496 version=JPEG_LIB_VERSION
8499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8500 egrep "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
8501 cat >>confdefs.h
<<\_ACEOF
8506 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
8507 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
8515 ### Use -lpng if available, unless `--with-png=no'.
8517 if test "${HAVE_X11}" = "yes"; then
8518 if test "${with_png}" != "no"; then
8519 if test "${ac_cv_header_png_h+set}" = set; then
8520 echo "$as_me:$LINENO: checking for png.h" >&5
8521 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
8522 if test "${ac_cv_header_png_h+set}" = set; then
8523 echo $ECHO_N "(cached) $ECHO_C" >&6
8525 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
8526 echo "${ECHO_T}$ac_cv_header_png_h" >&6
8528 # Is the header compilable?
8529 echo "$as_me:$LINENO: checking png.h usability" >&5
8530 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
8531 cat >conftest.
$ac_ext <<_ACEOF
8532 #line $LINENO "configure"
8533 #include "confdefs.h"
8534 $ac_includes_default
8537 rm -f conftest.
$ac_objext
8538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8539 (eval $ac_compile) 2>&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); } &&
8543 { ac_try
='test -s conftest.$ac_objext'
8544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); }; }; then
8549 ac_header_compiler
=yes
8551 echo "$as_me: failed program was:" >&5
8552 cat conftest.
$ac_ext >&5
8553 ac_header_compiler
=no
8555 rm -f conftest.
$ac_objext conftest.
$ac_ext
8556 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8557 echo "${ECHO_T}$ac_header_compiler" >&6
8559 # Is the header present?
8560 echo "$as_me:$LINENO: checking png.h presence" >&5
8561 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
8562 cat >conftest.
$ac_ext <<_ACEOF
8563 #line $LINENO "configure"
8564 #include "confdefs.h"
8567 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8568 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8570 egrep -v '^ *\+' conftest.er1
>conftest.err
8572 cat conftest.err
>&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); } >/dev
/null
; then
8575 if test -s conftest.err
; then
8576 ac_cpp_err
=$ac_c_preproc_warn_flag
8583 if test -z "$ac_cpp_err"; then
8584 ac_header_preproc
=yes
8586 echo "$as_me: failed program was:" >&5
8587 cat conftest.
$ac_ext >&5
8588 ac_header_preproc
=no
8590 rm -f conftest.err conftest.
$ac_ext
8591 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8592 echo "${ECHO_T}$ac_header_preproc" >&6
8594 # So? What about this header?
8595 case $ac_header_compiler:$ac_header_preproc in
8597 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
8598 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8599 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
8600 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;};;
8602 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
8603 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
8604 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
8605 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
8606 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
8607 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;};;
8609 echo "$as_me:$LINENO: checking for png.h" >&5
8610 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
8611 if test "${ac_cv_header_png_h+set}" = set; then
8612 echo $ECHO_N "(cached) $ECHO_C" >&6
8614 ac_cv_header_png_h
=$ac_header_preproc
8616 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
8617 echo "${ECHO_T}$ac_cv_header_png_h" >&6
8620 if test $ac_cv_header_png_h = yes; then
8621 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
8622 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
8623 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
8624 echo $ECHO_N "(cached) $ECHO_C" >&6
8626 ac_check_lib_save_LIBS
=$LIBS
8627 LIBS
="-lpng -lz -lm $LIBS"
8628 cat >conftest.
$ac_ext <<_ACEOF
8629 #line $LINENO "configure"
8630 #include "confdefs.h"
8632 /* Override any gcc2 internal prototype to avoid an error. */
8636 /* We use char because int might match the return type of a gcc2
8637 builtin and then its argument prototype would still apply. */
8638 char png_get_channels ();
8639 #ifdef F77_DUMMY_MAIN
8643 int F77_DUMMY_MAIN() { return 1; }
8648 png_get_channels ();
8653 rm -f conftest.
$ac_objext conftest
$ac_exeext
8654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8655 (eval $ac_link) 2>&5
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); } &&
8659 { ac_try
='test -s conftest$ac_exeext'
8660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); }; }; then
8665 ac_cv_lib_png_png_get_channels
=yes
8667 echo "$as_me: failed program was:" >&5
8668 cat conftest.
$ac_ext >&5
8669 ac_cv_lib_png_png_get_channels
=no
8671 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8672 LIBS
=$ac_check_lib_save_LIBS
8674 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
8675 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
8676 if test $ac_cv_lib_png_png_get_channels = yes; then
8685 if test "${HAVE_PNG}" = "yes"; then
8687 cat >>confdefs.h
<<\_ACEOF
8694 ### Use -ltiff if available, unless `--with-tiff=no'.
8696 if test "${HAVE_X11}" = "yes"; then
8697 if test "${with_tiff}" != "no"; then
8698 if test "${ac_cv_header_tiffio_h+set}" = set; then
8699 echo "$as_me:$LINENO: checking for tiffio.h" >&5
8700 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
8701 if test "${ac_cv_header_tiffio_h+set}" = set; then
8702 echo $ECHO_N "(cached) $ECHO_C" >&6
8704 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
8705 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
8707 # Is the header compilable?
8708 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
8709 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
8710 cat >conftest.
$ac_ext <<_ACEOF
8711 #line $LINENO "configure"
8712 #include "confdefs.h"
8713 $ac_includes_default
8716 rm -f conftest.
$ac_objext
8717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8718 (eval $ac_compile) 2>&5
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); } &&
8722 { ac_try
='test -s conftest.$ac_objext'
8723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); }; }; then
8728 ac_header_compiler
=yes
8730 echo "$as_me: failed program was:" >&5
8731 cat conftest.
$ac_ext >&5
8732 ac_header_compiler
=no
8734 rm -f conftest.
$ac_objext conftest.
$ac_ext
8735 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8736 echo "${ECHO_T}$ac_header_compiler" >&6
8738 # Is the header present?
8739 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
8740 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
8741 cat >conftest.
$ac_ext <<_ACEOF
8742 #line $LINENO "configure"
8743 #include "confdefs.h"
8746 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8747 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8749 egrep -v '^ *\+' conftest.er1
>conftest.err
8751 cat conftest.err
>&5
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); } >/dev
/null
; then
8754 if test -s conftest.err
; then
8755 ac_cpp_err
=$ac_c_preproc_warn_flag
8762 if test -z "$ac_cpp_err"; then
8763 ac_header_preproc
=yes
8765 echo "$as_me: failed program was:" >&5
8766 cat conftest.
$ac_ext >&5
8767 ac_header_preproc
=no
8769 rm -f conftest.err conftest.
$ac_ext
8770 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8771 echo "${ECHO_T}$ac_header_preproc" >&6
8773 # So? What about this header?
8774 case $ac_header_compiler:$ac_header_preproc in
8776 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
8777 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8778 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
8779 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;};;
8781 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
8782 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
8783 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
8784 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
8785 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
8786 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;};;
8788 echo "$as_me:$LINENO: checking for tiffio.h" >&5
8789 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
8790 if test "${ac_cv_header_tiffio_h+set}" = set; then
8791 echo $ECHO_N "(cached) $ECHO_C" >&6
8793 ac_cv_header_tiffio_h
=$ac_header_preproc
8795 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
8796 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
8799 if test $ac_cv_header_tiffio_h = yes; then
8801 # At least one tiff package requires the jpeg library.
8802 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
8803 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
8804 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
8805 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
8806 echo $ECHO_N "(cached) $ECHO_C" >&6
8808 ac_check_lib_save_LIBS
=$LIBS
8809 LIBS
="-ltiff $tifflibs $LIBS"
8810 cat >conftest.
$ac_ext <<_ACEOF
8811 #line $LINENO "configure"
8812 #include "confdefs.h"
8814 /* Override any gcc2 internal prototype to avoid an error. */
8818 /* We use char because int might match the return type of a gcc2
8819 builtin and then its argument prototype would still apply. */
8820 char TIFFGetVersion ();
8821 #ifdef F77_DUMMY_MAIN
8825 int F77_DUMMY_MAIN() { return 1; }
8835 rm -f conftest.
$ac_objext conftest
$ac_exeext
8836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8837 (eval $ac_link) 2>&5
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); } &&
8841 { ac_try
='test -s conftest$ac_exeext'
8842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846 (exit $ac_status); }; }; then
8847 ac_cv_lib_tiff_TIFFGetVersion
=yes
8849 echo "$as_me: failed program was:" >&5
8850 cat conftest.
$ac_ext >&5
8851 ac_cv_lib_tiff_TIFFGetVersion
=no
8853 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8854 LIBS
=$ac_check_lib_save_LIBS
8856 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
8857 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
8858 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
8867 if test "${HAVE_TIFF}" = "yes"; then
8869 cat >>confdefs.h
<<\_ACEOF
8876 ### Use -lgif if available, unless `--with-gif=no'.
8878 if test "${HAVE_X11}" = "yes"; then
8879 if test "${with_gif}" != "no"; then
8880 if test "${ac_cv_header_gif_lib_h+set}" = set; then
8881 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
8882 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
8883 if test "${ac_cv_header_gif_lib_h+set}" = set; then
8884 echo $ECHO_N "(cached) $ECHO_C" >&6
8886 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
8887 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
8889 # Is the header compilable?
8890 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
8891 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
8892 cat >conftest.
$ac_ext <<_ACEOF
8893 #line $LINENO "configure"
8894 #include "confdefs.h"
8895 $ac_includes_default
8896 #include <gif_lib.h>
8898 rm -f conftest.
$ac_objext
8899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8900 (eval $ac_compile) 2>&5
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); } &&
8904 { ac_try
='test -s conftest.$ac_objext'
8905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); }; }; then
8910 ac_header_compiler
=yes
8912 echo "$as_me: failed program was:" >&5
8913 cat conftest.
$ac_ext >&5
8914 ac_header_compiler
=no
8916 rm -f conftest.
$ac_objext conftest.
$ac_ext
8917 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8918 echo "${ECHO_T}$ac_header_compiler" >&6
8920 # Is the header present?
8921 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
8922 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
8923 cat >conftest.
$ac_ext <<_ACEOF
8924 #line $LINENO "configure"
8925 #include "confdefs.h"
8926 #include <gif_lib.h>
8928 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8929 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8931 egrep -v '^ *\+' conftest.er1
>conftest.err
8933 cat conftest.err
>&5
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); } >/dev
/null
; then
8936 if test -s conftest.err
; then
8937 ac_cpp_err
=$ac_c_preproc_warn_flag
8944 if test -z "$ac_cpp_err"; then
8945 ac_header_preproc
=yes
8947 echo "$as_me: failed program was:" >&5
8948 cat conftest.
$ac_ext >&5
8949 ac_header_preproc
=no
8951 rm -f conftest.err conftest.
$ac_ext
8952 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8953 echo "${ECHO_T}$ac_header_preproc" >&6
8955 # So? What about this header?
8956 case $ac_header_compiler:$ac_header_preproc in
8958 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8959 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8960 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
8961 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;};;
8963 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
8964 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
8965 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
8966 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
8967 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
8968 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;};;
8970 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
8971 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
8972 if test "${ac_cv_header_gif_lib_h+set}" = set; then
8973 echo $ECHO_N "(cached) $ECHO_C" >&6
8975 ac_cv_header_gif_lib_h
=$ac_header_preproc
8977 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
8978 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
8981 if test $ac_cv_header_gif_lib_h = yes; then
8982 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
8983 # Earlier versions can crash Emacs.
8984 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
8985 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
8986 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
8987 echo $ECHO_N "(cached) $ECHO_C" >&6
8989 ac_check_lib_save_LIBS
=$LIBS
8990 LIBS
="-lungif $LIBS"
8991 cat >conftest.
$ac_ext <<_ACEOF
8992 #line $LINENO "configure"
8993 #include "confdefs.h"
8995 /* Override any gcc2 internal prototype to avoid an error. */
8999 /* We use char because int might match the return type of a gcc2
9000 builtin and then its argument prototype would still apply. */
9001 char EGifPutExtensionLast ();
9002 #ifdef F77_DUMMY_MAIN
9006 int F77_DUMMY_MAIN() { return 1; }
9011 EGifPutExtensionLast ();
9016 rm -f conftest.
$ac_objext conftest
$ac_exeext
9017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9018 (eval $ac_link) 2>&5
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); } &&
9022 { ac_try
='test -s conftest$ac_exeext'
9023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027 (exit $ac_status); }; }; then
9028 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
9030 echo "$as_me: failed program was:" >&5
9031 cat conftest.
$ac_ext >&5
9032 ac_cv_lib_ungif_EGifPutExtensionLast
=no
9034 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9035 LIBS
=$ac_check_lib_save_LIBS
9037 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
9038 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
9039 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
9048 if test "${HAVE_GIF}" = "yes"; then
9050 cat >>confdefs.h
<<\_ACEOF
9057 ### Use Mac OS X Carbon API to implement GUI.
9059 if test "${with_carbon}" != "no"; then
9060 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9061 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9062 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
9063 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9064 echo $ECHO_N "(cached) $ECHO_C" >&6
9066 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9067 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
9069 # Is the header compilable?
9070 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9071 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
9072 cat >conftest.
$ac_ext <<_ACEOF
9073 #line $LINENO "configure"
9074 #include "confdefs.h"
9075 $ac_includes_default
9076 #include <Carbon/Carbon.h>
9078 rm -f conftest.
$ac_objext
9079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9080 (eval $ac_compile) 2>&5
9082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083 (exit $ac_status); } &&
9084 { ac_try
='test -s conftest.$ac_objext'
9085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089 (exit $ac_status); }; }; then
9090 ac_header_compiler
=yes
9092 echo "$as_me: failed program was:" >&5
9093 cat conftest.
$ac_ext >&5
9094 ac_header_compiler
=no
9096 rm -f conftest.
$ac_objext conftest.
$ac_ext
9097 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9098 echo "${ECHO_T}$ac_header_compiler" >&6
9100 # Is the header present?
9101 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9102 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
9103 cat >conftest.
$ac_ext <<_ACEOF
9104 #line $LINENO "configure"
9105 #include "confdefs.h"
9106 #include <Carbon/Carbon.h>
9108 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9109 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9111 egrep -v '^ *\+' conftest.er1
>conftest.err
9113 cat conftest.err
>&5
9114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115 (exit $ac_status); } >/dev
/null
; then
9116 if test -s conftest.err
; then
9117 ac_cpp_err
=$ac_c_preproc_warn_flag
9124 if test -z "$ac_cpp_err"; then
9125 ac_header_preproc
=yes
9127 echo "$as_me: failed program was:" >&5
9128 cat conftest.
$ac_ext >&5
9129 ac_header_preproc
=no
9131 rm -f conftest.err conftest.
$ac_ext
9132 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9133 echo "${ECHO_T}$ac_header_preproc" >&6
9135 # So? What about this header?
9136 case $ac_header_compiler:$ac_header_preproc in
9138 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9139 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9140 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9141 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;};;
9143 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9144 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9145 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9146 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9147 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9148 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;};;
9150 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9151 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
9152 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9153 echo $ECHO_N "(cached) $ECHO_C" >&6
9155 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
9157 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9158 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
9161 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9168 if test "${HAVE_CARBON}" = "yes"; then
9169 cat >>confdefs.h
<<\_ACEOF
9170 #define HAVE_CARBON 1
9175 ### Use session management (-lSM -lICE) if available
9177 if test "${HAVE_X11}" = "yes"; then
9178 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9179 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
9180 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
9181 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9182 echo $ECHO_N "(cached) $ECHO_C" >&6
9184 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
9185 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
9187 # Is the header compilable?
9188 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
9189 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
9190 cat >conftest.
$ac_ext <<_ACEOF
9191 #line $LINENO "configure"
9192 #include "confdefs.h"
9193 $ac_includes_default
9194 #include <X11/SM/SMlib.h>
9196 rm -f conftest.
$ac_objext
9197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9198 (eval $ac_compile) 2>&5
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 (exit $ac_status); } &&
9202 { ac_try
='test -s conftest.$ac_objext'
9203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); }; }; then
9208 ac_header_compiler
=yes
9210 echo "$as_me: failed program was:" >&5
9211 cat conftest.
$ac_ext >&5
9212 ac_header_compiler
=no
9214 rm -f conftest.
$ac_objext conftest.
$ac_ext
9215 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9216 echo "${ECHO_T}$ac_header_compiler" >&6
9218 # Is the header present?
9219 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
9220 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
9221 cat >conftest.
$ac_ext <<_ACEOF
9222 #line $LINENO "configure"
9223 #include "confdefs.h"
9224 #include <X11/SM/SMlib.h>
9226 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9227 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9229 egrep -v '^ *\+' conftest.er1
>conftest.err
9231 cat conftest.err
>&5
9232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233 (exit $ac_status); } >/dev
/null
; then
9234 if test -s conftest.err
; then
9235 ac_cpp_err
=$ac_c_preproc_warn_flag
9242 if test -z "$ac_cpp_err"; then
9243 ac_header_preproc
=yes
9245 echo "$as_me: failed program was:" >&5
9246 cat conftest.
$ac_ext >&5
9247 ac_header_preproc
=no
9249 rm -f conftest.err conftest.
$ac_ext
9250 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9251 echo "${ECHO_T}$ac_header_preproc" >&6
9253 # So? What about this header?
9254 case $ac_header_compiler:$ac_header_preproc in
9256 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9257 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9258 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
9259 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;};;
9261 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
9262 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
9263 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
9264 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
9265 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
9266 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;};;
9268 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
9269 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
9270 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9271 echo $ECHO_N "(cached) $ECHO_C" >&6
9273 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
9275 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
9276 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
9279 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
9280 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
9281 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
9282 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
9283 echo $ECHO_N "(cached) $ECHO_C" >&6
9285 ac_check_lib_save_LIBS
=$LIBS
9287 cat >conftest.
$ac_ext <<_ACEOF
9288 #line $LINENO "configure"
9289 #include "confdefs.h"
9291 /* Override any gcc2 internal prototype to avoid an error. */
9295 /* We use char because int might match the return type of a gcc2
9296 builtin and then its argument prototype would still apply. */
9297 char SmcOpenConnection ();
9298 #ifdef F77_DUMMY_MAIN
9302 int F77_DUMMY_MAIN() { return 1; }
9307 SmcOpenConnection ();
9312 rm -f conftest.
$ac_objext conftest
$ac_exeext
9313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9314 (eval $ac_link) 2>&5
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); } &&
9318 { ac_try
='test -s conftest$ac_exeext'
9319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); }; }; then
9324 ac_cv_lib_SM_SmcOpenConnection
=yes
9326 echo "$as_me: failed program was:" >&5
9327 cat conftest.
$ac_ext >&5
9328 ac_cv_lib_SM_SmcOpenConnection
=no
9330 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9331 LIBS
=$ac_check_lib_save_LIBS
9333 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
9334 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
9335 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
9345 if test "${HAVE_X_SM}" = "yes"; then
9347 cat >>confdefs.h
<<\_ACEOF
9353 *) LIBS
="-lSM -lICE $LIBS" ;;
9358 # If netdb.h doesn't declare h_errno, we must declare it by hand.
9359 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
9360 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
9361 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
9362 echo $ECHO_N "(cached) $ECHO_C" >&6
9364 cat >conftest.
$ac_ext <<_ACEOF
9365 #line $LINENO "configure"
9366 #include "confdefs.h"
9368 #ifdef F77_DUMMY_MAIN
9372 int F77_DUMMY_MAIN() { return 1; }
9382 rm -f conftest.
$ac_objext conftest
$ac_exeext
9383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9384 (eval $ac_link) 2>&5
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); } &&
9388 { ac_try
='test -s conftest$ac_exeext'
9389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); }; }; then
9394 emacs_cv_netdb_declares_h_errno
=yes
9396 echo "$as_me: failed program was:" >&5
9397 cat conftest.
$ac_ext >&5
9398 emacs_cv_netdb_declares_h_errno
=no
9400 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9402 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
9403 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
9404 if test $emacs_cv_netdb_declares_h_errno = yes; then
9406 cat >>confdefs.h
<<\_ACEOF
9407 #define HAVE_H_ERRNO 1
9412 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9413 # for constant arguments. Useless!
9414 echo "$as_me:$LINENO: checking for working alloca.h" >&5
9415 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9416 if test "${ac_cv_working_alloca_h+set}" = set; then
9417 echo $ECHO_N "(cached) $ECHO_C" >&6
9419 cat >conftest.
$ac_ext <<_ACEOF
9420 #line $LINENO "configure"
9421 #include "confdefs.h"
9423 #ifdef F77_DUMMY_MAIN
9427 int F77_DUMMY_MAIN() { return 1; }
9432 char *p = (char *) alloca (2 * sizeof (int));
9437 rm -f conftest.
$ac_objext conftest
$ac_exeext
9438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9439 (eval $ac_link) 2>&5
9441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442 (exit $ac_status); } &&
9443 { ac_try
='test -s conftest$ac_exeext'
9444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448 (exit $ac_status); }; }; then
9449 ac_cv_working_alloca_h
=yes
9451 echo "$as_me: failed program was:" >&5
9452 cat conftest.
$ac_ext >&5
9453 ac_cv_working_alloca_h
=no
9455 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9457 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9458 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9459 if test $ac_cv_working_alloca_h = yes; then
9461 cat >>confdefs.h
<<\_ACEOF
9462 #define HAVE_ALLOCA_H 1
9467 echo "$as_me:$LINENO: checking for alloca" >&5
9468 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9469 if test "${ac_cv_func_alloca_works+set}" = set; then
9470 echo $ECHO_N "(cached) $ECHO_C" >&6
9472 cat >conftest.
$ac_ext <<_ACEOF
9473 #line $LINENO "configure"
9474 #include "confdefs.h"
9476 # define alloca __builtin_alloca
9479 # include <malloc.h>
9480 # define alloca _alloca
9483 # include <alloca.h>
9488 # ifndef alloca /* predefined by HP cc +Olibcalls */
9496 #ifdef F77_DUMMY_MAIN
9500 int F77_DUMMY_MAIN() { return 1; }
9505 char *p = (char *) alloca (1);
9510 rm -f conftest.
$ac_objext conftest
$ac_exeext
9511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9512 (eval $ac_link) 2>&5
9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515 (exit $ac_status); } &&
9516 { ac_try
='test -s conftest$ac_exeext'
9517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); }; }; then
9522 ac_cv_func_alloca_works
=yes
9524 echo "$as_me: failed program was:" >&5
9525 cat conftest.
$ac_ext >&5
9526 ac_cv_func_alloca_works
=no
9528 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9530 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9531 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9533 if test $ac_cv_func_alloca_works = yes; then
9535 cat >>confdefs.h
<<\_ACEOF
9536 #define HAVE_ALLOCA 1
9540 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9541 # that cause trouble. Some versions do not even contain alloca or
9542 # contain a buggy version. If you still want to use their alloca,
9543 # use ar to extract alloca.o from them instead of compiling alloca.c.
9545 ALLOCA
=alloca.
$ac_objext
9547 cat >>confdefs.h
<<\_ACEOF
9552 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9553 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9554 if test "${ac_cv_os_cray+set}" = set; then
9555 echo $ECHO_N "(cached) $ECHO_C" >&6
9557 cat >conftest.
$ac_ext <<_ACEOF
9558 #line $LINENO "configure"
9559 #include "confdefs.h"
9560 #if defined(CRAY) && ! defined(CRAY2)
9567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9568 egrep "webecray" >/dev
/null
2>&1; then
9576 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9577 echo "${ECHO_T}$ac_cv_os_cray" >&6
9578 if test $ac_cv_os_cray = yes; then
9579 for ac_func
in _getb67 GETB67 getb67
; do
9580 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9581 echo "$as_me:$LINENO: checking for $ac_func" >&5
9582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9583 if eval "test \"\${$as_ac_var+set}\" = set"; then
9584 echo $ECHO_N "(cached) $ECHO_C" >&6
9586 cat >conftest.
$ac_ext <<_ACEOF
9587 #line $LINENO "configure"
9588 #include "confdefs.h"
9589 /* System header to define __stub macros and hopefully few prototypes,
9590 which can conflict with char $ac_func (); below. */
9592 /* Override any gcc2 internal prototype to avoid an error. */
9596 /* We use char because int might match the return type of a gcc2
9597 builtin and then its argument prototype would still apply. */
9601 #ifdef F77_DUMMY_MAIN
9605 int F77_DUMMY_MAIN() { return 1; }
9610 /* The GNU C library defines this for functions which it implements
9611 to always fail with ENOSYS. Some functions are actually named
9612 something starting with __ and the normal name is an alias. */
9613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9623 rm -f conftest.
$ac_objext conftest
$ac_exeext
9624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9625 (eval $ac_link) 2>&5
9627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628 (exit $ac_status); } &&
9629 { ac_try
='test -s conftest$ac_exeext'
9630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); }; }; then
9635 eval "$as_ac_var=yes"
9637 echo "$as_me: failed program was:" >&5
9638 cat conftest.
$ac_ext >&5
9639 eval "$as_ac_var=no"
9641 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9644 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9645 if test `eval echo '${'$as_ac_var'}'` = yes; then
9647 cat >>confdefs.h
<<_ACEOF
9648 #define CRAY_STACKSEG_END $ac_func
9657 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9658 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9659 if test "${ac_cv_c_stack_direction+set}" = set; then
9660 echo $ECHO_N "(cached) $ECHO_C" >&6
9662 if test "$cross_compiling" = yes; then
9663 ac_cv_c_stack_direction
=0
9665 cat >conftest.
$ac_ext <<_ACEOF
9666 #line $LINENO "configure"
9667 #include "confdefs.h"
9669 find_stack_direction ()
9671 static char *addr = 0;
9676 return find_stack_direction ();
9679 return (&dummy > addr) ? 1 : -1;
9685 exit (find_stack_direction () < 0);
9688 rm -f conftest
$ac_exeext
9689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9690 (eval $ac_link) 2>&5
9692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); }; }; then
9699 ac_cv_c_stack_direction
=1
9701 echo "$as_me: program exited with status $ac_status" >&5
9702 echo "$as_me: failed program was:" >&5
9703 cat conftest.
$ac_ext >&5
9705 ac_cv_c_stack_direction
=-1
9707 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9710 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9711 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9713 cat >>confdefs.h
<<_ACEOF
9714 #define STACK_DIRECTION $ac_cv_c_stack_direction
9721 # fmod, logb, and frexp are found in -lm on most systems.
9722 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
9724 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
9725 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
9726 if test "${ac_cv_lib_m_sqrt+set}" = set; then
9727 echo $ECHO_N "(cached) $ECHO_C" >&6
9729 ac_check_lib_save_LIBS
=$LIBS
9731 cat >conftest.
$ac_ext <<_ACEOF
9732 #line $LINENO "configure"
9733 #include "confdefs.h"
9735 /* Override any gcc2 internal prototype to avoid an error. */
9739 /* We use char because int might match the return type of a gcc2
9740 builtin and then its argument prototype would still apply. */
9742 #ifdef F77_DUMMY_MAIN
9746 int F77_DUMMY_MAIN() { return 1; }
9756 rm -f conftest.
$ac_objext conftest
$ac_exeext
9757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9758 (eval $ac_link) 2>&5
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); } &&
9762 { ac_try
='test -s conftest$ac_exeext'
9763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); }; }; then
9768 ac_cv_lib_m_sqrt
=yes
9770 echo "$as_me: failed program was:" >&5
9771 cat conftest.
$ac_ext >&5
9774 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9775 LIBS
=$ac_check_lib_save_LIBS
9777 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
9778 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
9779 if test $ac_cv_lib_m_sqrt = yes; then
9780 cat >>confdefs.h
<<_ACEOF
9789 # Check for mail-locking functions in a "mail" library
9791 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
9792 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
9793 if test "${ac_cv_lib_mail_maillock+set}" = set; then
9794 echo $ECHO_N "(cached) $ECHO_C" >&6
9796 ac_check_lib_save_LIBS
=$LIBS
9798 cat >conftest.
$ac_ext <<_ACEOF
9799 #line $LINENO "configure"
9800 #include "confdefs.h"
9802 /* Override any gcc2 internal prototype to avoid an error. */
9806 /* We use char because int might match the return type of a gcc2
9807 builtin and then its argument prototype would still apply. */
9809 #ifdef F77_DUMMY_MAIN
9813 int F77_DUMMY_MAIN() { return 1; }
9823 rm -f conftest.
$ac_objext conftest
$ac_exeext
9824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9825 (eval $ac_link) 2>&5
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); } &&
9829 { ac_try
='test -s conftest$ac_exeext'
9830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); }; }; then
9835 ac_cv_lib_mail_maillock
=yes
9837 echo "$as_me: failed program was:" >&5
9838 cat conftest.
$ac_ext >&5
9839 ac_cv_lib_mail_maillock
=no
9841 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9842 LIBS
=$ac_check_lib_save_LIBS
9844 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
9845 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
9846 if test $ac_cv_lib_mail_maillock = yes; then
9847 cat >>confdefs.h
<<_ACEOF
9848 #define HAVE_LIBMAIL 1
9856 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
9857 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
9858 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
9859 echo $ECHO_N "(cached) $ECHO_C" >&6
9861 ac_check_lib_save_LIBS
=$LIBS
9862 LIBS
="-llockfile $LIBS"
9863 cat >conftest.
$ac_ext <<_ACEOF
9864 #line $LINENO "configure"
9865 #include "confdefs.h"
9867 /* Override any gcc2 internal prototype to avoid an error. */
9871 /* We use char because int might match the return type of a gcc2
9872 builtin and then its argument prototype would still apply. */
9874 #ifdef F77_DUMMY_MAIN
9878 int F77_DUMMY_MAIN() { return 1; }
9888 rm -f conftest.
$ac_objext conftest
$ac_exeext
9889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9890 (eval $ac_link) 2>&5
9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); } &&
9894 { ac_try
='test -s conftest$ac_exeext'
9895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); }; }; then
9900 ac_cv_lib_lockfile_maillock
=yes
9902 echo "$as_me: failed program was:" >&5
9903 cat conftest.
$ac_ext >&5
9904 ac_cv_lib_lockfile_maillock
=no
9906 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9907 LIBS
=$ac_check_lib_save_LIBS
9909 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
9910 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
9911 if test $ac_cv_lib_lockfile_maillock = yes; then
9912 cat >>confdefs.h
<<_ACEOF
9913 #define HAVE_LIBLOCKFILE 1
9916 LIBS
="-llockfile $LIBS"
9920 # If we have the shared liblockfile, assume we must use it for mail
9921 # locking (e.g. Debian). If we couldn't link against liblockfile
9922 # (no liblockfile.a installed), ensure that we don't need to.
9923 if test "$ac_cv_lib_lockfile_maillock" = no
; then
9924 # Extract the first word of "liblockfile.so", so it can be a program name with args.
9925 set dummy liblockfile.so
; ac_word
=$2
9926 echo "$as_me:$LINENO: checking for $ac_word" >&5
9927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9928 if test "${ac_cv_prog_liblockfile+set}" = set; then
9929 echo $ECHO_N "(cached) $ECHO_C" >&6
9931 if test -n "$liblockfile"; then
9932 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
9934 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9935 for as_dir
in /usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH
9938 test -z "$as_dir" && as_dir
=.
9939 for ac_exec_ext
in '' $ac_executable_extensions; do
9940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9941 ac_cv_prog_liblockfile
="yes"
9942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9948 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
9951 liblockfile
=$ac_cv_prog_liblockfile
9952 if test -n "$liblockfile"; then
9953 echo "$as_me:$LINENO: result: $liblockfile" >&5
9954 echo "${ECHO_T}$liblockfile" >&6
9956 echo "$as_me:$LINENO: result: no" >&5
9957 echo "${ECHO_T}no" >&6
9960 if test $ac_cv_prog_liblockfile = yes; then
9961 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
9962 This probably means that movemail could lose mail.
9963 There may be a \`development' package to install containing liblockfile." >&5
9964 echo "$as_me: error: Shared liblockfile found but can't link against it.
9965 This probably means that movemail could lose mail.
9966 There may be a \`development' package to install containing liblockfile." >&2;}
9967 { (exit 1); exit 1; }; }
9969 cat >>confdefs.h
<<\_ACEOF
9970 #define LIBMAIL -llockfile
9977 for ac_func
in touchlock
9979 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9980 echo "$as_me:$LINENO: checking for $ac_func" >&5
9981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9982 if eval "test \"\${$as_ac_var+set}\" = set"; then
9983 echo $ECHO_N "(cached) $ECHO_C" >&6
9985 cat >conftest.
$ac_ext <<_ACEOF
9986 #line $LINENO "configure"
9987 #include "confdefs.h"
9988 /* System header to define __stub macros and hopefully few prototypes,
9989 which can conflict with char $ac_func (); below. */
9991 /* Override any gcc2 internal prototype to avoid an error. */
9995 /* We use char because int might match the return type of a gcc2
9996 builtin and then its argument prototype would still apply. */
10000 #ifdef F77_DUMMY_MAIN
10001 # ifdef __cplusplus
10004 int F77_DUMMY_MAIN() { return 1; }
10009 /* The GNU C library defines this for functions which it implements
10010 to always fail with ENOSYS. Some functions are actually named
10011 something starting with __ and the normal name is an alias. */
10012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10022 rm -f conftest.
$ac_objext conftest
$ac_exeext
10023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10024 (eval $ac_link) 2>&5
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); } &&
10028 { ac_try
='test -s conftest$ac_exeext'
10029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10030 (eval $ac_try) 2>&5
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); }; }; then
10034 eval "$as_ac_var=yes"
10036 echo "$as_me: failed program was:" >&5
10037 cat conftest.
$ac_ext >&5
10038 eval "$as_ac_var=no"
10040 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10043 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10044 if test `eval echo '${'$as_ac_var'}'` = yes; then
10045 cat >>confdefs.h
<<_ACEOF
10046 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10053 for ac_header
in maillock.h
10055 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10057 echo "$as_me:$LINENO: checking for $ac_header" >&5
10058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10060 echo $ECHO_N "(cached) $ECHO_C" >&6
10062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10065 # Is the header compilable?
10066 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10067 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10068 cat >conftest.
$ac_ext <<_ACEOF
10069 #line $LINENO "configure"
10070 #include "confdefs.h"
10071 $ac_includes_default
10072 #include <$ac_header>
10074 rm -f conftest.
$ac_objext
10075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10076 (eval $ac_compile) 2>&5
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); } &&
10080 { ac_try
='test -s conftest.$ac_objext'
10081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10082 (eval $ac_try) 2>&5
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); }; }; then
10086 ac_header_compiler
=yes
10088 echo "$as_me: failed program was:" >&5
10089 cat conftest.
$ac_ext >&5
10090 ac_header_compiler
=no
10092 rm -f conftest.
$ac_objext conftest.
$ac_ext
10093 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10094 echo "${ECHO_T}$ac_header_compiler" >&6
10096 # Is the header present?
10097 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10099 cat >conftest.
$ac_ext <<_ACEOF
10100 #line $LINENO "configure"
10101 #include "confdefs.h"
10102 #include <$ac_header>
10104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10105 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10107 egrep -v '^ *\+' conftest.er1
>conftest.err
10109 cat conftest.err
>&5
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); } >/dev
/null
; then
10112 if test -s conftest.err
; then
10113 ac_cpp_err
=$ac_c_preproc_warn_flag
10120 if test -z "$ac_cpp_err"; then
10121 ac_header_preproc
=yes
10123 echo "$as_me: failed program was:" >&5
10124 cat conftest.
$ac_ext >&5
10125 ac_header_preproc
=no
10127 rm -f conftest.err conftest.
$ac_ext
10128 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10129 echo "${ECHO_T}$ac_header_preproc" >&6
10131 # So? What about this header?
10132 case $ac_header_compiler:$ac_header_preproc in
10134 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10135 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10137 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10139 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10140 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10141 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10142 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10146 echo "$as_me:$LINENO: checking for $ac_header" >&5
10147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10149 echo $ECHO_N "(cached) $ECHO_C" >&6
10151 eval "$as_ac_Header=$ac_header_preproc"
10153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10158 cat >>confdefs.h
<<_ACEOF
10159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10222 for ac_func
in gethostname getdomainname dup2 \
10223 rename closedir mkdir
rmdir sysinfo \
10224 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
10225 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
10226 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
10227 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
10228 sendto recvfrom getsockopt setsockopt getsockname getpeername \
10229 gai_strerror mkstemp getline getdelim
10231 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10232 echo "$as_me:$LINENO: checking for $ac_func" >&5
10233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10234 if eval "test \"\${$as_ac_var+set}\" = set"; then
10235 echo $ECHO_N "(cached) $ECHO_C" >&6
10237 cat >conftest.
$ac_ext <<_ACEOF
10238 #line $LINENO "configure"
10239 #include "confdefs.h"
10240 /* System header to define __stub macros and hopefully few prototypes,
10241 which can conflict with char $ac_func (); below. */
10242 #include <assert.h>
10243 /* Override any gcc2 internal prototype to avoid an error. */
10247 /* We use char because int might match the return type of a gcc2
10248 builtin and then its argument prototype would still apply. */
10252 #ifdef F77_DUMMY_MAIN
10253 # ifdef __cplusplus
10256 int F77_DUMMY_MAIN() { return 1; }
10261 /* The GNU C library defines this for functions which it implements
10262 to always fail with ENOSYS. Some functions are actually named
10263 something starting with __ and the normal name is an alias. */
10264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10274 rm -f conftest.
$ac_objext conftest
$ac_exeext
10275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10276 (eval $ac_link) 2>&5
10278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279 (exit $ac_status); } &&
10280 { ac_try
='test -s conftest$ac_exeext'
10281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10282 (eval $ac_try) 2>&5
10284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); }; }; then
10286 eval "$as_ac_var=yes"
10288 echo "$as_me: failed program was:" >&5
10289 cat conftest.
$ac_ext >&5
10290 eval "$as_ac_var=no"
10292 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10295 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10296 if test `eval echo '${'$as_ac_var'}'` = yes; then
10297 cat >>confdefs.h
<<_ACEOF
10298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10306 for ac_header
in sys
/un.h
10308 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10310 echo "$as_me:$LINENO: checking for $ac_header" >&5
10311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10313 echo $ECHO_N "(cached) $ECHO_C" >&6
10315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10318 # Is the header compilable?
10319 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10320 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10321 cat >conftest.
$ac_ext <<_ACEOF
10322 #line $LINENO "configure"
10323 #include "confdefs.h"
10324 $ac_includes_default
10325 #include <$ac_header>
10327 rm -f conftest.
$ac_objext
10328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10329 (eval $ac_compile) 2>&5
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); } &&
10333 { ac_try
='test -s conftest.$ac_objext'
10334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10335 (eval $ac_try) 2>&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); }; }; then
10339 ac_header_compiler
=yes
10341 echo "$as_me: failed program was:" >&5
10342 cat conftest.
$ac_ext >&5
10343 ac_header_compiler
=no
10345 rm -f conftest.
$ac_objext conftest.
$ac_ext
10346 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10347 echo "${ECHO_T}$ac_header_compiler" >&6
10349 # Is the header present?
10350 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10351 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10352 cat >conftest.
$ac_ext <<_ACEOF
10353 #line $LINENO "configure"
10354 #include "confdefs.h"
10355 #include <$ac_header>
10357 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10358 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10360 egrep -v '^ *\+' conftest.er1
>conftest.err
10362 cat conftest.err
>&5
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); } >/dev
/null
; then
10365 if test -s conftest.err
; then
10366 ac_cpp_err
=$ac_c_preproc_warn_flag
10373 if test -z "$ac_cpp_err"; then
10374 ac_header_preproc
=yes
10376 echo "$as_me: failed program was:" >&5
10377 cat conftest.
$ac_ext >&5
10378 ac_header_preproc
=no
10380 rm -f conftest.err conftest.
$ac_ext
10381 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10382 echo "${ECHO_T}$ac_header_preproc" >&6
10384 # So? What about this header?
10385 case $ac_header_compiler:$ac_header_preproc in
10387 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10388 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10390 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10392 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10393 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10394 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10395 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10397 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10399 echo "$as_me:$LINENO: checking for $ac_header" >&5
10400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10402 echo $ECHO_N "(cached) $ECHO_C" >&6
10404 eval "$as_ac_Header=$ac_header_preproc"
10406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10411 cat >>confdefs.h
<<_ACEOF
10412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10422 for ac_header
in sys
/time.h unistd.h
10424 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10426 echo "$as_me:$LINENO: checking for $ac_header" >&5
10427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10429 echo $ECHO_N "(cached) $ECHO_C" >&6
10431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10432 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10434 # Is the header compilable?
10435 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10436 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10437 cat >conftest.
$ac_ext <<_ACEOF
10438 #line $LINENO "configure"
10439 #include "confdefs.h"
10440 $ac_includes_default
10441 #include <$ac_header>
10443 rm -f conftest.
$ac_objext
10444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10445 (eval $ac_compile) 2>&5
10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); } &&
10449 { ac_try
='test -s conftest.$ac_objext'
10450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10451 (eval $ac_try) 2>&5
10453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454 (exit $ac_status); }; }; then
10455 ac_header_compiler
=yes
10457 echo "$as_me: failed program was:" >&5
10458 cat conftest.
$ac_ext >&5
10459 ac_header_compiler
=no
10461 rm -f conftest.
$ac_objext conftest.
$ac_ext
10462 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10463 echo "${ECHO_T}$ac_header_compiler" >&6
10465 # Is the header present?
10466 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10467 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10468 cat >conftest.
$ac_ext <<_ACEOF
10469 #line $LINENO "configure"
10470 #include "confdefs.h"
10471 #include <$ac_header>
10473 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10474 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10476 egrep -v '^ *\+' conftest.er1
>conftest.err
10478 cat conftest.err
>&5
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } >/dev
/null
; then
10481 if test -s conftest.err
; then
10482 ac_cpp_err
=$ac_c_preproc_warn_flag
10489 if test -z "$ac_cpp_err"; then
10490 ac_header_preproc
=yes
10492 echo "$as_me: failed program was:" >&5
10493 cat conftest.
$ac_ext >&5
10494 ac_header_preproc
=no
10496 rm -f conftest.err conftest.
$ac_ext
10497 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10498 echo "${ECHO_T}$ac_header_preproc" >&6
10500 # So? What about this header?
10501 case $ac_header_compiler:$ac_header_preproc in
10503 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10504 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10506 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10508 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10509 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10510 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10511 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10513 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10515 echo "$as_me:$LINENO: checking for $ac_header" >&5
10516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10518 echo $ECHO_N "(cached) $ECHO_C" >&6
10520 eval "$as_ac_Header=$ac_header_preproc"
10522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10523 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10526 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10527 cat >>confdefs.h
<<_ACEOF
10528 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10536 for ac_func
in alarm
10538 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10539 echo "$as_me:$LINENO: checking for $ac_func" >&5
10540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10541 if eval "test \"\${$as_ac_var+set}\" = set"; then
10542 echo $ECHO_N "(cached) $ECHO_C" >&6
10544 cat >conftest.
$ac_ext <<_ACEOF
10545 #line $LINENO "configure"
10546 #include "confdefs.h"
10547 /* System header to define __stub macros and hopefully few prototypes,
10548 which can conflict with char $ac_func (); below. */
10549 #include <assert.h>
10550 /* Override any gcc2 internal prototype to avoid an error. */
10554 /* We use char because int might match the return type of a gcc2
10555 builtin and then its argument prototype would still apply. */
10559 #ifdef F77_DUMMY_MAIN
10560 # ifdef __cplusplus
10563 int F77_DUMMY_MAIN() { return 1; }
10568 /* The GNU C library defines this for functions which it implements
10569 to always fail with ENOSYS. Some functions are actually named
10570 something starting with __ and the normal name is an alias. */
10571 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10581 rm -f conftest.
$ac_objext conftest
$ac_exeext
10582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10583 (eval $ac_link) 2>&5
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); } &&
10587 { ac_try
='test -s conftest$ac_exeext'
10588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10589 (eval $ac_try) 2>&5
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); }; }; then
10593 eval "$as_ac_var=yes"
10595 echo "$as_me: failed program was:" >&5
10596 cat conftest.
$ac_ext >&5
10597 eval "$as_ac_var=no"
10599 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10602 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10603 if test `eval echo '${'$as_ac_var'}'` = yes; then
10604 cat >>confdefs.h
<<_ACEOF
10605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10611 echo "$as_me:$LINENO: checking for working mktime" >&5
10612 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
10613 if test "${ac_cv_func_working_mktime+set}" = set; then
10614 echo $ECHO_N "(cached) $ECHO_C" >&6
10616 if test "$cross_compiling" = yes; then
10617 ac_cv_func_working_mktime
=no
10619 cat >conftest.
$ac_ext <<_ACEOF
10620 #line $LINENO "configure"
10621 #include "confdefs.h"
10622 /* Test program from Paul Eggert and Tony Leneis. */
10623 #if TIME_WITH_SYS_TIME
10624 # include <sys/time.h>
10627 # if HAVE_SYS_TIME_H
10628 # include <sys/time.h>
10635 # include <unistd.h>
10639 # define alarm(X) /* empty */
10642 /* Work around redefinition to rpl_putenv by other config tests. */
10645 static time_t time_t_max;
10647 /* Values we'll use to set the TZ environment variable. */
10648 static const char *const tz_strings[] = {
10649 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
10650 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
10652 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
10654 /* Fail if mktime fails to convert a date in the spring-forward gap.
10655 Based on a problem report from Andreas Jaeger. */
10657 spring_forward_gap ()
10659 /* glibc (up to about 1998-10-07) failed this test. */
10662 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10663 instead of "TZ=America/Vancouver" in order to detect the bug even
10664 on systems that don't support the Olson extension, or don't have the
10665 full zoneinfo tables installed. */
10666 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
10675 if (mktime (&tm) == (time_t)-1)
10684 if ((lt = localtime (&now)) && mktime (lt) != now)
10686 now = time_t_max - now;
10687 if ((lt = localtime (&now)) && mktime (lt) != now)
10694 /* Based on code from Ariel Faigon. */
10704 if (tm.tm_mon != 2 || tm.tm_mday != 31)
10714 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
10715 now = mktime (&tm);
10716 if (now != (time_t) -1)
10718 struct tm *lt = localtime (&now);
10720 && lt->tm_year == tm.tm_year
10721 && lt->tm_mon == tm.tm_mon
10722 && lt->tm_mday == tm.tm_mday
10723 && lt->tm_hour == tm.tm_hour
10724 && lt->tm_min == tm.tm_min
10725 && lt->tm_sec == tm.tm_sec
10726 && lt->tm_yday == tm.tm_yday
10727 && lt->tm_wday == tm.tm_wday
10728 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
10729 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
10740 /* This test makes some buggy mktime implementations loop.
10741 Give up after 60 seconds; a mktime slower than that
10742 isn't worth using anyway. */
10745 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
10748 delta = time_t_max / 997; /* a suitable prime number */
10749 for (i = 0; i < N_STRINGS; i++)
10752 putenv (tz_strings[i]);
10754 for (t = 0; t <= time_t_max - delta; t += delta)
10756 mktime_test ((time_t) 60 * 60);
10757 mktime_test ((time_t) 60 * 60 * 24);
10759 for (j = 1; 0 < j; j *= 2)
10761 bigtime_test (j - 1);
10764 spring_forward_gap ();
10768 rm -f conftest
$ac_exeext
10769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10770 (eval $ac_link) 2>&5
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10775 (eval $ac_try) 2>&5
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); }; }; then
10779 ac_cv_func_working_mktime
=yes
10781 echo "$as_me: program exited with status $ac_status" >&5
10782 echo "$as_me: failed program was:" >&5
10783 cat conftest.
$ac_ext >&5
10784 ( exit $ac_status )
10785 ac_cv_func_working_mktime
=no
10787 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10790 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
10791 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
10792 if test $ac_cv_func_working_mktime = no
; then
10793 LIBOBJS
="$LIBOBJS mktime.$ac_objext"
10796 if test "$ac_cv_func_working_mktime" = no
; then
10798 cat >>confdefs.h
<<\_ACEOF
10799 #define BROKEN_MKTIME 1
10804 ac_have_func
=no
# yes means we've found a way to get the load average.
10808 # Check for getloadavg, but be sure not to touch the cache variable.
10809 (echo "$as_me:$LINENO: checking for getloadavg" >&5
10810 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
10811 if test "${ac_cv_func_getloadavg+set}" = set; then
10812 echo $ECHO_N "(cached) $ECHO_C" >&6
10814 cat >conftest.
$ac_ext <<_ACEOF
10815 #line $LINENO "configure"
10816 #include "confdefs.h"
10817 /* System header to define __stub macros and hopefully few prototypes,
10818 which can conflict with char getloadavg (); below. */
10819 #include <assert.h>
10820 /* Override any gcc2 internal prototype to avoid an error. */
10824 /* We use char because int might match the return type of a gcc2
10825 builtin and then its argument prototype would still apply. */
10826 char getloadavg ();
10829 #ifdef F77_DUMMY_MAIN
10830 # ifdef __cplusplus
10833 int F77_DUMMY_MAIN() { return 1; }
10838 /* The GNU C library defines this for functions which it implements
10839 to always fail with ENOSYS. Some functions are actually named
10840 something starting with __ and the normal name is an alias. */
10841 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
10851 rm -f conftest.
$ac_objext conftest
$ac_exeext
10852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10853 (eval $ac_link) 2>&5
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); } &&
10857 { ac_try
='test -s conftest$ac_exeext'
10858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10859 (eval $ac_try) 2>&5
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); }; }; then
10863 ac_cv_func_getloadavg
=yes
10865 echo "$as_me: failed program was:" >&5
10866 cat conftest.
$ac_ext >&5
10867 ac_cv_func_getloadavg
=no
10869 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10871 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
10872 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
10873 if test $ac_cv_func_getloadavg = yes; then
10878 ) && ac_have_func
=yes
10880 # On HPUX9, an unprivileged user can get load averages through this function.
10882 for ac_func
in pstat_getdynamic
10884 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10885 echo "$as_me:$LINENO: checking for $ac_func" >&5
10886 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10887 if eval "test \"\${$as_ac_var+set}\" = set"; then
10888 echo $ECHO_N "(cached) $ECHO_C" >&6
10890 cat >conftest.
$ac_ext <<_ACEOF
10891 #line $LINENO "configure"
10892 #include "confdefs.h"
10893 /* System header to define __stub macros and hopefully few prototypes,
10894 which can conflict with char $ac_func (); below. */
10895 #include <assert.h>
10896 /* Override any gcc2 internal prototype to avoid an error. */
10900 /* We use char because int might match the return type of a gcc2
10901 builtin and then its argument prototype would still apply. */
10905 #ifdef F77_DUMMY_MAIN
10906 # ifdef __cplusplus
10909 int F77_DUMMY_MAIN() { return 1; }
10914 /* The GNU C library defines this for functions which it implements
10915 to always fail with ENOSYS. Some functions are actually named
10916 something starting with __ and the normal name is an alias. */
10917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10927 rm -f conftest.
$ac_objext conftest
$ac_exeext
10928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10929 (eval $ac_link) 2>&5
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); } &&
10933 { ac_try
='test -s conftest$ac_exeext'
10934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10935 (eval $ac_try) 2>&5
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); }; }; then
10939 eval "$as_ac_var=yes"
10941 echo "$as_me: failed program was:" >&5
10942 cat conftest.
$ac_ext >&5
10943 eval "$as_ac_var=no"
10945 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10948 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10949 if test `eval echo '${'$as_ac_var'}'` = yes; then
10950 cat >>confdefs.h
<<_ACEOF
10951 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10958 # Solaris has libkstat which does not require root.
10960 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
10961 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
10962 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
10963 echo $ECHO_N "(cached) $ECHO_C" >&6
10965 ac_check_lib_save_LIBS
=$LIBS
10966 LIBS
="-lkstat $LIBS"
10967 cat >conftest.
$ac_ext <<_ACEOF
10968 #line $LINENO "configure"
10969 #include "confdefs.h"
10971 /* Override any gcc2 internal prototype to avoid an error. */
10975 /* We use char because int might match the return type of a gcc2
10976 builtin and then its argument prototype would still apply. */
10977 char kstat_open ();
10978 #ifdef F77_DUMMY_MAIN
10979 # ifdef __cplusplus
10982 int F77_DUMMY_MAIN() { return 1; }
10992 rm -f conftest.
$ac_objext conftest
$ac_exeext
10993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10994 (eval $ac_link) 2>&5
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); } &&
10998 { ac_try
='test -s conftest$ac_exeext'
10999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11000 (eval $ac_try) 2>&5
11002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); }; }; then
11004 ac_cv_lib_kstat_kstat_open
=yes
11006 echo "$as_me: failed program was:" >&5
11007 cat conftest.
$ac_ext >&5
11008 ac_cv_lib_kstat_kstat_open
=no
11010 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11011 LIBS
=$ac_check_lib_save_LIBS
11013 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
11014 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
11015 if test $ac_cv_lib_kstat_kstat_open = yes; then
11016 cat >>confdefs.h
<<_ACEOF
11017 #define HAVE_LIBKSTAT 1
11020 LIBS
="-lkstat $LIBS"
11024 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
11026 # Some systems with -lutil have (and need) -lkvm as well, some do not.
11027 # On Solaris, -lkvm requires nlist from -lelf, so check that first
11028 # to get the right answer into the cache.
11029 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
11030 if test $ac_have_func = no
; then
11031 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
11032 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
11033 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
11034 echo $ECHO_N "(cached) $ECHO_C" >&6
11036 ac_check_lib_save_LIBS
=$LIBS
11038 cat >conftest.
$ac_ext <<_ACEOF
11039 #line $LINENO "configure"
11040 #include "confdefs.h"
11042 /* Override any gcc2 internal prototype to avoid an error. */
11046 /* We use char because int might match the return type of a gcc2
11047 builtin and then its argument prototype would still apply. */
11049 #ifdef F77_DUMMY_MAIN
11050 # ifdef __cplusplus
11053 int F77_DUMMY_MAIN() { return 1; }
11063 rm -f conftest.
$ac_objext conftest
$ac_exeext
11064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11065 (eval $ac_link) 2>&5
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); } &&
11069 { ac_try
='test -s conftest$ac_exeext'
11070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11071 (eval $ac_try) 2>&5
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); }; }; then
11075 ac_cv_lib_elf_elf_begin
=yes
11077 echo "$as_me: failed program was:" >&5
11078 cat conftest.
$ac_ext >&5
11079 ac_cv_lib_elf_elf_begin
=no
11081 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11082 LIBS
=$ac_check_lib_save_LIBS
11084 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
11085 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
11086 if test $ac_cv_lib_elf_elf_begin = yes; then
11091 if test $ac_have_func = no
; then
11092 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
11093 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
11094 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
11095 echo $ECHO_N "(cached) $ECHO_C" >&6
11097 ac_check_lib_save_LIBS
=$LIBS
11099 cat >conftest.
$ac_ext <<_ACEOF
11100 #line $LINENO "configure"
11101 #include "confdefs.h"
11103 /* Override any gcc2 internal prototype to avoid an error. */
11107 /* We use char because int might match the return type of a gcc2
11108 builtin and then its argument prototype would still apply. */
11110 #ifdef F77_DUMMY_MAIN
11111 # ifdef __cplusplus
11114 int F77_DUMMY_MAIN() { return 1; }
11124 rm -f conftest.
$ac_objext conftest
$ac_exeext
11125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11126 (eval $ac_link) 2>&5
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); } &&
11130 { ac_try
='test -s conftest$ac_exeext'
11131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11132 (eval $ac_try) 2>&5
11134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135 (exit $ac_status); }; }; then
11136 ac_cv_lib_kvm_kvm_open
=yes
11138 echo "$as_me: failed program was:" >&5
11139 cat conftest.
$ac_ext >&5
11140 ac_cv_lib_kvm_kvm_open
=no
11142 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11143 LIBS
=$ac_check_lib_save_LIBS
11145 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
11146 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
11147 if test $ac_cv_lib_kvm_kvm_open = yes; then
11151 # Check for the 4.4BSD definition of getloadavg.
11152 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
11153 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
11154 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
11155 echo $ECHO_N "(cached) $ECHO_C" >&6
11157 ac_check_lib_save_LIBS
=$LIBS
11158 LIBS
="-lutil $LIBS"
11159 cat >conftest.
$ac_ext <<_ACEOF
11160 #line $LINENO "configure"
11161 #include "confdefs.h"
11163 /* Override any gcc2 internal prototype to avoid an error. */
11167 /* We use char because int might match the return type of a gcc2
11168 builtin and then its argument prototype would still apply. */
11169 char getloadavg ();
11170 #ifdef F77_DUMMY_MAIN
11171 # ifdef __cplusplus
11174 int F77_DUMMY_MAIN() { return 1; }
11184 rm -f conftest.
$ac_objext conftest
$ac_exeext
11185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11186 (eval $ac_link) 2>&5
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); } &&
11190 { ac_try
='test -s conftest$ac_exeext'
11191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11192 (eval $ac_try) 2>&5
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); }; }; then
11196 ac_cv_lib_util_getloadavg
=yes
11198 echo "$as_me: failed program was:" >&5
11199 cat conftest.
$ac_ext >&5
11200 ac_cv_lib_util_getloadavg
=no
11202 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11203 LIBS
=$ac_check_lib_save_LIBS
11205 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
11206 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
11207 if test $ac_cv_lib_util_getloadavg = yes; then
11208 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
11213 if test $ac_have_func = no
; then
11214 # There is a commonly available library for RS/6000 AIX.
11215 # Since it is not a standard part of AIX, it might be installed locally.
11216 ac_getloadavg_LIBS
=$LIBS
11217 LIBS
="-L/usr/local/lib $LIBS"
11218 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
11219 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
11220 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
11221 echo $ECHO_N "(cached) $ECHO_C" >&6
11223 ac_check_lib_save_LIBS
=$LIBS
11224 LIBS
="-lgetloadavg $LIBS"
11225 cat >conftest.
$ac_ext <<_ACEOF
11226 #line $LINENO "configure"
11227 #include "confdefs.h"
11229 /* Override any gcc2 internal prototype to avoid an error. */
11233 /* We use char because int might match the return type of a gcc2
11234 builtin and then its argument prototype would still apply. */
11235 char getloadavg ();
11236 #ifdef F77_DUMMY_MAIN
11237 # ifdef __cplusplus
11240 int F77_DUMMY_MAIN() { return 1; }
11250 rm -f conftest.
$ac_objext conftest
$ac_exeext
11251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11252 (eval $ac_link) 2>&5
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); } &&
11256 { ac_try
='test -s conftest$ac_exeext'
11257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11258 (eval $ac_try) 2>&5
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); }; }; then
11262 ac_cv_lib_getloadavg_getloadavg
=yes
11264 echo "$as_me: failed program was:" >&5
11265 cat conftest.
$ac_ext >&5
11266 ac_cv_lib_getloadavg_getloadavg
=no
11268 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11269 LIBS
=$ac_check_lib_save_LIBS
11271 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
11272 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
11273 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
11274 LIBS
="-lgetloadavg $LIBS"
11276 LIBS
=$ac_getloadavg_LIBS
11281 # Make sure it is really in the library, if we think we found it,
11282 # otherwise set up the replacement function.
11284 for ac_func
in getloadavg
11286 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11287 echo "$as_me:$LINENO: checking for $ac_func" >&5
11288 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11289 if eval "test \"\${$as_ac_var+set}\" = set"; then
11290 echo $ECHO_N "(cached) $ECHO_C" >&6
11292 cat >conftest.
$ac_ext <<_ACEOF
11293 #line $LINENO "configure"
11294 #include "confdefs.h"
11295 /* System header to define __stub macros and hopefully few prototypes,
11296 which can conflict with char $ac_func (); below. */
11297 #include <assert.h>
11298 /* Override any gcc2 internal prototype to avoid an error. */
11302 /* We use char because int might match the return type of a gcc2
11303 builtin and then its argument prototype would still apply. */
11307 #ifdef F77_DUMMY_MAIN
11308 # ifdef __cplusplus
11311 int F77_DUMMY_MAIN() { return 1; }
11316 /* The GNU C library defines this for functions which it implements
11317 to always fail with ENOSYS. Some functions are actually named
11318 something starting with __ and the normal name is an alias. */
11319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11329 rm -f conftest.
$ac_objext conftest
$ac_exeext
11330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11331 (eval $ac_link) 2>&5
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); } &&
11335 { ac_try
='test -s conftest$ac_exeext'
11336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11337 (eval $ac_try) 2>&5
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); }; }; then
11341 eval "$as_ac_var=yes"
11343 echo "$as_me: failed program was:" >&5
11344 cat conftest.
$ac_ext >&5
11345 eval "$as_ac_var=no"
11347 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11350 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11351 if test `eval echo '${'$as_ac_var'}'` = yes; then
11352 cat >>confdefs.h
<<_ACEOF
11353 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11357 LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
11359 cat >>confdefs.h
<<\_ACEOF
11360 #define C_GETLOADAVG 1
11363 # Figure out what our getloadavg.c needs.
11365 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11366 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
11367 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
11368 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11369 echo $ECHO_N "(cached) $ECHO_C" >&6
11371 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
11372 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
11374 # Is the header compilable?
11375 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
11376 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
11377 cat >conftest.
$ac_ext <<_ACEOF
11378 #line $LINENO "configure"
11379 #include "confdefs.h"
11380 $ac_includes_default
11381 #include <sys/dg_sys_info.h>
11383 rm -f conftest.
$ac_objext
11384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11385 (eval $ac_compile) 2>&5
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); } &&
11389 { ac_try
='test -s conftest.$ac_objext'
11390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11391 (eval $ac_try) 2>&5
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); }; }; then
11395 ac_header_compiler
=yes
11397 echo "$as_me: failed program was:" >&5
11398 cat conftest.
$ac_ext >&5
11399 ac_header_compiler
=no
11401 rm -f conftest.
$ac_objext conftest.
$ac_ext
11402 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11403 echo "${ECHO_T}$ac_header_compiler" >&6
11405 # Is the header present?
11406 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
11407 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
11408 cat >conftest.
$ac_ext <<_ACEOF
11409 #line $LINENO "configure"
11410 #include "confdefs.h"
11411 #include <sys/dg_sys_info.h>
11413 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11414 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11416 egrep -v '^ *\+' conftest.er1
>conftest.err
11418 cat conftest.err
>&5
11419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420 (exit $ac_status); } >/dev
/null
; then
11421 if test -s conftest.err
; then
11422 ac_cpp_err
=$ac_c_preproc_warn_flag
11429 if test -z "$ac_cpp_err"; then
11430 ac_header_preproc
=yes
11432 echo "$as_me: failed program was:" >&5
11433 cat conftest.
$ac_ext >&5
11434 ac_header_preproc
=no
11436 rm -f conftest.err conftest.
$ac_ext
11437 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11438 echo "${ECHO_T}$ac_header_preproc" >&6
11440 # So? What about this header?
11441 case $ac_header_compiler:$ac_header_preproc in
11443 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
11444 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11445 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
11446 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};;
11448 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
11449 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
11450 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
11451 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
11452 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
11453 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};;
11455 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
11456 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
11457 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11458 echo $ECHO_N "(cached) $ECHO_C" >&6
11460 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
11462 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
11463 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
11466 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
11469 cat >>confdefs.h
<<\_ACEOF
11474 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
11475 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
11476 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
11477 echo $ECHO_N "(cached) $ECHO_C" >&6
11479 ac_check_lib_save_LIBS
=$LIBS
11481 cat >conftest.
$ac_ext <<_ACEOF
11482 #line $LINENO "configure"
11483 #include "confdefs.h"
11485 /* Override any gcc2 internal prototype to avoid an error. */
11489 /* We use char because int might match the return type of a gcc2
11490 builtin and then its argument prototype would still apply. */
11491 char dg_sys_info ();
11492 #ifdef F77_DUMMY_MAIN
11493 # ifdef __cplusplus
11496 int F77_DUMMY_MAIN() { return 1; }
11506 rm -f conftest.
$ac_objext conftest
$ac_exeext
11507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11508 (eval $ac_link) 2>&5
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); } &&
11512 { ac_try
='test -s conftest$ac_exeext'
11513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11514 (eval $ac_try) 2>&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); }; }; then
11518 ac_cv_lib_dgc_dg_sys_info
=yes
11520 echo "$as_me: failed program was:" >&5
11521 cat conftest.
$ac_ext >&5
11522 ac_cv_lib_dgc_dg_sys_info
=no
11524 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11525 LIBS
=$ac_check_lib_save_LIBS
11527 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
11528 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
11529 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
11530 cat >>confdefs.h
<<_ACEOF
11531 #define HAVE_LIBDGC 1
11542 if test "${ac_cv_header_locale_h+set}" = set; then
11543 echo "$as_me:$LINENO: checking for locale.h" >&5
11544 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
11545 if test "${ac_cv_header_locale_h+set}" = set; then
11546 echo $ECHO_N "(cached) $ECHO_C" >&6
11548 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
11549 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
11551 # Is the header compilable?
11552 echo "$as_me:$LINENO: checking locale.h usability" >&5
11553 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
11554 cat >conftest.
$ac_ext <<_ACEOF
11555 #line $LINENO "configure"
11556 #include "confdefs.h"
11557 $ac_includes_default
11558 #include <locale.h>
11560 rm -f conftest.
$ac_objext
11561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11562 (eval $ac_compile) 2>&5
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); } &&
11566 { ac_try
='test -s conftest.$ac_objext'
11567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11568 (eval $ac_try) 2>&5
11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 (exit $ac_status); }; }; then
11572 ac_header_compiler
=yes
11574 echo "$as_me: failed program was:" >&5
11575 cat conftest.
$ac_ext >&5
11576 ac_header_compiler
=no
11578 rm -f conftest.
$ac_objext conftest.
$ac_ext
11579 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11580 echo "${ECHO_T}$ac_header_compiler" >&6
11582 # Is the header present?
11583 echo "$as_me:$LINENO: checking locale.h presence" >&5
11584 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
11585 cat >conftest.
$ac_ext <<_ACEOF
11586 #line $LINENO "configure"
11587 #include "confdefs.h"
11588 #include <locale.h>
11590 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11591 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11593 egrep -v '^ *\+' conftest.er1
>conftest.err
11595 cat conftest.err
>&5
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); } >/dev
/null
; then
11598 if test -s conftest.err
; then
11599 ac_cpp_err
=$ac_c_preproc_warn_flag
11606 if test -z "$ac_cpp_err"; then
11607 ac_header_preproc
=yes
11609 echo "$as_me: failed program was:" >&5
11610 cat conftest.
$ac_ext >&5
11611 ac_header_preproc
=no
11613 rm -f conftest.err conftest.
$ac_ext
11614 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11615 echo "${ECHO_T}$ac_header_preproc" >&6
11617 # So? What about this header?
11618 case $ac_header_compiler:$ac_header_preproc in
11620 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
11621 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11622 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
11623 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;};;
11625 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
11626 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
11627 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
11628 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
11629 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
11630 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;};;
11632 echo "$as_me:$LINENO: checking for locale.h" >&5
11633 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
11634 if test "${ac_cv_header_locale_h+set}" = set; then
11635 echo $ECHO_N "(cached) $ECHO_C" >&6
11637 ac_cv_header_locale_h
=$ac_header_preproc
11639 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
11640 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
11646 for ac_func
in setlocale
11648 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11649 echo "$as_me:$LINENO: checking for $ac_func" >&5
11650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11651 if eval "test \"\${$as_ac_var+set}\" = set"; then
11652 echo $ECHO_N "(cached) $ECHO_C" >&6
11654 cat >conftest.
$ac_ext <<_ACEOF
11655 #line $LINENO "configure"
11656 #include "confdefs.h"
11657 /* System header to define __stub macros and hopefully few prototypes,
11658 which can conflict with char $ac_func (); below. */
11659 #include <assert.h>
11660 /* Override any gcc2 internal prototype to avoid an error. */
11664 /* We use char because int might match the return type of a gcc2
11665 builtin and then its argument prototype would still apply. */
11669 #ifdef F77_DUMMY_MAIN
11670 # ifdef __cplusplus
11673 int F77_DUMMY_MAIN() { return 1; }
11678 /* The GNU C library defines this for functions which it implements
11679 to always fail with ENOSYS. Some functions are actually named
11680 something starting with __ and the normal name is an alias. */
11681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11691 rm -f conftest.
$ac_objext conftest
$ac_exeext
11692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11693 (eval $ac_link) 2>&5
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); } &&
11697 { ac_try
='test -s conftest$ac_exeext'
11698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11699 (eval $ac_try) 2>&5
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); }; }; then
11703 eval "$as_ac_var=yes"
11705 echo "$as_me: failed program was:" >&5
11706 cat conftest.
$ac_ext >&5
11707 eval "$as_ac_var=no"
11709 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11712 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11713 if test `eval echo '${'$as_ac_var'}'` = yes; then
11714 cat >>confdefs.h
<<_ACEOF
11715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11722 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
11723 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
11724 # Irix 4.0.5F has the header but not the library.
11725 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
11728 cat >>confdefs.h
<<\_ACEOF
11734 if test $ac_have_func = no
; then
11735 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11736 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
11737 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
11738 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11739 echo $ECHO_N "(cached) $ECHO_C" >&6
11741 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
11742 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
11744 # Is the header compilable?
11745 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
11746 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
11747 cat >conftest.
$ac_ext <<_ACEOF
11748 #line $LINENO "configure"
11749 #include "confdefs.h"
11750 $ac_includes_default
11751 #include <inq_stats/cpustats.h>
11753 rm -f conftest.
$ac_objext
11754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11755 (eval $ac_compile) 2>&5
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); } &&
11759 { ac_try
='test -s conftest.$ac_objext'
11760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11761 (eval $ac_try) 2>&5
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); }; }; then
11765 ac_header_compiler
=yes
11767 echo "$as_me: failed program was:" >&5
11768 cat conftest.
$ac_ext >&5
11769 ac_header_compiler
=no
11771 rm -f conftest.
$ac_objext conftest.
$ac_ext
11772 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11773 echo "${ECHO_T}$ac_header_compiler" >&6
11775 # Is the header present?
11776 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
11777 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
11778 cat >conftest.
$ac_ext <<_ACEOF
11779 #line $LINENO "configure"
11780 #include "confdefs.h"
11781 #include <inq_stats/cpustats.h>
11783 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11784 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11786 egrep -v '^ *\+' conftest.er1
>conftest.err
11788 cat conftest.err
>&5
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); } >/dev
/null
; then
11791 if test -s conftest.err
; then
11792 ac_cpp_err
=$ac_c_preproc_warn_flag
11799 if test -z "$ac_cpp_err"; then
11800 ac_header_preproc
=yes
11802 echo "$as_me: failed program was:" >&5
11803 cat conftest.
$ac_ext >&5
11804 ac_header_preproc
=no
11806 rm -f conftest.err conftest.
$ac_ext
11807 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11808 echo "${ECHO_T}$ac_header_preproc" >&6
11810 # So? What about this header?
11811 case $ac_header_compiler:$ac_header_preproc in
11813 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
11814 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11815 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
11816 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11818 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
11819 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
11820 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
11821 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
11822 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
11823 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11825 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
11826 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
11827 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11828 echo $ECHO_N "(cached) $ECHO_C" >&6
11830 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
11832 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
11833 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
11836 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
11839 cat >>confdefs.h
<<\_ACEOF
11844 cat >>confdefs.h
<<\_ACEOF
11853 if test $ac_have_func = no
; then
11854 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11855 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
11856 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
11857 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11858 echo $ECHO_N "(cached) $ECHO_C" >&6
11860 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
11861 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
11863 # Is the header compilable?
11864 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
11865 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
11866 cat >conftest.
$ac_ext <<_ACEOF
11867 #line $LINENO "configure"
11868 #include "confdefs.h"
11869 $ac_includes_default
11870 #include <sys/cpustats.h>
11872 rm -f conftest.
$ac_objext
11873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11874 (eval $ac_compile) 2>&5
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); } &&
11878 { ac_try
='test -s conftest.$ac_objext'
11879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11880 (eval $ac_try) 2>&5
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); }; }; then
11884 ac_header_compiler
=yes
11886 echo "$as_me: failed program was:" >&5
11887 cat conftest.
$ac_ext >&5
11888 ac_header_compiler
=no
11890 rm -f conftest.
$ac_objext conftest.
$ac_ext
11891 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11892 echo "${ECHO_T}$ac_header_compiler" >&6
11894 # Is the header present?
11895 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
11896 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
11897 cat >conftest.
$ac_ext <<_ACEOF
11898 #line $LINENO "configure"
11899 #include "confdefs.h"
11900 #include <sys/cpustats.h>
11902 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11903 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11905 egrep -v '^ *\+' conftest.er1
>conftest.err
11907 cat conftest.err
>&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); } >/dev
/null
; then
11910 if test -s conftest.err
; then
11911 ac_cpp_err
=$ac_c_preproc_warn_flag
11918 if test -z "$ac_cpp_err"; then
11919 ac_header_preproc
=yes
11921 echo "$as_me: failed program was:" >&5
11922 cat conftest.
$ac_ext >&5
11923 ac_header_preproc
=no
11925 rm -f conftest.err conftest.
$ac_ext
11926 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11927 echo "${ECHO_T}$ac_header_preproc" >&6
11929 # So? What about this header?
11930 case $ac_header_compiler:$ac_header_preproc in
11932 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
11933 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11934 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
11935 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11937 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
11938 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
11939 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
11940 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
11941 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
11942 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11944 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
11945 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
11946 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11947 echo $ECHO_N "(cached) $ECHO_C" >&6
11949 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
11951 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
11952 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
11955 if test $ac_cv_header_sys_cpustats_h = yes; then
11956 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
11965 if test $ac_have_func = no
; then
11967 for ac_header
in mach
/mach.h
11969 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11971 echo "$as_me:$LINENO: checking for $ac_header" >&5
11972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11974 echo $ECHO_N "(cached) $ECHO_C" >&6
11976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11979 # Is the header compilable?
11980 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11981 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11982 cat >conftest.
$ac_ext <<_ACEOF
11983 #line $LINENO "configure"
11984 #include "confdefs.h"
11985 $ac_includes_default
11986 #include <$ac_header>
11988 rm -f conftest.
$ac_objext
11989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11990 (eval $ac_compile) 2>&5
11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); } &&
11994 { ac_try
='test -s conftest.$ac_objext'
11995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11996 (eval $ac_try) 2>&5
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); }; }; then
12000 ac_header_compiler
=yes
12002 echo "$as_me: failed program was:" >&5
12003 cat conftest.
$ac_ext >&5
12004 ac_header_compiler
=no
12006 rm -f conftest.
$ac_objext conftest.
$ac_ext
12007 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12008 echo "${ECHO_T}$ac_header_compiler" >&6
12010 # Is the header present?
12011 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12012 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12013 cat >conftest.
$ac_ext <<_ACEOF
12014 #line $LINENO "configure"
12015 #include "confdefs.h"
12016 #include <$ac_header>
12018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12019 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12021 egrep -v '^ *\+' conftest.er1
>conftest.err
12023 cat conftest.err
>&5
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); } >/dev
/null
; then
12026 if test -s conftest.err
; then
12027 ac_cpp_err
=$ac_c_preproc_warn_flag
12034 if test -z "$ac_cpp_err"; then
12035 ac_header_preproc
=yes
12037 echo "$as_me: failed program was:" >&5
12038 cat conftest.
$ac_ext >&5
12039 ac_header_preproc
=no
12041 rm -f conftest.err conftest.
$ac_ext
12042 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12043 echo "${ECHO_T}$ac_header_preproc" >&6
12045 # So? What about this header?
12046 case $ac_header_compiler:$ac_header_preproc in
12048 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12049 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12053 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12054 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12055 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12056 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12058 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12060 echo "$as_me:$LINENO: checking for $ac_header" >&5
12061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12063 echo $ECHO_N "(cached) $ECHO_C" >&6
12065 eval "$as_ac_Header=$ac_header_preproc"
12067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12068 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12072 cat >>confdefs.h
<<_ACEOF
12073 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12083 for ac_header
in nlist.h
12085 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12087 echo "$as_me:$LINENO: checking for $ac_header" >&5
12088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12090 echo $ECHO_N "(cached) $ECHO_C" >&6
12092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12093 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12095 # Is the header compilable?
12096 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12097 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12098 cat >conftest.
$ac_ext <<_ACEOF
12099 #line $LINENO "configure"
12100 #include "confdefs.h"
12101 $ac_includes_default
12102 #include <$ac_header>
12104 rm -f conftest.
$ac_objext
12105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12106 (eval $ac_compile) 2>&5
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); } &&
12110 { ac_try
='test -s conftest.$ac_objext'
12111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12112 (eval $ac_try) 2>&5
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); }; }; then
12116 ac_header_compiler
=yes
12118 echo "$as_me: failed program was:" >&5
12119 cat conftest.
$ac_ext >&5
12120 ac_header_compiler
=no
12122 rm -f conftest.
$ac_objext conftest.
$ac_ext
12123 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12124 echo "${ECHO_T}$ac_header_compiler" >&6
12126 # Is the header present?
12127 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12128 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12129 cat >conftest.
$ac_ext <<_ACEOF
12130 #line $LINENO "configure"
12131 #include "confdefs.h"
12132 #include <$ac_header>
12134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12135 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12137 egrep -v '^ *\+' conftest.er1
>conftest.err
12139 cat conftest.err
>&5
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); } >/dev
/null
; then
12142 if test -s conftest.err
; then
12143 ac_cpp_err
=$ac_c_preproc_warn_flag
12150 if test -z "$ac_cpp_err"; then
12151 ac_header_preproc
=yes
12153 echo "$as_me: failed program was:" >&5
12154 cat conftest.
$ac_ext >&5
12155 ac_header_preproc
=no
12157 rm -f conftest.err conftest.
$ac_ext
12158 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12159 echo "${ECHO_T}$ac_header_preproc" >&6
12161 # So? What about this header?
12162 case $ac_header_compiler:$ac_header_preproc in
12164 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12165 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12167 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12169 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12170 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12171 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12172 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12174 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12176 echo "$as_me:$LINENO: checking for $ac_header" >&5
12177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12179 echo $ECHO_N "(cached) $ECHO_C" >&6
12181 eval "$as_ac_Header=$ac_header_preproc"
12183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12184 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12187 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12188 cat >>confdefs.h
<<_ACEOF
12189 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12191 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
12192 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
12193 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
12194 echo $ECHO_N "(cached) $ECHO_C" >&6
12196 cat >conftest.
$ac_ext <<_ACEOF
12197 #line $LINENO "configure"
12198 #include "confdefs.h"
12201 #ifdef F77_DUMMY_MAIN
12202 # ifdef __cplusplus
12205 int F77_DUMMY_MAIN() { return 1; }
12210 static struct nlist ac_aggr;
12211 if (ac_aggr.n_un.n_name)
12217 rm -f conftest.
$ac_objext
12218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12219 (eval $ac_compile) 2>&5
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); } &&
12223 { ac_try
='test -s conftest.$ac_objext'
12224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225 (eval $ac_try) 2>&5
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }; }; then
12229 ac_cv_member_struct_nlist_n_un_n_name
=yes
12231 echo "$as_me: failed program was:" >&5
12232 cat conftest.
$ac_ext >&5
12233 ac_cv_member_struct_nlist_n_un_n_name
=no
12235 rm -f conftest.
$ac_objext conftest.
$ac_ext
12237 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
12238 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
12239 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
12241 cat >>confdefs.h
<<_ACEOF
12242 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
12246 cat >>confdefs.h
<<\_ACEOF
12247 #define NLIST_NAME_UNION 1
12261 # Some definitions of getloadavg require that the program be installed setgid.
12262 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
12263 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
12264 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
12265 echo $ECHO_N "(cached) $ECHO_C" >&6
12267 cat >conftest.
$ac_ext <<_ACEOF
12268 #line $LINENO "configure"
12269 #include "confdefs.h"
12270 #include "$srcdir/getloadavg.c"
12271 #ifdef LDAV_PRIVILEGED
12272 Yowza Am I SETGID yet
12275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12276 egrep "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
12277 ac_cv_func_getloadavg_setgid
=yes
12279 ac_cv_func_getloadavg_setgid
=no
12284 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
12285 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
12286 if test $ac_cv_func_getloadavg_setgid = yes; then
12289 cat >>confdefs.h
<<\_ACEOF
12290 #define GETLOADAVG_PRIVILEGED 1
12297 if test $ac_cv_func_getloadavg_setgid = yes; then
12298 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
12299 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
12300 if test "${ac_cv_group_kmem+set}" = set; then
12301 echo $ECHO_N "(cached) $ECHO_C" >&6
12303 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
12304 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
12305 # If we got an error (system does not support symlinks), try without -L.
12306 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
12307 ac_cv_group_kmem
=`echo $ac_ls_output \
12308 | sed -ne 's/[ ][ ]*/ /g;
12309 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
12313 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
12314 echo "${ECHO_T}$ac_cv_group_kmem" >&6
12315 KMEM_GROUP
=$ac_cv_group_kmem
12317 if test "x$ac_save_LIBS" = x
; then
12318 GETLOADAVG_LIBS
=$LIBS
12320 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
12326 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12327 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
12328 if test "${ac_cv_sys_largefile_source+set}" = set; then
12329 echo $ECHO_N "(cached) $ECHO_C" >&6
12332 ac_cv_sys_largefile_source
=no
12333 cat >conftest.
$ac_ext <<_ACEOF
12334 #line $LINENO "configure"
12335 #include "confdefs.h"
12337 #ifdef F77_DUMMY_MAIN
12338 # ifdef __cplusplus
12341 int F77_DUMMY_MAIN() { return 1; }
12351 rm -f conftest.
$ac_objext
12352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12353 (eval $ac_compile) 2>&5
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); } &&
12357 { ac_try
='test -s conftest.$ac_objext'
12358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12359 (eval $ac_try) 2>&5
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); }; }; then
12365 echo "$as_me: failed program was:" >&5
12366 cat conftest.
$ac_ext >&5
12368 rm -f conftest.
$ac_objext conftest.
$ac_ext
12369 cat >conftest.
$ac_ext <<_ACEOF
12370 #line $LINENO "configure"
12371 #include "confdefs.h"
12372 #define _LARGEFILE_SOURCE 1
12374 #ifdef F77_DUMMY_MAIN
12375 # ifdef __cplusplus
12378 int F77_DUMMY_MAIN() { return 1; }
12388 rm -f conftest.
$ac_objext
12389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12390 (eval $ac_compile) 2>&5
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); } &&
12394 { ac_try
='test -s conftest.$ac_objext'
12395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12396 (eval $ac_try) 2>&5
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); }; }; then
12400 ac_cv_sys_largefile_source
=1; break
12402 echo "$as_me: failed program was:" >&5
12403 cat conftest.
$ac_ext >&5
12405 rm -f conftest.
$ac_objext conftest.
$ac_ext
12409 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12410 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
12411 if test "$ac_cv_sys_largefile_source" != no
; then
12413 cat >>confdefs.h
<<_ACEOF
12414 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12420 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12421 # in glibc 2.1.3, but that breaks too many other things.
12422 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12423 echo "$as_me:$LINENO: checking for fseeko" >&5
12424 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
12425 if test "${ac_cv_func_fseeko+set}" = set; then
12426 echo $ECHO_N "(cached) $ECHO_C" >&6
12428 cat >conftest.
$ac_ext <<_ACEOF
12429 #line $LINENO "configure"
12430 #include "confdefs.h"
12432 #ifdef F77_DUMMY_MAIN
12433 # ifdef __cplusplus
12436 int F77_DUMMY_MAIN() { return 1; }
12441 return fseeko && fseeko (stdin, 0, 0);
12446 rm -f conftest.
$ac_objext conftest
$ac_exeext
12447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12448 (eval $ac_link) 2>&5
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); } &&
12452 { ac_try
='test -s conftest$ac_exeext'
12453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12454 (eval $ac_try) 2>&5
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); }; }; then
12458 ac_cv_func_fseeko
=yes
12460 echo "$as_me: failed program was:" >&5
12461 cat conftest.
$ac_ext >&5
12462 ac_cv_func_fseeko
=no
12464 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12466 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
12467 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
12468 if test $ac_cv_func_fseeko = yes; then
12470 cat >>confdefs.h
<<\_ACEOF
12471 #define HAVE_FSEEKO 1
12479 for ac_func
in grantpt
12481 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12482 echo "$as_me:$LINENO: checking for $ac_func" >&5
12483 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12484 if eval "test \"\${$as_ac_var+set}\" = set"; then
12485 echo $ECHO_N "(cached) $ECHO_C" >&6
12487 cat >conftest.
$ac_ext <<_ACEOF
12488 #line $LINENO "configure"
12489 #include "confdefs.h"
12490 /* System header to define __stub macros and hopefully few prototypes,
12491 which can conflict with char $ac_func (); below. */
12492 #include <assert.h>
12493 /* Override any gcc2 internal prototype to avoid an error. */
12497 /* We use char because int might match the return type of a gcc2
12498 builtin and then its argument prototype would still apply. */
12502 #ifdef F77_DUMMY_MAIN
12503 # ifdef __cplusplus
12506 int F77_DUMMY_MAIN() { return 1; }
12511 /* The GNU C library defines this for functions which it implements
12512 to always fail with ENOSYS. Some functions are actually named
12513 something starting with __ and the normal name is an alias. */
12514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12524 rm -f conftest.
$ac_objext conftest
$ac_exeext
12525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12526 (eval $ac_link) 2>&5
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); } &&
12530 { ac_try
='test -s conftest$ac_exeext'
12531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12532 (eval $ac_try) 2>&5
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); }; }; then
12536 eval "$as_ac_var=yes"
12538 echo "$as_me: failed program was:" >&5
12539 cat conftest.
$ac_ext >&5
12540 eval "$as_ac_var=no"
12542 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12545 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12546 if test `eval echo '${'$as_ac_var'}'` = yes; then
12547 cat >>confdefs.h
<<_ACEOF
12548 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12555 # PTY-related GNU extensions.
12557 for ac_func
in getpt
12559 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12560 echo "$as_me:$LINENO: checking for $ac_func" >&5
12561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12562 if eval "test \"\${$as_ac_var+set}\" = set"; then
12563 echo $ECHO_N "(cached) $ECHO_C" >&6
12565 cat >conftest.
$ac_ext <<_ACEOF
12566 #line $LINENO "configure"
12567 #include "confdefs.h"
12568 /* System header to define __stub macros and hopefully few prototypes,
12569 which can conflict with char $ac_func (); below. */
12570 #include <assert.h>
12571 /* Override any gcc2 internal prototype to avoid an error. */
12575 /* We use char because int might match the return type of a gcc2
12576 builtin and then its argument prototype would still apply. */
12580 #ifdef F77_DUMMY_MAIN
12581 # ifdef __cplusplus
12584 int F77_DUMMY_MAIN() { return 1; }
12589 /* The GNU C library defines this for functions which it implements
12590 to always fail with ENOSYS. Some functions are actually named
12591 something starting with __ and the normal name is an alias. */
12592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12602 rm -f conftest.
$ac_objext conftest
$ac_exeext
12603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12604 (eval $ac_link) 2>&5
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); } &&
12608 { ac_try
='test -s conftest$ac_exeext'
12609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610 (eval $ac_try) 2>&5
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); }; }; then
12614 eval "$as_ac_var=yes"
12616 echo "$as_me: failed program was:" >&5
12617 cat conftest.
$ac_ext >&5
12618 eval "$as_ac_var=no"
12620 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12623 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12624 if test `eval echo '${'$as_ac_var'}'` = yes; then
12625 cat >>confdefs.h
<<_ACEOF
12626 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12633 # Check this now, so that we will NOT find the above functions in ncurses.
12634 # That is because we have not set up to link ncurses in lib-src.
12635 # It's better to believe a function is not available
12636 # than to expect to find it in ncurses.
12638 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
12639 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
12640 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
12641 echo $ECHO_N "(cached) $ECHO_C" >&6
12643 ac_check_lib_save_LIBS
=$LIBS
12644 LIBS
="-lncurses $LIBS"
12645 cat >conftest.
$ac_ext <<_ACEOF
12646 #line $LINENO "configure"
12647 #include "confdefs.h"
12649 /* Override any gcc2 internal prototype to avoid an error. */
12653 /* We use char because int might match the return type of a gcc2
12654 builtin and then its argument prototype would still apply. */
12656 #ifdef F77_DUMMY_MAIN
12657 # ifdef __cplusplus
12660 int F77_DUMMY_MAIN() { return 1; }
12670 rm -f conftest.
$ac_objext conftest
$ac_exeext
12671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12672 (eval $ac_link) 2>&5
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); } &&
12676 { ac_try
='test -s conftest$ac_exeext'
12677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12678 (eval $ac_try) 2>&5
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); }; }; then
12682 ac_cv_lib_ncurses_tparm
=yes
12684 echo "$as_me: failed program was:" >&5
12685 cat conftest.
$ac_ext >&5
12686 ac_cv_lib_ncurses_tparm
=no
12688 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12689 LIBS
=$ac_check_lib_save_LIBS
12691 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
12692 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
12693 if test $ac_cv_lib_ncurses_tparm = yes; then
12694 cat >>confdefs.h
<<_ACEOF
12695 #define HAVE_LIBNCURSES 1
12698 LIBS
="-lncurses $LIBS"
12703 # Do we need the Hesiod library to provide the support routines?
12704 if test "$with_hesiod" = yes ; then
12705 # Don't set $LIBS here -- see comments above.
12707 echo "$as_me:$LINENO: checking for res_send" >&5
12708 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
12709 if test "${ac_cv_func_res_send+set}" = set; then
12710 echo $ECHO_N "(cached) $ECHO_C" >&6
12712 cat >conftest.
$ac_ext <<_ACEOF
12713 #line $LINENO "configure"
12714 #include "confdefs.h"
12715 /* System header to define __stub macros and hopefully few prototypes,
12716 which can conflict with char res_send (); below. */
12717 #include <assert.h>
12718 /* Override any gcc2 internal prototype to avoid an error. */
12722 /* We use char because int might match the return type of a gcc2
12723 builtin and then its argument prototype would still apply. */
12727 #ifdef F77_DUMMY_MAIN
12728 # ifdef __cplusplus
12731 int F77_DUMMY_MAIN() { return 1; }
12736 /* The GNU C library defines this for functions which it implements
12737 to always fail with ENOSYS. Some functions are actually named
12738 something starting with __ and the normal name is an alias. */
12739 #if defined (__stub_res_send) || defined (__stub___res_send)
12749 rm -f conftest.
$ac_objext conftest
$ac_exeext
12750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12751 (eval $ac_link) 2>&5
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); } &&
12755 { ac_try
='test -s conftest$ac_exeext'
12756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12757 (eval $ac_try) 2>&5
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); }; }; then
12761 ac_cv_func_res_send
=yes
12763 echo "$as_me: failed program was:" >&5
12764 cat conftest.
$ac_ext >&5
12765 ac_cv_func_res_send
=no
12767 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12769 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
12770 echo "${ECHO_T}$ac_cv_func_res_send" >&6
12771 if test $ac_cv_func_res_send = yes; then
12774 echo "$as_me:$LINENO: checking for __res_send" >&5
12775 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
12776 if test "${ac_cv_func___res_send+set}" = set; then
12777 echo $ECHO_N "(cached) $ECHO_C" >&6
12779 cat >conftest.
$ac_ext <<_ACEOF
12780 #line $LINENO "configure"
12781 #include "confdefs.h"
12782 /* System header to define __stub macros and hopefully few prototypes,
12783 which can conflict with char __res_send (); below. */
12784 #include <assert.h>
12785 /* Override any gcc2 internal prototype to avoid an error. */
12789 /* We use char because int might match the return type of a gcc2
12790 builtin and then its argument prototype would still apply. */
12791 char __res_send ();
12794 #ifdef F77_DUMMY_MAIN
12795 # ifdef __cplusplus
12798 int F77_DUMMY_MAIN() { return 1; }
12803 /* The GNU C library defines this for functions which it implements
12804 to always fail with ENOSYS. Some functions are actually named
12805 something starting with __ and the normal name is an alias. */
12806 #if defined (__stub___res_send) || defined (__stub_____res_send)
12816 rm -f conftest.
$ac_objext conftest
$ac_exeext
12817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12818 (eval $ac_link) 2>&5
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); } &&
12822 { ac_try
='test -s conftest$ac_exeext'
12823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12824 (eval $ac_try) 2>&5
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); }; }; then
12828 ac_cv_func___res_send
=yes
12830 echo "$as_me: failed program was:" >&5
12831 cat conftest.
$ac_ext >&5
12832 ac_cv_func___res_send
=no
12834 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12836 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
12837 echo "${ECHO_T}$ac_cv_func___res_send" >&6
12838 if test $ac_cv_func___res_send = yes; then
12841 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
12842 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
12843 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
12844 echo $ECHO_N "(cached) $ECHO_C" >&6
12846 ac_check_lib_save_LIBS
=$LIBS
12847 LIBS
="-lresolv $LIBS"
12848 cat >conftest.
$ac_ext <<_ACEOF
12849 #line $LINENO "configure"
12850 #include "confdefs.h"
12852 /* Override any gcc2 internal prototype to avoid an error. */
12856 /* We use char because int might match the return type of a gcc2
12857 builtin and then its argument prototype would still apply. */
12859 #ifdef F77_DUMMY_MAIN
12860 # ifdef __cplusplus
12863 int F77_DUMMY_MAIN() { return 1; }
12873 rm -f conftest.
$ac_objext conftest
$ac_exeext
12874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12875 (eval $ac_link) 2>&5
12877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878 (exit $ac_status); } &&
12879 { ac_try
='test -s conftest$ac_exeext'
12880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12881 (eval $ac_try) 2>&5
12883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884 (exit $ac_status); }; }; then
12885 ac_cv_lib_resolv_res_send
=yes
12887 echo "$as_me: failed program was:" >&5
12888 cat conftest.
$ac_ext >&5
12889 ac_cv_lib_resolv_res_send
=no
12891 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12892 LIBS
=$ac_check_lib_save_LIBS
12894 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
12895 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
12896 if test $ac_cv_lib_resolv_res_send = yes; then
12899 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
12900 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
12901 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
12902 echo $ECHO_N "(cached) $ECHO_C" >&6
12904 ac_check_lib_save_LIBS
=$LIBS
12905 LIBS
="-lresolv $LIBS"
12906 cat >conftest.
$ac_ext <<_ACEOF
12907 #line $LINENO "configure"
12908 #include "confdefs.h"
12910 /* Override any gcc2 internal prototype to avoid an error. */
12914 /* We use char because int might match the return type of a gcc2
12915 builtin and then its argument prototype would still apply. */
12916 char __res_send ();
12917 #ifdef F77_DUMMY_MAIN
12918 # ifdef __cplusplus
12921 int F77_DUMMY_MAIN() { return 1; }
12931 rm -f conftest.
$ac_objext conftest
$ac_exeext
12932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12933 (eval $ac_link) 2>&5
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); } &&
12937 { ac_try
='test -s conftest$ac_exeext'
12938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12939 (eval $ac_try) 2>&5
12941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942 (exit $ac_status); }; }; then
12943 ac_cv_lib_resolv___res_send
=yes
12945 echo "$as_me: failed program was:" >&5
12946 cat conftest.
$ac_ext >&5
12947 ac_cv_lib_resolv___res_send
=no
12949 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12950 LIBS
=$ac_check_lib_save_LIBS
12952 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
12953 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
12954 if test $ac_cv_lib_resolv___res_send = yes; then
12964 if test "$resolv" = yes ; then
12967 cat >>confdefs.h
<<\_ACEOF
12968 #define HAVE_LIBRESOLV 1
12974 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
12975 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
12976 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
12977 echo $ECHO_N "(cached) $ECHO_C" >&6
12979 cat >conftest.
$ac_ext <<_ACEOF
12980 #line $LINENO "configure"
12981 #include "confdefs.h"
12982 /* System header to define __stub macros and hopefully few prototypes,
12983 which can conflict with char hes_getmailhost (); below. */
12984 #include <assert.h>
12985 /* Override any gcc2 internal prototype to avoid an error. */
12989 /* We use char because int might match the return type of a gcc2
12990 builtin and then its argument prototype would still apply. */
12991 char hes_getmailhost ();
12994 #ifdef F77_DUMMY_MAIN
12995 # ifdef __cplusplus
12998 int F77_DUMMY_MAIN() { return 1; }
13003 /* The GNU C library defines this for functions which it implements
13004 to always fail with ENOSYS. Some functions are actually named
13005 something starting with __ and the normal name is an alias. */
13006 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
13009 f = hes_getmailhost;
13016 rm -f conftest.
$ac_objext conftest
$ac_exeext
13017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13018 (eval $ac_link) 2>&5
13020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021 (exit $ac_status); } &&
13022 { ac_try
='test -s conftest$ac_exeext'
13023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13024 (eval $ac_try) 2>&5
13026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027 (exit $ac_status); }; }; then
13028 ac_cv_func_hes_getmailhost
=yes
13030 echo "$as_me: failed program was:" >&5
13031 cat conftest.
$ac_ext >&5
13032 ac_cv_func_hes_getmailhost
=no
13034 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13036 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
13037 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
13038 if test $ac_cv_func_hes_getmailhost = yes; then
13041 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
13042 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
13043 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
13044 echo $ECHO_N "(cached) $ECHO_C" >&6
13046 ac_check_lib_save_LIBS
=$LIBS
13047 LIBS
="-lhesiod $RESOLVLIB $LIBS"
13048 cat >conftest.
$ac_ext <<_ACEOF
13049 #line $LINENO "configure"
13050 #include "confdefs.h"
13052 /* Override any gcc2 internal prototype to avoid an error. */
13056 /* We use char because int might match the return type of a gcc2
13057 builtin and then its argument prototype would still apply. */
13058 char hes_getmailhost ();
13059 #ifdef F77_DUMMY_MAIN
13060 # ifdef __cplusplus
13063 int F77_DUMMY_MAIN() { return 1; }
13068 hes_getmailhost ();
13073 rm -f conftest.
$ac_objext conftest
$ac_exeext
13074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13075 (eval $ac_link) 2>&5
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); } &&
13079 { ac_try
='test -s conftest$ac_exeext'
13080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13081 (eval $ac_try) 2>&5
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); }; }; then
13085 ac_cv_lib_hesiod_hes_getmailhost
=yes
13087 echo "$as_me: failed program was:" >&5
13088 cat conftest.
$ac_ext >&5
13089 ac_cv_lib_hesiod_hes_getmailhost
=no
13091 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13092 LIBS
=$ac_check_lib_save_LIBS
13094 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13095 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
13096 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
13098 cat >>confdefs.h
<<\_ACEOF
13099 #define HAVE_LIBHESIOD 1
13110 # These tell us which Kerberos-related libraries to use.
13111 if test "${with_kerberos+set}" = set; then
13113 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
13114 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
13115 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
13116 echo $ECHO_N "(cached) $ECHO_C" >&6
13118 ac_check_lib_save_LIBS
=$LIBS
13119 LIBS
="-lcom_err $LIBS"
13120 cat >conftest.
$ac_ext <<_ACEOF
13121 #line $LINENO "configure"
13122 #include "confdefs.h"
13124 /* Override any gcc2 internal prototype to avoid an error. */
13128 /* We use char because int might match the return type of a gcc2
13129 builtin and then its argument prototype would still apply. */
13131 #ifdef F77_DUMMY_MAIN
13132 # ifdef __cplusplus
13135 int F77_DUMMY_MAIN() { return 1; }
13145 rm -f conftest.
$ac_objext conftest
$ac_exeext
13146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13147 (eval $ac_link) 2>&5
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); } &&
13151 { ac_try
='test -s conftest$ac_exeext'
13152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13153 (eval $ac_try) 2>&5
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); }; }; then
13157 ac_cv_lib_com_err_com_err
=yes
13159 echo "$as_me: failed program was:" >&5
13160 cat conftest.
$ac_ext >&5
13161 ac_cv_lib_com_err_com_err
=no
13163 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13164 LIBS
=$ac_check_lib_save_LIBS
13166 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
13167 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
13168 if test $ac_cv_lib_com_err_com_err = yes; then
13169 cat >>confdefs.h
<<_ACEOF
13170 #define HAVE_LIBCOM_ERR 1
13173 LIBS
="-lcom_err $LIBS"
13178 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13179 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
13180 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
13181 echo $ECHO_N "(cached) $ECHO_C" >&6
13183 ac_check_lib_save_LIBS
=$LIBS
13184 LIBS
="-lk5crypto $LIBS"
13185 cat >conftest.
$ac_ext <<_ACEOF
13186 #line $LINENO "configure"
13187 #include "confdefs.h"
13189 /* Override any gcc2 internal prototype to avoid an error. */
13193 /* We use char because int might match the return type of a gcc2
13194 builtin and then its argument prototype would still apply. */
13195 char mit_des_cbc_encrypt ();
13196 #ifdef F77_DUMMY_MAIN
13197 # ifdef __cplusplus
13200 int F77_DUMMY_MAIN() { return 1; }
13205 mit_des_cbc_encrypt ();
13210 rm -f conftest.
$ac_objext conftest
$ac_exeext
13211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13212 (eval $ac_link) 2>&5
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); } &&
13216 { ac_try
='test -s conftest$ac_exeext'
13217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13218 (eval $ac_try) 2>&5
13220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221 (exit $ac_status); }; }; then
13222 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
13224 echo "$as_me: failed program was:" >&5
13225 cat conftest.
$ac_ext >&5
13226 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
13228 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13229 LIBS
=$ac_check_lib_save_LIBS
13231 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13232 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
13233 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
13234 cat >>confdefs.h
<<_ACEOF
13235 #define HAVE_LIBK5CRYPTO 1
13238 LIBS
="-lk5crypto $LIBS"
13243 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13244 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
13245 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
13246 echo $ECHO_N "(cached) $ECHO_C" >&6
13248 ac_check_lib_save_LIBS
=$LIBS
13249 LIBS
="-lcrypto $LIBS"
13250 cat >conftest.
$ac_ext <<_ACEOF
13251 #line $LINENO "configure"
13252 #include "confdefs.h"
13254 /* Override any gcc2 internal prototype to avoid an error. */
13258 /* We use char because int might match the return type of a gcc2
13259 builtin and then its argument prototype would still apply. */
13260 char mit_des_cbc_encrypt ();
13261 #ifdef F77_DUMMY_MAIN
13262 # ifdef __cplusplus
13265 int F77_DUMMY_MAIN() { return 1; }
13270 mit_des_cbc_encrypt ();
13275 rm -f conftest.
$ac_objext conftest
$ac_exeext
13276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13277 (eval $ac_link) 2>&5
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); } &&
13281 { ac_try
='test -s conftest$ac_exeext'
13282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13283 (eval $ac_try) 2>&5
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); }; }; then
13287 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
13289 echo "$as_me: failed program was:" >&5
13290 cat conftest.
$ac_ext >&5
13291 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
13293 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13294 LIBS
=$ac_check_lib_save_LIBS
13296 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13297 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
13298 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
13299 cat >>confdefs.h
<<_ACEOF
13300 #define HAVE_LIBCRYPTO 1
13303 LIBS
="-lcrypto $LIBS"
13308 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
13309 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
13310 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
13311 echo $ECHO_N "(cached) $ECHO_C" >&6
13313 ac_check_lib_save_LIBS
=$LIBS
13314 LIBS
="-lkrb5 $LIBS"
13315 cat >conftest.
$ac_ext <<_ACEOF
13316 #line $LINENO "configure"
13317 #include "confdefs.h"
13319 /* Override any gcc2 internal prototype to avoid an error. */
13323 /* We use char because int might match the return type of a gcc2
13324 builtin and then its argument prototype would still apply. */
13325 char krb5_init_context ();
13326 #ifdef F77_DUMMY_MAIN
13327 # ifdef __cplusplus
13330 int F77_DUMMY_MAIN() { return 1; }
13335 krb5_init_context ();
13340 rm -f conftest.
$ac_objext conftest
$ac_exeext
13341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13342 (eval $ac_link) 2>&5
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); } &&
13346 { ac_try
='test -s conftest$ac_exeext'
13347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13348 (eval $ac_try) 2>&5
13350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351 (exit $ac_status); }; }; then
13352 ac_cv_lib_krb5_krb5_init_context
=yes
13354 echo "$as_me: failed program was:" >&5
13355 cat conftest.
$ac_ext >&5
13356 ac_cv_lib_krb5_krb5_init_context
=no
13358 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13359 LIBS
=$ac_check_lib_save_LIBS
13361 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
13362 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
13363 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
13364 cat >>confdefs.h
<<_ACEOF
13365 #define HAVE_LIBKRB5 1
13368 LIBS
="-lkrb5 $LIBS"
13372 if test "${with_kerberos5+set}" != set; then
13374 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
13375 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
13376 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
13377 echo $ECHO_N "(cached) $ECHO_C" >&6
13379 ac_check_lib_save_LIBS
=$LIBS
13380 LIBS
="-ldes425 $LIBS"
13381 cat >conftest.
$ac_ext <<_ACEOF
13382 #line $LINENO "configure"
13383 #include "confdefs.h"
13385 /* Override any gcc2 internal prototype to avoid an error. */
13389 /* We use char because int might match the return type of a gcc2
13390 builtin and then its argument prototype would still apply. */
13391 char des_cbc_encrypt ();
13392 #ifdef F77_DUMMY_MAIN
13393 # ifdef __cplusplus
13396 int F77_DUMMY_MAIN() { return 1; }
13401 des_cbc_encrypt ();
13406 rm -f conftest.
$ac_objext conftest
$ac_exeext
13407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13408 (eval $ac_link) 2>&5
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); } &&
13412 { ac_try
='test -s conftest$ac_exeext'
13413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13414 (eval $ac_try) 2>&5
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); }; }; then
13418 ac_cv_lib_des425_des_cbc_encrypt
=yes
13420 echo "$as_me: failed program was:" >&5
13421 cat conftest.
$ac_ext >&5
13422 ac_cv_lib_des425_des_cbc_encrypt
=no
13424 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13425 LIBS
=$ac_check_lib_save_LIBS
13427 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13428 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
13429 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
13430 cat >>confdefs.h
<<_ACEOF
13431 #define HAVE_LIBDES425 1
13434 LIBS
="-ldes425 $LIBS"
13438 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
13439 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
13440 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
13441 echo $ECHO_N "(cached) $ECHO_C" >&6
13443 ac_check_lib_save_LIBS
=$LIBS
13445 cat >conftest.
$ac_ext <<_ACEOF
13446 #line $LINENO "configure"
13447 #include "confdefs.h"
13449 /* Override any gcc2 internal prototype to avoid an error. */
13453 /* We use char because int might match the return type of a gcc2
13454 builtin and then its argument prototype would still apply. */
13455 char des_cbc_encrypt ();
13456 #ifdef F77_DUMMY_MAIN
13457 # ifdef __cplusplus
13460 int F77_DUMMY_MAIN() { return 1; }
13465 des_cbc_encrypt ();
13470 rm -f conftest.
$ac_objext conftest
$ac_exeext
13471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13472 (eval $ac_link) 2>&5
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); } &&
13476 { ac_try
='test -s conftest$ac_exeext'
13477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13478 (eval $ac_try) 2>&5
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); }; }; then
13482 ac_cv_lib_des_des_cbc_encrypt
=yes
13484 echo "$as_me: failed program was:" >&5
13485 cat conftest.
$ac_ext >&5
13486 ac_cv_lib_des_des_cbc_encrypt
=no
13488 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13489 LIBS
=$ac_check_lib_save_LIBS
13491 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13492 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
13493 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
13494 cat >>confdefs.h
<<_ACEOF
13495 #define HAVE_LIBDES 1
13505 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
13506 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
13507 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
13508 echo $ECHO_N "(cached) $ECHO_C" >&6
13510 ac_check_lib_save_LIBS
=$LIBS
13511 LIBS
="-lkrb4 $LIBS"
13512 cat >conftest.
$ac_ext <<_ACEOF
13513 #line $LINENO "configure"
13514 #include "confdefs.h"
13516 /* Override any gcc2 internal prototype to avoid an error. */
13520 /* We use char because int might match the return type of a gcc2
13521 builtin and then its argument prototype would still apply. */
13522 char krb_get_cred ();
13523 #ifdef F77_DUMMY_MAIN
13524 # ifdef __cplusplus
13527 int F77_DUMMY_MAIN() { return 1; }
13537 rm -f conftest.
$ac_objext conftest
$ac_exeext
13538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13539 (eval $ac_link) 2>&5
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); } &&
13543 { ac_try
='test -s conftest$ac_exeext'
13544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13545 (eval $ac_try) 2>&5
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); }; }; then
13549 ac_cv_lib_krb4_krb_get_cred
=yes
13551 echo "$as_me: failed program was:" >&5
13552 cat conftest.
$ac_ext >&5
13553 ac_cv_lib_krb4_krb_get_cred
=no
13555 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13556 LIBS
=$ac_check_lib_save_LIBS
13558 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
13559 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
13560 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
13561 cat >>confdefs.h
<<_ACEOF
13562 #define HAVE_LIBKRB4 1
13565 LIBS
="-lkrb4 $LIBS"
13569 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
13570 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
13571 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
13572 echo $ECHO_N "(cached) $ECHO_C" >&6
13574 ac_check_lib_save_LIBS
=$LIBS
13576 cat >conftest.
$ac_ext <<_ACEOF
13577 #line $LINENO "configure"
13578 #include "confdefs.h"
13580 /* Override any gcc2 internal prototype to avoid an error. */
13584 /* We use char because int might match the return type of a gcc2
13585 builtin and then its argument prototype would still apply. */
13586 char krb_get_cred ();
13587 #ifdef F77_DUMMY_MAIN
13588 # ifdef __cplusplus
13591 int F77_DUMMY_MAIN() { return 1; }
13601 rm -f conftest.
$ac_objext conftest
$ac_exeext
13602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13603 (eval $ac_link) 2>&5
13605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606 (exit $ac_status); } &&
13607 { ac_try
='test -s conftest$ac_exeext'
13608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13609 (eval $ac_try) 2>&5
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); }; }; then
13613 ac_cv_lib_krb_krb_get_cred
=yes
13615 echo "$as_me: failed program was:" >&5
13616 cat conftest.
$ac_ext >&5
13617 ac_cv_lib_krb_krb_get_cred
=no
13619 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13620 LIBS
=$ac_check_lib_save_LIBS
13622 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
13623 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
13624 if test $ac_cv_lib_krb_krb_get_cred = yes; then
13625 cat >>confdefs.h
<<_ACEOF
13626 #define HAVE_LIBKRB 1
13637 if test "${with_kerberos5+set}" = set; then
13639 for ac_header
in krb5.h
13641 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13642 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13643 echo "$as_me:$LINENO: checking for $ac_header" >&5
13644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13646 echo $ECHO_N "(cached) $ECHO_C" >&6
13648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13649 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13651 # Is the header compilable?
13652 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13653 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13654 cat >conftest.
$ac_ext <<_ACEOF
13655 #line $LINENO "configure"
13656 #include "confdefs.h"
13657 $ac_includes_default
13658 #include <$ac_header>
13660 rm -f conftest.
$ac_objext
13661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13662 (eval $ac_compile) 2>&5
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); } &&
13666 { ac_try
='test -s conftest.$ac_objext'
13667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13668 (eval $ac_try) 2>&5
13670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671 (exit $ac_status); }; }; then
13672 ac_header_compiler
=yes
13674 echo "$as_me: failed program was:" >&5
13675 cat conftest.
$ac_ext >&5
13676 ac_header_compiler
=no
13678 rm -f conftest.
$ac_objext conftest.
$ac_ext
13679 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13680 echo "${ECHO_T}$ac_header_compiler" >&6
13682 # Is the header present?
13683 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13684 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13685 cat >conftest.
$ac_ext <<_ACEOF
13686 #line $LINENO "configure"
13687 #include "confdefs.h"
13688 #include <$ac_header>
13690 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13691 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13693 egrep -v '^ *\+' conftest.er1
>conftest.err
13695 cat conftest.err
>&5
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); } >/dev
/null
; then
13698 if test -s conftest.err
; then
13699 ac_cpp_err
=$ac_c_preproc_warn_flag
13706 if test -z "$ac_cpp_err"; then
13707 ac_header_preproc
=yes
13709 echo "$as_me: failed program was:" >&5
13710 cat conftest.
$ac_ext >&5
13711 ac_header_preproc
=no
13713 rm -f conftest.err conftest.
$ac_ext
13714 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13715 echo "${ECHO_T}$ac_header_preproc" >&6
13717 # So? What about this header?
13718 case $ac_header_compiler:$ac_header_preproc in
13720 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13721 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13723 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13725 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13726 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13727 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13728 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13730 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13732 echo "$as_me:$LINENO: checking for $ac_header" >&5
13733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13735 echo $ECHO_N "(cached) $ECHO_C" >&6
13737 eval "$as_ac_Header=$ac_header_preproc"
13739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13743 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13744 cat >>confdefs.h
<<_ACEOF
13745 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13754 for ac_header
in 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 kerberosIV
/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
13976 for ac_header
in kerberos
/des.h
13978 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13980 echo "$as_me:$LINENO: checking for $ac_header" >&5
13981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13983 echo $ECHO_N "(cached) $ECHO_C" >&6
13985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13986 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13988 # Is the header compilable?
13989 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13990 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13991 cat >conftest.
$ac_ext <<_ACEOF
13992 #line $LINENO "configure"
13993 #include "confdefs.h"
13994 $ac_includes_default
13995 #include <$ac_header>
13997 rm -f conftest.
$ac_objext
13998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13999 (eval $ac_compile) 2>&5
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); } &&
14003 { ac_try
='test -s conftest.$ac_objext'
14004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14005 (eval $ac_try) 2>&5
14007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008 (exit $ac_status); }; }; then
14009 ac_header_compiler
=yes
14011 echo "$as_me: failed program was:" >&5
14012 cat conftest.
$ac_ext >&5
14013 ac_header_compiler
=no
14015 rm -f conftest.
$ac_objext conftest.
$ac_ext
14016 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14017 echo "${ECHO_T}$ac_header_compiler" >&6
14019 # Is the header present?
14020 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14021 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14022 cat >conftest.
$ac_ext <<_ACEOF
14023 #line $LINENO "configure"
14024 #include "confdefs.h"
14025 #include <$ac_header>
14027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14028 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14030 egrep -v '^ *\+' conftest.er1
>conftest.err
14032 cat conftest.err
>&5
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); } >/dev
/null
; then
14035 if test -s conftest.err
; then
14036 ac_cpp_err
=$ac_c_preproc_warn_flag
14043 if test -z "$ac_cpp_err"; then
14044 ac_header_preproc
=yes
14046 echo "$as_me: failed program was:" >&5
14047 cat conftest.
$ac_ext >&5
14048 ac_header_preproc
=no
14050 rm -f conftest.err conftest.
$ac_ext
14051 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14052 echo "${ECHO_T}$ac_header_preproc" >&6
14054 # So? What about this header?
14055 case $ac_header_compiler:$ac_header_preproc in
14057 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14058 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14060 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14062 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14063 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14064 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14065 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14067 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14069 echo "$as_me:$LINENO: checking for $ac_header" >&5
14070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14072 echo $ECHO_N "(cached) $ECHO_C" >&6
14074 eval "$as_ac_Header=$ac_header_preproc"
14076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14081 cat >>confdefs.h
<<_ACEOF
14082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14098 for ac_header
in 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 kerberosIV
/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
14320 for ac_header
in kerberos
/krb.h
14322 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14324 echo "$as_me:$LINENO: checking for $ac_header" >&5
14325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14327 echo $ECHO_N "(cached) $ECHO_C" >&6
14329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14332 # Is the header compilable?
14333 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14335 cat >conftest.
$ac_ext <<_ACEOF
14336 #line $LINENO "configure"
14337 #include "confdefs.h"
14338 $ac_includes_default
14339 #include <$ac_header>
14341 rm -f conftest.
$ac_objext
14342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14343 (eval $ac_compile) 2>&5
14345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346 (exit $ac_status); } &&
14347 { ac_try
='test -s conftest.$ac_objext'
14348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14349 (eval $ac_try) 2>&5
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); }; }; then
14353 ac_header_compiler
=yes
14355 echo "$as_me: failed program was:" >&5
14356 cat conftest.
$ac_ext >&5
14357 ac_header_compiler
=no
14359 rm -f conftest.
$ac_objext conftest.
$ac_ext
14360 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14361 echo "${ECHO_T}$ac_header_compiler" >&6
14363 # Is the header present?
14364 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14365 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14366 cat >conftest.
$ac_ext <<_ACEOF
14367 #line $LINENO "configure"
14368 #include "confdefs.h"
14369 #include <$ac_header>
14371 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14372 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14374 egrep -v '^ *\+' conftest.er1
>conftest.err
14376 cat conftest.err
>&5
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); } >/dev
/null
; then
14379 if test -s conftest.err
; then
14380 ac_cpp_err
=$ac_c_preproc_warn_flag
14387 if test -z "$ac_cpp_err"; then
14388 ac_header_preproc
=yes
14390 echo "$as_me: failed program was:" >&5
14391 cat conftest.
$ac_ext >&5
14392 ac_header_preproc
=no
14394 rm -f conftest.err conftest.
$ac_ext
14395 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14396 echo "${ECHO_T}$ac_header_preproc" >&6
14398 # So? What about this header?
14399 case $ac_header_compiler:$ac_header_preproc in
14401 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14404 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14406 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14407 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14408 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14409 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14411 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14413 echo "$as_me:$LINENO: checking for $ac_header" >&5
14414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14416 echo $ECHO_N "(cached) $ECHO_C" >&6
14418 eval "$as_ac_Header=$ac_header_preproc"
14420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14421 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14425 cat >>confdefs.h
<<_ACEOF
14426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14443 for ac_header
in com_err.h
14445 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14447 echo "$as_me:$LINENO: checking for $ac_header" >&5
14448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14449 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14450 echo $ECHO_N "(cached) $ECHO_C" >&6
14452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14453 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14455 # Is the header compilable?
14456 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14457 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14458 cat >conftest.
$ac_ext <<_ACEOF
14459 #line $LINENO "configure"
14460 #include "confdefs.h"
14461 $ac_includes_default
14462 #include <$ac_header>
14464 rm -f conftest.
$ac_objext
14465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14466 (eval $ac_compile) 2>&5
14468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); } &&
14470 { ac_try
='test -s conftest.$ac_objext'
14471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14472 (eval $ac_try) 2>&5
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); }; }; then
14476 ac_header_compiler
=yes
14478 echo "$as_me: failed program was:" >&5
14479 cat conftest.
$ac_ext >&5
14480 ac_header_compiler
=no
14482 rm -f conftest.
$ac_objext conftest.
$ac_ext
14483 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14484 echo "${ECHO_T}$ac_header_compiler" >&6
14486 # Is the header present?
14487 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14488 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14489 cat >conftest.
$ac_ext <<_ACEOF
14490 #line $LINENO "configure"
14491 #include "confdefs.h"
14492 #include <$ac_header>
14494 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14495 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14497 egrep -v '^ *\+' conftest.er1
>conftest.err
14499 cat conftest.err
>&5
14500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501 (exit $ac_status); } >/dev
/null
; then
14502 if test -s conftest.err
; then
14503 ac_cpp_err
=$ac_c_preproc_warn_flag
14510 if test -z "$ac_cpp_err"; then
14511 ac_header_preproc
=yes
14513 echo "$as_me: failed program was:" >&5
14514 cat conftest.
$ac_ext >&5
14515 ac_header_preproc
=no
14517 rm -f conftest.err conftest.
$ac_ext
14518 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14519 echo "${ECHO_T}$ac_header_preproc" >&6
14521 # So? What about this header?
14522 case $ac_header_compiler:$ac_header_preproc in
14524 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14525 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14527 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14529 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14530 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14531 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14532 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14534 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14536 echo "$as_me:$LINENO: checking for $ac_header" >&5
14537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14539 echo $ECHO_N "(cached) $ECHO_C" >&6
14541 eval "$as_ac_Header=$ac_header_preproc"
14543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14544 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14548 cat >>confdefs.h
<<_ACEOF
14549 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14558 # Solaris requires -lintl if you want strerror (which calls dgettext)
14559 # to return localized messages.
14561 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
14562 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
14563 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
14564 echo $ECHO_N "(cached) $ECHO_C" >&6
14566 ac_check_lib_save_LIBS
=$LIBS
14567 LIBS
="-lintl $LIBS"
14568 cat >conftest.
$ac_ext <<_ACEOF
14569 #line $LINENO "configure"
14570 #include "confdefs.h"
14572 /* Override any gcc2 internal prototype to avoid an error. */
14576 /* We use char because int might match the return type of a gcc2
14577 builtin and then its argument prototype would still apply. */
14579 #ifdef F77_DUMMY_MAIN
14580 # ifdef __cplusplus
14583 int F77_DUMMY_MAIN() { return 1; }
14593 rm -f conftest.
$ac_objext conftest
$ac_exeext
14594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14595 (eval $ac_link) 2>&5
14597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598 (exit $ac_status); } &&
14599 { ac_try
='test -s conftest$ac_exeext'
14600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14601 (eval $ac_try) 2>&5
14603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604 (exit $ac_status); }; }; then
14605 ac_cv_lib_intl_dgettext
=yes
14607 echo "$as_me: failed program was:" >&5
14608 cat conftest.
$ac_ext >&5
14609 ac_cv_lib_intl_dgettext
=no
14611 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14612 LIBS
=$ac_check_lib_save_LIBS
14614 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
14615 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
14616 if test $ac_cv_lib_intl_dgettext = yes; then
14617 cat >>confdefs.h
<<_ACEOF
14618 #define HAVE_LIBINTL 1
14621 LIBS
="-lintl $LIBS"
14626 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
14627 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
14628 if test "${emacs_cv_localtime_cache+set}" = set; then
14629 echo $ECHO_N "(cached) $ECHO_C" >&6
14631 if test x
$ac_cv_func_tzset = xyes
; then
14632 if test "$cross_compiling" = yes; then
14633 # If we have tzset, assume the worst when cross-compiling.
14634 emacs_cv_localtime_cache
=yes
14636 cat >conftest.
$ac_ext <<_ACEOF
14637 #line $LINENO "configure"
14638 #include "confdefs.h"
14640 extern char **environ;
14644 for (to = from = environ; (*to = *from); from++)
14645 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
14648 char TZ_GMT0[] = "TZ=GMT0";
14649 char TZ_PST8[] = "TZ=PST8";
14652 time_t now = time ((time_t *) 0);
14653 int hour_GMT0, hour_unset;
14654 if (putenv (TZ_GMT0) != 0)
14656 hour_GMT0 = localtime (&now)->tm_hour;
14658 hour_unset = localtime (&now)->tm_hour;
14659 if (putenv (TZ_PST8) != 0)
14661 if (localtime (&now)->tm_hour == hour_GMT0)
14664 if (localtime (&now)->tm_hour != hour_unset)
14669 rm -f conftest
$ac_exeext
14670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14671 (eval $ac_link) 2>&5
14673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14676 (eval $ac_try) 2>&5
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); }; }; then
14680 emacs_cv_localtime_cache
=no
14682 echo "$as_me: program exited with status $ac_status" >&5
14683 echo "$as_me: failed program was:" >&5
14684 cat conftest.
$ac_ext >&5
14685 ( exit $ac_status )
14686 emacs_cv_localtime_cache
=yes
14688 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14691 # If we lack tzset, report that localtime does not cache TZ,
14692 # since we can't invalidate the cache if we don't have tzset.
14693 emacs_cv_localtime_cache
=no
14696 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
14697 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
14698 if test $emacs_cv_localtime_cache = yes; then
14700 cat >>confdefs.h
<<\_ACEOF
14701 #define LOCALTIME_CACHE 1
14706 if test "x$HAVE_TIMEVAL" = xyes
; then
14708 for ac_func
in gettimeofday
14710 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14711 echo "$as_me:$LINENO: checking for $ac_func" >&5
14712 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14713 if eval "test \"\${$as_ac_var+set}\" = set"; then
14714 echo $ECHO_N "(cached) $ECHO_C" >&6
14716 cat >conftest.
$ac_ext <<_ACEOF
14717 #line $LINENO "configure"
14718 #include "confdefs.h"
14719 /* System header to define __stub macros and hopefully few prototypes,
14720 which can conflict with char $ac_func (); below. */
14721 #include <assert.h>
14722 /* Override any gcc2 internal prototype to avoid an error. */
14726 /* We use char because int might match the return type of a gcc2
14727 builtin and then its argument prototype would still apply. */
14731 #ifdef F77_DUMMY_MAIN
14732 # ifdef __cplusplus
14735 int F77_DUMMY_MAIN() { return 1; }
14740 /* The GNU C library defines this for functions which it implements
14741 to always fail with ENOSYS. Some functions are actually named
14742 something starting with __ and the normal name is an alias. */
14743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14753 rm -f conftest.
$ac_objext conftest
$ac_exeext
14754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14755 (eval $ac_link) 2>&5
14757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); } &&
14759 { ac_try
='test -s conftest$ac_exeext'
14760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14761 (eval $ac_try) 2>&5
14763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764 (exit $ac_status); }; }; then
14765 eval "$as_ac_var=yes"
14767 echo "$as_me: failed program was:" >&5
14768 cat conftest.
$ac_ext >&5
14769 eval "$as_ac_var=no"
14771 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14774 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14775 if test `eval echo '${'$as_ac_var'}'` = yes; then
14776 cat >>confdefs.h
<<_ACEOF
14777 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14783 if test $ac_cv_func_gettimeofday = yes; then
14784 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
14785 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
14786 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
14787 echo $ECHO_N "(cached) $ECHO_C" >&6
14789 cat >conftest.
$ac_ext <<_ACEOF
14790 #line $LINENO "configure"
14791 #include "confdefs.h"
14793 #ifdef TIME_WITH_SYS_TIME
14794 #include <sys/time.h>
14797 #ifdef HAVE_SYS_TIME_H
14798 #include <sys/time.h>
14803 #ifdef F77_DUMMY_MAIN
14804 # ifdef __cplusplus
14807 int F77_DUMMY_MAIN() { return 1; }
14812 struct timeval time;
14813 gettimeofday (&time, 0);
14818 rm -f conftest.
$ac_objext
14819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14820 (eval $ac_compile) 2>&5
14822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823 (exit $ac_status); } &&
14824 { ac_try
='test -s conftest.$ac_objext'
14825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14826 (eval $ac_try) 2>&5
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); }; }; then
14830 emacs_cv_gettimeofday_two_arguments
=yes
14832 echo "$as_me: failed program was:" >&5
14833 cat conftest.
$ac_ext >&5
14834 emacs_cv_gettimeofday_two_arguments
=no
14836 rm -f conftest.
$ac_objext conftest.
$ac_ext
14838 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
14839 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
14840 if test $emacs_cv_gettimeofday_two_arguments = no
; then
14842 cat >>confdefs.h
<<\_ACEOF
14843 #define GETTIMEOFDAY_ONE_ARGUMENT 1
14850 if test "$ac_cv_func_gettimeofday" = yes; then
14851 echo "$as_me:$LINENO: checking for struct timezone" >&5
14852 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
14853 if test "${emacs_cv_struct_timezone+set}" = set; then
14854 echo $ECHO_N "(cached) $ECHO_C" >&6
14856 cat >conftest.
$ac_ext <<_ACEOF
14857 #line $LINENO "configure"
14858 #include "confdefs.h"
14859 #include <sys/time.h>
14860 #ifdef F77_DUMMY_MAIN
14861 # ifdef __cplusplus
14864 int F77_DUMMY_MAIN() { return 1; }
14869 struct timezone tz;
14874 rm -f conftest.
$ac_objext
14875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14876 (eval $ac_compile) 2>&5
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); } &&
14880 { ac_try
='test -s conftest.$ac_objext'
14881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14882 (eval $ac_try) 2>&5
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); }; }; then
14886 if test "$cross_compiling" = yes; then
14887 emacs_cv_struct_timezone
=yes
14889 cat >conftest.
$ac_ext <<_ACEOF
14890 #line $LINENO "configure"
14891 #include "confdefs.h"
14893 #ifdef TIME_WITH_SYS_TIME
14894 #include <sys/time.h>
14897 #ifdef HAVE_SYS_TIME_H
14898 #include <sys/time.h>
14904 struct timeval time;
14905 struct timezone dummy;
14906 exit (gettimeofday (&time, &dummy));
14909 rm -f conftest
$ac_exeext
14910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14911 (eval $ac_link) 2>&5
14913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14916 (eval $ac_try) 2>&5
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); }; }; then
14920 emacs_cv_struct_timezone
=yes
14922 echo "$as_me: program exited with status $ac_status" >&5
14923 echo "$as_me: failed program was:" >&5
14924 cat conftest.
$ac_ext >&5
14925 ( exit $ac_status )
14926 emacs_cv_struct_timezone
=no
14928 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14931 echo "$as_me: failed program was:" >&5
14932 cat conftest.
$ac_ext >&5
14933 emacs_cv_struct_timezone
=no
14935 rm -f conftest.
$ac_objext conftest.
$ac_ext
14937 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
14938 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
14942 echo "$as_me:$LINENO: checking for socket" >&5
14943 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14944 if test "${ac_cv_func_socket+set}" = set; then
14945 echo $ECHO_N "(cached) $ECHO_C" >&6
14947 cat >conftest.
$ac_ext <<_ACEOF
14948 #line $LINENO "configure"
14949 #include "confdefs.h"
14950 /* System header to define __stub macros and hopefully few prototypes,
14951 which can conflict with char socket (); below. */
14952 #include <assert.h>
14953 /* Override any gcc2 internal prototype to avoid an error. */
14957 /* We use char because int might match the return type of a gcc2
14958 builtin and then its argument prototype would still apply. */
14962 #ifdef F77_DUMMY_MAIN
14963 # ifdef __cplusplus
14966 int F77_DUMMY_MAIN() { return 1; }
14971 /* The GNU C library defines this for functions which it implements
14972 to always fail with ENOSYS. Some functions are actually named
14973 something starting with __ and the normal name is an alias. */
14974 #if defined (__stub_socket) || defined (__stub___socket)
14984 rm -f conftest.
$ac_objext conftest
$ac_exeext
14985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14986 (eval $ac_link) 2>&5
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); } &&
14990 { ac_try
='test -s conftest$ac_exeext'
14991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14992 (eval $ac_try) 2>&5
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); }; }; then
14996 ac_cv_func_socket
=yes
14998 echo "$as_me: failed program was:" >&5
14999 cat conftest.
$ac_ext >&5
15000 ac_cv_func_socket
=no
15002 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15004 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15005 echo "${ECHO_T}$ac_cv_func_socket" >&6
15006 if test $ac_cv_func_socket = yes; then
15012 if test $ok_so_far = yes; then
15013 if test "${ac_cv_header_netinet_in_h+set}" = set; then
15014 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
15015 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
15016 if test "${ac_cv_header_netinet_in_h+set}" = set; then
15017 echo $ECHO_N "(cached) $ECHO_C" >&6
15019 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
15020 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
15022 # Is the header compilable?
15023 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
15024 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
15025 cat >conftest.
$ac_ext <<_ACEOF
15026 #line $LINENO "configure"
15027 #include "confdefs.h"
15028 $ac_includes_default
15029 #include <netinet/in.h>
15031 rm -f conftest.
$ac_objext
15032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15033 (eval $ac_compile) 2>&5
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); } &&
15037 { ac_try
='test -s conftest.$ac_objext'
15038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15039 (eval $ac_try) 2>&5
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); }; }; then
15043 ac_header_compiler
=yes
15045 echo "$as_me: failed program was:" >&5
15046 cat conftest.
$ac_ext >&5
15047 ac_header_compiler
=no
15049 rm -f conftest.
$ac_objext conftest.
$ac_ext
15050 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15051 echo "${ECHO_T}$ac_header_compiler" >&6
15053 # Is the header present?
15054 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
15055 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
15056 cat >conftest.
$ac_ext <<_ACEOF
15057 #line $LINENO "configure"
15058 #include "confdefs.h"
15059 #include <netinet/in.h>
15061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15062 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15064 egrep -v '^ *\+' conftest.er1
>conftest.err
15066 cat conftest.err
>&5
15067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068 (exit $ac_status); } >/dev
/null
; then
15069 if test -s conftest.err
; then
15070 ac_cpp_err
=$ac_c_preproc_warn_flag
15077 if test -z "$ac_cpp_err"; then
15078 ac_header_preproc
=yes
15080 echo "$as_me: failed program was:" >&5
15081 cat conftest.
$ac_ext >&5
15082 ac_header_preproc
=no
15084 rm -f conftest.err conftest.
$ac_ext
15085 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15086 echo "${ECHO_T}$ac_header_preproc" >&6
15088 # So? What about this header?
15089 case $ac_header_compiler:$ac_header_preproc in
15091 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
15092 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15093 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
15094 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;};;
15096 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
15097 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
15098 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
15099 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
15100 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
15101 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;};;
15103 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
15104 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
15105 if test "${ac_cv_header_netinet_in_h+set}" = set; then
15106 echo $ECHO_N "(cached) $ECHO_C" >&6
15108 ac_cv_header_netinet_in_h
=$ac_header_preproc
15110 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
15111 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
15114 if test $ac_cv_header_netinet_in_h = yes; then
15122 if test $ok_so_far = yes; then
15123 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
15124 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
15125 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
15126 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
15127 echo $ECHO_N "(cached) $ECHO_C" >&6
15129 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
15130 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
15132 # Is the header compilable?
15133 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
15134 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
15135 cat >conftest.
$ac_ext <<_ACEOF
15136 #line $LINENO "configure"
15137 #include "confdefs.h"
15138 $ac_includes_default
15139 #include <arpa/inet.h>
15141 rm -f conftest.
$ac_objext
15142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15143 (eval $ac_compile) 2>&5
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); } &&
15147 { ac_try
='test -s conftest.$ac_objext'
15148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15149 (eval $ac_try) 2>&5
15151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); }; }; then
15153 ac_header_compiler
=yes
15155 echo "$as_me: failed program was:" >&5
15156 cat conftest.
$ac_ext >&5
15157 ac_header_compiler
=no
15159 rm -f conftest.
$ac_objext conftest.
$ac_ext
15160 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15161 echo "${ECHO_T}$ac_header_compiler" >&6
15163 # Is the header present?
15164 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
15165 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
15166 cat >conftest.
$ac_ext <<_ACEOF
15167 #line $LINENO "configure"
15168 #include "confdefs.h"
15169 #include <arpa/inet.h>
15171 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15172 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15174 egrep -v '^ *\+' conftest.er1
>conftest.err
15176 cat conftest.err
>&5
15177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178 (exit $ac_status); } >/dev
/null
; then
15179 if test -s conftest.err
; then
15180 ac_cpp_err
=$ac_c_preproc_warn_flag
15187 if test -z "$ac_cpp_err"; then
15188 ac_header_preproc
=yes
15190 echo "$as_me: failed program was:" >&5
15191 cat conftest.
$ac_ext >&5
15192 ac_header_preproc
=no
15194 rm -f conftest.err conftest.
$ac_ext
15195 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15196 echo "${ECHO_T}$ac_header_preproc" >&6
15198 # So? What about this header?
15199 case $ac_header_compiler:$ac_header_preproc in
15201 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
15202 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15203 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
15204 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;};;
15206 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
15207 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
15208 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
15209 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
15210 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
15211 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;};;
15213 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
15214 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
15215 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
15216 echo $ECHO_N "(cached) $ECHO_C" >&6
15218 ac_cv_header_arpa_inet_h
=$ac_header_preproc
15220 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
15221 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
15224 if test $ac_cv_header_arpa_inet_h = yes; then
15232 if test $ok_so_far = yes; then
15234 cat >>confdefs.h
<<\_ACEOF
15235 #define HAVE_INET_SOCKETS 1
15240 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
15242 cat >>confdefs.h
<<\_ACEOF
15243 #define HAVE_AIX_SMT_EXP 1
15248 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
15249 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
15250 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
15251 echo "$as_me:$LINENO: result: yes" >&5
15252 echo "${ECHO_T}yes" >&6
15254 cat >>confdefs.h
<<\_ACEOF
15255 #define HAVE_DEV_PTMX 1
15259 echo "$as_me:$LINENO: result: no" >&5
15260 echo "${ECHO_T}no" >&6
15263 echo "$as_me:$LINENO: checking for pid_t" >&5
15264 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
15265 if test "${ac_cv_type_pid_t+set}" = set; then
15266 echo $ECHO_N "(cached) $ECHO_C" >&6
15268 cat >conftest.
$ac_ext <<_ACEOF
15269 #line $LINENO "configure"
15270 #include "confdefs.h"
15271 $ac_includes_default
15272 #ifdef F77_DUMMY_MAIN
15273 # ifdef __cplusplus
15276 int F77_DUMMY_MAIN() { return 1; }
15283 if (sizeof (pid_t))
15289 rm -f conftest.
$ac_objext
15290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15291 (eval $ac_compile) 2>&5
15293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294 (exit $ac_status); } &&
15295 { ac_try
='test -s conftest.$ac_objext'
15296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15297 (eval $ac_try) 2>&5
15299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300 (exit $ac_status); }; }; then
15301 ac_cv_type_pid_t
=yes
15303 echo "$as_me: failed program was:" >&5
15304 cat conftest.
$ac_ext >&5
15305 ac_cv_type_pid_t
=no
15307 rm -f conftest.
$ac_objext conftest.
$ac_ext
15309 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15310 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15311 if test $ac_cv_type_pid_t = yes; then
15315 cat >>confdefs.h
<<_ACEOF
15323 for ac_header
in unistd.h vfork.h
15325 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15327 echo "$as_me:$LINENO: checking for $ac_header" >&5
15328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15330 echo $ECHO_N "(cached) $ECHO_C" >&6
15332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15335 # Is the header compilable?
15336 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15337 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15338 cat >conftest.
$ac_ext <<_ACEOF
15339 #line $LINENO "configure"
15340 #include "confdefs.h"
15341 $ac_includes_default
15342 #include <$ac_header>
15344 rm -f conftest.
$ac_objext
15345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15346 (eval $ac_compile) 2>&5
15348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349 (exit $ac_status); } &&
15350 { ac_try
='test -s conftest.$ac_objext'
15351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15352 (eval $ac_try) 2>&5
15354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355 (exit $ac_status); }; }; then
15356 ac_header_compiler
=yes
15358 echo "$as_me: failed program was:" >&5
15359 cat conftest.
$ac_ext >&5
15360 ac_header_compiler
=no
15362 rm -f conftest.
$ac_objext conftest.
$ac_ext
15363 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15364 echo "${ECHO_T}$ac_header_compiler" >&6
15366 # Is the header present?
15367 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15368 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15369 cat >conftest.
$ac_ext <<_ACEOF
15370 #line $LINENO "configure"
15371 #include "confdefs.h"
15372 #include <$ac_header>
15374 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15375 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15377 egrep -v '^ *\+' conftest.er1
>conftest.err
15379 cat conftest.err
>&5
15380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 (exit $ac_status); } >/dev
/null
; then
15382 if test -s conftest.err
; then
15383 ac_cpp_err
=$ac_c_preproc_warn_flag
15390 if test -z "$ac_cpp_err"; then
15391 ac_header_preproc
=yes
15393 echo "$as_me: failed program was:" >&5
15394 cat conftest.
$ac_ext >&5
15395 ac_header_preproc
=no
15397 rm -f conftest.err conftest.
$ac_ext
15398 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15399 echo "${ECHO_T}$ac_header_preproc" >&6
15401 # So? What about this header?
15402 case $ac_header_compiler:$ac_header_preproc in
15404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15405 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15407 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15409 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15410 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15411 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15412 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15414 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15416 echo "$as_me:$LINENO: checking for $ac_header" >&5
15417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15419 echo $ECHO_N "(cached) $ECHO_C" >&6
15421 eval "$as_ac_Header=$ac_header_preproc"
15423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15427 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15428 cat >>confdefs.h
<<_ACEOF
15429 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15438 for ac_func
in fork vfork
15440 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15441 echo "$as_me:$LINENO: checking for $ac_func" >&5
15442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15443 if eval "test \"\${$as_ac_var+set}\" = set"; then
15444 echo $ECHO_N "(cached) $ECHO_C" >&6
15446 cat >conftest.
$ac_ext <<_ACEOF
15447 #line $LINENO "configure"
15448 #include "confdefs.h"
15449 /* System header to define __stub macros and hopefully few prototypes,
15450 which can conflict with char $ac_func (); below. */
15451 #include <assert.h>
15452 /* Override any gcc2 internal prototype to avoid an error. */
15456 /* We use char because int might match the return type of a gcc2
15457 builtin and then its argument prototype would still apply. */
15461 #ifdef F77_DUMMY_MAIN
15462 # ifdef __cplusplus
15465 int F77_DUMMY_MAIN() { return 1; }
15470 /* The GNU C library defines this for functions which it implements
15471 to always fail with ENOSYS. Some functions are actually named
15472 something starting with __ and the normal name is an alias. */
15473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15483 rm -f conftest.
$ac_objext conftest
$ac_exeext
15484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15485 (eval $ac_link) 2>&5
15487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488 (exit $ac_status); } &&
15489 { ac_try
='test -s conftest$ac_exeext'
15490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15491 (eval $ac_try) 2>&5
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); }; }; then
15495 eval "$as_ac_var=yes"
15497 echo "$as_me: failed program was:" >&5
15498 cat conftest.
$ac_ext >&5
15499 eval "$as_ac_var=no"
15501 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15504 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15505 if test `eval echo '${'$as_ac_var'}'` = yes; then
15506 cat >>confdefs.h
<<_ACEOF
15507 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15513 ac_cv_func_fork_works
=$ac_cv_func_fork
15514 if test "x$ac_cv_func_fork" = xyes
; then
15515 echo "$as_me:$LINENO: checking for working fork" >&5
15516 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
15517 if test "${ac_cv_func_fork_works+set}" = set; then
15518 echo $ECHO_N "(cached) $ECHO_C" >&6
15520 if test "$cross_compiling" = yes; then
15521 ac_cv_func_fork_works
=cross
15523 cat >conftest.
$ac_ext <<_ACEOF
15524 /* By Ruediger Kuhlmann. */
15525 #include <sys/types.h>
15527 # include <unistd.h>
15529 /* Some systems only have a dummy stub for fork() */
15537 rm -f conftest
$ac_exeext
15538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15539 (eval $ac_link) 2>&5
15541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15544 (eval $ac_try) 2>&5
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); }; }; then
15548 ac_cv_func_fork_works
=yes
15550 echo "$as_me: program exited with status $ac_status" >&5
15551 echo "$as_me: failed program was:" >&5
15552 cat conftest.
$ac_ext >&5
15553 ( exit $ac_status )
15554 ac_cv_func_fork_works
=no
15556 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15559 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
15560 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
15563 if test "x$ac_cv_func_fork_works" = xcross
; then
15565 *-*-amigaos* |
*-*-msdosdjgpp*)
15566 # Override, as these systems have only a dummy fork() stub
15567 ac_cv_func_fork_works
=no
15570 ac_cv_func_fork_works
=yes
15573 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15574 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15576 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15577 if test "x$ac_cv_func_vfork" = xyes
; then
15578 echo "$as_me:$LINENO: checking for working vfork" >&5
15579 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
15580 if test "${ac_cv_func_vfork_works+set}" = set; then
15581 echo $ECHO_N "(cached) $ECHO_C" >&6
15583 if test "$cross_compiling" = yes; then
15584 ac_cv_func_vfork_works
=cross
15586 cat >conftest.
$ac_ext <<_ACEOF
15587 #line $LINENO "configure"
15588 #include "confdefs.h"
15589 /* Thanks to Paul Eggert for this test. */
15591 #include <sys/types.h>
15592 #include <sys/stat.h>
15594 # include <unistd.h>
15597 # include <vfork.h>
15599 /* On some sparc systems, changes by the child to local and incoming
15600 argument registers are propagated back to the parent. The compiler
15601 is told about this with #include <vfork.h>, but some compilers
15602 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15603 static variable whose address is put into a register that is
15604 clobbered by the vfork. */
15607 sparc_address_test (int arg)
15609 sparc_address_test (arg) int arg;
15612 static pid_t child;
15630 pid_t parent = getpid ();
15633 sparc_address_test ();
15638 /* Here is another test for sparc vfork register problems. This
15639 test uses lots of local variables, at least as many local
15640 variables as main has allocated so far including compiler
15641 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15642 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15643 reuse the register of parent for one of the local variables,
15644 since it will think that parent can't possibly be used any more
15645 in this routine. Assigning to the local variable will thus
15646 munge parent in the parent process. */
15648 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15649 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15650 /* Convince the compiler that p..p7 are live; otherwise, it might
15651 use the same hardware register for all 8 local variables. */
15652 if (p != p1 || p != p2 || p != p3 || p != p4
15653 || p != p5 || p != p6 || p != p7)
15656 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15657 from child file descriptors. If the child closes a descriptor
15658 before it execs or exits, this munges the parent's descriptor
15659 as well. Test for this by closing stdout in the child. */
15660 _exit(close(fileno(stdout)) != 0);
15665 while (wait(&status) != child)
15668 /* Was there some problem with vforking? */
15671 /* Did the child fail? (This shouldn't happen.) */
15674 /* Did the vfork/compiler bug occur? */
15675 || parent != getpid()
15677 /* Did the file descriptor bug occur? */
15678 || fstat(fileno(stdout), &st) != 0
15683 rm -f conftest
$ac_exeext
15684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15685 (eval $ac_link) 2>&5
15687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15690 (eval $ac_try) 2>&5
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); }; }; then
15694 ac_cv_func_vfork_works
=yes
15696 echo "$as_me: program exited with status $ac_status" >&5
15697 echo "$as_me: failed program was:" >&5
15698 cat conftest.
$ac_ext >&5
15699 ( exit $ac_status )
15700 ac_cv_func_vfork_works
=no
15702 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15705 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
15706 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
15709 if test "x$ac_cv_func_fork_works" = xcross
; then
15710 ac_cv_func_vfork_works
=ac_cv_func_vfork
15711 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15712 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15715 if test "x$ac_cv_func_vfork_works" = xyes
; then
15717 cat >>confdefs.h
<<\_ACEOF
15718 #define HAVE_WORKING_VFORK 1
15723 cat >>confdefs.h
<<\_ACEOF
15728 if test "x$ac_cv_func_fork_works" = xyes
; then
15730 cat >>confdefs.h
<<\_ACEOF
15731 #define HAVE_WORKING_FORK 1
15737 # Fixme: This should be replaced when we have autoconf 2.14.
15738 echo "$as_me:$LINENO: checking for size_t" >&5
15739 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
15740 if test "${ac_cv_type_size_t+set}" = set; then
15741 echo $ECHO_N "(cached) $ECHO_C" >&6
15743 cat >conftest.
$ac_ext <<_ACEOF
15744 #line $LINENO "configure"
15745 #include "confdefs.h"
15746 $ac_includes_default
15747 #ifdef F77_DUMMY_MAIN
15748 # ifdef __cplusplus
15751 int F77_DUMMY_MAIN() { return 1; }
15758 if (sizeof (size_t))
15764 rm -f conftest.
$ac_objext
15765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15766 (eval $ac_compile) 2>&5
15768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769 (exit $ac_status); } &&
15770 { ac_try
='test -s conftest.$ac_objext'
15771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15772 (eval $ac_try) 2>&5
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); }; }; then
15776 ac_cv_type_size_t
=yes
15778 echo "$as_me: failed program was:" >&5
15779 cat conftest.
$ac_ext >&5
15780 ac_cv_type_size_t
=no
15782 rm -f conftest.
$ac_objext conftest.
$ac_ext
15784 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15785 echo "${ECHO_T}$ac_cv_type_size_t" >&6
15786 if test $ac_cv_type_size_t = yes; then
15790 cat >>confdefs.h
<<_ACEOF
15791 #define size_t unsigned
15797 # Set up the CFLAGS for real compilation, so we can substitute it.
15798 CFLAGS
="$REAL_CFLAGS"
15799 CPPFLAGS
="$REAL_CPPFLAGS"
15801 #### Find out which version of Emacs this is.
15802 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
15803 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
15804 if test x
"${version}" = x
; then
15805 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
15806 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
15807 { (exit 1); exit 1; }; }
15810 ### Specify what sort of things we'll be editing into Makefile and config.h.
15811 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15846 cat >>confdefs.h
<<_ACEOF
15847 #define EMACS_CONFIGURATION "${canonical}"
15851 cat >>confdefs.h
<<_ACEOF
15852 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15856 cat >>confdefs.h
<<_ACEOF
15857 #define config_machfile "${machfile}"
15861 cat >>confdefs.h
<<_ACEOF
15862 #define config_opsysfile "${opsysfile}"
15866 cat >>confdefs.h
<<_ACEOF
15867 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
15871 cat >>confdefs.h
<<_ACEOF
15872 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
15876 cat >>confdefs.h
<<_ACEOF
15877 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
15881 cat >>confdefs.h
<<_ACEOF
15882 #define UNEXEC_SRC ${UNEXEC_SRC}
15886 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15888 cat >>confdefs.h
<<\_ACEOF
15889 #define HAVE_X_WINDOWS 1
15893 if test "${USE_X_TOOLKIT}" != "none" ; then
15895 cat >>confdefs.h
<<\_ACEOF
15896 #define USE_X_TOOLKIT 1
15900 if test "${HAVE_X11}" = "yes" ; then
15902 cat >>confdefs.h
<<\_ACEOF
15907 if test "${HAVE_XFREE386}" = "yes" ; then
15909 cat >>confdefs.h
<<\_ACEOF
15910 #define HAVE_XFREE386 1
15914 if test "${HAVE_MENUS}" = "yes" ; then
15916 cat >>confdefs.h
<<\_ACEOF
15917 #define HAVE_MENUS 1
15921 if test "${GNU_MALLOC}" = "yes" ; then
15923 cat >>confdefs.h
<<\_ACEOF
15924 #define GNU_MALLOC 1
15928 if test "${REL_ALLOC}" = "yes" ; then
15930 cat >>confdefs.h
<<\_ACEOF
15931 #define REL_ALLOC 1
15937 for ac_header
in nlist.h
15939 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15941 echo "$as_me:$LINENO: checking for $ac_header" >&5
15942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15944 echo $ECHO_N "(cached) $ECHO_C" >&6
15946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15949 # Is the header compilable?
15950 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15951 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15952 cat >conftest.
$ac_ext <<_ACEOF
15953 #line $LINENO "configure"
15954 #include "confdefs.h"
15955 $ac_includes_default
15956 #include <$ac_header>
15958 rm -f conftest.
$ac_objext
15959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15960 (eval $ac_compile) 2>&5
15962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 (exit $ac_status); } &&
15964 { ac_try
='test -s conftest.$ac_objext'
15965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15966 (eval $ac_try) 2>&5
15968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969 (exit $ac_status); }; }; then
15970 ac_header_compiler
=yes
15972 echo "$as_me: failed program was:" >&5
15973 cat conftest.
$ac_ext >&5
15974 ac_header_compiler
=no
15976 rm -f conftest.
$ac_objext conftest.
$ac_ext
15977 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15978 echo "${ECHO_T}$ac_header_compiler" >&6
15980 # Is the header present?
15981 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15983 cat >conftest.
$ac_ext <<_ACEOF
15984 #line $LINENO "configure"
15985 #include "confdefs.h"
15986 #include <$ac_header>
15988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15989 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15991 egrep -v '^ *\+' conftest.er1
>conftest.err
15993 cat conftest.err
>&5
15994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995 (exit $ac_status); } >/dev
/null
; then
15996 if test -s conftest.err
; then
15997 ac_cpp_err
=$ac_c_preproc_warn_flag
16004 if test -z "$ac_cpp_err"; then
16005 ac_header_preproc
=yes
16007 echo "$as_me: failed program was:" >&5
16008 cat conftest.
$ac_ext >&5
16009 ac_header_preproc
=no
16011 rm -f conftest.err conftest.
$ac_ext
16012 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16013 echo "${ECHO_T}$ac_header_preproc" >&6
16015 # So? What about this header?
16016 case $ac_header_compiler:$ac_header_preproc in
16018 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16019 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16021 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
16023 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16024 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16025 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16026 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
16030 echo "$as_me:$LINENO: checking for $ac_header" >&5
16031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16033 echo $ECHO_N "(cached) $ECHO_C" >&6
16035 eval "$as_ac_Header=$ac_header_preproc"
16037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16042 cat >>confdefs.h
<<_ACEOF
16043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16046 cat >>confdefs.h
<<\_ACEOF
16047 #define NLIST_STRUCT 1
16059 #### Report on what we decided to do.
16061 Configured for \`${canonical}'.
16063 Where should the build process find the source code? ${srcdir}
16064 What operating system and machine description files should Emacs use?
16065 \`${opsysfile}' and \`${machfile}'
16066 What compiler should emacs be built with? ${CC} ${CFLAGS}
16067 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
16068 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
16069 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
16070 What window system should Emacs use? ${window_system}
16071 What toolkit should Emacs use? ${USE_X_TOOLKIT}
16072 Should Emacs use a shared game state directory? ${gamedir}"
16074 if test -n "${x_includes}"; then
16075 echo " Where do we find X Windows header files? ${x_includes}"
16077 echo " Where do we find X Windows header files? Standard dirs"
16079 if test -n "${x_libraries}"; then
16080 echo " Where do we find X Windows libraries? ${x_libraries}"
16082 echo " Where do we find X Windows libraries? Standard dirs"
16085 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
16086 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
16087 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
16088 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
16089 echo " Does Emacs use -lungif? ${HAVE_GIF}"
16090 echo " Does Emacs use -lpng? ${HAVE_PNG}"
16091 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
16094 # Remove any trailing slashes in these variables.
16095 test "${prefix}" != NONE
&&
16096 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
16097 test "${exec_prefix}" != NONE
&&
16098 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
16100 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
16101 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
16102 ## from Makefile.c can correctly provide the arg `-traditional' to the
16105 cat >conftest.
$ac_ext <<_ACEOF
16106 #line $LINENO "configure"
16107 #include "confdefs.h"
16110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16111 egrep "yes..yes" >/dev
/null
2>&1; then
16112 CPP_NEED_TRADITIONAL
=no
16114 CPP_NEED_TRADITIONAL
=yes
16119 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"
16120 ac_config_commands
="$ac_config_commands default"
16121 cat >confcache
<<\_ACEOF
16122 # This file is a shell script that caches the results of configure
16123 # tests run on this system so they can be shared between configure
16124 # scripts and configure runs, see configure's option --config-cache.
16125 # It is not useful on other systems. If it contains results you don't
16126 # want to keep, you may remove or edit it.
16128 # config.status only pays attention to the cache file if you give it
16129 # the --recheck option to rerun configure.
16131 # `ac_cv_env_foo' variables (set or unset) will be overriden when
16132 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16133 # following values.
16137 # The following way of writing the cache mishandles newlines in values,
16138 # but we know of no workaround that is simple, portable, and efficient.
16139 # So, don't put newlines in cache variables' values.
16140 # Ultrix sh set writes to stderr and can't be redirected directly,
16141 # and sets the high bit in the cache file unless we assign to the vars.
16144 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16146 # `set' does not quote correctly, so add quotes (double-quote
16147 # substitution turns \\\\ into \\, and sed turns \\ into \).
16150 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16153 # `set' quotes correctly as required by POSIX, so do not add quotes.
16155 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16162 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16164 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16166 if cmp -s $cache_file confcache
; then :; else
16167 if test -w $cache_file; then
16168 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16169 cat confcache
>$cache_file
16171 echo "not updating unwritable cache $cache_file"
16176 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16177 # Let make expand exec_prefix.
16178 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16180 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16181 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16182 # trailing colons and then remove the whole line if VPATH becomes empty
16183 # (actually we leave an empty line to preserve line numbers).
16184 if test "x$srcdir" = x.
; then
16185 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
16186 s/:*\$(srcdir):*/:/;
16187 s/:*\${srcdir}:*/:/;
16189 s/^\([^=]*=[ ]*\):*/\1/;
16195 DEFS
=-DHAVE_CONFIG_H
16198 : ${CONFIG_STATUS=./config.status}
16199 ac_clean_files_save
=$ac_clean_files
16200 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16201 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16202 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16203 cat >$CONFIG_STATUS <<_ACEOF
16205 # Generated by $as_me.
16206 # Run this file to recreate the current configuration.
16207 # Compiler output produced by configure, useful for debugging
16208 # configure, is in config.log if it exists.
16211 SHELL=\${CONFIG_SHELL-$SHELL}
16214 cat >>$CONFIG_STATUS <<\_ACEOF
16216 ## --------------------- ##
16217 ## M4sh Initialization. ##
16218 ## --------------------- ##
16220 # Be Bourne compatible
16221 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16224 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
16229 # Support unset when possible.
16230 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
16236 (set +x
; test -n "`(LANG=C; export LANG) 2>&1`") &&
16237 { $as_unset LANG ||
test "${LANG+set}" != set; } ||
16238 { LANG
=C
; export LANG
; }
16239 (set +x
; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
16240 { $as_unset LC_ALL ||
test "${LC_ALL+set}" != set; } ||
16241 { LC_ALL
=C
; export LC_ALL
; }
16242 (set +x
; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
16243 { $as_unset LC_TIME ||
test "${LC_TIME+set}" != set; } ||
16244 { LC_TIME
=C
; export LC_TIME
; }
16245 (set +x
; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
16246 { $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set; } ||
16247 { LC_CTYPE
=C
; export LC_CTYPE
; }
16248 (set +x
; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
16249 { $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set; } ||
16250 { LANGUAGE
=C
; export LANGUAGE
; }
16251 (set +x
; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
16252 { $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set; } ||
16253 { LC_COLLATE
=C
; export LC_COLLATE
; }
16254 (set +x
; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
16255 { $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set; } ||
16256 { LC_NUMERIC
=C
; export LC_NUMERIC
; }
16257 (set +x
; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
16258 { $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set; } ||
16259 { LC_MESSAGES
=C
; export LC_MESSAGES
; }
16262 # Name of the executable.
16263 as_me
=`(basename "$0") 2>/dev/null ||
16264 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16265 X"$0" : 'X\(//\)$' \| \
16266 X"$0" : 'X\(/\)$' \| \
16267 . : '\(.\)' 2>/dev/null ||
16269 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16270 /^X\/\(\/\/\)$/{ s//\1/; q; }
16271 /^X\/\(\/\).*/{ s//\1/; q; }
16274 # PATH needs CR, and LINENO needs CR and PATH.
16275 # Avoid depending upon Character Ranges.
16276 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16277 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16278 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16279 as_cr_digits
='0123456789'
16280 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16282 # The user is always right.
16283 if test "${PATH_SEPARATOR+set}" != set; then
16284 echo "#! /bin/sh" >conftest.sh
16285 echo "exit 0" >>conftest.sh
16286 chmod +x conftest.sh
16287 if (PATH
=".;."; conftest.sh
) >/dev
/null
2>&1; then
16296 as_lineno_1
=$LINENO
16297 as_lineno_2
=$LINENO
16298 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
16299 test "x$as_lineno_1" != "x$as_lineno_2" &&
16300 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
16301 # Find who we are. Look in the path if we contain no path at all
16304 *[\\/]* ) as_myself
=$0 ;;
16305 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16306 for as_dir
in $PATH
16309 test -z "$as_dir" && as_dir
=.
16310 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
16315 # We did not find ourselves, most probably we were run as `sh COMMAND'
16316 # in which case we are not to be found in the path.
16317 if test "x$as_myself" = x
; then
16320 if test ! -f "$as_myself"; then
16321 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16322 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16323 { (exit 1); exit 1; }; }
16325 case $CONFIG_SHELL in
16327 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16328 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
16331 test -z "$as_dir" && as_dir
=.
16332 for as_base
in sh bash ksh sh5
; do
16335 if ("$as_dir/$as_base" -c '
16336 as_lineno_1=$LINENO
16337 as_lineno_2=$LINENO
16338 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16339 test "x$as_lineno_1" != "x$as_lineno_2" &&
16340 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
16341 CONFIG_SHELL
=$as_dir/$as_base
16342 export CONFIG_SHELL
16343 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16351 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16352 # uniformly replaced by the line number. The first 'sed' inserts a
16353 # line-number line before each line; the second 'sed' does the real
16354 # work. The second script uses 'N' to pair each line-number line
16355 # with the numbered line, and appends trailing '-' during
16356 # substitution so that $LINENO is not a special case at line end.
16357 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16358 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16359 sed '=' <$as_myself |
16364 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16367 s,^['$as_cr_digits']*\n,,
16368 ' >$as_me.lineno
&&
16369 chmod +x
$as_me.lineno ||
16370 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16371 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16372 { (exit 1); exit 1; }; }
16374 # Don't try to exec as it changes $[0], causing all sort of problems
16375 # (the dirname of $[0] is not the place where we might find the
16376 # original and so on. Autoconf is especially sensible to this).
16378 # Exit status is that of the last command.
16383 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16384 *c
*,-n*) ECHO_N
= ECHO_C
='
16386 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
16387 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
16390 if expr a
: '\(a\)' >/dev
/null
2>&1; then
16396 rm -f conf$$ conf$$.exe conf$$.
file
16398 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16399 # We could just check for DJGPP; but this test a) works b) is more generic
16400 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16401 if test -f conf$$.exe
; then
16402 # Don't use ln at all; we don't have any links
16407 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16412 rm -f conf$$ conf$$.exe conf$$.
file
16414 as_executable_p
="test -f"
16416 # Sed expression to map a string onto a valid CPP name.
16417 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16419 # Sed expression to map a string onto a valid variable name.
16420 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16424 # We need space, tab and new line, in precisely that order.
16430 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=$PATH_SEPARATOR; export CDPATH
; }
16434 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16435 # report actual input values of CONFIG_FILES etc. instead of their
16436 # values after options handling. Logging --version etc. is OK.
16440 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16441 ## Running $as_me. ##
16446 This file was extended by $as_me, which was
16447 generated by GNU Autoconf 2.53. Invocation command line was
16449 CONFIG_FILES = $CONFIG_FILES
16450 CONFIG_HEADERS = $CONFIG_HEADERS
16451 CONFIG_LINKS = $CONFIG_LINKS
16452 CONFIG_COMMANDS = $CONFIG_COMMANDS
16456 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16460 # Files that config.status was made for.
16461 if test -n "$ac_config_files"; then
16462 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16465 if test -n "$ac_config_headers"; then
16466 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16469 if test -n "$ac_config_links"; then
16470 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16473 if test -n "$ac_config_commands"; then
16474 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16477 cat >>$CONFIG_STATUS <<\_ACEOF
16480 \`$as_me' instantiates files from templates according to the
16481 current configuration.
16483 Usage: $0 [OPTIONS] [FILE]...
16485 -h, --help print this help, then exit
16486 -V, --version print version number, then exit
16487 -d, --debug don't remove temporary files
16488 --recheck update $as_me by reconfiguring in the same conditions
16489 --file=FILE[:TEMPLATE]
16490 instantiate the configuration file FILE
16491 --header=FILE[:TEMPLATE]
16492 instantiate the configuration header FILE
16494 Configuration files:
16497 Configuration headers:
16500 Configuration commands:
16503 Report bugs to <bug-autoconf@gnu.org>."
16506 cat >>$CONFIG_STATUS <<_ACEOF
16509 configured by $0, generated by GNU Autoconf 2.53,
16510 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16512 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16513 Free Software Foundation, Inc.
16514 This config.status script is free software; the Free Software Foundation
16515 gives unlimited permission to copy, distribute and modify it."
16520 cat >>$CONFIG_STATUS <<\_ACEOF
16521 # If no file are specified by the user, then we need to provide default
16522 # value. By we need to know if files were specified by the user.
16528 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
16529 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
16531 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
16535 *) # This is not an option, so the user has probably given explicit
16537 ac_need_defaults
=false
;;
16541 # Handling of the options.
16543 cat >>$CONFIG_STATUS <<_ACEOF
16544 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16545 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
16546 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
16548 cat >>$CONFIG_STATUS <<\_ACEOF
16549 --version |
--vers* |
-V )
16550 echo "$ac_cs_version"; exit 0 ;;
16552 # Conflict between --help and --header
16553 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16554 Try \`$0 --help' for more information." >&5
16555 echo "$as_me: error: ambiguous option: $1
16556 Try \`$0 --help' for more information." >&2;}
16557 { (exit 1); exit 1; }; };;
16558 --help |
--hel |
-h )
16559 echo "$ac_cs_usage"; exit 0 ;;
16560 --debug |
--d* |
-d )
16562 --file |
--fil |
--fi |
--f )
16564 CONFIG_FILES
="$CONFIG_FILES $1"
16565 ac_need_defaults
=false
;;
16566 --header |
--heade |
--head |
--hea )
16568 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
16569 ac_need_defaults
=false
;;
16571 # This is an error.
16572 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16573 Try \`$0 --help' for more information." >&5
16574 echo "$as_me: error: unrecognized option: $1
16575 Try \`$0 --help' for more information." >&2;}
16576 { (exit 1); exit 1; }; } ;;
16578 *) ac_config_targets
="$ac_config_targets $1" ;;
16586 cat >>$CONFIG_STATUS <<_ACEOF
16588 # INIT-COMMANDS section.
16591 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
16597 cat >>$CONFIG_STATUS <<\_ACEOF
16598 for ac_config_target
in $ac_config_targets
16600 case "$ac_config_target" in
16601 # Handling of arguments.
16602 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16603 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
16604 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
16605 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
16606 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
16607 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
16608 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
16609 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
16610 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
16611 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
16612 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
16613 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
16614 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16615 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16616 { (exit 1); exit 1; }; };;
16620 # If the user did not use the arguments to specify the items to instantiate,
16621 # then the envvar interface is used. Set only those that are not.
16622 # We use the long form for the default assignment because of an extremely
16623 # bizarre bug on SunOS 4.1.3.
16624 if $ac_need_defaults; then
16625 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16626 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16627 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16630 # Create a temporary directory, and hook for its removal unless debugging.
16633 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16634 trap '{ (exit 1); exit 1; }' 1 2 13 15
16637 # Create a (secure) tmp directory for tmp files.
16640 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
16641 test -n "$tmp" && test -d "$tmp"
16644 tmp
=$TMPDIR/cs$$
-$RANDOM
16645 (umask 077 && mkdir
$tmp)
16648 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
16649 { (exit 1); exit 1; }
16654 cat >>$CONFIG_STATUS <<_ACEOF
16657 # CONFIG_FILES section.
16660 # No need to generate the scripts if there are no CONFIG_FILES.
16661 # This happens for instance when ./config.status config.h
16662 if test -n "\$CONFIG_FILES"; then
16663 # Protect against being on the right side of a sed subst in config.status.
16664 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16665 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16666 s,@SHELL@,$SHELL,;t t
16667 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16668 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16669 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16670 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16671 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16672 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16673 s,@exec_prefix@,$exec_prefix,;t t
16674 s,@prefix@,$prefix,;t t
16675 s,@program_transform_name@,$program_transform_name,;t t
16676 s,@bindir@,$bindir,;t t
16677 s,@sbindir@,$sbindir,;t t
16678 s,@libexecdir@,$libexecdir,;t t
16679 s,@datadir@,$datadir,;t t
16680 s,@sysconfdir@,$sysconfdir,;t t
16681 s,@sharedstatedir@,$sharedstatedir,;t t
16682 s,@localstatedir@,$localstatedir,;t t
16683 s,@libdir@,$libdir,;t t
16684 s,@includedir@,$includedir,;t t
16685 s,@oldincludedir@,$oldincludedir,;t t
16686 s,@infodir@,$infodir,;t t
16687 s,@mandir@,$mandir,;t t
16688 s,@build_alias@,$build_alias,;t t
16689 s,@host_alias@,$host_alias,;t t
16690 s,@target_alias@,$target_alias,;t t
16691 s,@DEFS@,$DEFS,;t t
16692 s,@ECHO_C@,$ECHO_C,;t t
16693 s,@ECHO_N@,$ECHO_N,;t t
16694 s,@ECHO_T@,$ECHO_T,;t t
16695 s,@LIBS@,$LIBS,;t t
16696 s,@build@,$build,;t t
16697 s,@build_cpu@,$build_cpu,;t t
16698 s,@build_vendor@,$build_vendor,;t t
16699 s,@build_os@,$build_os,;t t
16700 s,@host@,$host,;t t
16701 s,@host_cpu@,$host_cpu,;t t
16702 s,@host_vendor@,$host_vendor,;t t
16703 s,@host_os@,$host_os,;t t
16705 s,@CFLAGS@,$CFLAGS,;t t
16706 s,@LDFLAGS@,$LDFLAGS,;t t
16707 s,@CPPFLAGS@,$CPPFLAGS,;t t
16708 s,@ac_ct_CC@,$ac_ct_CC,;t t
16709 s,@EXEEXT@,$EXEEXT,;t t
16710 s,@OBJEXT@,$OBJEXT,;t t
16711 s,@LN_S@,$LN_S,;t t
16713 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16714 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16715 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16716 s,@YACC@,$YACC,;t t
16717 s,@RANLIB@,$RANLIB,;t t
16718 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16719 s,@LIBSOUND@,$LIBSOUND,;t t
16720 s,@SET_MAKE@,$SET_MAKE,;t t
16721 s,@ALLOCA@,$ALLOCA,;t t
16722 s,@liblockfile@,$liblockfile,;t t
16723 s,@LIBOBJS@,$LIBOBJS,;t t
16724 s,@NEED_SETGID@,$NEED_SETGID,;t t
16725 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
16726 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
16727 s,@version@,$version,;t t
16728 s,@configuration@,$configuration,;t t
16729 s,@canonical@,$canonical,;t t
16730 s,@srcdir@,$srcdir,;t t
16731 s,@lispdir@,$lispdir,;t t
16732 s,@locallisppath@,$locallisppath,;t t
16733 s,@lisppath@,$lisppath,;t t
16734 s,@x_default_search_path@,$x_default_search_path,;t t
16735 s,@etcdir@,$etcdir,;t t
16736 s,@archlibdir@,$archlibdir,;t t
16737 s,@docdir@,$docdir,;t t
16738 s,@bitmapdir@,$bitmapdir,;t t
16739 s,@gamedir@,$gamedir,;t t
16740 s,@gameuser@,$gameuser,;t t
16741 s,@c_switch_system@,$c_switch_system,;t t
16742 s,@c_switch_machine@,$c_switch_machine,;t t
16743 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
16744 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
16745 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
16746 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
16747 s,@machfile@,$machfile,;t t
16748 s,@opsysfile@,$opsysfile,;t t
16753 cat >>$CONFIG_STATUS <<\_ACEOF
16754 # Split the substitutions into bite-sized pieces for seds with
16755 # small command number limits, like on Digital OSF/1 and HP-UX.
16756 ac_max_sed_lines
=48
16757 ac_sed_frag
=1 # Number of current file.
16758 ac_beg
=1 # First line for current file.
16759 ac_end
=$ac_max_sed_lines # Line after last line for current file.
16762 while $ac_more_lines; do
16763 if test $ac_beg -gt 1; then
16764 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
16766 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
16768 if test ! -s $tmp/subs.frag
; then
16769 ac_more_lines
=false
16771 # The purpose of the label and of the branching condition is to
16772 # speed up the sed processing (if there are no `@' at all, there
16773 # is no need to browse any of the substitutions).
16774 # These are the two extra sed commands mentioned above.
16776 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
16777 if test -z "$ac_sed_cmds"; then
16778 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
16780 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16782 ac_sed_frag
=`expr $ac_sed_frag + 1`
16784 ac_end
=`expr $ac_end + $ac_max_sed_lines`
16787 if test -z "$ac_sed_cmds"; then
16790 fi # test -n "$CONFIG_FILES"
16793 cat >>$CONFIG_STATUS <<\_ACEOF
16794 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
16795 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16797 - |
*:- |
*:-:* ) # input from stdin
16799 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16800 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16801 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16802 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16803 * ) ac_file_in
=$ac_file.
in ;;
16806 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16807 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
16808 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16809 X"$ac_file" : 'X\(//\)[^/]' \| \
16810 X"$ac_file" : 'X\(//\)$' \| \
16811 X"$ac_file" : 'X\(/\)' \| \
16812 . : '\(.\)' 2>/dev/null ||
16814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16815 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16816 /^X\(\/\/\)$/{ s//\1/; q; }
16817 /^X\(\/\).*/{ s//\1/; q; }
16819 { case "$ac_dir" in
16820 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
16824 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16825 case $as_mkdir_dir in
16826 # Skip DOS drivespec
16827 ?
:) as_incr_dir
=$as_mkdir_dir ;;
16829 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
16830 test -d "$as_incr_dir" ||
16831 mkdir
"$as_incr_dir" ||
16832 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
16833 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
16834 { (exit 1); exit 1; }; }
16841 if test "$ac_dir" != .
; then
16842 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16843 # A "../" for each directory in $ac_dir_suffix.
16844 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16846 ac_dir_suffix
= ac_top_builddir
=
16850 .
) # No --srcdir option. We are building in place.
16852 if test -z "$ac_top_builddir"; then
16855 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
16857 [\\/]* | ?
:[\\/]* ) # Absolute path.
16858 ac_srcdir
=$srcdir$ac_dir_suffix;
16859 ac_top_srcdir
=$srcdir ;;
16860 *) # Relative path.
16861 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
16862 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
16864 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16866 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
16867 ac_abs_top_builddir
=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
16868 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16869 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16873 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
16874 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
16877 if test x
"$ac_file" != x-
; then
16878 { echo "$as_me:$LINENO: creating $ac_file" >&5
16879 echo "$as_me: creating $ac_file" >&6;}
16882 # Let's still pretend it is `configure' which instantiates (i.e., don't
16883 # use $as_me), people would be surprised to read:
16884 # /* config.h. Generated by config.status. */
16885 if test x
"$ac_file" = x-
; then
16888 configure_input
="$ac_file. "
16890 configure_input
=$configure_input"Generated from `echo $ac_file_in |
16891 sed 's,.*/,,'` by configure."
16893 # First look for the input files in the build tree, otherwise in the
16895 ac_file_inputs
=`IFS=:
16896 for f in $ac_file_in; do
16898 -) echo $tmp/stdin ;;
16900 # Absolute (can't be DOS-style, as IFS=:)
16901 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16902 echo "$as_me: error: cannot find input file: $f" >&2;}
16903 { (exit 1); exit 1; }; }
16906 if test -f "$f"; then
16909 elif test -f "$srcdir/$f"; then
16914 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16915 echo "$as_me: error: cannot find input file: $f" >&2;}
16916 { (exit 1); exit 1; }; }
16919 done` ||
{ (exit 1); exit 1; }
16921 cat >>$CONFIG_STATUS <<_ACEOF
16925 cat >>$CONFIG_STATUS <<\_ACEOF
16927 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16928 s
,@configure_input@
,$configure_input,;t t
16929 s
,@srcdir@
,$ac_srcdir,;t t
16930 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
16931 s
,@top_srcdir@
,$ac_top_srcdir,;t t
16932 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
16933 s
,@builddir@
,$ac_builddir,;t t
16934 s
,@abs_builddir@
,$ac_abs_builddir,;t t
16935 s
,@top_builddir@
,$ac_top_builddir,;t t
16936 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
16937 s
,@INSTALL@
,$ac_INSTALL,;t t
16938 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16940 if test x"$ac_file" != x-; then
16941 mv $tmp/out $ac_file
16949 cat >>$CONFIG_STATUS <<\_ACEOF
16952 # CONFIG_HEADER section.
16955 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
16956 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16958 # ac_d sets the value in "#define NAME VALUE" lines.
16959 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16960 ac_dB
='[ ].*$,\1#\2'
16963 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16964 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16965 ac_uB
='$,\1#\2define\3'
16969 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
16970 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16972 - |
*:- |
*:-:* ) # input from stdin
16974 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16975 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16976 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16977 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16978 * ) ac_file_in
=$ac_file.
in ;;
16981 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
16982 echo "$as_me: creating $ac_file" >&6;}
16984 # First look for the input files in the build tree, otherwise in the
16986 ac_file_inputs
=`IFS=:
16987 for f in $ac_file_in; do
16989 -) echo $tmp/stdin ;;
16991 # Absolute (can't be DOS-style, as IFS=:)
16992 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16993 echo "$as_me: error: cannot find input file: $f" >&2;}
16994 { (exit 1); exit 1; }; }
16997 if test -f "$f"; then
17000 elif test -f "$srcdir/$f"; then
17005 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17006 echo "$as_me: error: cannot find input file: $f" >&2;}
17007 { (exit 1); exit 1; }; }
17010 done` ||
{ (exit 1); exit 1; }
17011 # Remove the trailing spaces.
17012 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17016 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17017 # `conftest.undefs', that substitutes the proper values into
17018 # config.h.in to produce config.h. The first handles `#define'
17019 # templates, and the second `#undef' templates.
17020 # And first: Protect against being on the right side of a sed subst in
17021 # config.status. Protect against being in an unquoted here document
17022 # in config.status.
17023 rm -f conftest.defines conftest.undefs
17024 # Using a here document instead of a string reduces the quoting nightmare.
17025 # Putting comments in sed scripts is not portable.
17027 # `end' is used to avoid that the second main sed command (meant for
17028 # 0-ary CPP macros) applies to n-ary macro definitions.
17029 # See the Autoconf documentation for `clear'.
17030 cat >confdef2sed.
sed <<\_ACEOF
17035 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17037 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17040 # If some macros were called several times there might be several times
17041 # the same #defines, which is useless. Nevertheless, we may not want to
17042 # sort them, since we want the *last* AC-DEFINE to be honored.
17043 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17044 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17045 rm -f confdef2sed.sed
17047 # This sed command replaces #undef with comments. This is necessary, for
17048 # example, in the case of _POSIX_SOURCE, which is predefined and required
17049 # on some systems where configure will not decide to define it.
17050 cat >>conftest.undefs <<\_ACEOF
17051 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17054 # Break up conftest.defines because some shells have a limit on the size
17055 # of here documents, and old seds have small limits too (100 cmds).
17056 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17057 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17058 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17059 echo ' :' >>$CONFIG_STATUS
17060 rm -f conftest.tail
17061 while grep . conftest.defines >/dev/null
17063 # Write a limited-size here document to $tmp/defines.sed.
17064 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17065 # Speed up: don't consider the non `#define' lines.
17066 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17067 # Work around the forget-to-reset-the-flag bug.
17068 echo 't clr' >>$CONFIG_STATUS
17069 echo ': clr' >>$CONFIG_STATUS
17070 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
17072 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17074 mv $tmp/out $tmp/in
17076 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
17077 rm -f conftest.defines
17078 mv conftest.
tail conftest.defines
17080 rm -f conftest.defines
17081 echo ' fi # egrep' >>$CONFIG_STATUS
17082 echo >>$CONFIG_STATUS
17084 # Break up conftest.undefs because some shells have a limit on the size
17085 # of here documents, and old seds have small limits too (100 cmds).
17086 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17087 rm -f conftest.
tail
17088 while grep . conftest.undefs
>/dev
/null
17090 # Write a limited-size here document to $tmp/undefs.sed.
17091 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17092 # Speed up: don't consider the non
`#undef'
17093 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17094 # Work around the forget-to-reset-the-flag bug.
17095 echo 't clr' >>$CONFIG_STATUS
17096 echo ': clr' >>$CONFIG_STATUS
17097 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17099 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17101 mv $tmp/out $tmp/in
17103 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17104 rm -f conftest.undefs
17105 mv conftest.tail conftest.undefs
17107 rm -f conftest.undefs
17109 cat >>$CONFIG_STATUS <<\_ACEOF
17110 # Let's still pretend it is `configure
' which instantiates (i.e., don't
17111 # use $as_me), people would be surprised to read:
17112 # /* config.h. Generated by config.status. */
17113 if test x
"$ac_file" = x-
; then
17114 echo "/* Generated by configure. */" >$tmp/config.h
17116 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17118 cat $tmp/in >>$tmp/config.h
17120 if test x
"$ac_file" != x-
; then
17121 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
17122 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17123 echo "$as_me: $ac_file is unchanged" >&6;}
17125 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
17126 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17127 X"$ac_file" : 'X\(//\)[^/]' \| \
17128 X"$ac_file" : 'X\(//\)$' \| \
17129 X"$ac_file" : 'X\(/\)' \| \
17130 . : '\(.\)' 2>/dev/null ||
17132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17133 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17134 /^X\(\/\/\)$/{ s//\1/; q; }
17135 /^X\(\/\).*/{ s//\1/; q; }
17137 { case "$ac_dir" in
17138 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
17142 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17143 case $as_mkdir_dir in
17144 # Skip DOS drivespec
17145 ?
:) as_incr_dir
=$as_mkdir_dir ;;
17147 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
17148 test -d "$as_incr_dir" ||
17149 mkdir
"$as_incr_dir" ||
17150 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17151 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17152 { (exit 1); exit 1; }; }
17158 mv $tmp/config.h
$ac_file
17162 rm -f $tmp/config.h
17166 cat >>$CONFIG_STATUS <<\_ACEOF
17169 # CONFIG_COMMANDS section.
17171 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
17172 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
17173 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17174 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
17175 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17176 X"$ac_dest" : 'X\(//\)[^/]' \| \
17177 X"$ac_dest" : 'X\(//\)$' \| \
17178 X"$ac_dest" : 'X\(/\)' \| \
17179 . : '\(.\)' 2>/dev/null ||
17181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17182 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17183 /^X\(\/\/\)$/{ s//\1/; q; }
17184 /^X\(\/\).*/{ s//\1/; q; }
17188 if test "$ac_dir" != .
; then
17189 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17190 # A "../" for each directory in $ac_dir_suffix.
17191 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17193 ac_dir_suffix
= ac_top_builddir
=
17197 .
) # No --srcdir option. We are building in place.
17199 if test -z "$ac_top_builddir"; then
17202 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
17204 [\\/]* | ?
:[\\/]* ) # Absolute path.
17205 ac_srcdir
=$srcdir$ac_dir_suffix;
17206 ac_top_srcdir
=$srcdir ;;
17207 *) # Relative path.
17208 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
17209 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
17211 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17213 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
17214 ac_abs_top_builddir
=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
17215 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17216 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17219 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17220 echo "$as_me: executing $ac_dest commands" >&6;}
17224 ### Make the necessary directories, if they don't exist.
17225 for dir
in etc lisp
; do
17226 test -d ${dir} || mkdir
${dir}
17229 # Build src/Makefile from ${srcdir}/src/Makefile.c
17230 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
17231 # This must be done after src/config.h is built, since we rely on that file.
17233 # Now get this: Some word that is part of the ${srcdir} directory name
17234 # or the ${configuration} value might, just might, happen to be an
17235 # identifier like `sun4' or `i386' or something, and be predefined by
17236 # the C preprocessor to some helpful value like 1, or maybe the empty
17237 # string. Needless to say consequent macro substitutions are less
17238 # than conducive to the makefile finding the correct directory.
17239 undefs
="`echo $top_srcdir $configuration $canonical |
17240 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
17241 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
17244 echo creating src
/epaths.h
17245 ${MAKE-make} epaths-force
17247 # As of 2000-11-19, newest development versions of GNU cpp preprocess
17248 # `..' to `. .' unless invoked with -traditional
17250 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
17251 CPPFLAGS
="$CPPFLAGS -traditional"
17254 echo creating lib-src
/Makefile
17256 rm -f junk.c junk1.c junk2.c
17257 sed -e '/start of cpp stuff/q' \
17258 < Makefile.c
> junk1.c
17259 sed -e '1,/start of cpp stuff/d'\
17260 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
17261 < Makefile.c
> junk.c
17262 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
17263 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
17264 cat junk1.c junk2.c
> Makefile.new
17265 rm -f junk.c junk1.c junk2.c
17266 chmod 444 Makefile.new
17267 mv -f Makefile.new Makefile
17270 echo creating src
/Makefile
17272 rm -f junk.c junk1.c junk2.c
17273 sed -e '/start of cpp stuff/q' \
17274 < Makefile.c
> junk1.c
17275 sed -e '1,/start of cpp stuff/d'\
17276 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
17277 < Makefile.c
> junk.c
17278 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
17279 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
17280 cat junk1.c junk2.c
> Makefile.new
17281 rm -f junk.c junk1.c junk2.c
17282 chmod 444 Makefile.new
17283 mv -f Makefile.new Makefile
17286 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
17287 echo creating src
/.gdbinit
17288 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
17291 # This is how we know whether to re-run configure in certain cases.
17292 touch src
/config.stamp
17299 cat >>$CONFIG_STATUS <<\_ACEOF
17301 { (exit 0); exit 0; }
17303 chmod +x
$CONFIG_STATUS
17304 ac_clean_files
=$ac_clean_files_save
17307 # configure is writing to config.log, and then calls config.status.
17308 # config.status does its own redirection, appending to config.log.
17309 # Unfortunately, on DOS this fails, as config.log is still kept open
17310 # by configure, so config.status won't be able to write to it; its
17311 # output is simply discarded. So we exec the FD to /dev/null,
17312 # effectively closing config.log, so it can be properly (re)opened and
17313 # appended to by config.status. When coming back to configure, we
17314 # need to make the FD available again.
17315 if test "$no_create" != yes; then
17318 $SHELL $CONFIG_STATUS || ac_cs_success
=false
17320 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17321 # would make configure fail if this is the last instruction.
17322 $ac_cs_success ||
{ (exit 1); exit 1; }