]> code.delx.au - gnu-emacs/blob - configure
tutorial.el (tutorial--save-tutorial): Prompt before saving tutorial state.
[gnu-emacs] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 setopt NO_GLOB_SUBST
21 else
22 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
23 fi
24 BIN_SH=xpg4; export BIN_SH # for Tru64
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27
28 # PATH needs CR
29 # Avoid depending upon Character Ranges.
30 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33 as_cr_digits='0123456789'
34 as_cr_alnum=$as_cr_Letters$as_cr_digits
35
36 # The user is always right.
37 if test "${PATH_SEPARATOR+set}" != set; then
38 echo "#! /bin/sh" >conf$$.sh
39 echo "exit 0" >>conf$$.sh
40 chmod +x conf$$.sh
41 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42 PATH_SEPARATOR=';'
43 else
44 PATH_SEPARATOR=:
45 fi
46 rm -f conf$$.sh
47 fi
48
49 # Support unset when possible.
50 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51 as_unset=unset
52 else
53 as_unset=false
54 fi
55
56
57 # IFS
58 # We need space, tab and new line, in precisely that order. Quoting is
59 # there to prevent editors from complaining about space-tab.
60 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
61 # splitting by setting IFS to empty value.)
62 as_nl='
63 '
64 IFS=" "" $as_nl"
65
66 # Find who we are. Look in the path if we contain no directory separator.
67 case $0 in
68 *[\\/]* ) as_myself=$0 ;;
69 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
70 for as_dir in $PATH
71 do
72 IFS=$as_save_IFS
73 test -z "$as_dir" && as_dir=.
74 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
75 done
76 IFS=$as_save_IFS
77
78 ;;
79 esac
80 # We did not find ourselves, most probably we were run as `sh COMMAND'
81 # in which case we are not to be found in the path.
82 if test "x$as_myself" = x; then
83 as_myself=$0
84 fi
85 if test ! -f "$as_myself"; then
86 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
87 { (exit 1); exit 1; }
88 fi
89
90 # Work around bugs in pre-3.0 UWIN ksh.
91 for as_var in ENV MAIL MAILPATH
92 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
93 done
94 PS1='$ '
95 PS2='> '
96 PS4='+ '
97
98 # NLS nuisances.
99 for as_var in \
100 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
102 LC_TELEPHONE LC_TIME
103 do
104 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105 eval $as_var=C; export $as_var
106 else
107 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
108 fi
109 done
110
111 # Required to use basename.
112 if expr a : '\(a\)' >/dev/null 2>&1 &&
113 test "X`expr 00001 : '.*\(...\)'`" = X001; then
114 as_expr=expr
115 else
116 as_expr=false
117 fi
118
119 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
120 as_basename=basename
121 else
122 as_basename=false
123 fi
124
125
126 # Name of the executable.
127 as_me=`$as_basename -- "$0" ||
128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129 X"$0" : 'X\(//\)$' \| \
130 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
131 echo X/"$0" |
132 sed '/^.*\/\([^/][^/]*\)\/*$/{
133 s//\1/
134 q
135 }
136 /^X\/\(\/\/\)$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\).*/{
141 s//\1/
142 q
143 }
144 s/.*/./; q'`
145
146 # CDPATH.
147 $as_unset CDPATH
148
149
150 if test "x$CONFIG_SHELL" = x; then
151 if (eval ":") 2>/dev/null; then
152 as_have_required=yes
153 else
154 as_have_required=no
155 fi
156
157 if test $as_have_required = yes && (eval ":
158 (as_func_return () {
159 (exit \$1)
160 }
161 as_func_success () {
162 as_func_return 0
163 }
164 as_func_failure () {
165 as_func_return 1
166 }
167 as_func_ret_success () {
168 return 0
169 }
170 as_func_ret_failure () {
171 return 1
172 }
173
174 exitcode=0
175 if as_func_success; then
176 :
177 else
178 exitcode=1
179 echo as_func_success failed.
180 fi
181
182 if as_func_failure; then
183 exitcode=1
184 echo as_func_failure succeeded.
185 fi
186
187 if as_func_ret_success; then
188 :
189 else
190 exitcode=1
191 echo as_func_ret_success failed.
192 fi
193
194 if as_func_ret_failure; then
195 exitcode=1
196 echo as_func_ret_failure succeeded.
197 fi
198
199 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
200 :
201 else
202 exitcode=1
203 echo positional parameters were not saved.
204 fi
205
206 test \$exitcode = 0) || { (exit 1); exit 1; }
207
208 (
209 as_lineno_1=\$LINENO
210 as_lineno_2=\$LINENO
211 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213 ") 2> /dev/null; then
214 :
215 else
216 as_candidate_shells=
217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 case $as_dir in
223 /*)
224 for as_base in sh bash ksh sh5; do
225 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
226 done;;
227 esac
228 done
229 IFS=$as_save_IFS
230
231
232 for as_shell in $as_candidate_shells $SHELL; do
233 # Try only shells that exist, to save several forks.
234 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235 { ("$as_shell") 2> /dev/null <<\_ASEOF
236 # Be Bourne compatible
237 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
238 emulate sh
239 NULLCMD=:
240 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241 # is contrary to our usage. Disable this feature.
242 alias -g '${1+"$@"}'='"$@"'
243 setopt NO_GLOB_SUBST
244 else
245 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
246 fi
247 BIN_SH=xpg4; export BIN_SH # for Tru64
248 DUALCASE=1; export DUALCASE # for MKS sh
249
250 :
251 _ASEOF
252 }; then
253 CONFIG_SHELL=$as_shell
254 as_have_required=yes
255 if { "$as_shell" 2> /dev/null <<\_ASEOF
256 # Be Bourne compatible
257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
258 emulate sh
259 NULLCMD=:
260 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261 # is contrary to our usage. Disable this feature.
262 alias -g '${1+"$@"}'='"$@"'
263 setopt NO_GLOB_SUBST
264 else
265 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
266 fi
267 BIN_SH=xpg4; export BIN_SH # for Tru64
268 DUALCASE=1; export DUALCASE # for MKS sh
269
270 :
271 (as_func_return () {
272 (exit $1)
273 }
274 as_func_success () {
275 as_func_return 0
276 }
277 as_func_failure () {
278 as_func_return 1
279 }
280 as_func_ret_success () {
281 return 0
282 }
283 as_func_ret_failure () {
284 return 1
285 }
286
287 exitcode=0
288 if as_func_success; then
289 :
290 else
291 exitcode=1
292 echo as_func_success failed.
293 fi
294
295 if as_func_failure; then
296 exitcode=1
297 echo as_func_failure succeeded.
298 fi
299
300 if as_func_ret_success; then
301 :
302 else
303 exitcode=1
304 echo as_func_ret_success failed.
305 fi
306
307 if as_func_ret_failure; then
308 exitcode=1
309 echo as_func_ret_failure succeeded.
310 fi
311
312 if ( set x; as_func_ret_success y && test x = "$1" ); then
313 :
314 else
315 exitcode=1
316 echo positional parameters were not saved.
317 fi
318
319 test $exitcode = 0) || { (exit 1); exit 1; }
320
321 (
322 as_lineno_1=$LINENO
323 as_lineno_2=$LINENO
324 test "x$as_lineno_1" != "x$as_lineno_2" &&
325 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
326
327 _ASEOF
328 }; then
329 break
330 fi
331
332 fi
333
334 done
335
336 if test "x$CONFIG_SHELL" != x; then
337 for as_var in BASH_ENV ENV
338 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
339 done
340 export CONFIG_SHELL
341 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
342 fi
343
344
345 if test $as_have_required = no; then
346 echo This script requires a shell more modern than all the
347 echo shells that I found on your system. Please install a
348 echo modern shell, or manually run the script under such a
349 echo shell if you do have one.
350 { (exit 1); exit 1; }
351 fi
352
353
354 fi
355
356 fi
357
358
359
360 (eval "as_func_return () {
361 (exit \$1)
362 }
363 as_func_success () {
364 as_func_return 0
365 }
366 as_func_failure () {
367 as_func_return 1
368 }
369 as_func_ret_success () {
370 return 0
371 }
372 as_func_ret_failure () {
373 return 1
374 }
375
376 exitcode=0
377 if as_func_success; then
378 :
379 else
380 exitcode=1
381 echo as_func_success failed.
382 fi
383
384 if as_func_failure; then
385 exitcode=1
386 echo as_func_failure succeeded.
387 fi
388
389 if as_func_ret_success; then
390 :
391 else
392 exitcode=1
393 echo as_func_ret_success failed.
394 fi
395
396 if as_func_ret_failure; then
397 exitcode=1
398 echo as_func_ret_failure succeeded.
399 fi
400
401 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
402 :
403 else
404 exitcode=1
405 echo positional parameters were not saved.
406 fi
407
408 test \$exitcode = 0") || {
409 echo No shell found that supports shell functions.
410 echo Please tell autoconf@gnu.org about your system,
411 echo including any error possibly output before this
412 echo message
413 }
414
415
416
417 as_lineno_1=$LINENO
418 as_lineno_2=$LINENO
419 test "x$as_lineno_1" != "x$as_lineno_2" &&
420 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
421
422 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423 # uniformly replaced by the line number. The first 'sed' inserts a
424 # line-number line after each line using $LINENO; the second 'sed'
425 # does the real work. The second script uses 'N' to pair each
426 # line-number line with the line containing $LINENO, and appends
427 # trailing '-' during substitution so that $LINENO is not a special
428 # case at line end.
429 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430 # scripts with optimization help from Paolo Bonzini. Blame Lee
431 # E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449 { (exit 1); exit 1; }; }
450
451 # Don't try to exec as it changes $[0], causing all sort of problems
452 # (the dirname of $[0] is not the place where we might find the
453 # original and so on. Autoconf is especially sensitive to this).
454 . "./$as_me.lineno"
455 # Exit status is that of the last command.
456 exit
457 }
458
459
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461 as_dirname=dirname
462 else
463 as_dirname=false
464 fi
465
466 ECHO_C= ECHO_N= ECHO_T=
467 case `echo -n x` in
468 -n*)
469 case `echo 'x\c'` in
470 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
471 *) ECHO_C='\c';;
472 esac;;
473 *)
474 ECHO_N='-n';;
475 esac
476
477 if expr a : '\(a\)' >/dev/null 2>&1 &&
478 test "X`expr 00001 : '.*\(...\)'`" = X001; then
479 as_expr=expr
480 else
481 as_expr=false
482 fi
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487 else
488 rm -f conf$$.dir
489 mkdir conf$$.dir
490 fi
491 echo >conf$$.file
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499 as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502 else
503 as_ln_s='cp -p'
504 fi
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
507
508 if mkdir -p . 2>/dev/null; then
509 as_mkdir_p=:
510 else
511 test -d ./-p && rmdir ./-p
512 as_mkdir_p=false
513 fi
514
515 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
516 # systems may use methods other than mode bits to determine executability.
517 cat >conf$$.file <<_ASEOF
518 #! /bin/sh
519 exit 0
520 _ASEOF
521 chmod +x conf$$.file
522 if test -x conf$$.file >/dev/null 2>&1; then
523 as_executable_p="test -x"
524 else
525 as_executable_p=:
526 fi
527 rm -f conf$$.file
528
529 # Sed expression to map a string onto a valid CPP name.
530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531
532 # Sed expression to map a string onto a valid variable name.
533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555 SHELL=${CONFIG_SHELL-/bin/sh}
556
557 # Identity of this package.
558 PACKAGE_NAME=
559 PACKAGE_TARNAME=
560 PACKAGE_VERSION=
561 PACKAGE_STRING=
562 PACKAGE_BUGREPORT=
563
564 ac_unique_file="src/lisp.h"
565 ac_config_libobj_dir=src
566 # Factoring default headers for most tests.
567 ac_includes_default="\
568 #include <stdio.h>
569 #if HAVE_SYS_TYPES_H
570 # include <sys/types.h>
571 #endif
572 #if HAVE_SYS_STAT_H
573 # include <sys/stat.h>
574 #endif
575 #if STDC_HEADERS
576 # include <stdlib.h>
577 # include <stddef.h>
578 #else
579 # if HAVE_STDLIB_H
580 # include <stdlib.h>
581 # endif
582 #endif
583 #if HAVE_STRING_H
584 # if !STDC_HEADERS && HAVE_MEMORY_H
585 # include <memory.h>
586 # endif
587 # include <string.h>
588 #endif
589 #if HAVE_STRINGS_H
590 # include <strings.h>
591 #endif
592 #if HAVE_INTTYPES_H
593 # include <inttypes.h>
594 #endif
595 #if HAVE_STDINT_H
596 # include <stdint.h>
597 #endif
598 #if HAVE_UNISTD_H
599 # include <unistd.h>
600 #endif"
601
602 ac_subst_vars='SHELL
603 PATH_SEPARATOR
604 PACKAGE_NAME
605 PACKAGE_TARNAME
606 PACKAGE_VERSION
607 PACKAGE_STRING
608 PACKAGE_BUGREPORT
609 exec_prefix
610 prefix
611 program_transform_name
612 bindir
613 sbindir
614 libexecdir
615 datarootdir
616 datadir
617 sysconfdir
618 sharedstatedir
619 localstatedir
620 includedir
621 oldincludedir
622 docdir
623 infodir
624 htmldir
625 dvidir
626 pdfdir
627 psdir
628 libdir
629 localedir
630 mandir
631 DEFS
632 ECHO_C
633 ECHO_N
634 ECHO_T
635 LIBS
636 build_alias
637 host_alias
638 target_alias
639 MAINT
640 build
641 build_cpu
642 build_vendor
643 build_os
644 host
645 host_cpu
646 host_vendor
647 host_os
648 CC
649 CFLAGS
650 LDFLAGS
651 CPPFLAGS
652 ac_ct_CC
653 EXEEXT
654 OBJEXT
655 CPP
656 GREP
657 EGREP
658 LN_S
659 INSTALL_PROGRAM
660 INSTALL_SCRIPT
661 INSTALL_DATA
662 RANLIB
663 INSTALL_INFO
664 GZIP_PROG
665 LIBSOUND
666 PKG_CONFIG
667 ALSA_CFLAGS
668 ALSA_LIBS
669
670 CFLAGS_SOUND
671 SET_MAKE
672 XMKMF
673 GTK_CFLAGS
674 GTK_LIBS
675 ALLOCA
676 liblockfile
677 LIBOBJS
678 NEED_SETGID
679 KMEM_GROUP
680 GETLOADAVG_LIBS
681 GETOPT_H
682 GETOPTOBJS
683 version
684 configuration
685 canonical
686 srcdir
687 lispdir
688 locallisppath
689 lisppath
690 x_default_search_path
691 etcdir
692 archlibdir
693 bitmapdir
694 gamedir
695 gameuser
696 c_switch_system
697 c_switch_machine
698 LD_SWITCH_X_SITE
699 LD_SWITCH_X_SITE_AUX
700 C_SWITCH_X_SITE
701 X_TOOLKIT_TYPE
702 machfile
703 opsysfile
704 carbon_appdir
705 LTLIBOBJS'
706 ac_subst_files=''
707 ac_precious_vars='build_alias
708 host_alias
709 target_alias
710 CC
711 CFLAGS
712 LDFLAGS
713 CPPFLAGS
714 CPP
715 XMKMF'
716
717
718 # Initialize some variables set by options.
719 ac_init_help=
720 ac_init_version=false
721 # The variables have the same names as the options, with
722 # dashes changed to underlines.
723 cache_file=/dev/null
724 exec_prefix=NONE
725 no_create=
726 no_recursion=
727 prefix=NONE
728 program_prefix=NONE
729 program_suffix=NONE
730 program_transform_name=s,x,x,
731 silent=
732 site=
733 srcdir=
734 verbose=
735 x_includes=NONE
736 x_libraries=NONE
737
738 # Installation directory options.
739 # These are left unexpanded so users can "make install exec_prefix=/foo"
740 # and all the variables that are supposed to be based on exec_prefix
741 # by default will actually change.
742 # Use braces instead of parens because sh, perl, etc. also accept them.
743 # (The list follows the same order as the GNU Coding Standards.)
744 bindir='${exec_prefix}/bin'
745 sbindir='${exec_prefix}/sbin'
746 libexecdir='${exec_prefix}/libexec'
747 datarootdir='${prefix}/share'
748 datadir='${datarootdir}'
749 sysconfdir='${prefix}/etc'
750 sharedstatedir='${prefix}/com'
751 localstatedir='${prefix}/var'
752 includedir='${prefix}/include'
753 oldincludedir='/usr/include'
754 docdir='${datarootdir}/doc/${PACKAGE}'
755 infodir='${datarootdir}/info'
756 htmldir='${docdir}'
757 dvidir='${docdir}'
758 pdfdir='${docdir}'
759 psdir='${docdir}'
760 libdir='${exec_prefix}/lib'
761 localedir='${datarootdir}/locale'
762 mandir='${datarootdir}/man'
763
764 ac_prev=
765 ac_dashdash=
766 for ac_option
767 do
768 # If the previous option needs an argument, assign it.
769 if test -n "$ac_prev"; then
770 eval $ac_prev=\$ac_option
771 ac_prev=
772 continue
773 fi
774
775 case $ac_option in
776 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
777 *) ac_optarg=yes ;;
778 esac
779
780 # Accept the important Cygnus configure options, so we can diagnose typos.
781
782 case $ac_dashdash$ac_option in
783 --)
784 ac_dashdash=yes ;;
785
786 -bindir | --bindir | --bindi | --bind | --bin | --bi)
787 ac_prev=bindir ;;
788 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
789 bindir=$ac_optarg ;;
790
791 -build | --build | --buil | --bui | --bu)
792 ac_prev=build_alias ;;
793 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
794 build_alias=$ac_optarg ;;
795
796 -cache-file | --cache-file | --cache-fil | --cache-fi \
797 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
798 ac_prev=cache_file ;;
799 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
800 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
801 cache_file=$ac_optarg ;;
802
803 --config-cache | -C)
804 cache_file=config.cache ;;
805
806 -datadir | --datadir | --datadi | --datad)
807 ac_prev=datadir ;;
808 -datadir=* | --datadir=* | --datadi=* | --datad=*)
809 datadir=$ac_optarg ;;
810
811 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
812 | --dataroo | --dataro | --datar)
813 ac_prev=datarootdir ;;
814 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
815 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
816 datarootdir=$ac_optarg ;;
817
818 -disable-* | --disable-*)
819 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
820 # Reject names that are not valid shell variable names.
821 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
822 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
823 { (exit 1); exit 1; }; }
824 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
825 eval enable_$ac_feature=no ;;
826
827 -docdir | --docdir | --docdi | --doc | --do)
828 ac_prev=docdir ;;
829 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
830 docdir=$ac_optarg ;;
831
832 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
833 ac_prev=dvidir ;;
834 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
835 dvidir=$ac_optarg ;;
836
837 -enable-* | --enable-*)
838 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
839 # Reject names that are not valid shell variable names.
840 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
841 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
842 { (exit 1); exit 1; }; }
843 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
844 eval enable_$ac_feature=\$ac_optarg ;;
845
846 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
847 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
848 | --exec | --exe | --ex)
849 ac_prev=exec_prefix ;;
850 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
851 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
852 | --exec=* | --exe=* | --ex=*)
853 exec_prefix=$ac_optarg ;;
854
855 -gas | --gas | --ga | --g)
856 # Obsolete; use --with-gas.
857 with_gas=yes ;;
858
859 -help | --help | --hel | --he | -h)
860 ac_init_help=long ;;
861 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
862 ac_init_help=recursive ;;
863 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
864 ac_init_help=short ;;
865
866 -host | --host | --hos | --ho)
867 ac_prev=host_alias ;;
868 -host=* | --host=* | --hos=* | --ho=*)
869 host_alias=$ac_optarg ;;
870
871 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
872 ac_prev=htmldir ;;
873 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
874 | --ht=*)
875 htmldir=$ac_optarg ;;
876
877 -includedir | --includedir | --includedi | --included | --include \
878 | --includ | --inclu | --incl | --inc)
879 ac_prev=includedir ;;
880 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
881 | --includ=* | --inclu=* | --incl=* | --inc=*)
882 includedir=$ac_optarg ;;
883
884 -infodir | --infodir | --infodi | --infod | --info | --inf)
885 ac_prev=infodir ;;
886 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
887 infodir=$ac_optarg ;;
888
889 -libdir | --libdir | --libdi | --libd)
890 ac_prev=libdir ;;
891 -libdir=* | --libdir=* | --libdi=* | --libd=*)
892 libdir=$ac_optarg ;;
893
894 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
895 | --libexe | --libex | --libe)
896 ac_prev=libexecdir ;;
897 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
898 | --libexe=* | --libex=* | --libe=*)
899 libexecdir=$ac_optarg ;;
900
901 -localedir | --localedir | --localedi | --localed | --locale)
902 ac_prev=localedir ;;
903 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
904 localedir=$ac_optarg ;;
905
906 -localstatedir | --localstatedir | --localstatedi | --localstated \
907 | --localstate | --localstat | --localsta | --localst | --locals)
908 ac_prev=localstatedir ;;
909 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
910 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
911 localstatedir=$ac_optarg ;;
912
913 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
914 ac_prev=mandir ;;
915 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
916 mandir=$ac_optarg ;;
917
918 -nfp | --nfp | --nf)
919 # Obsolete; use --without-fp.
920 with_fp=no ;;
921
922 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
923 | --no-cr | --no-c | -n)
924 no_create=yes ;;
925
926 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
927 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
928 no_recursion=yes ;;
929
930 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
931 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
932 | --oldin | --oldi | --old | --ol | --o)
933 ac_prev=oldincludedir ;;
934 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
935 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
936 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
937 oldincludedir=$ac_optarg ;;
938
939 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
940 ac_prev=prefix ;;
941 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
942 prefix=$ac_optarg ;;
943
944 -program-prefix | --program-prefix | --program-prefi | --program-pref \
945 | --program-pre | --program-pr | --program-p)
946 ac_prev=program_prefix ;;
947 -program-prefix=* | --program-prefix=* | --program-prefi=* \
948 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
949 program_prefix=$ac_optarg ;;
950
951 -program-suffix | --program-suffix | --program-suffi | --program-suff \
952 | --program-suf | --program-su | --program-s)
953 ac_prev=program_suffix ;;
954 -program-suffix=* | --program-suffix=* | --program-suffi=* \
955 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
956 program_suffix=$ac_optarg ;;
957
958 -program-transform-name | --program-transform-name \
959 | --program-transform-nam | --program-transform-na \
960 | --program-transform-n | --program-transform- \
961 | --program-transform | --program-transfor \
962 | --program-transfo | --program-transf \
963 | --program-trans | --program-tran \
964 | --progr-tra | --program-tr | --program-t)
965 ac_prev=program_transform_name ;;
966 -program-transform-name=* | --program-transform-name=* \
967 | --program-transform-nam=* | --program-transform-na=* \
968 | --program-transform-n=* | --program-transform-=* \
969 | --program-transform=* | --program-transfor=* \
970 | --program-transfo=* | --program-transf=* \
971 | --program-trans=* | --program-tran=* \
972 | --progr-tra=* | --program-tr=* | --program-t=*)
973 program_transform_name=$ac_optarg ;;
974
975 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
976 ac_prev=pdfdir ;;
977 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
978 pdfdir=$ac_optarg ;;
979
980 -psdir | --psdir | --psdi | --psd | --ps)
981 ac_prev=psdir ;;
982 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
983 psdir=$ac_optarg ;;
984
985 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
986 | -silent | --silent | --silen | --sile | --sil)
987 silent=yes ;;
988
989 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
990 ac_prev=sbindir ;;
991 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
992 | --sbi=* | --sb=*)
993 sbindir=$ac_optarg ;;
994
995 -sharedstatedir | --sharedstatedir | --sharedstatedi \
996 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
997 | --sharedst | --shareds | --shared | --share | --shar \
998 | --sha | --sh)
999 ac_prev=sharedstatedir ;;
1000 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1001 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1002 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1003 | --sha=* | --sh=*)
1004 sharedstatedir=$ac_optarg ;;
1005
1006 -site | --site | --sit)
1007 ac_prev=site ;;
1008 -site=* | --site=* | --sit=*)
1009 site=$ac_optarg ;;
1010
1011 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1012 ac_prev=srcdir ;;
1013 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1014 srcdir=$ac_optarg ;;
1015
1016 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1017 | --syscon | --sysco | --sysc | --sys | --sy)
1018 ac_prev=sysconfdir ;;
1019 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1020 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1021 sysconfdir=$ac_optarg ;;
1022
1023 -target | --target | --targe | --targ | --tar | --ta | --t)
1024 ac_prev=target_alias ;;
1025 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1026 target_alias=$ac_optarg ;;
1027
1028 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1029 verbose=yes ;;
1030
1031 -version | --version | --versio | --versi | --vers | -V)
1032 ac_init_version=: ;;
1033
1034 -with-* | --with-*)
1035 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1036 # Reject names that are not valid shell variable names.
1037 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1038 { echo "$as_me: error: invalid package name: $ac_package" >&2
1039 { (exit 1); exit 1; }; }
1040 ac_package=`echo $ac_package| sed 's/-/_/g'`
1041 eval with_$ac_package=\$ac_optarg ;;
1042
1043 -without-* | --without-*)
1044 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1047 { echo "$as_me: error: invalid package name: $ac_package" >&2
1048 { (exit 1); exit 1; }; }
1049 ac_package=`echo $ac_package | sed 's/-/_/g'`
1050 eval with_$ac_package=no ;;
1051
1052 --x)
1053 # Obsolete; use --with-x.
1054 with_x=yes ;;
1055
1056 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1057 | --x-incl | --x-inc | --x-in | --x-i)
1058 ac_prev=x_includes ;;
1059 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1060 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1061 x_includes=$ac_optarg ;;
1062
1063 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1064 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1065 ac_prev=x_libraries ;;
1066 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1067 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1068 x_libraries=$ac_optarg ;;
1069
1070 -*) { echo "$as_me: error: unrecognized option: $ac_option
1071 Try \`$0 --help' for more information." >&2
1072 { (exit 1); exit 1; }; }
1073 ;;
1074
1075 *=*)
1076 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1079 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1080 { (exit 1); exit 1; }; }
1081 eval $ac_envvar=\$ac_optarg
1082 export $ac_envvar ;;
1083
1084 *)
1085 # FIXME: should be removed in autoconf 3.0.
1086 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1087 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1088 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1089 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1090 ;;
1091
1092 esac
1093 done
1094
1095 if test -n "$ac_prev"; then
1096 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1097 { echo "$as_me: error: missing argument to $ac_option" >&2
1098 { (exit 1); exit 1; }; }
1099 fi
1100
1101 # Be sure to have absolute directory names.
1102 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1103 datadir sysconfdir sharedstatedir localstatedir includedir \
1104 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1105 libdir localedir mandir
1106 do
1107 eval ac_val=\$$ac_var
1108 case $ac_val in
1109 [\\/$]* | ?:[\\/]* ) continue;;
1110 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1111 esac
1112 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1113 { (exit 1); exit 1; }; }
1114 done
1115
1116 # There might be people who depend on the old broken behavior: `$host'
1117 # used to hold the argument of --host etc.
1118 # FIXME: To remove some day.
1119 build=$build_alias
1120 host=$host_alias
1121 target=$target_alias
1122
1123 # FIXME: To remove some day.
1124 if test "x$host_alias" != x; then
1125 if test "x$build_alias" = x; then
1126 cross_compiling=maybe
1127 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1128 If a cross compiler is detected then cross compile mode will be used." >&2
1129 elif test "x$build_alias" != "x$host_alias"; then
1130 cross_compiling=yes
1131 fi
1132 fi
1133
1134 ac_tool_prefix=
1135 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1136
1137 test "$silent" = yes && exec 6>/dev/null
1138
1139
1140 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1141 ac_ls_di=`ls -di .` &&
1142 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1143 { echo "$as_me: error: Working directory cannot be determined" >&2
1144 { (exit 1); exit 1; }; }
1145 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1146 { echo "$as_me: error: pwd does not report name of working directory" >&2
1147 { (exit 1); exit 1; }; }
1148
1149
1150 # Find the source files, if location was not specified.
1151 if test -z "$srcdir"; then
1152 ac_srcdir_defaulted=yes
1153 # Try the directory containing this script, then the parent directory.
1154 ac_confdir=`$as_dirname -- "$0" ||
1155 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1156 X"$0" : 'X\(//\)[^/]' \| \
1157 X"$0" : 'X\(//\)$' \| \
1158 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1159 echo X"$0" |
1160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1161 s//\1/
1162 q
1163 }
1164 /^X\(\/\/\)[^/].*/{
1165 s//\1/
1166 q
1167 }
1168 /^X\(\/\/\)$/{
1169 s//\1/
1170 q
1171 }
1172 /^X\(\/\).*/{
1173 s//\1/
1174 q
1175 }
1176 s/.*/./; q'`
1177 srcdir=$ac_confdir
1178 if test ! -r "$srcdir/$ac_unique_file"; then
1179 srcdir=..
1180 fi
1181 else
1182 ac_srcdir_defaulted=no
1183 fi
1184 if test ! -r "$srcdir/$ac_unique_file"; then
1185 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1186 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1187 { (exit 1); exit 1; }; }
1188 fi
1189 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1190 ac_abs_confdir=`(
1191 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1192 { (exit 1); exit 1; }; }
1193 pwd)`
1194 # When building in place, set srcdir=.
1195 if test "$ac_abs_confdir" = "$ac_pwd"; then
1196 srcdir=.
1197 fi
1198 # Remove unnecessary trailing slashes from srcdir.
1199 # Double slashes in file names in object file debugging info
1200 # mess up M-x gdb in Emacs.
1201 case $srcdir in
1202 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1203 esac
1204 for ac_var in $ac_precious_vars; do
1205 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1206 eval ac_env_${ac_var}_value=\$${ac_var}
1207 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1208 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1209 done
1210
1211 #
1212 # Report the --help message.
1213 #
1214 if test "$ac_init_help" = "long"; then
1215 # Omit some internal or obsolete options to make the list less imposing.
1216 # This message is too long to be a string in the A/UX 3.1 sh.
1217 cat <<_ACEOF
1218 \`configure' configures this package to adapt to many kinds of systems.
1219
1220 Usage: $0 [OPTION]... [VAR=VALUE]...
1221
1222 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1223 VAR=VALUE. See below for descriptions of some of the useful variables.
1224
1225 Defaults for the options are specified in brackets.
1226
1227 Configuration:
1228 -h, --help display this help and exit
1229 --help=short display options specific to this package
1230 --help=recursive display the short help of all the included packages
1231 -V, --version display version information and exit
1232 -q, --quiet, --silent do not print \`checking...' messages
1233 --cache-file=FILE cache test results in FILE [disabled]
1234 -C, --config-cache alias for \`--cache-file=config.cache'
1235 -n, --no-create do not create output files
1236 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1237
1238 Installation directories:
1239 --prefix=PREFIX install architecture-independent files in PREFIX
1240 [$ac_default_prefix]
1241 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1242 [PREFIX]
1243
1244 By default, \`make install' will install all the files in
1245 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1246 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1247 for instance \`--prefix=\$HOME'.
1248
1249 For better control, use the options below.
1250
1251 Fine tuning of the installation directories:
1252 --bindir=DIR user executables [EPREFIX/bin]
1253 --sbindir=DIR system admin executables [EPREFIX/sbin]
1254 --libexecdir=DIR program executables [EPREFIX/libexec]
1255 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1256 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1257 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1258 --libdir=DIR object code libraries [EPREFIX/lib]
1259 --includedir=DIR C header files [PREFIX/include]
1260 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1261 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1262 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1263 --infodir=DIR info documentation [DATAROOTDIR/info]
1264 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1265 --mandir=DIR man documentation [DATAROOTDIR/man]
1266 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1267 --htmldir=DIR html documentation [DOCDIR]
1268 --dvidir=DIR dvi documentation [DOCDIR]
1269 --pdfdir=DIR pdf documentation [DOCDIR]
1270 --psdir=DIR ps documentation [DOCDIR]
1271 _ACEOF
1272
1273 cat <<\_ACEOF
1274
1275 Program names:
1276 --program-prefix=PREFIX prepend PREFIX to installed program names
1277 --program-suffix=SUFFIX append SUFFIX to installed program names
1278 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1279
1280 X features:
1281 --x-includes=DIR X include files are in DIR
1282 --x-libraries=DIR X library files are in DIR
1283
1284 System types:
1285 --build=BUILD configure for building on BUILD [guessed]
1286 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1287 _ACEOF
1288 fi
1289
1290 if test -n "$ac_init_help"; then
1291
1292 cat <<\_ACEOF
1293
1294 Optional Features:
1295 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1296 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1297 --enable-carbon-app[=DIR] [DIR=/Application]
1298 specify install directory for Emacs.app on Mac OS X
1299 --enable-asserts compile code with asserts enabled
1300 --enable-maintainer-mode enable make rules and dependencies not useful
1301 (and sometimes confusing) to the casual installer
1302 --enable-locallisppath=PATH
1303 directories Emacs should search for lisp files
1304 specific to this site
1305 --disable-largefile omit support for large files
1306
1307 Optional Packages:
1308 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1309 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1310 --without-gcc don't use GCC to compile Emacs if GCC is found
1311 --without-pop don't support POP mail retrieval with movemail
1312 --with-kerberos support Kerberos-authenticated POP
1313 --with-kerberos5 support Kerberos version 5 authenticated POP
1314 --with-hesiod support Hesiod to get the POP server host
1315 --without-sound don't compile with sound support
1316 --with-x-toolkit=KIT use an X toolkit
1317 (KIT = yes/lucid/athena/motif/gtk/no)
1318 --with-xpm use -lXpm for displaying XPM images
1319 --with-jpeg use -ljpeg for displaying JPEG images
1320 --with-tiff use -ltiff for displaying TIFF images
1321 --with-gif use -lungif for displaying GIF images
1322 --with-png use -lpng for displaying PNG images
1323 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1324 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1325 --without-toolkit-scroll-bars
1326 don't use Motif or Xaw3d scroll bars
1327 --without-xim don't use X11 XIM
1328 --without-carbon don't use Carbon GUI on Mac OS X
1329 --with-x use the X Window System
1330
1331 Some influential environment variables:
1332 CC C compiler command
1333 CFLAGS C compiler flags
1334 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1335 nonstandard directory <lib dir>
1336 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1337 you have headers in a nonstandard directory <include dir>
1338 CPP C preprocessor
1339 XMKMF Path to xmkmf, Makefile generator for X Window System
1340
1341 Use these variables to override the choices made by `configure' or to help
1342 it to find libraries and programs with nonstandard names/locations.
1343
1344 _ACEOF
1345 ac_status=$?
1346 fi
1347
1348 if test "$ac_init_help" = "recursive"; then
1349 # If there are subdirs, report their specific --help.
1350 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1351 test -d "$ac_dir" || continue
1352 ac_builddir=.
1353
1354 case "$ac_dir" in
1355 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1356 *)
1357 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1358 # A ".." for each directory in $ac_dir_suffix.
1359 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1360 case $ac_top_builddir_sub in
1361 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1362 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1363 esac ;;
1364 esac
1365 ac_abs_top_builddir=$ac_pwd
1366 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1367 # for backward compatibility:
1368 ac_top_builddir=$ac_top_build_prefix
1369
1370 case $srcdir in
1371 .) # We are building in place.
1372 ac_srcdir=.
1373 ac_top_srcdir=$ac_top_builddir_sub
1374 ac_abs_top_srcdir=$ac_pwd ;;
1375 [\\/]* | ?:[\\/]* ) # Absolute name.
1376 ac_srcdir=$srcdir$ac_dir_suffix;
1377 ac_top_srcdir=$srcdir
1378 ac_abs_top_srcdir=$srcdir ;;
1379 *) # Relative name.
1380 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1381 ac_top_srcdir=$ac_top_build_prefix$srcdir
1382 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1383 esac
1384 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1385
1386 cd "$ac_dir" || { ac_status=$?; continue; }
1387 # Check for guested configure.
1388 if test -f "$ac_srcdir/configure.gnu"; then
1389 echo &&
1390 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1391 elif test -f "$ac_srcdir/configure"; then
1392 echo &&
1393 $SHELL "$ac_srcdir/configure" --help=recursive
1394 else
1395 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1396 fi || ac_status=$?
1397 cd "$ac_pwd" || { ac_status=$?; break; }
1398 done
1399 fi
1400
1401 test -n "$ac_init_help" && exit $ac_status
1402 if $ac_init_version; then
1403 cat <<\_ACEOF
1404 configure
1405 generated by GNU Autoconf 2.60
1406
1407 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1408 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1409 This configure script is free software; the Free Software Foundation
1410 gives unlimited permission to copy, distribute and modify it.
1411 _ACEOF
1412 exit
1413 fi
1414 cat >config.log <<_ACEOF
1415 This file contains any messages produced by compilers while
1416 running configure, to aid debugging if configure makes a mistake.
1417
1418 It was created by $as_me, which was
1419 generated by GNU Autoconf 2.60. Invocation command line was
1420
1421 $ $0 $@
1422
1423 _ACEOF
1424 exec 5>>config.log
1425 {
1426 cat <<_ASUNAME
1427 ## --------- ##
1428 ## Platform. ##
1429 ## --------- ##
1430
1431 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1432 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1433 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1434 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1435 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1436
1437 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1438 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1439
1440 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1441 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1442 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1443 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1444 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1445 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1446 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1447
1448 _ASUNAME
1449
1450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1451 for as_dir in $PATH
1452 do
1453 IFS=$as_save_IFS
1454 test -z "$as_dir" && as_dir=.
1455 echo "PATH: $as_dir"
1456 done
1457 IFS=$as_save_IFS
1458
1459 } >&5
1460
1461 cat >&5 <<_ACEOF
1462
1463
1464 ## ----------- ##
1465 ## Core tests. ##
1466 ## ----------- ##
1467
1468 _ACEOF
1469
1470
1471 # Keep a trace of the command line.
1472 # Strip out --no-create and --no-recursion so they do not pile up.
1473 # Strip out --silent because we don't want to record it for future runs.
1474 # Also quote any args containing shell meta-characters.
1475 # Make two passes to allow for proper duplicate-argument suppression.
1476 ac_configure_args=
1477 ac_configure_args0=
1478 ac_configure_args1=
1479 ac_must_keep_next=false
1480 for ac_pass in 1 2
1481 do
1482 for ac_arg
1483 do
1484 case $ac_arg in
1485 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1486 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1487 | -silent | --silent | --silen | --sile | --sil)
1488 continue ;;
1489 *\'*)
1490 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1491 esac
1492 case $ac_pass in
1493 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1494 2)
1495 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1496 if test $ac_must_keep_next = true; then
1497 ac_must_keep_next=false # Got value, back to normal.
1498 else
1499 case $ac_arg in
1500 *=* | --config-cache | -C | -disable-* | --disable-* \
1501 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1502 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1503 | -with-* | --with-* | -without-* | --without-* | --x)
1504 case "$ac_configure_args0 " in
1505 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1506 esac
1507 ;;
1508 -* ) ac_must_keep_next=true ;;
1509 esac
1510 fi
1511 ac_configure_args="$ac_configure_args '$ac_arg'"
1512 ;;
1513 esac
1514 done
1515 done
1516 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1517 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1518
1519 # When interrupted or exit'd, cleanup temporary files, and complete
1520 # config.log. We remove comments because anyway the quotes in there
1521 # would cause problems or look ugly.
1522 # WARNING: Use '\'' to represent an apostrophe within the trap.
1523 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1524 trap 'exit_status=$?
1525 # Save into config.log some information that might help in debugging.
1526 {
1527 echo
1528
1529 cat <<\_ASBOX
1530 ## ---------------- ##
1531 ## Cache variables. ##
1532 ## ---------------- ##
1533 _ASBOX
1534 echo
1535 # The following way of writing the cache mishandles newlines in values,
1536 (
1537 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1538 eval ac_val=\$$ac_var
1539 case $ac_val in #(
1540 *${as_nl}*)
1541 case $ac_var in #(
1542 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1543 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1544 esac
1545 case $ac_var in #(
1546 _ | IFS | as_nl) ;; #(
1547 *) $as_unset $ac_var ;;
1548 esac ;;
1549 esac
1550 done
1551 (set) 2>&1 |
1552 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1553 *${as_nl}ac_space=\ *)
1554 sed -n \
1555 "s/'\''/'\''\\\\'\'''\''/g;
1556 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1557 ;; #(
1558 *)
1559 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1560 ;;
1561 esac |
1562 sort
1563 )
1564 echo
1565
1566 cat <<\_ASBOX
1567 ## ----------------- ##
1568 ## Output variables. ##
1569 ## ----------------- ##
1570 _ASBOX
1571 echo
1572 for ac_var in $ac_subst_vars
1573 do
1574 eval ac_val=\$$ac_var
1575 case $ac_val in
1576 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1577 esac
1578 echo "$ac_var='\''$ac_val'\''"
1579 done | sort
1580 echo
1581
1582 if test -n "$ac_subst_files"; then
1583 cat <<\_ASBOX
1584 ## ------------------- ##
1585 ## File substitutions. ##
1586 ## ------------------- ##
1587 _ASBOX
1588 echo
1589 for ac_var in $ac_subst_files
1590 do
1591 eval ac_val=\$$ac_var
1592 case $ac_val in
1593 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1594 esac
1595 echo "$ac_var='\''$ac_val'\''"
1596 done | sort
1597 echo
1598 fi
1599
1600 if test -s confdefs.h; then
1601 cat <<\_ASBOX
1602 ## ----------- ##
1603 ## confdefs.h. ##
1604 ## ----------- ##
1605 _ASBOX
1606 echo
1607 cat confdefs.h
1608 echo
1609 fi
1610 test "$ac_signal" != 0 &&
1611 echo "$as_me: caught signal $ac_signal"
1612 echo "$as_me: exit $exit_status"
1613 } >&5
1614 rm -f core *.core core.conftest.* &&
1615 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1616 exit $exit_status
1617 ' 0
1618 for ac_signal in 1 2 13 15; do
1619 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1620 done
1621 ac_signal=0
1622
1623 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1624 rm -f -r conftest* confdefs.h
1625
1626 # Predefined preprocessor variables.
1627
1628 cat >>confdefs.h <<_ACEOF
1629 #define PACKAGE_NAME "$PACKAGE_NAME"
1630 _ACEOF
1631
1632
1633 cat >>confdefs.h <<_ACEOF
1634 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1635 _ACEOF
1636
1637
1638 cat >>confdefs.h <<_ACEOF
1639 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1640 _ACEOF
1641
1642
1643 cat >>confdefs.h <<_ACEOF
1644 #define PACKAGE_STRING "$PACKAGE_STRING"
1645 _ACEOF
1646
1647
1648 cat >>confdefs.h <<_ACEOF
1649 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1650 _ACEOF
1651
1652
1653 # Let the site file select an alternate cache file if it wants to.
1654 # Prefer explicitly selected file to automatically selected ones.
1655 if test -n "$CONFIG_SITE"; then
1656 set x "$CONFIG_SITE"
1657 elif test "x$prefix" != xNONE; then
1658 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1659 else
1660 set x "$ac_default_prefix/share/config.site" \
1661 "$ac_default_prefix/etc/config.site"
1662 fi
1663 shift
1664 for ac_site_file
1665 do
1666 if test -r "$ac_site_file"; then
1667 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1668 echo "$as_me: loading site script $ac_site_file" >&6;}
1669 sed 's/^/| /' "$ac_site_file" >&5
1670 . "$ac_site_file"
1671 fi
1672 done
1673
1674 if test -r "$cache_file"; then
1675 # Some versions of bash will fail to source /dev/null (special
1676 # files actually), so we avoid doing that.
1677 if test -f "$cache_file"; then
1678 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1679 echo "$as_me: loading cache $cache_file" >&6;}
1680 case $cache_file in
1681 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1682 *) . "./$cache_file";;
1683 esac
1684 fi
1685 else
1686 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1687 echo "$as_me: creating cache $cache_file" >&6;}
1688 >$cache_file
1689 fi
1690
1691 # Check that the precious variables saved in the cache have kept the same
1692 # value.
1693 ac_cache_corrupted=false
1694 for ac_var in $ac_precious_vars; do
1695 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1696 eval ac_new_set=\$ac_env_${ac_var}_set
1697 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1698 eval ac_new_val=\$ac_env_${ac_var}_value
1699 case $ac_old_set,$ac_new_set in
1700 set,)
1701 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1702 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1703 ac_cache_corrupted=: ;;
1704 ,set)
1705 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1706 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1707 ac_cache_corrupted=: ;;
1708 ,);;
1709 *)
1710 if test "x$ac_old_val" != "x$ac_new_val"; then
1711 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1712 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1713 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1714 echo "$as_me: former value: $ac_old_val" >&2;}
1715 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1716 echo "$as_me: current value: $ac_new_val" >&2;}
1717 ac_cache_corrupted=:
1718 fi;;
1719 esac
1720 # Pass precious variables to config.status.
1721 if test "$ac_new_set" = set; then
1722 case $ac_new_val in
1723 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1724 *) ac_arg=$ac_var=$ac_new_val ;;
1725 esac
1726 case " $ac_configure_args " in
1727 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1728 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1729 esac
1730 fi
1731 done
1732 if $ac_cache_corrupted; then
1733 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1734 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1735 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1736 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1737 { (exit 1); exit 1; }; }
1738 fi
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756 ac_ext=c
1757 ac_cpp='$CPP $CPPFLAGS'
1758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1761
1762
1763 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1764
1765
1766 test "$program_prefix" != NONE &&
1767 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1768 # Use a double $ so make ignores it.
1769 test "$program_suffix" != NONE &&
1770 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1771 # Double any \ or $. echo might interpret backslashes.
1772 # By default was `s,x,x', remove it if useless.
1773 cat <<\_ACEOF >conftest.sed
1774 s/[\\$]/&&/g;s/;s,x,x,$//
1775 _ACEOF
1776 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1777 rm -f conftest.sed
1778
1779
1780 lispdir='${datadir}/emacs/${version}/lisp'
1781 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1782 '${datadir}/emacs/site-lisp'
1783 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1784 etcdir='${datadir}/emacs/${version}/etc'
1785 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1786 docdir='${datadir}/emacs/${version}/etc'
1787 gamedir='${localstatedir}/games/emacs'
1788
1789 gameuser=games
1790
1791
1792 # Check whether --with-gcc was given.
1793 if test "${with_gcc+set}" = set; then
1794 withval=$with_gcc;
1795 fi
1796
1797
1798 # Check whether --with-pop was given.
1799 if test "${with_pop+set}" = set; then
1800 withval=$with_pop; if test "$withval" = yes; then
1801 cat >>confdefs.h <<\_ACEOF
1802 #define MAIL_USE_POP 1
1803 _ACEOF
1804
1805 else :
1806 fi
1807 else
1808 cat >>confdefs.h <<\_ACEOF
1809 #define MAIL_USE_POP 1
1810 _ACEOF
1811
1812 fi
1813
1814
1815
1816 # Check whether --with-kerberos was given.
1817 if test "${with_kerberos+set}" = set; then
1818 withval=$with_kerberos; cat >>confdefs.h <<\_ACEOF
1819 #define KERBEROS 1
1820 _ACEOF
1821
1822 fi
1823
1824
1825
1826 # Check whether --with-kerberos5 was given.
1827 if test "${with_kerberos5+set}" = set; then
1828 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1829 if test "${with_kerberos+set}" != set; then
1830 with_kerberos=yes
1831 cat >>confdefs.h <<\_ACEOF
1832 #define KERBEROS 1
1833 _ACEOF
1834
1835 fi
1836 fi
1837
1838 cat >>confdefs.h <<\_ACEOF
1839 #define KERBEROS5 1
1840 _ACEOF
1841
1842 fi
1843
1844
1845 # Check whether --with-hesiod was given.
1846 if test "${with_hesiod+set}" = set; then
1847 withval=$with_hesiod;
1848 cat >>confdefs.h <<\_ACEOF
1849 #define HESIOD 1
1850 _ACEOF
1851
1852 fi
1853
1854
1855
1856 # Check whether --with-sound was given.
1857 if test "${with_sound+set}" = set; then
1858 withval=$with_sound;
1859 fi
1860
1861
1862
1863 # Check whether --with-x-toolkit was given.
1864 if test "${with_x_toolkit+set}" = set; then
1865 withval=$with_x_toolkit; case "${withval}" in
1866 y | ye | yes ) val=athena ;;
1867 n | no ) val=no ;;
1868 l | lu | luc | luci | lucid ) val=lucid ;;
1869 a | at | ath | athe | athen | athena ) val=athena ;;
1870 m | mo | mot | moti | motif ) val=motif ;;
1871 g | gt | gtk ) val=gtk ;;
1872 * )
1873 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1874 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1875 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1876 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1877 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1878 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1879 { (exit 1); exit 1; }; }
1880 ;;
1881 esac
1882 with_x_toolkit=$val
1883
1884 fi
1885
1886
1887 # Check whether --with-xpm was given.
1888 if test "${with_xpm+set}" = set; then
1889 withval=$with_xpm;
1890 fi
1891
1892
1893 # Check whether --with-jpeg was given.
1894 if test "${with_jpeg+set}" = set; then
1895 withval=$with_jpeg;
1896 fi
1897
1898
1899 # Check whether --with-tiff was given.
1900 if test "${with_tiff+set}" = set; then
1901 withval=$with_tiff;
1902 fi
1903
1904
1905 # Check whether --with-gif was given.
1906 if test "${with_gif+set}" = set; then
1907 withval=$with_gif;
1908 fi
1909
1910
1911 # Check whether --with-png was given.
1912 if test "${with_png+set}" = set; then
1913 withval=$with_png;
1914 fi
1915
1916
1917 # Check whether --with-gtk was given.
1918 if test "${with_gtk+set}" = set; then
1919 withval=$with_gtk;
1920 fi
1921
1922
1923 # Check whether --with-pkg-config-prog was given.
1924 if test "${with_pkg_config_prog+set}" = set; then
1925 withval=$with_pkg_config_prog;
1926 fi
1927
1928
1929 # Check whether --with-toolkit-scroll-bars was given.
1930 if test "${with_toolkit_scroll_bars+set}" = set; then
1931 withval=$with_toolkit_scroll_bars;
1932 fi
1933
1934
1935 # Check whether --with-xim was given.
1936 if test "${with_xim+set}" = set; then
1937 withval=$with_xim;
1938 fi
1939
1940
1941 # Check whether --with-carbon was given.
1942 if test "${with_carbon+set}" = set; then
1943 withval=$with_carbon;
1944 fi
1945
1946 # Check whether --enable-carbon-app was given.
1947 if test "${enable_carbon_app+set}" = set; then
1948 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1949 fi
1950
1951
1952 # Check whether --enable-asserts was given.
1953 if test "${enable_asserts+set}" = set; then
1954 enableval=$enable_asserts; USE_XASSERTS=$enableval
1955 else
1956 USE_XASSERTS=no
1957 fi
1958
1959
1960 # Check whether --enable-maintainer-mode was given.
1961 if test "${enable_maintainer_mode+set}" = set; then
1962 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1963 else
1964 USE_MAINTAINER_MODE=no
1965 fi
1966
1967 if test $USE_MAINTAINER_MODE = yes; then
1968 MAINT=
1969 else
1970 MAINT=#
1971 fi
1972
1973
1974 # Check whether --enable-locallisppath was given.
1975 if test "${enable_locallisppath+set}" = set; then
1976 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
1977 locallisppath=
1978 elif test "${enableval}" != "yes"; then
1979 locallisppath=${enableval}
1980 fi
1981 fi
1982
1983
1984 #### Make srcdir absolute, if it isn't already. It's important to
1985 #### avoid running the path through pwd unnecessarily, since pwd can
1986 #### give you automounter prefixes, which can go away. We do all this
1987 #### so Emacs can find its files when run uninstalled.
1988 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1989 unset CDPATH
1990 case "${srcdir}" in
1991 /* ) ;;
1992 . )
1993 ## We may be able to use the $PWD environment variable to make this
1994 ## absolute. But sometimes PWD is inaccurate.
1995 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1996 ## but that tested only for a well-formed and valid PWD,
1997 ## it did not object when PWD was well-formed and valid but just wrong.
1998 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1999 then
2000 srcdir="$PWD"
2001 else
2002 srcdir="`(cd ${srcdir}; pwd)`"
2003 fi
2004 ;;
2005 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2006 esac
2007
2008 #### Check if the source directory already has a configured system in it.
2009 if test `pwd` != `(cd ${srcdir} && pwd)` \
2010 && test -f "${srcdir}/src/config.h" ; then
2011 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2012 as a build directory right now; it has been configured in its own
2013 right. To configure in another directory as well, you MUST
2014 use GNU make. If you do not have GNU make, then you must
2015 now do \`make distclean' in ${srcdir},
2016 and then run $0 again." >&5
2017 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2018 as a build directory right now; it has been configured in its own
2019 right. To configure in another directory as well, you MUST
2020 use GNU make. If you do not have GNU make, then you must
2021 now do \`make distclean' in ${srcdir},
2022 and then run $0 again." >&2;}
2023 fi
2024
2025 #### Given the configuration name, set machfile and opsysfile to the
2026 #### names of the m/*.h and s/*.h files we should use.
2027
2028 ### Canonicalize the configuration name.
2029
2030 ac_aux_dir=
2031 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2032 if test -f "$ac_dir/install-sh"; then
2033 ac_aux_dir=$ac_dir
2034 ac_install_sh="$ac_aux_dir/install-sh -c"
2035 break
2036 elif test -f "$ac_dir/install.sh"; then
2037 ac_aux_dir=$ac_dir
2038 ac_install_sh="$ac_aux_dir/install.sh -c"
2039 break
2040 elif test -f "$ac_dir/shtool"; then
2041 ac_aux_dir=$ac_dir
2042 ac_install_sh="$ac_aux_dir/shtool install -c"
2043 break
2044 fi
2045 done
2046 if test -z "$ac_aux_dir"; then
2047 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2048 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2049 { (exit 1); exit 1; }; }
2050 fi
2051
2052 # These three variables are undocumented and unsupported,
2053 # and are intended to be withdrawn in a future Autoconf release.
2054 # They can cause serious problems if a builder's source tree is in a directory
2055 # whose full name contains unusual characters.
2056 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2057 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2058 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2059
2060
2061 # Make sure we can run config.sub.
2062 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2063 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2064 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2065 { (exit 1); exit 1; }; }
2066
2067 { echo "$as_me:$LINENO: checking build system type" >&5
2068 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2069 if test "${ac_cv_build+set}" = set; then
2070 echo $ECHO_N "(cached) $ECHO_C" >&6
2071 else
2072 ac_build_alias=$build_alias
2073 test "x$ac_build_alias" = x &&
2074 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2075 test "x$ac_build_alias" = x &&
2076 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2077 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2078 { (exit 1); exit 1; }; }
2079 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2080 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2081 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2082 { (exit 1); exit 1; }; }
2083
2084 fi
2085 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2086 echo "${ECHO_T}$ac_cv_build" >&6; }
2087 case $ac_cv_build in
2088 *-*-*) ;;
2089 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2090 echo "$as_me: error: invalid value of canonical build" >&2;}
2091 { (exit 1); exit 1; }; };;
2092 esac
2093 build=$ac_cv_build
2094 ac_save_IFS=$IFS; IFS='-'
2095 set x $ac_cv_build
2096 shift
2097 build_cpu=$1
2098 build_vendor=$2
2099 shift; shift
2100 # Remember, the first character of IFS is used to create $*,
2101 # except with old shells:
2102 build_os=$*
2103 IFS=$ac_save_IFS
2104 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2105
2106
2107 { echo "$as_me:$LINENO: checking host system type" >&5
2108 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2109 if test "${ac_cv_host+set}" = set; then
2110 echo $ECHO_N "(cached) $ECHO_C" >&6
2111 else
2112 if test "x$host_alias" = x; then
2113 ac_cv_host=$ac_cv_build
2114 else
2115 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2116 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2117 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2118 { (exit 1); exit 1; }; }
2119 fi
2120
2121 fi
2122 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2123 echo "${ECHO_T}$ac_cv_host" >&6; }
2124 case $ac_cv_host in
2125 *-*-*) ;;
2126 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2127 echo "$as_me: error: invalid value of canonical host" >&2;}
2128 { (exit 1); exit 1; }; };;
2129 esac
2130 host=$ac_cv_host
2131 ac_save_IFS=$IFS; IFS='-'
2132 set x $ac_cv_host
2133 shift
2134 host_cpu=$1
2135 host_vendor=$2
2136 shift; shift
2137 # Remember, the first character of IFS is used to create $*,
2138 # except with old shells:
2139 host_os=$*
2140 IFS=$ac_save_IFS
2141 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2142
2143
2144 canonical=$host
2145 configuration=${host_alias-$host}
2146
2147
2148
2149 ### If you add support for a new configuration, add code to this
2150 ### switch statement to recognize your configuration name and select
2151 ### the appropriate operating system and machine description files.
2152
2153 ### You would hope that you could choose an m/*.h file pretty much
2154 ### based on the machine portion of the configuration name, and an s-
2155 ### file based on the operating system portion. However, it turns out
2156 ### that each m/*.h file is pretty manufacturer-specific - for
2157 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2158 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2159 ### machines. So we basically have to have a special case for each
2160 ### configuration name.
2161 ###
2162 ### As far as handling version numbers on operating systems is
2163 ### concerned, make sure things will fail in a fixable way. If
2164 ### /etc/MACHINES doesn't say anything about version numbers, be
2165 ### prepared to handle anything reasonably. If version numbers
2166 ### matter, be sure /etc/MACHINES says something about it.
2167 ###
2168 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2169 ### "System V Release 4"; he writes, "The old convention encouraged
2170 ### confusion between `system' and `release' levels'."
2171
2172 machine='' opsys='' unported=no
2173 case "${canonical}" in
2174
2175 ## FreeBSD ports
2176 *-*-freebsd* )
2177 opsys=freebsd
2178 case "${canonical}" in
2179 alpha*-*-freebsd*) machine=alpha ;;
2180 ia64-*-freebsd*) machine=ia64 ;;
2181 sparc64-*-freebsd*) machine=sparc ;;
2182 powerpc-*-freebsd*) machine=macppc ;;
2183 i[3456]86-*-freebsd*) machine=intel386 ;;
2184 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2185 esac
2186 ;;
2187
2188 ## NetBSD ports
2189 *-*-netbsd* )
2190 opsys=netbsd
2191 if test -f /usr/lib/crti.o; then
2192
2193 cat >>confdefs.h <<\_ACEOF
2194 #define HAVE_CRTIN
2195 _ACEOF
2196
2197 fi
2198
2199 case "${canonical}" in
2200 alpha*-*-netbsd*) machine=alpha ;;
2201 i[3456]86-*-netbsd*) machine=intel386 ;;
2202 m68k-*-netbsd*)
2203 # This is somewhat bogus.
2204 machine=hp9000s300 ;;
2205 powerpc-apple-netbsd*) machine=macppc ;;
2206 mips-*-netbsd*) machine=pmax ;;
2207 mipsel-*-netbsd*) machine=pmax ;;
2208 mipseb-*-netbsd*) machine=pmax ;;
2209 ns32k-*-netbsd*) machine=ns32000 ;;
2210 powerpc-*-netbsd*) machine=macppc ;;
2211 sparc*-*-netbsd*) machine=sparc ;;
2212 vax-*-netbsd*) machine=vax ;;
2213 arm-*-netbsd*) machine=arm ;;
2214 esac
2215 ;;
2216
2217 ## OpenBSD ports
2218 *-*-openbsd* )
2219 opsys=openbsd
2220 case "${canonical}" in
2221 alpha*-*-openbsd*) machine=alpha ;;
2222 i386-*-openbsd*) machine=intel386 ;;
2223 x86_64-*-openbsd*) machine=amdx86-64 ;;
2224 m68k-*-openbsd*) machine=hp9000s300 ;;
2225 mipsel-*-openbsd*) machine=pmax ;;
2226 ns32k-*-openbsd*) machine=ns32000 ;;
2227 sparc-*-openbsd*) machine=sparc ;;
2228 vax-*-openbsd*) machine=vax ;;
2229 esac
2230 ;;
2231
2232 ## LynxOS ports
2233 *-*-lynxos* )
2234 opsys=lynxos
2235 case "${canonical}" in
2236 i[3456]86-*-lynxos*) machine=intel386 ;;
2237 powerpc-*-lynxos*) machine=powerpc ;;
2238 esac
2239 ;;
2240
2241 ## Acorn RISCiX:
2242 arm-acorn-riscix1.1* )
2243 machine=acorn opsys=riscix1-1
2244 ;;
2245 arm-acorn-riscix1.2* | arm-acorn-riscix )
2246 ## This name is riscix12 instead of riscix1.2
2247 ## to avoid a file name conflict on MSDOS.
2248 machine=acorn opsys=riscix12
2249 ;;
2250
2251 ## BSDI ports
2252 *-*-bsdi* )
2253 opsys=bsdi
2254 case "${canonical}" in
2255 i[345]86-*-bsdi*) machine=intel386 ;;
2256 sparc-*-bsdi*) machine=sparc ;;
2257 powerpc-*-bsdi*) machine=macppc ;;
2258 esac
2259 case "${canonical}" in
2260 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2261 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2262 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2263 *-*-bsdi3* ) opsys=bsdos3 ;;
2264 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2265 esac
2266 ;;
2267
2268 ## Alliant machines
2269 ## Strictly speaking, we need the version of the alliant operating
2270 ## system to choose the right machine file, but currently the
2271 ## configuration name doesn't tell us enough to choose the right
2272 ## one; we need to give alliants their own operating system name to
2273 ## do this right. When someone cares, they can help us.
2274 fx80-alliant-* )
2275 machine=alliant4 opsys=bsd4-2
2276 ;;
2277 i860-alliant-* )
2278 machine=alliant-2800 opsys=bsd4-3
2279 ;;
2280
2281 ## Alpha (DEC) machines.
2282 alpha*-dec-osf* )
2283 machine=alpha opsys=osf1
2284 # This is needed to find X11R6.1 libraries for certain tests.
2285 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2286 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2287 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2288 # due to non-traditional preprocessing with the current compiler
2289 # defaults. OSF 4 can also have that compiler version, and there
2290 # seems always to have been a usable /usr/bin/cpp.
2291 NON_GNU_CPP=/usr/bin/cpp
2292 case "${canonical}" in
2293 alpha*-dec-osf[5-9]*)
2294 opsys=osf5-0 ;;
2295 esac
2296 ;;
2297
2298 alpha*-*-linux-gnu* )
2299 machine=alpha opsys=gnu-linux
2300 ;;
2301
2302 arm*-*-linux-gnu* )
2303 machine=arm opsys=gnu-linux
2304 ;;
2305
2306 ## Altos 3068
2307 m68*-altos-sysv* )
2308 machine=altos opsys=usg5-2
2309 ;;
2310
2311 ## Amdahl UTS
2312 580-amdahl-sysv* )
2313 machine=amdahl opsys=usg5-2-2
2314 ;;
2315
2316 ## Apollo, Domain/OS
2317 m68*-apollo-* )
2318 machine=apollo opsys=bsd4-3
2319 ;;
2320
2321 ## AT&T 3b2, 3b5, 3b15, 3b20
2322 we32k-att-sysv* )
2323 machine=att3b opsys=usg5-2-2
2324 ;;
2325
2326 ## AT&T 3b1 - The Mighty Unix PC!
2327 m68*-att-sysv* )
2328 machine=7300 opsys=usg5-2-2
2329 ;;
2330
2331 ## Bull dpx20
2332 rs6000-bull-bosx* )
2333 machine=ibmrs6000 opsys=aix3-2
2334 ;;
2335
2336 ## Bull dpx2
2337 m68*-bull-sysv3* )
2338 machine=dpx2 opsys=usg5-3
2339 ;;
2340
2341 ## Bull sps7
2342 m68*-bull-sysv2* )
2343 machine=sps7 opsys=usg5-2
2344 ;;
2345
2346 ## CCI 5/32, 6/32 -- see "Tahoe".
2347
2348 ## Celerity
2349 ## I don't know what configuration name to use for this; config.sub
2350 ## doesn't seem to know anything about it. Hey, Celerity users, get
2351 ## in touch with us!
2352 celerity-celerity-bsd* )
2353 machine=celerity opsys=bsd4-2
2354 ;;
2355
2356 ## Clipper
2357 ## What operating systems does this chip run that Emacs has been
2358 ## tested on?
2359 clipper-* )
2360 machine=clipper
2361 ## We'll use the catch-all code at the bottom to guess the
2362 ## operating system.
2363 ;;
2364
2365 ## Compaq Nonstop
2366 mips-compaq-nonstopux* )
2367 machine=nonstopux opsys=nonstopux
2368 ;;
2369
2370 ## Convex
2371 *-convex-bsd* | *-convex-convexos* )
2372 machine=convex opsys=bsd4-3
2373 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2374 NON_GNU_CPP="cc -E -P"
2375 ;;
2376
2377 ## Cubix QBx/386
2378 i[3456]86-cubix-sysv* )
2379 machine=intel386 opsys=usg5-3
2380 ;;
2381
2382 ## Cydra 5
2383 cydra*-cydrome-sysv* )
2384 machine=cydra5 opsys=usg5-3
2385 ;;
2386
2387 ## Data General AViiON Machines
2388 ## DG changed naming conventions with the release of 5.4.4.10, they
2389 ## dropped the initial 5.4 but left the intervening R. Because of the
2390 ## R this shouldn't conflict with older versions of the OS (which I
2391 ## think were named like dgux4.*). In addition, DG new AViiONs series
2392 ## uses either Motorola M88k or Intel Pentium CPUs.
2393 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
2394 machine=aviion opsys=dgux4
2395 ;;
2396 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
2397 ## This name is dgux5-4-3 instead of dgux5-4r3
2398 ## to avoid a file name conflict on MSDOS.
2399 machine=aviion opsys=dgux5-4-3
2400 ;;
2401 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
2402 machine=aviion opsys=dgux5-4r2
2403 ;;
2404 m88k-dg-dgux* )
2405 machine=aviion opsys=dgux
2406 ;;
2407
2408 ## Data General AViiON Intel (x86) Machines
2409 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2410 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2411 i[345]86-dg-dguxR4* )
2412 machine=aviion-intel opsys=dgux4
2413 ;;
2414
2415 ## DECstations
2416 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2417 machine=pmax opsys=bsd4-2
2418 ;;
2419 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2420 machine=pmax opsys=bsd4-3
2421 ;;
2422 mips-dec-ultrix* )
2423 machine=pmax opsys=ultrix4-3
2424 ;;
2425 mips-dec-osf* )
2426 machine=pmax opsys=osf1
2427 ;;
2428 mips-dec-mach_bsd4.3* )
2429 machine=pmax opsys=mach-bsd4-3
2430 ;;
2431
2432 ## Motorola Delta machines
2433 m68k-motorola-sysv* | m68000-motorola-sysv* )
2434 machine=delta opsys=usg5-3
2435 if test -z "`type gnucc | grep 'not found'`"
2436 then
2437 if test -s /etc/167config
2438 then CC="gnucc -m68040"
2439 else CC="gnucc -m68881"
2440 fi
2441 else
2442 if test -z "`type gcc | grep 'not found'`"
2443 then CC=gcc
2444 else CC=cc
2445 fi
2446 fi
2447 ;;
2448 m88k-motorola-sysv4* )
2449 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2450 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2451 # I hope there are not other 4.0 versions for this machine
2452 # which really need usg5-4 instead.
2453 machine=delta88k opsys=usg5-4-2
2454 ;;
2455 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2456 machine=delta88k opsys=usg5-3
2457 ;;
2458
2459 ## Dual machines
2460 m68*-dual-sysv* )
2461 machine=dual opsys=usg5-2
2462 ;;
2463 m68*-dual-uniplus* )
2464 machine=dual opsys=unipl5-2
2465 ;;
2466
2467 ## Elxsi 6400
2468 elxsi-elxsi-sysv* )
2469 machine=elxsi opsys=usg5-2
2470 ;;
2471
2472 ## Encore machines
2473 ns16k-encore-bsd* )
2474 machine=ns16000 opsys=umax
2475 ;;
2476
2477 ## The GEC 63 - apparently, this port isn't really finished yet.
2478 # I'm sure we finished off the last of the machines, though. -- fx
2479
2480 ## Gould Power Node and NP1
2481 pn-gould-bsd4.2* )
2482 machine=gould opsys=bsd4-2
2483 ;;
2484 pn-gould-bsd4.3* )
2485 machine=gould opsys=bsd4-3
2486 ;;
2487 np1-gould-bsd* )
2488 machine=gould-np1 opsys=bsd4-3
2489 ;;
2490
2491 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2492 ## as far as Emacs is concerned).
2493 m88k-harris-cxux* )
2494 # Build needs to be different on 7.0 and later releases
2495 case "`uname -r`" in
2496 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2497 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2498 esac
2499 NON_GNU_CPP="/lib/cpp"
2500 ;;
2501 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2502 m68k-harris-cxux* )
2503 machine=nh3000 opsys=cxux
2504 ;;
2505 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2506 powerpc-harris-powerunix )
2507 machine=nh6000 opsys=powerunix
2508 NON_GNU_CPP="cc -Xo -E -P"
2509 ;;
2510 ## SR2001/SR2201 running HI-UX/MPP
2511 hppa1.1-hitachi-hiuxmpp* )
2512 machine=sr2k opsys=hiuxmpp
2513 ;;
2514 hppa1.1-hitachi-hiuxwe2* )
2515 machine=sr2k opsys=hiuxwe2
2516 ;;
2517 ## Honeywell XPS100
2518 xps*-honeywell-sysv* )
2519 machine=xps100 opsys=usg5-2
2520 ;;
2521
2522 ## HP 9000 series 200 or 300
2523 m68*-hp-bsd* )
2524 machine=hp9000s300 opsys=bsd4-3
2525 ;;
2526 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2527 m68*-hp-hpux* )
2528 case "`uname -r`" in
2529 ## Someone's system reports A.B8.05 for this.
2530 ## I wonder what other possibilities there are.
2531 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2532 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2533 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2534 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2535 *) machine=hp9000s300 opsys=hpux ;;
2536 esac
2537 ;;
2538
2539 ## HP 9000 series 700 and 800, running HP/UX
2540 hppa*-hp-hpux7* )
2541 machine=hp800 opsys=hpux
2542 ;;
2543 hppa*-hp-hpux8* )
2544 machine=hp800 opsys=hpux8
2545 ;;
2546 hppa*-hp-hpux9shr* )
2547 machine=hp800 opsys=hpux9shr
2548 ;;
2549 hppa*-hp-hpux9* )
2550 machine=hp800 opsys=hpux9
2551 ;;
2552 hppa*-hp-hpux10.2* )
2553 machine=hp800 opsys=hpux10-20
2554 ;;
2555 hppa*-hp-hpux10* )
2556 machine=hp800 opsys=hpux10
2557 ;;
2558 hppa*-hp-hpux1[1-9]* )
2559 machine=hp800 opsys=hpux11
2560 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2561 ;;
2562
2563 hppa*-*-linux-gnu* )
2564 machine=hp800 opsys=gnu-linux
2565 ;;
2566
2567 ## HP 9000 series 700 and 800, running HP/UX
2568 hppa*-hp-hpux* )
2569 ## Cross-compilation? Nah!
2570 case "`uname -r`" in
2571 ## Someone's system reports A.B8.05 for this.
2572 ## I wonder what other possibilities there are.
2573 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2574 *.08.* ) machine=hp800 opsys=hpux8 ;;
2575 *.09.* ) machine=hp800 opsys=hpux9 ;;
2576 *) machine=hp800 opsys=hpux10 ;;
2577 esac
2578 ;;
2579 hppa*-*-nextstep* )
2580 machine=hp800 opsys=nextstep
2581 ;;
2582
2583 ## Orion machines
2584 orion-orion-bsd* )
2585 machine=orion opsys=bsd4-2
2586 ;;
2587 clipper-orion-bsd* )
2588 machine=orion105 opsys=bsd4-2
2589 ;;
2590
2591 ## IBM machines
2592 i[3456]86-ibm-aix1.1* )
2593 machine=ibmps2-aix opsys=usg5-2-2
2594 ;;
2595 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2596 machine=ibmps2-aix opsys=usg5-3
2597 ;;
2598 i370-ibm-aix*)
2599 machine=ibm370aix opsys=usg5-3
2600 ;;
2601 s390-*-linux-gnu* )
2602 machine=ibms390 opsys=gnu-linux
2603 ;;
2604 s390x-*-linux-gnu* )
2605 machine=ibms390x opsys=gnu-linux
2606 ;;
2607 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2608 machine=ibmrs6000 opsys=aix3-1
2609 ;;
2610 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2611 machine=ibmrs6000 opsys=aix3-2-5
2612 ;;
2613 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2614 machine=ibmrs6000 opsys=aix4-1
2615 ;;
2616 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2617 machine=ibmrs6000 opsys=aix4-2
2618 ;;
2619 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2620 machine=ibmrs6000 opsys=aix4-2
2621 ;;
2622 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2623 machine=ibmrs6000 opsys=aix4
2624 ;;
2625 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2626 machine=ibmrs6000 opsys=aix4-1
2627 ;;
2628 rs6000-ibm-aix* | powerpc-ibm-aix* )
2629 machine=ibmrs6000 opsys=aix3-2
2630 ;;
2631 romp-ibm-bsd4.3* )
2632 machine=ibmrt opsys=bsd4-3
2633 ;;
2634 romp-ibm-bsd4.2* )
2635 machine=ibmrt opsys=bsd4-2
2636 ;;
2637 romp-ibm-aos4.3* )
2638 machine=ibmrt opsys=bsd4-3
2639 ;;
2640 romp-ibm-aos4.2* )
2641 machine=ibmrt opsys=bsd4-2
2642 ;;
2643 romp-ibm-aos* )
2644 machine=ibmrt opsys=bsd4-3
2645 ;;
2646 romp-ibm-bsd* )
2647 machine=ibmrt opsys=bsd4-3
2648 ;;
2649 romp-ibm-aix* )
2650 machine=ibmrt-aix opsys=usg5-2-2
2651 ;;
2652
2653 ## Integrated Solutions `Optimum V'
2654 m68*-isi-bsd4.2* )
2655 machine=isi-ov opsys=bsd4-2
2656 ;;
2657 m68*-isi-bsd4.3* )
2658 machine=isi-ov opsys=bsd4-3
2659 ;;
2660
2661 ## Intel 386 machines where we do care about the manufacturer
2662 i[3456]86-intsys-sysv* )
2663 machine=is386 opsys=usg5-2-2
2664 ;;
2665
2666 ## Prime EXL
2667 i[3456]86-prime-sysv* )
2668 machine=i386 opsys=usg5-3
2669 ;;
2670
2671 ## Sequent Symmetry running Dynix
2672 i[3456]86-sequent-bsd* )
2673 machine=symmetry opsys=bsd4-3
2674 ;;
2675
2676 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2677 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2678 machine=sequent-ptx opsys=ptx4
2679 NON_GNU_CPP=/lib/cpp
2680 ;;
2681
2682 ## Sequent Symmetry running DYNIX/ptx
2683 ## Use the old cpp rather than the newer ANSI one.
2684 i[3456]86-sequent-ptx* )
2685 machine=sequent-ptx opsys=ptx
2686 NON_GNU_CPP="/lib/cpp"
2687 ;;
2688
2689 ## ncr machine running svr4.3.
2690 i[3456]86-ncr-sysv4.3 )
2691 machine=ncr386 opsys=usg5-4-3
2692 ;;
2693
2694 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2695 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2696 i[3456]86-ncr-sysv* )
2697 machine=ncr386 opsys=usg5-4-2
2698 ;;
2699
2700 ## Intel Paragon OSF/1
2701 i860-intel-osf1* )
2702 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2703 ;;
2704
2705 ## Intel 860
2706 i860-*-sysv4* )
2707 machine=i860 opsys=usg5-4
2708 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2709 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2710 ;;
2711
2712 ## Macintosh PowerPC
2713 powerpc*-*-linux-gnu* )
2714 machine=macppc opsys=gnu-linux
2715 ;;
2716
2717 ## Masscomp machines
2718 m68*-masscomp-rtu* )
2719 machine=masscomp opsys=rtu
2720 ;;
2721
2722 ## Megatest machines
2723 m68*-megatest-bsd* )
2724 machine=mega68 opsys=bsd4-2
2725 ;;
2726
2727 ## Workstations sold by MIPS
2728 ## This is not necessarily all workstations using the MIPS processor -
2729 ## Irises are produced by SGI, and DECstations by DEC.
2730
2731 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2732 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2733 ## it gives for choosing between the alternatives seems to be "Use
2734 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2735 ## the BSD world." I'll assume that these are instructions for
2736 ## handling two odd situations, and that every other situation
2737 ## should use mips.h and usg5-2-2, they being listed first.
2738 mips-mips-usg* )
2739 machine=mips4
2740 ## Fall through to the general code at the bottom to decide on the OS.
2741 ;;
2742 mips-mips-riscos4* )
2743 machine=mips4 opsys=bsd4-3
2744 NON_GNU_CC="cc -systype bsd43"
2745 NON_GNU_CPP="cc -systype bsd43 -E"
2746 ;;
2747 mips-mips-riscos5* )
2748 machine=mips4 opsys=riscos5
2749 NON_GNU_CC="cc -systype bsd43"
2750 NON_GNU_CPP="cc -systype bsd43 -E"
2751 ;;
2752 mips-mips-bsd* )
2753 machine=mips opsys=bsd4-3
2754 ;;
2755 mips-mips-* )
2756 machine=mips opsys=usg5-2-2
2757 ;;
2758
2759 ## NeXT
2760 m68*-next-* | m68k-*-nextstep* )
2761 machine=m68k opsys=nextstep
2762 ;;
2763
2764 ## The complete machine from National Semiconductor
2765 ns32k-ns-genix* )
2766 machine=ns32000 opsys=usg5-2
2767 ;;
2768
2769 ## NCR machines
2770 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2771 machine=tower32 opsys=usg5-2-2
2772 ;;
2773 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2774 machine=tower32v3 opsys=usg5-3
2775 ;;
2776
2777 ## NEC EWS4800
2778 mips-nec-sysv4*)
2779 machine=ews4800 opsys=ux4800
2780 ;;
2781
2782 ## Nixdorf Targon 31
2783 m68*-nixdorf-sysv* )
2784 machine=targon31 opsys=usg5-2-2
2785 ;;
2786
2787 ## Nu (TI or LMI)
2788 m68*-nu-sysv* )
2789 machine=nu opsys=usg5-2
2790 ;;
2791
2792 ## Plexus
2793 m68*-plexus-sysv* )
2794 machine=plexus opsys=usg5-2
2795 ;;
2796
2797 ## Pyramid machines
2798 ## I don't really have any idea what sort of processor the Pyramid has,
2799 ## so I'm assuming it is its own architecture.
2800 pyramid-pyramid-bsd* )
2801 machine=pyramid opsys=bsd4-2
2802 ;;
2803
2804 ## Sequent Balance
2805 ns32k-sequent-bsd4.2* )
2806 machine=sequent opsys=bsd4-2
2807 ;;
2808 ns32k-sequent-bsd4.3* )
2809 machine=sequent opsys=bsd4-3
2810 ;;
2811
2812 ## Siemens Nixdorf
2813 mips-siemens-sysv* | mips-sni-sysv*)
2814 machine=mips-siemens opsys=usg5-4
2815 NON_GNU_CC=/usr/ccs/bin/cc
2816 NON_GNU_CPP=/usr/ccs/lib/cpp
2817 ;;
2818
2819 ## Silicon Graphics machines
2820 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2821 m68*-sgi-iris3.5* )
2822 machine=irist opsys=iris3-5
2823 ;;
2824 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2825 machine=irist opsys=iris3-6
2826 ;;
2827 ## Iris 4D
2828 mips-sgi-irix3* )
2829 machine=iris4d opsys=irix3-3
2830 ;;
2831 mips-sgi-irix4* )
2832 machine=iris4d opsys=irix4-0
2833 ;;
2834 mips-sgi-irix6.5 )
2835 machine=iris4d opsys=irix6-5
2836 # Without defining _LANGUAGE_C, things get masked out in the headers
2837 # so that, for instance, grepping for `free' in stdlib.h fails and
2838 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2839 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2840 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2841 ;;
2842 mips-sgi-irix6* )
2843 machine=iris4d opsys=irix6-0
2844 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2845 # but presumably it does no harm.
2846 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2847 # -32 probably isn't necessary in later v.6s -- anyone know which?
2848 NON_GCC_TEST_OPTIONS=-32
2849 ;;
2850 mips-sgi-irix5.[01]* )
2851 machine=iris4d opsys=irix5-0
2852 ;;
2853 mips-sgi-irix5* | mips-sgi-irix* )
2854 machine=iris4d opsys=irix5-2
2855 ;;
2856
2857 ## SONY machines
2858 m68*-sony-bsd4.2* )
2859 machine=news opsys=bsd4-2
2860 ;;
2861 m68*-sony-bsd4.3* )
2862 machine=news opsys=bsd4-3
2863 ;;
2864 m68*-sony-newsos3* | m68*-sony-news3*)
2865 machine=news opsys=bsd4-3
2866 ;;
2867 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2868 machine=news-risc opsys=bsd4-3
2869 ;;
2870 mips-sony-newsos6* )
2871 machine=news-r6 opsys=newsos6
2872 ;;
2873 mips-sony-news* )
2874 machine=news-risc opsys=newsos5
2875 ;;
2876
2877 ## Stride
2878 m68*-stride-sysv* )
2879 machine=stride opsys=usg5-2
2880 ;;
2881
2882 ## Suns
2883 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2884 machine=sparc opsys=gnu-linux
2885 ;;
2886
2887 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2888 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2889 | rs6000-*-solaris2*)
2890 case "${canonical}" in
2891 m68*-sunos1* ) machine=sun1 ;;
2892 m68*-sunos2* ) machine=sun2 ;;
2893 m68* ) machine=sun3 ;;
2894 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2895 i[3456]86-*-* ) machine=intel386 ;;
2896 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2897 powerpcle* ) machine=powerpcle ;;
2898 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2899 sparc* ) machine=sparc ;;
2900 * ) unported=yes ;;
2901 esac
2902 case "${canonical}" in
2903 ## The Sun386 didn't get past 4.0.
2904 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2905 *-sunos4.0* ) opsys=sunos4-0 ;;
2906 *-sunos4.1.[3-9]*noshare )
2907 ## This name is sunos413 instead of sunos4-1-3
2908 ## to avoid a file name conflict on MSDOS.
2909 opsys=sunos413
2910 NON_GNU_CPP=/usr/lib/cpp
2911 NON_GCC_TEST_OPTIONS=-Bstatic
2912 GCC_TEST_OPTIONS=-static
2913 ;;
2914 *-sunos4.1.[3-9]* | *-sunos4shr*)
2915 opsys=sunos4shr
2916 NON_GNU_CPP=/usr/lib/cpp
2917 ;;
2918 *-sunos4* | *-sunos )
2919 opsys=sunos4-1
2920 NON_GCC_TEST_OPTIONS=-Bstatic
2921 GCC_TEST_OPTIONS=-static
2922 ;;
2923 *-sunos5.3* | *-solaris2.3* )
2924 opsys=sol2-3
2925 NON_GNU_CPP=/usr/ccs/lib/cpp
2926 ;;
2927 *-sunos5.4* | *-solaris2.4* )
2928 opsys=sol2-4
2929 NON_GNU_CPP=/usr/ccs/lib/cpp
2930 RANLIB="ar -ts"
2931 ;;
2932 *-sunos5.5* | *-solaris2.5* )
2933 opsys=sol2-5
2934 NON_GNU_CPP=/usr/ccs/lib/cpp
2935 RANLIB="ar -ts"
2936 ;;
2937 *-sunos5.6* | *-solaris2.6* )
2938 opsys=sol2-6
2939 NON_GNU_CPP=/usr/ccs/lib/cpp
2940 RANLIB="ar -ts"
2941 ;;
2942 *-sunos5* | *-solaris* )
2943 opsys=sol2-6
2944 NON_GNU_CPP=/usr/ccs/lib/cpp
2945 ;;
2946 * ) opsys=bsd4-2 ;;
2947 esac
2948 ## Watch out for a compiler that we know will not work.
2949 case "${canonical}" in
2950 *-solaris* | *-sunos5* )
2951 if [ "x$CC" = x/usr/ucb/cc ]; then
2952 ## /usr/ucb/cc doesn't work;
2953 ## we should find some other compiler that does work.
2954 unset CC
2955 fi
2956 ;;
2957 *) ;;
2958 esac
2959 ;;
2960 sparc-*-nextstep* )
2961 machine=sparc opsys=nextstep
2962 ;;
2963
2964 ## Tadpole 68k
2965 m68*-tadpole-sysv* )
2966 machine=tad68k opsys=usg5-3
2967 ;;
2968
2969 ## Tahoe machines
2970 tahoe-tahoe-bsd4.2* )
2971 machine=tahoe opsys=bsd4-2
2972 ;;
2973 tahoe-tahoe-bsd4.3* )
2974 machine=tahoe opsys=bsd4-3
2975 ;;
2976
2977 ## Tandem Integrity S2
2978 mips-tandem-sysv* )
2979 machine=tandem-s2 opsys=usg5-3
2980 ;;
2981
2982 ## Tektronix XD88
2983 m88k-tektronix-sysv3* )
2984 machine=tekxd88 opsys=usg5-3
2985 ;;
2986
2987 ## Tektronix 16000 box (6130?)
2988 ns16k-tektronix-bsd* )
2989 machine=ns16000 opsys=bsd4-2
2990 ;;
2991 ## Tektronix 4300
2992 ## src/m/tek4300.h hints that this is a m68k machine.
2993 m68*-tektronix-bsd* )
2994 machine=tek4300 opsys=bsd4-3
2995 ;;
2996
2997 ## Titan P2 or P3
2998 ## We seem to have lost the machine-description file titan.h!
2999 titan-titan-sysv* )
3000 machine=titan opsys=usg5-3
3001 ;;
3002
3003 ## Ustation E30 (SS5E)
3004 m68*-unisys-uniplus* )
3005 machine=ustation opsystem=unipl5-2
3006 ;;
3007
3008 ## Vaxen.
3009 vax-dec-* )
3010 machine=vax
3011 case "${canonical}" in
3012 *-bsd4.1* ) opsys=bsd4-1 ;;
3013 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
3014 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
3015 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
3016 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
3017 *-vms* ) opsys=vms ;;
3018 * ) unported=yes
3019 esac
3020 ;;
3021
3022 ## Whitechapel MG1
3023 ns16k-whitechapel-* )
3024 machine=mg1
3025 ## We don't know what sort of OS runs on these; we'll let the
3026 ## operating system guessing code below try.
3027 ;;
3028
3029 ## Wicat
3030 m68*-wicat-sysv* )
3031 machine=wicat opsys=usg5-2
3032 ;;
3033
3034 ## IA-64
3035 ia64*-*-linux* )
3036 machine=ia64 opsys=gnu-linux
3037 ;;
3038
3039 ## Intel 386 machines where we don't care about the manufacturer
3040 i[3456]86-*-* )
3041 machine=intel386
3042 case "${canonical}" in
3043 *-cygwin ) opsys=cygwin ;;
3044 *-darwin* ) opsys=darwin
3045 CPP="${CC-cc} -E -no-cpp-precomp"
3046 ;;
3047 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
3048 *-isc2.2* ) opsys=isc2-2 ;;
3049 *-isc4.0* ) opsys=isc4-0 ;;
3050 *-isc4.* ) opsys=isc4-1
3051 GCC_TEST_OPTIONS=-posix
3052 NON_GCC_TEST_OPTIONS=-Xp
3053 ;;
3054 *-isc* ) opsys=isc3-0 ;;
3055 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
3056 *-esix* ) opsys=esix ;;
3057 *-xenix* ) opsys=xenix ;;
3058 *-linux-gnu* ) opsys=gnu-linux ;;
3059 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
3060 *-sco3.2v5* ) opsys=sco5
3061 NON_GNU_CPP=/lib/cpp
3062 # Prevent -belf from being passed to $CPP.
3063 # /lib/cpp does not accept it.
3064 OVERRIDE_CPPFLAGS=" "
3065 ;;
3066 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3067 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3068 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3069 *-386bsd* ) opsys=386bsd ;;
3070 *-nextstep* ) opsys=nextstep ;;
3071 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3072 esac
3073 ;;
3074
3075 ## m68k Linux-based GNU system
3076 m68k-*-linux-gnu* )
3077 machine=m68k opsys=gnu-linux
3078 ;;
3079
3080 ## Mips Linux-based GNU system
3081 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
3082 machine=mips opsys=gnu-linux
3083 ;;
3084
3085 ## UXP/DS
3086 sparc-fujitsu-sysv4* )
3087 machine=sparc opsys=uxpds
3088 NON_GNU_CPP=/usr/ccs/lib/cpp
3089 RANLIB="ar -ts"
3090 ;;
3091
3092 ## UXP/V
3093 f301-fujitsu-uxpv4.1)
3094 machine=f301 opsys=uxpv
3095 ;;
3096
3097 ## Darwin / Mac OS X
3098 powerpc-apple-darwin* )
3099 machine=powermac opsys=darwin
3100 # Define CPP as follows to make autoconf work correctly.
3101 CPP="${CC-cc} -E -no-cpp-precomp"
3102 # Use fink packages if available.
3103 if test -d /sw/include && test -d /sw/lib; then
3104 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
3105 CPP="${CPP} ${GCC_TEST_OPTIONS}"
3106 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
3107 fi
3108 ;;
3109
3110 ## AMD x86-64 Linux-based GNU system
3111 x86_64-*-linux-gnu* )
3112 machine=amdx86-64 opsys=gnu-linux
3113 ;;
3114
3115 * )
3116 unported=yes
3117 ;;
3118 esac
3119
3120 ### If the code above didn't choose an operating system, just choose
3121 ### an operating system based on the configuration name. You really
3122 ### only want to use this when you have no idea what the right
3123 ### operating system is; if you know what operating systems a machine
3124 ### runs, it's cleaner to make it explicit in the case statement
3125 ### above.
3126 if test x"${opsys}" = x; then
3127 case "${canonical}" in
3128 *-gnu* ) opsys=gnu ;;
3129 *-bsd4.[01] ) opsys=bsd4-1 ;;
3130 *-bsd4.2 ) opsys=bsd4-2 ;;
3131 *-bsd4.3 ) opsys=bsd4-3 ;;
3132 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
3133 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
3134 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
3135 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
3136 *-sysv4.2uw* ) opsys=unixware ;;
3137 *-sysv5uw* ) opsys=unixware ;;
3138 *-sysv5OpenUNIX* ) opsys=unixware ;;
3139 *-sysv4.1* | *-sysvr4.1* )
3140 NON_GNU_CPP=/usr/lib/cpp
3141 opsys=usg5-4 ;;
3142 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3143 if [ x$NON_GNU_CPP = x ]; then
3144 if [ -f /usr/ccs/lib/cpp ]; then
3145 NON_GNU_CPP=/usr/ccs/lib/cpp
3146 else
3147 NON_GNU_CPP=/lib/cpp
3148 fi
3149 fi
3150 opsys=usg5-4-2 ;;
3151 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3152 * )
3153 unported=yes
3154 ;;
3155 esac
3156 fi
3157
3158
3159
3160 if test $unported = yes; then
3161 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3162 Check \`etc/MACHINES' for recognized configuration names." >&5
3163 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3164 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3165 { (exit 1); exit 1; }; }
3166 fi
3167
3168 machfile="m/${machine}.h"
3169 opsysfile="s/${opsys}.h"
3170
3171
3172 #### Choose a compiler.
3173 test -n "$CC" && cc_specified=yes
3174
3175 # Save the value of CFLAGS that the user specified.
3176 SPECIFIED_CFLAGS="$CFLAGS"
3177
3178 case ${with_gcc} in
3179 "yes" ) CC="gcc" GCC=yes ;;
3180 "no" ) : ${CC=cc} ;;
3181 * )
3182 esac
3183 ac_ext=c
3184 ac_cpp='$CPP $CPPFLAGS'
3185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3188 if test -n "$ac_tool_prefix"; then
3189 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3190 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3193 if test "${ac_cv_prog_CC+set}" = set; then
3194 echo $ECHO_N "(cached) $ECHO_C" >&6
3195 else
3196 if test -n "$CC"; then
3197 ac_cv_prog_CC="$CC" # Let the user override the test.
3198 else
3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 for as_dir in $PATH
3201 do
3202 IFS=$as_save_IFS
3203 test -z "$as_dir" && as_dir=.
3204 for ac_exec_ext in '' $ac_executable_extensions; do
3205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3206 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3208 break 2
3209 fi
3210 done
3211 done
3212 IFS=$as_save_IFS
3213
3214 fi
3215 fi
3216 CC=$ac_cv_prog_CC
3217 if test -n "$CC"; then
3218 { echo "$as_me:$LINENO: result: $CC" >&5
3219 echo "${ECHO_T}$CC" >&6; }
3220 else
3221 { echo "$as_me:$LINENO: result: no" >&5
3222 echo "${ECHO_T}no" >&6; }
3223 fi
3224
3225
3226 fi
3227 if test -z "$ac_cv_prog_CC"; then
3228 ac_ct_CC=$CC
3229 # Extract the first word of "gcc", so it can be a program name with args.
3230 set dummy gcc; ac_word=$2
3231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3233 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3234 echo $ECHO_N "(cached) $ECHO_C" >&6
3235 else
3236 if test -n "$ac_ct_CC"; then
3237 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3238 else
3239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240 for as_dir in $PATH
3241 do
3242 IFS=$as_save_IFS
3243 test -z "$as_dir" && as_dir=.
3244 for ac_exec_ext in '' $ac_executable_extensions; do
3245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3246 ac_cv_prog_ac_ct_CC="gcc"
3247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3248 break 2
3249 fi
3250 done
3251 done
3252 IFS=$as_save_IFS
3253
3254 fi
3255 fi
3256 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3257 if test -n "$ac_ct_CC"; then
3258 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3259 echo "${ECHO_T}$ac_ct_CC" >&6; }
3260 else
3261 { echo "$as_me:$LINENO: result: no" >&5
3262 echo "${ECHO_T}no" >&6; }
3263 fi
3264
3265 if test "x$ac_ct_CC" = x; then
3266 CC=""
3267 else
3268 case $cross_compiling:$ac_tool_warned in
3269 yes:)
3270 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3271 whose name does not start with the host triplet. If you think this
3272 configuration is useful to you, please write to autoconf@gnu.org." >&5
3273 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3274 whose name does not start with the host triplet. If you think this
3275 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3276 ac_tool_warned=yes ;;
3277 esac
3278 CC=$ac_ct_CC
3279 fi
3280 else
3281 CC="$ac_cv_prog_CC"
3282 fi
3283
3284 if test -z "$CC"; then
3285 if test -n "$ac_tool_prefix"; then
3286 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3287 set dummy ${ac_tool_prefix}cc; ac_word=$2
3288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3290 if test "${ac_cv_prog_CC+set}" = set; then
3291 echo $ECHO_N "(cached) $ECHO_C" >&6
3292 else
3293 if test -n "$CC"; then
3294 ac_cv_prog_CC="$CC" # Let the user override the test.
3295 else
3296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297 for as_dir in $PATH
3298 do
3299 IFS=$as_save_IFS
3300 test -z "$as_dir" && as_dir=.
3301 for ac_exec_ext in '' $ac_executable_extensions; do
3302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3303 ac_cv_prog_CC="${ac_tool_prefix}cc"
3304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3305 break 2
3306 fi
3307 done
3308 done
3309 IFS=$as_save_IFS
3310
3311 fi
3312 fi
3313 CC=$ac_cv_prog_CC
3314 if test -n "$CC"; then
3315 { echo "$as_me:$LINENO: result: $CC" >&5
3316 echo "${ECHO_T}$CC" >&6; }
3317 else
3318 { echo "$as_me:$LINENO: result: no" >&5
3319 echo "${ECHO_T}no" >&6; }
3320 fi
3321
3322
3323 fi
3324 fi
3325 if test -z "$CC"; then
3326 # Extract the first word of "cc", so it can be a program name with args.
3327 set dummy cc; ac_word=$2
3328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3330 if test "${ac_cv_prog_CC+set}" = set; then
3331 echo $ECHO_N "(cached) $ECHO_C" >&6
3332 else
3333 if test -n "$CC"; then
3334 ac_cv_prog_CC="$CC" # Let the user override the test.
3335 else
3336 ac_prog_rejected=no
3337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338 for as_dir in $PATH
3339 do
3340 IFS=$as_save_IFS
3341 test -z "$as_dir" && as_dir=.
3342 for ac_exec_ext in '' $ac_executable_extensions; do
3343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3344 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3345 ac_prog_rejected=yes
3346 continue
3347 fi
3348 ac_cv_prog_CC="cc"
3349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3350 break 2
3351 fi
3352 done
3353 done
3354 IFS=$as_save_IFS
3355
3356 if test $ac_prog_rejected = yes; then
3357 # We found a bogon in the path, so make sure we never use it.
3358 set dummy $ac_cv_prog_CC
3359 shift
3360 if test $# != 0; then
3361 # We chose a different compiler from the bogus one.
3362 # However, it has the same basename, so the bogon will be chosen
3363 # first if we set CC to just the basename; use the full file name.
3364 shift
3365 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3366 fi
3367 fi
3368 fi
3369 fi
3370 CC=$ac_cv_prog_CC
3371 if test -n "$CC"; then
3372 { echo "$as_me:$LINENO: result: $CC" >&5
3373 echo "${ECHO_T}$CC" >&6; }
3374 else
3375 { echo "$as_me:$LINENO: result: no" >&5
3376 echo "${ECHO_T}no" >&6; }
3377 fi
3378
3379
3380 fi
3381 if test -z "$CC"; then
3382 if test -n "$ac_tool_prefix"; then
3383 for ac_prog in cl.exe
3384 do
3385 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3386 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3389 if test "${ac_cv_prog_CC+set}" = set; then
3390 echo $ECHO_N "(cached) $ECHO_C" >&6
3391 else
3392 if test -n "$CC"; then
3393 ac_cv_prog_CC="$CC" # Let the user override the test.
3394 else
3395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396 for as_dir in $PATH
3397 do
3398 IFS=$as_save_IFS
3399 test -z "$as_dir" && as_dir=.
3400 for ac_exec_ext in '' $ac_executable_extensions; do
3401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3402 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3404 break 2
3405 fi
3406 done
3407 done
3408 IFS=$as_save_IFS
3409
3410 fi
3411 fi
3412 CC=$ac_cv_prog_CC
3413 if test -n "$CC"; then
3414 { echo "$as_me:$LINENO: result: $CC" >&5
3415 echo "${ECHO_T}$CC" >&6; }
3416 else
3417 { echo "$as_me:$LINENO: result: no" >&5
3418 echo "${ECHO_T}no" >&6; }
3419 fi
3420
3421
3422 test -n "$CC" && break
3423 done
3424 fi
3425 if test -z "$CC"; then
3426 ac_ct_CC=$CC
3427 for ac_prog in cl.exe
3428 do
3429 # Extract the first word of "$ac_prog", so it can be a program name with args.
3430 set dummy $ac_prog; ac_word=$2
3431 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3433 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3434 echo $ECHO_N "(cached) $ECHO_C" >&6
3435 else
3436 if test -n "$ac_ct_CC"; then
3437 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3438 else
3439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3440 for as_dir in $PATH
3441 do
3442 IFS=$as_save_IFS
3443 test -z "$as_dir" && as_dir=.
3444 for ac_exec_ext in '' $ac_executable_extensions; do
3445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3446 ac_cv_prog_ac_ct_CC="$ac_prog"
3447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3448 break 2
3449 fi
3450 done
3451 done
3452 IFS=$as_save_IFS
3453
3454 fi
3455 fi
3456 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3457 if test -n "$ac_ct_CC"; then
3458 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3459 echo "${ECHO_T}$ac_ct_CC" >&6; }
3460 else
3461 { echo "$as_me:$LINENO: result: no" >&5
3462 echo "${ECHO_T}no" >&6; }
3463 fi
3464
3465
3466 test -n "$ac_ct_CC" && break
3467 done
3468
3469 if test "x$ac_ct_CC" = x; then
3470 CC=""
3471 else
3472 case $cross_compiling:$ac_tool_warned in
3473 yes:)
3474 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3475 whose name does not start with the host triplet. If you think this
3476 configuration is useful to you, please write to autoconf@gnu.org." >&5
3477 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3478 whose name does not start with the host triplet. If you think this
3479 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3480 ac_tool_warned=yes ;;
3481 esac
3482 CC=$ac_ct_CC
3483 fi
3484 fi
3485
3486 fi
3487
3488
3489 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3490 See \`config.log' for more details." >&5
3491 echo "$as_me: error: no acceptable C compiler found in \$PATH
3492 See \`config.log' for more details." >&2;}
3493 { (exit 1); exit 1; }; }
3494
3495 # Provide some information about the compiler.
3496 echo "$as_me:$LINENO: checking for C compiler version" >&5
3497 ac_compiler=`set X $ac_compile; echo $2`
3498 { (ac_try="$ac_compiler --version >&5"
3499 case "(($ac_try" in
3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501 *) ac_try_echo=$ac_try;;
3502 esac
3503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3504 (eval "$ac_compiler --version >&5") 2>&5
3505 ac_status=$?
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); }
3508 { (ac_try="$ac_compiler -v >&5"
3509 case "(($ac_try" in
3510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3511 *) ac_try_echo=$ac_try;;
3512 esac
3513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3514 (eval "$ac_compiler -v >&5") 2>&5
3515 ac_status=$?
3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); }
3518 { (ac_try="$ac_compiler -V >&5"
3519 case "(($ac_try" in
3520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521 *) ac_try_echo=$ac_try;;
3522 esac
3523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3524 (eval "$ac_compiler -V >&5") 2>&5
3525 ac_status=$?
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }
3528
3529 cat >conftest.$ac_ext <<_ACEOF
3530 /* confdefs.h. */
3531 _ACEOF
3532 cat confdefs.h >>conftest.$ac_ext
3533 cat >>conftest.$ac_ext <<_ACEOF
3534 /* end confdefs.h. */
3535
3536 int
3537 main ()
3538 {
3539
3540 ;
3541 return 0;
3542 }
3543 _ACEOF
3544 ac_clean_files_save=$ac_clean_files
3545 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3546 # Try to create an executable without -o first, disregard a.out.
3547 # It will help us diagnose broken compilers, and finding out an intuition
3548 # of exeext.
3549 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3550 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3551 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3552 #
3553 # List of possible output files, starting from the most likely.
3554 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3555 # only as a last resort. b.out is created by i960 compilers.
3556 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3557 #
3558 # The IRIX 6 linker writes into existing files which may not be
3559 # executable, retaining their permissions. Remove them first so a
3560 # subsequent execution test works.
3561 ac_rmfiles=
3562 for ac_file in $ac_files
3563 do
3564 case $ac_file in
3565 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3566 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3567 esac
3568 done
3569 rm -f $ac_rmfiles
3570
3571 if { (ac_try="$ac_link_default"
3572 case "(($ac_try" in
3573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574 *) ac_try_echo=$ac_try;;
3575 esac
3576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3577 (eval "$ac_link_default") 2>&5
3578 ac_status=$?
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); }; then
3581 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3582 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3583 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3584 # so that the user can short-circuit this test for compilers unknown to
3585 # Autoconf.
3586 for ac_file in $ac_files
3587 do
3588 test -f "$ac_file" || continue
3589 case $ac_file in
3590 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3591 ;;
3592 [ab].out )
3593 # We found the default executable, but exeext='' is most
3594 # certainly right.
3595 break;;
3596 *.* )
3597 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3598 then :; else
3599 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3600 fi
3601 # We set ac_cv_exeext here because the later test for it is not
3602 # safe: cross compilers may not add the suffix if given an `-o'
3603 # argument, so we may need to know it at that point already.
3604 # Even if this section looks crufty: it has the advantage of
3605 # actually working.
3606 break;;
3607 * )
3608 break;;
3609 esac
3610 done
3611 test "$ac_cv_exeext" = no && ac_cv_exeext=
3612
3613 else
3614 echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.$ac_ext >&5
3616
3617 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3618 See \`config.log' for more details." >&5
3619 echo "$as_me: error: C compiler cannot create executables
3620 See \`config.log' for more details." >&2;}
3621 { (exit 77); exit 77; }; }
3622 fi
3623
3624 ac_exeext=$ac_cv_exeext
3625 { echo "$as_me:$LINENO: result: $ac_file" >&5
3626 echo "${ECHO_T}$ac_file" >&6; }
3627
3628 # Check that the compiler produces executables we can run. If not, either
3629 # the compiler is broken, or we cross compile.
3630 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3631 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3632 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3633 # If not cross compiling, check that we can run a simple program.
3634 if test "$cross_compiling" != yes; then
3635 if { ac_try='./$ac_file'
3636 { (case "(($ac_try" in
3637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3638 *) ac_try_echo=$ac_try;;
3639 esac
3640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3641 (eval "$ac_try") 2>&5
3642 ac_status=$?
3643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644 (exit $ac_status); }; }; then
3645 cross_compiling=no
3646 else
3647 if test "$cross_compiling" = maybe; then
3648 cross_compiling=yes
3649 else
3650 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3651 If you meant to cross compile, use \`--host'.
3652 See \`config.log' for more details." >&5
3653 echo "$as_me: error: cannot run C compiled programs.
3654 If you meant to cross compile, use \`--host'.
3655 See \`config.log' for more details." >&2;}
3656 { (exit 1); exit 1; }; }
3657 fi
3658 fi
3659 fi
3660 { echo "$as_me:$LINENO: result: yes" >&5
3661 echo "${ECHO_T}yes" >&6; }
3662
3663 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3664 ac_clean_files=$ac_clean_files_save
3665 # Check that the compiler produces executables we can run. If not, either
3666 # the compiler is broken, or we cross compile.
3667 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3668 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3669 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3670 echo "${ECHO_T}$cross_compiling" >&6; }
3671
3672 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3673 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3674 if { (ac_try="$ac_link"
3675 case "(($ac_try" in
3676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677 *) ac_try_echo=$ac_try;;
3678 esac
3679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3680 (eval "$ac_link") 2>&5
3681 ac_status=$?
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); }; then
3684 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3685 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3686 # work properly (i.e., refer to `conftest.exe'), while it won't with
3687 # `rm'.
3688 for ac_file in conftest.exe conftest conftest.*; do
3689 test -f "$ac_file" || continue
3690 case $ac_file in
3691 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3692 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3693 break;;
3694 * ) break;;
3695 esac
3696 done
3697 else
3698 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3699 See \`config.log' for more details." >&5
3700 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3701 See \`config.log' for more details." >&2;}
3702 { (exit 1); exit 1; }; }
3703 fi
3704
3705 rm -f conftest$ac_cv_exeext
3706 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3707 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3708
3709 rm -f conftest.$ac_ext
3710 EXEEXT=$ac_cv_exeext
3711 ac_exeext=$EXEEXT
3712 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3713 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3714 if test "${ac_cv_objext+set}" = set; then
3715 echo $ECHO_N "(cached) $ECHO_C" >&6
3716 else
3717 cat >conftest.$ac_ext <<_ACEOF
3718 /* confdefs.h. */
3719 _ACEOF
3720 cat confdefs.h >>conftest.$ac_ext
3721 cat >>conftest.$ac_ext <<_ACEOF
3722 /* end confdefs.h. */
3723
3724 int
3725 main ()
3726 {
3727
3728 ;
3729 return 0;
3730 }
3731 _ACEOF
3732 rm -f conftest.o conftest.obj
3733 if { (ac_try="$ac_compile"
3734 case "(($ac_try" in
3735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3736 *) ac_try_echo=$ac_try;;
3737 esac
3738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3739 (eval "$ac_compile") 2>&5
3740 ac_status=$?
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); }; then
3743 for ac_file in conftest.o conftest.obj conftest.*; do
3744 test -f "$ac_file" || continue;
3745 case $ac_file in
3746 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3747 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3748 break;;
3749 esac
3750 done
3751 else
3752 echo "$as_me: failed program was:" >&5
3753 sed 's/^/| /' conftest.$ac_ext >&5
3754
3755 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3756 See \`config.log' for more details." >&5
3757 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3758 See \`config.log' for more details." >&2;}
3759 { (exit 1); exit 1; }; }
3760 fi
3761
3762 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3763 fi
3764 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3765 echo "${ECHO_T}$ac_cv_objext" >&6; }
3766 OBJEXT=$ac_cv_objext
3767 ac_objext=$OBJEXT
3768 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3769 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3770 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3771 echo $ECHO_N "(cached) $ECHO_C" >&6
3772 else
3773 cat >conftest.$ac_ext <<_ACEOF
3774 /* confdefs.h. */
3775 _ACEOF
3776 cat confdefs.h >>conftest.$ac_ext
3777 cat >>conftest.$ac_ext <<_ACEOF
3778 /* end confdefs.h. */
3779
3780 int
3781 main ()
3782 {
3783 #ifndef __GNUC__
3784 choke me
3785 #endif
3786
3787 ;
3788 return 0;
3789 }
3790 _ACEOF
3791 rm -f conftest.$ac_objext
3792 if { (ac_try="$ac_compile"
3793 case "(($ac_try" in
3794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795 *) ac_try_echo=$ac_try;;
3796 esac
3797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3798 (eval "$ac_compile") 2>conftest.er1
3799 ac_status=$?
3800 grep -v '^ *+' conftest.er1 >conftest.err
3801 rm -f conftest.er1
3802 cat conftest.err >&5
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); } &&
3805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3806 { (case "(($ac_try" in
3807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808 *) ac_try_echo=$ac_try;;
3809 esac
3810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3811 (eval "$ac_try") 2>&5
3812 ac_status=$?
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); }; } &&
3815 { ac_try='test -s conftest.$ac_objext'
3816 { (case "(($ac_try" in
3817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3818 *) ac_try_echo=$ac_try;;
3819 esac
3820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3821 (eval "$ac_try") 2>&5
3822 ac_status=$?
3823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824 (exit $ac_status); }; }; then
3825 ac_compiler_gnu=yes
3826 else
3827 echo "$as_me: failed program was:" >&5
3828 sed 's/^/| /' conftest.$ac_ext >&5
3829
3830 ac_compiler_gnu=no
3831 fi
3832
3833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3834 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3835
3836 fi
3837 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3838 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3839 GCC=`test $ac_compiler_gnu = yes && echo yes`
3840 ac_test_CFLAGS=${CFLAGS+set}
3841 ac_save_CFLAGS=$CFLAGS
3842 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3843 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3844 if test "${ac_cv_prog_cc_g+set}" = set; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
3846 else
3847 ac_save_c_werror_flag=$ac_c_werror_flag
3848 ac_c_werror_flag=yes
3849 ac_cv_prog_cc_g=no
3850 CFLAGS="-g"
3851 cat >conftest.$ac_ext <<_ACEOF
3852 /* confdefs.h. */
3853 _ACEOF
3854 cat confdefs.h >>conftest.$ac_ext
3855 cat >>conftest.$ac_ext <<_ACEOF
3856 /* end confdefs.h. */
3857
3858 int
3859 main ()
3860 {
3861
3862 ;
3863 return 0;
3864 }
3865 _ACEOF
3866 rm -f conftest.$ac_objext
3867 if { (ac_try="$ac_compile"
3868 case "(($ac_try" in
3869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870 *) ac_try_echo=$ac_try;;
3871 esac
3872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3873 (eval "$ac_compile") 2>conftest.er1
3874 ac_status=$?
3875 grep -v '^ *+' conftest.er1 >conftest.err
3876 rm -f conftest.er1
3877 cat conftest.err >&5
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); } &&
3880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3881 { (case "(($ac_try" in
3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883 *) ac_try_echo=$ac_try;;
3884 esac
3885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3886 (eval "$ac_try") 2>&5
3887 ac_status=$?
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); }; } &&
3890 { ac_try='test -s conftest.$ac_objext'
3891 { (case "(($ac_try" in
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3894 esac
3895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3896 (eval "$ac_try") 2>&5
3897 ac_status=$?
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); }; }; then
3900 ac_cv_prog_cc_g=yes
3901 else
3902 echo "$as_me: failed program was:" >&5
3903 sed 's/^/| /' conftest.$ac_ext >&5
3904
3905 CFLAGS=""
3906 cat >conftest.$ac_ext <<_ACEOF
3907 /* confdefs.h. */
3908 _ACEOF
3909 cat confdefs.h >>conftest.$ac_ext
3910 cat >>conftest.$ac_ext <<_ACEOF
3911 /* end confdefs.h. */
3912
3913 int
3914 main ()
3915 {
3916
3917 ;
3918 return 0;
3919 }
3920 _ACEOF
3921 rm -f conftest.$ac_objext
3922 if { (ac_try="$ac_compile"
3923 case "(($ac_try" in
3924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3925 *) ac_try_echo=$ac_try;;
3926 esac
3927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3928 (eval "$ac_compile") 2>conftest.er1
3929 ac_status=$?
3930 grep -v '^ *+' conftest.er1 >conftest.err
3931 rm -f conftest.er1
3932 cat conftest.err >&5
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); } &&
3935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3936 { (case "(($ac_try" in
3937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3938 *) ac_try_echo=$ac_try;;
3939 esac
3940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3941 (eval "$ac_try") 2>&5
3942 ac_status=$?
3943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944 (exit $ac_status); }; } &&
3945 { ac_try='test -s conftest.$ac_objext'
3946 { (case "(($ac_try" in
3947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3948 *) ac_try_echo=$ac_try;;
3949 esac
3950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3951 (eval "$ac_try") 2>&5
3952 ac_status=$?
3953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954 (exit $ac_status); }; }; then
3955 :
3956 else
3957 echo "$as_me: failed program was:" >&5
3958 sed 's/^/| /' conftest.$ac_ext >&5
3959
3960 ac_c_werror_flag=$ac_save_c_werror_flag
3961 CFLAGS="-g"
3962 cat >conftest.$ac_ext <<_ACEOF
3963 /* confdefs.h. */
3964 _ACEOF
3965 cat confdefs.h >>conftest.$ac_ext
3966 cat >>conftest.$ac_ext <<_ACEOF
3967 /* end confdefs.h. */
3968
3969 int
3970 main ()
3971 {
3972
3973 ;
3974 return 0;
3975 }
3976 _ACEOF
3977 rm -f conftest.$ac_objext
3978 if { (ac_try="$ac_compile"
3979 case "(($ac_try" in
3980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981 *) ac_try_echo=$ac_try;;
3982 esac
3983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3984 (eval "$ac_compile") 2>conftest.er1
3985 ac_status=$?
3986 grep -v '^ *+' conftest.er1 >conftest.err
3987 rm -f conftest.er1
3988 cat conftest.err >&5
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); } &&
3991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3992 { (case "(($ac_try" in
3993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3994 *) ac_try_echo=$ac_try;;
3995 esac
3996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3997 (eval "$ac_try") 2>&5
3998 ac_status=$?
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); }; } &&
4001 { ac_try='test -s conftest.$ac_objext'
4002 { (case "(($ac_try" in
4003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4004 *) ac_try_echo=$ac_try;;
4005 esac
4006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4007 (eval "$ac_try") 2>&5
4008 ac_status=$?
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); }; }; then
4011 ac_cv_prog_cc_g=yes
4012 else
4013 echo "$as_me: failed program was:" >&5
4014 sed 's/^/| /' conftest.$ac_ext >&5
4015
4016
4017 fi
4018
4019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4020 fi
4021
4022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4023 fi
4024
4025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4026 ac_c_werror_flag=$ac_save_c_werror_flag
4027 fi
4028 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4029 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4030 if test "$ac_test_CFLAGS" = set; then
4031 CFLAGS=$ac_save_CFLAGS
4032 elif test $ac_cv_prog_cc_g = yes; then
4033 if test "$GCC" = yes; then
4034 CFLAGS="-g -O2"
4035 else
4036 CFLAGS="-g"
4037 fi
4038 else
4039 if test "$GCC" = yes; then
4040 CFLAGS="-O2"
4041 else
4042 CFLAGS=
4043 fi
4044 fi
4045 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4046 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4047 if test "${ac_cv_prog_cc_c89+set}" = set; then
4048 echo $ECHO_N "(cached) $ECHO_C" >&6
4049 else
4050 ac_cv_prog_cc_c89=no
4051 ac_save_CC=$CC
4052 cat >conftest.$ac_ext <<_ACEOF
4053 /* confdefs.h. */
4054 _ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4058 #include <stdarg.h>
4059 #include <stdio.h>
4060 #include <sys/types.h>
4061 #include <sys/stat.h>
4062 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4063 struct buf { int x; };
4064 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4065 static char *e (p, i)
4066 char **p;
4067 int i;
4068 {
4069 return p[i];
4070 }
4071 static char *f (char * (*g) (char **, int), char **p, ...)
4072 {
4073 char *s;
4074 va_list v;
4075 va_start (v,p);
4076 s = g (p, va_arg (v,int));
4077 va_end (v);
4078 return s;
4079 }
4080
4081 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4082 function prototypes and stuff, but not '\xHH' hex character constants.
4083 These don't provoke an error unfortunately, instead are silently treated
4084 as 'x'. The following induces an error, until -std is added to get
4085 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4086 array size at least. It's necessary to write '\x00'==0 to get something
4087 that's true only with -std. */
4088 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4089
4090 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4091 inside strings and character constants. */
4092 #define FOO(x) 'x'
4093 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4094
4095 int test (int i, double x);
4096 struct s1 {int (*f) (int a);};
4097 struct s2 {int (*f) (double a);};
4098 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4099 int argc;
4100 char **argv;
4101 int
4102 main ()
4103 {
4104 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4105 ;
4106 return 0;
4107 }
4108 _ACEOF
4109 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4110 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4111 do
4112 CC="$ac_save_CC $ac_arg"
4113 rm -f conftest.$ac_objext
4114 if { (ac_try="$ac_compile"
4115 case "(($ac_try" in
4116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4117 *) ac_try_echo=$ac_try;;
4118 esac
4119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4120 (eval "$ac_compile") 2>conftest.er1
4121 ac_status=$?
4122 grep -v '^ *+' conftest.er1 >conftest.err
4123 rm -f conftest.er1
4124 cat conftest.err >&5
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); } &&
4127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4128 { (case "(($ac_try" in
4129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4130 *) ac_try_echo=$ac_try;;
4131 esac
4132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4133 (eval "$ac_try") 2>&5
4134 ac_status=$?
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); }; } &&
4137 { ac_try='test -s conftest.$ac_objext'
4138 { (case "(($ac_try" in
4139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140 *) ac_try_echo=$ac_try;;
4141 esac
4142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4143 (eval "$ac_try") 2>&5
4144 ac_status=$?
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); }; }; then
4147 ac_cv_prog_cc_c89=$ac_arg
4148 else
4149 echo "$as_me: failed program was:" >&5
4150 sed 's/^/| /' conftest.$ac_ext >&5
4151
4152
4153 fi
4154
4155 rm -f core conftest.err conftest.$ac_objext
4156 test "x$ac_cv_prog_cc_c89" != "xno" && break
4157 done
4158 rm -f conftest.$ac_ext
4159 CC=$ac_save_CC
4160
4161 fi
4162 # AC_CACHE_VAL
4163 case "x$ac_cv_prog_cc_c89" in
4164 x)
4165 { echo "$as_me:$LINENO: result: none needed" >&5
4166 echo "${ECHO_T}none needed" >&6; } ;;
4167 xno)
4168 { echo "$as_me:$LINENO: result: unsupported" >&5
4169 echo "${ECHO_T}unsupported" >&6; } ;;
4170 *)
4171 CC="$CC $ac_cv_prog_cc_c89"
4172 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4173 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4174 esac
4175
4176
4177 ac_ext=c
4178 ac_cpp='$CPP $CPPFLAGS'
4179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4182
4183
4184 # On Suns, sometimes $CPP names a directory.
4185 if test -n "$CPP" && test -d "$CPP"; then
4186 CPP=
4187 fi
4188
4189 #### Some systems specify a CPP to use unless we are using GCC.
4190 #### Now that we know whether we are using GCC, we can decide whether
4191 #### to use that one.
4192 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4193 then
4194 CPP="$NON_GNU_CPP"
4195 fi
4196
4197 #### Some systems specify a CC to use unless we are using GCC.
4198 #### Now that we know whether we are using GCC, we can decide whether
4199 #### to use that one.
4200 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4201 test x$cc_specified != xyes
4202 then
4203 CC="$NON_GNU_CC"
4204 fi
4205
4206 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4207 then
4208 CC="$CC $GCC_TEST_OPTIONS"
4209 fi
4210
4211 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4212 then
4213 CC="$CC $NON_GCC_TEST_OPTIONS"
4214 fi
4215
4216
4217 ac_ext=c
4218 ac_cpp='$CPP $CPPFLAGS'
4219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4222 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4223 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4224 # On Suns, sometimes $CPP names a directory.
4225 if test -n "$CPP" && test -d "$CPP"; then
4226 CPP=
4227 fi
4228 if test -z "$CPP"; then
4229 if test "${ac_cv_prog_CPP+set}" = set; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
4231 else
4232 # Double quotes because CPP needs to be expanded
4233 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4234 do
4235 ac_preproc_ok=false
4236 for ac_c_preproc_warn_flag in '' yes
4237 do
4238 # Use a header file that comes with gcc, so configuring glibc
4239 # with a fresh cross-compiler works.
4240 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4241 # <limits.h> exists even on freestanding compilers.
4242 # On the NeXT, cc -E runs the code through the compiler's parser,
4243 # not just through cpp. "Syntax error" is here to catch this case.
4244 cat >conftest.$ac_ext <<_ACEOF
4245 /* confdefs.h. */
4246 _ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4250 #ifdef __STDC__
4251 # include <limits.h>
4252 #else
4253 # include <assert.h>
4254 #endif
4255 Syntax error
4256 _ACEOF
4257 if { (ac_try="$ac_cpp conftest.$ac_ext"
4258 case "(($ac_try" in
4259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260 *) ac_try_echo=$ac_try;;
4261 esac
4262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4263 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4264 ac_status=$?
4265 grep -v '^ *+' conftest.er1 >conftest.err
4266 rm -f conftest.er1
4267 cat conftest.err >&5
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); } >/dev/null; then
4270 if test -s conftest.err; then
4271 ac_cpp_err=$ac_c_preproc_warn_flag
4272 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4273 else
4274 ac_cpp_err=
4275 fi
4276 else
4277 ac_cpp_err=yes
4278 fi
4279 if test -z "$ac_cpp_err"; then
4280 :
4281 else
4282 echo "$as_me: failed program was:" >&5
4283 sed 's/^/| /' conftest.$ac_ext >&5
4284
4285 # Broken: fails on valid input.
4286 continue
4287 fi
4288
4289 rm -f conftest.err conftest.$ac_ext
4290
4291 # OK, works on sane cases. Now check whether nonexistent headers
4292 # can be detected and how.
4293 cat >conftest.$ac_ext <<_ACEOF
4294 /* confdefs.h. */
4295 _ACEOF
4296 cat confdefs.h >>conftest.$ac_ext
4297 cat >>conftest.$ac_ext <<_ACEOF
4298 /* end confdefs.h. */
4299 #include <ac_nonexistent.h>
4300 _ACEOF
4301 if { (ac_try="$ac_cpp conftest.$ac_ext"
4302 case "(($ac_try" in
4303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304 *) ac_try_echo=$ac_try;;
4305 esac
4306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4307 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4308 ac_status=$?
4309 grep -v '^ *+' conftest.er1 >conftest.err
4310 rm -f conftest.er1
4311 cat conftest.err >&5
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); } >/dev/null; then
4314 if test -s conftest.err; then
4315 ac_cpp_err=$ac_c_preproc_warn_flag
4316 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4317 else
4318 ac_cpp_err=
4319 fi
4320 else
4321 ac_cpp_err=yes
4322 fi
4323 if test -z "$ac_cpp_err"; then
4324 # Broken: success on invalid input.
4325 continue
4326 else
4327 echo "$as_me: failed program was:" >&5
4328 sed 's/^/| /' conftest.$ac_ext >&5
4329
4330 # Passes both tests.
4331 ac_preproc_ok=:
4332 break
4333 fi
4334
4335 rm -f conftest.err conftest.$ac_ext
4336
4337 done
4338 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4339 rm -f conftest.err conftest.$ac_ext
4340 if $ac_preproc_ok; then
4341 break
4342 fi
4343
4344 done
4345 ac_cv_prog_CPP=$CPP
4346
4347 fi
4348 CPP=$ac_cv_prog_CPP
4349 else
4350 ac_cv_prog_CPP=$CPP
4351 fi
4352 { echo "$as_me:$LINENO: result: $CPP" >&5
4353 echo "${ECHO_T}$CPP" >&6; }
4354 ac_preproc_ok=false
4355 for ac_c_preproc_warn_flag in '' yes
4356 do
4357 # Use a header file that comes with gcc, so configuring glibc
4358 # with a fresh cross-compiler works.
4359 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4360 # <limits.h> exists even on freestanding compilers.
4361 # On the NeXT, cc -E runs the code through the compiler's parser,
4362 # not just through cpp. "Syntax error" is here to catch this case.
4363 cat >conftest.$ac_ext <<_ACEOF
4364 /* confdefs.h. */
4365 _ACEOF
4366 cat confdefs.h >>conftest.$ac_ext
4367 cat >>conftest.$ac_ext <<_ACEOF
4368 /* end confdefs.h. */
4369 #ifdef __STDC__
4370 # include <limits.h>
4371 #else
4372 # include <assert.h>
4373 #endif
4374 Syntax error
4375 _ACEOF
4376 if { (ac_try="$ac_cpp conftest.$ac_ext"
4377 case "(($ac_try" in
4378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4379 *) ac_try_echo=$ac_try;;
4380 esac
4381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4383 ac_status=$?
4384 grep -v '^ *+' conftest.er1 >conftest.err
4385 rm -f conftest.er1
4386 cat conftest.err >&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); } >/dev/null; then
4389 if test -s conftest.err; then
4390 ac_cpp_err=$ac_c_preproc_warn_flag
4391 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4392 else
4393 ac_cpp_err=
4394 fi
4395 else
4396 ac_cpp_err=yes
4397 fi
4398 if test -z "$ac_cpp_err"; then
4399 :
4400 else
4401 echo "$as_me: failed program was:" >&5
4402 sed 's/^/| /' conftest.$ac_ext >&5
4403
4404 # Broken: fails on valid input.
4405 continue
4406 fi
4407
4408 rm -f conftest.err conftest.$ac_ext
4409
4410 # OK, works on sane cases. Now check whether nonexistent headers
4411 # can be detected and how.
4412 cat >conftest.$ac_ext <<_ACEOF
4413 /* confdefs.h. */
4414 _ACEOF
4415 cat confdefs.h >>conftest.$ac_ext
4416 cat >>conftest.$ac_ext <<_ACEOF
4417 /* end confdefs.h. */
4418 #include <ac_nonexistent.h>
4419 _ACEOF
4420 if { (ac_try="$ac_cpp conftest.$ac_ext"
4421 case "(($ac_try" in
4422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4423 *) ac_try_echo=$ac_try;;
4424 esac
4425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4426 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4427 ac_status=$?
4428 grep -v '^ *+' conftest.er1 >conftest.err
4429 rm -f conftest.er1
4430 cat conftest.err >&5
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); } >/dev/null; then
4433 if test -s conftest.err; then
4434 ac_cpp_err=$ac_c_preproc_warn_flag
4435 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4436 else
4437 ac_cpp_err=
4438 fi
4439 else
4440 ac_cpp_err=yes
4441 fi
4442 if test -z "$ac_cpp_err"; then
4443 # Broken: success on invalid input.
4444 continue
4445 else
4446 echo "$as_me: failed program was:" >&5
4447 sed 's/^/| /' conftest.$ac_ext >&5
4448
4449 # Passes both tests.
4450 ac_preproc_ok=:
4451 break
4452 fi
4453
4454 rm -f conftest.err conftest.$ac_ext
4455
4456 done
4457 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4458 rm -f conftest.err conftest.$ac_ext
4459 if $ac_preproc_ok; then
4460 :
4461 else
4462 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4463 See \`config.log' for more details." >&5
4464 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4465 See \`config.log' for more details." >&2;}
4466 { (exit 1); exit 1; }; }
4467 fi
4468
4469 ac_ext=c
4470 ac_cpp='$CPP $CPPFLAGS'
4471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4474
4475
4476 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4477 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4478 if test "${ac_cv_path_GREP+set}" = set; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
4480 else
4481 # Extract the first word of "grep ggrep" to use in msg output
4482 if test -z "$GREP"; then
4483 set dummy grep ggrep; ac_prog_name=$2
4484 if test "${ac_cv_path_GREP+set}" = set; then
4485 echo $ECHO_N "(cached) $ECHO_C" >&6
4486 else
4487 ac_path_GREP_found=false
4488 # Loop through the user's path and test for each of PROGNAME-LIST
4489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4490 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4491 do
4492 IFS=$as_save_IFS
4493 test -z "$as_dir" && as_dir=.
4494 for ac_prog in grep ggrep; do
4495 for ac_exec_ext in '' $ac_executable_extensions; do
4496 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4497 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4498 # Check for GNU ac_path_GREP and select it if it is found.
4499 # Check for GNU $ac_path_GREP
4500 case `"$ac_path_GREP" --version 2>&1` in
4501 *GNU*)
4502 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4503 *)
4504 ac_count=0
4505 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4506 while :
4507 do
4508 cat "conftest.in" "conftest.in" >"conftest.tmp"
4509 mv "conftest.tmp" "conftest.in"
4510 cp "conftest.in" "conftest.nl"
4511 echo 'GREP' >> "conftest.nl"
4512 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4513 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4514 ac_count=`expr $ac_count + 1`
4515 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4516 # Best one so far, save it but keep looking for a better one
4517 ac_cv_path_GREP="$ac_path_GREP"
4518 ac_path_GREP_max=$ac_count
4519 fi
4520 # 10*(2^10) chars as input seems more than enough
4521 test $ac_count -gt 10 && break
4522 done
4523 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4524 esac
4525
4526
4527 $ac_path_GREP_found && break 3
4528 done
4529 done
4530
4531 done
4532 IFS=$as_save_IFS
4533
4534
4535 fi
4536
4537 GREP="$ac_cv_path_GREP"
4538 if test -z "$GREP"; then
4539 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4540 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4541 { (exit 1); exit 1; }; }
4542 fi
4543
4544 else
4545 ac_cv_path_GREP=$GREP
4546 fi
4547
4548
4549 fi
4550 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4551 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4552 GREP="$ac_cv_path_GREP"
4553
4554
4555 { echo "$as_me:$LINENO: checking for egrep" >&5
4556 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4557 if test "${ac_cv_path_EGREP+set}" = set; then
4558 echo $ECHO_N "(cached) $ECHO_C" >&6
4559 else
4560 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4561 then ac_cv_path_EGREP="$GREP -E"
4562 else
4563 # Extract the first word of "egrep" to use in msg output
4564 if test -z "$EGREP"; then
4565 set dummy egrep; ac_prog_name=$2
4566 if test "${ac_cv_path_EGREP+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4568 else
4569 ac_path_EGREP_found=false
4570 # Loop through the user's path and test for each of PROGNAME-LIST
4571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4573 do
4574 IFS=$as_save_IFS
4575 test -z "$as_dir" && as_dir=.
4576 for ac_prog in egrep; do
4577 for ac_exec_ext in '' $ac_executable_extensions; do
4578 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4579 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4580 # Check for GNU ac_path_EGREP and select it if it is found.
4581 # Check for GNU $ac_path_EGREP
4582 case `"$ac_path_EGREP" --version 2>&1` in
4583 *GNU*)
4584 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4585 *)
4586 ac_count=0
4587 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4588 while :
4589 do
4590 cat "conftest.in" "conftest.in" >"conftest.tmp"
4591 mv "conftest.tmp" "conftest.in"
4592 cp "conftest.in" "conftest.nl"
4593 echo 'EGREP' >> "conftest.nl"
4594 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4595 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4596 ac_count=`expr $ac_count + 1`
4597 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4598 # Best one so far, save it but keep looking for a better one
4599 ac_cv_path_EGREP="$ac_path_EGREP"
4600 ac_path_EGREP_max=$ac_count
4601 fi
4602 # 10*(2^10) chars as input seems more than enough
4603 test $ac_count -gt 10 && break
4604 done
4605 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4606 esac
4607
4608
4609 $ac_path_EGREP_found && break 3
4610 done
4611 done
4612
4613 done
4614 IFS=$as_save_IFS
4615
4616
4617 fi
4618
4619 EGREP="$ac_cv_path_EGREP"
4620 if test -z "$EGREP"; then
4621 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4622 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4623 { (exit 1); exit 1; }; }
4624 fi
4625
4626 else
4627 ac_cv_path_EGREP=$EGREP
4628 fi
4629
4630
4631 fi
4632 fi
4633 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4634 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4635 EGREP="$ac_cv_path_EGREP"
4636
4637
4638
4639 { echo "$as_me:$LINENO: checking for AIX" >&5
4640 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4641 cat >conftest.$ac_ext <<_ACEOF
4642 /* confdefs.h. */
4643 _ACEOF
4644 cat confdefs.h >>conftest.$ac_ext
4645 cat >>conftest.$ac_ext <<_ACEOF
4646 /* end confdefs.h. */
4647 #ifdef _AIX
4648 yes
4649 #endif
4650
4651 _ACEOF
4652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4653 $EGREP "yes" >/dev/null 2>&1; then
4654 { echo "$as_me:$LINENO: result: yes" >&5
4655 echo "${ECHO_T}yes" >&6; }
4656 cat >>confdefs.h <<\_ACEOF
4657 #define _ALL_SOURCE 1
4658 _ACEOF
4659
4660 else
4661 { echo "$as_me:$LINENO: result: no" >&5
4662 echo "${ECHO_T}no" >&6; }
4663 fi
4664 rm -f conftest*
4665
4666
4667
4668 cat >>confdefs.h <<\_ACEOF
4669 #define _GNU_SOURCE 1
4670 _ACEOF
4671
4672
4673
4674 ### Use -Wno-pointer-sign if the compiler supports it
4675 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4676 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4677 SAVE_CFLAGS="$CFLAGS"
4678 CFLAGS="$CFLAGS -Wno-pointer-sign"
4679 cat >conftest.$ac_ext <<_ACEOF
4680 /* confdefs.h. */
4681 _ACEOF
4682 cat confdefs.h >>conftest.$ac_ext
4683 cat >>conftest.$ac_ext <<_ACEOF
4684 /* end confdefs.h. */
4685
4686 int
4687 main ()
4688 {
4689
4690 ;
4691 return 0;
4692 }
4693 _ACEOF
4694 rm -f conftest.$ac_objext
4695 if { (ac_try="$ac_compile"
4696 case "(($ac_try" in
4697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4698 *) ac_try_echo=$ac_try;;
4699 esac
4700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4701 (eval "$ac_compile") 2>conftest.er1
4702 ac_status=$?
4703 grep -v '^ *+' conftest.er1 >conftest.err
4704 rm -f conftest.er1
4705 cat conftest.err >&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); } &&
4708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4709 { (case "(($ac_try" in
4710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4711 *) ac_try_echo=$ac_try;;
4712 esac
4713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4714 (eval "$ac_try") 2>&5
4715 ac_status=$?
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); }; } &&
4718 { ac_try='test -s conftest.$ac_objext'
4719 { (case "(($ac_try" in
4720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4721 *) ac_try_echo=$ac_try;;
4722 esac
4723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4724 (eval "$ac_try") 2>&5
4725 ac_status=$?
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); }; }; then
4728 has_option=yes
4729 else
4730 echo "$as_me: failed program was:" >&5
4731 sed 's/^/| /' conftest.$ac_ext >&5
4732
4733 has_option=no
4734 fi
4735
4736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4737 if test $has_option = yes; then
4738 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4739 fi
4740 { echo "$as_me:$LINENO: result: $has_option" >&5
4741 echo "${ECHO_T}$has_option" >&6; }
4742 CFLAGS="$SAVE_CFLAGS"
4743 unset has_option
4744 unset SAVE_CFLAGS
4745
4746 #### Some other nice autoconf tests.
4747
4748 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4749 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4750 LN_S=$as_ln_s
4751 if test "$LN_S" = "ln -s"; then
4752 { echo "$as_me:$LINENO: result: yes" >&5
4753 echo "${ECHO_T}yes" >&6; }
4754 else
4755 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4756 echo "${ECHO_T}no, using $LN_S" >&6; }
4757 fi
4758
4759 ac_ext=c
4760 ac_cpp='$CPP $CPPFLAGS'
4761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4764 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4765 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4766 # On Suns, sometimes $CPP names a directory.
4767 if test -n "$CPP" && test -d "$CPP"; then
4768 CPP=
4769 fi
4770 if test -z "$CPP"; then
4771 if test "${ac_cv_prog_CPP+set}" = set; then
4772 echo $ECHO_N "(cached) $ECHO_C" >&6
4773 else
4774 # Double quotes because CPP needs to be expanded
4775 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4776 do
4777 ac_preproc_ok=false
4778 for ac_c_preproc_warn_flag in '' yes
4779 do
4780 # Use a header file that comes with gcc, so configuring glibc
4781 # with a fresh cross-compiler works.
4782 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4783 # <limits.h> exists even on freestanding compilers.
4784 # On the NeXT, cc -E runs the code through the compiler's parser,
4785 # not just through cpp. "Syntax error" is here to catch this case.
4786 cat >conftest.$ac_ext <<_ACEOF
4787 /* confdefs.h. */
4788 _ACEOF
4789 cat confdefs.h >>conftest.$ac_ext
4790 cat >>conftest.$ac_ext <<_ACEOF
4791 /* end confdefs.h. */
4792 #ifdef __STDC__
4793 # include <limits.h>
4794 #else
4795 # include <assert.h>
4796 #endif
4797 Syntax error
4798 _ACEOF
4799 if { (ac_try="$ac_cpp conftest.$ac_ext"
4800 case "(($ac_try" in
4801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4802 *) ac_try_echo=$ac_try;;
4803 esac
4804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4806 ac_status=$?
4807 grep -v '^ *+' conftest.er1 >conftest.err
4808 rm -f conftest.er1
4809 cat conftest.err >&5
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); } >/dev/null; then
4812 if test -s conftest.err; then
4813 ac_cpp_err=$ac_c_preproc_warn_flag
4814 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4815 else
4816 ac_cpp_err=
4817 fi
4818 else
4819 ac_cpp_err=yes
4820 fi
4821 if test -z "$ac_cpp_err"; then
4822 :
4823 else
4824 echo "$as_me: failed program was:" >&5
4825 sed 's/^/| /' conftest.$ac_ext >&5
4826
4827 # Broken: fails on valid input.
4828 continue
4829 fi
4830
4831 rm -f conftest.err conftest.$ac_ext
4832
4833 # OK, works on sane cases. Now check whether nonexistent headers
4834 # can be detected and how.
4835 cat >conftest.$ac_ext <<_ACEOF
4836 /* confdefs.h. */
4837 _ACEOF
4838 cat confdefs.h >>conftest.$ac_ext
4839 cat >>conftest.$ac_ext <<_ACEOF
4840 /* end confdefs.h. */
4841 #include <ac_nonexistent.h>
4842 _ACEOF
4843 if { (ac_try="$ac_cpp conftest.$ac_ext"
4844 case "(($ac_try" in
4845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4846 *) ac_try_echo=$ac_try;;
4847 esac
4848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4850 ac_status=$?
4851 grep -v '^ *+' conftest.er1 >conftest.err
4852 rm -f conftest.er1
4853 cat conftest.err >&5
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); } >/dev/null; then
4856 if test -s conftest.err; then
4857 ac_cpp_err=$ac_c_preproc_warn_flag
4858 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4859 else
4860 ac_cpp_err=
4861 fi
4862 else
4863 ac_cpp_err=yes
4864 fi
4865 if test -z "$ac_cpp_err"; then
4866 # Broken: success on invalid input.
4867 continue
4868 else
4869 echo "$as_me: failed program was:" >&5
4870 sed 's/^/| /' conftest.$ac_ext >&5
4871
4872 # Passes both tests.
4873 ac_preproc_ok=:
4874 break
4875 fi
4876
4877 rm -f conftest.err conftest.$ac_ext
4878
4879 done
4880 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4881 rm -f conftest.err conftest.$ac_ext
4882 if $ac_preproc_ok; then
4883 break
4884 fi
4885
4886 done
4887 ac_cv_prog_CPP=$CPP
4888
4889 fi
4890 CPP=$ac_cv_prog_CPP
4891 else
4892 ac_cv_prog_CPP=$CPP
4893 fi
4894 { echo "$as_me:$LINENO: result: $CPP" >&5
4895 echo "${ECHO_T}$CPP" >&6; }
4896 ac_preproc_ok=false
4897 for ac_c_preproc_warn_flag in '' yes
4898 do
4899 # Use a header file that comes with gcc, so configuring glibc
4900 # with a fresh cross-compiler works.
4901 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4902 # <limits.h> exists even on freestanding compilers.
4903 # On the NeXT, cc -E runs the code through the compiler's parser,
4904 # not just through cpp. "Syntax error" is here to catch this case.
4905 cat >conftest.$ac_ext <<_ACEOF
4906 /* confdefs.h. */
4907 _ACEOF
4908 cat confdefs.h >>conftest.$ac_ext
4909 cat >>conftest.$ac_ext <<_ACEOF
4910 /* end confdefs.h. */
4911 #ifdef __STDC__
4912 # include <limits.h>
4913 #else
4914 # include <assert.h>
4915 #endif
4916 Syntax error
4917 _ACEOF
4918 if { (ac_try="$ac_cpp conftest.$ac_ext"
4919 case "(($ac_try" in
4920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4921 *) ac_try_echo=$ac_try;;
4922 esac
4923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4924 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4925 ac_status=$?
4926 grep -v '^ *+' conftest.er1 >conftest.err
4927 rm -f conftest.er1
4928 cat conftest.err >&5
4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); } >/dev/null; then
4931 if test -s conftest.err; then
4932 ac_cpp_err=$ac_c_preproc_warn_flag
4933 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4934 else
4935 ac_cpp_err=
4936 fi
4937 else
4938 ac_cpp_err=yes
4939 fi
4940 if test -z "$ac_cpp_err"; then
4941 :
4942 else
4943 echo "$as_me: failed program was:" >&5
4944 sed 's/^/| /' conftest.$ac_ext >&5
4945
4946 # Broken: fails on valid input.
4947 continue
4948 fi
4949
4950 rm -f conftest.err conftest.$ac_ext
4951
4952 # OK, works on sane cases. Now check whether nonexistent headers
4953 # can be detected and how.
4954 cat >conftest.$ac_ext <<_ACEOF
4955 /* confdefs.h. */
4956 _ACEOF
4957 cat confdefs.h >>conftest.$ac_ext
4958 cat >>conftest.$ac_ext <<_ACEOF
4959 /* end confdefs.h. */
4960 #include <ac_nonexistent.h>
4961 _ACEOF
4962 if { (ac_try="$ac_cpp conftest.$ac_ext"
4963 case "(($ac_try" in
4964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4965 *) ac_try_echo=$ac_try;;
4966 esac
4967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4969 ac_status=$?
4970 grep -v '^ *+' conftest.er1 >conftest.err
4971 rm -f conftest.er1
4972 cat conftest.err >&5
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); } >/dev/null; then
4975 if test -s conftest.err; then
4976 ac_cpp_err=$ac_c_preproc_warn_flag
4977 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4978 else
4979 ac_cpp_err=
4980 fi
4981 else
4982 ac_cpp_err=yes
4983 fi
4984 if test -z "$ac_cpp_err"; then
4985 # Broken: success on invalid input.
4986 continue
4987 else
4988 echo "$as_me: failed program was:" >&5
4989 sed 's/^/| /' conftest.$ac_ext >&5
4990
4991 # Passes both tests.
4992 ac_preproc_ok=:
4993 break
4994 fi
4995
4996 rm -f conftest.err conftest.$ac_ext
4997
4998 done
4999 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5000 rm -f conftest.err conftest.$ac_ext
5001 if $ac_preproc_ok; then
5002 :
5003 else
5004 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5005 See \`config.log' for more details." >&5
5006 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5007 See \`config.log' for more details." >&2;}
5008 { (exit 1); exit 1; }; }
5009 fi
5010
5011 ac_ext=c
5012 ac_cpp='$CPP $CPPFLAGS'
5013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5016
5017 # Find a good install program. We prefer a C program (faster),
5018 # so one script is as good as another. But avoid the broken or
5019 # incompatible versions:
5020 # SysV /etc/install, /usr/sbin/install
5021 # SunOS /usr/etc/install
5022 # IRIX /sbin/install
5023 # AIX /bin/install
5024 # AmigaOS /C/install, which installs bootblocks on floppy discs
5025 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5026 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5027 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5028 # OS/2's system install, which has a completely different semantic
5029 # ./install, which can be erroneously created by make from ./install.sh.
5030 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5031 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5032 if test -z "$INSTALL"; then
5033 if test "${ac_cv_path_install+set}" = set; then
5034 echo $ECHO_N "(cached) $ECHO_C" >&6
5035 else
5036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037 for as_dir in $PATH
5038 do
5039 IFS=$as_save_IFS
5040 test -z "$as_dir" && as_dir=.
5041 # Account for people who put trailing slashes in PATH elements.
5042 case $as_dir/ in
5043 ./ | .// | /cC/* | \
5044 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5045 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5046 /usr/ucb/* ) ;;
5047 *)
5048 # OSF1 and SCO ODT 3.0 have their own names for install.
5049 # Don't use installbsd from OSF since it installs stuff as root
5050 # by default.
5051 for ac_prog in ginstall scoinst install; do
5052 for ac_exec_ext in '' $ac_executable_extensions; do
5053 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
5054 if test $ac_prog = install &&
5055 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5056 # AIX install. It has an incompatible calling convention.
5057 :
5058 elif test $ac_prog = install &&
5059 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5060 # program-specific install script used by HP pwplus--don't use.
5061 :
5062 else
5063 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5064 break 3
5065 fi
5066 fi
5067 done
5068 done
5069 ;;
5070 esac
5071 done
5072 IFS=$as_save_IFS
5073
5074
5075 fi
5076 if test "${ac_cv_path_install+set}" = set; then
5077 INSTALL=$ac_cv_path_install
5078 else
5079 # As a last resort, use the slow shell script. Don't cache a
5080 # value for INSTALL within a source directory, because that will
5081 # break other packages using the cache if that directory is
5082 # removed, or if the value is a relative name.
5083 INSTALL=$ac_install_sh
5084 fi
5085 fi
5086 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5087 echo "${ECHO_T}$INSTALL" >&6; }
5088
5089 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5090 # It thinks the first close brace ends the variable substitution.
5091 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5092
5093 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5094
5095 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5096
5097 if test "x$RANLIB" = x; then
5098 if test -n "$ac_tool_prefix"; then
5099 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5100 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5103 if test "${ac_cv_prog_RANLIB+set}" = set; then
5104 echo $ECHO_N "(cached) $ECHO_C" >&6
5105 else
5106 if test -n "$RANLIB"; then
5107 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5108 else
5109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110 for as_dir in $PATH
5111 do
5112 IFS=$as_save_IFS
5113 test -z "$as_dir" && as_dir=.
5114 for ac_exec_ext in '' $ac_executable_extensions; do
5115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5116 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5118 break 2
5119 fi
5120 done
5121 done
5122 IFS=$as_save_IFS
5123
5124 fi
5125 fi
5126 RANLIB=$ac_cv_prog_RANLIB
5127 if test -n "$RANLIB"; then
5128 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5129 echo "${ECHO_T}$RANLIB" >&6; }
5130 else
5131 { echo "$as_me:$LINENO: result: no" >&5
5132 echo "${ECHO_T}no" >&6; }
5133 fi
5134
5135
5136 fi
5137 if test -z "$ac_cv_prog_RANLIB"; then
5138 ac_ct_RANLIB=$RANLIB
5139 # Extract the first word of "ranlib", so it can be a program name with args.
5140 set dummy ranlib; ac_word=$2
5141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5143 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5144 echo $ECHO_N "(cached) $ECHO_C" >&6
5145 else
5146 if test -n "$ac_ct_RANLIB"; then
5147 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5148 else
5149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150 for as_dir in $PATH
5151 do
5152 IFS=$as_save_IFS
5153 test -z "$as_dir" && as_dir=.
5154 for ac_exec_ext in '' $ac_executable_extensions; do
5155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5156 ac_cv_prog_ac_ct_RANLIB="ranlib"
5157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5158 break 2
5159 fi
5160 done
5161 done
5162 IFS=$as_save_IFS
5163
5164 fi
5165 fi
5166 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5167 if test -n "$ac_ct_RANLIB"; then
5168 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5169 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5170 else
5171 { echo "$as_me:$LINENO: result: no" >&5
5172 echo "${ECHO_T}no" >&6; }
5173 fi
5174
5175 if test "x$ac_ct_RANLIB" = x; then
5176 RANLIB=":"
5177 else
5178 case $cross_compiling:$ac_tool_warned in
5179 yes:)
5180 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5181 whose name does not start with the host triplet. If you think this
5182 configuration is useful to you, please write to autoconf@gnu.org." >&5
5183 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5184 whose name does not start with the host triplet. If you think this
5185 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5186 ac_tool_warned=yes ;;
5187 esac
5188 RANLIB=$ac_ct_RANLIB
5189 fi
5190 else
5191 RANLIB="$ac_cv_prog_RANLIB"
5192 fi
5193
5194 fi
5195 # Extract the first word of "install-info", so it can be a program name with args.
5196 set dummy install-info; ac_word=$2
5197 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5199 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5200 echo $ECHO_N "(cached) $ECHO_C" >&6
5201 else
5202 case $INSTALL_INFO in
5203 [\\/]* | ?:[\\/]*)
5204 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5205 ;;
5206 *)
5207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5208 for as_dir in $PATH
5209 do
5210 IFS=$as_save_IFS
5211 test -z "$as_dir" && as_dir=.
5212 for ac_exec_ext in '' $ac_executable_extensions; do
5213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5214 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5216 break 2
5217 fi
5218 done
5219 done
5220 IFS=$as_save_IFS
5221
5222 ;;
5223 esac
5224 fi
5225 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5226 if test -n "$INSTALL_INFO"; then
5227 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5228 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5229 else
5230 { echo "$as_me:$LINENO: result: no" >&5
5231 echo "${ECHO_T}no" >&6; }
5232 fi
5233
5234
5235 # Extract the first word of "install-info", so it can be a program name with args.
5236 set dummy install-info; ac_word=$2
5237 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5239 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5240 echo $ECHO_N "(cached) $ECHO_C" >&6
5241 else
5242 case $INSTALL_INFO in
5243 [\\/]* | ?:[\\/]*)
5244 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5245 ;;
5246 *)
5247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5248 for as_dir in /usr/sbin
5249 do
5250 IFS=$as_save_IFS
5251 test -z "$as_dir" && as_dir=.
5252 for ac_exec_ext in '' $ac_executable_extensions; do
5253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5254 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5256 break 2
5257 fi
5258 done
5259 done
5260 IFS=$as_save_IFS
5261
5262 ;;
5263 esac
5264 fi
5265 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5266 if test -n "$INSTALL_INFO"; then
5267 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5268 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5269 else
5270 { echo "$as_me:$LINENO: result: no" >&5
5271 echo "${ECHO_T}no" >&6; }
5272 fi
5273
5274
5275 # Extract the first word of "install-info", so it can be a program name with args.
5276 set dummy install-info; ac_word=$2
5277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5279 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5280 echo $ECHO_N "(cached) $ECHO_C" >&6
5281 else
5282 case $INSTALL_INFO in
5283 [\\/]* | ?:[\\/]*)
5284 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5285 ;;
5286 *)
5287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288 for as_dir in /sbin
5289 do
5290 IFS=$as_save_IFS
5291 test -z "$as_dir" && as_dir=.
5292 for ac_exec_ext in '' $ac_executable_extensions; do
5293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5294 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5296 break 2
5297 fi
5298 done
5299 done
5300 IFS=$as_save_IFS
5301
5302 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5303 ;;
5304 esac
5305 fi
5306 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5307 if test -n "$INSTALL_INFO"; then
5308 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5309 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5310 else
5311 { echo "$as_me:$LINENO: result: no" >&5
5312 echo "${ECHO_T}no" >&6; }
5313 fi
5314
5315
5316 # Extract the first word of "gzip", so it can be a program name with args.
5317 set dummy gzip; ac_word=$2
5318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5320 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5321 echo $ECHO_N "(cached) $ECHO_C" >&6
5322 else
5323 case $GZIP_PROG in
5324 [\\/]* | ?:[\\/]*)
5325 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5326 ;;
5327 *)
5328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329 for as_dir in $PATH
5330 do
5331 IFS=$as_save_IFS
5332 test -z "$as_dir" && as_dir=.
5333 for ac_exec_ext in '' $ac_executable_extensions; do
5334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5335 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5337 break 2
5338 fi
5339 done
5340 done
5341 IFS=$as_save_IFS
5342
5343 ;;
5344 esac
5345 fi
5346 GZIP_PROG=$ac_cv_path_GZIP_PROG
5347 if test -n "$GZIP_PROG"; then
5348 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5349 echo "${ECHO_T}$GZIP_PROG" >&6; }
5350 else
5351 { echo "$as_me:$LINENO: result: no" >&5
5352 echo "${ECHO_T}no" >&6; }
5353 fi
5354
5355
5356
5357
5358 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5359 then
5360 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5361 fi
5362
5363 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5364 then
5365 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5366 fi
5367
5368
5369 late_LDFLAGS=$LDFLAGS
5370 if test "$GCC" = yes; then
5371 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5372 else
5373 LDFLAGS="$LDFLAGS -znocombreloc"
5374 fi
5375
5376 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5377 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5378 cat >conftest.$ac_ext <<_ACEOF
5379 main(){return 0;}
5380 _ACEOF
5381 rm -f conftest.$ac_objext conftest$ac_exeext
5382 if { (ac_try="$ac_link"
5383 case "(($ac_try" in
5384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5385 *) ac_try_echo=$ac_try;;
5386 esac
5387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5388 (eval "$ac_link") 2>conftest.er1
5389 ac_status=$?
5390 grep -v '^ *+' conftest.er1 >conftest.err
5391 rm -f conftest.er1
5392 cat conftest.err >&5
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); } &&
5395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5396 { (case "(($ac_try" in
5397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5398 *) ac_try_echo=$ac_try;;
5399 esac
5400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5401 (eval "$ac_try") 2>&5
5402 ac_status=$?
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); }; } &&
5405 { ac_try='test -s conftest$ac_exeext'
5406 { (case "(($ac_try" in
5407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5408 *) ac_try_echo=$ac_try;;
5409 esac
5410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5411 (eval "$ac_try") 2>&5
5412 ac_status=$?
5413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414 (exit $ac_status); }; }; then
5415 { echo "$as_me:$LINENO: result: yes" >&5
5416 echo "${ECHO_T}yes" >&6; }
5417 else
5418 echo "$as_me: failed program was:" >&5
5419 sed 's/^/| /' conftest.$ac_ext >&5
5420
5421 LDFLAGS=$late_LDFLAGS
5422 { echo "$as_me:$LINENO: result: no" >&5
5423 echo "${ECHO_T}no" >&6; }
5424 fi
5425
5426 rm -f core conftest.err conftest.$ac_objext \
5427 conftest$ac_exeext conftest.$ac_ext
5428
5429 #### Extract some information from the operating system and machine files.
5430
5431 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5432 - which libraries the lib-src programs will want, and
5433 - whether the GNU malloc routines are usable..." >&5
5434 echo "$as_me: checking the machine- and system-dependent files to find out
5435 - which libraries the lib-src programs will want, and
5436 - whether the GNU malloc routines are usable..." >&6;}
5437
5438 ### First figure out CFLAGS (which we use for running the compiler here)
5439 ### and REAL_CFLAGS (which we use for real compilation).
5440 ### The two are the same except on a few systems, where they are made
5441 ### different to work around various lossages. For example,
5442 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5443 ### as implying static linking.
5444
5445 ### If the CFLAGS env var is specified, we use that value
5446 ### instead of the default.
5447
5448 ### It's not important that this name contain the PID; you can't run
5449 ### two configures in the same directory and have anything work
5450 ### anyway.
5451 tempcname="conftest.c"
5452
5453 echo '
5454 #include "'${srcdir}'/src/'${opsysfile}'"
5455 #include "'${srcdir}'/src/'${machfile}'"
5456 #ifndef LIBS_MACHINE
5457 #define LIBS_MACHINE
5458 #endif
5459 #ifndef LIBS_SYSTEM
5460 #define LIBS_SYSTEM
5461 #endif
5462 #ifndef C_SWITCH_SYSTEM
5463 #define C_SWITCH_SYSTEM
5464 #endif
5465 #ifndef C_SWITCH_MACHINE
5466 #define C_SWITCH_MACHINE
5467 #endif
5468 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5469 configure___ c_switch_system=C_SWITCH_SYSTEM
5470 configure___ c_switch_machine=C_SWITCH_MACHINE
5471
5472 #ifndef LIB_X11_LIB
5473 #define LIB_X11_LIB -lX11
5474 #endif
5475
5476 #ifndef LIBX11_MACHINE
5477 #define LIBX11_MACHINE
5478 #endif
5479
5480 #ifndef LIBX11_SYSTEM
5481 #define LIBX11_SYSTEM
5482 #endif
5483 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5484
5485 #ifdef UNEXEC
5486 configure___ unexec=UNEXEC
5487 #else
5488 configure___ unexec=unexec.o
5489 #endif
5490
5491 #ifdef SYSTEM_MALLOC
5492 configure___ system_malloc=yes
5493 #else
5494 configure___ system_malloc=no
5495 #endif
5496
5497 #ifdef USE_MMAP_FOR_BUFFERS
5498 configure___ use_mmap_for_buffers=yes
5499 #else
5500 configure___ use_mmap_for_buffers=no
5501 #endif
5502
5503 #ifndef C_DEBUG_SWITCH
5504 #define C_DEBUG_SWITCH -g
5505 #endif
5506
5507 #ifndef C_OPTIMIZE_SWITCH
5508 #ifdef __GNUC__
5509 #define C_OPTIMIZE_SWITCH -O2
5510 #else
5511 #define C_OPTIMIZE_SWITCH -O
5512 #endif
5513 #endif
5514
5515 #ifndef C_WARNINGS_SWITCH
5516 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5517 #endif
5518
5519 #ifndef LD_SWITCH_MACHINE
5520 #define LD_SWITCH_MACHINE
5521 #endif
5522
5523 #ifndef LD_SWITCH_SYSTEM
5524 #define LD_SWITCH_SYSTEM
5525 #endif
5526
5527 #ifndef LD_SWITCH_X_SITE_AUX
5528 #define LD_SWITCH_X_SITE_AUX
5529 #endif
5530
5531 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5532 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5533
5534 #ifdef THIS_IS_CONFIGURE
5535
5536 /* Get the CFLAGS for tests in configure. */
5537 #ifdef __GNUC__
5538 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5539 #else
5540 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5541 #endif
5542
5543 #else /* not THIS_IS_CONFIGURE */
5544
5545 /* Get the CFLAGS for real compilation. */
5546 #ifdef __GNUC__
5547 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5548 #else
5549 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5550 #endif
5551
5552 #endif /* not THIS_IS_CONFIGURE */
5553 ' > ${tempcname}
5554
5555 # The value of CPP is a quoted variable reference, so we need to do this
5556 # to get its actual value...
5557 CPP=`eval "echo $CPP"`
5558 eval `${CPP} -Isrc ${tempcname} \
5559 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5560 if test "x$SPECIFIED_CFLAGS" = x; then
5561 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5562 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5563 else
5564 REAL_CFLAGS="$CFLAGS"
5565 fi
5566 rm ${tempcname}
5567
5568 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5569
5570 ### Make sure subsequent tests use flags consistent with the build flags.
5571
5572 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5573 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5574 else
5575 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5576 fi
5577
5578
5579
5580 # Check whether --enable-largefile was given.
5581 if test "${enable_largefile+set}" = set; then
5582 enableval=$enable_largefile;
5583 fi
5584
5585 if test "$enable_largefile" != no; then
5586
5587 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5588 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5589 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5590 echo $ECHO_N "(cached) $ECHO_C" >&6
5591 else
5592 ac_cv_sys_largefile_CC=no
5593 if test "$GCC" != yes; then
5594 ac_save_CC=$CC
5595 while :; do
5596 # IRIX 6.2 and later do not support large files by default,
5597 # so use the C compiler's -n32 option if that helps.
5598 cat >conftest.$ac_ext <<_ACEOF
5599 /* confdefs.h. */
5600 _ACEOF
5601 cat confdefs.h >>conftest.$ac_ext
5602 cat >>conftest.$ac_ext <<_ACEOF
5603 /* end confdefs.h. */
5604 #include <sys/types.h>
5605 /* Check that off_t can represent 2**63 - 1 correctly.
5606 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5607 since some C++ compilers masquerading as C compilers
5608 incorrectly reject 9223372036854775807. */
5609 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5610 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5611 && LARGE_OFF_T % 2147483647 == 1)
5612 ? 1 : -1];
5613 int
5614 main ()
5615 {
5616
5617 ;
5618 return 0;
5619 }
5620 _ACEOF
5621 rm -f conftest.$ac_objext
5622 if { (ac_try="$ac_compile"
5623 case "(($ac_try" in
5624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5625 *) ac_try_echo=$ac_try;;
5626 esac
5627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5628 (eval "$ac_compile") 2>conftest.er1
5629 ac_status=$?
5630 grep -v '^ *+' conftest.er1 >conftest.err
5631 rm -f conftest.er1
5632 cat conftest.err >&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); } &&
5635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5636 { (case "(($ac_try" in
5637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5638 *) ac_try_echo=$ac_try;;
5639 esac
5640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5641 (eval "$ac_try") 2>&5
5642 ac_status=$?
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); }; } &&
5645 { ac_try='test -s conftest.$ac_objext'
5646 { (case "(($ac_try" in
5647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5648 *) ac_try_echo=$ac_try;;
5649 esac
5650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5651 (eval "$ac_try") 2>&5
5652 ac_status=$?
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); }; }; then
5655 break
5656 else
5657 echo "$as_me: failed program was:" >&5
5658 sed 's/^/| /' conftest.$ac_ext >&5
5659
5660
5661 fi
5662
5663 rm -f core conftest.err conftest.$ac_objext
5664 CC="$CC -n32"
5665 rm -f conftest.$ac_objext
5666 if { (ac_try="$ac_compile"
5667 case "(($ac_try" in
5668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5669 *) ac_try_echo=$ac_try;;
5670 esac
5671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5672 (eval "$ac_compile") 2>conftest.er1
5673 ac_status=$?
5674 grep -v '^ *+' conftest.er1 >conftest.err
5675 rm -f conftest.er1
5676 cat conftest.err >&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); } &&
5679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5680 { (case "(($ac_try" in
5681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5682 *) ac_try_echo=$ac_try;;
5683 esac
5684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5685 (eval "$ac_try") 2>&5
5686 ac_status=$?
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); }; } &&
5689 { ac_try='test -s conftest.$ac_objext'
5690 { (case "(($ac_try" in
5691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5692 *) ac_try_echo=$ac_try;;
5693 esac
5694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5695 (eval "$ac_try") 2>&5
5696 ac_status=$?
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); }; }; then
5699 ac_cv_sys_largefile_CC=' -n32'; break
5700 else
5701 echo "$as_me: failed program was:" >&5
5702 sed 's/^/| /' conftest.$ac_ext >&5
5703
5704
5705 fi
5706
5707 rm -f core conftest.err conftest.$ac_objext
5708 break
5709 done
5710 CC=$ac_save_CC
5711 rm -f conftest.$ac_ext
5712 fi
5713 fi
5714 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5715 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5716 if test "$ac_cv_sys_largefile_CC" != no; then
5717 CC=$CC$ac_cv_sys_largefile_CC
5718 fi
5719
5720 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5721 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5722 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5723 echo $ECHO_N "(cached) $ECHO_C" >&6
5724 else
5725 while :; do
5726 ac_cv_sys_file_offset_bits=no
5727 cat >conftest.$ac_ext <<_ACEOF
5728 /* confdefs.h. */
5729 _ACEOF
5730 cat confdefs.h >>conftest.$ac_ext
5731 cat >>conftest.$ac_ext <<_ACEOF
5732 /* end confdefs.h. */
5733 #include <sys/types.h>
5734 /* Check that off_t can represent 2**63 - 1 correctly.
5735 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5736 since some C++ compilers masquerading as C compilers
5737 incorrectly reject 9223372036854775807. */
5738 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5739 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5740 && LARGE_OFF_T % 2147483647 == 1)
5741 ? 1 : -1];
5742 int
5743 main ()
5744 {
5745
5746 ;
5747 return 0;
5748 }
5749 _ACEOF
5750 rm -f conftest.$ac_objext
5751 if { (ac_try="$ac_compile"
5752 case "(($ac_try" in
5753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5754 *) ac_try_echo=$ac_try;;
5755 esac
5756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5757 (eval "$ac_compile") 2>conftest.er1
5758 ac_status=$?
5759 grep -v '^ *+' conftest.er1 >conftest.err
5760 rm -f conftest.er1
5761 cat conftest.err >&5
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); } &&
5764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5765 { (case "(($ac_try" in
5766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5767 *) ac_try_echo=$ac_try;;
5768 esac
5769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5770 (eval "$ac_try") 2>&5
5771 ac_status=$?
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); }; } &&
5774 { ac_try='test -s conftest.$ac_objext'
5775 { (case "(($ac_try" in
5776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5777 *) ac_try_echo=$ac_try;;
5778 esac
5779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5780 (eval "$ac_try") 2>&5
5781 ac_status=$?
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); }; }; then
5784 break
5785 else
5786 echo "$as_me: failed program was:" >&5
5787 sed 's/^/| /' conftest.$ac_ext >&5
5788
5789
5790 fi
5791
5792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5793 cat >conftest.$ac_ext <<_ACEOF
5794 /* confdefs.h. */
5795 _ACEOF
5796 cat confdefs.h >>conftest.$ac_ext
5797 cat >>conftest.$ac_ext <<_ACEOF
5798 /* end confdefs.h. */
5799 #define _FILE_OFFSET_BITS 64
5800 #include <sys/types.h>
5801 /* Check that off_t can represent 2**63 - 1 correctly.
5802 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5803 since some C++ compilers masquerading as C compilers
5804 incorrectly reject 9223372036854775807. */
5805 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5806 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5807 && LARGE_OFF_T % 2147483647 == 1)
5808 ? 1 : -1];
5809 int
5810 main ()
5811 {
5812
5813 ;
5814 return 0;
5815 }
5816 _ACEOF
5817 rm -f conftest.$ac_objext
5818 if { (ac_try="$ac_compile"
5819 case "(($ac_try" in
5820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5821 *) ac_try_echo=$ac_try;;
5822 esac
5823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5824 (eval "$ac_compile") 2>conftest.er1
5825 ac_status=$?
5826 grep -v '^ *+' conftest.er1 >conftest.err
5827 rm -f conftest.er1
5828 cat conftest.err >&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); } &&
5831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5832 { (case "(($ac_try" in
5833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5834 *) ac_try_echo=$ac_try;;
5835 esac
5836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5837 (eval "$ac_try") 2>&5
5838 ac_status=$?
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); }; } &&
5841 { ac_try='test -s conftest.$ac_objext'
5842 { (case "(($ac_try" in
5843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5844 *) ac_try_echo=$ac_try;;
5845 esac
5846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5847 (eval "$ac_try") 2>&5
5848 ac_status=$?
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); }; }; then
5851 ac_cv_sys_file_offset_bits=64; break
5852 else
5853 echo "$as_me: failed program was:" >&5
5854 sed 's/^/| /' conftest.$ac_ext >&5
5855
5856
5857 fi
5858
5859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5860 break
5861 done
5862 fi
5863 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5864 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5865 if test "$ac_cv_sys_file_offset_bits" != no; then
5866
5867 cat >>confdefs.h <<_ACEOF
5868 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5869 _ACEOF
5870
5871 fi
5872 rm -f conftest*
5873 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5874 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5875 if test "${ac_cv_sys_large_files+set}" = set; then
5876 echo $ECHO_N "(cached) $ECHO_C" >&6
5877 else
5878 while :; do
5879 ac_cv_sys_large_files=no
5880 cat >conftest.$ac_ext <<_ACEOF
5881 /* confdefs.h. */
5882 _ACEOF
5883 cat confdefs.h >>conftest.$ac_ext
5884 cat >>conftest.$ac_ext <<_ACEOF
5885 /* end confdefs.h. */
5886 #include <sys/types.h>
5887 /* Check that off_t can represent 2**63 - 1 correctly.
5888 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5889 since some C++ compilers masquerading as C compilers
5890 incorrectly reject 9223372036854775807. */
5891 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5892 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5893 && LARGE_OFF_T % 2147483647 == 1)
5894 ? 1 : -1];
5895 int
5896 main ()
5897 {
5898
5899 ;
5900 return 0;
5901 }
5902 _ACEOF
5903 rm -f conftest.$ac_objext
5904 if { (ac_try="$ac_compile"
5905 case "(($ac_try" in
5906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5907 *) ac_try_echo=$ac_try;;
5908 esac
5909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5910 (eval "$ac_compile") 2>conftest.er1
5911 ac_status=$?
5912 grep -v '^ *+' conftest.er1 >conftest.err
5913 rm -f conftest.er1
5914 cat conftest.err >&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); } &&
5917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5918 { (case "(($ac_try" in
5919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5920 *) ac_try_echo=$ac_try;;
5921 esac
5922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5923 (eval "$ac_try") 2>&5
5924 ac_status=$?
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); }; } &&
5927 { ac_try='test -s conftest.$ac_objext'
5928 { (case "(($ac_try" in
5929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5930 *) ac_try_echo=$ac_try;;
5931 esac
5932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5933 (eval "$ac_try") 2>&5
5934 ac_status=$?
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; }; then
5937 break
5938 else
5939 echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.$ac_ext >&5
5941
5942
5943 fi
5944
5945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5946 cat >conftest.$ac_ext <<_ACEOF
5947 /* confdefs.h. */
5948 _ACEOF
5949 cat confdefs.h >>conftest.$ac_ext
5950 cat >>conftest.$ac_ext <<_ACEOF
5951 /* end confdefs.h. */
5952 #define _LARGE_FILES 1
5953 #include <sys/types.h>
5954 /* Check that off_t can represent 2**63 - 1 correctly.
5955 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5956 since some C++ compilers masquerading as C compilers
5957 incorrectly reject 9223372036854775807. */
5958 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5959 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5960 && LARGE_OFF_T % 2147483647 == 1)
5961 ? 1 : -1];
5962 int
5963 main ()
5964 {
5965
5966 ;
5967 return 0;
5968 }
5969 _ACEOF
5970 rm -f conftest.$ac_objext
5971 if { (ac_try="$ac_compile"
5972 case "(($ac_try" in
5973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5974 *) ac_try_echo=$ac_try;;
5975 esac
5976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5977 (eval "$ac_compile") 2>conftest.er1
5978 ac_status=$?
5979 grep -v '^ *+' conftest.er1 >conftest.err
5980 rm -f conftest.er1
5981 cat conftest.err >&5
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); } &&
5984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5985 { (case "(($ac_try" in
5986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5987 *) ac_try_echo=$ac_try;;
5988 esac
5989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5990 (eval "$ac_try") 2>&5
5991 ac_status=$?
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); }; } &&
5994 { ac_try='test -s conftest.$ac_objext'
5995 { (case "(($ac_try" in
5996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997 *) ac_try_echo=$ac_try;;
5998 esac
5999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6000 (eval "$ac_try") 2>&5
6001 ac_status=$?
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); }; }; then
6004 ac_cv_sys_large_files=1; break
6005 else
6006 echo "$as_me: failed program was:" >&5
6007 sed 's/^/| /' conftest.$ac_ext >&5
6008
6009
6010 fi
6011
6012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6013 break
6014 done
6015 fi
6016 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6017 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
6018 if test "$ac_cv_sys_large_files" != no; then
6019
6020 cat >>confdefs.h <<_ACEOF
6021 #define _LARGE_FILES $ac_cv_sys_large_files
6022 _ACEOF
6023
6024 fi
6025 rm -f conftest*
6026 fi
6027
6028
6029
6030 ### The standard library on x86-64 GNU/Linux distributions can
6031 ### be located in either /usr/lib64 or /usr/lib.
6032 case "${canonical}" in
6033 x86_64-*-linux-gnu* )
6034 if test -d /usr/lib64; then
6035
6036 cat >>confdefs.h <<\_ACEOF
6037 #define HAVE_X86_64_LIB64_DIR 1
6038 _ACEOF
6039
6040 fi
6041 esac
6042
6043
6044
6045
6046 if test "${with_sound}" != "no"; then
6047 # Sound support for GNU/Linux and the free BSDs.
6048 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6049 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6050 if test "${ac_cv_header_stdc+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6052 else
6053 cat >conftest.$ac_ext <<_ACEOF
6054 /* confdefs.h. */
6055 _ACEOF
6056 cat confdefs.h >>conftest.$ac_ext
6057 cat >>conftest.$ac_ext <<_ACEOF
6058 /* end confdefs.h. */
6059 #include <stdlib.h>
6060 #include <stdarg.h>
6061 #include <string.h>
6062 #include <float.h>
6063
6064 int
6065 main ()
6066 {
6067
6068 ;
6069 return 0;
6070 }
6071 _ACEOF
6072 rm -f conftest.$ac_objext
6073 if { (ac_try="$ac_compile"
6074 case "(($ac_try" in
6075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6076 *) ac_try_echo=$ac_try;;
6077 esac
6078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6079 (eval "$ac_compile") 2>conftest.er1
6080 ac_status=$?
6081 grep -v '^ *+' conftest.er1 >conftest.err
6082 rm -f conftest.er1
6083 cat conftest.err >&5
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); } &&
6086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6087 { (case "(($ac_try" in
6088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6089 *) ac_try_echo=$ac_try;;
6090 esac
6091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6092 (eval "$ac_try") 2>&5
6093 ac_status=$?
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); }; } &&
6096 { ac_try='test -s conftest.$ac_objext'
6097 { (case "(($ac_try" in
6098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6099 *) ac_try_echo=$ac_try;;
6100 esac
6101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6102 (eval "$ac_try") 2>&5
6103 ac_status=$?
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); }; }; then
6106 ac_cv_header_stdc=yes
6107 else
6108 echo "$as_me: failed program was:" >&5
6109 sed 's/^/| /' conftest.$ac_ext >&5
6110
6111 ac_cv_header_stdc=no
6112 fi
6113
6114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6115
6116 if test $ac_cv_header_stdc = yes; then
6117 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6118 cat >conftest.$ac_ext <<_ACEOF
6119 /* confdefs.h. */
6120 _ACEOF
6121 cat confdefs.h >>conftest.$ac_ext
6122 cat >>conftest.$ac_ext <<_ACEOF
6123 /* end confdefs.h. */
6124 #include <string.h>
6125
6126 _ACEOF
6127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6128 $EGREP "memchr" >/dev/null 2>&1; then
6129 :
6130 else
6131 ac_cv_header_stdc=no
6132 fi
6133 rm -f conftest*
6134
6135 fi
6136
6137 if test $ac_cv_header_stdc = yes; then
6138 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6139 cat >conftest.$ac_ext <<_ACEOF
6140 /* confdefs.h. */
6141 _ACEOF
6142 cat confdefs.h >>conftest.$ac_ext
6143 cat >>conftest.$ac_ext <<_ACEOF
6144 /* end confdefs.h. */
6145 #include <stdlib.h>
6146
6147 _ACEOF
6148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6149 $EGREP "free" >/dev/null 2>&1; then
6150 :
6151 else
6152 ac_cv_header_stdc=no
6153 fi
6154 rm -f conftest*
6155
6156 fi
6157
6158 if test $ac_cv_header_stdc = yes; then
6159 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6160 if test "$cross_compiling" = yes; then
6161 :
6162 else
6163 cat >conftest.$ac_ext <<_ACEOF
6164 /* confdefs.h. */
6165 _ACEOF
6166 cat confdefs.h >>conftest.$ac_ext
6167 cat >>conftest.$ac_ext <<_ACEOF
6168 /* end confdefs.h. */
6169 #include <ctype.h>
6170 #include <stdlib.h>
6171 #if ((' ' & 0x0FF) == 0x020)
6172 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6173 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6174 #else
6175 # define ISLOWER(c) \
6176 (('a' <= (c) && (c) <= 'i') \
6177 || ('j' <= (c) && (c) <= 'r') \
6178 || ('s' <= (c) && (c) <= 'z'))
6179 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6180 #endif
6181
6182 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6183 int
6184 main ()
6185 {
6186 int i;
6187 for (i = 0; i < 256; i++)
6188 if (XOR (islower (i), ISLOWER (i))
6189 || toupper (i) != TOUPPER (i))
6190 return 2;
6191 return 0;
6192 }
6193 _ACEOF
6194 rm -f conftest$ac_exeext
6195 if { (ac_try="$ac_link"
6196 case "(($ac_try" in
6197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6198 *) ac_try_echo=$ac_try;;
6199 esac
6200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6201 (eval "$ac_link") 2>&5
6202 ac_status=$?
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6205 { (case "(($ac_try" in
6206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6207 *) ac_try_echo=$ac_try;;
6208 esac
6209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6210 (eval "$ac_try") 2>&5
6211 ac_status=$?
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); }; }; then
6214 :
6215 else
6216 echo "$as_me: program exited with status $ac_status" >&5
6217 echo "$as_me: failed program was:" >&5
6218 sed 's/^/| /' conftest.$ac_ext >&5
6219
6220 ( exit $ac_status )
6221 ac_cv_header_stdc=no
6222 fi
6223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6224 fi
6225
6226
6227 fi
6228 fi
6229 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6230 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6231 if test $ac_cv_header_stdc = yes; then
6232
6233 cat >>confdefs.h <<\_ACEOF
6234 #define STDC_HEADERS 1
6235 _ACEOF
6236
6237 fi
6238
6239 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6250 inttypes.h stdint.h unistd.h
6251 do
6252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6253 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6256 echo $ECHO_N "(cached) $ECHO_C" >&6
6257 else
6258 cat >conftest.$ac_ext <<_ACEOF
6259 /* confdefs.h. */
6260 _ACEOF
6261 cat confdefs.h >>conftest.$ac_ext
6262 cat >>conftest.$ac_ext <<_ACEOF
6263 /* end confdefs.h. */
6264 $ac_includes_default
6265
6266 #include <$ac_header>
6267 _ACEOF
6268 rm -f conftest.$ac_objext
6269 if { (ac_try="$ac_compile"
6270 case "(($ac_try" in
6271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6272 *) ac_try_echo=$ac_try;;
6273 esac
6274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6275 (eval "$ac_compile") 2>conftest.er1
6276 ac_status=$?
6277 grep -v '^ *+' conftest.er1 >conftest.err
6278 rm -f conftest.er1
6279 cat conftest.err >&5
6280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281 (exit $ac_status); } &&
6282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6283 { (case "(($ac_try" in
6284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6285 *) ac_try_echo=$ac_try;;
6286 esac
6287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6288 (eval "$ac_try") 2>&5
6289 ac_status=$?
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); }; } &&
6292 { ac_try='test -s conftest.$ac_objext'
6293 { (case "(($ac_try" in
6294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6295 *) ac_try_echo=$ac_try;;
6296 esac
6297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6298 (eval "$ac_try") 2>&5
6299 ac_status=$?
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); }; }; then
6302 eval "$as_ac_Header=yes"
6303 else
6304 echo "$as_me: failed program was:" >&5
6305 sed 's/^/| /' conftest.$ac_ext >&5
6306
6307 eval "$as_ac_Header=no"
6308 fi
6309
6310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6311 fi
6312 ac_res=`eval echo '${'$as_ac_Header'}'`
6313 { echo "$as_me:$LINENO: result: $ac_res" >&5
6314 echo "${ECHO_T}$ac_res" >&6; }
6315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6316 cat >>confdefs.h <<_ACEOF
6317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6318 _ACEOF
6319
6320 fi
6321
6322 done
6323
6324
6325
6326
6327
6328 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6329 do
6330 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6332 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6335 echo $ECHO_N "(cached) $ECHO_C" >&6
6336 fi
6337 ac_res=`eval echo '${'$as_ac_Header'}'`
6338 { echo "$as_me:$LINENO: result: $ac_res" >&5
6339 echo "${ECHO_T}$ac_res" >&6; }
6340 else
6341 # Is the header compilable?
6342 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6343 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6344 cat >conftest.$ac_ext <<_ACEOF
6345 /* confdefs.h. */
6346 _ACEOF
6347 cat confdefs.h >>conftest.$ac_ext
6348 cat >>conftest.$ac_ext <<_ACEOF
6349 /* end confdefs.h. */
6350 $ac_includes_default
6351 #include <$ac_header>
6352 _ACEOF
6353 rm -f conftest.$ac_objext
6354 if { (ac_try="$ac_compile"
6355 case "(($ac_try" in
6356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6357 *) ac_try_echo=$ac_try;;
6358 esac
6359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6360 (eval "$ac_compile") 2>conftest.er1
6361 ac_status=$?
6362 grep -v '^ *+' conftest.er1 >conftest.err
6363 rm -f conftest.er1
6364 cat conftest.err >&5
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); } &&
6367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6368 { (case "(($ac_try" in
6369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6370 *) ac_try_echo=$ac_try;;
6371 esac
6372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6373 (eval "$ac_try") 2>&5
6374 ac_status=$?
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); }; } &&
6377 { ac_try='test -s conftest.$ac_objext'
6378 { (case "(($ac_try" in
6379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6380 *) ac_try_echo=$ac_try;;
6381 esac
6382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6383 (eval "$ac_try") 2>&5
6384 ac_status=$?
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); }; }; then
6387 ac_header_compiler=yes
6388 else
6389 echo "$as_me: failed program was:" >&5
6390 sed 's/^/| /' conftest.$ac_ext >&5
6391
6392 ac_header_compiler=no
6393 fi
6394
6395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6396 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6397 echo "${ECHO_T}$ac_header_compiler" >&6; }
6398
6399 # Is the header present?
6400 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6401 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6402 cat >conftest.$ac_ext <<_ACEOF
6403 /* confdefs.h. */
6404 _ACEOF
6405 cat confdefs.h >>conftest.$ac_ext
6406 cat >>conftest.$ac_ext <<_ACEOF
6407 /* end confdefs.h. */
6408 #include <$ac_header>
6409 _ACEOF
6410 if { (ac_try="$ac_cpp conftest.$ac_ext"
6411 case "(($ac_try" in
6412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6413 *) ac_try_echo=$ac_try;;
6414 esac
6415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6417 ac_status=$?
6418 grep -v '^ *+' conftest.er1 >conftest.err
6419 rm -f conftest.er1
6420 cat conftest.err >&5
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); } >/dev/null; then
6423 if test -s conftest.err; then
6424 ac_cpp_err=$ac_c_preproc_warn_flag
6425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6426 else
6427 ac_cpp_err=
6428 fi
6429 else
6430 ac_cpp_err=yes
6431 fi
6432 if test -z "$ac_cpp_err"; then
6433 ac_header_preproc=yes
6434 else
6435 echo "$as_me: failed program was:" >&5
6436 sed 's/^/| /' conftest.$ac_ext >&5
6437
6438 ac_header_preproc=no
6439 fi
6440
6441 rm -f conftest.err conftest.$ac_ext
6442 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6443 echo "${ECHO_T}$ac_header_preproc" >&6; }
6444
6445 # So? What about this header?
6446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6447 yes:no: )
6448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6452 ac_header_preproc=yes
6453 ;;
6454 no:yes:* )
6455 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6457 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6458 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6459 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6460 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6461 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6462 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6465 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6466 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6467
6468 ;;
6469 esac
6470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6473 echo $ECHO_N "(cached) $ECHO_C" >&6
6474 else
6475 eval "$as_ac_Header=\$ac_header_preproc"
6476 fi
6477 ac_res=`eval echo '${'$as_ac_Header'}'`
6478 { echo "$as_me:$LINENO: result: $ac_res" >&5
6479 echo "${ECHO_T}$ac_res" >&6; }
6480
6481 fi
6482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6483 cat >>confdefs.h <<_ACEOF
6484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6485 _ACEOF
6486
6487 fi
6488
6489 done
6490
6491 # Emulation library used on NetBSD.
6492 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6493 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6494 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6495 echo $ECHO_N "(cached) $ECHO_C" >&6
6496 else
6497 ac_check_lib_save_LIBS=$LIBS
6498 LIBS="-lossaudio $LIBS"
6499 cat >conftest.$ac_ext <<_ACEOF
6500 /* confdefs.h. */
6501 _ACEOF
6502 cat confdefs.h >>conftest.$ac_ext
6503 cat >>conftest.$ac_ext <<_ACEOF
6504 /* end confdefs.h. */
6505
6506 /* Override any GCC internal prototype to avoid an error.
6507 Use char because int might match the return type of a GCC
6508 builtin and then its argument prototype would still apply. */
6509 #ifdef __cplusplus
6510 extern "C"
6511 #endif
6512 char _oss_ioctl ();
6513 int
6514 main ()
6515 {
6516 return _oss_ioctl ();
6517 ;
6518 return 0;
6519 }
6520 _ACEOF
6521 rm -f conftest.$ac_objext conftest$ac_exeext
6522 if { (ac_try="$ac_link"
6523 case "(($ac_try" in
6524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6525 *) ac_try_echo=$ac_try;;
6526 esac
6527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6528 (eval "$ac_link") 2>conftest.er1
6529 ac_status=$?
6530 grep -v '^ *+' conftest.er1 >conftest.err
6531 rm -f conftest.er1
6532 cat conftest.err >&5
6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); } &&
6535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6536 { (case "(($ac_try" in
6537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6538 *) ac_try_echo=$ac_try;;
6539 esac
6540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6541 (eval "$ac_try") 2>&5
6542 ac_status=$?
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); }; } &&
6545 { ac_try='test -s conftest$ac_exeext'
6546 { (case "(($ac_try" in
6547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6548 *) ac_try_echo=$ac_try;;
6549 esac
6550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6551 (eval "$ac_try") 2>&5
6552 ac_status=$?
6553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554 (exit $ac_status); }; }; then
6555 ac_cv_lib_ossaudio__oss_ioctl=yes
6556 else
6557 echo "$as_me: failed program was:" >&5
6558 sed 's/^/| /' conftest.$ac_ext >&5
6559
6560 ac_cv_lib_ossaudio__oss_ioctl=no
6561 fi
6562
6563 rm -f core conftest.err conftest.$ac_objext \
6564 conftest$ac_exeext conftest.$ac_ext
6565 LIBS=$ac_check_lib_save_LIBS
6566 fi
6567 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6568 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6569 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6570 LIBSOUND=-lossaudio
6571 else
6572 LIBSOUND=
6573 fi
6574
6575
6576
6577 ALSA_REQUIRED=1.0.0
6578 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6579 if test "X${with_pkg_config_prog}" != X; then
6580 PKG_CONFIG="${with_pkg_config_prog}"
6581 fi
6582
6583 succeeded=no
6584
6585 if test -z "$PKG_CONFIG"; then
6586 # Extract the first word of "pkg-config", so it can be a program name with args.
6587 set dummy pkg-config; ac_word=$2
6588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6590 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6591 echo $ECHO_N "(cached) $ECHO_C" >&6
6592 else
6593 case $PKG_CONFIG in
6594 [\\/]* | ?:[\\/]*)
6595 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6596 ;;
6597 *)
6598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599 for as_dir in $PATH
6600 do
6601 IFS=$as_save_IFS
6602 test -z "$as_dir" && as_dir=.
6603 for ac_exec_ext in '' $ac_executable_extensions; do
6604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6605 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6607 break 2
6608 fi
6609 done
6610 done
6611 IFS=$as_save_IFS
6612
6613 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6614 ;;
6615 esac
6616 fi
6617 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6618 if test -n "$PKG_CONFIG"; then
6619 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6620 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6621 else
6622 { echo "$as_me:$LINENO: result: no" >&5
6623 echo "${ECHO_T}no" >&6; }
6624 fi
6625
6626
6627 fi
6628
6629 if test "$PKG_CONFIG" = "no" ; then
6630 HAVE_ALSA=no
6631 else
6632 PKG_CONFIG_MIN_VERSION=0.9.0
6633 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6634 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6635 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6636
6637 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6638 { echo "$as_me:$LINENO: result: yes" >&5
6639 echo "${ECHO_T}yes" >&6; }
6640 succeeded=yes
6641
6642 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6643 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6644 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"`
6645 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6646 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6647
6648 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6649 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6650 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"`
6651 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6652 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6653 else
6654 { echo "$as_me:$LINENO: result: no" >&5
6655 echo "${ECHO_T}no" >&6; }
6656 ALSA_CFLAGS=""
6657 ALSA_LIBS=""
6658 ## If we have a custom action on failure, don't print errors, but
6659 ## do set a variable so people can do so.
6660 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6661
6662 fi
6663
6664
6665
6666 else
6667 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6668 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6669 fi
6670 fi
6671
6672 if test $succeeded = yes; then
6673 HAVE_ALSA=yes
6674 else
6675 HAVE_ALSA=no
6676 fi
6677
6678 if test $HAVE_ALSA = yes; then
6679 SAVE_CFLAGS="$CFLAGS"
6680 SAVE_LDFLAGS="$LDFLAGS"
6681 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6682 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6683 cat >conftest.$ac_ext <<_ACEOF
6684 /* confdefs.h. */
6685 _ACEOF
6686 cat confdefs.h >>conftest.$ac_ext
6687 cat >>conftest.$ac_ext <<_ACEOF
6688 /* end confdefs.h. */
6689 #include <asoundlib.h>
6690 int
6691 main ()
6692 {
6693 snd_lib_error_set_handler (0);
6694 ;
6695 return 0;
6696 }
6697 _ACEOF
6698 rm -f conftest.$ac_objext
6699 if { (ac_try="$ac_compile"
6700 case "(($ac_try" in
6701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6702 *) ac_try_echo=$ac_try;;
6703 esac
6704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6705 (eval "$ac_compile") 2>conftest.er1
6706 ac_status=$?
6707 grep -v '^ *+' conftest.er1 >conftest.err
6708 rm -f conftest.er1
6709 cat conftest.err >&5
6710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711 (exit $ac_status); } &&
6712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6713 { (case "(($ac_try" in
6714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6715 *) ac_try_echo=$ac_try;;
6716 esac
6717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6718 (eval "$ac_try") 2>&5
6719 ac_status=$?
6720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); }; } &&
6722 { ac_try='test -s conftest.$ac_objext'
6723 { (case "(($ac_try" in
6724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6725 *) ac_try_echo=$ac_try;;
6726 esac
6727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6728 (eval "$ac_try") 2>&5
6729 ac_status=$?
6730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); }; }; then
6732 emacs_alsa_normal=yes
6733 else
6734 echo "$as_me: failed program was:" >&5
6735 sed 's/^/| /' conftest.$ac_ext >&5
6736
6737 emacs_alsa_normal=no
6738 fi
6739
6740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6741 if test "$emacs_alsa_normal" != yes; then
6742 cat >conftest.$ac_ext <<_ACEOF
6743 /* confdefs.h. */
6744 _ACEOF
6745 cat confdefs.h >>conftest.$ac_ext
6746 cat >>conftest.$ac_ext <<_ACEOF
6747 /* end confdefs.h. */
6748 #include <alsa/asoundlib.h>
6749 int
6750 main ()
6751 {
6752 snd_lib_error_set_handler (0);
6753 ;
6754 return 0;
6755 }
6756 _ACEOF
6757 rm -f conftest.$ac_objext
6758 if { (ac_try="$ac_compile"
6759 case "(($ac_try" in
6760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6761 *) ac_try_echo=$ac_try;;
6762 esac
6763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6764 (eval "$ac_compile") 2>conftest.er1
6765 ac_status=$?
6766 grep -v '^ *+' conftest.er1 >conftest.err
6767 rm -f conftest.er1
6768 cat conftest.err >&5
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); } &&
6771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6772 { (case "(($ac_try" in
6773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6774 *) ac_try_echo=$ac_try;;
6775 esac
6776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6777 (eval "$ac_try") 2>&5
6778 ac_status=$?
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); }; } &&
6781 { ac_try='test -s conftest.$ac_objext'
6782 { (case "(($ac_try" in
6783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6784 *) ac_try_echo=$ac_try;;
6785 esac
6786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6787 (eval "$ac_try") 2>&5
6788 ac_status=$?
6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); }; }; then
6791 emacs_alsa_subdir=yes
6792 else
6793 echo "$as_me: failed program was:" >&5
6794 sed 's/^/| /' conftest.$ac_ext >&5
6795
6796 emacs_alsa_subdir=no
6797 fi
6798
6799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6800 if test "$emacs_alsa_subdir" != yes; then
6801 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6802 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6803 { (exit 1); exit 1; }; }
6804 fi
6805 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6806 fi
6807
6808 CFLAGS="$SAVE_CFLAGS"
6809 LDFLAGS="$SAVE_LDFLAGS"
6810 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6811 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6812
6813 cat >>confdefs.h <<\_ACEOF
6814 #define HAVE_ALSA 1
6815 _ACEOF
6816
6817
6818 fi
6819
6820 fi
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6848 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6849 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6850 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6851 sys/utsname.h pwd.h
6852 do
6853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6855 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6858 echo $ECHO_N "(cached) $ECHO_C" >&6
6859 fi
6860 ac_res=`eval echo '${'$as_ac_Header'}'`
6861 { echo "$as_me:$LINENO: result: $ac_res" >&5
6862 echo "${ECHO_T}$ac_res" >&6; }
6863 else
6864 # Is the header compilable?
6865 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6866 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6867 cat >conftest.$ac_ext <<_ACEOF
6868 /* confdefs.h. */
6869 _ACEOF
6870 cat confdefs.h >>conftest.$ac_ext
6871 cat >>conftest.$ac_ext <<_ACEOF
6872 /* end confdefs.h. */
6873 $ac_includes_default
6874 #include <$ac_header>
6875 _ACEOF
6876 rm -f conftest.$ac_objext
6877 if { (ac_try="$ac_compile"
6878 case "(($ac_try" in
6879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6880 *) ac_try_echo=$ac_try;;
6881 esac
6882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6883 (eval "$ac_compile") 2>conftest.er1
6884 ac_status=$?
6885 grep -v '^ *+' conftest.er1 >conftest.err
6886 rm -f conftest.er1
6887 cat conftest.err >&5
6888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); } &&
6890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6891 { (case "(($ac_try" in
6892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6893 *) ac_try_echo=$ac_try;;
6894 esac
6895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6896 (eval "$ac_try") 2>&5
6897 ac_status=$?
6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); }; } &&
6900 { ac_try='test -s conftest.$ac_objext'
6901 { (case "(($ac_try" in
6902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6903 *) ac_try_echo=$ac_try;;
6904 esac
6905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6906 (eval "$ac_try") 2>&5
6907 ac_status=$?
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); }; }; then
6910 ac_header_compiler=yes
6911 else
6912 echo "$as_me: failed program was:" >&5
6913 sed 's/^/| /' conftest.$ac_ext >&5
6914
6915 ac_header_compiler=no
6916 fi
6917
6918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6919 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6920 echo "${ECHO_T}$ac_header_compiler" >&6; }
6921
6922 # Is the header present?
6923 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6924 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6925 cat >conftest.$ac_ext <<_ACEOF
6926 /* confdefs.h. */
6927 _ACEOF
6928 cat confdefs.h >>conftest.$ac_ext
6929 cat >>conftest.$ac_ext <<_ACEOF
6930 /* end confdefs.h. */
6931 #include <$ac_header>
6932 _ACEOF
6933 if { (ac_try="$ac_cpp conftest.$ac_ext"
6934 case "(($ac_try" in
6935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6936 *) ac_try_echo=$ac_try;;
6937 esac
6938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6940 ac_status=$?
6941 grep -v '^ *+' conftest.er1 >conftest.err
6942 rm -f conftest.er1
6943 cat conftest.err >&5
6944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945 (exit $ac_status); } >/dev/null; then
6946 if test -s conftest.err; then
6947 ac_cpp_err=$ac_c_preproc_warn_flag
6948 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6949 else
6950 ac_cpp_err=
6951 fi
6952 else
6953 ac_cpp_err=yes
6954 fi
6955 if test -z "$ac_cpp_err"; then
6956 ac_header_preproc=yes
6957 else
6958 echo "$as_me: failed program was:" >&5
6959 sed 's/^/| /' conftest.$ac_ext >&5
6960
6961 ac_header_preproc=no
6962 fi
6963
6964 rm -f conftest.err conftest.$ac_ext
6965 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6966 echo "${ECHO_T}$ac_header_preproc" >&6; }
6967
6968 # So? What about this header?
6969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6970 yes:no: )
6971 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6972 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6974 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6975 ac_header_preproc=yes
6976 ;;
6977 no:yes:* )
6978 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6979 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6980 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6981 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6982 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6983 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6984 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6985 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6987 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6988 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6989 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6990
6991 ;;
6992 esac
6993 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6996 echo $ECHO_N "(cached) $ECHO_C" >&6
6997 else
6998 eval "$as_ac_Header=\$ac_header_preproc"
6999 fi
7000 ac_res=`eval echo '${'$as_ac_Header'}'`
7001 { echo "$as_me:$LINENO: result: $ac_res" >&5
7002 echo "${ECHO_T}$ac_res" >&6; }
7003
7004 fi
7005 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7006 cat >>confdefs.h <<_ACEOF
7007 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7008 _ACEOF
7009
7010 fi
7011
7012 done
7013
7014
7015 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
7016 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
7017 cat >conftest.$ac_ext <<_ACEOF
7018 /* confdefs.h. */
7019 _ACEOF
7020 cat confdefs.h >>conftest.$ac_ext
7021 cat >>conftest.$ac_ext <<_ACEOF
7022 /* end confdefs.h. */
7023 #include <sys/personality.h>
7024 int
7025 main ()
7026 {
7027 personality (PER_LINUX32)
7028 ;
7029 return 0;
7030 }
7031 _ACEOF
7032 rm -f conftest.$ac_objext
7033 if { (ac_try="$ac_compile"
7034 case "(($ac_try" in
7035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7036 *) ac_try_echo=$ac_try;;
7037 esac
7038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7039 (eval "$ac_compile") 2>conftest.er1
7040 ac_status=$?
7041 grep -v '^ *+' conftest.er1 >conftest.err
7042 rm -f conftest.er1
7043 cat conftest.err >&5
7044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045 (exit $ac_status); } &&
7046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7047 { (case "(($ac_try" in
7048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7049 *) ac_try_echo=$ac_try;;
7050 esac
7051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7052 (eval "$ac_try") 2>&5
7053 ac_status=$?
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); }; } &&
7056 { ac_try='test -s conftest.$ac_objext'
7057 { (case "(($ac_try" in
7058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7059 *) ac_try_echo=$ac_try;;
7060 esac
7061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7062 (eval "$ac_try") 2>&5
7063 ac_status=$?
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); }; }; then
7066 emacs_cv_personality_linux32=yes
7067 else
7068 echo "$as_me: failed program was:" >&5
7069 sed 's/^/| /' conftest.$ac_ext >&5
7070
7071 emacs_cv_personality_linux32=no
7072 fi
7073
7074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7075 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
7076 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
7077
7078 if test $emacs_cv_personality_linux32 = yes; then
7079
7080 cat >>confdefs.h <<\_ACEOF
7081 #define HAVE_PERSONALITY_LINUX32 1
7082 _ACEOF
7083
7084 fi
7085
7086
7087 for ac_header in term.h
7088 do
7089 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7090 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7093 echo $ECHO_N "(cached) $ECHO_C" >&6
7094 else
7095 cat >conftest.$ac_ext <<_ACEOF
7096 /* confdefs.h. */
7097 _ACEOF
7098 cat confdefs.h >>conftest.$ac_ext
7099 cat >>conftest.$ac_ext <<_ACEOF
7100 /* end confdefs.h. */
7101 #include <$ac_header>
7102 _ACEOF
7103 if { (ac_try="$ac_cpp conftest.$ac_ext"
7104 case "(($ac_try" in
7105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7106 *) ac_try_echo=$ac_try;;
7107 esac
7108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7109 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7110 ac_status=$?
7111 grep -v '^ *+' conftest.er1 >conftest.err
7112 rm -f conftest.er1
7113 cat conftest.err >&5
7114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115 (exit $ac_status); } >/dev/null; then
7116 if test -s conftest.err; then
7117 ac_cpp_err=$ac_c_preproc_warn_flag
7118 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7119 else
7120 ac_cpp_err=
7121 fi
7122 else
7123 ac_cpp_err=yes
7124 fi
7125 if test -z "$ac_cpp_err"; then
7126 eval "$as_ac_Header=yes"
7127 else
7128 echo "$as_me: failed program was:" >&5
7129 sed 's/^/| /' conftest.$ac_ext >&5
7130
7131 eval "$as_ac_Header=no"
7132 fi
7133
7134 rm -f conftest.err conftest.$ac_ext
7135 fi
7136 ac_res=`eval echo '${'$as_ac_Header'}'`
7137 { echo "$as_me:$LINENO: result: $ac_res" >&5
7138 echo "${ECHO_T}$ac_res" >&6; }
7139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7140 cat >>confdefs.h <<_ACEOF
7141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7142 _ACEOF
7143
7144 fi
7145
7146 done
7147
7148 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7149 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7150 if test "${ac_cv_header_stdc+set}" = set; then
7151 echo $ECHO_N "(cached) $ECHO_C" >&6
7152 else
7153 cat >conftest.$ac_ext <<_ACEOF
7154 /* confdefs.h. */
7155 _ACEOF
7156 cat confdefs.h >>conftest.$ac_ext
7157 cat >>conftest.$ac_ext <<_ACEOF
7158 /* end confdefs.h. */
7159 #include <stdlib.h>
7160 #include <stdarg.h>
7161 #include <string.h>
7162 #include <float.h>
7163
7164 int
7165 main ()
7166 {
7167
7168 ;
7169 return 0;
7170 }
7171 _ACEOF
7172 rm -f conftest.$ac_objext
7173 if { (ac_try="$ac_compile"
7174 case "(($ac_try" in
7175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7176 *) ac_try_echo=$ac_try;;
7177 esac
7178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7179 (eval "$ac_compile") 2>conftest.er1
7180 ac_status=$?
7181 grep -v '^ *+' conftest.er1 >conftest.err
7182 rm -f conftest.er1
7183 cat conftest.err >&5
7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); } &&
7186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7187 { (case "(($ac_try" in
7188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7189 *) ac_try_echo=$ac_try;;
7190 esac
7191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7192 (eval "$ac_try") 2>&5
7193 ac_status=$?
7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); }; } &&
7196 { ac_try='test -s conftest.$ac_objext'
7197 { (case "(($ac_try" in
7198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7199 *) ac_try_echo=$ac_try;;
7200 esac
7201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7202 (eval "$ac_try") 2>&5
7203 ac_status=$?
7204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205 (exit $ac_status); }; }; then
7206 ac_cv_header_stdc=yes
7207 else
7208 echo "$as_me: failed program was:" >&5
7209 sed 's/^/| /' conftest.$ac_ext >&5
7210
7211 ac_cv_header_stdc=no
7212 fi
7213
7214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7215
7216 if test $ac_cv_header_stdc = yes; then
7217 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7218 cat >conftest.$ac_ext <<_ACEOF
7219 /* confdefs.h. */
7220 _ACEOF
7221 cat confdefs.h >>conftest.$ac_ext
7222 cat >>conftest.$ac_ext <<_ACEOF
7223 /* end confdefs.h. */
7224 #include <string.h>
7225
7226 _ACEOF
7227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7228 $EGREP "memchr" >/dev/null 2>&1; then
7229 :
7230 else
7231 ac_cv_header_stdc=no
7232 fi
7233 rm -f conftest*
7234
7235 fi
7236
7237 if test $ac_cv_header_stdc = yes; then
7238 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7239 cat >conftest.$ac_ext <<_ACEOF
7240 /* confdefs.h. */
7241 _ACEOF
7242 cat confdefs.h >>conftest.$ac_ext
7243 cat >>conftest.$ac_ext <<_ACEOF
7244 /* end confdefs.h. */
7245 #include <stdlib.h>
7246
7247 _ACEOF
7248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7249 $EGREP "free" >/dev/null 2>&1; then
7250 :
7251 else
7252 ac_cv_header_stdc=no
7253 fi
7254 rm -f conftest*
7255
7256 fi
7257
7258 if test $ac_cv_header_stdc = yes; then
7259 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7260 if test "$cross_compiling" = yes; then
7261 :
7262 else
7263 cat >conftest.$ac_ext <<_ACEOF
7264 /* confdefs.h. */
7265 _ACEOF
7266 cat confdefs.h >>conftest.$ac_ext
7267 cat >>conftest.$ac_ext <<_ACEOF
7268 /* end confdefs.h. */
7269 #include <ctype.h>
7270 #include <stdlib.h>
7271 #if ((' ' & 0x0FF) == 0x020)
7272 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7273 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7274 #else
7275 # define ISLOWER(c) \
7276 (('a' <= (c) && (c) <= 'i') \
7277 || ('j' <= (c) && (c) <= 'r') \
7278 || ('s' <= (c) && (c) <= 'z'))
7279 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7280 #endif
7281
7282 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7283 int
7284 main ()
7285 {
7286 int i;
7287 for (i = 0; i < 256; i++)
7288 if (XOR (islower (i), ISLOWER (i))
7289 || toupper (i) != TOUPPER (i))
7290 return 2;
7291 return 0;
7292 }
7293 _ACEOF
7294 rm -f conftest$ac_exeext
7295 if { (ac_try="$ac_link"
7296 case "(($ac_try" in
7297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7298 *) ac_try_echo=$ac_try;;
7299 esac
7300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7301 (eval "$ac_link") 2>&5
7302 ac_status=$?
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7305 { (case "(($ac_try" in
7306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7307 *) ac_try_echo=$ac_try;;
7308 esac
7309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7310 (eval "$ac_try") 2>&5
7311 ac_status=$?
7312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313 (exit $ac_status); }; }; then
7314 :
7315 else
7316 echo "$as_me: program exited with status $ac_status" >&5
7317 echo "$as_me: failed program was:" >&5
7318 sed 's/^/| /' conftest.$ac_ext >&5
7319
7320 ( exit $ac_status )
7321 ac_cv_header_stdc=no
7322 fi
7323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7324 fi
7325
7326
7327 fi
7328 fi
7329 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7330 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7331 if test $ac_cv_header_stdc = yes; then
7332
7333 cat >>confdefs.h <<\_ACEOF
7334 #define STDC_HEADERS 1
7335 _ACEOF
7336
7337 fi
7338
7339 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7340 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7341 if test "${ac_cv_header_time+set}" = set; then
7342 echo $ECHO_N "(cached) $ECHO_C" >&6
7343 else
7344 cat >conftest.$ac_ext <<_ACEOF
7345 /* confdefs.h. */
7346 _ACEOF
7347 cat confdefs.h >>conftest.$ac_ext
7348 cat >>conftest.$ac_ext <<_ACEOF
7349 /* end confdefs.h. */
7350 #include <sys/types.h>
7351 #include <sys/time.h>
7352 #include <time.h>
7353
7354 int
7355 main ()
7356 {
7357 if ((struct tm *) 0)
7358 return 0;
7359 ;
7360 return 0;
7361 }
7362 _ACEOF
7363 rm -f conftest.$ac_objext
7364 if { (ac_try="$ac_compile"
7365 case "(($ac_try" in
7366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7367 *) ac_try_echo=$ac_try;;
7368 esac
7369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7370 (eval "$ac_compile") 2>conftest.er1
7371 ac_status=$?
7372 grep -v '^ *+' conftest.er1 >conftest.err
7373 rm -f conftest.er1
7374 cat conftest.err >&5
7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); } &&
7377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7378 { (case "(($ac_try" in
7379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7380 *) ac_try_echo=$ac_try;;
7381 esac
7382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7383 (eval "$ac_try") 2>&5
7384 ac_status=$?
7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 (exit $ac_status); }; } &&
7387 { ac_try='test -s conftest.$ac_objext'
7388 { (case "(($ac_try" in
7389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7390 *) ac_try_echo=$ac_try;;
7391 esac
7392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7393 (eval "$ac_try") 2>&5
7394 ac_status=$?
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); }; }; then
7397 ac_cv_header_time=yes
7398 else
7399 echo "$as_me: failed program was:" >&5
7400 sed 's/^/| /' conftest.$ac_ext >&5
7401
7402 ac_cv_header_time=no
7403 fi
7404
7405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7406 fi
7407 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7408 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7409 if test $ac_cv_header_time = yes; then
7410
7411 cat >>confdefs.h <<\_ACEOF
7412 #define TIME_WITH_SYS_TIME 1
7413 _ACEOF
7414
7415 fi
7416
7417 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7418 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7419 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7420 echo $ECHO_N "(cached) $ECHO_C" >&6
7421 else
7422 cat >conftest.$ac_ext <<_ACEOF
7423 /* confdefs.h. */
7424 _ACEOF
7425 cat confdefs.h >>conftest.$ac_ext
7426 cat >>conftest.$ac_ext <<_ACEOF
7427 /* end confdefs.h. */
7428 $ac_includes_default
7429 int
7430 main ()
7431 {
7432 #ifndef sys_siglist
7433 char *p = (char *) sys_siglist;
7434 return !p;
7435 #endif
7436
7437 ;
7438 return 0;
7439 }
7440 _ACEOF
7441 rm -f conftest.$ac_objext
7442 if { (ac_try="$ac_compile"
7443 case "(($ac_try" in
7444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7445 *) ac_try_echo=$ac_try;;
7446 esac
7447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7448 (eval "$ac_compile") 2>conftest.er1
7449 ac_status=$?
7450 grep -v '^ *+' conftest.er1 >conftest.err
7451 rm -f conftest.er1
7452 cat conftest.err >&5
7453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 (exit $ac_status); } &&
7455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7456 { (case "(($ac_try" in
7457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7458 *) ac_try_echo=$ac_try;;
7459 esac
7460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7461 (eval "$ac_try") 2>&5
7462 ac_status=$?
7463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464 (exit $ac_status); }; } &&
7465 { ac_try='test -s conftest.$ac_objext'
7466 { (case "(($ac_try" in
7467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7468 *) ac_try_echo=$ac_try;;
7469 esac
7470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7471 (eval "$ac_try") 2>&5
7472 ac_status=$?
7473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474 (exit $ac_status); }; }; then
7475 ac_cv_have_decl_sys_siglist=yes
7476 else
7477 echo "$as_me: failed program was:" >&5
7478 sed 's/^/| /' conftest.$ac_ext >&5
7479
7480 ac_cv_have_decl_sys_siglist=no
7481 fi
7482
7483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7484 fi
7485 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7486 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7487 if test $ac_cv_have_decl_sys_siglist = yes; then
7488
7489 cat >>confdefs.h <<_ACEOF
7490 #define HAVE_DECL_SYS_SIGLIST 1
7491 _ACEOF
7492
7493
7494 else
7495 cat >>confdefs.h <<_ACEOF
7496 #define HAVE_DECL_SYS_SIGLIST 0
7497 _ACEOF
7498
7499
7500 fi
7501
7502
7503 if test $ac_cv_have_decl_sys_siglist != yes; then
7504 # For Tru64, at least:
7505 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7506 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7507 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7509 else
7510 cat >conftest.$ac_ext <<_ACEOF
7511 /* confdefs.h. */
7512 _ACEOF
7513 cat confdefs.h >>conftest.$ac_ext
7514 cat >>conftest.$ac_ext <<_ACEOF
7515 /* end confdefs.h. */
7516 $ac_includes_default
7517 int
7518 main ()
7519 {
7520 #ifndef __sys_siglist
7521 char *p = (char *) __sys_siglist;
7522 return !p;
7523 #endif
7524
7525 ;
7526 return 0;
7527 }
7528 _ACEOF
7529 rm -f conftest.$ac_objext
7530 if { (ac_try="$ac_compile"
7531 case "(($ac_try" in
7532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7533 *) ac_try_echo=$ac_try;;
7534 esac
7535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7536 (eval "$ac_compile") 2>conftest.er1
7537 ac_status=$?
7538 grep -v '^ *+' conftest.er1 >conftest.err
7539 rm -f conftest.er1
7540 cat conftest.err >&5
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); } &&
7543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7544 { (case "(($ac_try" in
7545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7546 *) ac_try_echo=$ac_try;;
7547 esac
7548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7549 (eval "$ac_try") 2>&5
7550 ac_status=$?
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); }; } &&
7553 { ac_try='test -s conftest.$ac_objext'
7554 { (case "(($ac_try" in
7555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7556 *) ac_try_echo=$ac_try;;
7557 esac
7558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7559 (eval "$ac_try") 2>&5
7560 ac_status=$?
7561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562 (exit $ac_status); }; }; then
7563 ac_cv_have_decl___sys_siglist=yes
7564 else
7565 echo "$as_me: failed program was:" >&5
7566 sed 's/^/| /' conftest.$ac_ext >&5
7567
7568 ac_cv_have_decl___sys_siglist=no
7569 fi
7570
7571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7572 fi
7573 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7574 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7575 if test $ac_cv_have_decl___sys_siglist = yes; then
7576
7577 cat >>confdefs.h <<_ACEOF
7578 #define HAVE_DECL___SYS_SIGLIST 1
7579 _ACEOF
7580
7581
7582 else
7583 cat >>confdefs.h <<_ACEOF
7584 #define HAVE_DECL___SYS_SIGLIST 0
7585 _ACEOF
7586
7587
7588 fi
7589
7590
7591 if test $ac_cv_have_decl___sys_siglist = yes; then
7592
7593 cat >>confdefs.h <<\_ACEOF
7594 #define sys_siglist __sys_siglist
7595 _ACEOF
7596
7597 fi
7598 fi
7599 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7600 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7601 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7602 echo $ECHO_N "(cached) $ECHO_C" >&6
7603 else
7604 cat >conftest.$ac_ext <<_ACEOF
7605 /* confdefs.h. */
7606 _ACEOF
7607 cat confdefs.h >>conftest.$ac_ext
7608 cat >>conftest.$ac_ext <<_ACEOF
7609 /* end confdefs.h. */
7610 #include <sys/types.h>
7611 #include <sys/wait.h>
7612 #ifndef WEXITSTATUS
7613 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7614 #endif
7615 #ifndef WIFEXITED
7616 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7617 #endif
7618
7619 int
7620 main ()
7621 {
7622 int s;
7623 wait (&s);
7624 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7625 ;
7626 return 0;
7627 }
7628 _ACEOF
7629 rm -f conftest.$ac_objext
7630 if { (ac_try="$ac_compile"
7631 case "(($ac_try" in
7632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7633 *) ac_try_echo=$ac_try;;
7634 esac
7635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7636 (eval "$ac_compile") 2>conftest.er1
7637 ac_status=$?
7638 grep -v '^ *+' conftest.er1 >conftest.err
7639 rm -f conftest.er1
7640 cat conftest.err >&5
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); } &&
7643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7644 { (case "(($ac_try" in
7645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7646 *) ac_try_echo=$ac_try;;
7647 esac
7648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7649 (eval "$ac_try") 2>&5
7650 ac_status=$?
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); }; } &&
7653 { ac_try='test -s conftest.$ac_objext'
7654 { (case "(($ac_try" in
7655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7656 *) ac_try_echo=$ac_try;;
7657 esac
7658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7659 (eval "$ac_try") 2>&5
7660 ac_status=$?
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); }; }; then
7663 ac_cv_header_sys_wait_h=yes
7664 else
7665 echo "$as_me: failed program was:" >&5
7666 sed 's/^/| /' conftest.$ac_ext >&5
7667
7668 ac_cv_header_sys_wait_h=no
7669 fi
7670
7671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7672 fi
7673 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7674 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7675 if test $ac_cv_header_sys_wait_h = yes; then
7676
7677 cat >>confdefs.h <<\_ACEOF
7678 #define HAVE_SYS_WAIT_H 1
7679 _ACEOF
7680
7681 fi
7682
7683
7684 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7685 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7686 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7687 echo $ECHO_N "(cached) $ECHO_C" >&6
7688 else
7689 cat >conftest.$ac_ext <<_ACEOF
7690 /* confdefs.h. */
7691 _ACEOF
7692 cat confdefs.h >>conftest.$ac_ext
7693 cat >>conftest.$ac_ext <<_ACEOF
7694 /* end confdefs.h. */
7695 #ifdef TIME_WITH_SYS_TIME
7696 #include <sys/time.h>
7697 #include <time.h>
7698 #else
7699 #ifdef HAVE_SYS_TIME_H
7700 #include <sys/time.h>
7701 #else
7702 #include <time.h>
7703 #endif
7704 #endif
7705 #ifdef HAVE_UTIME_H
7706 #include <utime.h>
7707 #endif
7708 int
7709 main ()
7710 {
7711 static struct utimbuf x; x.actime = x.modtime;
7712 ;
7713 return 0;
7714 }
7715 _ACEOF
7716 rm -f conftest.$ac_objext
7717 if { (ac_try="$ac_compile"
7718 case "(($ac_try" in
7719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7720 *) ac_try_echo=$ac_try;;
7721 esac
7722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7723 (eval "$ac_compile") 2>conftest.er1
7724 ac_status=$?
7725 grep -v '^ *+' conftest.er1 >conftest.err
7726 rm -f conftest.er1
7727 cat conftest.err >&5
7728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729 (exit $ac_status); } &&
7730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7731 { (case "(($ac_try" in
7732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7733 *) ac_try_echo=$ac_try;;
7734 esac
7735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7736 (eval "$ac_try") 2>&5
7737 ac_status=$?
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); }; } &&
7740 { ac_try='test -s conftest.$ac_objext'
7741 { (case "(($ac_try" in
7742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7743 *) ac_try_echo=$ac_try;;
7744 esac
7745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7746 (eval "$ac_try") 2>&5
7747 ac_status=$?
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); }; }; then
7750 emacs_cv_struct_utimbuf=yes
7751 else
7752 echo "$as_me: failed program was:" >&5
7753 sed 's/^/| /' conftest.$ac_ext >&5
7754
7755 emacs_cv_struct_utimbuf=no
7756 fi
7757
7758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7759 fi
7760 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7761 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7762 if test $emacs_cv_struct_utimbuf = yes; then
7763
7764 cat >>confdefs.h <<\_ACEOF
7765 #define HAVE_STRUCT_UTIMBUF 1
7766 _ACEOF
7767
7768 fi
7769
7770 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7771 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7772 if test "${ac_cv_type_signal+set}" = set; then
7773 echo $ECHO_N "(cached) $ECHO_C" >&6
7774 else
7775 cat >conftest.$ac_ext <<_ACEOF
7776 /* confdefs.h. */
7777 _ACEOF
7778 cat confdefs.h >>conftest.$ac_ext
7779 cat >>conftest.$ac_ext <<_ACEOF
7780 /* end confdefs.h. */
7781 #include <sys/types.h>
7782 #include <signal.h>
7783
7784 int
7785 main ()
7786 {
7787 return *(signal (0, 0)) (0) == 1;
7788 ;
7789 return 0;
7790 }
7791 _ACEOF
7792 rm -f conftest.$ac_objext
7793 if { (ac_try="$ac_compile"
7794 case "(($ac_try" in
7795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7796 *) ac_try_echo=$ac_try;;
7797 esac
7798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7799 (eval "$ac_compile") 2>conftest.er1
7800 ac_status=$?
7801 grep -v '^ *+' conftest.er1 >conftest.err
7802 rm -f conftest.er1
7803 cat conftest.err >&5
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); } &&
7806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7807 { (case "(($ac_try" in
7808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7809 *) ac_try_echo=$ac_try;;
7810 esac
7811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7812 (eval "$ac_try") 2>&5
7813 ac_status=$?
7814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815 (exit $ac_status); }; } &&
7816 { ac_try='test -s conftest.$ac_objext'
7817 { (case "(($ac_try" in
7818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7819 *) ac_try_echo=$ac_try;;
7820 esac
7821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7822 (eval "$ac_try") 2>&5
7823 ac_status=$?
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); }; }; then
7826 ac_cv_type_signal=int
7827 else
7828 echo "$as_me: failed program was:" >&5
7829 sed 's/^/| /' conftest.$ac_ext >&5
7830
7831 ac_cv_type_signal=void
7832 fi
7833
7834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7835 fi
7836 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7837 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7838
7839 cat >>confdefs.h <<_ACEOF
7840 #define RETSIGTYPE $ac_cv_type_signal
7841 _ACEOF
7842
7843
7844
7845 { echo "$as_me:$LINENO: checking for speed_t" >&5
7846 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7847 if test "${emacs_cv_speed_t+set}" = set; then
7848 echo $ECHO_N "(cached) $ECHO_C" >&6
7849 else
7850 cat >conftest.$ac_ext <<_ACEOF
7851 /* confdefs.h. */
7852 _ACEOF
7853 cat confdefs.h >>conftest.$ac_ext
7854 cat >>conftest.$ac_ext <<_ACEOF
7855 /* end confdefs.h. */
7856 #include <termios.h>
7857 int
7858 main ()
7859 {
7860 speed_t x = 1;
7861 ;
7862 return 0;
7863 }
7864 _ACEOF
7865 rm -f conftest.$ac_objext
7866 if { (ac_try="$ac_compile"
7867 case "(($ac_try" in
7868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7869 *) ac_try_echo=$ac_try;;
7870 esac
7871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7872 (eval "$ac_compile") 2>conftest.er1
7873 ac_status=$?
7874 grep -v '^ *+' conftest.er1 >conftest.err
7875 rm -f conftest.er1
7876 cat conftest.err >&5
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); } &&
7879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7880 { (case "(($ac_try" in
7881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7882 *) ac_try_echo=$ac_try;;
7883 esac
7884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7885 (eval "$ac_try") 2>&5
7886 ac_status=$?
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); }; } &&
7889 { ac_try='test -s conftest.$ac_objext'
7890 { (case "(($ac_try" in
7891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7892 *) ac_try_echo=$ac_try;;
7893 esac
7894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7895 (eval "$ac_try") 2>&5
7896 ac_status=$?
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); }; }; then
7899 emacs_cv_speed_t=yes
7900 else
7901 echo "$as_me: failed program was:" >&5
7902 sed 's/^/| /' conftest.$ac_ext >&5
7903
7904 emacs_cv_speed_t=no
7905 fi
7906
7907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7908 fi
7909 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7910 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7911 if test $emacs_cv_speed_t = yes; then
7912
7913 cat >>confdefs.h <<\_ACEOF
7914 #define HAVE_SPEED_T 1
7915 _ACEOF
7916
7917 fi
7918
7919 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7920 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7921 if test "${emacs_cv_struct_timeval+set}" = set; then
7922 echo $ECHO_N "(cached) $ECHO_C" >&6
7923 else
7924 cat >conftest.$ac_ext <<_ACEOF
7925 /* confdefs.h. */
7926 _ACEOF
7927 cat confdefs.h >>conftest.$ac_ext
7928 cat >>conftest.$ac_ext <<_ACEOF
7929 /* end confdefs.h. */
7930 #ifdef TIME_WITH_SYS_TIME
7931 #include <sys/time.h>
7932 #include <time.h>
7933 #else
7934 #ifdef HAVE_SYS_TIME_H
7935 #include <sys/time.h>
7936 #else
7937 #include <time.h>
7938 #endif
7939 #endif
7940 int
7941 main ()
7942 {
7943 static struct timeval x; x.tv_sec = x.tv_usec;
7944 ;
7945 return 0;
7946 }
7947 _ACEOF
7948 rm -f conftest.$ac_objext
7949 if { (ac_try="$ac_compile"
7950 case "(($ac_try" in
7951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7952 *) ac_try_echo=$ac_try;;
7953 esac
7954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7955 (eval "$ac_compile") 2>conftest.er1
7956 ac_status=$?
7957 grep -v '^ *+' conftest.er1 >conftest.err
7958 rm -f conftest.er1
7959 cat conftest.err >&5
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); } &&
7962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7963 { (case "(($ac_try" in
7964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7965 *) ac_try_echo=$ac_try;;
7966 esac
7967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7968 (eval "$ac_try") 2>&5
7969 ac_status=$?
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); }; } &&
7972 { ac_try='test -s conftest.$ac_objext'
7973 { (case "(($ac_try" in
7974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7975 *) ac_try_echo=$ac_try;;
7976 esac
7977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7978 (eval "$ac_try") 2>&5
7979 ac_status=$?
7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); }; }; then
7982 emacs_cv_struct_timeval=yes
7983 else
7984 echo "$as_me: failed program was:" >&5
7985 sed 's/^/| /' conftest.$ac_ext >&5
7986
7987 emacs_cv_struct_timeval=no
7988 fi
7989
7990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7991 fi
7992 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7993 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7994 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7995 if test $emacs_cv_struct_timeval = yes; then
7996
7997 cat >>confdefs.h <<\_ACEOF
7998 #define HAVE_TIMEVAL 1
7999 _ACEOF
8000
8001 fi
8002
8003 { echo "$as_me:$LINENO: checking for struct exception" >&5
8004 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
8005 if test "${emacs_cv_struct_exception+set}" = set; then
8006 echo $ECHO_N "(cached) $ECHO_C" >&6
8007 else
8008 cat >conftest.$ac_ext <<_ACEOF
8009 /* confdefs.h. */
8010 _ACEOF
8011 cat confdefs.h >>conftest.$ac_ext
8012 cat >>conftest.$ac_ext <<_ACEOF
8013 /* end confdefs.h. */
8014 #include <math.h>
8015 int
8016 main ()
8017 {
8018 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8019 ;
8020 return 0;
8021 }
8022 _ACEOF
8023 rm -f conftest.$ac_objext
8024 if { (ac_try="$ac_compile"
8025 case "(($ac_try" in
8026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8027 *) ac_try_echo=$ac_try;;
8028 esac
8029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8030 (eval "$ac_compile") 2>conftest.er1
8031 ac_status=$?
8032 grep -v '^ *+' conftest.er1 >conftest.err
8033 rm -f conftest.er1
8034 cat conftest.err >&5
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); } &&
8037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8038 { (case "(($ac_try" in
8039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8040 *) ac_try_echo=$ac_try;;
8041 esac
8042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8043 (eval "$ac_try") 2>&5
8044 ac_status=$?
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); }; } &&
8047 { ac_try='test -s conftest.$ac_objext'
8048 { (case "(($ac_try" in
8049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8050 *) ac_try_echo=$ac_try;;
8051 esac
8052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8053 (eval "$ac_try") 2>&5
8054 ac_status=$?
8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); }; }; then
8057 emacs_cv_struct_exception=yes
8058 else
8059 echo "$as_me: failed program was:" >&5
8060 sed 's/^/| /' conftest.$ac_ext >&5
8061
8062 emacs_cv_struct_exception=no
8063 fi
8064
8065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8066 fi
8067 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
8068 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
8069 HAVE_EXCEPTION=$emacs_cv_struct_exception
8070 if test $emacs_cv_struct_exception != yes; then
8071
8072 cat >>confdefs.h <<\_ACEOF
8073 #define NO_MATHERR 1
8074 _ACEOF
8075
8076 fi
8077
8078
8079 for ac_header in sys/socket.h
8080 do
8081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8083 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8086 echo $ECHO_N "(cached) $ECHO_C" >&6
8087 fi
8088 ac_res=`eval echo '${'$as_ac_Header'}'`
8089 { echo "$as_me:$LINENO: result: $ac_res" >&5
8090 echo "${ECHO_T}$ac_res" >&6; }
8091 else
8092 # Is the header compilable?
8093 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8095 cat >conftest.$ac_ext <<_ACEOF
8096 /* confdefs.h. */
8097 _ACEOF
8098 cat confdefs.h >>conftest.$ac_ext
8099 cat >>conftest.$ac_ext <<_ACEOF
8100 /* end confdefs.h. */
8101 $ac_includes_default
8102 #include <$ac_header>
8103 _ACEOF
8104 rm -f conftest.$ac_objext
8105 if { (ac_try="$ac_compile"
8106 case "(($ac_try" in
8107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8108 *) ac_try_echo=$ac_try;;
8109 esac
8110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8111 (eval "$ac_compile") 2>conftest.er1
8112 ac_status=$?
8113 grep -v '^ *+' conftest.er1 >conftest.err
8114 rm -f conftest.er1
8115 cat conftest.err >&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); } &&
8118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8119 { (case "(($ac_try" in
8120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8121 *) ac_try_echo=$ac_try;;
8122 esac
8123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8124 (eval "$ac_try") 2>&5
8125 ac_status=$?
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); }; } &&
8128 { ac_try='test -s conftest.$ac_objext'
8129 { (case "(($ac_try" in
8130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8131 *) ac_try_echo=$ac_try;;
8132 esac
8133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8134 (eval "$ac_try") 2>&5
8135 ac_status=$?
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); }; }; then
8138 ac_header_compiler=yes
8139 else
8140 echo "$as_me: failed program was:" >&5
8141 sed 's/^/| /' conftest.$ac_ext >&5
8142
8143 ac_header_compiler=no
8144 fi
8145
8146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8147 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8148 echo "${ECHO_T}$ac_header_compiler" >&6; }
8149
8150 # Is the header present?
8151 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8152 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8153 cat >conftest.$ac_ext <<_ACEOF
8154 /* confdefs.h. */
8155 _ACEOF
8156 cat confdefs.h >>conftest.$ac_ext
8157 cat >>conftest.$ac_ext <<_ACEOF
8158 /* end confdefs.h. */
8159 #include <$ac_header>
8160 _ACEOF
8161 if { (ac_try="$ac_cpp conftest.$ac_ext"
8162 case "(($ac_try" in
8163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8164 *) ac_try_echo=$ac_try;;
8165 esac
8166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8167 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8168 ac_status=$?
8169 grep -v '^ *+' conftest.er1 >conftest.err
8170 rm -f conftest.er1
8171 cat conftest.err >&5
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); } >/dev/null; then
8174 if test -s conftest.err; then
8175 ac_cpp_err=$ac_c_preproc_warn_flag
8176 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8177 else
8178 ac_cpp_err=
8179 fi
8180 else
8181 ac_cpp_err=yes
8182 fi
8183 if test -z "$ac_cpp_err"; then
8184 ac_header_preproc=yes
8185 else
8186 echo "$as_me: failed program was:" >&5
8187 sed 's/^/| /' conftest.$ac_ext >&5
8188
8189 ac_header_preproc=no
8190 fi
8191
8192 rm -f conftest.err conftest.$ac_ext
8193 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8194 echo "${ECHO_T}$ac_header_preproc" >&6; }
8195
8196 # So? What about this header?
8197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8198 yes:no: )
8199 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8200 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8202 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8203 ac_header_preproc=yes
8204 ;;
8205 no:yes:* )
8206 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8208 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8209 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8210 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8211 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8212 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8213 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8216 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8217 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8218
8219 ;;
8220 esac
8221 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8224 echo $ECHO_N "(cached) $ECHO_C" >&6
8225 else
8226 eval "$as_ac_Header=\$ac_header_preproc"
8227 fi
8228 ac_res=`eval echo '${'$as_ac_Header'}'`
8229 { echo "$as_me:$LINENO: result: $ac_res" >&5
8230 echo "${ECHO_T}$ac_res" >&6; }
8231
8232 fi
8233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8234 cat >>confdefs.h <<_ACEOF
8235 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8236 _ACEOF
8237
8238 fi
8239
8240 done
8241
8242
8243 for ac_header in net/if.h
8244 do
8245 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8246 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8249 echo $ECHO_N "(cached) $ECHO_C" >&6
8250 else
8251 cat >conftest.$ac_ext <<_ACEOF
8252 /* confdefs.h. */
8253 _ACEOF
8254 cat confdefs.h >>conftest.$ac_ext
8255 cat >>conftest.$ac_ext <<_ACEOF
8256 /* end confdefs.h. */
8257 $ac_includes_default
8258 #if HAVE_SYS_SOCKET_H
8259 #include <sys/socket.h>
8260 #endif
8261
8262 #include <$ac_header>
8263 _ACEOF
8264 rm -f conftest.$ac_objext
8265 if { (ac_try="$ac_compile"
8266 case "(($ac_try" in
8267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8268 *) ac_try_echo=$ac_try;;
8269 esac
8270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8271 (eval "$ac_compile") 2>conftest.er1
8272 ac_status=$?
8273 grep -v '^ *+' conftest.er1 >conftest.err
8274 rm -f conftest.er1
8275 cat conftest.err >&5
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); } &&
8278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8279 { (case "(($ac_try" in
8280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8281 *) ac_try_echo=$ac_try;;
8282 esac
8283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8284 (eval "$ac_try") 2>&5
8285 ac_status=$?
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); }; } &&
8288 { ac_try='test -s conftest.$ac_objext'
8289 { (case "(($ac_try" in
8290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8291 *) ac_try_echo=$ac_try;;
8292 esac
8293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8294 (eval "$ac_try") 2>&5
8295 ac_status=$?
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); }; }; then
8298 eval "$as_ac_Header=yes"
8299 else
8300 echo "$as_me: failed program was:" >&5
8301 sed 's/^/| /' conftest.$ac_ext >&5
8302
8303 eval "$as_ac_Header=no"
8304 fi
8305
8306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8307 fi
8308 ac_res=`eval echo '${'$as_ac_Header'}'`
8309 { echo "$as_me:$LINENO: result: $ac_res" >&5
8310 echo "${ECHO_T}$ac_res" >&6; }
8311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8312 cat >>confdefs.h <<_ACEOF
8313 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8314 _ACEOF
8315
8316 fi
8317
8318 done
8319
8320
8321 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8322 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
8323 if test "${ac_cv_struct_tm+set}" = set; then
8324 echo $ECHO_N "(cached) $ECHO_C" >&6
8325 else
8326 cat >conftest.$ac_ext <<_ACEOF
8327 /* confdefs.h. */
8328 _ACEOF
8329 cat confdefs.h >>conftest.$ac_ext
8330 cat >>conftest.$ac_ext <<_ACEOF
8331 /* end confdefs.h. */
8332 #include <sys/types.h>
8333 #include <time.h>
8334
8335 int
8336 main ()
8337 {
8338 struct tm *tp; tp->tm_sec;
8339 ;
8340 return 0;
8341 }
8342 _ACEOF
8343 rm -f conftest.$ac_objext
8344 if { (ac_try="$ac_compile"
8345 case "(($ac_try" in
8346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8347 *) ac_try_echo=$ac_try;;
8348 esac
8349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8350 (eval "$ac_compile") 2>conftest.er1
8351 ac_status=$?
8352 grep -v '^ *+' conftest.er1 >conftest.err
8353 rm -f conftest.er1
8354 cat conftest.err >&5
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); } &&
8357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8358 { (case "(($ac_try" in
8359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8360 *) ac_try_echo=$ac_try;;
8361 esac
8362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8363 (eval "$ac_try") 2>&5
8364 ac_status=$?
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); }; } &&
8367 { ac_try='test -s conftest.$ac_objext'
8368 { (case "(($ac_try" in
8369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8370 *) ac_try_echo=$ac_try;;
8371 esac
8372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8373 (eval "$ac_try") 2>&5
8374 ac_status=$?
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); }; }; then
8377 ac_cv_struct_tm=time.h
8378 else
8379 echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.$ac_ext >&5
8381
8382 ac_cv_struct_tm=sys/time.h
8383 fi
8384
8385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8386 fi
8387 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8388 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
8389 if test $ac_cv_struct_tm = sys/time.h; then
8390
8391 cat >>confdefs.h <<\_ACEOF
8392 #define TM_IN_SYS_TIME 1
8393 _ACEOF
8394
8395 fi
8396
8397 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8398 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
8399 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8400 echo $ECHO_N "(cached) $ECHO_C" >&6
8401 else
8402 cat >conftest.$ac_ext <<_ACEOF
8403 /* confdefs.h. */
8404 _ACEOF
8405 cat confdefs.h >>conftest.$ac_ext
8406 cat >>conftest.$ac_ext <<_ACEOF
8407 /* end confdefs.h. */
8408 #include <sys/types.h>
8409 #include <$ac_cv_struct_tm>
8410
8411
8412 int
8413 main ()
8414 {
8415 static struct tm ac_aggr;
8416 if (ac_aggr.tm_zone)
8417 return 0;
8418 ;
8419 return 0;
8420 }
8421 _ACEOF
8422 rm -f conftest.$ac_objext
8423 if { (ac_try="$ac_compile"
8424 case "(($ac_try" in
8425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8426 *) ac_try_echo=$ac_try;;
8427 esac
8428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8429 (eval "$ac_compile") 2>conftest.er1
8430 ac_status=$?
8431 grep -v '^ *+' conftest.er1 >conftest.err
8432 rm -f conftest.er1
8433 cat conftest.err >&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); } &&
8436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8437 { (case "(($ac_try" in
8438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8439 *) ac_try_echo=$ac_try;;
8440 esac
8441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8442 (eval "$ac_try") 2>&5
8443 ac_status=$?
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); }; } &&
8446 { ac_try='test -s conftest.$ac_objext'
8447 { (case "(($ac_try" in
8448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8449 *) ac_try_echo=$ac_try;;
8450 esac
8451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8452 (eval "$ac_try") 2>&5
8453 ac_status=$?
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); }; }; then
8456 ac_cv_member_struct_tm_tm_zone=yes
8457 else
8458 echo "$as_me: failed program was:" >&5
8459 sed 's/^/| /' conftest.$ac_ext >&5
8460
8461 cat >conftest.$ac_ext <<_ACEOF
8462 /* confdefs.h. */
8463 _ACEOF
8464 cat confdefs.h >>conftest.$ac_ext
8465 cat >>conftest.$ac_ext <<_ACEOF
8466 /* end confdefs.h. */
8467 #include <sys/types.h>
8468 #include <$ac_cv_struct_tm>
8469
8470
8471 int
8472 main ()
8473 {
8474 static struct tm ac_aggr;
8475 if (sizeof ac_aggr.tm_zone)
8476 return 0;
8477 ;
8478 return 0;
8479 }
8480 _ACEOF
8481 rm -f conftest.$ac_objext
8482 if { (ac_try="$ac_compile"
8483 case "(($ac_try" in
8484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8485 *) ac_try_echo=$ac_try;;
8486 esac
8487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8488 (eval "$ac_compile") 2>conftest.er1
8489 ac_status=$?
8490 grep -v '^ *+' conftest.er1 >conftest.err
8491 rm -f conftest.er1
8492 cat conftest.err >&5
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); } &&
8495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8496 { (case "(($ac_try" in
8497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8498 *) ac_try_echo=$ac_try;;
8499 esac
8500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8501 (eval "$ac_try") 2>&5
8502 ac_status=$?
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); }; } &&
8505 { ac_try='test -s conftest.$ac_objext'
8506 { (case "(($ac_try" in
8507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8508 *) ac_try_echo=$ac_try;;
8509 esac
8510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8511 (eval "$ac_try") 2>&5
8512 ac_status=$?
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); }; }; then
8515 ac_cv_member_struct_tm_tm_zone=yes
8516 else
8517 echo "$as_me: failed program was:" >&5
8518 sed 's/^/| /' conftest.$ac_ext >&5
8519
8520 ac_cv_member_struct_tm_tm_zone=no
8521 fi
8522
8523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8524 fi
8525
8526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8527 fi
8528 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8529 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
8530 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8531
8532 cat >>confdefs.h <<_ACEOF
8533 #define HAVE_STRUCT_TM_TM_ZONE 1
8534 _ACEOF
8535
8536
8537 fi
8538
8539 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8540
8541 cat >>confdefs.h <<\_ACEOF
8542 #define HAVE_TM_ZONE 1
8543 _ACEOF
8544
8545 else
8546 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8547 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
8548 if test "${ac_cv_have_decl_tzname+set}" = set; then
8549 echo $ECHO_N "(cached) $ECHO_C" >&6
8550 else
8551 cat >conftest.$ac_ext <<_ACEOF
8552 /* confdefs.h. */
8553 _ACEOF
8554 cat confdefs.h >>conftest.$ac_ext
8555 cat >>conftest.$ac_ext <<_ACEOF
8556 /* end confdefs.h. */
8557 #include <time.h>
8558
8559 int
8560 main ()
8561 {
8562 #ifndef tzname
8563 char *p = (char *) tzname;
8564 return !p;
8565 #endif
8566
8567 ;
8568 return 0;
8569 }
8570 _ACEOF
8571 rm -f conftest.$ac_objext
8572 if { (ac_try="$ac_compile"
8573 case "(($ac_try" in
8574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8575 *) ac_try_echo=$ac_try;;
8576 esac
8577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8578 (eval "$ac_compile") 2>conftest.er1
8579 ac_status=$?
8580 grep -v '^ *+' conftest.er1 >conftest.err
8581 rm -f conftest.er1
8582 cat conftest.err >&5
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 (exit $ac_status); } &&
8585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8586 { (case "(($ac_try" in
8587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8588 *) ac_try_echo=$ac_try;;
8589 esac
8590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8591 (eval "$ac_try") 2>&5
8592 ac_status=$?
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); }; } &&
8595 { ac_try='test -s conftest.$ac_objext'
8596 { (case "(($ac_try" in
8597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8598 *) ac_try_echo=$ac_try;;
8599 esac
8600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8601 (eval "$ac_try") 2>&5
8602 ac_status=$?
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); }; }; then
8605 ac_cv_have_decl_tzname=yes
8606 else
8607 echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8609
8610 ac_cv_have_decl_tzname=no
8611 fi
8612
8613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8614 fi
8615 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8616 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
8617 if test $ac_cv_have_decl_tzname = yes; then
8618
8619 cat >>confdefs.h <<_ACEOF
8620 #define HAVE_DECL_TZNAME 1
8621 _ACEOF
8622
8623
8624 else
8625 cat >>confdefs.h <<_ACEOF
8626 #define HAVE_DECL_TZNAME 0
8627 _ACEOF
8628
8629
8630 fi
8631
8632
8633 { echo "$as_me:$LINENO: checking for tzname" >&5
8634 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8635 if test "${ac_cv_var_tzname+set}" = set; then
8636 echo $ECHO_N "(cached) $ECHO_C" >&6
8637 else
8638 cat >conftest.$ac_ext <<_ACEOF
8639 /* confdefs.h. */
8640 _ACEOF
8641 cat confdefs.h >>conftest.$ac_ext
8642 cat >>conftest.$ac_ext <<_ACEOF
8643 /* end confdefs.h. */
8644 #include <time.h>
8645 #if !HAVE_DECL_TZNAME
8646 extern char *tzname[];
8647 #endif
8648
8649 int
8650 main ()
8651 {
8652 return tzname[0][0];
8653 ;
8654 return 0;
8655 }
8656 _ACEOF
8657 rm -f conftest.$ac_objext conftest$ac_exeext
8658 if { (ac_try="$ac_link"
8659 case "(($ac_try" in
8660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8661 *) ac_try_echo=$ac_try;;
8662 esac
8663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8664 (eval "$ac_link") 2>conftest.er1
8665 ac_status=$?
8666 grep -v '^ *+' conftest.er1 >conftest.err
8667 rm -f conftest.er1
8668 cat conftest.err >&5
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); } &&
8671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8672 { (case "(($ac_try" in
8673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8674 *) ac_try_echo=$ac_try;;
8675 esac
8676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8677 (eval "$ac_try") 2>&5
8678 ac_status=$?
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); }; } &&
8681 { ac_try='test -s conftest$ac_exeext'
8682 { (case "(($ac_try" in
8683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8684 *) ac_try_echo=$ac_try;;
8685 esac
8686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8687 (eval "$ac_try") 2>&5
8688 ac_status=$?
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); }; }; then
8691 ac_cv_var_tzname=yes
8692 else
8693 echo "$as_me: failed program was:" >&5
8694 sed 's/^/| /' conftest.$ac_ext >&5
8695
8696 ac_cv_var_tzname=no
8697 fi
8698
8699 rm -f core conftest.err conftest.$ac_objext \
8700 conftest$ac_exeext conftest.$ac_ext
8701 fi
8702 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8703 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8704 if test $ac_cv_var_tzname = yes; then
8705
8706 cat >>confdefs.h <<\_ACEOF
8707 #define HAVE_TZNAME 1
8708 _ACEOF
8709
8710 fi
8711 fi
8712
8713 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8714 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8715 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8716 echo $ECHO_N "(cached) $ECHO_C" >&6
8717 else
8718 cat >conftest.$ac_ext <<_ACEOF
8719 /* confdefs.h. */
8720 _ACEOF
8721 cat confdefs.h >>conftest.$ac_ext
8722 cat >>conftest.$ac_ext <<_ACEOF
8723 /* end confdefs.h. */
8724 #include <time.h>
8725
8726 int
8727 main ()
8728 {
8729 static struct tm ac_aggr;
8730 if (ac_aggr.tm_gmtoff)
8731 return 0;
8732 ;
8733 return 0;
8734 }
8735 _ACEOF
8736 rm -f conftest.$ac_objext
8737 if { (ac_try="$ac_compile"
8738 case "(($ac_try" in
8739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8740 *) ac_try_echo=$ac_try;;
8741 esac
8742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8743 (eval "$ac_compile") 2>conftest.er1
8744 ac_status=$?
8745 grep -v '^ *+' conftest.er1 >conftest.err
8746 rm -f conftest.er1
8747 cat conftest.err >&5
8748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 (exit $ac_status); } &&
8750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8751 { (case "(($ac_try" in
8752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8753 *) ac_try_echo=$ac_try;;
8754 esac
8755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8756 (eval "$ac_try") 2>&5
8757 ac_status=$?
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); }; } &&
8760 { ac_try='test -s conftest.$ac_objext'
8761 { (case "(($ac_try" in
8762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8763 *) ac_try_echo=$ac_try;;
8764 esac
8765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8766 (eval "$ac_try") 2>&5
8767 ac_status=$?
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); }; }; then
8770 ac_cv_member_struct_tm_tm_gmtoff=yes
8771 else
8772 echo "$as_me: failed program was:" >&5
8773 sed 's/^/| /' conftest.$ac_ext >&5
8774
8775 cat >conftest.$ac_ext <<_ACEOF
8776 /* confdefs.h. */
8777 _ACEOF
8778 cat confdefs.h >>conftest.$ac_ext
8779 cat >>conftest.$ac_ext <<_ACEOF
8780 /* end confdefs.h. */
8781 #include <time.h>
8782
8783 int
8784 main ()
8785 {
8786 static struct tm ac_aggr;
8787 if (sizeof ac_aggr.tm_gmtoff)
8788 return 0;
8789 ;
8790 return 0;
8791 }
8792 _ACEOF
8793 rm -f conftest.$ac_objext
8794 if { (ac_try="$ac_compile"
8795 case "(($ac_try" in
8796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8797 *) ac_try_echo=$ac_try;;
8798 esac
8799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8800 (eval "$ac_compile") 2>conftest.er1
8801 ac_status=$?
8802 grep -v '^ *+' conftest.er1 >conftest.err
8803 rm -f conftest.er1
8804 cat conftest.err >&5
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); } &&
8807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8808 { (case "(($ac_try" in
8809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8810 *) ac_try_echo=$ac_try;;
8811 esac
8812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8813 (eval "$ac_try") 2>&5
8814 ac_status=$?
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); }; } &&
8817 { ac_try='test -s conftest.$ac_objext'
8818 { (case "(($ac_try" in
8819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8820 *) ac_try_echo=$ac_try;;
8821 esac
8822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8823 (eval "$ac_try") 2>&5
8824 ac_status=$?
8825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826 (exit $ac_status); }; }; then
8827 ac_cv_member_struct_tm_tm_gmtoff=yes
8828 else
8829 echo "$as_me: failed program was:" >&5
8830 sed 's/^/| /' conftest.$ac_ext >&5
8831
8832 ac_cv_member_struct_tm_tm_gmtoff=no
8833 fi
8834
8835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8836 fi
8837
8838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8839 fi
8840 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8841 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8842 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8843
8844 cat >>confdefs.h <<\_ACEOF
8845 #define HAVE_TM_GMTOFF 1
8846 _ACEOF
8847
8848 fi
8849
8850 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8851 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8852 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8853 echo $ECHO_N "(cached) $ECHO_C" >&6
8854 else
8855 cat >conftest.$ac_ext <<_ACEOF
8856 /* confdefs.h. */
8857 _ACEOF
8858 cat confdefs.h >>conftest.$ac_ext
8859 cat >>conftest.$ac_ext <<_ACEOF
8860 /* end confdefs.h. */
8861 $ac_includes_default
8862 #if HAVE_SYS_SOCKET_H
8863 #include <sys/socket.h>
8864 #endif
8865 #if HAVE_NET_IF_H
8866 #include <net/if.h>
8867 #endif
8868
8869 int
8870 main ()
8871 {
8872 static struct ifreq ac_aggr;
8873 if (ac_aggr.ifr_flags)
8874 return 0;
8875 ;
8876 return 0;
8877 }
8878 _ACEOF
8879 rm -f conftest.$ac_objext
8880 if { (ac_try="$ac_compile"
8881 case "(($ac_try" in
8882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8883 *) ac_try_echo=$ac_try;;
8884 esac
8885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8886 (eval "$ac_compile") 2>conftest.er1
8887 ac_status=$?
8888 grep -v '^ *+' conftest.er1 >conftest.err
8889 rm -f conftest.er1
8890 cat conftest.err >&5
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); } &&
8893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8894 { (case "(($ac_try" in
8895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8896 *) ac_try_echo=$ac_try;;
8897 esac
8898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8899 (eval "$ac_try") 2>&5
8900 ac_status=$?
8901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902 (exit $ac_status); }; } &&
8903 { ac_try='test -s conftest.$ac_objext'
8904 { (case "(($ac_try" in
8905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8906 *) ac_try_echo=$ac_try;;
8907 esac
8908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8909 (eval "$ac_try") 2>&5
8910 ac_status=$?
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); }; }; then
8913 ac_cv_member_struct_ifreq_ifr_flags=yes
8914 else
8915 echo "$as_me: failed program was:" >&5
8916 sed 's/^/| /' conftest.$ac_ext >&5
8917
8918 cat >conftest.$ac_ext <<_ACEOF
8919 /* confdefs.h. */
8920 _ACEOF
8921 cat confdefs.h >>conftest.$ac_ext
8922 cat >>conftest.$ac_ext <<_ACEOF
8923 /* end confdefs.h. */
8924 $ac_includes_default
8925 #if HAVE_SYS_SOCKET_H
8926 #include <sys/socket.h>
8927 #endif
8928 #if HAVE_NET_IF_H
8929 #include <net/if.h>
8930 #endif
8931
8932 int
8933 main ()
8934 {
8935 static struct ifreq ac_aggr;
8936 if (sizeof ac_aggr.ifr_flags)
8937 return 0;
8938 ;
8939 return 0;
8940 }
8941 _ACEOF
8942 rm -f conftest.$ac_objext
8943 if { (ac_try="$ac_compile"
8944 case "(($ac_try" in
8945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8946 *) ac_try_echo=$ac_try;;
8947 esac
8948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8949 (eval "$ac_compile") 2>conftest.er1
8950 ac_status=$?
8951 grep -v '^ *+' conftest.er1 >conftest.err
8952 rm -f conftest.er1
8953 cat conftest.err >&5
8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); } &&
8956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8957 { (case "(($ac_try" in
8958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8959 *) ac_try_echo=$ac_try;;
8960 esac
8961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8962 (eval "$ac_try") 2>&5
8963 ac_status=$?
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); }; } &&
8966 { ac_try='test -s conftest.$ac_objext'
8967 { (case "(($ac_try" in
8968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8969 *) ac_try_echo=$ac_try;;
8970 esac
8971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8972 (eval "$ac_try") 2>&5
8973 ac_status=$?
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); }; }; then
8976 ac_cv_member_struct_ifreq_ifr_flags=yes
8977 else
8978 echo "$as_me: failed program was:" >&5
8979 sed 's/^/| /' conftest.$ac_ext >&5
8980
8981 ac_cv_member_struct_ifreq_ifr_flags=no
8982 fi
8983
8984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8985 fi
8986
8987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8988 fi
8989 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8990 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8991 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8992
8993 cat >>confdefs.h <<_ACEOF
8994 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8995 _ACEOF
8996
8997
8998 fi
8999 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
9000 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
9001 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
9002 echo $ECHO_N "(cached) $ECHO_C" >&6
9003 else
9004 cat >conftest.$ac_ext <<_ACEOF
9005 /* confdefs.h. */
9006 _ACEOF
9007 cat confdefs.h >>conftest.$ac_ext
9008 cat >>conftest.$ac_ext <<_ACEOF
9009 /* end confdefs.h. */
9010 $ac_includes_default
9011 #if HAVE_SYS_SOCKET_H
9012 #include <sys/socket.h>
9013 #endif
9014 #if HAVE_NET_IF_H
9015 #include <net/if.h>
9016 #endif
9017
9018 int
9019 main ()
9020 {
9021 static struct ifreq ac_aggr;
9022 if (ac_aggr.ifr_hwaddr)
9023 return 0;
9024 ;
9025 return 0;
9026 }
9027 _ACEOF
9028 rm -f conftest.$ac_objext
9029 if { (ac_try="$ac_compile"
9030 case "(($ac_try" in
9031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9032 *) ac_try_echo=$ac_try;;
9033 esac
9034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9035 (eval "$ac_compile") 2>conftest.er1
9036 ac_status=$?
9037 grep -v '^ *+' conftest.er1 >conftest.err
9038 rm -f conftest.er1
9039 cat conftest.err >&5
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); } &&
9042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9043 { (case "(($ac_try" in
9044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9045 *) ac_try_echo=$ac_try;;
9046 esac
9047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9048 (eval "$ac_try") 2>&5
9049 ac_status=$?
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); }; } &&
9052 { ac_try='test -s conftest.$ac_objext'
9053 { (case "(($ac_try" in
9054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9055 *) ac_try_echo=$ac_try;;
9056 esac
9057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9058 (eval "$ac_try") 2>&5
9059 ac_status=$?
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); }; }; then
9062 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
9063 else
9064 echo "$as_me: failed program was:" >&5
9065 sed 's/^/| /' conftest.$ac_ext >&5
9066
9067 cat >conftest.$ac_ext <<_ACEOF
9068 /* confdefs.h. */
9069 _ACEOF
9070 cat confdefs.h >>conftest.$ac_ext
9071 cat >>conftest.$ac_ext <<_ACEOF
9072 /* end confdefs.h. */
9073 $ac_includes_default
9074 #if HAVE_SYS_SOCKET_H
9075 #include <sys/socket.h>
9076 #endif
9077 #if HAVE_NET_IF_H
9078 #include <net/if.h>
9079 #endif
9080
9081 int
9082 main ()
9083 {
9084 static struct ifreq ac_aggr;
9085 if (sizeof ac_aggr.ifr_hwaddr)
9086 return 0;
9087 ;
9088 return 0;
9089 }
9090 _ACEOF
9091 rm -f conftest.$ac_objext
9092 if { (ac_try="$ac_compile"
9093 case "(($ac_try" in
9094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9095 *) ac_try_echo=$ac_try;;
9096 esac
9097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9098 (eval "$ac_compile") 2>conftest.er1
9099 ac_status=$?
9100 grep -v '^ *+' conftest.er1 >conftest.err
9101 rm -f conftest.er1
9102 cat conftest.err >&5
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 (exit $ac_status); } &&
9105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9106 { (case "(($ac_try" in
9107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9108 *) ac_try_echo=$ac_try;;
9109 esac
9110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9111 (eval "$ac_try") 2>&5
9112 ac_status=$?
9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114 (exit $ac_status); }; } &&
9115 { ac_try='test -s conftest.$ac_objext'
9116 { (case "(($ac_try" in
9117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9118 *) ac_try_echo=$ac_try;;
9119 esac
9120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9121 (eval "$ac_try") 2>&5
9122 ac_status=$?
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); }; }; then
9125 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
9126 else
9127 echo "$as_me: failed program was:" >&5
9128 sed 's/^/| /' conftest.$ac_ext >&5
9129
9130 ac_cv_member_struct_ifreq_ifr_hwaddr=no
9131 fi
9132
9133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9134 fi
9135
9136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9137 fi
9138 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
9139 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
9140 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
9141
9142 cat >>confdefs.h <<_ACEOF
9143 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9144 _ACEOF
9145
9146
9147 fi
9148 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
9149 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
9150 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
9151 echo $ECHO_N "(cached) $ECHO_C" >&6
9152 else
9153 cat >conftest.$ac_ext <<_ACEOF
9154 /* confdefs.h. */
9155 _ACEOF
9156 cat confdefs.h >>conftest.$ac_ext
9157 cat >>conftest.$ac_ext <<_ACEOF
9158 /* end confdefs.h. */
9159 $ac_includes_default
9160 #if HAVE_SYS_SOCKET_H
9161 #include <sys/socket.h>
9162 #endif
9163 #if HAVE_NET_IF_H
9164 #include <net/if.h>
9165 #endif
9166
9167 int
9168 main ()
9169 {
9170 static struct ifreq ac_aggr;
9171 if (ac_aggr.ifr_netmask)
9172 return 0;
9173 ;
9174 return 0;
9175 }
9176 _ACEOF
9177 rm -f conftest.$ac_objext
9178 if { (ac_try="$ac_compile"
9179 case "(($ac_try" in
9180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9181 *) ac_try_echo=$ac_try;;
9182 esac
9183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9184 (eval "$ac_compile") 2>conftest.er1
9185 ac_status=$?
9186 grep -v '^ *+' conftest.er1 >conftest.err
9187 rm -f conftest.er1
9188 cat conftest.err >&5
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); } &&
9191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9192 { (case "(($ac_try" in
9193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9194 *) ac_try_echo=$ac_try;;
9195 esac
9196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9197 (eval "$ac_try") 2>&5
9198 ac_status=$?
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); }; } &&
9201 { ac_try='test -s conftest.$ac_objext'
9202 { (case "(($ac_try" in
9203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9204 *) ac_try_echo=$ac_try;;
9205 esac
9206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9207 (eval "$ac_try") 2>&5
9208 ac_status=$?
9209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210 (exit $ac_status); }; }; then
9211 ac_cv_member_struct_ifreq_ifr_netmask=yes
9212 else
9213 echo "$as_me: failed program was:" >&5
9214 sed 's/^/| /' conftest.$ac_ext >&5
9215
9216 cat >conftest.$ac_ext <<_ACEOF
9217 /* confdefs.h. */
9218 _ACEOF
9219 cat confdefs.h >>conftest.$ac_ext
9220 cat >>conftest.$ac_ext <<_ACEOF
9221 /* end confdefs.h. */
9222 $ac_includes_default
9223 #if HAVE_SYS_SOCKET_H
9224 #include <sys/socket.h>
9225 #endif
9226 #if HAVE_NET_IF_H
9227 #include <net/if.h>
9228 #endif
9229
9230 int
9231 main ()
9232 {
9233 static struct ifreq ac_aggr;
9234 if (sizeof ac_aggr.ifr_netmask)
9235 return 0;
9236 ;
9237 return 0;
9238 }
9239 _ACEOF
9240 rm -f conftest.$ac_objext
9241 if { (ac_try="$ac_compile"
9242 case "(($ac_try" in
9243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9244 *) ac_try_echo=$ac_try;;
9245 esac
9246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9247 (eval "$ac_compile") 2>conftest.er1
9248 ac_status=$?
9249 grep -v '^ *+' conftest.er1 >conftest.err
9250 rm -f conftest.er1
9251 cat conftest.err >&5
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); } &&
9254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9255 { (case "(($ac_try" in
9256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9257 *) ac_try_echo=$ac_try;;
9258 esac
9259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9260 (eval "$ac_try") 2>&5
9261 ac_status=$?
9262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 (exit $ac_status); }; } &&
9264 { ac_try='test -s conftest.$ac_objext'
9265 { (case "(($ac_try" in
9266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9267 *) ac_try_echo=$ac_try;;
9268 esac
9269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9270 (eval "$ac_try") 2>&5
9271 ac_status=$?
9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 (exit $ac_status); }; }; then
9274 ac_cv_member_struct_ifreq_ifr_netmask=yes
9275 else
9276 echo "$as_me: failed program was:" >&5
9277 sed 's/^/| /' conftest.$ac_ext >&5
9278
9279 ac_cv_member_struct_ifreq_ifr_netmask=no
9280 fi
9281
9282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9283 fi
9284
9285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9286 fi
9287 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
9288 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
9289 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
9290
9291 cat >>confdefs.h <<_ACEOF
9292 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9293 _ACEOF
9294
9295
9296 fi
9297 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
9298 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
9299 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
9300 echo $ECHO_N "(cached) $ECHO_C" >&6
9301 else
9302 cat >conftest.$ac_ext <<_ACEOF
9303 /* confdefs.h. */
9304 _ACEOF
9305 cat confdefs.h >>conftest.$ac_ext
9306 cat >>conftest.$ac_ext <<_ACEOF
9307 /* end confdefs.h. */
9308 $ac_includes_default
9309 #if HAVE_SYS_SOCKET_H
9310 #include <sys/socket.h>
9311 #endif
9312 #if HAVE_NET_IF_H
9313 #include <net/if.h>
9314 #endif
9315
9316 int
9317 main ()
9318 {
9319 static struct ifreq ac_aggr;
9320 if (ac_aggr.ifr_broadaddr)
9321 return 0;
9322 ;
9323 return 0;
9324 }
9325 _ACEOF
9326 rm -f conftest.$ac_objext
9327 if { (ac_try="$ac_compile"
9328 case "(($ac_try" in
9329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9330 *) ac_try_echo=$ac_try;;
9331 esac
9332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9333 (eval "$ac_compile") 2>conftest.er1
9334 ac_status=$?
9335 grep -v '^ *+' conftest.er1 >conftest.err
9336 rm -f conftest.er1
9337 cat conftest.err >&5
9338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 (exit $ac_status); } &&
9340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9341 { (case "(($ac_try" in
9342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9343 *) ac_try_echo=$ac_try;;
9344 esac
9345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9346 (eval "$ac_try") 2>&5
9347 ac_status=$?
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); }; } &&
9350 { ac_try='test -s conftest.$ac_objext'
9351 { (case "(($ac_try" in
9352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9353 *) ac_try_echo=$ac_try;;
9354 esac
9355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9356 (eval "$ac_try") 2>&5
9357 ac_status=$?
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); }; }; then
9360 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
9361 else
9362 echo "$as_me: failed program was:" >&5
9363 sed 's/^/| /' conftest.$ac_ext >&5
9364
9365 cat >conftest.$ac_ext <<_ACEOF
9366 /* confdefs.h. */
9367 _ACEOF
9368 cat confdefs.h >>conftest.$ac_ext
9369 cat >>conftest.$ac_ext <<_ACEOF
9370 /* end confdefs.h. */
9371 $ac_includes_default
9372 #if HAVE_SYS_SOCKET_H
9373 #include <sys/socket.h>
9374 #endif
9375 #if HAVE_NET_IF_H
9376 #include <net/if.h>
9377 #endif
9378
9379 int
9380 main ()
9381 {
9382 static struct ifreq ac_aggr;
9383 if (sizeof ac_aggr.ifr_broadaddr)
9384 return 0;
9385 ;
9386 return 0;
9387 }
9388 _ACEOF
9389 rm -f conftest.$ac_objext
9390 if { (ac_try="$ac_compile"
9391 case "(($ac_try" in
9392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9393 *) ac_try_echo=$ac_try;;
9394 esac
9395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9396 (eval "$ac_compile") 2>conftest.er1
9397 ac_status=$?
9398 grep -v '^ *+' conftest.er1 >conftest.err
9399 rm -f conftest.er1
9400 cat conftest.err >&5
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); } &&
9403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9404 { (case "(($ac_try" in
9405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9406 *) ac_try_echo=$ac_try;;
9407 esac
9408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9409 (eval "$ac_try") 2>&5
9410 ac_status=$?
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); }; } &&
9413 { ac_try='test -s conftest.$ac_objext'
9414 { (case "(($ac_try" in
9415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9416 *) ac_try_echo=$ac_try;;
9417 esac
9418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9419 (eval "$ac_try") 2>&5
9420 ac_status=$?
9421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422 (exit $ac_status); }; }; then
9423 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
9424 else
9425 echo "$as_me: failed program was:" >&5
9426 sed 's/^/| /' conftest.$ac_ext >&5
9427
9428 ac_cv_member_struct_ifreq_ifr_broadaddr=no
9429 fi
9430
9431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9432 fi
9433
9434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9435 fi
9436 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
9437 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
9438 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
9439
9440 cat >>confdefs.h <<_ACEOF
9441 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9442 _ACEOF
9443
9444
9445 fi
9446 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
9447 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
9448 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
9449 echo $ECHO_N "(cached) $ECHO_C" >&6
9450 else
9451 cat >conftest.$ac_ext <<_ACEOF
9452 /* confdefs.h. */
9453 _ACEOF
9454 cat confdefs.h >>conftest.$ac_ext
9455 cat >>conftest.$ac_ext <<_ACEOF
9456 /* end confdefs.h. */
9457 $ac_includes_default
9458 #if HAVE_SYS_SOCKET_H
9459 #include <sys/socket.h>
9460 #endif
9461 #if HAVE_NET_IF_H
9462 #include <net/if.h>
9463 #endif
9464
9465 int
9466 main ()
9467 {
9468 static struct ifreq ac_aggr;
9469 if (ac_aggr.ifr_addr)
9470 return 0;
9471 ;
9472 return 0;
9473 }
9474 _ACEOF
9475 rm -f conftest.$ac_objext
9476 if { (ac_try="$ac_compile"
9477 case "(($ac_try" in
9478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9479 *) ac_try_echo=$ac_try;;
9480 esac
9481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9482 (eval "$ac_compile") 2>conftest.er1
9483 ac_status=$?
9484 grep -v '^ *+' conftest.er1 >conftest.err
9485 rm -f conftest.er1
9486 cat conftest.err >&5
9487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488 (exit $ac_status); } &&
9489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9490 { (case "(($ac_try" in
9491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9492 *) ac_try_echo=$ac_try;;
9493 esac
9494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9495 (eval "$ac_try") 2>&5
9496 ac_status=$?
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); }; } &&
9499 { ac_try='test -s conftest.$ac_objext'
9500 { (case "(($ac_try" in
9501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9502 *) ac_try_echo=$ac_try;;
9503 esac
9504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9505 (eval "$ac_try") 2>&5
9506 ac_status=$?
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); }; }; then
9509 ac_cv_member_struct_ifreq_ifr_addr=yes
9510 else
9511 echo "$as_me: failed program was:" >&5
9512 sed 's/^/| /' conftest.$ac_ext >&5
9513
9514 cat >conftest.$ac_ext <<_ACEOF
9515 /* confdefs.h. */
9516 _ACEOF
9517 cat confdefs.h >>conftest.$ac_ext
9518 cat >>conftest.$ac_ext <<_ACEOF
9519 /* end confdefs.h. */
9520 $ac_includes_default
9521 #if HAVE_SYS_SOCKET_H
9522 #include <sys/socket.h>
9523 #endif
9524 #if HAVE_NET_IF_H
9525 #include <net/if.h>
9526 #endif
9527
9528 int
9529 main ()
9530 {
9531 static struct ifreq ac_aggr;
9532 if (sizeof ac_aggr.ifr_addr)
9533 return 0;
9534 ;
9535 return 0;
9536 }
9537 _ACEOF
9538 rm -f conftest.$ac_objext
9539 if { (ac_try="$ac_compile"
9540 case "(($ac_try" in
9541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9542 *) ac_try_echo=$ac_try;;
9543 esac
9544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9545 (eval "$ac_compile") 2>conftest.er1
9546 ac_status=$?
9547 grep -v '^ *+' conftest.er1 >conftest.err
9548 rm -f conftest.er1
9549 cat conftest.err >&5
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); } &&
9552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9553 { (case "(($ac_try" in
9554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9555 *) ac_try_echo=$ac_try;;
9556 esac
9557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9558 (eval "$ac_try") 2>&5
9559 ac_status=$?
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); }; } &&
9562 { ac_try='test -s conftest.$ac_objext'
9563 { (case "(($ac_try" in
9564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9565 *) ac_try_echo=$ac_try;;
9566 esac
9567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9568 (eval "$ac_try") 2>&5
9569 ac_status=$?
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); }; }; then
9572 ac_cv_member_struct_ifreq_ifr_addr=yes
9573 else
9574 echo "$as_me: failed program was:" >&5
9575 sed 's/^/| /' conftest.$ac_ext >&5
9576
9577 ac_cv_member_struct_ifreq_ifr_addr=no
9578 fi
9579
9580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9581 fi
9582
9583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9584 fi
9585 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
9586 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
9587 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
9588
9589 cat >>confdefs.h <<_ACEOF
9590 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9591 _ACEOF
9592
9593
9594 fi
9595
9596
9597
9598 { echo "$as_me:$LINENO: checking for function prototypes" >&5
9599 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
9600 if test "$ac_cv_prog_cc_c89" != no; then
9601 { echo "$as_me:$LINENO: result: yes" >&5
9602 echo "${ECHO_T}yes" >&6; }
9603
9604 cat >>confdefs.h <<\_ACEOF
9605 #define PROTOTYPES 1
9606 _ACEOF
9607
9608
9609 cat >>confdefs.h <<\_ACEOF
9610 #define __PROTOTYPES 1
9611 _ACEOF
9612
9613 else
9614 { echo "$as_me:$LINENO: result: no" >&5
9615 echo "${ECHO_T}no" >&6; }
9616 fi
9617
9618 { echo "$as_me:$LINENO: checking for working volatile" >&5
9619 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
9620 if test "${ac_cv_c_volatile+set}" = set; then
9621 echo $ECHO_N "(cached) $ECHO_C" >&6
9622 else
9623 cat >conftest.$ac_ext <<_ACEOF
9624 /* confdefs.h. */
9625 _ACEOF
9626 cat confdefs.h >>conftest.$ac_ext
9627 cat >>conftest.$ac_ext <<_ACEOF
9628 /* end confdefs.h. */
9629
9630 int
9631 main ()
9632 {
9633
9634 volatile int x;
9635 int * volatile y = (int *) 0;
9636 return !x && !y;
9637 ;
9638 return 0;
9639 }
9640 _ACEOF
9641 rm -f conftest.$ac_objext
9642 if { (ac_try="$ac_compile"
9643 case "(($ac_try" in
9644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9645 *) ac_try_echo=$ac_try;;
9646 esac
9647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9648 (eval "$ac_compile") 2>conftest.er1
9649 ac_status=$?
9650 grep -v '^ *+' conftest.er1 >conftest.err
9651 rm -f conftest.er1
9652 cat conftest.err >&5
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654 (exit $ac_status); } &&
9655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9656 { (case "(($ac_try" in
9657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9658 *) ac_try_echo=$ac_try;;
9659 esac
9660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9661 (eval "$ac_try") 2>&5
9662 ac_status=$?
9663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664 (exit $ac_status); }; } &&
9665 { ac_try='test -s conftest.$ac_objext'
9666 { (case "(($ac_try" in
9667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9668 *) ac_try_echo=$ac_try;;
9669 esac
9670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9671 (eval "$ac_try") 2>&5
9672 ac_status=$?
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); }; }; then
9675 ac_cv_c_volatile=yes
9676 else
9677 echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.$ac_ext >&5
9679
9680 ac_cv_c_volatile=no
9681 fi
9682
9683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9684 fi
9685 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9686 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
9687 if test $ac_cv_c_volatile = no; then
9688
9689 cat >>confdefs.h <<\_ACEOF
9690 #define volatile
9691 _ACEOF
9692
9693 fi
9694
9695 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9696 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9697 if test "${ac_cv_c_const+set}" = set; then
9698 echo $ECHO_N "(cached) $ECHO_C" >&6
9699 else
9700 cat >conftest.$ac_ext <<_ACEOF
9701 /* confdefs.h. */
9702 _ACEOF
9703 cat confdefs.h >>conftest.$ac_ext
9704 cat >>conftest.$ac_ext <<_ACEOF
9705 /* end confdefs.h. */
9706
9707 int
9708 main ()
9709 {
9710 /* FIXME: Include the comments suggested by Paul. */
9711 #ifndef __cplusplus
9712 /* Ultrix mips cc rejects this. */
9713 typedef int charset[2];
9714 const charset x;
9715 /* SunOS 4.1.1 cc rejects this. */
9716 char const *const *ccp;
9717 char **p;
9718 /* NEC SVR4.0.2 mips cc rejects this. */
9719 struct point {int x, y;};
9720 static struct point const zero = {0,0};
9721 /* AIX XL C 1.02.0.0 rejects this.
9722 It does not let you subtract one const X* pointer from another in
9723 an arm of an if-expression whose if-part is not a constant
9724 expression */
9725 const char *g = "string";
9726 ccp = &g + (g ? g-g : 0);
9727 /* HPUX 7.0 cc rejects these. */
9728 ++ccp;
9729 p = (char**) ccp;
9730 ccp = (char const *const *) p;
9731 { /* SCO 3.2v4 cc rejects this. */
9732 char *t;
9733 char const *s = 0 ? (char *) 0 : (char const *) 0;
9734
9735 *t++ = 0;
9736 if (s) return 0;
9737 }
9738 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9739 int x[] = {25, 17};
9740 const int *foo = &x[0];
9741 ++foo;
9742 }
9743 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9744 typedef const int *iptr;
9745 iptr p = 0;
9746 ++p;
9747 }
9748 { /* AIX XL C 1.02.0.0 rejects this saying
9749 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9750 struct s { int j; const int *ap[3]; };
9751 struct s *b; b->j = 5;
9752 }
9753 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9754 const int foo = 10;
9755 if (!foo) return 0;
9756 }
9757 return !x[0] && !zero.x;
9758 #endif
9759
9760 ;
9761 return 0;
9762 }
9763 _ACEOF
9764 rm -f conftest.$ac_objext
9765 if { (ac_try="$ac_compile"
9766 case "(($ac_try" in
9767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9768 *) ac_try_echo=$ac_try;;
9769 esac
9770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9771 (eval "$ac_compile") 2>conftest.er1
9772 ac_status=$?
9773 grep -v '^ *+' conftest.er1 >conftest.err
9774 rm -f conftest.er1
9775 cat conftest.err >&5
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); } &&
9778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9779 { (case "(($ac_try" in
9780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9781 *) ac_try_echo=$ac_try;;
9782 esac
9783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9784 (eval "$ac_try") 2>&5
9785 ac_status=$?
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); }; } &&
9788 { ac_try='test -s conftest.$ac_objext'
9789 { (case "(($ac_try" in
9790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9791 *) ac_try_echo=$ac_try;;
9792 esac
9793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9794 (eval "$ac_try") 2>&5
9795 ac_status=$?
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); }; }; then
9798 ac_cv_c_const=yes
9799 else
9800 echo "$as_me: failed program was:" >&5
9801 sed 's/^/| /' conftest.$ac_ext >&5
9802
9803 ac_cv_c_const=no
9804 fi
9805
9806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9807 fi
9808 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9809 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9810 if test $ac_cv_c_const = no; then
9811
9812 cat >>confdefs.h <<\_ACEOF
9813 #define const
9814 _ACEOF
9815
9816 fi
9817
9818 { echo "$as_me:$LINENO: checking for void * support" >&5
9819 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
9820 if test "${emacs_cv_void_star+set}" = set; then
9821 echo $ECHO_N "(cached) $ECHO_C" >&6
9822 else
9823 cat >conftest.$ac_ext <<_ACEOF
9824 /* confdefs.h. */
9825 _ACEOF
9826 cat confdefs.h >>conftest.$ac_ext
9827 cat >>conftest.$ac_ext <<_ACEOF
9828 /* end confdefs.h. */
9829
9830 int
9831 main ()
9832 {
9833 void * foo;
9834 ;
9835 return 0;
9836 }
9837 _ACEOF
9838 rm -f conftest.$ac_objext
9839 if { (ac_try="$ac_compile"
9840 case "(($ac_try" in
9841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9842 *) ac_try_echo=$ac_try;;
9843 esac
9844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9845 (eval "$ac_compile") 2>conftest.er1
9846 ac_status=$?
9847 grep -v '^ *+' conftest.er1 >conftest.err
9848 rm -f conftest.er1
9849 cat conftest.err >&5
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); } &&
9852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9853 { (case "(($ac_try" in
9854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9855 *) ac_try_echo=$ac_try;;
9856 esac
9857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9858 (eval "$ac_try") 2>&5
9859 ac_status=$?
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); }; } &&
9862 { ac_try='test -s conftest.$ac_objext'
9863 { (case "(($ac_try" in
9864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9865 *) ac_try_echo=$ac_try;;
9866 esac
9867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9868 (eval "$ac_try") 2>&5
9869 ac_status=$?
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); }; }; then
9872 emacs_cv_void_star=yes
9873 else
9874 echo "$as_me: failed program was:" >&5
9875 sed 's/^/| /' conftest.$ac_ext >&5
9876
9877 emacs_cv_void_star=no
9878 fi
9879
9880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9881 fi
9882 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9883 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
9884 if test $emacs_cv_void_star = yes; then
9885 cat >>confdefs.h <<\_ACEOF
9886 #define POINTER_TYPE void
9887 _ACEOF
9888
9889 else
9890 cat >>confdefs.h <<\_ACEOF
9891 #define POINTER_TYPE char
9892 _ACEOF
9893
9894 fi
9895
9896
9897
9898
9899
9900 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9901 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9902 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9903 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9904 echo $ECHO_N "(cached) $ECHO_C" >&6
9905 else
9906 cat >conftest.make <<\_ACEOF
9907 SHELL = /bin/sh
9908 all:
9909 @echo '@@@%%%=$(MAKE)=@@@%%%'
9910 _ACEOF
9911 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9912 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9913 *@@@%%%=?*=@@@%%%*)
9914 eval ac_cv_prog_make_${ac_make}_set=yes;;
9915 *)
9916 eval ac_cv_prog_make_${ac_make}_set=no;;
9917 esac
9918 rm -f conftest.make
9919 fi
9920 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9921 { echo "$as_me:$LINENO: result: yes" >&5
9922 echo "${ECHO_T}yes" >&6; }
9923 SET_MAKE=
9924 else
9925 { echo "$as_me:$LINENO: result: no" >&5
9926 echo "${ECHO_T}no" >&6; }
9927 SET_MAKE="MAKE=${MAKE-make}"
9928 fi
9929
9930
9931 { echo "$as_me:$LINENO: checking for long file names" >&5
9932 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9933 if test "${ac_cv_sys_long_file_names+set}" = set; then
9934 echo $ECHO_N "(cached) $ECHO_C" >&6
9935 else
9936 ac_cv_sys_long_file_names=yes
9937 # Test for long file names in all the places we know might matter:
9938 # . the current directory, where building will happen
9939 # $prefix/lib where we will be installing things
9940 # $exec_prefix/lib likewise
9941 # $TMPDIR if set, where it might want to write temporary files
9942 # /tmp where it might want to write temporary files
9943 # /var/tmp likewise
9944 # /usr/tmp likewise
9945 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9946 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9947 # in the usual case where exec_prefix is '${prefix}'.
9948 case $ac_dir in #(
9949 . | /* | ?:[\\/]*) ;; #(
9950 *) continue;;
9951 esac
9952 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9953 ac_xdir=$ac_dir/cf$$
9954 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9955 ac_tf1=$ac_xdir/conftest9012345
9956 ac_tf2=$ac_xdir/conftest9012346
9957 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9958 ac_cv_sys_long_file_names=no
9959 rm -f -r "$ac_xdir" 2>/dev/null
9960 test $ac_cv_sys_long_file_names = no && break
9961 done
9962 fi
9963 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9964 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9965 if test $ac_cv_sys_long_file_names = yes; then
9966
9967 cat >>confdefs.h <<\_ACEOF
9968 #define HAVE_LONG_FILE_NAMES 1
9969 _ACEOF
9970
9971 fi
9972
9973
9974 #### Choose a window system.
9975
9976 { echo "$as_me:$LINENO: checking for X" >&5
9977 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9978
9979
9980 # Check whether --with-x was given.
9981 if test "${with_x+set}" = set; then
9982 withval=$with_x;
9983 fi
9984
9985 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9986 if test "x$with_x" = xno; then
9987 # The user explicitly disabled X.
9988 have_x=disabled
9989 else
9990 case $x_includes,$x_libraries in #(
9991 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9992 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9993 { (exit 1); exit 1; }; };; #(
9994 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9995 echo $ECHO_N "(cached) $ECHO_C" >&6
9996 else
9997 # One or both of the vars are not set, and there is no cached value.
9998 ac_x_includes=no ac_x_libraries=no
9999 rm -f -r conftest.dir
10000 if mkdir conftest.dir; then
10001 cd conftest.dir
10002 cat >Imakefile <<'_ACEOF'
10003 incroot:
10004 @echo incroot='${INCROOT}'
10005 usrlibdir:
10006 @echo usrlibdir='${USRLIBDIR}'
10007 libdir:
10008 @echo libdir='${LIBDIR}'
10009 _ACEOF
10010 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
10011 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10012 for ac_var in incroot usrlibdir libdir; do
10013 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
10014 done
10015 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10016 for ac_extension in a so sl; do
10017 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
10018 test -f "$ac_im_libdir/libX11.$ac_extension"; then
10019 ac_im_usrlibdir=$ac_im_libdir; break
10020 fi
10021 done
10022 # Screen out bogus values from the imake configuration. They are
10023 # bogus both because they are the default anyway, and because
10024 # using them would break gcc on systems where it needs fixed includes.
10025 case $ac_im_incroot in
10026 /usr/include) ac_x_includes= ;;
10027 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
10028 esac
10029 case $ac_im_usrlibdir in
10030 /usr/lib | /lib) ;;
10031 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
10032 esac
10033 fi
10034 cd ..
10035 rm -f -r conftest.dir
10036 fi
10037
10038 # Standard set of common directories for X headers.
10039 # Check X11 before X11Rn because it is often a symlink to the current release.
10040 ac_x_header_dirs='
10041 /usr/X11/include
10042 /usr/X11R6/include
10043 /usr/X11R5/include
10044 /usr/X11R4/include
10045
10046 /usr/include/X11
10047 /usr/include/X11R6
10048 /usr/include/X11R5
10049 /usr/include/X11R4
10050
10051 /usr/local/X11/include
10052 /usr/local/X11R6/include
10053 /usr/local/X11R5/include
10054 /usr/local/X11R4/include
10055
10056 /usr/local/include/X11
10057 /usr/local/include/X11R6
10058 /usr/local/include/X11R5
10059 /usr/local/include/X11R4
10060
10061 /usr/X386/include
10062 /usr/x386/include
10063 /usr/XFree86/include/X11
10064
10065 /usr/include
10066 /usr/local/include
10067 /usr/unsupported/include
10068 /usr/athena/include
10069 /usr/local/x11r5/include
10070 /usr/lpp/Xamples/include
10071
10072 /usr/openwin/include
10073 /usr/openwin/share/include'
10074
10075 if test "$ac_x_includes" = no; then
10076 # Guess where to find include files, by looking for Xlib.h.
10077 # First, try using that file with no special directory specified.
10078 cat >conftest.$ac_ext <<_ACEOF
10079 /* confdefs.h. */
10080 _ACEOF
10081 cat confdefs.h >>conftest.$ac_ext
10082 cat >>conftest.$ac_ext <<_ACEOF
10083 /* end confdefs.h. */
10084 #include <X11/Xlib.h>
10085 _ACEOF
10086 if { (ac_try="$ac_cpp conftest.$ac_ext"
10087 case "(($ac_try" in
10088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10089 *) ac_try_echo=$ac_try;;
10090 esac
10091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10093 ac_status=$?
10094 grep -v '^ *+' conftest.er1 >conftest.err
10095 rm -f conftest.er1
10096 cat conftest.err >&5
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); } >/dev/null; then
10099 if test -s conftest.err; then
10100 ac_cpp_err=$ac_c_preproc_warn_flag
10101 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10102 else
10103 ac_cpp_err=
10104 fi
10105 else
10106 ac_cpp_err=yes
10107 fi
10108 if test -z "$ac_cpp_err"; then
10109 # We can compile using X headers with no special include directory.
10110 ac_x_includes=
10111 else
10112 echo "$as_me: failed program was:" >&5
10113 sed 's/^/| /' conftest.$ac_ext >&5
10114
10115 for ac_dir in $ac_x_header_dirs; do
10116 if test -r "$ac_dir/X11/Xlib.h"; then
10117 ac_x_includes=$ac_dir
10118 break
10119 fi
10120 done
10121 fi
10122
10123 rm -f conftest.err conftest.$ac_ext
10124 fi # $ac_x_includes = no
10125
10126 if test "$ac_x_libraries" = no; then
10127 # Check for the libraries.
10128 # See if we find them without any special options.
10129 # Don't add to $LIBS permanently.
10130 ac_save_LIBS=$LIBS
10131 LIBS="-lXt $LIBS"
10132 cat >conftest.$ac_ext <<_ACEOF
10133 /* confdefs.h. */
10134 _ACEOF
10135 cat confdefs.h >>conftest.$ac_ext
10136 cat >>conftest.$ac_ext <<_ACEOF
10137 /* end confdefs.h. */
10138 #include <X11/Xlib.h>
10139 int
10140 main ()
10141 {
10142 XrmInitialize ()
10143 ;
10144 return 0;
10145 }
10146 _ACEOF
10147 rm -f conftest.$ac_objext conftest$ac_exeext
10148 if { (ac_try="$ac_link"
10149 case "(($ac_try" in
10150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10151 *) ac_try_echo=$ac_try;;
10152 esac
10153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10154 (eval "$ac_link") 2>conftest.er1
10155 ac_status=$?
10156 grep -v '^ *+' conftest.er1 >conftest.err
10157 rm -f conftest.er1
10158 cat conftest.err >&5
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); } &&
10161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10162 { (case "(($ac_try" in
10163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10164 *) ac_try_echo=$ac_try;;
10165 esac
10166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10167 (eval "$ac_try") 2>&5
10168 ac_status=$?
10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170 (exit $ac_status); }; } &&
10171 { ac_try='test -s conftest$ac_exeext'
10172 { (case "(($ac_try" in
10173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10174 *) ac_try_echo=$ac_try;;
10175 esac
10176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10177 (eval "$ac_try") 2>&5
10178 ac_status=$?
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); }; }; then
10181 LIBS=$ac_save_LIBS
10182 # We can link X programs with no special library path.
10183 ac_x_libraries=
10184 else
10185 echo "$as_me: failed program was:" >&5
10186 sed 's/^/| /' conftest.$ac_ext >&5
10187
10188 LIBS=$ac_save_LIBS
10189 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
10190 do
10191 # Don't even attempt the hair of trying to link an X program!
10192 for ac_extension in a so sl; do
10193 if test -r "$ac_dir/libXt.$ac_extension"; then
10194 ac_x_libraries=$ac_dir
10195 break 2
10196 fi
10197 done
10198 done
10199 fi
10200
10201 rm -f core conftest.err conftest.$ac_objext \
10202 conftest$ac_exeext conftest.$ac_ext
10203 fi # $ac_x_libraries = no
10204
10205 case $ac_x_includes,$ac_x_libraries in #(
10206 no,* | *,no | *\'*)
10207 # Didn't find X, or a directory has "'" in its name.
10208 ac_cv_have_x="have_x=no";; #(
10209 *)
10210 # Record where we found X for the cache.
10211 ac_cv_have_x="have_x=yes\
10212 ac_x_includes='$ac_x_includes'\
10213 ac_x_libraries='$ac_x_libraries'"
10214 esac
10215 fi
10216 ;; #(
10217 *) have_x=yes;;
10218 esac
10219 eval "$ac_cv_have_x"
10220 fi # $with_x != no
10221
10222 if test "$have_x" != yes; then
10223 { echo "$as_me:$LINENO: result: $have_x" >&5
10224 echo "${ECHO_T}$have_x" >&6; }
10225 no_x=yes
10226 else
10227 # If each of the values was on the command line, it overrides each guess.
10228 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10229 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10230 # Update the cache value to reflect the command line values.
10231 ac_cv_have_x="have_x=yes\
10232 ac_x_includes='$x_includes'\
10233 ac_x_libraries='$x_libraries'"
10234 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
10235 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
10236 fi
10237
10238 if test "$no_x" = yes; then
10239 window_system=none
10240 else
10241 window_system=x11
10242 fi
10243
10244 if test "${x_libraries}" != NONE; then
10245 if test -n "${x_libraries}"; then
10246 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
10247 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
10248 fi
10249 x_default_search_path=""
10250 x_search_path=${x_libraries}
10251 if test -z "${x_search_path}"; then
10252 x_search_path=/usr/lib
10253 fi
10254 for x_library in `echo ${x_search_path}: | \
10255 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
10256 x_search_path="\
10257 ${x_library}/X11/%L/%T/%N%C%S:\
10258 ${x_library}/X11/%l/%T/%N%C%S:\
10259 ${x_library}/X11/%T/%N%C%S:\
10260 ${x_library}/X11/%L/%T/%N%S:\
10261 ${x_library}/X11/%l/%T/%N%S:\
10262 ${x_library}/X11/%T/%N%S"
10263 if test x"${x_default_search_path}" = x; then
10264 x_default_search_path=${x_search_path}
10265 else
10266 x_default_search_path="${x_search_path}:${x_default_search_path}"
10267 fi
10268 done
10269 fi
10270 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
10271 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
10272 fi
10273
10274 if test x"${x_includes}" = x; then
10275 bitmapdir=/usr/include/X11/bitmaps
10276 else
10277 # accumulate include directories that have X11 bitmap subdirectories
10278 bmd_acc="dummyval"
10279 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
10280 if test -d "${bmd}/X11/bitmaps"; then
10281 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
10282 fi
10283 if test -d "${bmd}/bitmaps"; then
10284 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
10285 fi
10286 done
10287 if test ${bmd_acc} != "dummyval"; then
10288 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
10289 fi
10290 fi
10291
10292 HAVE_CARBON=no
10293 if test "${with_carbon}" != no; then
10294 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10295 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10296 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
10297 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10298 echo $ECHO_N "(cached) $ECHO_C" >&6
10299 fi
10300 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10301 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
10302 else
10303 # Is the header compilable?
10304 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
10305 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
10306 cat >conftest.$ac_ext <<_ACEOF
10307 /* confdefs.h. */
10308 _ACEOF
10309 cat confdefs.h >>conftest.$ac_ext
10310 cat >>conftest.$ac_ext <<_ACEOF
10311 /* end confdefs.h. */
10312 $ac_includes_default
10313 #include <Carbon/Carbon.h>
10314 _ACEOF
10315 rm -f conftest.$ac_objext
10316 if { (ac_try="$ac_compile"
10317 case "(($ac_try" in
10318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10319 *) ac_try_echo=$ac_try;;
10320 esac
10321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10322 (eval "$ac_compile") 2>conftest.er1
10323 ac_status=$?
10324 grep -v '^ *+' conftest.er1 >conftest.err
10325 rm -f conftest.er1
10326 cat conftest.err >&5
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); } &&
10329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10330 { (case "(($ac_try" in
10331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10332 *) ac_try_echo=$ac_try;;
10333 esac
10334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10335 (eval "$ac_try") 2>&5
10336 ac_status=$?
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); }; } &&
10339 { ac_try='test -s conftest.$ac_objext'
10340 { (case "(($ac_try" in
10341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10342 *) ac_try_echo=$ac_try;;
10343 esac
10344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10345 (eval "$ac_try") 2>&5
10346 ac_status=$?
10347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348 (exit $ac_status); }; }; then
10349 ac_header_compiler=yes
10350 else
10351 echo "$as_me: failed program was:" >&5
10352 sed 's/^/| /' conftest.$ac_ext >&5
10353
10354 ac_header_compiler=no
10355 fi
10356
10357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10358 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10359 echo "${ECHO_T}$ac_header_compiler" >&6; }
10360
10361 # Is the header present?
10362 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
10363 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
10364 cat >conftest.$ac_ext <<_ACEOF
10365 /* confdefs.h. */
10366 _ACEOF
10367 cat confdefs.h >>conftest.$ac_ext
10368 cat >>conftest.$ac_ext <<_ACEOF
10369 /* end confdefs.h. */
10370 #include <Carbon/Carbon.h>
10371 _ACEOF
10372 if { (ac_try="$ac_cpp conftest.$ac_ext"
10373 case "(($ac_try" in
10374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10375 *) ac_try_echo=$ac_try;;
10376 esac
10377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10379 ac_status=$?
10380 grep -v '^ *+' conftest.er1 >conftest.err
10381 rm -f conftest.er1
10382 cat conftest.err >&5
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); } >/dev/null; then
10385 if test -s conftest.err; then
10386 ac_cpp_err=$ac_c_preproc_warn_flag
10387 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10388 else
10389 ac_cpp_err=
10390 fi
10391 else
10392 ac_cpp_err=yes
10393 fi
10394 if test -z "$ac_cpp_err"; then
10395 ac_header_preproc=yes
10396 else
10397 echo "$as_me: failed program was:" >&5
10398 sed 's/^/| /' conftest.$ac_ext >&5
10399
10400 ac_header_preproc=no
10401 fi
10402
10403 rm -f conftest.err conftest.$ac_ext
10404 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10405 echo "${ECHO_T}$ac_header_preproc" >&6; }
10406
10407 # So? What about this header?
10408 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10409 yes:no: )
10410 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
10411 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10412 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
10413 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
10414 ac_header_preproc=yes
10415 ;;
10416 no:yes:* )
10417 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
10418 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
10419 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
10420 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
10421 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
10422 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
10423 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
10424 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
10425 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10426 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10427 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
10428 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
10429
10430 ;;
10431 esac
10432 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10433 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
10434 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10435 echo $ECHO_N "(cached) $ECHO_C" >&6
10436 else
10437 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
10438 fi
10439 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10440 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
10441
10442 fi
10443 if test $ac_cv_header_Carbon_Carbon_h = yes; then
10444 HAVE_CARBON=yes
10445 fi
10446
10447
10448 fi
10449 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
10450 if test "${with_carbon+set}" != set \
10451 && test "${carbon_appdir_x+set}" != set; then
10452 for var in with_x with_x_toolkit with_gtk with_xim \
10453 with_xpm with_jpeg with_tiff with_gif with_png; do
10454 if eval test \"\${$var+set}\" = set; then
10455 HAVE_CARBON=no
10456 break
10457 fi
10458 done
10459 fi
10460 fi
10461 if test "${HAVE_CARBON}" = yes; then
10462 window_system=mac
10463 fi
10464
10465 case "${window_system}" in
10466 x11 )
10467 HAVE_X_WINDOWS=yes
10468 HAVE_X11=yes
10469 case "${with_x_toolkit}" in
10470 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10471 motif ) USE_X_TOOLKIT=MOTIF ;;
10472 gtk ) with_gtk=yes
10473 USE_X_TOOLKIT=none ;;
10474 no ) USE_X_TOOLKIT=none ;;
10475 * ) USE_X_TOOLKIT=maybe ;;
10476 esac
10477 ;;
10478 mac | none )
10479 HAVE_X_WINDOWS=no
10480 HAVE_X11=no
10481 USE_X_TOOLKIT=none
10482 ;;
10483 esac
10484
10485 ### If we're using X11, we should use the X menu package.
10486 HAVE_MENUS=no
10487 case ${HAVE_X11} in
10488 yes ) HAVE_MENUS=yes ;;
10489 esac
10490
10491 if test "${opsys}" = "hpux9"; then
10492 case "${x_libraries}" in
10493 *X11R4* )
10494 opsysfile="s/hpux9-x11r4.h"
10495 ;;
10496 esac
10497 fi
10498
10499 if test "${opsys}" = "hpux9shr"; then
10500 case "${x_libraries}" in
10501 *X11R4* )
10502 opsysfile="s/hpux9shxr4.h"
10503 ;;
10504 esac
10505 fi
10506
10507 ### Compute the unexec source name from the object name.
10508 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
10509
10510 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10511 # Assume not, until told otherwise.
10512 GNU_MALLOC=yes
10513 doug_lea_malloc=yes
10514 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
10515 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
10516 if test "${ac_cv_func_malloc_get_state+set}" = set; then
10517 echo $ECHO_N "(cached) $ECHO_C" >&6
10518 else
10519 cat >conftest.$ac_ext <<_ACEOF
10520 /* confdefs.h. */
10521 _ACEOF
10522 cat confdefs.h >>conftest.$ac_ext
10523 cat >>conftest.$ac_ext <<_ACEOF
10524 /* end confdefs.h. */
10525 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10526 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10527 #define malloc_get_state innocuous_malloc_get_state
10528
10529 /* System header to define __stub macros and hopefully few prototypes,
10530 which can conflict with char malloc_get_state (); below.
10531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10532 <limits.h> exists even on freestanding compilers. */
10533
10534 #ifdef __STDC__
10535 # include <limits.h>
10536 #else
10537 # include <assert.h>
10538 #endif
10539
10540 #undef malloc_get_state
10541
10542 /* Override any GCC internal prototype to avoid an error.
10543 Use char because int might match the return type of a GCC
10544 builtin and then its argument prototype would still apply. */
10545 #ifdef __cplusplus
10546 extern "C"
10547 #endif
10548 char malloc_get_state ();
10549 /* The GNU C library defines this for functions which it implements
10550 to always fail with ENOSYS. Some functions are actually named
10551 something starting with __ and the normal name is an alias. */
10552 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10553 choke me
10554 #endif
10555
10556 int
10557 main ()
10558 {
10559 return malloc_get_state ();
10560 ;
10561 return 0;
10562 }
10563 _ACEOF
10564 rm -f conftest.$ac_objext conftest$ac_exeext
10565 if { (ac_try="$ac_link"
10566 case "(($ac_try" in
10567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10568 *) ac_try_echo=$ac_try;;
10569 esac
10570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10571 (eval "$ac_link") 2>conftest.er1
10572 ac_status=$?
10573 grep -v '^ *+' conftest.er1 >conftest.err
10574 rm -f conftest.er1
10575 cat conftest.err >&5
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); } &&
10578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10579 { (case "(($ac_try" in
10580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10581 *) ac_try_echo=$ac_try;;
10582 esac
10583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10584 (eval "$ac_try") 2>&5
10585 ac_status=$?
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); }; } &&
10588 { ac_try='test -s conftest$ac_exeext'
10589 { (case "(($ac_try" in
10590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10591 *) ac_try_echo=$ac_try;;
10592 esac
10593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10594 (eval "$ac_try") 2>&5
10595 ac_status=$?
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); }; }; then
10598 ac_cv_func_malloc_get_state=yes
10599 else
10600 echo "$as_me: failed program was:" >&5
10601 sed 's/^/| /' conftest.$ac_ext >&5
10602
10603 ac_cv_func_malloc_get_state=no
10604 fi
10605
10606 rm -f core conftest.err conftest.$ac_objext \
10607 conftest$ac_exeext conftest.$ac_ext
10608 fi
10609 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10610 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
10611 if test $ac_cv_func_malloc_get_state = yes; then
10612 :
10613 else
10614 doug_lea_malloc=no
10615 fi
10616
10617 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10618 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
10619 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10620 echo $ECHO_N "(cached) $ECHO_C" >&6
10621 else
10622 cat >conftest.$ac_ext <<_ACEOF
10623 /* confdefs.h. */
10624 _ACEOF
10625 cat confdefs.h >>conftest.$ac_ext
10626 cat >>conftest.$ac_ext <<_ACEOF
10627 /* end confdefs.h. */
10628 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10630 #define malloc_set_state innocuous_malloc_set_state
10631
10632 /* System header to define __stub macros and hopefully few prototypes,
10633 which can conflict with char malloc_set_state (); below.
10634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10635 <limits.h> exists even on freestanding compilers. */
10636
10637 #ifdef __STDC__
10638 # include <limits.h>
10639 #else
10640 # include <assert.h>
10641 #endif
10642
10643 #undef malloc_set_state
10644
10645 /* Override any GCC internal prototype to avoid an error.
10646 Use char because int might match the return type of a GCC
10647 builtin and then its argument prototype would still apply. */
10648 #ifdef __cplusplus
10649 extern "C"
10650 #endif
10651 char malloc_set_state ();
10652 /* The GNU C library defines this for functions which it implements
10653 to always fail with ENOSYS. Some functions are actually named
10654 something starting with __ and the normal name is an alias. */
10655 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10656 choke me
10657 #endif
10658
10659 int
10660 main ()
10661 {
10662 return malloc_set_state ();
10663 ;
10664 return 0;
10665 }
10666 _ACEOF
10667 rm -f conftest.$ac_objext conftest$ac_exeext
10668 if { (ac_try="$ac_link"
10669 case "(($ac_try" in
10670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10671 *) ac_try_echo=$ac_try;;
10672 esac
10673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10674 (eval "$ac_link") 2>conftest.er1
10675 ac_status=$?
10676 grep -v '^ *+' conftest.er1 >conftest.err
10677 rm -f conftest.er1
10678 cat conftest.err >&5
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); } &&
10681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10682 { (case "(($ac_try" in
10683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10684 *) ac_try_echo=$ac_try;;
10685 esac
10686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10687 (eval "$ac_try") 2>&5
10688 ac_status=$?
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); }; } &&
10691 { ac_try='test -s conftest$ac_exeext'
10692 { (case "(($ac_try" in
10693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10694 *) ac_try_echo=$ac_try;;
10695 esac
10696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10697 (eval "$ac_try") 2>&5
10698 ac_status=$?
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); }; }; then
10701 ac_cv_func_malloc_set_state=yes
10702 else
10703 echo "$as_me: failed program was:" >&5
10704 sed 's/^/| /' conftest.$ac_ext >&5
10705
10706 ac_cv_func_malloc_set_state=no
10707 fi
10708
10709 rm -f core conftest.err conftest.$ac_objext \
10710 conftest$ac_exeext conftest.$ac_ext
10711 fi
10712 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10713 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
10714 if test $ac_cv_func_malloc_set_state = yes; then
10715 :
10716 else
10717 doug_lea_malloc=no
10718 fi
10719
10720 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10721 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
10722 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10723 echo $ECHO_N "(cached) $ECHO_C" >&6
10724 else
10725 cat >conftest.$ac_ext <<_ACEOF
10726 /* confdefs.h. */
10727 _ACEOF
10728 cat confdefs.h >>conftest.$ac_ext
10729 cat >>conftest.$ac_ext <<_ACEOF
10730 /* end confdefs.h. */
10731 extern void (* __after_morecore_hook)();
10732 int
10733 main ()
10734 {
10735 __after_morecore_hook = 0
10736 ;
10737 return 0;
10738 }
10739 _ACEOF
10740 rm -f conftest.$ac_objext conftest$ac_exeext
10741 if { (ac_try="$ac_link"
10742 case "(($ac_try" in
10743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10744 *) ac_try_echo=$ac_try;;
10745 esac
10746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10747 (eval "$ac_link") 2>conftest.er1
10748 ac_status=$?
10749 grep -v '^ *+' conftest.er1 >conftest.err
10750 rm -f conftest.er1
10751 cat conftest.err >&5
10752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 (exit $ac_status); } &&
10754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10755 { (case "(($ac_try" in
10756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10757 *) ac_try_echo=$ac_try;;
10758 esac
10759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10760 (eval "$ac_try") 2>&5
10761 ac_status=$?
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); }; } &&
10764 { ac_try='test -s conftest$ac_exeext'
10765 { (case "(($ac_try" in
10766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10767 *) ac_try_echo=$ac_try;;
10768 esac
10769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10770 (eval "$ac_try") 2>&5
10771 ac_status=$?
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); }; }; then
10774 emacs_cv_var___after_morecore_hook=yes
10775 else
10776 echo "$as_me: failed program was:" >&5
10777 sed 's/^/| /' conftest.$ac_ext >&5
10778
10779 emacs_cv_var___after_morecore_hook=no
10780 fi
10781
10782 rm -f core conftest.err conftest.$ac_objext \
10783 conftest$ac_exeext conftest.$ac_ext
10784 fi
10785 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10786 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
10787 if test $emacs_cv_var___after_morecore_hook = no; then
10788 doug_lea_malloc=no
10789 fi
10790 if test "${system_malloc}" = "yes"; then
10791 GNU_MALLOC=no
10792 GNU_MALLOC_reason="
10793 (The GNU allocators don't work with this system configuration.)"
10794 fi
10795 if test "$doug_lea_malloc" = "yes" ; then
10796 if test "$GNU_MALLOC" = yes ; then
10797 GNU_MALLOC_reason="
10798 (Using Doug Lea's new malloc from the GNU C Library.)"
10799 fi
10800
10801 cat >>confdefs.h <<\_ACEOF
10802 #define DOUG_LEA_MALLOC 1
10803 _ACEOF
10804
10805 fi
10806
10807 if test x"${REL_ALLOC}" = x; then
10808 REL_ALLOC=${GNU_MALLOC}
10809 fi
10810
10811
10812
10813
10814 for ac_header in stdlib.h unistd.h
10815 do
10816 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10818 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10821 echo $ECHO_N "(cached) $ECHO_C" >&6
10822 fi
10823 ac_res=`eval echo '${'$as_ac_Header'}'`
10824 { echo "$as_me:$LINENO: result: $ac_res" >&5
10825 echo "${ECHO_T}$ac_res" >&6; }
10826 else
10827 # Is the header compilable?
10828 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10829 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10830 cat >conftest.$ac_ext <<_ACEOF
10831 /* confdefs.h. */
10832 _ACEOF
10833 cat confdefs.h >>conftest.$ac_ext
10834 cat >>conftest.$ac_ext <<_ACEOF
10835 /* end confdefs.h. */
10836 $ac_includes_default
10837 #include <$ac_header>
10838 _ACEOF
10839 rm -f conftest.$ac_objext
10840 if { (ac_try="$ac_compile"
10841 case "(($ac_try" in
10842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10843 *) ac_try_echo=$ac_try;;
10844 esac
10845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10846 (eval "$ac_compile") 2>conftest.er1
10847 ac_status=$?
10848 grep -v '^ *+' conftest.er1 >conftest.err
10849 rm -f conftest.er1
10850 cat conftest.err >&5
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); } &&
10853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10854 { (case "(($ac_try" in
10855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10856 *) ac_try_echo=$ac_try;;
10857 esac
10858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10859 (eval "$ac_try") 2>&5
10860 ac_status=$?
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); }; } &&
10863 { ac_try='test -s conftest.$ac_objext'
10864 { (case "(($ac_try" in
10865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10866 *) ac_try_echo=$ac_try;;
10867 esac
10868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10869 (eval "$ac_try") 2>&5
10870 ac_status=$?
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); }; }; then
10873 ac_header_compiler=yes
10874 else
10875 echo "$as_me: failed program was:" >&5
10876 sed 's/^/| /' conftest.$ac_ext >&5
10877
10878 ac_header_compiler=no
10879 fi
10880
10881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10882 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10883 echo "${ECHO_T}$ac_header_compiler" >&6; }
10884
10885 # Is the header present?
10886 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10887 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10888 cat >conftest.$ac_ext <<_ACEOF
10889 /* confdefs.h. */
10890 _ACEOF
10891 cat confdefs.h >>conftest.$ac_ext
10892 cat >>conftest.$ac_ext <<_ACEOF
10893 /* end confdefs.h. */
10894 #include <$ac_header>
10895 _ACEOF
10896 if { (ac_try="$ac_cpp conftest.$ac_ext"
10897 case "(($ac_try" in
10898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10899 *) ac_try_echo=$ac_try;;
10900 esac
10901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10902 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10903 ac_status=$?
10904 grep -v '^ *+' conftest.er1 >conftest.err
10905 rm -f conftest.er1
10906 cat conftest.err >&5
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); } >/dev/null; then
10909 if test -s conftest.err; then
10910 ac_cpp_err=$ac_c_preproc_warn_flag
10911 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10912 else
10913 ac_cpp_err=
10914 fi
10915 else
10916 ac_cpp_err=yes
10917 fi
10918 if test -z "$ac_cpp_err"; then
10919 ac_header_preproc=yes
10920 else
10921 echo "$as_me: failed program was:" >&5
10922 sed 's/^/| /' conftest.$ac_ext >&5
10923
10924 ac_header_preproc=no
10925 fi
10926
10927 rm -f conftest.err conftest.$ac_ext
10928 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10929 echo "${ECHO_T}$ac_header_preproc" >&6; }
10930
10931 # So? What about this header?
10932 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10933 yes:no: )
10934 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10935 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10937 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10938 ac_header_preproc=yes
10939 ;;
10940 no:yes:* )
10941 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10942 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10943 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10944 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10945 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10946 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10947 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10948 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10950 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10951 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10952 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10953
10954 ;;
10955 esac
10956 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10959 echo $ECHO_N "(cached) $ECHO_C" >&6
10960 else
10961 eval "$as_ac_Header=\$ac_header_preproc"
10962 fi
10963 ac_res=`eval echo '${'$as_ac_Header'}'`
10964 { echo "$as_me:$LINENO: result: $ac_res" >&5
10965 echo "${ECHO_T}$ac_res" >&6; }
10966
10967 fi
10968 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10969 cat >>confdefs.h <<_ACEOF
10970 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10971 _ACEOF
10972
10973 fi
10974
10975 done
10976
10977
10978 for ac_func in getpagesize
10979 do
10980 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10981 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10982 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10983 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10984 echo $ECHO_N "(cached) $ECHO_C" >&6
10985 else
10986 cat >conftest.$ac_ext <<_ACEOF
10987 /* confdefs.h. */
10988 _ACEOF
10989 cat confdefs.h >>conftest.$ac_ext
10990 cat >>conftest.$ac_ext <<_ACEOF
10991 /* end confdefs.h. */
10992 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10994 #define $ac_func innocuous_$ac_func
10995
10996 /* System header to define __stub macros and hopefully few prototypes,
10997 which can conflict with char $ac_func (); below.
10998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10999 <limits.h> exists even on freestanding compilers. */
11000
11001 #ifdef __STDC__
11002 # include <limits.h>
11003 #else
11004 # include <assert.h>
11005 #endif
11006
11007 #undef $ac_func
11008
11009 /* Override any GCC internal prototype to avoid an error.
11010 Use char because int might match the return type of a GCC
11011 builtin and then its argument prototype would still apply. */
11012 #ifdef __cplusplus
11013 extern "C"
11014 #endif
11015 char $ac_func ();
11016 /* The GNU C library defines this for functions which it implements
11017 to always fail with ENOSYS. Some functions are actually named
11018 something starting with __ and the normal name is an alias. */
11019 #if defined __stub_$ac_func || defined __stub___$ac_func
11020 choke me
11021 #endif
11022
11023 int
11024 main ()
11025 {
11026 return $ac_func ();
11027 ;
11028 return 0;
11029 }
11030 _ACEOF
11031 rm -f conftest.$ac_objext conftest$ac_exeext
11032 if { (ac_try="$ac_link"
11033 case "(($ac_try" in
11034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11035 *) ac_try_echo=$ac_try;;
11036 esac
11037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11038 (eval "$ac_link") 2>conftest.er1
11039 ac_status=$?
11040 grep -v '^ *+' conftest.er1 >conftest.err
11041 rm -f conftest.er1
11042 cat conftest.err >&5
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); } &&
11045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11046 { (case "(($ac_try" in
11047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11048 *) ac_try_echo=$ac_try;;
11049 esac
11050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11051 (eval "$ac_try") 2>&5
11052 ac_status=$?
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); }; } &&
11055 { ac_try='test -s conftest$ac_exeext'
11056 { (case "(($ac_try" in
11057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11058 *) ac_try_echo=$ac_try;;
11059 esac
11060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11061 (eval "$ac_try") 2>&5
11062 ac_status=$?
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); }; }; then
11065 eval "$as_ac_var=yes"
11066 else
11067 echo "$as_me: failed program was:" >&5
11068 sed 's/^/| /' conftest.$ac_ext >&5
11069
11070 eval "$as_ac_var=no"
11071 fi
11072
11073 rm -f core conftest.err conftest.$ac_objext \
11074 conftest$ac_exeext conftest.$ac_ext
11075 fi
11076 ac_res=`eval echo '${'$as_ac_var'}'`
11077 { echo "$as_me:$LINENO: result: $ac_res" >&5
11078 echo "${ECHO_T}$ac_res" >&6; }
11079 if test `eval echo '${'$as_ac_var'}'` = yes; then
11080 cat >>confdefs.h <<_ACEOF
11081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11082 _ACEOF
11083
11084 fi
11085 done
11086
11087 { echo "$as_me:$LINENO: checking for working mmap" >&5
11088 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
11089 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
11090 echo $ECHO_N "(cached) $ECHO_C" >&6
11091 else
11092 if test "$cross_compiling" = yes; then
11093 ac_cv_func_mmap_fixed_mapped=no
11094 else
11095 cat >conftest.$ac_ext <<_ACEOF
11096 /* confdefs.h. */
11097 _ACEOF
11098 cat confdefs.h >>conftest.$ac_ext
11099 cat >>conftest.$ac_ext <<_ACEOF
11100 /* end confdefs.h. */
11101 $ac_includes_default
11102 /* malloc might have been renamed as rpl_malloc. */
11103 #undef malloc
11104
11105 /* Thanks to Mike Haertel and Jim Avera for this test.
11106 Here is a matrix of mmap possibilities:
11107 mmap private not fixed
11108 mmap private fixed at somewhere currently unmapped
11109 mmap private fixed at somewhere already mapped
11110 mmap shared not fixed
11111 mmap shared fixed at somewhere currently unmapped
11112 mmap shared fixed at somewhere already mapped
11113 For private mappings, we should verify that changes cannot be read()
11114 back from the file, nor mmap's back from the file at a different
11115 address. (There have been systems where private was not correctly
11116 implemented like the infamous i386 svr4.0, and systems where the
11117 VM page cache was not coherent with the file system buffer cache
11118 like early versions of FreeBSD and possibly contemporary NetBSD.)
11119 For shared mappings, we should conversely verify that changes get
11120 propagated back to all the places they're supposed to be.
11121
11122 Grep wants private fixed already mapped.
11123 The main things grep needs to know about mmap are:
11124 * does it exist and is it safe to write into the mmap'd area
11125 * how to use it (BSD variants) */
11126
11127 #include <fcntl.h>
11128 #include <sys/mman.h>
11129
11130 #if !STDC_HEADERS && !HAVE_STDLIB_H
11131 char *malloc ();
11132 #endif
11133
11134 /* This mess was copied from the GNU getpagesize.h. */
11135 #if !HAVE_GETPAGESIZE
11136 /* Assume that all systems that can run configure have sys/param.h. */
11137 # if !HAVE_SYS_PARAM_H
11138 # define HAVE_SYS_PARAM_H 1
11139 # endif
11140
11141 # ifdef _SC_PAGESIZE
11142 # define getpagesize() sysconf(_SC_PAGESIZE)
11143 # else /* no _SC_PAGESIZE */
11144 # if HAVE_SYS_PARAM_H
11145 # include <sys/param.h>
11146 # ifdef EXEC_PAGESIZE
11147 # define getpagesize() EXEC_PAGESIZE
11148 # else /* no EXEC_PAGESIZE */
11149 # ifdef NBPG
11150 # define getpagesize() NBPG * CLSIZE
11151 # ifndef CLSIZE
11152 # define CLSIZE 1
11153 # endif /* no CLSIZE */
11154 # else /* no NBPG */
11155 # ifdef NBPC
11156 # define getpagesize() NBPC
11157 # else /* no NBPC */
11158 # ifdef PAGESIZE
11159 # define getpagesize() PAGESIZE
11160 # endif /* PAGESIZE */
11161 # endif /* no NBPC */
11162 # endif /* no NBPG */
11163 # endif /* no EXEC_PAGESIZE */
11164 # else /* no HAVE_SYS_PARAM_H */
11165 # define getpagesize() 8192 /* punt totally */
11166 # endif /* no HAVE_SYS_PARAM_H */
11167 # endif /* no _SC_PAGESIZE */
11168
11169 #endif /* no HAVE_GETPAGESIZE */
11170
11171 int
11172 main ()
11173 {
11174 char *data, *data2, *data3;
11175 int i, pagesize;
11176 int fd;
11177
11178 pagesize = getpagesize ();
11179
11180 /* First, make a file with some known garbage in it. */
11181 data = (char *) malloc (pagesize);
11182 if (!data)
11183 return 1;
11184 for (i = 0; i < pagesize; ++i)
11185 *(data + i) = rand ();
11186 umask (0);
11187 fd = creat ("conftest.mmap", 0600);
11188 if (fd < 0)
11189 return 1;
11190 if (write (fd, data, pagesize) != pagesize)
11191 return 1;
11192 close (fd);
11193
11194 /* Next, try to mmap the file at a fixed address which already has
11195 something else allocated at it. If we can, also make sure that
11196 we see the same garbage. */
11197 fd = open ("conftest.mmap", O_RDWR);
11198 if (fd < 0)
11199 return 1;
11200 data2 = (char *) malloc (2 * pagesize);
11201 if (!data2)
11202 return 1;
11203 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
11204 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11205 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11206 return 1;
11207 for (i = 0; i < pagesize; ++i)
11208 if (*(data + i) != *(data2 + i))
11209 return 1;
11210
11211 /* Finally, make sure that changes to the mapped area do not
11212 percolate back to the file as seen by read(). (This is a bug on
11213 some variants of i386 svr4.0.) */
11214 for (i = 0; i < pagesize; ++i)
11215 *(data2 + i) = *(data2 + i) + 1;
11216 data3 = (char *) malloc (pagesize);
11217 if (!data3)
11218 return 1;
11219 if (read (fd, data3, pagesize) != pagesize)
11220 return 1;
11221 for (i = 0; i < pagesize; ++i)
11222 if (*(data + i) != *(data3 + i))
11223 return 1;
11224 close (fd);
11225 return 0;
11226 }
11227 _ACEOF
11228 rm -f conftest$ac_exeext
11229 if { (ac_try="$ac_link"
11230 case "(($ac_try" in
11231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11232 *) ac_try_echo=$ac_try;;
11233 esac
11234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11235 (eval "$ac_link") 2>&5
11236 ac_status=$?
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11239 { (case "(($ac_try" in
11240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11241 *) ac_try_echo=$ac_try;;
11242 esac
11243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11244 (eval "$ac_try") 2>&5
11245 ac_status=$?
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); }; }; then
11248 ac_cv_func_mmap_fixed_mapped=yes
11249 else
11250 echo "$as_me: program exited with status $ac_status" >&5
11251 echo "$as_me: failed program was:" >&5
11252 sed 's/^/| /' conftest.$ac_ext >&5
11253
11254 ( exit $ac_status )
11255 ac_cv_func_mmap_fixed_mapped=no
11256 fi
11257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11258 fi
11259
11260
11261 fi
11262 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
11263 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
11264 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11265
11266 cat >>confdefs.h <<\_ACEOF
11267 #define HAVE_MMAP 1
11268 _ACEOF
11269
11270 fi
11271 rm -f conftest.mmap
11272
11273 if test $use_mmap_for_buffers = yes; then
11274 REL_ALLOC=no
11275 fi
11276
11277 LIBS="$libsrc_libs $LIBS"
11278
11279
11280 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
11281 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
11282 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
11283 echo $ECHO_N "(cached) $ECHO_C" >&6
11284 else
11285 ac_check_lib_save_LIBS=$LIBS
11286 LIBS="-ldnet $LIBS"
11287 cat >conftest.$ac_ext <<_ACEOF
11288 /* confdefs.h. */
11289 _ACEOF
11290 cat confdefs.h >>conftest.$ac_ext
11291 cat >>conftest.$ac_ext <<_ACEOF
11292 /* end confdefs.h. */
11293
11294 /* Override any GCC internal prototype to avoid an error.
11295 Use char because int might match the return type of a GCC
11296 builtin and then its argument prototype would still apply. */
11297 #ifdef __cplusplus
11298 extern "C"
11299 #endif
11300 char dnet_ntoa ();
11301 int
11302 main ()
11303 {
11304 return dnet_ntoa ();
11305 ;
11306 return 0;
11307 }
11308 _ACEOF
11309 rm -f conftest.$ac_objext conftest$ac_exeext
11310 if { (ac_try="$ac_link"
11311 case "(($ac_try" in
11312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11313 *) ac_try_echo=$ac_try;;
11314 esac
11315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11316 (eval "$ac_link") 2>conftest.er1
11317 ac_status=$?
11318 grep -v '^ *+' conftest.er1 >conftest.err
11319 rm -f conftest.er1
11320 cat conftest.err >&5
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); } &&
11323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11324 { (case "(($ac_try" in
11325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11326 *) ac_try_echo=$ac_try;;
11327 esac
11328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11329 (eval "$ac_try") 2>&5
11330 ac_status=$?
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); }; } &&
11333 { ac_try='test -s conftest$ac_exeext'
11334 { (case "(($ac_try" in
11335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11336 *) ac_try_echo=$ac_try;;
11337 esac
11338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11339 (eval "$ac_try") 2>&5
11340 ac_status=$?
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); }; }; then
11343 ac_cv_lib_dnet_dnet_ntoa=yes
11344 else
11345 echo "$as_me: failed program was:" >&5
11346 sed 's/^/| /' conftest.$ac_ext >&5
11347
11348 ac_cv_lib_dnet_dnet_ntoa=no
11349 fi
11350
11351 rm -f core conftest.err conftest.$ac_objext \
11352 conftest$ac_exeext conftest.$ac_ext
11353 LIBS=$ac_check_lib_save_LIBS
11354 fi
11355 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
11356 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
11357 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
11358 cat >>confdefs.h <<_ACEOF
11359 #define HAVE_LIBDNET 1
11360 _ACEOF
11361
11362 LIBS="-ldnet $LIBS"
11363
11364 fi
11365
11366
11367 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
11368 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
11369 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
11370 echo $ECHO_N "(cached) $ECHO_C" >&6
11371 else
11372 ac_check_lib_save_LIBS=$LIBS
11373 LIBS="-lXbsd $LIBS"
11374 cat >conftest.$ac_ext <<_ACEOF
11375 /* confdefs.h. */
11376 _ACEOF
11377 cat confdefs.h >>conftest.$ac_ext
11378 cat >>conftest.$ac_ext <<_ACEOF
11379 /* end confdefs.h. */
11380
11381
11382 int
11383 main ()
11384 {
11385 return main ();
11386 ;
11387 return 0;
11388 }
11389 _ACEOF
11390 rm -f conftest.$ac_objext conftest$ac_exeext
11391 if { (ac_try="$ac_link"
11392 case "(($ac_try" in
11393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11394 *) ac_try_echo=$ac_try;;
11395 esac
11396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11397 (eval "$ac_link") 2>conftest.er1
11398 ac_status=$?
11399 grep -v '^ *+' conftest.er1 >conftest.err
11400 rm -f conftest.er1
11401 cat conftest.err >&5
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); } &&
11404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11405 { (case "(($ac_try" in
11406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11407 *) ac_try_echo=$ac_try;;
11408 esac
11409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11410 (eval "$ac_try") 2>&5
11411 ac_status=$?
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); }; } &&
11414 { ac_try='test -s conftest$ac_exeext'
11415 { (case "(($ac_try" in
11416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11417 *) ac_try_echo=$ac_try;;
11418 esac
11419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11420 (eval "$ac_try") 2>&5
11421 ac_status=$?
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); }; }; then
11424 ac_cv_lib_Xbsd_main=yes
11425 else
11426 echo "$as_me: failed program was:" >&5
11427 sed 's/^/| /' conftest.$ac_ext >&5
11428
11429 ac_cv_lib_Xbsd_main=no
11430 fi
11431
11432 rm -f core conftest.err conftest.$ac_objext \
11433 conftest$ac_exeext conftest.$ac_ext
11434 LIBS=$ac_check_lib_save_LIBS
11435 fi
11436 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
11437 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
11438 if test $ac_cv_lib_Xbsd_main = yes; then
11439 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
11440 fi
11441
11442
11443
11444 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
11445 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
11446 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
11447 echo $ECHO_N "(cached) $ECHO_C" >&6
11448 else
11449 ac_check_lib_save_LIBS=$LIBS
11450 LIBS="-lpthreads $LIBS"
11451 cat >conftest.$ac_ext <<_ACEOF
11452 /* confdefs.h. */
11453 _ACEOF
11454 cat confdefs.h >>conftest.$ac_ext
11455 cat >>conftest.$ac_ext <<_ACEOF
11456 /* end confdefs.h. */
11457
11458 /* Override any GCC internal prototype to avoid an error.
11459 Use char because int might match the return type of a GCC
11460 builtin and then its argument prototype would still apply. */
11461 #ifdef __cplusplus
11462 extern "C"
11463 #endif
11464 char cma_open ();
11465 int
11466 main ()
11467 {
11468 return cma_open ();
11469 ;
11470 return 0;
11471 }
11472 _ACEOF
11473 rm -f conftest.$ac_objext conftest$ac_exeext
11474 if { (ac_try="$ac_link"
11475 case "(($ac_try" in
11476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11477 *) ac_try_echo=$ac_try;;
11478 esac
11479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11480 (eval "$ac_link") 2>conftest.er1
11481 ac_status=$?
11482 grep -v '^ *+' conftest.er1 >conftest.err
11483 rm -f conftest.er1
11484 cat conftest.err >&5
11485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486 (exit $ac_status); } &&
11487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11488 { (case "(($ac_try" in
11489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11490 *) ac_try_echo=$ac_try;;
11491 esac
11492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11493 (eval "$ac_try") 2>&5
11494 ac_status=$?
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); }; } &&
11497 { ac_try='test -s conftest$ac_exeext'
11498 { (case "(($ac_try" in
11499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11500 *) ac_try_echo=$ac_try;;
11501 esac
11502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11503 (eval "$ac_try") 2>&5
11504 ac_status=$?
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); }; }; then
11507 ac_cv_lib_pthreads_cma_open=yes
11508 else
11509 echo "$as_me: failed program was:" >&5
11510 sed 's/^/| /' conftest.$ac_ext >&5
11511
11512 ac_cv_lib_pthreads_cma_open=no
11513 fi
11514
11515 rm -f core conftest.err conftest.$ac_objext \
11516 conftest$ac_exeext conftest.$ac_ext
11517 LIBS=$ac_check_lib_save_LIBS
11518 fi
11519 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
11520 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
11521 if test $ac_cv_lib_pthreads_cma_open = yes; then
11522 cat >>confdefs.h <<_ACEOF
11523 #define HAVE_LIBPTHREADS 1
11524 _ACEOF
11525
11526 LIBS="-lpthreads $LIBS"
11527
11528 fi
11529
11530
11531 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
11532 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
11533 if test -d /usr/X386/include; then
11534 HAVE_XFREE386=yes
11535 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
11536 else
11537 HAVE_XFREE386=no
11538 fi
11539 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
11540 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
11541
11542
11543 case ${host_os} in
11544 aix*)
11545 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
11546 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
11547 if test "${gdb_cv_bigtoc+set}" = set; then
11548 echo $ECHO_N "(cached) $ECHO_C" >&6
11549 else
11550
11551 case $GCC in
11552 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
11553 *) gdb_cv_bigtoc=-bbigtoc ;;
11554 esac
11555
11556 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
11557 cat >conftest.$ac_ext <<_ACEOF
11558 /* confdefs.h. */
11559 _ACEOF
11560 cat confdefs.h >>conftest.$ac_ext
11561 cat >>conftest.$ac_ext <<_ACEOF
11562 /* end confdefs.h. */
11563
11564 int
11565 main ()
11566 {
11567 int i;
11568 ;
11569 return 0;
11570 }
11571 _ACEOF
11572 rm -f conftest.$ac_objext conftest$ac_exeext
11573 if { (ac_try="$ac_link"
11574 case "(($ac_try" in
11575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11576 *) ac_try_echo=$ac_try;;
11577 esac
11578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11579 (eval "$ac_link") 2>conftest.er1
11580 ac_status=$?
11581 grep -v '^ *+' conftest.er1 >conftest.err
11582 rm -f conftest.er1
11583 cat conftest.err >&5
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); } &&
11586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11587 { (case "(($ac_try" in
11588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11589 *) ac_try_echo=$ac_try;;
11590 esac
11591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11592 (eval "$ac_try") 2>&5
11593 ac_status=$?
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); }; } &&
11596 { ac_try='test -s conftest$ac_exeext'
11597 { (case "(($ac_try" in
11598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11599 *) ac_try_echo=$ac_try;;
11600 esac
11601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11602 (eval "$ac_try") 2>&5
11603 ac_status=$?
11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 (exit $ac_status); }; }; then
11606 :
11607 else
11608 echo "$as_me: failed program was:" >&5
11609 sed 's/^/| /' conftest.$ac_ext >&5
11610
11611 gdb_cv_bigtoc=
11612 fi
11613
11614 rm -f core conftest.err conftest.$ac_objext \
11615 conftest$ac_exeext conftest.$ac_ext
11616
11617 fi
11618 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
11619 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
11620 ;;
11621 esac
11622
11623 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11624 # used for the tests that follow. We set them back to REAL_CFLAGS and
11625 # REAL_CPPFLAGS later on.
11626
11627 REAL_CPPFLAGS="$CPPFLAGS"
11628
11629 if test "${HAVE_X11}" = "yes"; then
11630 DEFS="$C_SWITCH_X_SITE $DEFS"
11631 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
11632 LIBS="$LIBX $LIBS"
11633 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
11634 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
11635
11636 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11637 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
11638 # but it's more convenient here to set LD_RUN_PATH
11639 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
11640 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11641 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11642 export LD_RUN_PATH
11643 fi
11644
11645 if test "${opsys}" = "gnu-linux"; then
11646 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
11647 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
11648 cat >conftest.$ac_ext <<_ACEOF
11649 /* confdefs.h. */
11650 _ACEOF
11651 cat confdefs.h >>conftest.$ac_ext
11652 cat >>conftest.$ac_ext <<_ACEOF
11653 /* end confdefs.h. */
11654
11655 int
11656 main ()
11657 {
11658 XOpenDisplay ("foo");
11659 ;
11660 return 0;
11661 }
11662 _ACEOF
11663 rm -f conftest.$ac_objext conftest$ac_exeext
11664 if { (ac_try="$ac_link"
11665 case "(($ac_try" in
11666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11667 *) ac_try_echo=$ac_try;;
11668 esac
11669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11670 (eval "$ac_link") 2>conftest.er1
11671 ac_status=$?
11672 grep -v '^ *+' conftest.er1 >conftest.err
11673 rm -f conftest.er1
11674 cat conftest.err >&5
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); } &&
11677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11678 { (case "(($ac_try" in
11679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11680 *) ac_try_echo=$ac_try;;
11681 esac
11682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11683 (eval "$ac_try") 2>&5
11684 ac_status=$?
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); }; } &&
11687 { ac_try='test -s conftest$ac_exeext'
11688 { (case "(($ac_try" in
11689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11690 *) ac_try_echo=$ac_try;;
11691 esac
11692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11693 (eval "$ac_try") 2>&5
11694 ac_status=$?
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); }; }; then
11697 xlinux_first_failure=no
11698 else
11699 echo "$as_me: failed program was:" >&5
11700 sed 's/^/| /' conftest.$ac_ext >&5
11701
11702 xlinux_first_failure=yes
11703 fi
11704
11705 rm -f core conftest.err conftest.$ac_objext \
11706 conftest$ac_exeext conftest.$ac_ext
11707 if test "${xlinux_first_failure}" = "yes"; then
11708 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
11709 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
11710 OLD_CPPFLAGS="$CPPFLAGS"
11711 OLD_LIBS="$LIBS"
11712 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
11713 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
11714 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
11715 LIBS="$LIBS -b i486-linuxaout"
11716 cat >conftest.$ac_ext <<_ACEOF
11717 /* confdefs.h. */
11718 _ACEOF
11719 cat confdefs.h >>conftest.$ac_ext
11720 cat >>conftest.$ac_ext <<_ACEOF
11721 /* end confdefs.h. */
11722
11723 int
11724 main ()
11725 {
11726 XOpenDisplay ("foo");
11727 ;
11728 return 0;
11729 }
11730 _ACEOF
11731 rm -f conftest.$ac_objext conftest$ac_exeext
11732 if { (ac_try="$ac_link"
11733 case "(($ac_try" in
11734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11735 *) ac_try_echo=$ac_try;;
11736 esac
11737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11738 (eval "$ac_link") 2>conftest.er1
11739 ac_status=$?
11740 grep -v '^ *+' conftest.er1 >conftest.err
11741 rm -f conftest.er1
11742 cat conftest.err >&5
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); } &&
11745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11746 { (case "(($ac_try" in
11747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11748 *) ac_try_echo=$ac_try;;
11749 esac
11750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11751 (eval "$ac_try") 2>&5
11752 ac_status=$?
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); }; } &&
11755 { ac_try='test -s conftest$ac_exeext'
11756 { (case "(($ac_try" in
11757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11758 *) ac_try_echo=$ac_try;;
11759 esac
11760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11761 (eval "$ac_try") 2>&5
11762 ac_status=$?
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); }; }; then
11765 xlinux_second_failure=no
11766 else
11767 echo "$as_me: failed program was:" >&5
11768 sed 's/^/| /' conftest.$ac_ext >&5
11769
11770 xlinux_second_failure=yes
11771 fi
11772
11773 rm -f core conftest.err conftest.$ac_objext \
11774 conftest$ac_exeext conftest.$ac_ext
11775 if test "${xlinux_second_failure}" = "yes"; then
11776 # If we get the same failure with -b, there is no use adding -b.
11777 # So take it out. This plays safe.
11778 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11779 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11780 CPPFLAGS="$OLD_CPPFLAGS"
11781 LIBS="$OLD_LIBS"
11782 { echo "$as_me:$LINENO: result: no" >&5
11783 echo "${ECHO_T}no" >&6; }
11784 else
11785 { echo "$as_me:$LINENO: result: yes" >&5
11786 echo "${ECHO_T}yes" >&6; }
11787 fi
11788 else
11789 { echo "$as_me:$LINENO: result: no" >&5
11790 echo "${ECHO_T}no" >&6; }
11791 fi
11792 fi
11793
11794 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11795 # header files included from there.
11796 { echo "$as_me:$LINENO: checking for Xkb" >&5
11797 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
11798 cat >conftest.$ac_ext <<_ACEOF
11799 /* confdefs.h. */
11800 _ACEOF
11801 cat confdefs.h >>conftest.$ac_ext
11802 cat >>conftest.$ac_ext <<_ACEOF
11803 /* end confdefs.h. */
11804 #include <X11/Xlib.h>
11805 #include <X11/XKBlib.h>
11806 int
11807 main ()
11808 {
11809 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11810 ;
11811 return 0;
11812 }
11813 _ACEOF
11814 rm -f conftest.$ac_objext conftest$ac_exeext
11815 if { (ac_try="$ac_link"
11816 case "(($ac_try" in
11817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11818 *) ac_try_echo=$ac_try;;
11819 esac
11820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11821 (eval "$ac_link") 2>conftest.er1
11822 ac_status=$?
11823 grep -v '^ *+' conftest.er1 >conftest.err
11824 rm -f conftest.er1
11825 cat conftest.err >&5
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); } &&
11828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11829 { (case "(($ac_try" in
11830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11831 *) ac_try_echo=$ac_try;;
11832 esac
11833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11834 (eval "$ac_try") 2>&5
11835 ac_status=$?
11836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); }; } &&
11838 { ac_try='test -s conftest$ac_exeext'
11839 { (case "(($ac_try" in
11840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11841 *) ac_try_echo=$ac_try;;
11842 esac
11843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11844 (eval "$ac_try") 2>&5
11845 ac_status=$?
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); }; }; then
11848 emacs_xkb=yes
11849 else
11850 echo "$as_me: failed program was:" >&5
11851 sed 's/^/| /' conftest.$ac_ext >&5
11852
11853 emacs_xkb=no
11854 fi
11855
11856 rm -f core conftest.err conftest.$ac_objext \
11857 conftest$ac_exeext conftest.$ac_ext
11858 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11859 echo "${ECHO_T}$emacs_xkb" >&6; }
11860 if test $emacs_xkb = yes; then
11861
11862 cat >>confdefs.h <<\_ACEOF
11863 #define HAVE_XKBGETKEYBOARD 1
11864 _ACEOF
11865
11866 fi
11867
11868
11869
11870
11871
11872 for ac_func in XrmSetDatabase XScreenResourceString \
11873 XScreenNumberOfScreen XSetWMProtocols
11874 do
11875 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11876 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11878 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11879 echo $ECHO_N "(cached) $ECHO_C" >&6
11880 else
11881 cat >conftest.$ac_ext <<_ACEOF
11882 /* confdefs.h. */
11883 _ACEOF
11884 cat confdefs.h >>conftest.$ac_ext
11885 cat >>conftest.$ac_ext <<_ACEOF
11886 /* end confdefs.h. */
11887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11889 #define $ac_func innocuous_$ac_func
11890
11891 /* System header to define __stub macros and hopefully few prototypes,
11892 which can conflict with char $ac_func (); below.
11893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11894 <limits.h> exists even on freestanding compilers. */
11895
11896 #ifdef __STDC__
11897 # include <limits.h>
11898 #else
11899 # include <assert.h>
11900 #endif
11901
11902 #undef $ac_func
11903
11904 /* Override any GCC internal prototype to avoid an error.
11905 Use char because int might match the return type of a GCC
11906 builtin and then its argument prototype would still apply. */
11907 #ifdef __cplusplus
11908 extern "C"
11909 #endif
11910 char $ac_func ();
11911 /* The GNU C library defines this for functions which it implements
11912 to always fail with ENOSYS. Some functions are actually named
11913 something starting with __ and the normal name is an alias. */
11914 #if defined __stub_$ac_func || defined __stub___$ac_func
11915 choke me
11916 #endif
11917
11918 int
11919 main ()
11920 {
11921 return $ac_func ();
11922 ;
11923 return 0;
11924 }
11925 _ACEOF
11926 rm -f conftest.$ac_objext conftest$ac_exeext
11927 if { (ac_try="$ac_link"
11928 case "(($ac_try" in
11929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11930 *) ac_try_echo=$ac_try;;
11931 esac
11932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11933 (eval "$ac_link") 2>conftest.er1
11934 ac_status=$?
11935 grep -v '^ *+' conftest.er1 >conftest.err
11936 rm -f conftest.er1
11937 cat conftest.err >&5
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); } &&
11940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11941 { (case "(($ac_try" in
11942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11943 *) ac_try_echo=$ac_try;;
11944 esac
11945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11946 (eval "$ac_try") 2>&5
11947 ac_status=$?
11948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); }; } &&
11950 { ac_try='test -s conftest$ac_exeext'
11951 { (case "(($ac_try" in
11952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11953 *) ac_try_echo=$ac_try;;
11954 esac
11955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11956 (eval "$ac_try") 2>&5
11957 ac_status=$?
11958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); }; }; then
11960 eval "$as_ac_var=yes"
11961 else
11962 echo "$as_me: failed program was:" >&5
11963 sed 's/^/| /' conftest.$ac_ext >&5
11964
11965 eval "$as_ac_var=no"
11966 fi
11967
11968 rm -f core conftest.err conftest.$ac_objext \
11969 conftest$ac_exeext conftest.$ac_ext
11970 fi
11971 ac_res=`eval echo '${'$as_ac_var'}'`
11972 { echo "$as_me:$LINENO: result: $ac_res" >&5
11973 echo "${ECHO_T}$ac_res" >&6; }
11974 if test `eval echo '${'$as_ac_var'}'` = yes; then
11975 cat >>confdefs.h <<_ACEOF
11976 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11977 _ACEOF
11978
11979 fi
11980 done
11981
11982 fi
11983
11984 if test "${window_system}" = "x11"; then
11985 { echo "$as_me:$LINENO: checking X11 version 6" >&5
11986 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
11987 if test "${emacs_cv_x11_version_6+set}" = set; then
11988 echo $ECHO_N "(cached) $ECHO_C" >&6
11989 else
11990 cat >conftest.$ac_ext <<_ACEOF
11991 /* confdefs.h. */
11992 _ACEOF
11993 cat confdefs.h >>conftest.$ac_ext
11994 cat >>conftest.$ac_ext <<_ACEOF
11995 /* end confdefs.h. */
11996 #include <X11/Xlib.h>
11997 int
11998 main ()
11999 {
12000 #if XlibSpecificationRelease < 6
12001 fail;
12002 #endif
12003
12004 ;
12005 return 0;
12006 }
12007 _ACEOF
12008 rm -f conftest.$ac_objext conftest$ac_exeext
12009 if { (ac_try="$ac_link"
12010 case "(($ac_try" in
12011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12012 *) ac_try_echo=$ac_try;;
12013 esac
12014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12015 (eval "$ac_link") 2>conftest.er1
12016 ac_status=$?
12017 grep -v '^ *+' conftest.er1 >conftest.err
12018 rm -f conftest.er1
12019 cat conftest.err >&5
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); } &&
12022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12023 { (case "(($ac_try" in
12024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12025 *) ac_try_echo=$ac_try;;
12026 esac
12027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12028 (eval "$ac_try") 2>&5
12029 ac_status=$?
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); }; } &&
12032 { ac_try='test -s conftest$ac_exeext'
12033 { (case "(($ac_try" in
12034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12035 *) ac_try_echo=$ac_try;;
12036 esac
12037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12038 (eval "$ac_try") 2>&5
12039 ac_status=$?
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); }; }; then
12042 emacs_cv_x11_version_6=yes
12043 else
12044 echo "$as_me: failed program was:" >&5
12045 sed 's/^/| /' conftest.$ac_ext >&5
12046
12047 emacs_cv_x11_version_6=no
12048 fi
12049
12050 rm -f core conftest.err conftest.$ac_objext \
12051 conftest$ac_exeext conftest.$ac_ext
12052 fi
12053
12054 if test $emacs_cv_x11_version_6 = yes; then
12055 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12056 echo "${ECHO_T}6 or newer" >&6; }
12057
12058 cat >>confdefs.h <<\_ACEOF
12059 #define HAVE_X11R6 1
12060 _ACEOF
12061
12062 else
12063 { echo "$as_me:$LINENO: result: before 6" >&5
12064 echo "${ECHO_T}before 6" >&6; }
12065 fi
12066 fi
12067
12068 if test "${window_system}" = "x11"; then
12069 { echo "$as_me:$LINENO: checking X11 version 5" >&5
12070 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
12071 if test "${emacs_cv_x11_version_5+set}" = set; then
12072 echo $ECHO_N "(cached) $ECHO_C" >&6
12073 else
12074 cat >conftest.$ac_ext <<_ACEOF
12075 /* confdefs.h. */
12076 _ACEOF
12077 cat confdefs.h >>conftest.$ac_ext
12078 cat >>conftest.$ac_ext <<_ACEOF
12079 /* end confdefs.h. */
12080 #include <X11/Xlib.h>
12081 int
12082 main ()
12083 {
12084 #if XlibSpecificationRelease < 5
12085 fail;
12086 #endif
12087
12088 ;
12089 return 0;
12090 }
12091 _ACEOF
12092 rm -f conftest.$ac_objext conftest$ac_exeext
12093 if { (ac_try="$ac_link"
12094 case "(($ac_try" in
12095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12096 *) ac_try_echo=$ac_try;;
12097 esac
12098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12099 (eval "$ac_link") 2>conftest.er1
12100 ac_status=$?
12101 grep -v '^ *+' conftest.er1 >conftest.err
12102 rm -f conftest.er1
12103 cat conftest.err >&5
12104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105 (exit $ac_status); } &&
12106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12107 { (case "(($ac_try" in
12108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12109 *) ac_try_echo=$ac_try;;
12110 esac
12111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12112 (eval "$ac_try") 2>&5
12113 ac_status=$?
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); }; } &&
12116 { ac_try='test -s conftest$ac_exeext'
12117 { (case "(($ac_try" in
12118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12119 *) ac_try_echo=$ac_try;;
12120 esac
12121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12122 (eval "$ac_try") 2>&5
12123 ac_status=$?
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); }; }; then
12126 emacs_cv_x11_version_5=yes
12127 else
12128 echo "$as_me: failed program was:" >&5
12129 sed 's/^/| /' conftest.$ac_ext >&5
12130
12131 emacs_cv_x11_version_5=no
12132 fi
12133
12134 rm -f core conftest.err conftest.$ac_objext \
12135 conftest$ac_exeext conftest.$ac_ext
12136 fi
12137
12138 if test $emacs_cv_x11_version_5 = yes; then
12139 { echo "$as_me:$LINENO: result: 5 or newer" >&5
12140 echo "${ECHO_T}5 or newer" >&6; }
12141 HAVE_X11R5=yes
12142
12143 cat >>confdefs.h <<\_ACEOF
12144 #define HAVE_X11R5 1
12145 _ACEOF
12146
12147 else
12148 HAVE_X11R5=no
12149 { echo "$as_me:$LINENO: result: before 5" >&5
12150 echo "${ECHO_T}before 5" >&6; }
12151 fi
12152 fi
12153
12154 HAVE_GTK=no
12155 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
12156 USE_X_TOOLKIT=none
12157 fi
12158 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
12159 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
12160 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
12161 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
12162 { (exit 1); exit 1; }; };
12163 fi
12164 GLIB_REQUIRED=2.4
12165 GTK_REQUIRED=2.4
12166 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
12167
12168 if test "X${with_pkg_config_prog}" != X; then
12169 PKG_CONFIG="${with_pkg_config_prog}"
12170 fi
12171
12172 succeeded=no
12173
12174 if test -z "$PKG_CONFIG"; then
12175 # Extract the first word of "pkg-config", so it can be a program name with args.
12176 set dummy pkg-config; ac_word=$2
12177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12179 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12180 echo $ECHO_N "(cached) $ECHO_C" >&6
12181 else
12182 case $PKG_CONFIG in
12183 [\\/]* | ?:[\\/]*)
12184 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12185 ;;
12186 *)
12187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12188 for as_dir in $PATH
12189 do
12190 IFS=$as_save_IFS
12191 test -z "$as_dir" && as_dir=.
12192 for ac_exec_ext in '' $ac_executable_extensions; do
12193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12194 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12196 break 2
12197 fi
12198 done
12199 done
12200 IFS=$as_save_IFS
12201
12202 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12203 ;;
12204 esac
12205 fi
12206 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12207 if test -n "$PKG_CONFIG"; then
12208 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12209 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12210 else
12211 { echo "$as_me:$LINENO: result: no" >&5
12212 echo "${ECHO_T}no" >&6; }
12213 fi
12214
12215
12216 fi
12217
12218 if test "$PKG_CONFIG" = "no" ; then
12219 { { echo "$as_me:$LINENO: error:
12220 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&5
12221 echo "$as_me: error:
12222 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&2;}
12223 { (exit 1); exit 1; }; }
12224 else
12225 PKG_CONFIG_MIN_VERSION=0.9.0
12226 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12227 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
12228 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
12229
12230 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
12231 { echo "$as_me:$LINENO: result: yes" >&5
12232 echo "${ECHO_T}yes" >&6; }
12233 succeeded=yes
12234
12235 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
12236 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
12237 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
12238 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
12239 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
12240
12241 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
12242 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
12243 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
12244 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
12245 echo "${ECHO_T}$GTK_LIBS" >&6; }
12246 else
12247 { echo "$as_me:$LINENO: result: no" >&5
12248 echo "${ECHO_T}no" >&6; }
12249 GTK_CFLAGS=""
12250 GTK_LIBS=""
12251 ## If we have a custom action on failure, don't print errors, but
12252 ## do set a variable so people can do so.
12253 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
12254 echo $GTK_PKG_ERRORS
12255 fi
12256
12257
12258
12259 else
12260 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12261 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12262 fi
12263 fi
12264
12265 if test $succeeded = yes; then
12266 :
12267 else
12268 { { echo "$as_me:$LINENO: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
12269 echo "$as_me: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
12270 { (exit 1); exit 1; }; }
12271 fi
12272
12273
12274
12275 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
12276 CFLAGS="$CFLAGS $GTK_CFLAGS"
12277 LIBS="$GTK_LIBS $LIBS"
12278 GTK_COMPILES=no
12279
12280 for ac_func in gtk_main
12281 do
12282 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12283 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12284 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12285 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12286 echo $ECHO_N "(cached) $ECHO_C" >&6
12287 else
12288 cat >conftest.$ac_ext <<_ACEOF
12289 /* confdefs.h. */
12290 _ACEOF
12291 cat confdefs.h >>conftest.$ac_ext
12292 cat >>conftest.$ac_ext <<_ACEOF
12293 /* end confdefs.h. */
12294 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12296 #define $ac_func innocuous_$ac_func
12297
12298 /* System header to define __stub macros and hopefully few prototypes,
12299 which can conflict with char $ac_func (); below.
12300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12301 <limits.h> exists even on freestanding compilers. */
12302
12303 #ifdef __STDC__
12304 # include <limits.h>
12305 #else
12306 # include <assert.h>
12307 #endif
12308
12309 #undef $ac_func
12310
12311 /* Override any GCC internal prototype to avoid an error.
12312 Use char because int might match the return type of a GCC
12313 builtin and then its argument prototype would still apply. */
12314 #ifdef __cplusplus
12315 extern "C"
12316 #endif
12317 char $ac_func ();
12318 /* The GNU C library defines this for functions which it implements
12319 to always fail with ENOSYS. Some functions are actually named
12320 something starting with __ and the normal name is an alias. */
12321 #if defined __stub_$ac_func || defined __stub___$ac_func
12322 choke me
12323 #endif
12324
12325 int
12326 main ()
12327 {
12328 return $ac_func ();
12329 ;
12330 return 0;
12331 }
12332 _ACEOF
12333 rm -f conftest.$ac_objext conftest$ac_exeext
12334 if { (ac_try="$ac_link"
12335 case "(($ac_try" in
12336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12337 *) ac_try_echo=$ac_try;;
12338 esac
12339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12340 (eval "$ac_link") 2>conftest.er1
12341 ac_status=$?
12342 grep -v '^ *+' conftest.er1 >conftest.err
12343 rm -f conftest.er1
12344 cat conftest.err >&5
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); } &&
12347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12348 { (case "(($ac_try" in
12349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12350 *) ac_try_echo=$ac_try;;
12351 esac
12352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12353 (eval "$ac_try") 2>&5
12354 ac_status=$?
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); }; } &&
12357 { ac_try='test -s conftest$ac_exeext'
12358 { (case "(($ac_try" in
12359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12360 *) ac_try_echo=$ac_try;;
12361 esac
12362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12363 (eval "$ac_try") 2>&5
12364 ac_status=$?
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); }; }; then
12367 eval "$as_ac_var=yes"
12368 else
12369 echo "$as_me: failed program was:" >&5
12370 sed 's/^/| /' conftest.$ac_ext >&5
12371
12372 eval "$as_ac_var=no"
12373 fi
12374
12375 rm -f core conftest.err conftest.$ac_objext \
12376 conftest$ac_exeext conftest.$ac_ext
12377 fi
12378 ac_res=`eval echo '${'$as_ac_var'}'`
12379 { echo "$as_me:$LINENO: result: $ac_res" >&5
12380 echo "${ECHO_T}$ac_res" >&6; }
12381 if test `eval echo '${'$as_ac_var'}'` = yes; then
12382 cat >>confdefs.h <<_ACEOF
12383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12384 _ACEOF
12385 GTK_COMPILES=yes
12386 fi
12387 done
12388
12389 if test "${GTK_COMPILES}" != "yes"; then
12390 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
12391 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
12392 { (exit 1); exit 1; }; };
12393 fi
12394
12395 HAVE_GTK=yes
12396
12397 cat >>confdefs.h <<\_ACEOF
12398 #define HAVE_GTK 1
12399 _ACEOF
12400
12401 USE_X_TOOLKIT=none
12402
12403 if test "$with_toolkit_scroll_bars" != no; then
12404 with_toolkit_scroll_bars=yes
12405 fi
12406
12407 HAVE_GTK_MULTIDISPLAY=no
12408
12409 for ac_func in gdk_display_open
12410 do
12411 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12412 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12413 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12414 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12415 echo $ECHO_N "(cached) $ECHO_C" >&6
12416 else
12417 cat >conftest.$ac_ext <<_ACEOF
12418 /* confdefs.h. */
12419 _ACEOF
12420 cat confdefs.h >>conftest.$ac_ext
12421 cat >>conftest.$ac_ext <<_ACEOF
12422 /* end confdefs.h. */
12423 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12425 #define $ac_func innocuous_$ac_func
12426
12427 /* System header to define __stub macros and hopefully few prototypes,
12428 which can conflict with char $ac_func (); below.
12429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12430 <limits.h> exists even on freestanding compilers. */
12431
12432 #ifdef __STDC__
12433 # include <limits.h>
12434 #else
12435 # include <assert.h>
12436 #endif
12437
12438 #undef $ac_func
12439
12440 /* Override any GCC internal prototype to avoid an error.
12441 Use char because int might match the return type of a GCC
12442 builtin and then its argument prototype would still apply. */
12443 #ifdef __cplusplus
12444 extern "C"
12445 #endif
12446 char $ac_func ();
12447 /* The GNU C library defines this for functions which it implements
12448 to always fail with ENOSYS. Some functions are actually named
12449 something starting with __ and the normal name is an alias. */
12450 #if defined __stub_$ac_func || defined __stub___$ac_func
12451 choke me
12452 #endif
12453
12454 int
12455 main ()
12456 {
12457 return $ac_func ();
12458 ;
12459 return 0;
12460 }
12461 _ACEOF
12462 rm -f conftest.$ac_objext conftest$ac_exeext
12463 if { (ac_try="$ac_link"
12464 case "(($ac_try" in
12465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12466 *) ac_try_echo=$ac_try;;
12467 esac
12468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12469 (eval "$ac_link") 2>conftest.er1
12470 ac_status=$?
12471 grep -v '^ *+' conftest.er1 >conftest.err
12472 rm -f conftest.er1
12473 cat conftest.err >&5
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); } &&
12476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12477 { (case "(($ac_try" in
12478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12479 *) ac_try_echo=$ac_try;;
12480 esac
12481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12482 (eval "$ac_try") 2>&5
12483 ac_status=$?
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); }; } &&
12486 { ac_try='test -s conftest$ac_exeext'
12487 { (case "(($ac_try" in
12488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12489 *) ac_try_echo=$ac_try;;
12490 esac
12491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12492 (eval "$ac_try") 2>&5
12493 ac_status=$?
12494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495 (exit $ac_status); }; }; then
12496 eval "$as_ac_var=yes"
12497 else
12498 echo "$as_me: failed program was:" >&5
12499 sed 's/^/| /' conftest.$ac_ext >&5
12500
12501 eval "$as_ac_var=no"
12502 fi
12503
12504 rm -f core conftest.err conftest.$ac_objext \
12505 conftest$ac_exeext conftest.$ac_ext
12506 fi
12507 ac_res=`eval echo '${'$as_ac_var'}'`
12508 { echo "$as_me:$LINENO: result: $ac_res" >&5
12509 echo "${ECHO_T}$ac_res" >&6; }
12510 if test `eval echo '${'$as_ac_var'}'` = yes; then
12511 cat >>confdefs.h <<_ACEOF
12512 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12513 _ACEOF
12514 HAVE_GTK_MULTIDISPLAY=yes
12515 fi
12516 done
12517
12518 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
12519
12520 cat >>confdefs.h <<\_ACEOF
12521 #define HAVE_GTK_MULTIDISPLAY 1
12522 _ACEOF
12523
12524 fi
12525 HAVE_GTK_FILE_SELECTION=no
12526
12527 for ac_func in gtk_file_selection_new
12528 do
12529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12530 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12532 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12533 echo $ECHO_N "(cached) $ECHO_C" >&6
12534 else
12535 cat >conftest.$ac_ext <<_ACEOF
12536 /* confdefs.h. */
12537 _ACEOF
12538 cat confdefs.h >>conftest.$ac_ext
12539 cat >>conftest.$ac_ext <<_ACEOF
12540 /* end confdefs.h. */
12541 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12543 #define $ac_func innocuous_$ac_func
12544
12545 /* System header to define __stub macros and hopefully few prototypes,
12546 which can conflict with char $ac_func (); below.
12547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12548 <limits.h> exists even on freestanding compilers. */
12549
12550 #ifdef __STDC__
12551 # include <limits.h>
12552 #else
12553 # include <assert.h>
12554 #endif
12555
12556 #undef $ac_func
12557
12558 /* Override any GCC internal prototype to avoid an error.
12559 Use char because int might match the return type of a GCC
12560 builtin and then its argument prototype would still apply. */
12561 #ifdef __cplusplus
12562 extern "C"
12563 #endif
12564 char $ac_func ();
12565 /* The GNU C library defines this for functions which it implements
12566 to always fail with ENOSYS. Some functions are actually named
12567 something starting with __ and the normal name is an alias. */
12568 #if defined __stub_$ac_func || defined __stub___$ac_func
12569 choke me
12570 #endif
12571
12572 int
12573 main ()
12574 {
12575 return $ac_func ();
12576 ;
12577 return 0;
12578 }
12579 _ACEOF
12580 rm -f conftest.$ac_objext conftest$ac_exeext
12581 if { (ac_try="$ac_link"
12582 case "(($ac_try" in
12583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12584 *) ac_try_echo=$ac_try;;
12585 esac
12586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12587 (eval "$ac_link") 2>conftest.er1
12588 ac_status=$?
12589 grep -v '^ *+' conftest.er1 >conftest.err
12590 rm -f conftest.er1
12591 cat conftest.err >&5
12592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); } &&
12594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12595 { (case "(($ac_try" in
12596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12597 *) ac_try_echo=$ac_try;;
12598 esac
12599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12600 (eval "$ac_try") 2>&5
12601 ac_status=$?
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); }; } &&
12604 { ac_try='test -s conftest$ac_exeext'
12605 { (case "(($ac_try" in
12606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12607 *) ac_try_echo=$ac_try;;
12608 esac
12609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12610 (eval "$ac_try") 2>&5
12611 ac_status=$?
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); }; }; then
12614 eval "$as_ac_var=yes"
12615 else
12616 echo "$as_me: failed program was:" >&5
12617 sed 's/^/| /' conftest.$ac_ext >&5
12618
12619 eval "$as_ac_var=no"
12620 fi
12621
12622 rm -f core conftest.err conftest.$ac_objext \
12623 conftest$ac_exeext conftest.$ac_ext
12624 fi
12625 ac_res=`eval echo '${'$as_ac_var'}'`
12626 { echo "$as_me:$LINENO: result: $ac_res" >&5
12627 echo "${ECHO_T}$ac_res" >&6; }
12628 if test `eval echo '${'$as_ac_var'}'` = yes; then
12629 cat >>confdefs.h <<_ACEOF
12630 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12631 _ACEOF
12632 HAVE_GTK_FILE_SELECTION=yes
12633 fi
12634 done
12635
12636
12637 HAVE_GTK_FILE_CHOOSER=no
12638
12639 for ac_func in gtk_file_chooser_dialog_new
12640 do
12641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12642 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12644 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12645 echo $ECHO_N "(cached) $ECHO_C" >&6
12646 else
12647 cat >conftest.$ac_ext <<_ACEOF
12648 /* confdefs.h. */
12649 _ACEOF
12650 cat confdefs.h >>conftest.$ac_ext
12651 cat >>conftest.$ac_ext <<_ACEOF
12652 /* end confdefs.h. */
12653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12655 #define $ac_func innocuous_$ac_func
12656
12657 /* System header to define __stub macros and hopefully few prototypes,
12658 which can conflict with char $ac_func (); below.
12659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12660 <limits.h> exists even on freestanding compilers. */
12661
12662 #ifdef __STDC__
12663 # include <limits.h>
12664 #else
12665 # include <assert.h>
12666 #endif
12667
12668 #undef $ac_func
12669
12670 /* Override any GCC internal prototype to avoid an error.
12671 Use char because int might match the return type of a GCC
12672 builtin and then its argument prototype would still apply. */
12673 #ifdef __cplusplus
12674 extern "C"
12675 #endif
12676 char $ac_func ();
12677 /* The GNU C library defines this for functions which it implements
12678 to always fail with ENOSYS. Some functions are actually named
12679 something starting with __ and the normal name is an alias. */
12680 #if defined __stub_$ac_func || defined __stub___$ac_func
12681 choke me
12682 #endif
12683
12684 int
12685 main ()
12686 {
12687 return $ac_func ();
12688 ;
12689 return 0;
12690 }
12691 _ACEOF
12692 rm -f conftest.$ac_objext conftest$ac_exeext
12693 if { (ac_try="$ac_link"
12694 case "(($ac_try" in
12695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12696 *) ac_try_echo=$ac_try;;
12697 esac
12698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12699 (eval "$ac_link") 2>conftest.er1
12700 ac_status=$?
12701 grep -v '^ *+' conftest.er1 >conftest.err
12702 rm -f conftest.er1
12703 cat conftest.err >&5
12704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705 (exit $ac_status); } &&
12706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12707 { (case "(($ac_try" in
12708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12709 *) ac_try_echo=$ac_try;;
12710 esac
12711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12712 (eval "$ac_try") 2>&5
12713 ac_status=$?
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); }; } &&
12716 { ac_try='test -s conftest$ac_exeext'
12717 { (case "(($ac_try" in
12718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12719 *) ac_try_echo=$ac_try;;
12720 esac
12721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12722 (eval "$ac_try") 2>&5
12723 ac_status=$?
12724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725 (exit $ac_status); }; }; then
12726 eval "$as_ac_var=yes"
12727 else
12728 echo "$as_me: failed program was:" >&5
12729 sed 's/^/| /' conftest.$ac_ext >&5
12730
12731 eval "$as_ac_var=no"
12732 fi
12733
12734 rm -f core conftest.err conftest.$ac_objext \
12735 conftest$ac_exeext conftest.$ac_ext
12736 fi
12737 ac_res=`eval echo '${'$as_ac_var'}'`
12738 { echo "$as_me:$LINENO: result: $ac_res" >&5
12739 echo "${ECHO_T}$ac_res" >&6; }
12740 if test `eval echo '${'$as_ac_var'}'` = yes; then
12741 cat >>confdefs.h <<_ACEOF
12742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12743 _ACEOF
12744 HAVE_GTK_FILE_CHOOSER=yes
12745 fi
12746 done
12747
12748
12749 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12750 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12751
12752 cat >>confdefs.h <<\_ACEOF
12753 #define HAVE_GTK_FILE_BOTH 1
12754 _ACEOF
12755
12756 fi
12757
12758 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12759 HAVE_GTK_AND_PTHREAD=no
12760
12761 for ac_header in pthread.h
12762 do
12763 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12768 echo $ECHO_N "(cached) $ECHO_C" >&6
12769 fi
12770 ac_res=`eval echo '${'$as_ac_Header'}'`
12771 { echo "$as_me:$LINENO: result: $ac_res" >&5
12772 echo "${ECHO_T}$ac_res" >&6; }
12773 else
12774 # Is the header compilable?
12775 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12776 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12777 cat >conftest.$ac_ext <<_ACEOF
12778 /* confdefs.h. */
12779 _ACEOF
12780 cat confdefs.h >>conftest.$ac_ext
12781 cat >>conftest.$ac_ext <<_ACEOF
12782 /* end confdefs.h. */
12783 $ac_includes_default
12784 #include <$ac_header>
12785 _ACEOF
12786 rm -f conftest.$ac_objext
12787 if { (ac_try="$ac_compile"
12788 case "(($ac_try" in
12789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12790 *) ac_try_echo=$ac_try;;
12791 esac
12792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12793 (eval "$ac_compile") 2>conftest.er1
12794 ac_status=$?
12795 grep -v '^ *+' conftest.er1 >conftest.err
12796 rm -f conftest.er1
12797 cat conftest.err >&5
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); } &&
12800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12801 { (case "(($ac_try" in
12802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12803 *) ac_try_echo=$ac_try;;
12804 esac
12805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12806 (eval "$ac_try") 2>&5
12807 ac_status=$?
12808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809 (exit $ac_status); }; } &&
12810 { ac_try='test -s conftest.$ac_objext'
12811 { (case "(($ac_try" in
12812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12813 *) ac_try_echo=$ac_try;;
12814 esac
12815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12816 (eval "$ac_try") 2>&5
12817 ac_status=$?
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); }; }; then
12820 ac_header_compiler=yes
12821 else
12822 echo "$as_me: failed program was:" >&5
12823 sed 's/^/| /' conftest.$ac_ext >&5
12824
12825 ac_header_compiler=no
12826 fi
12827
12828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12829 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12830 echo "${ECHO_T}$ac_header_compiler" >&6; }
12831
12832 # Is the header present?
12833 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12834 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12835 cat >conftest.$ac_ext <<_ACEOF
12836 /* confdefs.h. */
12837 _ACEOF
12838 cat confdefs.h >>conftest.$ac_ext
12839 cat >>conftest.$ac_ext <<_ACEOF
12840 /* end confdefs.h. */
12841 #include <$ac_header>
12842 _ACEOF
12843 if { (ac_try="$ac_cpp conftest.$ac_ext"
12844 case "(($ac_try" in
12845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12846 *) ac_try_echo=$ac_try;;
12847 esac
12848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12850 ac_status=$?
12851 grep -v '^ *+' conftest.er1 >conftest.err
12852 rm -f conftest.er1
12853 cat conftest.err >&5
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); } >/dev/null; then
12856 if test -s conftest.err; then
12857 ac_cpp_err=$ac_c_preproc_warn_flag
12858 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12859 else
12860 ac_cpp_err=
12861 fi
12862 else
12863 ac_cpp_err=yes
12864 fi
12865 if test -z "$ac_cpp_err"; then
12866 ac_header_preproc=yes
12867 else
12868 echo "$as_me: failed program was:" >&5
12869 sed 's/^/| /' conftest.$ac_ext >&5
12870
12871 ac_header_preproc=no
12872 fi
12873
12874 rm -f conftest.err conftest.$ac_ext
12875 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12876 echo "${ECHO_T}$ac_header_preproc" >&6; }
12877
12878 # So? What about this header?
12879 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12880 yes:no: )
12881 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12882 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12884 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12885 ac_header_preproc=yes
12886 ;;
12887 no:yes:* )
12888 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12889 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12890 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12891 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12892 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12893 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12894 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12895 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12897 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12898 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12899 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12900
12901 ;;
12902 esac
12903 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12906 echo $ECHO_N "(cached) $ECHO_C" >&6
12907 else
12908 eval "$as_ac_Header=\$ac_header_preproc"
12909 fi
12910 ac_res=`eval echo '${'$as_ac_Header'}'`
12911 { echo "$as_me:$LINENO: result: $ac_res" >&5
12912 echo "${ECHO_T}$ac_res" >&6; }
12913
12914 fi
12915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12916 cat >>confdefs.h <<_ACEOF
12917 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12918 _ACEOF
12919
12920 fi
12921
12922 done
12923
12924 if test "$ac_cv_header_pthread_h"; then
12925 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12926 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
12927 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12928 echo $ECHO_N "(cached) $ECHO_C" >&6
12929 else
12930 ac_check_lib_save_LIBS=$LIBS
12931 LIBS="-lpthread $LIBS"
12932 cat >conftest.$ac_ext <<_ACEOF
12933 /* confdefs.h. */
12934 _ACEOF
12935 cat confdefs.h >>conftest.$ac_ext
12936 cat >>conftest.$ac_ext <<_ACEOF
12937 /* end confdefs.h. */
12938
12939 /* Override any GCC internal prototype to avoid an error.
12940 Use char because int might match the return type of a GCC
12941 builtin and then its argument prototype would still apply. */
12942 #ifdef __cplusplus
12943 extern "C"
12944 #endif
12945 char pthread_self ();
12946 int
12947 main ()
12948 {
12949 return pthread_self ();
12950 ;
12951 return 0;
12952 }
12953 _ACEOF
12954 rm -f conftest.$ac_objext conftest$ac_exeext
12955 if { (ac_try="$ac_link"
12956 case "(($ac_try" in
12957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12958 *) ac_try_echo=$ac_try;;
12959 esac
12960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12961 (eval "$ac_link") 2>conftest.er1
12962 ac_status=$?
12963 grep -v '^ *+' conftest.er1 >conftest.err
12964 rm -f conftest.er1
12965 cat conftest.err >&5
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); } &&
12968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12969 { (case "(($ac_try" in
12970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12971 *) ac_try_echo=$ac_try;;
12972 esac
12973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12974 (eval "$ac_try") 2>&5
12975 ac_status=$?
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); }; } &&
12978 { ac_try='test -s conftest$ac_exeext'
12979 { (case "(($ac_try" in
12980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12981 *) ac_try_echo=$ac_try;;
12982 esac
12983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12984 (eval "$ac_try") 2>&5
12985 ac_status=$?
12986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987 (exit $ac_status); }; }; then
12988 ac_cv_lib_pthread_pthread_self=yes
12989 else
12990 echo "$as_me: failed program was:" >&5
12991 sed 's/^/| /' conftest.$ac_ext >&5
12992
12993 ac_cv_lib_pthread_pthread_self=no
12994 fi
12995
12996 rm -f core conftest.err conftest.$ac_objext \
12997 conftest$ac_exeext conftest.$ac_ext
12998 LIBS=$ac_check_lib_save_LIBS
12999 fi
13000 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
13001 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
13002 if test $ac_cv_lib_pthread_pthread_self = yes; then
13003 HAVE_GTK_AND_PTHREAD=yes
13004 fi
13005
13006 fi
13007 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
13008 GTK_LIBS="$GTK_LIBS -lpthread"
13009
13010 cat >>confdefs.h <<\_ACEOF
13011 #define HAVE_GTK_AND_PTHREAD 1
13012 _ACEOF
13013
13014 fi
13015 fi
13016 fi
13017
13018 if test x"${USE_X_TOOLKIT}" = xmaybe; then
13019 if test x"${HAVE_X11R5}" = xyes; then
13020 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
13021 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
13022 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
13023 echo $ECHO_N "(cached) $ECHO_C" >&6
13024 else
13025 cat >conftest.$ac_ext <<_ACEOF
13026 /* confdefs.h. */
13027 _ACEOF
13028 cat confdefs.h >>conftest.$ac_ext
13029 cat >>conftest.$ac_ext <<_ACEOF
13030 /* end confdefs.h. */
13031
13032 #include <X11/Intrinsic.h>
13033 #include <X11/Xaw/Simple.h>
13034 int
13035 main ()
13036 {
13037
13038 ;
13039 return 0;
13040 }
13041 _ACEOF
13042 rm -f conftest.$ac_objext conftest$ac_exeext
13043 if { (ac_try="$ac_link"
13044 case "(($ac_try" in
13045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13046 *) ac_try_echo=$ac_try;;
13047 esac
13048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13049 (eval "$ac_link") 2>conftest.er1
13050 ac_status=$?
13051 grep -v '^ *+' conftest.er1 >conftest.err
13052 rm -f conftest.er1
13053 cat conftest.err >&5
13054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); } &&
13056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13057 { (case "(($ac_try" in
13058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13059 *) ac_try_echo=$ac_try;;
13060 esac
13061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13062 (eval "$ac_try") 2>&5
13063 ac_status=$?
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); }; } &&
13066 { ac_try='test -s conftest$ac_exeext'
13067 { (case "(($ac_try" in
13068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13069 *) ac_try_echo=$ac_try;;
13070 esac
13071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13072 (eval "$ac_try") 2>&5
13073 ac_status=$?
13074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075 (exit $ac_status); }; }; then
13076 emacs_cv_x11_version_5_with_xaw=yes
13077 else
13078 echo "$as_me: failed program was:" >&5
13079 sed 's/^/| /' conftest.$ac_ext >&5
13080
13081 emacs_cv_x11_version_5_with_xaw=no
13082 fi
13083
13084 rm -f core conftest.err conftest.$ac_objext \
13085 conftest$ac_exeext conftest.$ac_ext
13086 fi
13087
13088 if test $emacs_cv_x11_version_5_with_xaw = yes; then
13089 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
13090 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
13091 USE_X_TOOLKIT=LUCID
13092 else
13093 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
13094 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
13095 USE_X_TOOLKIT=none
13096 fi
13097 else
13098 USE_X_TOOLKIT=none
13099 fi
13100 fi
13101
13102 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
13103
13104 if test "${USE_X_TOOLKIT}" != "none"; then
13105 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
13106 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
13107 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
13108 echo $ECHO_N "(cached) $ECHO_C" >&6
13109 else
13110 cat >conftest.$ac_ext <<_ACEOF
13111 /* confdefs.h. */
13112 _ACEOF
13113 cat confdefs.h >>conftest.$ac_ext
13114 cat >>conftest.$ac_ext <<_ACEOF
13115 /* end confdefs.h. */
13116 #include <X11/Intrinsic.h>
13117 int
13118 main ()
13119 {
13120 #if XtSpecificationRelease < 6
13121 fail;
13122 #endif
13123
13124 ;
13125 return 0;
13126 }
13127 _ACEOF
13128 rm -f conftest.$ac_objext conftest$ac_exeext
13129 if { (ac_try="$ac_link"
13130 case "(($ac_try" in
13131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13132 *) ac_try_echo=$ac_try;;
13133 esac
13134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13135 (eval "$ac_link") 2>conftest.er1
13136 ac_status=$?
13137 grep -v '^ *+' conftest.er1 >conftest.err
13138 rm -f conftest.er1
13139 cat conftest.err >&5
13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); } &&
13142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13143 { (case "(($ac_try" in
13144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13145 *) ac_try_echo=$ac_try;;
13146 esac
13147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13148 (eval "$ac_try") 2>&5
13149 ac_status=$?
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); }; } &&
13152 { ac_try='test -s conftest$ac_exeext'
13153 { (case "(($ac_try" in
13154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13155 *) ac_try_echo=$ac_try;;
13156 esac
13157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13158 (eval "$ac_try") 2>&5
13159 ac_status=$?
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; }; then
13162 emacs_cv_x11_toolkit_version_6=yes
13163 else
13164 echo "$as_me: failed program was:" >&5
13165 sed 's/^/| /' conftest.$ac_ext >&5
13166
13167 emacs_cv_x11_toolkit_version_6=no
13168 fi
13169
13170 rm -f core conftest.err conftest.$ac_objext \
13171 conftest$ac_exeext conftest.$ac_ext
13172 fi
13173
13174 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
13175 if test $emacs_cv_x11_toolkit_version_6 = yes; then
13176 { echo "$as_me:$LINENO: result: 6 or newer" >&5
13177 echo "${ECHO_T}6 or newer" >&6; }
13178
13179 cat >>confdefs.h <<\_ACEOF
13180 #define HAVE_X11XTR6 1
13181 _ACEOF
13182
13183 else
13184 { echo "$as_me:$LINENO: result: before 6" >&5
13185 echo "${ECHO_T}before 6" >&6; }
13186 fi
13187
13188 OLDLIBS="$LIBS"
13189 if test x$HAVE_X11XTR6 = xyes; then
13190 LIBS="-lXt -lSM -lICE $LIBS"
13191 else
13192 LIBS="-lXt $LIBS"
13193 fi
13194
13195 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
13196 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
13197 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
13198 echo $ECHO_N "(cached) $ECHO_C" >&6
13199 else
13200 ac_check_lib_save_LIBS=$LIBS
13201 LIBS="-lXmu $LIBS"
13202 cat >conftest.$ac_ext <<_ACEOF
13203 /* confdefs.h. */
13204 _ACEOF
13205 cat confdefs.h >>conftest.$ac_ext
13206 cat >>conftest.$ac_ext <<_ACEOF
13207 /* end confdefs.h. */
13208
13209 /* Override any GCC internal prototype to avoid an error.
13210 Use char because int might match the return type of a GCC
13211 builtin and then its argument prototype would still apply. */
13212 #ifdef __cplusplus
13213 extern "C"
13214 #endif
13215 char XmuConvertStandardSelection ();
13216 int
13217 main ()
13218 {
13219 return XmuConvertStandardSelection ();
13220 ;
13221 return 0;
13222 }
13223 _ACEOF
13224 rm -f conftest.$ac_objext conftest$ac_exeext
13225 if { (ac_try="$ac_link"
13226 case "(($ac_try" in
13227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13228 *) ac_try_echo=$ac_try;;
13229 esac
13230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13231 (eval "$ac_link") 2>conftest.er1
13232 ac_status=$?
13233 grep -v '^ *+' conftest.er1 >conftest.err
13234 rm -f conftest.er1
13235 cat conftest.err >&5
13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); } &&
13238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13239 { (case "(($ac_try" in
13240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13241 *) ac_try_echo=$ac_try;;
13242 esac
13243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13244 (eval "$ac_try") 2>&5
13245 ac_status=$?
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); }; } &&
13248 { ac_try='test -s conftest$ac_exeext'
13249 { (case "(($ac_try" in
13250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13251 *) ac_try_echo=$ac_try;;
13252 esac
13253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13254 (eval "$ac_try") 2>&5
13255 ac_status=$?
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); }; }; then
13258 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
13259 else
13260 echo "$as_me: failed program was:" >&5
13261 sed 's/^/| /' conftest.$ac_ext >&5
13262
13263 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13264 fi
13265
13266 rm -f core conftest.err conftest.$ac_objext \
13267 conftest$ac_exeext conftest.$ac_ext
13268 LIBS=$ac_check_lib_save_LIBS
13269 fi
13270 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13271 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13272 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
13273 cat >>confdefs.h <<_ACEOF
13274 #define HAVE_LIBXMU 1
13275 _ACEOF
13276
13277 LIBS="-lXmu $LIBS"
13278
13279 fi
13280
13281 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
13282 fi
13283
13284 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13285 if test "${HAVE_X11}" = "yes"; then
13286 if test "${USE_X_TOOLKIT}" != "none"; then
13287
13288 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13289 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
13290 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13291 echo $ECHO_N "(cached) $ECHO_C" >&6
13292 else
13293 ac_check_lib_save_LIBS=$LIBS
13294 LIBS="-lXext $LIBS"
13295 cat >conftest.$ac_ext <<_ACEOF
13296 /* confdefs.h. */
13297 _ACEOF
13298 cat confdefs.h >>conftest.$ac_ext
13299 cat >>conftest.$ac_ext <<_ACEOF
13300 /* end confdefs.h. */
13301
13302 /* Override any GCC internal prototype to avoid an error.
13303 Use char because int might match the return type of a GCC
13304 builtin and then its argument prototype would still apply. */
13305 #ifdef __cplusplus
13306 extern "C"
13307 #endif
13308 char XShapeQueryExtension ();
13309 int
13310 main ()
13311 {
13312 return XShapeQueryExtension ();
13313 ;
13314 return 0;
13315 }
13316 _ACEOF
13317 rm -f conftest.$ac_objext conftest$ac_exeext
13318 if { (ac_try="$ac_link"
13319 case "(($ac_try" in
13320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13321 *) ac_try_echo=$ac_try;;
13322 esac
13323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13324 (eval "$ac_link") 2>conftest.er1
13325 ac_status=$?
13326 grep -v '^ *+' conftest.er1 >conftest.err
13327 rm -f conftest.er1
13328 cat conftest.err >&5
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); } &&
13331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13332 { (case "(($ac_try" in
13333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13334 *) ac_try_echo=$ac_try;;
13335 esac
13336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13337 (eval "$ac_try") 2>&5
13338 ac_status=$?
13339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340 (exit $ac_status); }; } &&
13341 { ac_try='test -s conftest$ac_exeext'
13342 { (case "(($ac_try" in
13343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13344 *) ac_try_echo=$ac_try;;
13345 esac
13346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13347 (eval "$ac_try") 2>&5
13348 ac_status=$?
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); }; }; then
13351 ac_cv_lib_Xext_XShapeQueryExtension=yes
13352 else
13353 echo "$as_me: failed program was:" >&5
13354 sed 's/^/| /' conftest.$ac_ext >&5
13355
13356 ac_cv_lib_Xext_XShapeQueryExtension=no
13357 fi
13358
13359 rm -f core conftest.err conftest.$ac_objext \
13360 conftest$ac_exeext conftest.$ac_ext
13361 LIBS=$ac_check_lib_save_LIBS
13362 fi
13363 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13364 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13365 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
13366 cat >>confdefs.h <<_ACEOF
13367 #define HAVE_LIBXEXT 1
13368 _ACEOF
13369
13370 LIBS="-lXext $LIBS"
13371
13372 fi
13373
13374 fi
13375 fi
13376
13377 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13378 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13379 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
13380 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13381 echo $ECHO_N "(cached) $ECHO_C" >&6
13382 else
13383 cat >conftest.$ac_ext <<_ACEOF
13384 /* confdefs.h. */
13385 _ACEOF
13386 cat confdefs.h >>conftest.$ac_ext
13387 cat >>conftest.$ac_ext <<_ACEOF
13388 /* end confdefs.h. */
13389 #include <Xm/Xm.h>
13390 int
13391 main ()
13392 {
13393 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13394 int x = 5;
13395 #else
13396 Motif version prior to 2.1.
13397 #endif
13398 ;
13399 return 0;
13400 }
13401 _ACEOF
13402 rm -f conftest.$ac_objext
13403 if { (ac_try="$ac_compile"
13404 case "(($ac_try" in
13405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13406 *) ac_try_echo=$ac_try;;
13407 esac
13408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13409 (eval "$ac_compile") 2>conftest.er1
13410 ac_status=$?
13411 grep -v '^ *+' conftest.er1 >conftest.err
13412 rm -f conftest.er1
13413 cat conftest.err >&5
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); } &&
13416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13417 { (case "(($ac_try" in
13418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13419 *) ac_try_echo=$ac_try;;
13420 esac
13421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13422 (eval "$ac_try") 2>&5
13423 ac_status=$?
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); }; } &&
13426 { ac_try='test -s conftest.$ac_objext'
13427 { (case "(($ac_try" in
13428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13429 *) ac_try_echo=$ac_try;;
13430 esac
13431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13432 (eval "$ac_try") 2>&5
13433 ac_status=$?
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; }; then
13436 emacs_cv_motif_version_2_1=yes
13437 else
13438 echo "$as_me: failed program was:" >&5
13439 sed 's/^/| /' conftest.$ac_ext >&5
13440
13441 emacs_cv_motif_version_2_1=no
13442 fi
13443
13444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13445 fi
13446 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13447 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
13448 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
13449 if test $emacs_cv_motif_version_2_1 = yes; then
13450 HAVE_LIBXP=no
13451
13452 cat >>confdefs.h <<\_ACEOF
13453 #define HAVE_MOTIF_2_1 1
13454 _ACEOF
13455
13456 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13457 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
13458 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13459 echo $ECHO_N "(cached) $ECHO_C" >&6
13460 else
13461 ac_check_lib_save_LIBS=$LIBS
13462 LIBS="-lXp $LIBS"
13463 cat >conftest.$ac_ext <<_ACEOF
13464 /* confdefs.h. */
13465 _ACEOF
13466 cat confdefs.h >>conftest.$ac_ext
13467 cat >>conftest.$ac_ext <<_ACEOF
13468 /* end confdefs.h. */
13469
13470 /* Override any GCC internal prototype to avoid an error.
13471 Use char because int might match the return type of a GCC
13472 builtin and then its argument prototype would still apply. */
13473 #ifdef __cplusplus
13474 extern "C"
13475 #endif
13476 char XpCreateContext ();
13477 int
13478 main ()
13479 {
13480 return XpCreateContext ();
13481 ;
13482 return 0;
13483 }
13484 _ACEOF
13485 rm -f conftest.$ac_objext conftest$ac_exeext
13486 if { (ac_try="$ac_link"
13487 case "(($ac_try" in
13488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13489 *) ac_try_echo=$ac_try;;
13490 esac
13491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13492 (eval "$ac_link") 2>conftest.er1
13493 ac_status=$?
13494 grep -v '^ *+' conftest.er1 >conftest.err
13495 rm -f conftest.er1
13496 cat conftest.err >&5
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); } &&
13499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13500 { (case "(($ac_try" in
13501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13502 *) ac_try_echo=$ac_try;;
13503 esac
13504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13505 (eval "$ac_try") 2>&5
13506 ac_status=$?
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); }; } &&
13509 { ac_try='test -s conftest$ac_exeext'
13510 { (case "(($ac_try" in
13511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13512 *) ac_try_echo=$ac_try;;
13513 esac
13514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13515 (eval "$ac_try") 2>&5
13516 ac_status=$?
13517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518 (exit $ac_status); }; }; then
13519 ac_cv_lib_Xp_XpCreateContext=yes
13520 else
13521 echo "$as_me: failed program was:" >&5
13522 sed 's/^/| /' conftest.$ac_ext >&5
13523
13524 ac_cv_lib_Xp_XpCreateContext=no
13525 fi
13526
13527 rm -f core conftest.err conftest.$ac_objext \
13528 conftest$ac_exeext conftest.$ac_ext
13529 LIBS=$ac_check_lib_save_LIBS
13530 fi
13531 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13532 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
13533 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
13534 HAVE_LIBXP=yes
13535 fi
13536
13537 if test ${HAVE_LIBXP} = yes; then
13538
13539 cat >>confdefs.h <<\_ACEOF
13540 #define HAVE_LIBXP 1
13541 _ACEOF
13542
13543 fi
13544 else
13545 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13546 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
13547 if test "${emacs_cv_lesstif+set}" = set; then
13548 echo $ECHO_N "(cached) $ECHO_C" >&6
13549 else
13550 # We put this in CFLAGS temporarily to precede other -I options
13551 # that might be in CFLAGS temporarily.
13552 # We put this in CPPFLAGS where it precedes the other -I options.
13553 OLD_CPPFLAGS=$CPPFLAGS
13554 OLD_CFLAGS=$CFLAGS
13555 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13556 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13557 cat >conftest.$ac_ext <<_ACEOF
13558 /* confdefs.h. */
13559 _ACEOF
13560 cat confdefs.h >>conftest.$ac_ext
13561 cat >>conftest.$ac_ext <<_ACEOF
13562 /* end confdefs.h. */
13563 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13564 int
13565 main ()
13566 {
13567 int x = 5;
13568 ;
13569 return 0;
13570 }
13571 _ACEOF
13572 rm -f conftest.$ac_objext
13573 if { (ac_try="$ac_compile"
13574 case "(($ac_try" in
13575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13576 *) ac_try_echo=$ac_try;;
13577 esac
13578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13579 (eval "$ac_compile") 2>conftest.er1
13580 ac_status=$?
13581 grep -v '^ *+' conftest.er1 >conftest.err
13582 rm -f conftest.er1
13583 cat conftest.err >&5
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); } &&
13586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13587 { (case "(($ac_try" in
13588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13589 *) ac_try_echo=$ac_try;;
13590 esac
13591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13592 (eval "$ac_try") 2>&5
13593 ac_status=$?
13594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595 (exit $ac_status); }; } &&
13596 { ac_try='test -s conftest.$ac_objext'
13597 { (case "(($ac_try" in
13598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13599 *) ac_try_echo=$ac_try;;
13600 esac
13601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13602 (eval "$ac_try") 2>&5
13603 ac_status=$?
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); }; }; then
13606 emacs_cv_lesstif=yes
13607 else
13608 echo "$as_me: failed program was:" >&5
13609 sed 's/^/| /' conftest.$ac_ext >&5
13610
13611 emacs_cv_lesstif=no
13612 fi
13613
13614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13615 fi
13616 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13617 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
13618 if test $emacs_cv_lesstif = yes; then
13619 # Make sure this -I option remains in CPPFLAGS after it is set
13620 # back to REAL_CPPFLAGS.
13621 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13622 # have those other -I options anyway. Ultimately, having this
13623 # directory ultimately in CPPFLAGS will be enough.
13624 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13625 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13626 else
13627 CFLAGS=$OLD_CFLAGS
13628 CPPFLAGS=$OLD_CPPFLAGS
13629 fi
13630 fi
13631 fi
13632
13633 ### Is -lXaw3d available?
13634 HAVE_XAW3D=no
13635 if test "${HAVE_X11}" = "yes"; then
13636 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
13637 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
13638 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
13639 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
13640 echo $ECHO_N "(cached) $ECHO_C" >&6
13641 else
13642 cat >conftest.$ac_ext <<_ACEOF
13643 /* confdefs.h. */
13644 _ACEOF
13645 cat confdefs.h >>conftest.$ac_ext
13646 cat >>conftest.$ac_ext <<_ACEOF
13647 /* end confdefs.h. */
13648 #include <X11/Xaw3d/Scrollbar.h>
13649 _ACEOF
13650 if { (ac_try="$ac_cpp conftest.$ac_ext"
13651 case "(($ac_try" in
13652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13653 *) ac_try_echo=$ac_try;;
13654 esac
13655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13657 ac_status=$?
13658 grep -v '^ *+' conftest.er1 >conftest.err
13659 rm -f conftest.er1
13660 cat conftest.err >&5
13661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662 (exit $ac_status); } >/dev/null; then
13663 if test -s conftest.err; then
13664 ac_cpp_err=$ac_c_preproc_warn_flag
13665 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13666 else
13667 ac_cpp_err=
13668 fi
13669 else
13670 ac_cpp_err=yes
13671 fi
13672 if test -z "$ac_cpp_err"; then
13673 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
13674 else
13675 echo "$as_me: failed program was:" >&5
13676 sed 's/^/| /' conftest.$ac_ext >&5
13677
13678 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
13679 fi
13680
13681 rm -f conftest.err conftest.$ac_ext
13682 fi
13683 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
13684 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
13685 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
13686 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
13687 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
13688 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
13689 echo $ECHO_N "(cached) $ECHO_C" >&6
13690 else
13691 ac_check_lib_save_LIBS=$LIBS
13692 LIBS="-lXaw3d $LIBS"
13693 cat >conftest.$ac_ext <<_ACEOF
13694 /* confdefs.h. */
13695 _ACEOF
13696 cat confdefs.h >>conftest.$ac_ext
13697 cat >>conftest.$ac_ext <<_ACEOF
13698 /* end confdefs.h. */
13699
13700 /* Override any GCC internal prototype to avoid an error.
13701 Use char because int might match the return type of a GCC
13702 builtin and then its argument prototype would still apply. */
13703 #ifdef __cplusplus
13704 extern "C"
13705 #endif
13706 char XawScrollbarSetThumb ();
13707 int
13708 main ()
13709 {
13710 return XawScrollbarSetThumb ();
13711 ;
13712 return 0;
13713 }
13714 _ACEOF
13715 rm -f conftest.$ac_objext conftest$ac_exeext
13716 if { (ac_try="$ac_link"
13717 case "(($ac_try" in
13718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13719 *) ac_try_echo=$ac_try;;
13720 esac
13721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13722 (eval "$ac_link") 2>conftest.er1
13723 ac_status=$?
13724 grep -v '^ *+' conftest.er1 >conftest.err
13725 rm -f conftest.er1
13726 cat conftest.err >&5
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); } &&
13729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13730 { (case "(($ac_try" in
13731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13732 *) ac_try_echo=$ac_try;;
13733 esac
13734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13735 (eval "$ac_try") 2>&5
13736 ac_status=$?
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); }; } &&
13739 { ac_try='test -s conftest$ac_exeext'
13740 { (case "(($ac_try" in
13741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13742 *) ac_try_echo=$ac_try;;
13743 esac
13744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13745 (eval "$ac_try") 2>&5
13746 ac_status=$?
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); }; }; then
13749 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
13750 else
13751 echo "$as_me: failed program was:" >&5
13752 sed 's/^/| /' conftest.$ac_ext >&5
13753
13754 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
13755 fi
13756
13757 rm -f core conftest.err conftest.$ac_objext \
13758 conftest$ac_exeext conftest.$ac_ext
13759 LIBS=$ac_check_lib_save_LIBS
13760 fi
13761 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
13762 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
13763 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
13764 HAVE_XAW3D=yes
13765 fi
13766
13767 fi
13768
13769
13770 if test "${HAVE_XAW3D}" = "yes"; then
13771
13772 cat >>confdefs.h <<\_ACEOF
13773 #define HAVE_XAW3D 1
13774 _ACEOF
13775
13776 fi
13777 fi
13778 fi
13779
13780
13781
13782 USE_TOOLKIT_SCROLL_BARS=no
13783 if test "${with_toolkit_scroll_bars}" != "no"; then
13784 if test "${USE_X_TOOLKIT}" != "none"; then
13785 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13786 cat >>confdefs.h <<\_ACEOF
13787 #define USE_TOOLKIT_SCROLL_BARS 1
13788 _ACEOF
13789
13790 HAVE_XAW3D=no
13791 USE_TOOLKIT_SCROLL_BARS=yes
13792 elif test "${HAVE_XAW3D}" = "yes"; then
13793 cat >>confdefs.h <<\_ACEOF
13794 #define USE_TOOLKIT_SCROLL_BARS 1
13795 _ACEOF
13796
13797 USE_TOOLKIT_SCROLL_BARS=yes
13798 fi
13799 elif test "${HAVE_GTK}" = "yes"; then
13800 cat >>confdefs.h <<\_ACEOF
13801 #define USE_TOOLKIT_SCROLL_BARS 1
13802 _ACEOF
13803
13804 USE_TOOLKIT_SCROLL_BARS=yes
13805 elif test "${HAVE_CARBON}" = "yes"; then
13806 cat >>confdefs.h <<\_ACEOF
13807 #define USE_TOOLKIT_SCROLL_BARS 1
13808 _ACEOF
13809
13810 USE_TOOLKIT_SCROLL_BARS=yes
13811 fi
13812 fi
13813
13814 cat >conftest.$ac_ext <<_ACEOF
13815 /* confdefs.h. */
13816 _ACEOF
13817 cat confdefs.h >>conftest.$ac_ext
13818 cat >>conftest.$ac_ext <<_ACEOF
13819 /* end confdefs.h. */
13820
13821 #include <X11/Xlib.h>
13822 #include <X11/Xresource.h>
13823 int
13824 main ()
13825 {
13826 XIMProc callback;
13827 ;
13828 return 0;
13829 }
13830 _ACEOF
13831 rm -f conftest.$ac_objext
13832 if { (ac_try="$ac_compile"
13833 case "(($ac_try" in
13834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13835 *) ac_try_echo=$ac_try;;
13836 esac
13837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13838 (eval "$ac_compile") 2>conftest.er1
13839 ac_status=$?
13840 grep -v '^ *+' conftest.er1 >conftest.err
13841 rm -f conftest.er1
13842 cat conftest.err >&5
13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); } &&
13845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13846 { (case "(($ac_try" in
13847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13848 *) ac_try_echo=$ac_try;;
13849 esac
13850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13851 (eval "$ac_try") 2>&5
13852 ac_status=$?
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); }; } &&
13855 { ac_try='test -s conftest.$ac_objext'
13856 { (case "(($ac_try" in
13857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13858 *) ac_try_echo=$ac_try;;
13859 esac
13860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13861 (eval "$ac_try") 2>&5
13862 ac_status=$?
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); }; }; then
13865 HAVE_XIM=yes
13866
13867 cat >>confdefs.h <<\_ACEOF
13868 #define HAVE_XIM 1
13869 _ACEOF
13870
13871 else
13872 echo "$as_me: failed program was:" >&5
13873 sed 's/^/| /' conftest.$ac_ext >&5
13874
13875 HAVE_XIM=no
13876 fi
13877
13878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13879
13880
13881 if test "${with_xim}" != "no"; then
13882
13883 cat >>confdefs.h <<\_ACEOF
13884 #define USE_XIM 1
13885 _ACEOF
13886
13887 fi
13888
13889
13890 if test "${HAVE_XIM}" != "no"; then
13891 late_CFLAGS=$CFLAGS
13892 if test "$GCC" = yes; then
13893 CFLAGS="$CFLAGS --pedantic-errors"
13894 fi
13895 cat >conftest.$ac_ext <<_ACEOF
13896 /* confdefs.h. */
13897 _ACEOF
13898 cat confdefs.h >>conftest.$ac_ext
13899 cat >>conftest.$ac_ext <<_ACEOF
13900 /* end confdefs.h. */
13901
13902 #include <X11/Xlib.h>
13903 #include <X11/Xresource.h>
13904 int
13905 main ()
13906 {
13907 Display *display;
13908 XrmDatabase db;
13909 char *res_name;
13910 char *res_class;
13911 XIMProc callback;
13912 XPointer *client_data;
13913 #ifndef __GNUC__
13914 /* If we're not using GCC, it's probably not XFree86, and this is
13915 probably right, but we can't use something like --pedantic-errors. */
13916 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13917 char*, XIMProc, XPointer*);
13918 #endif
13919 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13920 client_data);
13921 ;
13922 return 0;
13923 }
13924 _ACEOF
13925 rm -f conftest.$ac_objext
13926 if { (ac_try="$ac_compile"
13927 case "(($ac_try" in
13928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13929 *) ac_try_echo=$ac_try;;
13930 esac
13931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13932 (eval "$ac_compile") 2>conftest.er1
13933 ac_status=$?
13934 grep -v '^ *+' conftest.er1 >conftest.err
13935 rm -f conftest.er1
13936 cat conftest.err >&5
13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); } &&
13939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13940 { (case "(($ac_try" in
13941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13942 *) ac_try_echo=$ac_try;;
13943 esac
13944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13945 (eval "$ac_try") 2>&5
13946 ac_status=$?
13947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 (exit $ac_status); }; } &&
13949 { ac_try='test -s conftest.$ac_objext'
13950 { (case "(($ac_try" in
13951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13952 *) ac_try_echo=$ac_try;;
13953 esac
13954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13955 (eval "$ac_try") 2>&5
13956 ac_status=$?
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); }; }; then
13959 emacs_cv_arg6_star=yes
13960 else
13961 echo "$as_me: failed program was:" >&5
13962 sed 's/^/| /' conftest.$ac_ext >&5
13963
13964
13965 fi
13966
13967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13968
13969 if test "$emacs_cv_arg6_star" = yes; then
13970 cat >>confdefs.h <<\_ACEOF
13971 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13972 _ACEOF
13973
13974 else
13975 cat >>confdefs.h <<\_ACEOF
13976 #define XRegisterIMInstantiateCallback_arg6 XPointer
13977 _ACEOF
13978
13979 fi
13980 CFLAGS=$late_CFLAGS
13981 fi
13982
13983 ### Use -lXpm if available, unless `--with-xpm=no'.
13984 HAVE_XPM=no
13985 if test "${HAVE_X11}" = "yes"; then
13986 if test "${with_xpm}" != "no"; then
13987 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13988 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13989 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13990 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13991 echo $ECHO_N "(cached) $ECHO_C" >&6
13992 fi
13993 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13994 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13995 else
13996 # Is the header compilable?
13997 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13998 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13999 cat >conftest.$ac_ext <<_ACEOF
14000 /* confdefs.h. */
14001 _ACEOF
14002 cat confdefs.h >>conftest.$ac_ext
14003 cat >>conftest.$ac_ext <<_ACEOF
14004 /* end confdefs.h. */
14005 $ac_includes_default
14006 #include <X11/xpm.h>
14007 _ACEOF
14008 rm -f conftest.$ac_objext
14009 if { (ac_try="$ac_compile"
14010 case "(($ac_try" in
14011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14012 *) ac_try_echo=$ac_try;;
14013 esac
14014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14015 (eval "$ac_compile") 2>conftest.er1
14016 ac_status=$?
14017 grep -v '^ *+' conftest.er1 >conftest.err
14018 rm -f conftest.er1
14019 cat conftest.err >&5
14020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021 (exit $ac_status); } &&
14022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14023 { (case "(($ac_try" in
14024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14025 *) ac_try_echo=$ac_try;;
14026 esac
14027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14028 (eval "$ac_try") 2>&5
14029 ac_status=$?
14030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); }; } &&
14032 { ac_try='test -s conftest.$ac_objext'
14033 { (case "(($ac_try" in
14034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14035 *) ac_try_echo=$ac_try;;
14036 esac
14037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14038 (eval "$ac_try") 2>&5
14039 ac_status=$?
14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); }; }; then
14042 ac_header_compiler=yes
14043 else
14044 echo "$as_me: failed program was:" >&5
14045 sed 's/^/| /' conftest.$ac_ext >&5
14046
14047 ac_header_compiler=no
14048 fi
14049
14050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14051 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14052 echo "${ECHO_T}$ac_header_compiler" >&6; }
14053
14054 # Is the header present?
14055 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14056 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
14057 cat >conftest.$ac_ext <<_ACEOF
14058 /* confdefs.h. */
14059 _ACEOF
14060 cat confdefs.h >>conftest.$ac_ext
14061 cat >>conftest.$ac_ext <<_ACEOF
14062 /* end confdefs.h. */
14063 #include <X11/xpm.h>
14064 _ACEOF
14065 if { (ac_try="$ac_cpp conftest.$ac_ext"
14066 case "(($ac_try" in
14067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14068 *) ac_try_echo=$ac_try;;
14069 esac
14070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14071 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14072 ac_status=$?
14073 grep -v '^ *+' conftest.er1 >conftest.err
14074 rm -f conftest.er1
14075 cat conftest.err >&5
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); } >/dev/null; then
14078 if test -s conftest.err; then
14079 ac_cpp_err=$ac_c_preproc_warn_flag
14080 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14081 else
14082 ac_cpp_err=
14083 fi
14084 else
14085 ac_cpp_err=yes
14086 fi
14087 if test -z "$ac_cpp_err"; then
14088 ac_header_preproc=yes
14089 else
14090 echo "$as_me: failed program was:" >&5
14091 sed 's/^/| /' conftest.$ac_ext >&5
14092
14093 ac_header_preproc=no
14094 fi
14095
14096 rm -f conftest.err conftest.$ac_ext
14097 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14098 echo "${ECHO_T}$ac_header_preproc" >&6; }
14099
14100 # So? What about this header?
14101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14102 yes:no: )
14103 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14104 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14105 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
14106 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
14107 ac_header_preproc=yes
14108 ;;
14109 no:yes:* )
14110 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14111 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14112 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14113 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14114 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14115 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14116 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14117 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14118 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
14119 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
14120 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14121 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14122
14123 ;;
14124 esac
14125 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14126 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
14127 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14128 echo $ECHO_N "(cached) $ECHO_C" >&6
14129 else
14130 ac_cv_header_X11_xpm_h=$ac_header_preproc
14131 fi
14132 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14133 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
14134
14135 fi
14136 if test $ac_cv_header_X11_xpm_h = yes; then
14137 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14138 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
14139 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14140 echo $ECHO_N "(cached) $ECHO_C" >&6
14141 else
14142 ac_check_lib_save_LIBS=$LIBS
14143 LIBS="-lXpm -lX11 $LIBS"
14144 cat >conftest.$ac_ext <<_ACEOF
14145 /* confdefs.h. */
14146 _ACEOF
14147 cat confdefs.h >>conftest.$ac_ext
14148 cat >>conftest.$ac_ext <<_ACEOF
14149 /* end confdefs.h. */
14150
14151 /* Override any GCC internal prototype to avoid an error.
14152 Use char because int might match the return type of a GCC
14153 builtin and then its argument prototype would still apply. */
14154 #ifdef __cplusplus
14155 extern "C"
14156 #endif
14157 char XpmReadFileToPixmap ();
14158 int
14159 main ()
14160 {
14161 return XpmReadFileToPixmap ();
14162 ;
14163 return 0;
14164 }
14165 _ACEOF
14166 rm -f conftest.$ac_objext conftest$ac_exeext
14167 if { (ac_try="$ac_link"
14168 case "(($ac_try" in
14169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14170 *) ac_try_echo=$ac_try;;
14171 esac
14172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14173 (eval "$ac_link") 2>conftest.er1
14174 ac_status=$?
14175 grep -v '^ *+' conftest.er1 >conftest.err
14176 rm -f conftest.er1
14177 cat conftest.err >&5
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); } &&
14180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14181 { (case "(($ac_try" in
14182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14183 *) ac_try_echo=$ac_try;;
14184 esac
14185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14186 (eval "$ac_try") 2>&5
14187 ac_status=$?
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); }; } &&
14190 { ac_try='test -s conftest$ac_exeext'
14191 { (case "(($ac_try" in
14192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14193 *) ac_try_echo=$ac_try;;
14194 esac
14195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14196 (eval "$ac_try") 2>&5
14197 ac_status=$?
14198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199 (exit $ac_status); }; }; then
14200 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14201 else
14202 echo "$as_me: failed program was:" >&5
14203 sed 's/^/| /' conftest.$ac_ext >&5
14204
14205 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14206 fi
14207
14208 rm -f core conftest.err conftest.$ac_objext \
14209 conftest$ac_exeext conftest.$ac_ext
14210 LIBS=$ac_check_lib_save_LIBS
14211 fi
14212 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14213 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14214 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14215 HAVE_XPM=yes
14216 fi
14217
14218 fi
14219
14220
14221 if test "${HAVE_XPM}" = "yes"; then
14222 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14223 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
14224 cat >conftest.$ac_ext <<_ACEOF
14225 /* confdefs.h. */
14226 _ACEOF
14227 cat confdefs.h >>conftest.$ac_ext
14228 cat >>conftest.$ac_ext <<_ACEOF
14229 /* end confdefs.h. */
14230 #include "X11/xpm.h"
14231 #ifndef XpmReturnAllocPixels
14232 no_return_alloc_pixels
14233 #endif
14234
14235 _ACEOF
14236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14237 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14238 HAVE_XPM=no
14239 else
14240 HAVE_XPM=yes
14241 fi
14242 rm -f conftest*
14243
14244
14245 if test "${HAVE_XPM}" = "yes"; then
14246 { echo "$as_me:$LINENO: result: yes" >&5
14247 echo "${ECHO_T}yes" >&6; }
14248 else
14249 { echo "$as_me:$LINENO: result: no" >&5
14250 echo "${ECHO_T}no" >&6; }
14251 fi
14252 fi
14253 fi
14254
14255 if test "${HAVE_XPM}" = "yes"; then
14256
14257 cat >>confdefs.h <<\_ACEOF
14258 #define HAVE_XPM 1
14259 _ACEOF
14260
14261 fi
14262 fi
14263
14264 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14265 HAVE_JPEG=no
14266 if test "${HAVE_X11}" = "yes"; then
14267 if test "${with_jpeg}" != "no"; then
14268 if test "${ac_cv_header_jerror_h+set}" = set; then
14269 { echo "$as_me:$LINENO: checking for jerror.h" >&5
14270 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
14271 if test "${ac_cv_header_jerror_h+set}" = set; then
14272 echo $ECHO_N "(cached) $ECHO_C" >&6
14273 fi
14274 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14275 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
14276 else
14277 # Is the header compilable?
14278 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
14279 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
14280 cat >conftest.$ac_ext <<_ACEOF
14281 /* confdefs.h. */
14282 _ACEOF
14283 cat confdefs.h >>conftest.$ac_ext
14284 cat >>conftest.$ac_ext <<_ACEOF
14285 /* end confdefs.h. */
14286 $ac_includes_default
14287 #include <jerror.h>
14288 _ACEOF
14289 rm -f conftest.$ac_objext
14290 if { (ac_try="$ac_compile"
14291 case "(($ac_try" in
14292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14293 *) ac_try_echo=$ac_try;;
14294 esac
14295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14296 (eval "$ac_compile") 2>conftest.er1
14297 ac_status=$?
14298 grep -v '^ *+' conftest.er1 >conftest.err
14299 rm -f conftest.er1
14300 cat conftest.err >&5
14301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302 (exit $ac_status); } &&
14303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14304 { (case "(($ac_try" in
14305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14306 *) ac_try_echo=$ac_try;;
14307 esac
14308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14309 (eval "$ac_try") 2>&5
14310 ac_status=$?
14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); }; } &&
14313 { ac_try='test -s conftest.$ac_objext'
14314 { (case "(($ac_try" in
14315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14316 *) ac_try_echo=$ac_try;;
14317 esac
14318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14319 (eval "$ac_try") 2>&5
14320 ac_status=$?
14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); }; }; then
14323 ac_header_compiler=yes
14324 else
14325 echo "$as_me: failed program was:" >&5
14326 sed 's/^/| /' conftest.$ac_ext >&5
14327
14328 ac_header_compiler=no
14329 fi
14330
14331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14332 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14333 echo "${ECHO_T}$ac_header_compiler" >&6; }
14334
14335 # Is the header present?
14336 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
14337 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
14338 cat >conftest.$ac_ext <<_ACEOF
14339 /* confdefs.h. */
14340 _ACEOF
14341 cat confdefs.h >>conftest.$ac_ext
14342 cat >>conftest.$ac_ext <<_ACEOF
14343 /* end confdefs.h. */
14344 #include <jerror.h>
14345 _ACEOF
14346 if { (ac_try="$ac_cpp conftest.$ac_ext"
14347 case "(($ac_try" in
14348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14349 *) ac_try_echo=$ac_try;;
14350 esac
14351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14352 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14353 ac_status=$?
14354 grep -v '^ *+' conftest.er1 >conftest.err
14355 rm -f conftest.er1
14356 cat conftest.err >&5
14357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358 (exit $ac_status); } >/dev/null; then
14359 if test -s conftest.err; then
14360 ac_cpp_err=$ac_c_preproc_warn_flag
14361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14362 else
14363 ac_cpp_err=
14364 fi
14365 else
14366 ac_cpp_err=yes
14367 fi
14368 if test -z "$ac_cpp_err"; then
14369 ac_header_preproc=yes
14370 else
14371 echo "$as_me: failed program was:" >&5
14372 sed 's/^/| /' conftest.$ac_ext >&5
14373
14374 ac_header_preproc=no
14375 fi
14376
14377 rm -f conftest.err conftest.$ac_ext
14378 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14379 echo "${ECHO_T}$ac_header_preproc" >&6; }
14380
14381 # So? What about this header?
14382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14383 yes:no: )
14384 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14385 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14386 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
14387 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
14388 ac_header_preproc=yes
14389 ;;
14390 no:yes:* )
14391 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14392 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14393 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
14394 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
14395 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14396 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14397 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
14398 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
14399 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
14400 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
14401 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14402 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14403
14404 ;;
14405 esac
14406 { echo "$as_me:$LINENO: checking for jerror.h" >&5
14407 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
14408 if test "${ac_cv_header_jerror_h+set}" = set; then
14409 echo $ECHO_N "(cached) $ECHO_C" >&6
14410 else
14411 ac_cv_header_jerror_h=$ac_header_preproc
14412 fi
14413 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14414 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
14415
14416 fi
14417 if test $ac_cv_header_jerror_h = yes; then
14418 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
14419 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
14420 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14421 echo $ECHO_N "(cached) $ECHO_C" >&6
14422 else
14423 ac_check_lib_save_LIBS=$LIBS
14424 LIBS="-ljpeg $LIBS"
14425 cat >conftest.$ac_ext <<_ACEOF
14426 /* confdefs.h. */
14427 _ACEOF
14428 cat confdefs.h >>conftest.$ac_ext
14429 cat >>conftest.$ac_ext <<_ACEOF
14430 /* end confdefs.h. */
14431
14432 /* Override any GCC internal prototype to avoid an error.
14433 Use char because int might match the return type of a GCC
14434 builtin and then its argument prototype would still apply. */
14435 #ifdef __cplusplus
14436 extern "C"
14437 #endif
14438 char jpeg_destroy_compress ();
14439 int
14440 main ()
14441 {
14442 return jpeg_destroy_compress ();
14443 ;
14444 return 0;
14445 }
14446 _ACEOF
14447 rm -f conftest.$ac_objext conftest$ac_exeext
14448 if { (ac_try="$ac_link"
14449 case "(($ac_try" in
14450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14451 *) ac_try_echo=$ac_try;;
14452 esac
14453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14454 (eval "$ac_link") 2>conftest.er1
14455 ac_status=$?
14456 grep -v '^ *+' conftest.er1 >conftest.err
14457 rm -f conftest.er1
14458 cat conftest.err >&5
14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 (exit $ac_status); } &&
14461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14462 { (case "(($ac_try" in
14463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14464 *) ac_try_echo=$ac_try;;
14465 esac
14466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14467 (eval "$ac_try") 2>&5
14468 ac_status=$?
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); }; } &&
14471 { ac_try='test -s conftest$ac_exeext'
14472 { (case "(($ac_try" in
14473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14474 *) ac_try_echo=$ac_try;;
14475 esac
14476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14477 (eval "$ac_try") 2>&5
14478 ac_status=$?
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); }; }; then
14481 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14482 else
14483 echo "$as_me: failed program was:" >&5
14484 sed 's/^/| /' conftest.$ac_ext >&5
14485
14486 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14487 fi
14488
14489 rm -f core conftest.err conftest.$ac_objext \
14490 conftest$ac_exeext conftest.$ac_ext
14491 LIBS=$ac_check_lib_save_LIBS
14492 fi
14493 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
14494 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
14495 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
14496 HAVE_JPEG=yes
14497 fi
14498
14499 fi
14500
14501
14502 fi
14503
14504
14505 if test "${HAVE_JPEG}" = "yes"; then
14506 cat >>confdefs.h <<\_ACEOF
14507 #define HAVE_JPEG 1
14508 _ACEOF
14509
14510 cat >conftest.$ac_ext <<_ACEOF
14511 /* confdefs.h. */
14512 _ACEOF
14513 cat confdefs.h >>conftest.$ac_ext
14514 cat >>conftest.$ac_ext <<_ACEOF
14515 /* end confdefs.h. */
14516 #include <jpeglib.h>
14517 version=JPEG_LIB_VERSION
14518
14519 _ACEOF
14520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14521 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
14522 cat >>confdefs.h <<\_ACEOF
14523 #define HAVE_JPEG 1
14524 _ACEOF
14525
14526 else
14527 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
14528 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
14529 HAVE_JPEG=no
14530 fi
14531 rm -f conftest*
14532
14533 fi
14534 fi
14535
14536 ### Use -lpng if available, unless `--with-png=no'.
14537 HAVE_PNG=no
14538 if test "${HAVE_X11}" = "yes"; then
14539 if test "${with_png}" != "no"; then
14540 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
14541 # in /usr/include/libpng.
14542
14543
14544 for ac_header in png.h libpng/png.h
14545 do
14546 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14548 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14551 echo $ECHO_N "(cached) $ECHO_C" >&6
14552 fi
14553 ac_res=`eval echo '${'$as_ac_Header'}'`
14554 { echo "$as_me:$LINENO: result: $ac_res" >&5
14555 echo "${ECHO_T}$ac_res" >&6; }
14556 else
14557 # Is the header compilable?
14558 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14559 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14560 cat >conftest.$ac_ext <<_ACEOF
14561 /* confdefs.h. */
14562 _ACEOF
14563 cat confdefs.h >>conftest.$ac_ext
14564 cat >>conftest.$ac_ext <<_ACEOF
14565 /* end confdefs.h. */
14566 $ac_includes_default
14567 #include <$ac_header>
14568 _ACEOF
14569 rm -f conftest.$ac_objext
14570 if { (ac_try="$ac_compile"
14571 case "(($ac_try" in
14572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14573 *) ac_try_echo=$ac_try;;
14574 esac
14575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14576 (eval "$ac_compile") 2>conftest.er1
14577 ac_status=$?
14578 grep -v '^ *+' conftest.er1 >conftest.err
14579 rm -f conftest.er1
14580 cat conftest.err >&5
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); } &&
14583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14584 { (case "(($ac_try" in
14585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14586 *) ac_try_echo=$ac_try;;
14587 esac
14588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14589 (eval "$ac_try") 2>&5
14590 ac_status=$?
14591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592 (exit $ac_status); }; } &&
14593 { ac_try='test -s conftest.$ac_objext'
14594 { (case "(($ac_try" in
14595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14596 *) ac_try_echo=$ac_try;;
14597 esac
14598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14599 (eval "$ac_try") 2>&5
14600 ac_status=$?
14601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602 (exit $ac_status); }; }; then
14603 ac_header_compiler=yes
14604 else
14605 echo "$as_me: failed program was:" >&5
14606 sed 's/^/| /' conftest.$ac_ext >&5
14607
14608 ac_header_compiler=no
14609 fi
14610
14611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14612 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14613 echo "${ECHO_T}$ac_header_compiler" >&6; }
14614
14615 # Is the header present?
14616 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14617 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14618 cat >conftest.$ac_ext <<_ACEOF
14619 /* confdefs.h. */
14620 _ACEOF
14621 cat confdefs.h >>conftest.$ac_ext
14622 cat >>conftest.$ac_ext <<_ACEOF
14623 /* end confdefs.h. */
14624 #include <$ac_header>
14625 _ACEOF
14626 if { (ac_try="$ac_cpp conftest.$ac_ext"
14627 case "(($ac_try" in
14628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14629 *) ac_try_echo=$ac_try;;
14630 esac
14631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14633 ac_status=$?
14634 grep -v '^ *+' conftest.er1 >conftest.err
14635 rm -f conftest.er1
14636 cat conftest.err >&5
14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 (exit $ac_status); } >/dev/null; then
14639 if test -s conftest.err; then
14640 ac_cpp_err=$ac_c_preproc_warn_flag
14641 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14642 else
14643 ac_cpp_err=
14644 fi
14645 else
14646 ac_cpp_err=yes
14647 fi
14648 if test -z "$ac_cpp_err"; then
14649 ac_header_preproc=yes
14650 else
14651 echo "$as_me: failed program was:" >&5
14652 sed 's/^/| /' conftest.$ac_ext >&5
14653
14654 ac_header_preproc=no
14655 fi
14656
14657 rm -f conftest.err conftest.$ac_ext
14658 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14659 echo "${ECHO_T}$ac_header_preproc" >&6; }
14660
14661 # So? What about this header?
14662 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14663 yes:no: )
14664 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14665 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14667 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14668 ac_header_preproc=yes
14669 ;;
14670 no:yes:* )
14671 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14672 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14673 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14674 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14675 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14676 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14677 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14678 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14680 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14681 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14682 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14683
14684 ;;
14685 esac
14686 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14689 echo $ECHO_N "(cached) $ECHO_C" >&6
14690 else
14691 eval "$as_ac_Header=\$ac_header_preproc"
14692 fi
14693 ac_res=`eval echo '${'$as_ac_Header'}'`
14694 { echo "$as_me:$LINENO: result: $ac_res" >&5
14695 echo "${ECHO_T}$ac_res" >&6; }
14696
14697 fi
14698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14699 cat >>confdefs.h <<_ACEOF
14700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14701 _ACEOF
14702
14703 fi
14704
14705 done
14706
14707 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
14708 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
14709 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
14710 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14711 echo $ECHO_N "(cached) $ECHO_C" >&6
14712 else
14713 ac_check_lib_save_LIBS=$LIBS
14714 LIBS="-lpng -lz -lm $LIBS"
14715 cat >conftest.$ac_ext <<_ACEOF
14716 /* confdefs.h. */
14717 _ACEOF
14718 cat confdefs.h >>conftest.$ac_ext
14719 cat >>conftest.$ac_ext <<_ACEOF
14720 /* end confdefs.h. */
14721
14722 /* Override any GCC internal prototype to avoid an error.
14723 Use char because int might match the return type of a GCC
14724 builtin and then its argument prototype would still apply. */
14725 #ifdef __cplusplus
14726 extern "C"
14727 #endif
14728 char png_get_channels ();
14729 int
14730 main ()
14731 {
14732 return png_get_channels ();
14733 ;
14734 return 0;
14735 }
14736 _ACEOF
14737 rm -f conftest.$ac_objext conftest$ac_exeext
14738 if { (ac_try="$ac_link"
14739 case "(($ac_try" in
14740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14741 *) ac_try_echo=$ac_try;;
14742 esac
14743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14744 (eval "$ac_link") 2>conftest.er1
14745 ac_status=$?
14746 grep -v '^ *+' conftest.er1 >conftest.err
14747 rm -f conftest.er1
14748 cat conftest.err >&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); } &&
14751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14752 { (case "(($ac_try" in
14753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14754 *) ac_try_echo=$ac_try;;
14755 esac
14756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14757 (eval "$ac_try") 2>&5
14758 ac_status=$?
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); }; } &&
14761 { ac_try='test -s conftest$ac_exeext'
14762 { (case "(($ac_try" in
14763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14764 *) ac_try_echo=$ac_try;;
14765 esac
14766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14767 (eval "$ac_try") 2>&5
14768 ac_status=$?
14769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770 (exit $ac_status); }; }; then
14771 ac_cv_lib_png_png_get_channels=yes
14772 else
14773 echo "$as_me: failed program was:" >&5
14774 sed 's/^/| /' conftest.$ac_ext >&5
14775
14776 ac_cv_lib_png_png_get_channels=no
14777 fi
14778
14779 rm -f core conftest.err conftest.$ac_objext \
14780 conftest$ac_exeext conftest.$ac_ext
14781 LIBS=$ac_check_lib_save_LIBS
14782 fi
14783 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
14784 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
14785 if test $ac_cv_lib_png_png_get_channels = yes; then
14786 HAVE_PNG=yes
14787 fi
14788
14789 fi
14790 fi
14791
14792 if test "${HAVE_PNG}" = "yes"; then
14793
14794 cat >>confdefs.h <<\_ACEOF
14795 #define HAVE_PNG 1
14796 _ACEOF
14797
14798 fi
14799 fi
14800
14801 ### Use -ltiff if available, unless `--with-tiff=no'.
14802 HAVE_TIFF=no
14803 if test "${HAVE_X11}" = "yes"; then
14804 if test "${with_tiff}" != "no"; then
14805 if test "${ac_cv_header_tiffio_h+set}" = set; then
14806 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14807 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14808 if test "${ac_cv_header_tiffio_h+set}" = set; then
14809 echo $ECHO_N "(cached) $ECHO_C" >&6
14810 fi
14811 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14812 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14813 else
14814 # Is the header compilable?
14815 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14816 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
14817 cat >conftest.$ac_ext <<_ACEOF
14818 /* confdefs.h. */
14819 _ACEOF
14820 cat confdefs.h >>conftest.$ac_ext
14821 cat >>conftest.$ac_ext <<_ACEOF
14822 /* end confdefs.h. */
14823 $ac_includes_default
14824 #include <tiffio.h>
14825 _ACEOF
14826 rm -f conftest.$ac_objext
14827 if { (ac_try="$ac_compile"
14828 case "(($ac_try" in
14829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14830 *) ac_try_echo=$ac_try;;
14831 esac
14832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14833 (eval "$ac_compile") 2>conftest.er1
14834 ac_status=$?
14835 grep -v '^ *+' conftest.er1 >conftest.err
14836 rm -f conftest.er1
14837 cat conftest.err >&5
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); } &&
14840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14841 { (case "(($ac_try" in
14842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14843 *) ac_try_echo=$ac_try;;
14844 esac
14845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14846 (eval "$ac_try") 2>&5
14847 ac_status=$?
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); }; } &&
14850 { ac_try='test -s conftest.$ac_objext'
14851 { (case "(($ac_try" in
14852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14853 *) ac_try_echo=$ac_try;;
14854 esac
14855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14856 (eval "$ac_try") 2>&5
14857 ac_status=$?
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); }; }; then
14860 ac_header_compiler=yes
14861 else
14862 echo "$as_me: failed program was:" >&5
14863 sed 's/^/| /' conftest.$ac_ext >&5
14864
14865 ac_header_compiler=no
14866 fi
14867
14868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14869 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14870 echo "${ECHO_T}$ac_header_compiler" >&6; }
14871
14872 # Is the header present?
14873 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14874 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14875 cat >conftest.$ac_ext <<_ACEOF
14876 /* confdefs.h. */
14877 _ACEOF
14878 cat confdefs.h >>conftest.$ac_ext
14879 cat >>conftest.$ac_ext <<_ACEOF
14880 /* end confdefs.h. */
14881 #include <tiffio.h>
14882 _ACEOF
14883 if { (ac_try="$ac_cpp conftest.$ac_ext"
14884 case "(($ac_try" in
14885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14886 *) ac_try_echo=$ac_try;;
14887 esac
14888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14890 ac_status=$?
14891 grep -v '^ *+' conftest.er1 >conftest.err
14892 rm -f conftest.er1
14893 cat conftest.err >&5
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); } >/dev/null; then
14896 if test -s conftest.err; then
14897 ac_cpp_err=$ac_c_preproc_warn_flag
14898 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14899 else
14900 ac_cpp_err=
14901 fi
14902 else
14903 ac_cpp_err=yes
14904 fi
14905 if test -z "$ac_cpp_err"; then
14906 ac_header_preproc=yes
14907 else
14908 echo "$as_me: failed program was:" >&5
14909 sed 's/^/| /' conftest.$ac_ext >&5
14910
14911 ac_header_preproc=no
14912 fi
14913
14914 rm -f conftest.err conftest.$ac_ext
14915 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14916 echo "${ECHO_T}$ac_header_preproc" >&6; }
14917
14918 # So? What about this header?
14919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14920 yes:no: )
14921 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14922 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14923 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14924 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14925 ac_header_preproc=yes
14926 ;;
14927 no:yes:* )
14928 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14929 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14930 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14931 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14932 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14933 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14934 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14935 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14936 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14937 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14938 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14939 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14940
14941 ;;
14942 esac
14943 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14944 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14945 if test "${ac_cv_header_tiffio_h+set}" = set; then
14946 echo $ECHO_N "(cached) $ECHO_C" >&6
14947 else
14948 ac_cv_header_tiffio_h=$ac_header_preproc
14949 fi
14950 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14951 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14952
14953 fi
14954 if test $ac_cv_header_tiffio_h = yes; then
14955 tifflibs="-lz -lm"
14956 # At least one tiff package requires the jpeg library.
14957 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14958 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14959 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14960 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14961 echo $ECHO_N "(cached) $ECHO_C" >&6
14962 else
14963 ac_check_lib_save_LIBS=$LIBS
14964 LIBS="-ltiff $tifflibs $LIBS"
14965 cat >conftest.$ac_ext <<_ACEOF
14966 /* confdefs.h. */
14967 _ACEOF
14968 cat confdefs.h >>conftest.$ac_ext
14969 cat >>conftest.$ac_ext <<_ACEOF
14970 /* end confdefs.h. */
14971
14972 /* Override any GCC internal prototype to avoid an error.
14973 Use char because int might match the return type of a GCC
14974 builtin and then its argument prototype would still apply. */
14975 #ifdef __cplusplus
14976 extern "C"
14977 #endif
14978 char TIFFGetVersion ();
14979 int
14980 main ()
14981 {
14982 return TIFFGetVersion ();
14983 ;
14984 return 0;
14985 }
14986 _ACEOF
14987 rm -f conftest.$ac_objext conftest$ac_exeext
14988 if { (ac_try="$ac_link"
14989 case "(($ac_try" in
14990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14991 *) ac_try_echo=$ac_try;;
14992 esac
14993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14994 (eval "$ac_link") 2>conftest.er1
14995 ac_status=$?
14996 grep -v '^ *+' conftest.er1 >conftest.err
14997 rm -f conftest.er1
14998 cat conftest.err >&5
14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); } &&
15001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15002 { (case "(($ac_try" in
15003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15004 *) ac_try_echo=$ac_try;;
15005 esac
15006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15007 (eval "$ac_try") 2>&5
15008 ac_status=$?
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); }; } &&
15011 { ac_try='test -s conftest$ac_exeext'
15012 { (case "(($ac_try" in
15013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15014 *) ac_try_echo=$ac_try;;
15015 esac
15016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15017 (eval "$ac_try") 2>&5
15018 ac_status=$?
15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); }; }; then
15021 ac_cv_lib_tiff_TIFFGetVersion=yes
15022 else
15023 echo "$as_me: failed program was:" >&5
15024 sed 's/^/| /' conftest.$ac_ext >&5
15025
15026 ac_cv_lib_tiff_TIFFGetVersion=no
15027 fi
15028
15029 rm -f core conftest.err conftest.$ac_objext \
15030 conftest$ac_exeext conftest.$ac_ext
15031 LIBS=$ac_check_lib_save_LIBS
15032 fi
15033 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15034 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15035 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
15036 HAVE_TIFF=yes
15037 fi
15038
15039 fi
15040
15041
15042 fi
15043
15044 if test "${HAVE_TIFF}" = "yes"; then
15045
15046 cat >>confdefs.h <<\_ACEOF
15047 #define HAVE_TIFF 1
15048 _ACEOF
15049
15050 fi
15051 fi
15052
15053 ### Use -lgif if available, unless `--with-gif=no'.
15054 HAVE_GIF=no
15055 if test "${HAVE_X11}" = "yes"; then
15056 if test "${with_gif}" != "no"; then
15057 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15058 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15059 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
15060 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15061 echo $ECHO_N "(cached) $ECHO_C" >&6
15062 fi
15063 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15064 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
15065 else
15066 # Is the header compilable?
15067 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15068 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
15069 cat >conftest.$ac_ext <<_ACEOF
15070 /* confdefs.h. */
15071 _ACEOF
15072 cat confdefs.h >>conftest.$ac_ext
15073 cat >>conftest.$ac_ext <<_ACEOF
15074 /* end confdefs.h. */
15075 $ac_includes_default
15076 #include <gif_lib.h>
15077 _ACEOF
15078 rm -f conftest.$ac_objext
15079 if { (ac_try="$ac_compile"
15080 case "(($ac_try" in
15081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15082 *) ac_try_echo=$ac_try;;
15083 esac
15084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15085 (eval "$ac_compile") 2>conftest.er1
15086 ac_status=$?
15087 grep -v '^ *+' conftest.er1 >conftest.err
15088 rm -f conftest.er1
15089 cat conftest.err >&5
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); } &&
15092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15093 { (case "(($ac_try" in
15094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15095 *) ac_try_echo=$ac_try;;
15096 esac
15097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15098 (eval "$ac_try") 2>&5
15099 ac_status=$?
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); }; } &&
15102 { ac_try='test -s conftest.$ac_objext'
15103 { (case "(($ac_try" in
15104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15105 *) ac_try_echo=$ac_try;;
15106 esac
15107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15108 (eval "$ac_try") 2>&5
15109 ac_status=$?
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); }; }; then
15112 ac_header_compiler=yes
15113 else
15114 echo "$as_me: failed program was:" >&5
15115 sed 's/^/| /' conftest.$ac_ext >&5
15116
15117 ac_header_compiler=no
15118 fi
15119
15120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15121 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15122 echo "${ECHO_T}$ac_header_compiler" >&6; }
15123
15124 # Is the header present?
15125 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15126 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
15127 cat >conftest.$ac_ext <<_ACEOF
15128 /* confdefs.h. */
15129 _ACEOF
15130 cat confdefs.h >>conftest.$ac_ext
15131 cat >>conftest.$ac_ext <<_ACEOF
15132 /* end confdefs.h. */
15133 #include <gif_lib.h>
15134 _ACEOF
15135 if { (ac_try="$ac_cpp conftest.$ac_ext"
15136 case "(($ac_try" in
15137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15138 *) ac_try_echo=$ac_try;;
15139 esac
15140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15141 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15142 ac_status=$?
15143 grep -v '^ *+' conftest.er1 >conftest.err
15144 rm -f conftest.er1
15145 cat conftest.err >&5
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); } >/dev/null; then
15148 if test -s conftest.err; then
15149 ac_cpp_err=$ac_c_preproc_warn_flag
15150 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15151 else
15152 ac_cpp_err=
15153 fi
15154 else
15155 ac_cpp_err=yes
15156 fi
15157 if test -z "$ac_cpp_err"; then
15158 ac_header_preproc=yes
15159 else
15160 echo "$as_me: failed program was:" >&5
15161 sed 's/^/| /' conftest.$ac_ext >&5
15162
15163 ac_header_preproc=no
15164 fi
15165
15166 rm -f conftest.err conftest.$ac_ext
15167 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15168 echo "${ECHO_T}$ac_header_preproc" >&6; }
15169
15170 # So? What about this header?
15171 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15172 yes:no: )
15173 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15174 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15175 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
15176 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
15177 ac_header_preproc=yes
15178 ;;
15179 no:yes:* )
15180 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15181 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15182 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15183 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15184 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15185 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15186 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15187 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15188 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
15189 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
15190 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15191 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15192
15193 ;;
15194 esac
15195 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15196 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
15197 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15198 echo $ECHO_N "(cached) $ECHO_C" >&6
15199 else
15200 ac_cv_header_gif_lib_h=$ac_header_preproc
15201 fi
15202 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15203 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
15204
15205 fi
15206 if test $ac_cv_header_gif_lib_h = yes; then
15207 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15208 # Earlier versions can crash Emacs.
15209 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15210 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
15211 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15212 echo $ECHO_N "(cached) $ECHO_C" >&6
15213 else
15214 ac_check_lib_save_LIBS=$LIBS
15215 LIBS="-lungif $LIBS"
15216 cat >conftest.$ac_ext <<_ACEOF
15217 /* confdefs.h. */
15218 _ACEOF
15219 cat confdefs.h >>conftest.$ac_ext
15220 cat >>conftest.$ac_ext <<_ACEOF
15221 /* end confdefs.h. */
15222
15223 /* Override any GCC internal prototype to avoid an error.
15224 Use char because int might match the return type of a GCC
15225 builtin and then its argument prototype would still apply. */
15226 #ifdef __cplusplus
15227 extern "C"
15228 #endif
15229 char EGifPutExtensionLast ();
15230 int
15231 main ()
15232 {
15233 return EGifPutExtensionLast ();
15234 ;
15235 return 0;
15236 }
15237 _ACEOF
15238 rm -f conftest.$ac_objext conftest$ac_exeext
15239 if { (ac_try="$ac_link"
15240 case "(($ac_try" in
15241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15242 *) ac_try_echo=$ac_try;;
15243 esac
15244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15245 (eval "$ac_link") 2>conftest.er1
15246 ac_status=$?
15247 grep -v '^ *+' conftest.er1 >conftest.err
15248 rm -f conftest.er1
15249 cat conftest.err >&5
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); } &&
15252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15253 { (case "(($ac_try" in
15254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15255 *) ac_try_echo=$ac_try;;
15256 esac
15257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15258 (eval "$ac_try") 2>&5
15259 ac_status=$?
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); }; } &&
15262 { ac_try='test -s conftest$ac_exeext'
15263 { (case "(($ac_try" in
15264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15265 *) ac_try_echo=$ac_try;;
15266 esac
15267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15268 (eval "$ac_try") 2>&5
15269 ac_status=$?
15270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271 (exit $ac_status); }; }; then
15272 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15273 else
15274 echo "$as_me: failed program was:" >&5
15275 sed 's/^/| /' conftest.$ac_ext >&5
15276
15277 ac_cv_lib_ungif_EGifPutExtensionLast=no
15278 fi
15279
15280 rm -f core conftest.err conftest.$ac_objext \
15281 conftest$ac_exeext conftest.$ac_ext
15282 LIBS=$ac_check_lib_save_LIBS
15283 fi
15284 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15285 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15286 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15287 HAVE_GIF=yes
15288 fi
15289
15290 fi
15291
15292
15293 fi
15294
15295 if test "${HAVE_GIF}" = "yes"; then
15296
15297 cat >>confdefs.h <<\_ACEOF
15298 #define HAVE_GIF 1
15299 _ACEOF
15300
15301 fi
15302 fi
15303
15304 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15305 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15306 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
15307 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15308 echo $ECHO_N "(cached) $ECHO_C" >&6
15309 fi
15310 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15311 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
15312 else
15313 # Is the header compilable?
15314 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
15315 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
15316 cat >conftest.$ac_ext <<_ACEOF
15317 /* confdefs.h. */
15318 _ACEOF
15319 cat confdefs.h >>conftest.$ac_ext
15320 cat >>conftest.$ac_ext <<_ACEOF
15321 /* end confdefs.h. */
15322 $ac_includes_default
15323 #include <malloc/malloc.h>
15324 _ACEOF
15325 rm -f conftest.$ac_objext
15326 if { (ac_try="$ac_compile"
15327 case "(($ac_try" in
15328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15329 *) ac_try_echo=$ac_try;;
15330 esac
15331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15332 (eval "$ac_compile") 2>conftest.er1
15333 ac_status=$?
15334 grep -v '^ *+' conftest.er1 >conftest.err
15335 rm -f conftest.er1
15336 cat conftest.err >&5
15337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 (exit $ac_status); } &&
15339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15340 { (case "(($ac_try" in
15341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15342 *) ac_try_echo=$ac_try;;
15343 esac
15344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15345 (eval "$ac_try") 2>&5
15346 ac_status=$?
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); }; } &&
15349 { ac_try='test -s conftest.$ac_objext'
15350 { (case "(($ac_try" in
15351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15352 *) ac_try_echo=$ac_try;;
15353 esac
15354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15355 (eval "$ac_try") 2>&5
15356 ac_status=$?
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); }; }; then
15359 ac_header_compiler=yes
15360 else
15361 echo "$as_me: failed program was:" >&5
15362 sed 's/^/| /' conftest.$ac_ext >&5
15363
15364 ac_header_compiler=no
15365 fi
15366
15367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15368 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15369 echo "${ECHO_T}$ac_header_compiler" >&6; }
15370
15371 # Is the header present?
15372 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
15373 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
15374 cat >conftest.$ac_ext <<_ACEOF
15375 /* confdefs.h. */
15376 _ACEOF
15377 cat confdefs.h >>conftest.$ac_ext
15378 cat >>conftest.$ac_ext <<_ACEOF
15379 /* end confdefs.h. */
15380 #include <malloc/malloc.h>
15381 _ACEOF
15382 if { (ac_try="$ac_cpp conftest.$ac_ext"
15383 case "(($ac_try" in
15384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15385 *) ac_try_echo=$ac_try;;
15386 esac
15387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15389 ac_status=$?
15390 grep -v '^ *+' conftest.er1 >conftest.err
15391 rm -f conftest.er1
15392 cat conftest.err >&5
15393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394 (exit $ac_status); } >/dev/null; then
15395 if test -s conftest.err; then
15396 ac_cpp_err=$ac_c_preproc_warn_flag
15397 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15398 else
15399 ac_cpp_err=
15400 fi
15401 else
15402 ac_cpp_err=yes
15403 fi
15404 if test -z "$ac_cpp_err"; then
15405 ac_header_preproc=yes
15406 else
15407 echo "$as_me: failed program was:" >&5
15408 sed 's/^/| /' conftest.$ac_ext >&5
15409
15410 ac_header_preproc=no
15411 fi
15412
15413 rm -f conftest.err conftest.$ac_ext
15414 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15415 echo "${ECHO_T}$ac_header_preproc" >&6; }
15416
15417 # So? What about this header?
15418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15419 yes:no: )
15420 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
15421 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15422 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
15423 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
15424 ac_header_preproc=yes
15425 ;;
15426 no:yes:* )
15427 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
15428 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
15429 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
15430 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
15431 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
15432 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
15433 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
15434 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
15435 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
15436 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
15437 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
15438 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
15439
15440 ;;
15441 esac
15442 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15443 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
15444 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15445 echo $ECHO_N "(cached) $ECHO_C" >&6
15446 else
15447 ac_cv_header_malloc_malloc_h=$ac_header_preproc
15448 fi
15449 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15450 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
15451
15452 fi
15453 if test $ac_cv_header_malloc_malloc_h = yes; then
15454
15455 cat >>confdefs.h <<\_ACEOF
15456 #define HAVE_MALLOC_MALLOC_H 1
15457 _ACEOF
15458
15459 fi
15460
15461
15462
15463 ### Use Mac OS X Carbon API to implement GUI.
15464 if test "${HAVE_CARBON}" = "yes"; then
15465
15466 cat >>confdefs.h <<\_ACEOF
15467 #define HAVE_CARBON 1
15468 _ACEOF
15469
15470 ## Specify the install directory
15471 carbon_appdir=
15472 if test "${carbon_appdir_x}" != ""; then
15473 case ${carbon_appdir_x} in
15474 y | ye | yes) carbon_appdir=/Applications ;;
15475 * ) carbon_appdir=${carbon_appdir_x} ;;
15476 esac
15477 fi
15478 # We also have mouse menus.
15479 HAVE_MENUS=yes
15480 fi
15481
15482 ### Use session management (-lSM -lICE) if available
15483 HAVE_X_SM=no
15484 if test "${HAVE_X11}" = "yes"; then
15485 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15486 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15487 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15488 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15489 echo $ECHO_N "(cached) $ECHO_C" >&6
15490 fi
15491 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15492 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15493 else
15494 # Is the header compilable?
15495 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
15496 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
15497 cat >conftest.$ac_ext <<_ACEOF
15498 /* confdefs.h. */
15499 _ACEOF
15500 cat confdefs.h >>conftest.$ac_ext
15501 cat >>conftest.$ac_ext <<_ACEOF
15502 /* end confdefs.h. */
15503 $ac_includes_default
15504 #include <X11/SM/SMlib.h>
15505 _ACEOF
15506 rm -f conftest.$ac_objext
15507 if { (ac_try="$ac_compile"
15508 case "(($ac_try" in
15509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15510 *) ac_try_echo=$ac_try;;
15511 esac
15512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15513 (eval "$ac_compile") 2>conftest.er1
15514 ac_status=$?
15515 grep -v '^ *+' conftest.er1 >conftest.err
15516 rm -f conftest.er1
15517 cat conftest.err >&5
15518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); } &&
15520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15521 { (case "(($ac_try" in
15522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15523 *) ac_try_echo=$ac_try;;
15524 esac
15525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15526 (eval "$ac_try") 2>&5
15527 ac_status=$?
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); }; } &&
15530 { ac_try='test -s conftest.$ac_objext'
15531 { (case "(($ac_try" in
15532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15533 *) ac_try_echo=$ac_try;;
15534 esac
15535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15536 (eval "$ac_try") 2>&5
15537 ac_status=$?
15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); }; }; then
15540 ac_header_compiler=yes
15541 else
15542 echo "$as_me: failed program was:" >&5
15543 sed 's/^/| /' conftest.$ac_ext >&5
15544
15545 ac_header_compiler=no
15546 fi
15547
15548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15549 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15550 echo "${ECHO_T}$ac_header_compiler" >&6; }
15551
15552 # Is the header present?
15553 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
15554 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
15555 cat >conftest.$ac_ext <<_ACEOF
15556 /* confdefs.h. */
15557 _ACEOF
15558 cat confdefs.h >>conftest.$ac_ext
15559 cat >>conftest.$ac_ext <<_ACEOF
15560 /* end confdefs.h. */
15561 #include <X11/SM/SMlib.h>
15562 _ACEOF
15563 if { (ac_try="$ac_cpp conftest.$ac_ext"
15564 case "(($ac_try" in
15565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15566 *) ac_try_echo=$ac_try;;
15567 esac
15568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15570 ac_status=$?
15571 grep -v '^ *+' conftest.er1 >conftest.err
15572 rm -f conftest.er1
15573 cat conftest.err >&5
15574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15575 (exit $ac_status); } >/dev/null; then
15576 if test -s conftest.err; then
15577 ac_cpp_err=$ac_c_preproc_warn_flag
15578 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15579 else
15580 ac_cpp_err=
15581 fi
15582 else
15583 ac_cpp_err=yes
15584 fi
15585 if test -z "$ac_cpp_err"; then
15586 ac_header_preproc=yes
15587 else
15588 echo "$as_me: failed program was:" >&5
15589 sed 's/^/| /' conftest.$ac_ext >&5
15590
15591 ac_header_preproc=no
15592 fi
15593
15594 rm -f conftest.err conftest.$ac_ext
15595 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15596 echo "${ECHO_T}$ac_header_preproc" >&6; }
15597
15598 # So? What about this header?
15599 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15600 yes:no: )
15601 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15602 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15603 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15604 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15605 ac_header_preproc=yes
15606 ;;
15607 no:yes:* )
15608 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15609 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15610 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15611 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15612 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15613 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15614 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15615 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15616 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15617 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15618 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15619 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15620
15621 ;;
15622 esac
15623 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15624 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15625 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15626 echo $ECHO_N "(cached) $ECHO_C" >&6
15627 else
15628 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15629 fi
15630 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15631 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15632
15633 fi
15634 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15635 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15636 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
15637 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15638 echo $ECHO_N "(cached) $ECHO_C" >&6
15639 else
15640 ac_check_lib_save_LIBS=$LIBS
15641 LIBS="-lSM -lICE $LIBS"
15642 cat >conftest.$ac_ext <<_ACEOF
15643 /* confdefs.h. */
15644 _ACEOF
15645 cat confdefs.h >>conftest.$ac_ext
15646 cat >>conftest.$ac_ext <<_ACEOF
15647 /* end confdefs.h. */
15648
15649 /* Override any GCC internal prototype to avoid an error.
15650 Use char because int might match the return type of a GCC
15651 builtin and then its argument prototype would still apply. */
15652 #ifdef __cplusplus
15653 extern "C"
15654 #endif
15655 char SmcOpenConnection ();
15656 int
15657 main ()
15658 {
15659 return SmcOpenConnection ();
15660 ;
15661 return 0;
15662 }
15663 _ACEOF
15664 rm -f conftest.$ac_objext conftest$ac_exeext
15665 if { (ac_try="$ac_link"
15666 case "(($ac_try" in
15667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15668 *) ac_try_echo=$ac_try;;
15669 esac
15670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15671 (eval "$ac_link") 2>conftest.er1
15672 ac_status=$?
15673 grep -v '^ *+' conftest.er1 >conftest.err
15674 rm -f conftest.er1
15675 cat conftest.err >&5
15676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677 (exit $ac_status); } &&
15678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15679 { (case "(($ac_try" in
15680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15681 *) ac_try_echo=$ac_try;;
15682 esac
15683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15684 (eval "$ac_try") 2>&5
15685 ac_status=$?
15686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687 (exit $ac_status); }; } &&
15688 { ac_try='test -s conftest$ac_exeext'
15689 { (case "(($ac_try" in
15690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15691 *) ac_try_echo=$ac_try;;
15692 esac
15693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15694 (eval "$ac_try") 2>&5
15695 ac_status=$?
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); }; }; then
15698 ac_cv_lib_SM_SmcOpenConnection=yes
15699 else
15700 echo "$as_me: failed program was:" >&5
15701 sed 's/^/| /' conftest.$ac_ext >&5
15702
15703 ac_cv_lib_SM_SmcOpenConnection=no
15704 fi
15705
15706 rm -f core conftest.err conftest.$ac_objext \
15707 conftest$ac_exeext conftest.$ac_ext
15708 LIBS=$ac_check_lib_save_LIBS
15709 fi
15710 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15711 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15712 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15713 HAVE_X_SM=yes
15714 fi
15715
15716 fi
15717
15718
15719
15720 if test "${HAVE_X_SM}" = "yes"; then
15721
15722 cat >>confdefs.h <<\_ACEOF
15723 #define HAVE_X_SM 1
15724 _ACEOF
15725
15726 case "$LIBS" in
15727 *-lSM*) ;;
15728 *) LIBS="-lSM -lICE $LIBS" ;;
15729 esac
15730 fi
15731 fi
15732
15733 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15734 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15735 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15736 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15737 echo $ECHO_N "(cached) $ECHO_C" >&6
15738 else
15739 cat >conftest.$ac_ext <<_ACEOF
15740 /* confdefs.h. */
15741 _ACEOF
15742 cat confdefs.h >>conftest.$ac_ext
15743 cat >>conftest.$ac_ext <<_ACEOF
15744 /* end confdefs.h. */
15745 #include <netdb.h>
15746 int
15747 main ()
15748 {
15749 return h_errno;
15750 ;
15751 return 0;
15752 }
15753 _ACEOF
15754 rm -f conftest.$ac_objext conftest$ac_exeext
15755 if { (ac_try="$ac_link"
15756 case "(($ac_try" in
15757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15758 *) ac_try_echo=$ac_try;;
15759 esac
15760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15761 (eval "$ac_link") 2>conftest.er1
15762 ac_status=$?
15763 grep -v '^ *+' conftest.er1 >conftest.err
15764 rm -f conftest.er1
15765 cat conftest.err >&5
15766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767 (exit $ac_status); } &&
15768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15769 { (case "(($ac_try" in
15770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15771 *) ac_try_echo=$ac_try;;
15772 esac
15773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15774 (eval "$ac_try") 2>&5
15775 ac_status=$?
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); }; } &&
15778 { ac_try='test -s conftest$ac_exeext'
15779 { (case "(($ac_try" in
15780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15781 *) ac_try_echo=$ac_try;;
15782 esac
15783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15784 (eval "$ac_try") 2>&5
15785 ac_status=$?
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); }; }; then
15788 emacs_cv_netdb_declares_h_errno=yes
15789 else
15790 echo "$as_me: failed program was:" >&5
15791 sed 's/^/| /' conftest.$ac_ext >&5
15792
15793 emacs_cv_netdb_declares_h_errno=no
15794 fi
15795
15796 rm -f core conftest.err conftest.$ac_objext \
15797 conftest$ac_exeext conftest.$ac_ext
15798 fi
15799 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15800 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15801 if test $emacs_cv_netdb_declares_h_errno = yes; then
15802
15803 cat >>confdefs.h <<\_ACEOF
15804 #define HAVE_H_ERRNO 1
15805 _ACEOF
15806
15807 fi
15808
15809 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15810 # for constant arguments. Useless!
15811 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15812 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15813 if test "${ac_cv_working_alloca_h+set}" = set; then
15814 echo $ECHO_N "(cached) $ECHO_C" >&6
15815 else
15816 cat >conftest.$ac_ext <<_ACEOF
15817 /* confdefs.h. */
15818 _ACEOF
15819 cat confdefs.h >>conftest.$ac_ext
15820 cat >>conftest.$ac_ext <<_ACEOF
15821 /* end confdefs.h. */
15822 #include <alloca.h>
15823 int
15824 main ()
15825 {
15826 char *p = (char *) alloca (2 * sizeof (int));
15827 if (p) return 0;
15828 ;
15829 return 0;
15830 }
15831 _ACEOF
15832 rm -f conftest.$ac_objext conftest$ac_exeext
15833 if { (ac_try="$ac_link"
15834 case "(($ac_try" in
15835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15836 *) ac_try_echo=$ac_try;;
15837 esac
15838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15839 (eval "$ac_link") 2>conftest.er1
15840 ac_status=$?
15841 grep -v '^ *+' conftest.er1 >conftest.err
15842 rm -f conftest.er1
15843 cat conftest.err >&5
15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); } &&
15846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15847 { (case "(($ac_try" in
15848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15849 *) ac_try_echo=$ac_try;;
15850 esac
15851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15852 (eval "$ac_try") 2>&5
15853 ac_status=$?
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); }; } &&
15856 { ac_try='test -s conftest$ac_exeext'
15857 { (case "(($ac_try" in
15858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15859 *) ac_try_echo=$ac_try;;
15860 esac
15861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15862 (eval "$ac_try") 2>&5
15863 ac_status=$?
15864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); }; }; then
15866 ac_cv_working_alloca_h=yes
15867 else
15868 echo "$as_me: failed program was:" >&5
15869 sed 's/^/| /' conftest.$ac_ext >&5
15870
15871 ac_cv_working_alloca_h=no
15872 fi
15873
15874 rm -f core conftest.err conftest.$ac_objext \
15875 conftest$ac_exeext conftest.$ac_ext
15876 fi
15877 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15878 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15879 if test $ac_cv_working_alloca_h = yes; then
15880
15881 cat >>confdefs.h <<\_ACEOF
15882 #define HAVE_ALLOCA_H 1
15883 _ACEOF
15884
15885 fi
15886
15887 { echo "$as_me:$LINENO: checking for alloca" >&5
15888 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15889 if test "${ac_cv_func_alloca_works+set}" = set; then
15890 echo $ECHO_N "(cached) $ECHO_C" >&6
15891 else
15892 cat >conftest.$ac_ext <<_ACEOF
15893 /* confdefs.h. */
15894 _ACEOF
15895 cat confdefs.h >>conftest.$ac_ext
15896 cat >>conftest.$ac_ext <<_ACEOF
15897 /* end confdefs.h. */
15898 #ifdef __GNUC__
15899 # define alloca __builtin_alloca
15900 #else
15901 # ifdef _MSC_VER
15902 # include <malloc.h>
15903 # define alloca _alloca
15904 # else
15905 # if HAVE_ALLOCA_H
15906 # include <alloca.h>
15907 # else
15908 # ifdef _AIX
15909 #pragma alloca
15910 # else
15911 # ifndef alloca /* predefined by HP cc +Olibcalls */
15912 char *alloca ();
15913 # endif
15914 # endif
15915 # endif
15916 # endif
15917 #endif
15918
15919 int
15920 main ()
15921 {
15922 char *p = (char *) alloca (1);
15923 if (p) return 0;
15924 ;
15925 return 0;
15926 }
15927 _ACEOF
15928 rm -f conftest.$ac_objext conftest$ac_exeext
15929 if { (ac_try="$ac_link"
15930 case "(($ac_try" in
15931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15932 *) ac_try_echo=$ac_try;;
15933 esac
15934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15935 (eval "$ac_link") 2>conftest.er1
15936 ac_status=$?
15937 grep -v '^ *+' conftest.er1 >conftest.err
15938 rm -f conftest.er1
15939 cat conftest.err >&5
15940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); } &&
15942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15943 { (case "(($ac_try" in
15944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15945 *) ac_try_echo=$ac_try;;
15946 esac
15947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15948 (eval "$ac_try") 2>&5
15949 ac_status=$?
15950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951 (exit $ac_status); }; } &&
15952 { ac_try='test -s conftest$ac_exeext'
15953 { (case "(($ac_try" in
15954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15955 *) ac_try_echo=$ac_try;;
15956 esac
15957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15958 (eval "$ac_try") 2>&5
15959 ac_status=$?
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); }; }; then
15962 ac_cv_func_alloca_works=yes
15963 else
15964 echo "$as_me: failed program was:" >&5
15965 sed 's/^/| /' conftest.$ac_ext >&5
15966
15967 ac_cv_func_alloca_works=no
15968 fi
15969
15970 rm -f core conftest.err conftest.$ac_objext \
15971 conftest$ac_exeext conftest.$ac_ext
15972 fi
15973 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15974 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15975
15976 if test $ac_cv_func_alloca_works = yes; then
15977
15978 cat >>confdefs.h <<\_ACEOF
15979 #define HAVE_ALLOCA 1
15980 _ACEOF
15981
15982 else
15983 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15984 # that cause trouble. Some versions do not even contain alloca or
15985 # contain a buggy version. If you still want to use their alloca,
15986 # use ar to extract alloca.o from them instead of compiling alloca.c.
15987
15988 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15989
15990 cat >>confdefs.h <<\_ACEOF
15991 #define C_ALLOCA 1
15992 _ACEOF
15993
15994
15995 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15996 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15997 if test "${ac_cv_os_cray+set}" = set; then
15998 echo $ECHO_N "(cached) $ECHO_C" >&6
15999 else
16000 cat >conftest.$ac_ext <<_ACEOF
16001 /* confdefs.h. */
16002 _ACEOF
16003 cat confdefs.h >>conftest.$ac_ext
16004 cat >>conftest.$ac_ext <<_ACEOF
16005 /* end confdefs.h. */
16006 #if defined CRAY && ! defined CRAY2
16007 webecray
16008 #else
16009 wenotbecray
16010 #endif
16011
16012 _ACEOF
16013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16014 $EGREP "webecray" >/dev/null 2>&1; then
16015 ac_cv_os_cray=yes
16016 else
16017 ac_cv_os_cray=no
16018 fi
16019 rm -f conftest*
16020
16021 fi
16022 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16023 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
16024 if test $ac_cv_os_cray = yes; then
16025 for ac_func in _getb67 GETB67 getb67; do
16026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16027 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16029 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16030 echo $ECHO_N "(cached) $ECHO_C" >&6
16031 else
16032 cat >conftest.$ac_ext <<_ACEOF
16033 /* confdefs.h. */
16034 _ACEOF
16035 cat confdefs.h >>conftest.$ac_ext
16036 cat >>conftest.$ac_ext <<_ACEOF
16037 /* end confdefs.h. */
16038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16040 #define $ac_func innocuous_$ac_func
16041
16042 /* System header to define __stub macros and hopefully few prototypes,
16043 which can conflict with char $ac_func (); below.
16044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16045 <limits.h> exists even on freestanding compilers. */
16046
16047 #ifdef __STDC__
16048 # include <limits.h>
16049 #else
16050 # include <assert.h>
16051 #endif
16052
16053 #undef $ac_func
16054
16055 /* Override any GCC internal prototype to avoid an error.
16056 Use char because int might match the return type of a GCC
16057 builtin and then its argument prototype would still apply. */
16058 #ifdef __cplusplus
16059 extern "C"
16060 #endif
16061 char $ac_func ();
16062 /* The GNU C library defines this for functions which it implements
16063 to always fail with ENOSYS. Some functions are actually named
16064 something starting with __ and the normal name is an alias. */
16065 #if defined __stub_$ac_func || defined __stub___$ac_func
16066 choke me
16067 #endif
16068
16069 int
16070 main ()
16071 {
16072 return $ac_func ();
16073 ;
16074 return 0;
16075 }
16076 _ACEOF
16077 rm -f conftest.$ac_objext conftest$ac_exeext
16078 if { (ac_try="$ac_link"
16079 case "(($ac_try" in
16080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16081 *) ac_try_echo=$ac_try;;
16082 esac
16083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16084 (eval "$ac_link") 2>conftest.er1
16085 ac_status=$?
16086 grep -v '^ *+' conftest.er1 >conftest.err
16087 rm -f conftest.er1
16088 cat conftest.err >&5
16089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090 (exit $ac_status); } &&
16091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16092 { (case "(($ac_try" in
16093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16094 *) ac_try_echo=$ac_try;;
16095 esac
16096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16097 (eval "$ac_try") 2>&5
16098 ac_status=$?
16099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100 (exit $ac_status); }; } &&
16101 { ac_try='test -s conftest$ac_exeext'
16102 { (case "(($ac_try" in
16103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16104 *) ac_try_echo=$ac_try;;
16105 esac
16106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16107 (eval "$ac_try") 2>&5
16108 ac_status=$?
16109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110 (exit $ac_status); }; }; then
16111 eval "$as_ac_var=yes"
16112 else
16113 echo "$as_me: failed program was:" >&5
16114 sed 's/^/| /' conftest.$ac_ext >&5
16115
16116 eval "$as_ac_var=no"
16117 fi
16118
16119 rm -f core conftest.err conftest.$ac_objext \
16120 conftest$ac_exeext conftest.$ac_ext
16121 fi
16122 ac_res=`eval echo '${'$as_ac_var'}'`
16123 { echo "$as_me:$LINENO: result: $ac_res" >&5
16124 echo "${ECHO_T}$ac_res" >&6; }
16125 if test `eval echo '${'$as_ac_var'}'` = yes; then
16126
16127 cat >>confdefs.h <<_ACEOF
16128 #define CRAY_STACKSEG_END $ac_func
16129 _ACEOF
16130
16131 break
16132 fi
16133
16134 done
16135 fi
16136
16137 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16138 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
16139 if test "${ac_cv_c_stack_direction+set}" = set; then
16140 echo $ECHO_N "(cached) $ECHO_C" >&6
16141 else
16142 if test "$cross_compiling" = yes; then
16143 ac_cv_c_stack_direction=0
16144 else
16145 cat >conftest.$ac_ext <<_ACEOF
16146 /* confdefs.h. */
16147 _ACEOF
16148 cat confdefs.h >>conftest.$ac_ext
16149 cat >>conftest.$ac_ext <<_ACEOF
16150 /* end confdefs.h. */
16151 $ac_includes_default
16152 int
16153 find_stack_direction ()
16154 {
16155 static char *addr = 0;
16156 auto char dummy;
16157 if (addr == 0)
16158 {
16159 addr = &dummy;
16160 return find_stack_direction ();
16161 }
16162 else
16163 return (&dummy > addr) ? 1 : -1;
16164 }
16165
16166 int
16167 main ()
16168 {
16169 return find_stack_direction () < 0;
16170 }
16171 _ACEOF
16172 rm -f conftest$ac_exeext
16173 if { (ac_try="$ac_link"
16174 case "(($ac_try" in
16175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16176 *) ac_try_echo=$ac_try;;
16177 esac
16178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16179 (eval "$ac_link") 2>&5
16180 ac_status=$?
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16183 { (case "(($ac_try" in
16184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16185 *) ac_try_echo=$ac_try;;
16186 esac
16187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16188 (eval "$ac_try") 2>&5
16189 ac_status=$?
16190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16191 (exit $ac_status); }; }; then
16192 ac_cv_c_stack_direction=1
16193 else
16194 echo "$as_me: program exited with status $ac_status" >&5
16195 echo "$as_me: failed program was:" >&5
16196 sed 's/^/| /' conftest.$ac_ext >&5
16197
16198 ( exit $ac_status )
16199 ac_cv_c_stack_direction=-1
16200 fi
16201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16202 fi
16203
16204
16205 fi
16206 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16207 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
16208
16209 cat >>confdefs.h <<_ACEOF
16210 #define STACK_DIRECTION $ac_cv_c_stack_direction
16211 _ACEOF
16212
16213
16214 fi
16215
16216
16217 # fmod, logb, and frexp are found in -lm on most systems.
16218 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16219
16220 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
16221 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
16222 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16223 echo $ECHO_N "(cached) $ECHO_C" >&6
16224 else
16225 ac_check_lib_save_LIBS=$LIBS
16226 LIBS="-lm $LIBS"
16227 cat >conftest.$ac_ext <<_ACEOF
16228 /* confdefs.h. */
16229 _ACEOF
16230 cat confdefs.h >>conftest.$ac_ext
16231 cat >>conftest.$ac_ext <<_ACEOF
16232 /* end confdefs.h. */
16233
16234 /* Override any GCC internal prototype to avoid an error.
16235 Use char because int might match the return type of a GCC
16236 builtin and then its argument prototype would still apply. */
16237 #ifdef __cplusplus
16238 extern "C"
16239 #endif
16240 char sqrt ();
16241 int
16242 main ()
16243 {
16244 return sqrt ();
16245 ;
16246 return 0;
16247 }
16248 _ACEOF
16249 rm -f conftest.$ac_objext conftest$ac_exeext
16250 if { (ac_try="$ac_link"
16251 case "(($ac_try" in
16252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16253 *) ac_try_echo=$ac_try;;
16254 esac
16255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16256 (eval "$ac_link") 2>conftest.er1
16257 ac_status=$?
16258 grep -v '^ *+' conftest.er1 >conftest.err
16259 rm -f conftest.er1
16260 cat conftest.err >&5
16261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262 (exit $ac_status); } &&
16263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16264 { (case "(($ac_try" in
16265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16266 *) ac_try_echo=$ac_try;;
16267 esac
16268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16269 (eval "$ac_try") 2>&5
16270 ac_status=$?
16271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272 (exit $ac_status); }; } &&
16273 { ac_try='test -s conftest$ac_exeext'
16274 { (case "(($ac_try" in
16275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16276 *) ac_try_echo=$ac_try;;
16277 esac
16278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16279 (eval "$ac_try") 2>&5
16280 ac_status=$?
16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); }; }; then
16283 ac_cv_lib_m_sqrt=yes
16284 else
16285 echo "$as_me: failed program was:" >&5
16286 sed 's/^/| /' conftest.$ac_ext >&5
16287
16288 ac_cv_lib_m_sqrt=no
16289 fi
16290
16291 rm -f core conftest.err conftest.$ac_objext \
16292 conftest$ac_exeext conftest.$ac_ext
16293 LIBS=$ac_check_lib_save_LIBS
16294 fi
16295 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
16296 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
16297 if test $ac_cv_lib_m_sqrt = yes; then
16298 cat >>confdefs.h <<_ACEOF
16299 #define HAVE_LIBM 1
16300 _ACEOF
16301
16302 LIBS="-lm $LIBS"
16303
16304 fi
16305
16306
16307 # Check for mail-locking functions in a "mail" library. Probably this should
16308 # have the same check as for liblockfile below.
16309
16310 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
16311 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
16312 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16313 echo $ECHO_N "(cached) $ECHO_C" >&6
16314 else
16315 ac_check_lib_save_LIBS=$LIBS
16316 LIBS="-lmail $LIBS"
16317 cat >conftest.$ac_ext <<_ACEOF
16318 /* confdefs.h. */
16319 _ACEOF
16320 cat confdefs.h >>conftest.$ac_ext
16321 cat >>conftest.$ac_ext <<_ACEOF
16322 /* end confdefs.h. */
16323
16324 /* Override any GCC internal prototype to avoid an error.
16325 Use char because int might match the return type of a GCC
16326 builtin and then its argument prototype would still apply. */
16327 #ifdef __cplusplus
16328 extern "C"
16329 #endif
16330 char maillock ();
16331 int
16332 main ()
16333 {
16334 return maillock ();
16335 ;
16336 return 0;
16337 }
16338 _ACEOF
16339 rm -f conftest.$ac_objext conftest$ac_exeext
16340 if { (ac_try="$ac_link"
16341 case "(($ac_try" in
16342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16343 *) ac_try_echo=$ac_try;;
16344 esac
16345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16346 (eval "$ac_link") 2>conftest.er1
16347 ac_status=$?
16348 grep -v '^ *+' conftest.er1 >conftest.err
16349 rm -f conftest.er1
16350 cat conftest.err >&5
16351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352 (exit $ac_status); } &&
16353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16354 { (case "(($ac_try" in
16355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16356 *) ac_try_echo=$ac_try;;
16357 esac
16358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16359 (eval "$ac_try") 2>&5
16360 ac_status=$?
16361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362 (exit $ac_status); }; } &&
16363 { ac_try='test -s conftest$ac_exeext'
16364 { (case "(($ac_try" in
16365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16366 *) ac_try_echo=$ac_try;;
16367 esac
16368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16369 (eval "$ac_try") 2>&5
16370 ac_status=$?
16371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372 (exit $ac_status); }; }; then
16373 ac_cv_lib_mail_maillock=yes
16374 else
16375 echo "$as_me: failed program was:" >&5
16376 sed 's/^/| /' conftest.$ac_ext >&5
16377
16378 ac_cv_lib_mail_maillock=no
16379 fi
16380
16381 rm -f core conftest.err conftest.$ac_objext \
16382 conftest$ac_exeext conftest.$ac_ext
16383 LIBS=$ac_check_lib_save_LIBS
16384 fi
16385 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
16386 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
16387 if test $ac_cv_lib_mail_maillock = yes; then
16388 cat >>confdefs.h <<_ACEOF
16389 #define HAVE_LIBMAIL 1
16390 _ACEOF
16391
16392 LIBS="-lmail $LIBS"
16393
16394 fi
16395
16396
16397 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
16398 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
16399 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
16400 echo $ECHO_N "(cached) $ECHO_C" >&6
16401 else
16402 ac_check_lib_save_LIBS=$LIBS
16403 LIBS="-llockfile $LIBS"
16404 cat >conftest.$ac_ext <<_ACEOF
16405 /* confdefs.h. */
16406 _ACEOF
16407 cat confdefs.h >>conftest.$ac_ext
16408 cat >>conftest.$ac_ext <<_ACEOF
16409 /* end confdefs.h. */
16410
16411 /* Override any GCC internal prototype to avoid an error.
16412 Use char because int might match the return type of a GCC
16413 builtin and then its argument prototype would still apply. */
16414 #ifdef __cplusplus
16415 extern "C"
16416 #endif
16417 char maillock ();
16418 int
16419 main ()
16420 {
16421 return maillock ();
16422 ;
16423 return 0;
16424 }
16425 _ACEOF
16426 rm -f conftest.$ac_objext conftest$ac_exeext
16427 if { (ac_try="$ac_link"
16428 case "(($ac_try" in
16429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16430 *) ac_try_echo=$ac_try;;
16431 esac
16432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16433 (eval "$ac_link") 2>conftest.er1
16434 ac_status=$?
16435 grep -v '^ *+' conftest.er1 >conftest.err
16436 rm -f conftest.er1
16437 cat conftest.err >&5
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); } &&
16440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16441 { (case "(($ac_try" in
16442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16443 *) ac_try_echo=$ac_try;;
16444 esac
16445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16446 (eval "$ac_try") 2>&5
16447 ac_status=$?
16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); }; } &&
16450 { ac_try='test -s conftest$ac_exeext'
16451 { (case "(($ac_try" in
16452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16453 *) ac_try_echo=$ac_try;;
16454 esac
16455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16456 (eval "$ac_try") 2>&5
16457 ac_status=$?
16458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459 (exit $ac_status); }; }; then
16460 ac_cv_lib_lockfile_maillock=yes
16461 else
16462 echo "$as_me: failed program was:" >&5
16463 sed 's/^/| /' conftest.$ac_ext >&5
16464
16465 ac_cv_lib_lockfile_maillock=no
16466 fi
16467
16468 rm -f core conftest.err conftest.$ac_objext \
16469 conftest$ac_exeext conftest.$ac_ext
16470 LIBS=$ac_check_lib_save_LIBS
16471 fi
16472 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
16473 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
16474 if test $ac_cv_lib_lockfile_maillock = yes; then
16475 cat >>confdefs.h <<_ACEOF
16476 #define HAVE_LIBLOCKFILE 1
16477 _ACEOF
16478
16479 LIBS="-llockfile $LIBS"
16480
16481 fi
16482
16483 # If we have the shared liblockfile, assume we must use it for mail
16484 # locking (e.g. Debian). If we couldn't link against liblockfile
16485 # (no liblockfile.a installed), ensure that we don't need to.
16486 if test "$ac_cv_lib_lockfile_maillock" = no; then
16487 # Extract the first word of "liblockfile.so", so it can be a program name with args.
16488 set dummy liblockfile.so; ac_word=$2
16489 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16491 if test "${ac_cv_prog_liblockfile+set}" = set; then
16492 echo $ECHO_N "(cached) $ECHO_C" >&6
16493 else
16494 if test -n "$liblockfile"; then
16495 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
16496 else
16497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16498 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
16499 for as_dir in $as_dummy
16500 do
16501 IFS=$as_save_IFS
16502 test -z "$as_dir" && as_dir=.
16503 for ac_exec_ext in '' $ac_executable_extensions; do
16504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
16505 ac_cv_prog_liblockfile="yes"
16506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16507 break 2
16508 fi
16509 done
16510 done
16511 IFS=$as_save_IFS
16512
16513 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
16514 fi
16515 fi
16516 liblockfile=$ac_cv_prog_liblockfile
16517 if test -n "$liblockfile"; then
16518 { echo "$as_me:$LINENO: result: $liblockfile" >&5
16519 echo "${ECHO_T}$liblockfile" >&6; }
16520 else
16521 { echo "$as_me:$LINENO: result: no" >&5
16522 echo "${ECHO_T}no" >&6; }
16523 fi
16524
16525
16526 if test $ac_cv_prog_liblockfile = yes; then
16527 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
16528 This probably means that movemail could lose mail.
16529 There may be a \`development' package to install containing liblockfile." >&5
16530 echo "$as_me: error: Shared liblockfile found but can't link against it.
16531 This probably means that movemail could lose mail.
16532 There may be a \`development' package to install containing liblockfile." >&2;}
16533 { (exit 1); exit 1; }; }
16534 else :
16535 fi
16536 fi
16537
16538 for ac_func in touchlock
16539 do
16540 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16541 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16542 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16543 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16544 echo $ECHO_N "(cached) $ECHO_C" >&6
16545 else
16546 cat >conftest.$ac_ext <<_ACEOF
16547 /* confdefs.h. */
16548 _ACEOF
16549 cat confdefs.h >>conftest.$ac_ext
16550 cat >>conftest.$ac_ext <<_ACEOF
16551 /* end confdefs.h. */
16552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16554 #define $ac_func innocuous_$ac_func
16555
16556 /* System header to define __stub macros and hopefully few prototypes,
16557 which can conflict with char $ac_func (); below.
16558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16559 <limits.h> exists even on freestanding compilers. */
16560
16561 #ifdef __STDC__
16562 # include <limits.h>
16563 #else
16564 # include <assert.h>
16565 #endif
16566
16567 #undef $ac_func
16568
16569 /* Override any GCC internal prototype to avoid an error.
16570 Use char because int might match the return type of a GCC
16571 builtin and then its argument prototype would still apply. */
16572 #ifdef __cplusplus
16573 extern "C"
16574 #endif
16575 char $ac_func ();
16576 /* The GNU C library defines this for functions which it implements
16577 to always fail with ENOSYS. Some functions are actually named
16578 something starting with __ and the normal name is an alias. */
16579 #if defined __stub_$ac_func || defined __stub___$ac_func
16580 choke me
16581 #endif
16582
16583 int
16584 main ()
16585 {
16586 return $ac_func ();
16587 ;
16588 return 0;
16589 }
16590 _ACEOF
16591 rm -f conftest.$ac_objext conftest$ac_exeext
16592 if { (ac_try="$ac_link"
16593 case "(($ac_try" in
16594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16595 *) ac_try_echo=$ac_try;;
16596 esac
16597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16598 (eval "$ac_link") 2>conftest.er1
16599 ac_status=$?
16600 grep -v '^ *+' conftest.er1 >conftest.err
16601 rm -f conftest.er1
16602 cat conftest.err >&5
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); } &&
16605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16606 { (case "(($ac_try" in
16607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16608 *) ac_try_echo=$ac_try;;
16609 esac
16610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16611 (eval "$ac_try") 2>&5
16612 ac_status=$?
16613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614 (exit $ac_status); }; } &&
16615 { ac_try='test -s conftest$ac_exeext'
16616 { (case "(($ac_try" in
16617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16618 *) ac_try_echo=$ac_try;;
16619 esac
16620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16621 (eval "$ac_try") 2>&5
16622 ac_status=$?
16623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624 (exit $ac_status); }; }; then
16625 eval "$as_ac_var=yes"
16626 else
16627 echo "$as_me: failed program was:" >&5
16628 sed 's/^/| /' conftest.$ac_ext >&5
16629
16630 eval "$as_ac_var=no"
16631 fi
16632
16633 rm -f core conftest.err conftest.$ac_objext \
16634 conftest$ac_exeext conftest.$ac_ext
16635 fi
16636 ac_res=`eval echo '${'$as_ac_var'}'`
16637 { echo "$as_me:$LINENO: result: $ac_res" >&5
16638 echo "${ECHO_T}$ac_res" >&6; }
16639 if test `eval echo '${'$as_ac_var'}'` = yes; then
16640 cat >>confdefs.h <<_ACEOF
16641 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16642 _ACEOF
16643
16644 fi
16645 done
16646
16647
16648 for ac_header in maillock.h
16649 do
16650 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16652 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16655 echo $ECHO_N "(cached) $ECHO_C" >&6
16656 fi
16657 ac_res=`eval echo '${'$as_ac_Header'}'`
16658 { echo "$as_me:$LINENO: result: $ac_res" >&5
16659 echo "${ECHO_T}$ac_res" >&6; }
16660 else
16661 # Is the header compilable?
16662 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16663 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16664 cat >conftest.$ac_ext <<_ACEOF
16665 /* confdefs.h. */
16666 _ACEOF
16667 cat confdefs.h >>conftest.$ac_ext
16668 cat >>conftest.$ac_ext <<_ACEOF
16669 /* end confdefs.h. */
16670 $ac_includes_default
16671 #include <$ac_header>
16672 _ACEOF
16673 rm -f conftest.$ac_objext
16674 if { (ac_try="$ac_compile"
16675 case "(($ac_try" in
16676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16677 *) ac_try_echo=$ac_try;;
16678 esac
16679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16680 (eval "$ac_compile") 2>conftest.er1
16681 ac_status=$?
16682 grep -v '^ *+' conftest.er1 >conftest.err
16683 rm -f conftest.er1
16684 cat conftest.err >&5
16685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686 (exit $ac_status); } &&
16687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16688 { (case "(($ac_try" in
16689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16690 *) ac_try_echo=$ac_try;;
16691 esac
16692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16693 (eval "$ac_try") 2>&5
16694 ac_status=$?
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); }; } &&
16697 { ac_try='test -s conftest.$ac_objext'
16698 { (case "(($ac_try" in
16699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16700 *) ac_try_echo=$ac_try;;
16701 esac
16702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16703 (eval "$ac_try") 2>&5
16704 ac_status=$?
16705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16706 (exit $ac_status); }; }; then
16707 ac_header_compiler=yes
16708 else
16709 echo "$as_me: failed program was:" >&5
16710 sed 's/^/| /' conftest.$ac_ext >&5
16711
16712 ac_header_compiler=no
16713 fi
16714
16715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16716 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16717 echo "${ECHO_T}$ac_header_compiler" >&6; }
16718
16719 # Is the header present?
16720 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16721 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16722 cat >conftest.$ac_ext <<_ACEOF
16723 /* confdefs.h. */
16724 _ACEOF
16725 cat confdefs.h >>conftest.$ac_ext
16726 cat >>conftest.$ac_ext <<_ACEOF
16727 /* end confdefs.h. */
16728 #include <$ac_header>
16729 _ACEOF
16730 if { (ac_try="$ac_cpp conftest.$ac_ext"
16731 case "(($ac_try" in
16732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16733 *) ac_try_echo=$ac_try;;
16734 esac
16735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16737 ac_status=$?
16738 grep -v '^ *+' conftest.er1 >conftest.err
16739 rm -f conftest.er1
16740 cat conftest.err >&5
16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); } >/dev/null; then
16743 if test -s conftest.err; then
16744 ac_cpp_err=$ac_c_preproc_warn_flag
16745 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16746 else
16747 ac_cpp_err=
16748 fi
16749 else
16750 ac_cpp_err=yes
16751 fi
16752 if test -z "$ac_cpp_err"; then
16753 ac_header_preproc=yes
16754 else
16755 echo "$as_me: failed program was:" >&5
16756 sed 's/^/| /' conftest.$ac_ext >&5
16757
16758 ac_header_preproc=no
16759 fi
16760
16761 rm -f conftest.err conftest.$ac_ext
16762 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16763 echo "${ECHO_T}$ac_header_preproc" >&6; }
16764
16765 # So? What about this header?
16766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16767 yes:no: )
16768 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16769 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16771 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16772 ac_header_preproc=yes
16773 ;;
16774 no:yes:* )
16775 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16776 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16777 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16778 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16779 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16780 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16781 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16782 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16784 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16785 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16786 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16787
16788 ;;
16789 esac
16790 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16793 echo $ECHO_N "(cached) $ECHO_C" >&6
16794 else
16795 eval "$as_ac_Header=\$ac_header_preproc"
16796 fi
16797 ac_res=`eval echo '${'$as_ac_Header'}'`
16798 { echo "$as_me:$LINENO: result: $ac_res" >&5
16799 echo "${ECHO_T}$ac_res" >&6; }
16800
16801 fi
16802 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16803 cat >>confdefs.h <<_ACEOF
16804 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16805 _ACEOF
16806
16807 fi
16808
16809 done
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881 for ac_func in gethostname getdomainname dup2 \
16882 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16883 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
16884 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16885 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16886 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16887 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16888 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16889 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
16890 do
16891 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16892 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16894 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16895 echo $ECHO_N "(cached) $ECHO_C" >&6
16896 else
16897 cat >conftest.$ac_ext <<_ACEOF
16898 /* confdefs.h. */
16899 _ACEOF
16900 cat confdefs.h >>conftest.$ac_ext
16901 cat >>conftest.$ac_ext <<_ACEOF
16902 /* end confdefs.h. */
16903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16905 #define $ac_func innocuous_$ac_func
16906
16907 /* System header to define __stub macros and hopefully few prototypes,
16908 which can conflict with char $ac_func (); below.
16909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16910 <limits.h> exists even on freestanding compilers. */
16911
16912 #ifdef __STDC__
16913 # include <limits.h>
16914 #else
16915 # include <assert.h>
16916 #endif
16917
16918 #undef $ac_func
16919
16920 /* Override any GCC internal prototype to avoid an error.
16921 Use char because int might match the return type of a GCC
16922 builtin and then its argument prototype would still apply. */
16923 #ifdef __cplusplus
16924 extern "C"
16925 #endif
16926 char $ac_func ();
16927 /* The GNU C library defines this for functions which it implements
16928 to always fail with ENOSYS. Some functions are actually named
16929 something starting with __ and the normal name is an alias. */
16930 #if defined __stub_$ac_func || defined __stub___$ac_func
16931 choke me
16932 #endif
16933
16934 int
16935 main ()
16936 {
16937 return $ac_func ();
16938 ;
16939 return 0;
16940 }
16941 _ACEOF
16942 rm -f conftest.$ac_objext conftest$ac_exeext
16943 if { (ac_try="$ac_link"
16944 case "(($ac_try" in
16945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16946 *) ac_try_echo=$ac_try;;
16947 esac
16948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16949 (eval "$ac_link") 2>conftest.er1
16950 ac_status=$?
16951 grep -v '^ *+' conftest.er1 >conftest.err
16952 rm -f conftest.er1
16953 cat conftest.err >&5
16954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955 (exit $ac_status); } &&
16956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16957 { (case "(($ac_try" in
16958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16959 *) ac_try_echo=$ac_try;;
16960 esac
16961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16962 (eval "$ac_try") 2>&5
16963 ac_status=$?
16964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965 (exit $ac_status); }; } &&
16966 { ac_try='test -s conftest$ac_exeext'
16967 { (case "(($ac_try" in
16968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16969 *) ac_try_echo=$ac_try;;
16970 esac
16971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16972 (eval "$ac_try") 2>&5
16973 ac_status=$?
16974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975 (exit $ac_status); }; }; then
16976 eval "$as_ac_var=yes"
16977 else
16978 echo "$as_me: failed program was:" >&5
16979 sed 's/^/| /' conftest.$ac_ext >&5
16980
16981 eval "$as_ac_var=no"
16982 fi
16983
16984 rm -f core conftest.err conftest.$ac_objext \
16985 conftest$ac_exeext conftest.$ac_ext
16986 fi
16987 ac_res=`eval echo '${'$as_ac_var'}'`
16988 { echo "$as_me:$LINENO: result: $ac_res" >&5
16989 echo "${ECHO_T}$ac_res" >&6; }
16990 if test `eval echo '${'$as_ac_var'}'` = yes; then
16991 cat >>confdefs.h <<_ACEOF
16992 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16993 _ACEOF
16994
16995 fi
16996 done
16997
16998
16999
17000 for ac_header in sys/un.h
17001 do
17002 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17004 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17007 echo $ECHO_N "(cached) $ECHO_C" >&6
17008 fi
17009 ac_res=`eval echo '${'$as_ac_Header'}'`
17010 { echo "$as_me:$LINENO: result: $ac_res" >&5
17011 echo "${ECHO_T}$ac_res" >&6; }
17012 else
17013 # Is the header compilable?
17014 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17015 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17016 cat >conftest.$ac_ext <<_ACEOF
17017 /* confdefs.h. */
17018 _ACEOF
17019 cat confdefs.h >>conftest.$ac_ext
17020 cat >>conftest.$ac_ext <<_ACEOF
17021 /* end confdefs.h. */
17022 $ac_includes_default
17023 #include <$ac_header>
17024 _ACEOF
17025 rm -f conftest.$ac_objext
17026 if { (ac_try="$ac_compile"
17027 case "(($ac_try" in
17028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17029 *) ac_try_echo=$ac_try;;
17030 esac
17031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17032 (eval "$ac_compile") 2>conftest.er1
17033 ac_status=$?
17034 grep -v '^ *+' conftest.er1 >conftest.err
17035 rm -f conftest.er1
17036 cat conftest.err >&5
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); } &&
17039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17040 { (case "(($ac_try" in
17041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17042 *) ac_try_echo=$ac_try;;
17043 esac
17044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17045 (eval "$ac_try") 2>&5
17046 ac_status=$?
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); }; } &&
17049 { ac_try='test -s conftest.$ac_objext'
17050 { (case "(($ac_try" in
17051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17052 *) ac_try_echo=$ac_try;;
17053 esac
17054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17055 (eval "$ac_try") 2>&5
17056 ac_status=$?
17057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058 (exit $ac_status); }; }; then
17059 ac_header_compiler=yes
17060 else
17061 echo "$as_me: failed program was:" >&5
17062 sed 's/^/| /' conftest.$ac_ext >&5
17063
17064 ac_header_compiler=no
17065 fi
17066
17067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17068 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17069 echo "${ECHO_T}$ac_header_compiler" >&6; }
17070
17071 # Is the header present?
17072 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17073 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17074 cat >conftest.$ac_ext <<_ACEOF
17075 /* confdefs.h. */
17076 _ACEOF
17077 cat confdefs.h >>conftest.$ac_ext
17078 cat >>conftest.$ac_ext <<_ACEOF
17079 /* end confdefs.h. */
17080 #include <$ac_header>
17081 _ACEOF
17082 if { (ac_try="$ac_cpp conftest.$ac_ext"
17083 case "(($ac_try" in
17084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17085 *) ac_try_echo=$ac_try;;
17086 esac
17087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17088 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17089 ac_status=$?
17090 grep -v '^ *+' conftest.er1 >conftest.err
17091 rm -f conftest.er1
17092 cat conftest.err >&5
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); } >/dev/null; then
17095 if test -s conftest.err; then
17096 ac_cpp_err=$ac_c_preproc_warn_flag
17097 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17098 else
17099 ac_cpp_err=
17100 fi
17101 else
17102 ac_cpp_err=yes
17103 fi
17104 if test -z "$ac_cpp_err"; then
17105 ac_header_preproc=yes
17106 else
17107 echo "$as_me: failed program was:" >&5
17108 sed 's/^/| /' conftest.$ac_ext >&5
17109
17110 ac_header_preproc=no
17111 fi
17112
17113 rm -f conftest.err conftest.$ac_ext
17114 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17115 echo "${ECHO_T}$ac_header_preproc" >&6; }
17116
17117 # So? What about this header?
17118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17119 yes:no: )
17120 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17121 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17123 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17124 ac_header_preproc=yes
17125 ;;
17126 no:yes:* )
17127 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17128 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17129 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17130 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17131 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17132 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17133 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17134 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17136 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17137 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17138 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17139
17140 ;;
17141 esac
17142 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17145 echo $ECHO_N "(cached) $ECHO_C" >&6
17146 else
17147 eval "$as_ac_Header=\$ac_header_preproc"
17148 fi
17149 ac_res=`eval echo '${'$as_ac_Header'}'`
17150 { echo "$as_me:$LINENO: result: $ac_res" >&5
17151 echo "${ECHO_T}$ac_res" >&6; }
17152
17153 fi
17154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17155 cat >>confdefs.h <<_ACEOF
17156 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17157 _ACEOF
17158
17159 fi
17160
17161 done
17162
17163
17164
17165
17166
17167 for ac_header in stdlib.h sys/time.h unistd.h
17168 do
17169 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17171 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17174 echo $ECHO_N "(cached) $ECHO_C" >&6
17175 fi
17176 ac_res=`eval echo '${'$as_ac_Header'}'`
17177 { echo "$as_me:$LINENO: result: $ac_res" >&5
17178 echo "${ECHO_T}$ac_res" >&6; }
17179 else
17180 # Is the header compilable?
17181 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17182 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17183 cat >conftest.$ac_ext <<_ACEOF
17184 /* confdefs.h. */
17185 _ACEOF
17186 cat confdefs.h >>conftest.$ac_ext
17187 cat >>conftest.$ac_ext <<_ACEOF
17188 /* end confdefs.h. */
17189 $ac_includes_default
17190 #include <$ac_header>
17191 _ACEOF
17192 rm -f conftest.$ac_objext
17193 if { (ac_try="$ac_compile"
17194 case "(($ac_try" in
17195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17196 *) ac_try_echo=$ac_try;;
17197 esac
17198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17199 (eval "$ac_compile") 2>conftest.er1
17200 ac_status=$?
17201 grep -v '^ *+' conftest.er1 >conftest.err
17202 rm -f conftest.er1
17203 cat conftest.err >&5
17204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); } &&
17206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17207 { (case "(($ac_try" in
17208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17209 *) ac_try_echo=$ac_try;;
17210 esac
17211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17212 (eval "$ac_try") 2>&5
17213 ac_status=$?
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); }; } &&
17216 { ac_try='test -s conftest.$ac_objext'
17217 { (case "(($ac_try" in
17218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17219 *) ac_try_echo=$ac_try;;
17220 esac
17221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17222 (eval "$ac_try") 2>&5
17223 ac_status=$?
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); }; }; then
17226 ac_header_compiler=yes
17227 else
17228 echo "$as_me: failed program was:" >&5
17229 sed 's/^/| /' conftest.$ac_ext >&5
17230
17231 ac_header_compiler=no
17232 fi
17233
17234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17235 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17236 echo "${ECHO_T}$ac_header_compiler" >&6; }
17237
17238 # Is the header present?
17239 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17240 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17241 cat >conftest.$ac_ext <<_ACEOF
17242 /* confdefs.h. */
17243 _ACEOF
17244 cat confdefs.h >>conftest.$ac_ext
17245 cat >>conftest.$ac_ext <<_ACEOF
17246 /* end confdefs.h. */
17247 #include <$ac_header>
17248 _ACEOF
17249 if { (ac_try="$ac_cpp conftest.$ac_ext"
17250 case "(($ac_try" in
17251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17252 *) ac_try_echo=$ac_try;;
17253 esac
17254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17256 ac_status=$?
17257 grep -v '^ *+' conftest.er1 >conftest.err
17258 rm -f conftest.er1
17259 cat conftest.err >&5
17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); } >/dev/null; then
17262 if test -s conftest.err; then
17263 ac_cpp_err=$ac_c_preproc_warn_flag
17264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17265 else
17266 ac_cpp_err=
17267 fi
17268 else
17269 ac_cpp_err=yes
17270 fi
17271 if test -z "$ac_cpp_err"; then
17272 ac_header_preproc=yes
17273 else
17274 echo "$as_me: failed program was:" >&5
17275 sed 's/^/| /' conftest.$ac_ext >&5
17276
17277 ac_header_preproc=no
17278 fi
17279
17280 rm -f conftest.err conftest.$ac_ext
17281 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17282 echo "${ECHO_T}$ac_header_preproc" >&6; }
17283
17284 # So? What about this header?
17285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17286 yes:no: )
17287 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17288 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17290 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17291 ac_header_preproc=yes
17292 ;;
17293 no:yes:* )
17294 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17296 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17297 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17298 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17299 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17300 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17301 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17304 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17305 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17306
17307 ;;
17308 esac
17309 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17312 echo $ECHO_N "(cached) $ECHO_C" >&6
17313 else
17314 eval "$as_ac_Header=\$ac_header_preproc"
17315 fi
17316 ac_res=`eval echo '${'$as_ac_Header'}'`
17317 { echo "$as_me:$LINENO: result: $ac_res" >&5
17318 echo "${ECHO_T}$ac_res" >&6; }
17319
17320 fi
17321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17322 cat >>confdefs.h <<_ACEOF
17323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17324 _ACEOF
17325
17326 fi
17327
17328 done
17329
17330
17331 for ac_func in alarm
17332 do
17333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17334 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17336 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17337 echo $ECHO_N "(cached) $ECHO_C" >&6
17338 else
17339 cat >conftest.$ac_ext <<_ACEOF
17340 /* confdefs.h. */
17341 _ACEOF
17342 cat confdefs.h >>conftest.$ac_ext
17343 cat >>conftest.$ac_ext <<_ACEOF
17344 /* end confdefs.h. */
17345 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17347 #define $ac_func innocuous_$ac_func
17348
17349 /* System header to define __stub macros and hopefully few prototypes,
17350 which can conflict with char $ac_func (); below.
17351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17352 <limits.h> exists even on freestanding compilers. */
17353
17354 #ifdef __STDC__
17355 # include <limits.h>
17356 #else
17357 # include <assert.h>
17358 #endif
17359
17360 #undef $ac_func
17361
17362 /* Override any GCC internal prototype to avoid an error.
17363 Use char because int might match the return type of a GCC
17364 builtin and then its argument prototype would still apply. */
17365 #ifdef __cplusplus
17366 extern "C"
17367 #endif
17368 char $ac_func ();
17369 /* The GNU C library defines this for functions which it implements
17370 to always fail with ENOSYS. Some functions are actually named
17371 something starting with __ and the normal name is an alias. */
17372 #if defined __stub_$ac_func || defined __stub___$ac_func
17373 choke me
17374 #endif
17375
17376 int
17377 main ()
17378 {
17379 return $ac_func ();
17380 ;
17381 return 0;
17382 }
17383 _ACEOF
17384 rm -f conftest.$ac_objext conftest$ac_exeext
17385 if { (ac_try="$ac_link"
17386 case "(($ac_try" in
17387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17388 *) ac_try_echo=$ac_try;;
17389 esac
17390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17391 (eval "$ac_link") 2>conftest.er1
17392 ac_status=$?
17393 grep -v '^ *+' conftest.er1 >conftest.err
17394 rm -f conftest.er1
17395 cat conftest.err >&5
17396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397 (exit $ac_status); } &&
17398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17399 { (case "(($ac_try" in
17400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17401 *) ac_try_echo=$ac_try;;
17402 esac
17403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17404 (eval "$ac_try") 2>&5
17405 ac_status=$?
17406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407 (exit $ac_status); }; } &&
17408 { ac_try='test -s conftest$ac_exeext'
17409 { (case "(($ac_try" in
17410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17411 *) ac_try_echo=$ac_try;;
17412 esac
17413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17414 (eval "$ac_try") 2>&5
17415 ac_status=$?
17416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417 (exit $ac_status); }; }; then
17418 eval "$as_ac_var=yes"
17419 else
17420 echo "$as_me: failed program was:" >&5
17421 sed 's/^/| /' conftest.$ac_ext >&5
17422
17423 eval "$as_ac_var=no"
17424 fi
17425
17426 rm -f core conftest.err conftest.$ac_objext \
17427 conftest$ac_exeext conftest.$ac_ext
17428 fi
17429 ac_res=`eval echo '${'$as_ac_var'}'`
17430 { echo "$as_me:$LINENO: result: $ac_res" >&5
17431 echo "${ECHO_T}$ac_res" >&6; }
17432 if test `eval echo '${'$as_ac_var'}'` = yes; then
17433 cat >>confdefs.h <<_ACEOF
17434 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17435 _ACEOF
17436
17437 fi
17438 done
17439
17440 { echo "$as_me:$LINENO: checking for working mktime" >&5
17441 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
17442 if test "${ac_cv_func_working_mktime+set}" = set; then
17443 echo $ECHO_N "(cached) $ECHO_C" >&6
17444 else
17445 if test "$cross_compiling" = yes; then
17446 ac_cv_func_working_mktime=no
17447 else
17448 cat >conftest.$ac_ext <<_ACEOF
17449 /* confdefs.h. */
17450 _ACEOF
17451 cat confdefs.h >>conftest.$ac_ext
17452 cat >>conftest.$ac_ext <<_ACEOF
17453 /* end confdefs.h. */
17454 /* Test program from Paul Eggert and Tony Leneis. */
17455 #if TIME_WITH_SYS_TIME
17456 # include <sys/time.h>
17457 # include <time.h>
17458 #else
17459 # if HAVE_SYS_TIME_H
17460 # include <sys/time.h>
17461 # else
17462 # include <time.h>
17463 # endif
17464 #endif
17465
17466 #if HAVE_STDLIB_H
17467 # include <stdlib.h>
17468 #endif
17469
17470 #if HAVE_UNISTD_H
17471 # include <unistd.h>
17472 #endif
17473
17474 #if !HAVE_ALARM
17475 # define alarm(X) /* empty */
17476 #endif
17477
17478 /* Work around redefinition to rpl_putenv by other config tests. */
17479 #undef putenv
17480
17481 static time_t time_t_max;
17482 static time_t time_t_min;
17483
17484 /* Values we'll use to set the TZ environment variable. */
17485 static char *tz_strings[] = {
17486 (char *) 0, "TZ=GMT0", "TZ=JST-9",
17487 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
17488 };
17489 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17490
17491 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17492 Based on a problem report from Andreas Jaeger. */
17493 static int
17494 spring_forward_gap ()
17495 {
17496 /* glibc (up to about 1998-10-07) failed this test. */
17497 struct tm tm;
17498
17499 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17500 instead of "TZ=America/Vancouver" in order to detect the bug even
17501 on systems that don't support the Olson extension, or don't have the
17502 full zoneinfo tables installed. */
17503 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17504
17505 tm.tm_year = 98;
17506 tm.tm_mon = 3;
17507 tm.tm_mday = 5;
17508 tm.tm_hour = 2;
17509 tm.tm_min = 0;
17510 tm.tm_sec = 0;
17511 tm.tm_isdst = -1;
17512 return mktime (&tm) != (time_t) -1;
17513 }
17514
17515 static int
17516 mktime_test1 (now)
17517 time_t now;
17518 {
17519 struct tm *lt;
17520 return ! (lt = localtime (&now)) || mktime (lt) == now;
17521 }
17522
17523 static int
17524 mktime_test (now)
17525 time_t now;
17526 {
17527 return (mktime_test1 (now)
17528 && mktime_test1 ((time_t) (time_t_max - now))
17529 && mktime_test1 ((time_t) (time_t_min + now)));
17530 }
17531
17532 static int
17533 irix_6_4_bug ()
17534 {
17535 /* Based on code from Ariel Faigon. */
17536 struct tm tm;
17537 tm.tm_year = 96;
17538 tm.tm_mon = 3;
17539 tm.tm_mday = 0;
17540 tm.tm_hour = 0;
17541 tm.tm_min = 0;
17542 tm.tm_sec = 0;
17543 tm.tm_isdst = -1;
17544 mktime (&tm);
17545 return tm.tm_mon == 2 && tm.tm_mday == 31;
17546 }
17547
17548 static int
17549 bigtime_test (j)
17550 int j;
17551 {
17552 struct tm tm;
17553 time_t now;
17554 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17555 now = mktime (&tm);
17556 if (now != (time_t) -1)
17557 {
17558 struct tm *lt = localtime (&now);
17559 if (! (lt
17560 && lt->tm_year == tm.tm_year
17561 && lt->tm_mon == tm.tm_mon
17562 && lt->tm_mday == tm.tm_mday
17563 && lt->tm_hour == tm.tm_hour
17564 && lt->tm_min == tm.tm_min
17565 && lt->tm_sec == tm.tm_sec
17566 && lt->tm_yday == tm.tm_yday
17567 && lt->tm_wday == tm.tm_wday
17568 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17569 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17570 return 0;
17571 }
17572 return 1;
17573 }
17574
17575 int
17576 main ()
17577 {
17578 time_t t, delta;
17579 int i, j;
17580
17581 /* This test makes some buggy mktime implementations loop.
17582 Give up after 60 seconds; a mktime slower than that
17583 isn't worth using anyway. */
17584 alarm (60);
17585
17586 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
17587 continue;
17588 time_t_max--;
17589 if ((time_t) -1 < 0)
17590 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
17591 continue;
17592 delta = time_t_max / 997; /* a suitable prime number */
17593 for (i = 0; i < N_STRINGS; i++)
17594 {
17595 if (tz_strings[i])
17596 putenv (tz_strings[i]);
17597
17598 for (t = 0; t <= time_t_max - delta; t += delta)
17599 if (! mktime_test (t))
17600 return 1;
17601 if (! (mktime_test ((time_t) 1)
17602 && mktime_test ((time_t) (60 * 60))
17603 && mktime_test ((time_t) (60 * 60 * 24))))
17604 return 1;
17605
17606 for (j = 1; 0 < j; j *= 2)
17607 if (! bigtime_test (j))
17608 return 1;
17609 if (! bigtime_test (j - 1))
17610 return 1;
17611 }
17612 return ! (irix_6_4_bug () && spring_forward_gap ());
17613 }
17614 _ACEOF
17615 rm -f conftest$ac_exeext
17616 if { (ac_try="$ac_link"
17617 case "(($ac_try" in
17618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17619 *) ac_try_echo=$ac_try;;
17620 esac
17621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17622 (eval "$ac_link") 2>&5
17623 ac_status=$?
17624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17626 { (case "(($ac_try" in
17627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17628 *) ac_try_echo=$ac_try;;
17629 esac
17630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17631 (eval "$ac_try") 2>&5
17632 ac_status=$?
17633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); }; }; then
17635 ac_cv_func_working_mktime=yes
17636 else
17637 echo "$as_me: program exited with status $ac_status" >&5
17638 echo "$as_me: failed program was:" >&5
17639 sed 's/^/| /' conftest.$ac_ext >&5
17640
17641 ( exit $ac_status )
17642 ac_cv_func_working_mktime=no
17643 fi
17644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17645 fi
17646
17647
17648 fi
17649 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
17650 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
17651 if test $ac_cv_func_working_mktime = no; then
17652 case " $LIBOBJS " in
17653 *" mktime.$ac_objext "* ) ;;
17654 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
17655 ;;
17656 esac
17657
17658 fi
17659
17660 if test "$ac_cv_func_working_mktime" = no; then
17661
17662 cat >>confdefs.h <<\_ACEOF
17663 #define BROKEN_MKTIME 1
17664 _ACEOF
17665
17666 fi
17667
17668 ac_have_func=no # yes means we've found a way to get the load average.
17669
17670 # Make sure getloadavg.c is where it belongs, at configure-time.
17671 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
17672 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
17673 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
17674 { (exit 1); exit 1; }; }
17675
17676 ac_save_LIBS=$LIBS
17677
17678 # Check for getloadavg, but be sure not to touch the cache variable.
17679 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
17680 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
17681 if test "${ac_cv_func_getloadavg+set}" = set; then
17682 echo $ECHO_N "(cached) $ECHO_C" >&6
17683 else
17684 cat >conftest.$ac_ext <<_ACEOF
17685 /* confdefs.h. */
17686 _ACEOF
17687 cat confdefs.h >>conftest.$ac_ext
17688 cat >>conftest.$ac_ext <<_ACEOF
17689 /* end confdefs.h. */
17690 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
17691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17692 #define getloadavg innocuous_getloadavg
17693
17694 /* System header to define __stub macros and hopefully few prototypes,
17695 which can conflict with char getloadavg (); below.
17696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17697 <limits.h> exists even on freestanding compilers. */
17698
17699 #ifdef __STDC__
17700 # include <limits.h>
17701 #else
17702 # include <assert.h>
17703 #endif
17704
17705 #undef getloadavg
17706
17707 /* Override any GCC internal prototype to avoid an error.
17708 Use char because int might match the return type of a GCC
17709 builtin and then its argument prototype would still apply. */
17710 #ifdef __cplusplus
17711 extern "C"
17712 #endif
17713 char getloadavg ();
17714 /* The GNU C library defines this for functions which it implements
17715 to always fail with ENOSYS. Some functions are actually named
17716 something starting with __ and the normal name is an alias. */
17717 #if defined __stub_getloadavg || defined __stub___getloadavg
17718 choke me
17719 #endif
17720
17721 int
17722 main ()
17723 {
17724 return getloadavg ();
17725 ;
17726 return 0;
17727 }
17728 _ACEOF
17729 rm -f conftest.$ac_objext conftest$ac_exeext
17730 if { (ac_try="$ac_link"
17731 case "(($ac_try" in
17732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17733 *) ac_try_echo=$ac_try;;
17734 esac
17735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17736 (eval "$ac_link") 2>conftest.er1
17737 ac_status=$?
17738 grep -v '^ *+' conftest.er1 >conftest.err
17739 rm -f conftest.er1
17740 cat conftest.err >&5
17741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742 (exit $ac_status); } &&
17743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17744 { (case "(($ac_try" in
17745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17746 *) ac_try_echo=$ac_try;;
17747 esac
17748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17749 (eval "$ac_try") 2>&5
17750 ac_status=$?
17751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); }; } &&
17753 { ac_try='test -s conftest$ac_exeext'
17754 { (case "(($ac_try" in
17755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17756 *) ac_try_echo=$ac_try;;
17757 esac
17758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17759 (eval "$ac_try") 2>&5
17760 ac_status=$?
17761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762 (exit $ac_status); }; }; then
17763 ac_cv_func_getloadavg=yes
17764 else
17765 echo "$as_me: failed program was:" >&5
17766 sed 's/^/| /' conftest.$ac_ext >&5
17767
17768 ac_cv_func_getloadavg=no
17769 fi
17770
17771 rm -f core conftest.err conftest.$ac_objext \
17772 conftest$ac_exeext conftest.$ac_ext
17773 fi
17774 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
17775 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
17776 if test $ac_cv_func_getloadavg = yes; then
17777 exit 0
17778 else
17779 exit 1
17780 fi
17781 ) && ac_have_func=yes
17782
17783 # On HPUX9, an unprivileged user can get load averages through this function.
17784
17785 for ac_func in pstat_getdynamic
17786 do
17787 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17788 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17789 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17790 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17791 echo $ECHO_N "(cached) $ECHO_C" >&6
17792 else
17793 cat >conftest.$ac_ext <<_ACEOF
17794 /* confdefs.h. */
17795 _ACEOF
17796 cat confdefs.h >>conftest.$ac_ext
17797 cat >>conftest.$ac_ext <<_ACEOF
17798 /* end confdefs.h. */
17799 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17801 #define $ac_func innocuous_$ac_func
17802
17803 /* System header to define __stub macros and hopefully few prototypes,
17804 which can conflict with char $ac_func (); below.
17805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17806 <limits.h> exists even on freestanding compilers. */
17807
17808 #ifdef __STDC__
17809 # include <limits.h>
17810 #else
17811 # include <assert.h>
17812 #endif
17813
17814 #undef $ac_func
17815
17816 /* Override any GCC internal prototype to avoid an error.
17817 Use char because int might match the return type of a GCC
17818 builtin and then its argument prototype would still apply. */
17819 #ifdef __cplusplus
17820 extern "C"
17821 #endif
17822 char $ac_func ();
17823 /* The GNU C library defines this for functions which it implements
17824 to always fail with ENOSYS. Some functions are actually named
17825 something starting with __ and the normal name is an alias. */
17826 #if defined __stub_$ac_func || defined __stub___$ac_func
17827 choke me
17828 #endif
17829
17830 int
17831 main ()
17832 {
17833 return $ac_func ();
17834 ;
17835 return 0;
17836 }
17837 _ACEOF
17838 rm -f conftest.$ac_objext conftest$ac_exeext
17839 if { (ac_try="$ac_link"
17840 case "(($ac_try" in
17841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17842 *) ac_try_echo=$ac_try;;
17843 esac
17844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17845 (eval "$ac_link") 2>conftest.er1
17846 ac_status=$?
17847 grep -v '^ *+' conftest.er1 >conftest.err
17848 rm -f conftest.er1
17849 cat conftest.err >&5
17850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851 (exit $ac_status); } &&
17852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17853 { (case "(($ac_try" in
17854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17855 *) ac_try_echo=$ac_try;;
17856 esac
17857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17858 (eval "$ac_try") 2>&5
17859 ac_status=$?
17860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); }; } &&
17862 { ac_try='test -s conftest$ac_exeext'
17863 { (case "(($ac_try" in
17864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17865 *) ac_try_echo=$ac_try;;
17866 esac
17867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17868 (eval "$ac_try") 2>&5
17869 ac_status=$?
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); }; }; then
17872 eval "$as_ac_var=yes"
17873 else
17874 echo "$as_me: failed program was:" >&5
17875 sed 's/^/| /' conftest.$ac_ext >&5
17876
17877 eval "$as_ac_var=no"
17878 fi
17879
17880 rm -f core conftest.err conftest.$ac_objext \
17881 conftest$ac_exeext conftest.$ac_ext
17882 fi
17883 ac_res=`eval echo '${'$as_ac_var'}'`
17884 { echo "$as_me:$LINENO: result: $ac_res" >&5
17885 echo "${ECHO_T}$ac_res" >&6; }
17886 if test `eval echo '${'$as_ac_var'}'` = yes; then
17887 cat >>confdefs.h <<_ACEOF
17888 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17889 _ACEOF
17890
17891 fi
17892 done
17893
17894
17895 # Solaris has libkstat which does not require root.
17896
17897 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17898 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
17899 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17900 echo $ECHO_N "(cached) $ECHO_C" >&6
17901 else
17902 ac_check_lib_save_LIBS=$LIBS
17903 LIBS="-lkstat $LIBS"
17904 cat >conftest.$ac_ext <<_ACEOF
17905 /* confdefs.h. */
17906 _ACEOF
17907 cat confdefs.h >>conftest.$ac_ext
17908 cat >>conftest.$ac_ext <<_ACEOF
17909 /* end confdefs.h. */
17910
17911 /* Override any GCC internal prototype to avoid an error.
17912 Use char because int might match the return type of a GCC
17913 builtin and then its argument prototype would still apply. */
17914 #ifdef __cplusplus
17915 extern "C"
17916 #endif
17917 char kstat_open ();
17918 int
17919 main ()
17920 {
17921 return kstat_open ();
17922 ;
17923 return 0;
17924 }
17925 _ACEOF
17926 rm -f conftest.$ac_objext conftest$ac_exeext
17927 if { (ac_try="$ac_link"
17928 case "(($ac_try" in
17929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17930 *) ac_try_echo=$ac_try;;
17931 esac
17932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17933 (eval "$ac_link") 2>conftest.er1
17934 ac_status=$?
17935 grep -v '^ *+' conftest.er1 >conftest.err
17936 rm -f conftest.er1
17937 cat conftest.err >&5
17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); } &&
17940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17941 { (case "(($ac_try" in
17942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17943 *) ac_try_echo=$ac_try;;
17944 esac
17945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17946 (eval "$ac_try") 2>&5
17947 ac_status=$?
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); }; } &&
17950 { ac_try='test -s conftest$ac_exeext'
17951 { (case "(($ac_try" in
17952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17953 *) ac_try_echo=$ac_try;;
17954 esac
17955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17956 (eval "$ac_try") 2>&5
17957 ac_status=$?
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); }; }; then
17960 ac_cv_lib_kstat_kstat_open=yes
17961 else
17962 echo "$as_me: failed program was:" >&5
17963 sed 's/^/| /' conftest.$ac_ext >&5
17964
17965 ac_cv_lib_kstat_kstat_open=no
17966 fi
17967
17968 rm -f core conftest.err conftest.$ac_objext \
17969 conftest$ac_exeext conftest.$ac_ext
17970 LIBS=$ac_check_lib_save_LIBS
17971 fi
17972 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17973 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17974 if test $ac_cv_lib_kstat_kstat_open = yes; then
17975 cat >>confdefs.h <<_ACEOF
17976 #define HAVE_LIBKSTAT 1
17977 _ACEOF
17978
17979 LIBS="-lkstat $LIBS"
17980
17981 fi
17982
17983 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17984
17985 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17986 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17987 # to get the right answer into the cache.
17988 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17989 if test $ac_have_func = no; then
17990 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17991 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
17992 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17993 echo $ECHO_N "(cached) $ECHO_C" >&6
17994 else
17995 ac_check_lib_save_LIBS=$LIBS
17996 LIBS="-lelf $LIBS"
17997 cat >conftest.$ac_ext <<_ACEOF
17998 /* confdefs.h. */
17999 _ACEOF
18000 cat confdefs.h >>conftest.$ac_ext
18001 cat >>conftest.$ac_ext <<_ACEOF
18002 /* end confdefs.h. */
18003
18004 /* Override any GCC internal prototype to avoid an error.
18005 Use char because int might match the return type of a GCC
18006 builtin and then its argument prototype would still apply. */
18007 #ifdef __cplusplus
18008 extern "C"
18009 #endif
18010 char elf_begin ();
18011 int
18012 main ()
18013 {
18014 return elf_begin ();
18015 ;
18016 return 0;
18017 }
18018 _ACEOF
18019 rm -f conftest.$ac_objext conftest$ac_exeext
18020 if { (ac_try="$ac_link"
18021 case "(($ac_try" in
18022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18023 *) ac_try_echo=$ac_try;;
18024 esac
18025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18026 (eval "$ac_link") 2>conftest.er1
18027 ac_status=$?
18028 grep -v '^ *+' conftest.er1 >conftest.err
18029 rm -f conftest.er1
18030 cat conftest.err >&5
18031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032 (exit $ac_status); } &&
18033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18034 { (case "(($ac_try" in
18035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18036 *) ac_try_echo=$ac_try;;
18037 esac
18038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18039 (eval "$ac_try") 2>&5
18040 ac_status=$?
18041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042 (exit $ac_status); }; } &&
18043 { ac_try='test -s conftest$ac_exeext'
18044 { (case "(($ac_try" in
18045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18046 *) ac_try_echo=$ac_try;;
18047 esac
18048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18049 (eval "$ac_try") 2>&5
18050 ac_status=$?
18051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052 (exit $ac_status); }; }; then
18053 ac_cv_lib_elf_elf_begin=yes
18054 else
18055 echo "$as_me: failed program was:" >&5
18056 sed 's/^/| /' conftest.$ac_ext >&5
18057
18058 ac_cv_lib_elf_elf_begin=no
18059 fi
18060
18061 rm -f core conftest.err conftest.$ac_objext \
18062 conftest$ac_exeext conftest.$ac_ext
18063 LIBS=$ac_check_lib_save_LIBS
18064 fi
18065 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18066 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
18067 if test $ac_cv_lib_elf_elf_begin = yes; then
18068 LIBS="-lelf $LIBS"
18069 fi
18070
18071 fi
18072 if test $ac_have_func = no; then
18073 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
18074 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
18075 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18076 echo $ECHO_N "(cached) $ECHO_C" >&6
18077 else
18078 ac_check_lib_save_LIBS=$LIBS
18079 LIBS="-lkvm $LIBS"
18080 cat >conftest.$ac_ext <<_ACEOF
18081 /* confdefs.h. */
18082 _ACEOF
18083 cat confdefs.h >>conftest.$ac_ext
18084 cat >>conftest.$ac_ext <<_ACEOF
18085 /* end confdefs.h. */
18086
18087 /* Override any GCC internal prototype to avoid an error.
18088 Use char because int might match the return type of a GCC
18089 builtin and then its argument prototype would still apply. */
18090 #ifdef __cplusplus
18091 extern "C"
18092 #endif
18093 char kvm_open ();
18094 int
18095 main ()
18096 {
18097 return kvm_open ();
18098 ;
18099 return 0;
18100 }
18101 _ACEOF
18102 rm -f conftest.$ac_objext conftest$ac_exeext
18103 if { (ac_try="$ac_link"
18104 case "(($ac_try" in
18105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18106 *) ac_try_echo=$ac_try;;
18107 esac
18108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18109 (eval "$ac_link") 2>conftest.er1
18110 ac_status=$?
18111 grep -v '^ *+' conftest.er1 >conftest.err
18112 rm -f conftest.er1
18113 cat conftest.err >&5
18114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115 (exit $ac_status); } &&
18116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18117 { (case "(($ac_try" in
18118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18119 *) ac_try_echo=$ac_try;;
18120 esac
18121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18122 (eval "$ac_try") 2>&5
18123 ac_status=$?
18124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125 (exit $ac_status); }; } &&
18126 { ac_try='test -s conftest$ac_exeext'
18127 { (case "(($ac_try" in
18128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18129 *) ac_try_echo=$ac_try;;
18130 esac
18131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18132 (eval "$ac_try") 2>&5
18133 ac_status=$?
18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135 (exit $ac_status); }; }; then
18136 ac_cv_lib_kvm_kvm_open=yes
18137 else
18138 echo "$as_me: failed program was:" >&5
18139 sed 's/^/| /' conftest.$ac_ext >&5
18140
18141 ac_cv_lib_kvm_kvm_open=no
18142 fi
18143
18144 rm -f core conftest.err conftest.$ac_objext \
18145 conftest$ac_exeext conftest.$ac_ext
18146 LIBS=$ac_check_lib_save_LIBS
18147 fi
18148 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
18149 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
18150 if test $ac_cv_lib_kvm_kvm_open = yes; then
18151 LIBS="-lkvm $LIBS"
18152 fi
18153
18154 # Check for the 4.4BSD definition of getloadavg.
18155 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
18156 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
18157 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18158 echo $ECHO_N "(cached) $ECHO_C" >&6
18159 else
18160 ac_check_lib_save_LIBS=$LIBS
18161 LIBS="-lutil $LIBS"
18162 cat >conftest.$ac_ext <<_ACEOF
18163 /* confdefs.h. */
18164 _ACEOF
18165 cat confdefs.h >>conftest.$ac_ext
18166 cat >>conftest.$ac_ext <<_ACEOF
18167 /* end confdefs.h. */
18168
18169 /* Override any GCC internal prototype to avoid an error.
18170 Use char because int might match the return type of a GCC
18171 builtin and then its argument prototype would still apply. */
18172 #ifdef __cplusplus
18173 extern "C"
18174 #endif
18175 char getloadavg ();
18176 int
18177 main ()
18178 {
18179 return getloadavg ();
18180 ;
18181 return 0;
18182 }
18183 _ACEOF
18184 rm -f conftest.$ac_objext conftest$ac_exeext
18185 if { (ac_try="$ac_link"
18186 case "(($ac_try" in
18187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18188 *) ac_try_echo=$ac_try;;
18189 esac
18190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18191 (eval "$ac_link") 2>conftest.er1
18192 ac_status=$?
18193 grep -v '^ *+' conftest.er1 >conftest.err
18194 rm -f conftest.er1
18195 cat conftest.err >&5
18196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197 (exit $ac_status); } &&
18198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18199 { (case "(($ac_try" in
18200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18201 *) ac_try_echo=$ac_try;;
18202 esac
18203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18204 (eval "$ac_try") 2>&5
18205 ac_status=$?
18206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207 (exit $ac_status); }; } &&
18208 { ac_try='test -s conftest$ac_exeext'
18209 { (case "(($ac_try" in
18210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18211 *) ac_try_echo=$ac_try;;
18212 esac
18213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18214 (eval "$ac_try") 2>&5
18215 ac_status=$?
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); }; }; then
18218 ac_cv_lib_util_getloadavg=yes
18219 else
18220 echo "$as_me: failed program was:" >&5
18221 sed 's/^/| /' conftest.$ac_ext >&5
18222
18223 ac_cv_lib_util_getloadavg=no
18224 fi
18225
18226 rm -f core conftest.err conftest.$ac_objext \
18227 conftest$ac_exeext conftest.$ac_ext
18228 LIBS=$ac_check_lib_save_LIBS
18229 fi
18230 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
18231 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
18232 if test $ac_cv_lib_util_getloadavg = yes; then
18233 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18234 fi
18235
18236 fi
18237
18238 if test $ac_have_func = no; then
18239 # There is a commonly available library for RS/6000 AIX.
18240 # Since it is not a standard part of AIX, it might be installed locally.
18241 ac_getloadavg_LIBS=$LIBS
18242 LIBS="-L/usr/local/lib $LIBS"
18243 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
18244 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
18245 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18246 echo $ECHO_N "(cached) $ECHO_C" >&6
18247 else
18248 ac_check_lib_save_LIBS=$LIBS
18249 LIBS="-lgetloadavg $LIBS"
18250 cat >conftest.$ac_ext <<_ACEOF
18251 /* confdefs.h. */
18252 _ACEOF
18253 cat confdefs.h >>conftest.$ac_ext
18254 cat >>conftest.$ac_ext <<_ACEOF
18255 /* end confdefs.h. */
18256
18257 /* Override any GCC internal prototype to avoid an error.
18258 Use char because int might match the return type of a GCC
18259 builtin and then its argument prototype would still apply. */
18260 #ifdef __cplusplus
18261 extern "C"
18262 #endif
18263 char getloadavg ();
18264 int
18265 main ()
18266 {
18267 return getloadavg ();
18268 ;
18269 return 0;
18270 }
18271 _ACEOF
18272 rm -f conftest.$ac_objext conftest$ac_exeext
18273 if { (ac_try="$ac_link"
18274 case "(($ac_try" in
18275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18276 *) ac_try_echo=$ac_try;;
18277 esac
18278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18279 (eval "$ac_link") 2>conftest.er1
18280 ac_status=$?
18281 grep -v '^ *+' conftest.er1 >conftest.err
18282 rm -f conftest.er1
18283 cat conftest.err >&5
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); } &&
18286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18287 { (case "(($ac_try" in
18288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18289 *) ac_try_echo=$ac_try;;
18290 esac
18291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18292 (eval "$ac_try") 2>&5
18293 ac_status=$?
18294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295 (exit $ac_status); }; } &&
18296 { ac_try='test -s conftest$ac_exeext'
18297 { (case "(($ac_try" in
18298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18299 *) ac_try_echo=$ac_try;;
18300 esac
18301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18302 (eval "$ac_try") 2>&5
18303 ac_status=$?
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); }; }; then
18306 ac_cv_lib_getloadavg_getloadavg=yes
18307 else
18308 echo "$as_me: failed program was:" >&5
18309 sed 's/^/| /' conftest.$ac_ext >&5
18310
18311 ac_cv_lib_getloadavg_getloadavg=no
18312 fi
18313
18314 rm -f core conftest.err conftest.$ac_objext \
18315 conftest$ac_exeext conftest.$ac_ext
18316 LIBS=$ac_check_lib_save_LIBS
18317 fi
18318 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18319 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
18320 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
18321 LIBS="-lgetloadavg $LIBS"
18322 else
18323 LIBS=$ac_getloadavg_LIBS
18324 fi
18325
18326 fi
18327
18328 # Make sure it is really in the library, if we think we found it,
18329 # otherwise set up the replacement function.
18330
18331 for ac_func in getloadavg
18332 do
18333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18334 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18336 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18337 echo $ECHO_N "(cached) $ECHO_C" >&6
18338 else
18339 cat >conftest.$ac_ext <<_ACEOF
18340 /* confdefs.h. */
18341 _ACEOF
18342 cat confdefs.h >>conftest.$ac_ext
18343 cat >>conftest.$ac_ext <<_ACEOF
18344 /* end confdefs.h. */
18345 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18347 #define $ac_func innocuous_$ac_func
18348
18349 /* System header to define __stub macros and hopefully few prototypes,
18350 which can conflict with char $ac_func (); below.
18351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18352 <limits.h> exists even on freestanding compilers. */
18353
18354 #ifdef __STDC__
18355 # include <limits.h>
18356 #else
18357 # include <assert.h>
18358 #endif
18359
18360 #undef $ac_func
18361
18362 /* Override any GCC internal prototype to avoid an error.
18363 Use char because int might match the return type of a GCC
18364 builtin and then its argument prototype would still apply. */
18365 #ifdef __cplusplus
18366 extern "C"
18367 #endif
18368 char $ac_func ();
18369 /* The GNU C library defines this for functions which it implements
18370 to always fail with ENOSYS. Some functions are actually named
18371 something starting with __ and the normal name is an alias. */
18372 #if defined __stub_$ac_func || defined __stub___$ac_func
18373 choke me
18374 #endif
18375
18376 int
18377 main ()
18378 {
18379 return $ac_func ();
18380 ;
18381 return 0;
18382 }
18383 _ACEOF
18384 rm -f conftest.$ac_objext conftest$ac_exeext
18385 if { (ac_try="$ac_link"
18386 case "(($ac_try" in
18387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18388 *) ac_try_echo=$ac_try;;
18389 esac
18390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18391 (eval "$ac_link") 2>conftest.er1
18392 ac_status=$?
18393 grep -v '^ *+' conftest.er1 >conftest.err
18394 rm -f conftest.er1
18395 cat conftest.err >&5
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); } &&
18398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18399 { (case "(($ac_try" in
18400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18401 *) ac_try_echo=$ac_try;;
18402 esac
18403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18404 (eval "$ac_try") 2>&5
18405 ac_status=$?
18406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407 (exit $ac_status); }; } &&
18408 { ac_try='test -s conftest$ac_exeext'
18409 { (case "(($ac_try" in
18410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18411 *) ac_try_echo=$ac_try;;
18412 esac
18413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18414 (eval "$ac_try") 2>&5
18415 ac_status=$?
18416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); }; }; then
18418 eval "$as_ac_var=yes"
18419 else
18420 echo "$as_me: failed program was:" >&5
18421 sed 's/^/| /' conftest.$ac_ext >&5
18422
18423 eval "$as_ac_var=no"
18424 fi
18425
18426 rm -f core conftest.err conftest.$ac_objext \
18427 conftest$ac_exeext conftest.$ac_ext
18428 fi
18429 ac_res=`eval echo '${'$as_ac_var'}'`
18430 { echo "$as_me:$LINENO: result: $ac_res" >&5
18431 echo "${ECHO_T}$ac_res" >&6; }
18432 if test `eval echo '${'$as_ac_var'}'` = yes; then
18433 cat >>confdefs.h <<_ACEOF
18434 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18435 _ACEOF
18436
18437 else
18438 case " $LIBOBJS " in
18439 *" getloadavg.$ac_objext "* ) ;;
18440 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
18441 ;;
18442 esac
18443
18444
18445 cat >>confdefs.h <<\_ACEOF
18446 #define C_GETLOADAVG 1
18447 _ACEOF
18448
18449 # Figure out what our getloadavg.c needs.
18450 ac_have_func=no
18451 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18452 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18453 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
18454 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18455 echo $ECHO_N "(cached) $ECHO_C" >&6
18456 fi
18457 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18458 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
18459 else
18460 # Is the header compilable?
18461 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
18462 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
18463 cat >conftest.$ac_ext <<_ACEOF
18464 /* confdefs.h. */
18465 _ACEOF
18466 cat confdefs.h >>conftest.$ac_ext
18467 cat >>conftest.$ac_ext <<_ACEOF
18468 /* end confdefs.h. */
18469 $ac_includes_default
18470 #include <sys/dg_sys_info.h>
18471 _ACEOF
18472 rm -f conftest.$ac_objext
18473 if { (ac_try="$ac_compile"
18474 case "(($ac_try" in
18475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18476 *) ac_try_echo=$ac_try;;
18477 esac
18478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18479 (eval "$ac_compile") 2>conftest.er1
18480 ac_status=$?
18481 grep -v '^ *+' conftest.er1 >conftest.err
18482 rm -f conftest.er1
18483 cat conftest.err >&5
18484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485 (exit $ac_status); } &&
18486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18487 { (case "(($ac_try" in
18488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18489 *) ac_try_echo=$ac_try;;
18490 esac
18491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18492 (eval "$ac_try") 2>&5
18493 ac_status=$?
18494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495 (exit $ac_status); }; } &&
18496 { ac_try='test -s conftest.$ac_objext'
18497 { (case "(($ac_try" in
18498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18499 *) ac_try_echo=$ac_try;;
18500 esac
18501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18502 (eval "$ac_try") 2>&5
18503 ac_status=$?
18504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505 (exit $ac_status); }; }; then
18506 ac_header_compiler=yes
18507 else
18508 echo "$as_me: failed program was:" >&5
18509 sed 's/^/| /' conftest.$ac_ext >&5
18510
18511 ac_header_compiler=no
18512 fi
18513
18514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18515 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18516 echo "${ECHO_T}$ac_header_compiler" >&6; }
18517
18518 # Is the header present?
18519 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
18520 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
18521 cat >conftest.$ac_ext <<_ACEOF
18522 /* confdefs.h. */
18523 _ACEOF
18524 cat confdefs.h >>conftest.$ac_ext
18525 cat >>conftest.$ac_ext <<_ACEOF
18526 /* end confdefs.h. */
18527 #include <sys/dg_sys_info.h>
18528 _ACEOF
18529 if { (ac_try="$ac_cpp conftest.$ac_ext"
18530 case "(($ac_try" in
18531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18532 *) ac_try_echo=$ac_try;;
18533 esac
18534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18535 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18536 ac_status=$?
18537 grep -v '^ *+' conftest.er1 >conftest.err
18538 rm -f conftest.er1
18539 cat conftest.err >&5
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); } >/dev/null; then
18542 if test -s conftest.err; then
18543 ac_cpp_err=$ac_c_preproc_warn_flag
18544 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18545 else
18546 ac_cpp_err=
18547 fi
18548 else
18549 ac_cpp_err=yes
18550 fi
18551 if test -z "$ac_cpp_err"; then
18552 ac_header_preproc=yes
18553 else
18554 echo "$as_me: failed program was:" >&5
18555 sed 's/^/| /' conftest.$ac_ext >&5
18556
18557 ac_header_preproc=no
18558 fi
18559
18560 rm -f conftest.err conftest.$ac_ext
18561 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18562 echo "${ECHO_T}$ac_header_preproc" >&6; }
18563
18564 # So? What about this header?
18565 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18566 yes:no: )
18567 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
18568 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18569 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
18570 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
18571 ac_header_preproc=yes
18572 ;;
18573 no:yes:* )
18574 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
18575 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
18576 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
18577 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
18578 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
18579 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
18580 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
18581 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
18582 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
18583 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
18584 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
18585 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
18586
18587 ;;
18588 esac
18589 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18590 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
18591 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18592 echo $ECHO_N "(cached) $ECHO_C" >&6
18593 else
18594 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
18595 fi
18596 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18597 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
18598
18599 fi
18600 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
18601 ac_have_func=yes
18602
18603 cat >>confdefs.h <<\_ACEOF
18604 #define DGUX 1
18605 _ACEOF
18606
18607
18608 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
18609 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
18610 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
18611 echo $ECHO_N "(cached) $ECHO_C" >&6
18612 else
18613 ac_check_lib_save_LIBS=$LIBS
18614 LIBS="-ldgc $LIBS"
18615 cat >conftest.$ac_ext <<_ACEOF
18616 /* confdefs.h. */
18617 _ACEOF
18618 cat confdefs.h >>conftest.$ac_ext
18619 cat >>conftest.$ac_ext <<_ACEOF
18620 /* end confdefs.h. */
18621
18622 /* Override any GCC internal prototype to avoid an error.
18623 Use char because int might match the return type of a GCC
18624 builtin and then its argument prototype would still apply. */
18625 #ifdef __cplusplus
18626 extern "C"
18627 #endif
18628 char dg_sys_info ();
18629 int
18630 main ()
18631 {
18632 return dg_sys_info ();
18633 ;
18634 return 0;
18635 }
18636 _ACEOF
18637 rm -f conftest.$ac_objext conftest$ac_exeext
18638 if { (ac_try="$ac_link"
18639 case "(($ac_try" in
18640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18641 *) ac_try_echo=$ac_try;;
18642 esac
18643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18644 (eval "$ac_link") 2>conftest.er1
18645 ac_status=$?
18646 grep -v '^ *+' conftest.er1 >conftest.err
18647 rm -f conftest.er1
18648 cat conftest.err >&5
18649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650 (exit $ac_status); } &&
18651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18652 { (case "(($ac_try" in
18653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18654 *) ac_try_echo=$ac_try;;
18655 esac
18656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18657 (eval "$ac_try") 2>&5
18658 ac_status=$?
18659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660 (exit $ac_status); }; } &&
18661 { ac_try='test -s conftest$ac_exeext'
18662 { (case "(($ac_try" in
18663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18664 *) ac_try_echo=$ac_try;;
18665 esac
18666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18667 (eval "$ac_try") 2>&5
18668 ac_status=$?
18669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670 (exit $ac_status); }; }; then
18671 ac_cv_lib_dgc_dg_sys_info=yes
18672 else
18673 echo "$as_me: failed program was:" >&5
18674 sed 's/^/| /' conftest.$ac_ext >&5
18675
18676 ac_cv_lib_dgc_dg_sys_info=no
18677 fi
18678
18679 rm -f core conftest.err conftest.$ac_objext \
18680 conftest$ac_exeext conftest.$ac_ext
18681 LIBS=$ac_check_lib_save_LIBS
18682 fi
18683 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
18684 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
18685 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
18686 cat >>confdefs.h <<_ACEOF
18687 #define HAVE_LIBDGC 1
18688 _ACEOF
18689
18690 LIBS="-ldgc $LIBS"
18691
18692 fi
18693
18694 fi
18695
18696
18697
18698 if test "${ac_cv_header_locale_h+set}" = set; then
18699 { echo "$as_me:$LINENO: checking for locale.h" >&5
18700 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
18701 if test "${ac_cv_header_locale_h+set}" = set; then
18702 echo $ECHO_N "(cached) $ECHO_C" >&6
18703 fi
18704 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18705 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
18706 else
18707 # Is the header compilable?
18708 { echo "$as_me:$LINENO: checking locale.h usability" >&5
18709 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
18710 cat >conftest.$ac_ext <<_ACEOF
18711 /* confdefs.h. */
18712 _ACEOF
18713 cat confdefs.h >>conftest.$ac_ext
18714 cat >>conftest.$ac_ext <<_ACEOF
18715 /* end confdefs.h. */
18716 $ac_includes_default
18717 #include <locale.h>
18718 _ACEOF
18719 rm -f conftest.$ac_objext
18720 if { (ac_try="$ac_compile"
18721 case "(($ac_try" in
18722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18723 *) ac_try_echo=$ac_try;;
18724 esac
18725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18726 (eval "$ac_compile") 2>conftest.er1
18727 ac_status=$?
18728 grep -v '^ *+' conftest.er1 >conftest.err
18729 rm -f conftest.er1
18730 cat conftest.err >&5
18731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732 (exit $ac_status); } &&
18733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18734 { (case "(($ac_try" in
18735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18736 *) ac_try_echo=$ac_try;;
18737 esac
18738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18739 (eval "$ac_try") 2>&5
18740 ac_status=$?
18741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18742 (exit $ac_status); }; } &&
18743 { ac_try='test -s conftest.$ac_objext'
18744 { (case "(($ac_try" in
18745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18746 *) ac_try_echo=$ac_try;;
18747 esac
18748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18749 (eval "$ac_try") 2>&5
18750 ac_status=$?
18751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18752 (exit $ac_status); }; }; then
18753 ac_header_compiler=yes
18754 else
18755 echo "$as_me: failed program was:" >&5
18756 sed 's/^/| /' conftest.$ac_ext >&5
18757
18758 ac_header_compiler=no
18759 fi
18760
18761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18762 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18763 echo "${ECHO_T}$ac_header_compiler" >&6; }
18764
18765 # Is the header present?
18766 { echo "$as_me:$LINENO: checking locale.h presence" >&5
18767 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
18768 cat >conftest.$ac_ext <<_ACEOF
18769 /* confdefs.h. */
18770 _ACEOF
18771 cat confdefs.h >>conftest.$ac_ext
18772 cat >>conftest.$ac_ext <<_ACEOF
18773 /* end confdefs.h. */
18774 #include <locale.h>
18775 _ACEOF
18776 if { (ac_try="$ac_cpp conftest.$ac_ext"
18777 case "(($ac_try" in
18778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18779 *) ac_try_echo=$ac_try;;
18780 esac
18781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18782 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18783 ac_status=$?
18784 grep -v '^ *+' conftest.er1 >conftest.err
18785 rm -f conftest.er1
18786 cat conftest.err >&5
18787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788 (exit $ac_status); } >/dev/null; then
18789 if test -s conftest.err; then
18790 ac_cpp_err=$ac_c_preproc_warn_flag
18791 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18792 else
18793 ac_cpp_err=
18794 fi
18795 else
18796 ac_cpp_err=yes
18797 fi
18798 if test -z "$ac_cpp_err"; then
18799 ac_header_preproc=yes
18800 else
18801 echo "$as_me: failed program was:" >&5
18802 sed 's/^/| /' conftest.$ac_ext >&5
18803
18804 ac_header_preproc=no
18805 fi
18806
18807 rm -f conftest.err conftest.$ac_ext
18808 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18809 echo "${ECHO_T}$ac_header_preproc" >&6; }
18810
18811 # So? What about this header?
18812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18813 yes:no: )
18814 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
18815 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18816 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
18817 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
18818 ac_header_preproc=yes
18819 ;;
18820 no:yes:* )
18821 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
18822 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
18823 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
18824 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
18825 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
18826 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
18827 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
18828 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
18829 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
18830 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
18831 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
18832 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
18833
18834 ;;
18835 esac
18836 { echo "$as_me:$LINENO: checking for locale.h" >&5
18837 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
18838 if test "${ac_cv_header_locale_h+set}" = set; then
18839 echo $ECHO_N "(cached) $ECHO_C" >&6
18840 else
18841 ac_cv_header_locale_h=$ac_header_preproc
18842 fi
18843 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18844 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
18845
18846 fi
18847
18848
18849
18850 for ac_func in setlocale
18851 do
18852 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18853 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18854 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18855 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18856 echo $ECHO_N "(cached) $ECHO_C" >&6
18857 else
18858 cat >conftest.$ac_ext <<_ACEOF
18859 /* confdefs.h. */
18860 _ACEOF
18861 cat confdefs.h >>conftest.$ac_ext
18862 cat >>conftest.$ac_ext <<_ACEOF
18863 /* end confdefs.h. */
18864 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18866 #define $ac_func innocuous_$ac_func
18867
18868 /* System header to define __stub macros and hopefully few prototypes,
18869 which can conflict with char $ac_func (); below.
18870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18871 <limits.h> exists even on freestanding compilers. */
18872
18873 #ifdef __STDC__
18874 # include <limits.h>
18875 #else
18876 # include <assert.h>
18877 #endif
18878
18879 #undef $ac_func
18880
18881 /* Override any GCC internal prototype to avoid an error.
18882 Use char because int might match the return type of a GCC
18883 builtin and then its argument prototype would still apply. */
18884 #ifdef __cplusplus
18885 extern "C"
18886 #endif
18887 char $ac_func ();
18888 /* The GNU C library defines this for functions which it implements
18889 to always fail with ENOSYS. Some functions are actually named
18890 something starting with __ and the normal name is an alias. */
18891 #if defined __stub_$ac_func || defined __stub___$ac_func
18892 choke me
18893 #endif
18894
18895 int
18896 main ()
18897 {
18898 return $ac_func ();
18899 ;
18900 return 0;
18901 }
18902 _ACEOF
18903 rm -f conftest.$ac_objext conftest$ac_exeext
18904 if { (ac_try="$ac_link"
18905 case "(($ac_try" in
18906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18907 *) ac_try_echo=$ac_try;;
18908 esac
18909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18910 (eval "$ac_link") 2>conftest.er1
18911 ac_status=$?
18912 grep -v '^ *+' conftest.er1 >conftest.err
18913 rm -f conftest.er1
18914 cat conftest.err >&5
18915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18916 (exit $ac_status); } &&
18917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18918 { (case "(($ac_try" in
18919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18920 *) ac_try_echo=$ac_try;;
18921 esac
18922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18923 (eval "$ac_try") 2>&5
18924 ac_status=$?
18925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18926 (exit $ac_status); }; } &&
18927 { ac_try='test -s conftest$ac_exeext'
18928 { (case "(($ac_try" in
18929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18930 *) ac_try_echo=$ac_try;;
18931 esac
18932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18933 (eval "$ac_try") 2>&5
18934 ac_status=$?
18935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); }; }; then
18937 eval "$as_ac_var=yes"
18938 else
18939 echo "$as_me: failed program was:" >&5
18940 sed 's/^/| /' conftest.$ac_ext >&5
18941
18942 eval "$as_ac_var=no"
18943 fi
18944
18945 rm -f core conftest.err conftest.$ac_objext \
18946 conftest$ac_exeext conftest.$ac_ext
18947 fi
18948 ac_res=`eval echo '${'$as_ac_var'}'`
18949 { echo "$as_me:$LINENO: result: $ac_res" >&5
18950 echo "${ECHO_T}$ac_res" >&6; }
18951 if test `eval echo '${'$as_ac_var'}'` = yes; then
18952 cat >>confdefs.h <<_ACEOF
18953 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18954 _ACEOF
18955
18956 fi
18957 done
18958
18959
18960 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18961 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18962 # Irix 4.0.5F has the header but not the library.
18963 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18964 ac_have_func=yes
18965
18966 cat >>confdefs.h <<\_ACEOF
18967 #define SVR4 1
18968 _ACEOF
18969
18970 fi
18971
18972 if test $ac_have_func = no; then
18973 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18974 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18975 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18976 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18977 echo $ECHO_N "(cached) $ECHO_C" >&6
18978 fi
18979 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18980 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18981 else
18982 # Is the header compilable?
18983 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
18984 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
18985 cat >conftest.$ac_ext <<_ACEOF
18986 /* confdefs.h. */
18987 _ACEOF
18988 cat confdefs.h >>conftest.$ac_ext
18989 cat >>conftest.$ac_ext <<_ACEOF
18990 /* end confdefs.h. */
18991 $ac_includes_default
18992 #include <inq_stats/cpustats.h>
18993 _ACEOF
18994 rm -f conftest.$ac_objext
18995 if { (ac_try="$ac_compile"
18996 case "(($ac_try" in
18997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18998 *) ac_try_echo=$ac_try;;
18999 esac
19000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19001 (eval "$ac_compile") 2>conftest.er1
19002 ac_status=$?
19003 grep -v '^ *+' conftest.er1 >conftest.err
19004 rm -f conftest.er1
19005 cat conftest.err >&5
19006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007 (exit $ac_status); } &&
19008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19009 { (case "(($ac_try" in
19010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19011 *) ac_try_echo=$ac_try;;
19012 esac
19013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19014 (eval "$ac_try") 2>&5
19015 ac_status=$?
19016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017 (exit $ac_status); }; } &&
19018 { ac_try='test -s conftest.$ac_objext'
19019 { (case "(($ac_try" in
19020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19021 *) ac_try_echo=$ac_try;;
19022 esac
19023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19024 (eval "$ac_try") 2>&5
19025 ac_status=$?
19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); }; }; then
19028 ac_header_compiler=yes
19029 else
19030 echo "$as_me: failed program was:" >&5
19031 sed 's/^/| /' conftest.$ac_ext >&5
19032
19033 ac_header_compiler=no
19034 fi
19035
19036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19037 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19038 echo "${ECHO_T}$ac_header_compiler" >&6; }
19039
19040 # Is the header present?
19041 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
19042 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
19043 cat >conftest.$ac_ext <<_ACEOF
19044 /* confdefs.h. */
19045 _ACEOF
19046 cat confdefs.h >>conftest.$ac_ext
19047 cat >>conftest.$ac_ext <<_ACEOF
19048 /* end confdefs.h. */
19049 #include <inq_stats/cpustats.h>
19050 _ACEOF
19051 if { (ac_try="$ac_cpp conftest.$ac_ext"
19052 case "(($ac_try" in
19053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19054 *) ac_try_echo=$ac_try;;
19055 esac
19056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19058 ac_status=$?
19059 grep -v '^ *+' conftest.er1 >conftest.err
19060 rm -f conftest.er1
19061 cat conftest.err >&5
19062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063 (exit $ac_status); } >/dev/null; then
19064 if test -s conftest.err; then
19065 ac_cpp_err=$ac_c_preproc_warn_flag
19066 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19067 else
19068 ac_cpp_err=
19069 fi
19070 else
19071 ac_cpp_err=yes
19072 fi
19073 if test -z "$ac_cpp_err"; then
19074 ac_header_preproc=yes
19075 else
19076 echo "$as_me: failed program was:" >&5
19077 sed 's/^/| /' conftest.$ac_ext >&5
19078
19079 ac_header_preproc=no
19080 fi
19081
19082 rm -f conftest.err conftest.$ac_ext
19083 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19084 echo "${ECHO_T}$ac_header_preproc" >&6; }
19085
19086 # So? What about this header?
19087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19088 yes:no: )
19089 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19090 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19091 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
19092 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
19093 ac_header_preproc=yes
19094 ;;
19095 no:yes:* )
19096 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
19097 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
19098 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
19099 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
19100 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
19101 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
19102 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19103 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19104 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
19105 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
19106 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
19107 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
19108
19109 ;;
19110 esac
19111 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19112 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
19113 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19114 echo $ECHO_N "(cached) $ECHO_C" >&6
19115 else
19116 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19117 fi
19118 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19119 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
19120
19121 fi
19122 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19123 ac_have_func=yes
19124
19125 cat >>confdefs.h <<\_ACEOF
19126 #define UMAX 1
19127 _ACEOF
19128
19129
19130 cat >>confdefs.h <<\_ACEOF
19131 #define UMAX4_3 1
19132 _ACEOF
19133
19134 fi
19135
19136
19137 fi
19138
19139 if test $ac_have_func = no; then
19140 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19141 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19142 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
19143 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19144 echo $ECHO_N "(cached) $ECHO_C" >&6
19145 fi
19146 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19147 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
19148 else
19149 # Is the header compilable?
19150 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
19151 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
19152 cat >conftest.$ac_ext <<_ACEOF
19153 /* confdefs.h. */
19154 _ACEOF
19155 cat confdefs.h >>conftest.$ac_ext
19156 cat >>conftest.$ac_ext <<_ACEOF
19157 /* end confdefs.h. */
19158 $ac_includes_default
19159 #include <sys/cpustats.h>
19160 _ACEOF
19161 rm -f conftest.$ac_objext
19162 if { (ac_try="$ac_compile"
19163 case "(($ac_try" in
19164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19165 *) ac_try_echo=$ac_try;;
19166 esac
19167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19168 (eval "$ac_compile") 2>conftest.er1
19169 ac_status=$?
19170 grep -v '^ *+' conftest.er1 >conftest.err
19171 rm -f conftest.er1
19172 cat conftest.err >&5
19173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174 (exit $ac_status); } &&
19175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19176 { (case "(($ac_try" in
19177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19178 *) ac_try_echo=$ac_try;;
19179 esac
19180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19181 (eval "$ac_try") 2>&5
19182 ac_status=$?
19183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184 (exit $ac_status); }; } &&
19185 { ac_try='test -s conftest.$ac_objext'
19186 { (case "(($ac_try" in
19187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19188 *) ac_try_echo=$ac_try;;
19189 esac
19190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19191 (eval "$ac_try") 2>&5
19192 ac_status=$?
19193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194 (exit $ac_status); }; }; then
19195 ac_header_compiler=yes
19196 else
19197 echo "$as_me: failed program was:" >&5
19198 sed 's/^/| /' conftest.$ac_ext >&5
19199
19200 ac_header_compiler=no
19201 fi
19202
19203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19204 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19205 echo "${ECHO_T}$ac_header_compiler" >&6; }
19206
19207 # Is the header present?
19208 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19209 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
19210 cat >conftest.$ac_ext <<_ACEOF
19211 /* confdefs.h. */
19212 _ACEOF
19213 cat confdefs.h >>conftest.$ac_ext
19214 cat >>conftest.$ac_ext <<_ACEOF
19215 /* end confdefs.h. */
19216 #include <sys/cpustats.h>
19217 _ACEOF
19218 if { (ac_try="$ac_cpp conftest.$ac_ext"
19219 case "(($ac_try" in
19220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19221 *) ac_try_echo=$ac_try;;
19222 esac
19223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19225 ac_status=$?
19226 grep -v '^ *+' conftest.er1 >conftest.err
19227 rm -f conftest.er1
19228 cat conftest.err >&5
19229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230 (exit $ac_status); } >/dev/null; then
19231 if test -s conftest.err; then
19232 ac_cpp_err=$ac_c_preproc_warn_flag
19233 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19234 else
19235 ac_cpp_err=
19236 fi
19237 else
19238 ac_cpp_err=yes
19239 fi
19240 if test -z "$ac_cpp_err"; then
19241 ac_header_preproc=yes
19242 else
19243 echo "$as_me: failed program was:" >&5
19244 sed 's/^/| /' conftest.$ac_ext >&5
19245
19246 ac_header_preproc=no
19247 fi
19248
19249 rm -f conftest.err conftest.$ac_ext
19250 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19251 echo "${ECHO_T}$ac_header_preproc" >&6; }
19252
19253 # So? What about this header?
19254 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19255 yes:no: )
19256 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19257 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19258 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19259 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19260 ac_header_preproc=yes
19261 ;;
19262 no:yes:* )
19263 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19264 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19265 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
19266 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
19267 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19268 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19269 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19270 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19271 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19272 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19273 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
19274 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19275
19276 ;;
19277 esac
19278 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19279 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
19280 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19281 echo $ECHO_N "(cached) $ECHO_C" >&6
19282 else
19283 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19284 fi
19285 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19286 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
19287
19288 fi
19289 if test $ac_cv_header_sys_cpustats_h = yes; then
19290 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19291 #define UMAX 1
19292 _ACEOF
19293
19294 fi
19295
19296
19297 fi
19298
19299 if test $ac_have_func = no; then
19300
19301 for ac_header in mach/mach.h
19302 do
19303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19305 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19308 echo $ECHO_N "(cached) $ECHO_C" >&6
19309 fi
19310 ac_res=`eval echo '${'$as_ac_Header'}'`
19311 { echo "$as_me:$LINENO: result: $ac_res" >&5
19312 echo "${ECHO_T}$ac_res" >&6; }
19313 else
19314 # Is the header compilable?
19315 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19316 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19317 cat >conftest.$ac_ext <<_ACEOF
19318 /* confdefs.h. */
19319 _ACEOF
19320 cat confdefs.h >>conftest.$ac_ext
19321 cat >>conftest.$ac_ext <<_ACEOF
19322 /* end confdefs.h. */
19323 $ac_includes_default
19324 #include <$ac_header>
19325 _ACEOF
19326 rm -f conftest.$ac_objext
19327 if { (ac_try="$ac_compile"
19328 case "(($ac_try" in
19329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19330 *) ac_try_echo=$ac_try;;
19331 esac
19332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19333 (eval "$ac_compile") 2>conftest.er1
19334 ac_status=$?
19335 grep -v '^ *+' conftest.er1 >conftest.err
19336 rm -f conftest.er1
19337 cat conftest.err >&5
19338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339 (exit $ac_status); } &&
19340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19341 { (case "(($ac_try" in
19342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19343 *) ac_try_echo=$ac_try;;
19344 esac
19345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19346 (eval "$ac_try") 2>&5
19347 ac_status=$?
19348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349 (exit $ac_status); }; } &&
19350 { ac_try='test -s conftest.$ac_objext'
19351 { (case "(($ac_try" in
19352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19353 *) ac_try_echo=$ac_try;;
19354 esac
19355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19356 (eval "$ac_try") 2>&5
19357 ac_status=$?
19358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19359 (exit $ac_status); }; }; then
19360 ac_header_compiler=yes
19361 else
19362 echo "$as_me: failed program was:" >&5
19363 sed 's/^/| /' conftest.$ac_ext >&5
19364
19365 ac_header_compiler=no
19366 fi
19367
19368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19369 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19370 echo "${ECHO_T}$ac_header_compiler" >&6; }
19371
19372 # Is the header present?
19373 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19374 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19375 cat >conftest.$ac_ext <<_ACEOF
19376 /* confdefs.h. */
19377 _ACEOF
19378 cat confdefs.h >>conftest.$ac_ext
19379 cat >>conftest.$ac_ext <<_ACEOF
19380 /* end confdefs.h. */
19381 #include <$ac_header>
19382 _ACEOF
19383 if { (ac_try="$ac_cpp conftest.$ac_ext"
19384 case "(($ac_try" in
19385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19386 *) ac_try_echo=$ac_try;;
19387 esac
19388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19390 ac_status=$?
19391 grep -v '^ *+' conftest.er1 >conftest.err
19392 rm -f conftest.er1
19393 cat conftest.err >&5
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); } >/dev/null; then
19396 if test -s conftest.err; then
19397 ac_cpp_err=$ac_c_preproc_warn_flag
19398 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19399 else
19400 ac_cpp_err=
19401 fi
19402 else
19403 ac_cpp_err=yes
19404 fi
19405 if test -z "$ac_cpp_err"; then
19406 ac_header_preproc=yes
19407 else
19408 echo "$as_me: failed program was:" >&5
19409 sed 's/^/| /' conftest.$ac_ext >&5
19410
19411 ac_header_preproc=no
19412 fi
19413
19414 rm -f conftest.err conftest.$ac_ext
19415 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19416 echo "${ECHO_T}$ac_header_preproc" >&6; }
19417
19418 # So? What about this header?
19419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19420 yes:no: )
19421 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19422 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19424 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19425 ac_header_preproc=yes
19426 ;;
19427 no:yes:* )
19428 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19429 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19430 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19431 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19432 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19433 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19434 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19435 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19437 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19438 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19439 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19440
19441 ;;
19442 esac
19443 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19446 echo $ECHO_N "(cached) $ECHO_C" >&6
19447 else
19448 eval "$as_ac_Header=\$ac_header_preproc"
19449 fi
19450 ac_res=`eval echo '${'$as_ac_Header'}'`
19451 { echo "$as_me:$LINENO: result: $ac_res" >&5
19452 echo "${ECHO_T}$ac_res" >&6; }
19453
19454 fi
19455 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19456 cat >>confdefs.h <<_ACEOF
19457 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19458 _ACEOF
19459
19460 fi
19461
19462 done
19463
19464 fi
19465
19466
19467 for ac_header in nlist.h
19468 do
19469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19471 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19474 echo $ECHO_N "(cached) $ECHO_C" >&6
19475 fi
19476 ac_res=`eval echo '${'$as_ac_Header'}'`
19477 { echo "$as_me:$LINENO: result: $ac_res" >&5
19478 echo "${ECHO_T}$ac_res" >&6; }
19479 else
19480 # Is the header compilable?
19481 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19482 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19483 cat >conftest.$ac_ext <<_ACEOF
19484 /* confdefs.h. */
19485 _ACEOF
19486 cat confdefs.h >>conftest.$ac_ext
19487 cat >>conftest.$ac_ext <<_ACEOF
19488 /* end confdefs.h. */
19489 $ac_includes_default
19490 #include <$ac_header>
19491 _ACEOF
19492 rm -f conftest.$ac_objext
19493 if { (ac_try="$ac_compile"
19494 case "(($ac_try" in
19495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19496 *) ac_try_echo=$ac_try;;
19497 esac
19498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19499 (eval "$ac_compile") 2>conftest.er1
19500 ac_status=$?
19501 grep -v '^ *+' conftest.er1 >conftest.err
19502 rm -f conftest.er1
19503 cat conftest.err >&5
19504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505 (exit $ac_status); } &&
19506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19507 { (case "(($ac_try" in
19508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19509 *) ac_try_echo=$ac_try;;
19510 esac
19511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19512 (eval "$ac_try") 2>&5
19513 ac_status=$?
19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); }; } &&
19516 { ac_try='test -s conftest.$ac_objext'
19517 { (case "(($ac_try" in
19518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19519 *) ac_try_echo=$ac_try;;
19520 esac
19521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19522 (eval "$ac_try") 2>&5
19523 ac_status=$?
19524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525 (exit $ac_status); }; }; then
19526 ac_header_compiler=yes
19527 else
19528 echo "$as_me: failed program was:" >&5
19529 sed 's/^/| /' conftest.$ac_ext >&5
19530
19531 ac_header_compiler=no
19532 fi
19533
19534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19535 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19536 echo "${ECHO_T}$ac_header_compiler" >&6; }
19537
19538 # Is the header present?
19539 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19540 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19541 cat >conftest.$ac_ext <<_ACEOF
19542 /* confdefs.h. */
19543 _ACEOF
19544 cat confdefs.h >>conftest.$ac_ext
19545 cat >>conftest.$ac_ext <<_ACEOF
19546 /* end confdefs.h. */
19547 #include <$ac_header>
19548 _ACEOF
19549 if { (ac_try="$ac_cpp conftest.$ac_ext"
19550 case "(($ac_try" in
19551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19552 *) ac_try_echo=$ac_try;;
19553 esac
19554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19555 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19556 ac_status=$?
19557 grep -v '^ *+' conftest.er1 >conftest.err
19558 rm -f conftest.er1
19559 cat conftest.err >&5
19560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561 (exit $ac_status); } >/dev/null; then
19562 if test -s conftest.err; then
19563 ac_cpp_err=$ac_c_preproc_warn_flag
19564 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19565 else
19566 ac_cpp_err=
19567 fi
19568 else
19569 ac_cpp_err=yes
19570 fi
19571 if test -z "$ac_cpp_err"; then
19572 ac_header_preproc=yes
19573 else
19574 echo "$as_me: failed program was:" >&5
19575 sed 's/^/| /' conftest.$ac_ext >&5
19576
19577 ac_header_preproc=no
19578 fi
19579
19580 rm -f conftest.err conftest.$ac_ext
19581 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19582 echo "${ECHO_T}$ac_header_preproc" >&6; }
19583
19584 # So? What about this header?
19585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19586 yes:no: )
19587 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19588 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19590 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19591 ac_header_preproc=yes
19592 ;;
19593 no:yes:* )
19594 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19595 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19596 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19597 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19598 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19599 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19600 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19601 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19603 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19604 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19605 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19606
19607 ;;
19608 esac
19609 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19612 echo $ECHO_N "(cached) $ECHO_C" >&6
19613 else
19614 eval "$as_ac_Header=\$ac_header_preproc"
19615 fi
19616 ac_res=`eval echo '${'$as_ac_Header'}'`
19617 { echo "$as_me:$LINENO: result: $ac_res" >&5
19618 echo "${ECHO_T}$ac_res" >&6; }
19619
19620 fi
19621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19622 cat >>confdefs.h <<_ACEOF
19623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19624 _ACEOF
19625 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
19626 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
19627 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
19628 echo $ECHO_N "(cached) $ECHO_C" >&6
19629 else
19630 cat >conftest.$ac_ext <<_ACEOF
19631 /* confdefs.h. */
19632 _ACEOF
19633 cat confdefs.h >>conftest.$ac_ext
19634 cat >>conftest.$ac_ext <<_ACEOF
19635 /* end confdefs.h. */
19636 #include <nlist.h>
19637
19638 int
19639 main ()
19640 {
19641 static struct nlist ac_aggr;
19642 if (ac_aggr.n_un.n_name)
19643 return 0;
19644 ;
19645 return 0;
19646 }
19647 _ACEOF
19648 rm -f conftest.$ac_objext
19649 if { (ac_try="$ac_compile"
19650 case "(($ac_try" in
19651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19652 *) ac_try_echo=$ac_try;;
19653 esac
19654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19655 (eval "$ac_compile") 2>conftest.er1
19656 ac_status=$?
19657 grep -v '^ *+' conftest.er1 >conftest.err
19658 rm -f conftest.er1
19659 cat conftest.err >&5
19660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661 (exit $ac_status); } &&
19662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19663 { (case "(($ac_try" in
19664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19665 *) ac_try_echo=$ac_try;;
19666 esac
19667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19668 (eval "$ac_try") 2>&5
19669 ac_status=$?
19670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671 (exit $ac_status); }; } &&
19672 { ac_try='test -s conftest.$ac_objext'
19673 { (case "(($ac_try" in
19674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19675 *) ac_try_echo=$ac_try;;
19676 esac
19677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19678 (eval "$ac_try") 2>&5
19679 ac_status=$?
19680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681 (exit $ac_status); }; }; then
19682 ac_cv_member_struct_nlist_n_un_n_name=yes
19683 else
19684 echo "$as_me: failed program was:" >&5
19685 sed 's/^/| /' conftest.$ac_ext >&5
19686
19687 cat >conftest.$ac_ext <<_ACEOF
19688 /* confdefs.h. */
19689 _ACEOF
19690 cat confdefs.h >>conftest.$ac_ext
19691 cat >>conftest.$ac_ext <<_ACEOF
19692 /* end confdefs.h. */
19693 #include <nlist.h>
19694
19695 int
19696 main ()
19697 {
19698 static struct nlist ac_aggr;
19699 if (sizeof ac_aggr.n_un.n_name)
19700 return 0;
19701 ;
19702 return 0;
19703 }
19704 _ACEOF
19705 rm -f conftest.$ac_objext
19706 if { (ac_try="$ac_compile"
19707 case "(($ac_try" in
19708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19709 *) ac_try_echo=$ac_try;;
19710 esac
19711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19712 (eval "$ac_compile") 2>conftest.er1
19713 ac_status=$?
19714 grep -v '^ *+' conftest.er1 >conftest.err
19715 rm -f conftest.er1
19716 cat conftest.err >&5
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); } &&
19719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19720 { (case "(($ac_try" in
19721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19722 *) ac_try_echo=$ac_try;;
19723 esac
19724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19725 (eval "$ac_try") 2>&5
19726 ac_status=$?
19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728 (exit $ac_status); }; } &&
19729 { ac_try='test -s conftest.$ac_objext'
19730 { (case "(($ac_try" in
19731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19732 *) ac_try_echo=$ac_try;;
19733 esac
19734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19735 (eval "$ac_try") 2>&5
19736 ac_status=$?
19737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738 (exit $ac_status); }; }; then
19739 ac_cv_member_struct_nlist_n_un_n_name=yes
19740 else
19741 echo "$as_me: failed program was:" >&5
19742 sed 's/^/| /' conftest.$ac_ext >&5
19743
19744 ac_cv_member_struct_nlist_n_un_n_name=no
19745 fi
19746
19747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19748 fi
19749
19750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19751 fi
19752 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
19753 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
19754 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
19755
19756 cat >>confdefs.h <<_ACEOF
19757 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19758 _ACEOF
19759
19760
19761 cat >>confdefs.h <<\_ACEOF
19762 #define NLIST_NAME_UNION 1
19763 _ACEOF
19764
19765 fi
19766
19767
19768 fi
19769
19770 done
19771
19772 fi
19773 done
19774
19775
19776 # Some definitions of getloadavg require that the program be installed setgid.
19777 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
19778 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
19779 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
19780 echo $ECHO_N "(cached) $ECHO_C" >&6
19781 else
19782 cat >conftest.$ac_ext <<_ACEOF
19783 /* confdefs.h. */
19784 _ACEOF
19785 cat confdefs.h >>conftest.$ac_ext
19786 cat >>conftest.$ac_ext <<_ACEOF
19787 /* end confdefs.h. */
19788 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
19789 #ifdef LDAV_PRIVILEGED
19790 Yowza Am I SETGID yet
19791 #endif
19792 _ACEOF
19793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19794 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
19795 ac_cv_func_getloadavg_setgid=yes
19796 else
19797 ac_cv_func_getloadavg_setgid=no
19798 fi
19799 rm -f conftest*
19800
19801 fi
19802 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
19803 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
19804 if test $ac_cv_func_getloadavg_setgid = yes; then
19805 NEED_SETGID=true
19806
19807 cat >>confdefs.h <<\_ACEOF
19808 #define GETLOADAVG_PRIVILEGED 1
19809 _ACEOF
19810
19811 else
19812 NEED_SETGID=false
19813 fi
19814
19815 if test $ac_cv_func_getloadavg_setgid = yes; then
19816 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
19817 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
19818 if test "${ac_cv_group_kmem+set}" = set; then
19819 echo $ECHO_N "(cached) $ECHO_C" >&6
19820 else
19821 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
19822 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
19823 # If we got an error (system does not support symlinks), try without -L.
19824 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
19825 ac_cv_group_kmem=`echo $ac_ls_output \
19826 | sed -ne 's/[ ][ ]*/ /g;
19827 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
19828 / /s/.* //;p;'`
19829
19830 fi
19831 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
19832 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
19833 KMEM_GROUP=$ac_cv_group_kmem
19834 fi
19835 if test "x$ac_save_LIBS" = x; then
19836 GETLOADAVG_LIBS=$LIBS
19837 else
19838 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
19839 fi
19840 LIBS=$ac_save_LIBS
19841
19842
19843
19844 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19845 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
19846 if test "${ac_cv_sys_largefile_source+set}" = set; then
19847 echo $ECHO_N "(cached) $ECHO_C" >&6
19848 else
19849 while :; do
19850 ac_cv_sys_largefile_source=no
19851 cat >conftest.$ac_ext <<_ACEOF
19852 /* confdefs.h. */
19853 _ACEOF
19854 cat confdefs.h >>conftest.$ac_ext
19855 cat >>conftest.$ac_ext <<_ACEOF
19856 /* end confdefs.h. */
19857 #include <stdio.h>
19858 int
19859 main ()
19860 {
19861 return !fseeko;
19862 ;
19863 return 0;
19864 }
19865 _ACEOF
19866 rm -f conftest.$ac_objext
19867 if { (ac_try="$ac_compile"
19868 case "(($ac_try" in
19869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19870 *) ac_try_echo=$ac_try;;
19871 esac
19872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19873 (eval "$ac_compile") 2>conftest.er1
19874 ac_status=$?
19875 grep -v '^ *+' conftest.er1 >conftest.err
19876 rm -f conftest.er1
19877 cat conftest.err >&5
19878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879 (exit $ac_status); } &&
19880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19881 { (case "(($ac_try" in
19882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19883 *) ac_try_echo=$ac_try;;
19884 esac
19885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19886 (eval "$ac_try") 2>&5
19887 ac_status=$?
19888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889 (exit $ac_status); }; } &&
19890 { ac_try='test -s conftest.$ac_objext'
19891 { (case "(($ac_try" in
19892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19893 *) ac_try_echo=$ac_try;;
19894 esac
19895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19896 (eval "$ac_try") 2>&5
19897 ac_status=$?
19898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899 (exit $ac_status); }; }; then
19900 break
19901 else
19902 echo "$as_me: failed program was:" >&5
19903 sed 's/^/| /' conftest.$ac_ext >&5
19904
19905
19906 fi
19907
19908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19909 cat >conftest.$ac_ext <<_ACEOF
19910 /* confdefs.h. */
19911 _ACEOF
19912 cat confdefs.h >>conftest.$ac_ext
19913 cat >>conftest.$ac_ext <<_ACEOF
19914 /* end confdefs.h. */
19915 #define _LARGEFILE_SOURCE 1
19916 #include <stdio.h>
19917 int
19918 main ()
19919 {
19920 return !fseeko;
19921 ;
19922 return 0;
19923 }
19924 _ACEOF
19925 rm -f conftest.$ac_objext
19926 if { (ac_try="$ac_compile"
19927 case "(($ac_try" in
19928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19929 *) ac_try_echo=$ac_try;;
19930 esac
19931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19932 (eval "$ac_compile") 2>conftest.er1
19933 ac_status=$?
19934 grep -v '^ *+' conftest.er1 >conftest.err
19935 rm -f conftest.er1
19936 cat conftest.err >&5
19937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938 (exit $ac_status); } &&
19939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19940 { (case "(($ac_try" in
19941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19942 *) ac_try_echo=$ac_try;;
19943 esac
19944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19945 (eval "$ac_try") 2>&5
19946 ac_status=$?
19947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948 (exit $ac_status); }; } &&
19949 { ac_try='test -s conftest.$ac_objext'
19950 { (case "(($ac_try" in
19951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19952 *) ac_try_echo=$ac_try;;
19953 esac
19954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19955 (eval "$ac_try") 2>&5
19956 ac_status=$?
19957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958 (exit $ac_status); }; }; then
19959 ac_cv_sys_largefile_source=1; break
19960 else
19961 echo "$as_me: failed program was:" >&5
19962 sed 's/^/| /' conftest.$ac_ext >&5
19963
19964
19965 fi
19966
19967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19968 break
19969 done
19970 fi
19971 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19972 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19973 if test "$ac_cv_sys_largefile_source" != no; then
19974
19975 cat >>confdefs.h <<_ACEOF
19976 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19977 _ACEOF
19978
19979 fi
19980 rm -f conftest*
19981
19982 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19983 # in glibc 2.1.3, but that breaks too many other things.
19984 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19985 { echo "$as_me:$LINENO: checking for fseeko" >&5
19986 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6; }
19987 if test "${ac_cv_func_fseeko+set}" = set; then
19988 echo $ECHO_N "(cached) $ECHO_C" >&6
19989 else
19990 cat >conftest.$ac_ext <<_ACEOF
19991 /* confdefs.h. */
19992 _ACEOF
19993 cat confdefs.h >>conftest.$ac_ext
19994 cat >>conftest.$ac_ext <<_ACEOF
19995 /* end confdefs.h. */
19996 #include <stdio.h>
19997 int
19998 main ()
19999 {
20000 return fseeko && fseeko (stdin, 0, 0);
20001 ;
20002 return 0;
20003 }
20004 _ACEOF
20005 rm -f conftest.$ac_objext conftest$ac_exeext
20006 if { (ac_try="$ac_link"
20007 case "(($ac_try" in
20008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20009 *) ac_try_echo=$ac_try;;
20010 esac
20011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20012 (eval "$ac_link") 2>conftest.er1
20013 ac_status=$?
20014 grep -v '^ *+' conftest.er1 >conftest.err
20015 rm -f conftest.er1
20016 cat conftest.err >&5
20017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018 (exit $ac_status); } &&
20019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20020 { (case "(($ac_try" in
20021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20022 *) ac_try_echo=$ac_try;;
20023 esac
20024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20025 (eval "$ac_try") 2>&5
20026 ac_status=$?
20027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028 (exit $ac_status); }; } &&
20029 { ac_try='test -s conftest$ac_exeext'
20030 { (case "(($ac_try" in
20031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20032 *) ac_try_echo=$ac_try;;
20033 esac
20034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20035 (eval "$ac_try") 2>&5
20036 ac_status=$?
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); }; }; then
20039 ac_cv_func_fseeko=yes
20040 else
20041 echo "$as_me: failed program was:" >&5
20042 sed 's/^/| /' conftest.$ac_ext >&5
20043
20044 ac_cv_func_fseeko=no
20045 fi
20046
20047 rm -f core conftest.err conftest.$ac_objext \
20048 conftest$ac_exeext conftest.$ac_ext
20049 fi
20050 { echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
20051 echo "${ECHO_T}$ac_cv_func_fseeko" >&6; }
20052 if test $ac_cv_func_fseeko = yes; then
20053
20054 cat >>confdefs.h <<\_ACEOF
20055 #define HAVE_FSEEKO 1
20056 _ACEOF
20057
20058 fi
20059
20060
20061 # Configure getopt.
20062 # getopt.m4 serial 10
20063
20064 # The getopt module assume you want GNU getopt, with getopt_long etc,
20065 # rather than vanilla POSIX getopt. This means your your code should
20066 # always include <getopt.h> for the getopt prototypes.
20067
20068
20069
20070
20071
20072
20073
20074
20075
20076
20077
20078 # Prerequisites of lib/getopt*.
20079
20080
20081
20082
20083 GETOPT_H=
20084
20085 for ac_header in getopt.h
20086 do
20087 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20089 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20092 echo $ECHO_N "(cached) $ECHO_C" >&6
20093 fi
20094 ac_res=`eval echo '${'$as_ac_Header'}'`
20095 { echo "$as_me:$LINENO: result: $ac_res" >&5
20096 echo "${ECHO_T}$ac_res" >&6; }
20097 else
20098 # Is the header compilable?
20099 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20100 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20101 cat >conftest.$ac_ext <<_ACEOF
20102 /* confdefs.h. */
20103 _ACEOF
20104 cat confdefs.h >>conftest.$ac_ext
20105 cat >>conftest.$ac_ext <<_ACEOF
20106 /* end confdefs.h. */
20107 $ac_includes_default
20108 #include <$ac_header>
20109 _ACEOF
20110 rm -f conftest.$ac_objext
20111 if { (ac_try="$ac_compile"
20112 case "(($ac_try" in
20113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20114 *) ac_try_echo=$ac_try;;
20115 esac
20116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20117 (eval "$ac_compile") 2>conftest.er1
20118 ac_status=$?
20119 grep -v '^ *+' conftest.er1 >conftest.err
20120 rm -f conftest.er1
20121 cat conftest.err >&5
20122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123 (exit $ac_status); } &&
20124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20125 { (case "(($ac_try" in
20126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20127 *) ac_try_echo=$ac_try;;
20128 esac
20129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20130 (eval "$ac_try") 2>&5
20131 ac_status=$?
20132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133 (exit $ac_status); }; } &&
20134 { ac_try='test -s conftest.$ac_objext'
20135 { (case "(($ac_try" in
20136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20137 *) ac_try_echo=$ac_try;;
20138 esac
20139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20140 (eval "$ac_try") 2>&5
20141 ac_status=$?
20142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20143 (exit $ac_status); }; }; then
20144 ac_header_compiler=yes
20145 else
20146 echo "$as_me: failed program was:" >&5
20147 sed 's/^/| /' conftest.$ac_ext >&5
20148
20149 ac_header_compiler=no
20150 fi
20151
20152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20153 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20154 echo "${ECHO_T}$ac_header_compiler" >&6; }
20155
20156 # Is the header present?
20157 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20158 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20159 cat >conftest.$ac_ext <<_ACEOF
20160 /* confdefs.h. */
20161 _ACEOF
20162 cat confdefs.h >>conftest.$ac_ext
20163 cat >>conftest.$ac_ext <<_ACEOF
20164 /* end confdefs.h. */
20165 #include <$ac_header>
20166 _ACEOF
20167 if { (ac_try="$ac_cpp conftest.$ac_ext"
20168 case "(($ac_try" in
20169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20170 *) ac_try_echo=$ac_try;;
20171 esac
20172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20174 ac_status=$?
20175 grep -v '^ *+' conftest.er1 >conftest.err
20176 rm -f conftest.er1
20177 cat conftest.err >&5
20178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20179 (exit $ac_status); } >/dev/null; then
20180 if test -s conftest.err; then
20181 ac_cpp_err=$ac_c_preproc_warn_flag
20182 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20183 else
20184 ac_cpp_err=
20185 fi
20186 else
20187 ac_cpp_err=yes
20188 fi
20189 if test -z "$ac_cpp_err"; then
20190 ac_header_preproc=yes
20191 else
20192 echo "$as_me: failed program was:" >&5
20193 sed 's/^/| /' conftest.$ac_ext >&5
20194
20195 ac_header_preproc=no
20196 fi
20197
20198 rm -f conftest.err conftest.$ac_ext
20199 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20200 echo "${ECHO_T}$ac_header_preproc" >&6; }
20201
20202 # So? What about this header?
20203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20204 yes:no: )
20205 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20206 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20208 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20209 ac_header_preproc=yes
20210 ;;
20211 no:yes:* )
20212 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20213 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20214 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20215 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20216 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20217 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20218 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20219 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20222 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20223 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20224
20225 ;;
20226 esac
20227 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20230 echo $ECHO_N "(cached) $ECHO_C" >&6
20231 else
20232 eval "$as_ac_Header=\$ac_header_preproc"
20233 fi
20234 ac_res=`eval echo '${'$as_ac_Header'}'`
20235 { echo "$as_me:$LINENO: result: $ac_res" >&5
20236 echo "${ECHO_T}$ac_res" >&6; }
20237
20238 fi
20239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20240 cat >>confdefs.h <<_ACEOF
20241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20242 _ACEOF
20243
20244 else
20245 GETOPT_H=getopt.h
20246 fi
20247
20248 done
20249
20250 if test -z "$GETOPT_H"; then
20251
20252 for ac_func in getopt_long_only
20253 do
20254 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20255 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20257 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20258 echo $ECHO_N "(cached) $ECHO_C" >&6
20259 else
20260 cat >conftest.$ac_ext <<_ACEOF
20261 /* confdefs.h. */
20262 _ACEOF
20263 cat confdefs.h >>conftest.$ac_ext
20264 cat >>conftest.$ac_ext <<_ACEOF
20265 /* end confdefs.h. */
20266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20268 #define $ac_func innocuous_$ac_func
20269
20270 /* System header to define __stub macros and hopefully few prototypes,
20271 which can conflict with char $ac_func (); below.
20272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20273 <limits.h> exists even on freestanding compilers. */
20274
20275 #ifdef __STDC__
20276 # include <limits.h>
20277 #else
20278 # include <assert.h>
20279 #endif
20280
20281 #undef $ac_func
20282
20283 /* Override any GCC internal prototype to avoid an error.
20284 Use char because int might match the return type of a GCC
20285 builtin and then its argument prototype would still apply. */
20286 #ifdef __cplusplus
20287 extern "C"
20288 #endif
20289 char $ac_func ();
20290 /* The GNU C library defines this for functions which it implements
20291 to always fail with ENOSYS. Some functions are actually named
20292 something starting with __ and the normal name is an alias. */
20293 #if defined __stub_$ac_func || defined __stub___$ac_func
20294 choke me
20295 #endif
20296
20297 int
20298 main ()
20299 {
20300 return $ac_func ();
20301 ;
20302 return 0;
20303 }
20304 _ACEOF
20305 rm -f conftest.$ac_objext conftest$ac_exeext
20306 if { (ac_try="$ac_link"
20307 case "(($ac_try" in
20308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20309 *) ac_try_echo=$ac_try;;
20310 esac
20311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20312 (eval "$ac_link") 2>conftest.er1
20313 ac_status=$?
20314 grep -v '^ *+' conftest.er1 >conftest.err
20315 rm -f conftest.er1
20316 cat conftest.err >&5
20317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318 (exit $ac_status); } &&
20319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20320 { (case "(($ac_try" in
20321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20322 *) ac_try_echo=$ac_try;;
20323 esac
20324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20325 (eval "$ac_try") 2>&5
20326 ac_status=$?
20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328 (exit $ac_status); }; } &&
20329 { ac_try='test -s conftest$ac_exeext'
20330 { (case "(($ac_try" in
20331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20332 *) ac_try_echo=$ac_try;;
20333 esac
20334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20335 (eval "$ac_try") 2>&5
20336 ac_status=$?
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); }; }; then
20339 eval "$as_ac_var=yes"
20340 else
20341 echo "$as_me: failed program was:" >&5
20342 sed 's/^/| /' conftest.$ac_ext >&5
20343
20344 eval "$as_ac_var=no"
20345 fi
20346
20347 rm -f core conftest.err conftest.$ac_objext \
20348 conftest$ac_exeext conftest.$ac_ext
20349 fi
20350 ac_res=`eval echo '${'$as_ac_var'}'`
20351 { echo "$as_me:$LINENO: result: $ac_res" >&5
20352 echo "${ECHO_T}$ac_res" >&6; }
20353 if test `eval echo '${'$as_ac_var'}'` = yes; then
20354 cat >>confdefs.h <<_ACEOF
20355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20356 _ACEOF
20357
20358 else
20359 GETOPT_H=getopt.h
20360 fi
20361 done
20362
20363 fi
20364
20365 if test -z "$GETOPT_H"; then
20366 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
20367 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
20368 if test "${ac_cv_have_decl_optreset+set}" = set; then
20369 echo $ECHO_N "(cached) $ECHO_C" >&6
20370 else
20371 cat >conftest.$ac_ext <<_ACEOF
20372 /* confdefs.h. */
20373 _ACEOF
20374 cat confdefs.h >>conftest.$ac_ext
20375 cat >>conftest.$ac_ext <<_ACEOF
20376 /* end confdefs.h. */
20377 #include <getopt.h>
20378
20379 int
20380 main ()
20381 {
20382 #ifndef optreset
20383 char *p = (char *) optreset;
20384 return !p;
20385 #endif
20386
20387 ;
20388 return 0;
20389 }
20390 _ACEOF
20391 rm -f conftest.$ac_objext
20392 if { (ac_try="$ac_compile"
20393 case "(($ac_try" in
20394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20395 *) ac_try_echo=$ac_try;;
20396 esac
20397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20398 (eval "$ac_compile") 2>conftest.er1
20399 ac_status=$?
20400 grep -v '^ *+' conftest.er1 >conftest.err
20401 rm -f conftest.er1
20402 cat conftest.err >&5
20403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404 (exit $ac_status); } &&
20405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20406 { (case "(($ac_try" in
20407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20408 *) ac_try_echo=$ac_try;;
20409 esac
20410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20411 (eval "$ac_try") 2>&5
20412 ac_status=$?
20413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414 (exit $ac_status); }; } &&
20415 { ac_try='test -s conftest.$ac_objext'
20416 { (case "(($ac_try" in
20417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20418 *) ac_try_echo=$ac_try;;
20419 esac
20420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20421 (eval "$ac_try") 2>&5
20422 ac_status=$?
20423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424 (exit $ac_status); }; }; then
20425 ac_cv_have_decl_optreset=yes
20426 else
20427 echo "$as_me: failed program was:" >&5
20428 sed 's/^/| /' conftest.$ac_ext >&5
20429
20430 ac_cv_have_decl_optreset=no
20431 fi
20432
20433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20434 fi
20435 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
20436 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
20437 if test $ac_cv_have_decl_optreset = yes; then
20438 GETOPT_H=getopt.h
20439 fi
20440
20441 fi
20442
20443 if test -z "$GETOPT_H"; then
20444 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
20445 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
20446 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20447 echo $ECHO_N "(cached) $ECHO_C" >&6
20448 else
20449 if test "$cross_compiling" = yes; then
20450 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
20451 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
20452 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20453 echo $ECHO_N "(cached) $ECHO_C" >&6
20454 else
20455 cat >conftest.$ac_ext <<_ACEOF
20456 /* confdefs.h. */
20457 _ACEOF
20458 cat confdefs.h >>conftest.$ac_ext
20459 cat >>conftest.$ac_ext <<_ACEOF
20460 /* end confdefs.h. */
20461 #include <getopt.h>
20462
20463 int
20464 main ()
20465 {
20466 #ifndef getopt_clip
20467 char *p = (char *) getopt_clip;
20468 return !p;
20469 #endif
20470
20471 ;
20472 return 0;
20473 }
20474 _ACEOF
20475 rm -f conftest.$ac_objext
20476 if { (ac_try="$ac_compile"
20477 case "(($ac_try" in
20478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20479 *) ac_try_echo=$ac_try;;
20480 esac
20481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20482 (eval "$ac_compile") 2>conftest.er1
20483 ac_status=$?
20484 grep -v '^ *+' conftest.er1 >conftest.err
20485 rm -f conftest.er1
20486 cat conftest.err >&5
20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); } &&
20489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20490 { (case "(($ac_try" in
20491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20492 *) ac_try_echo=$ac_try;;
20493 esac
20494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20495 (eval "$ac_try") 2>&5
20496 ac_status=$?
20497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498 (exit $ac_status); }; } &&
20499 { ac_try='test -s conftest.$ac_objext'
20500 { (case "(($ac_try" in
20501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20502 *) ac_try_echo=$ac_try;;
20503 esac
20504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20505 (eval "$ac_try") 2>&5
20506 ac_status=$?
20507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508 (exit $ac_status); }; }; then
20509 ac_cv_have_decl_getopt_clip=yes
20510 else
20511 echo "$as_me: failed program was:" >&5
20512 sed 's/^/| /' conftest.$ac_ext >&5
20513
20514 ac_cv_have_decl_getopt_clip=no
20515 fi
20516
20517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20518 fi
20519 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20520 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
20521 if test $ac_cv_have_decl_getopt_clip = yes; then
20522 gl_cv_func_gnu_getopt=no
20523 else
20524 gl_cv_func_gnu_getopt=yes
20525 fi
20526
20527 else
20528 cat >conftest.$ac_ext <<_ACEOF
20529 /* confdefs.h. */
20530 _ACEOF
20531 cat confdefs.h >>conftest.$ac_ext
20532 cat >>conftest.$ac_ext <<_ACEOF
20533 /* end confdefs.h. */
20534 #include <getopt.h>
20535 int
20536 main ()
20537 {
20538
20539 char *myargv[3];
20540 myargv[0] = "conftest";
20541 myargv[1] = "-+";
20542 myargv[2] = 0;
20543 return getopt (2, myargv, "+a") != '?';
20544
20545 ;
20546 return 0;
20547 }
20548 _ACEOF
20549 rm -f conftest$ac_exeext
20550 if { (ac_try="$ac_link"
20551 case "(($ac_try" in
20552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20553 *) ac_try_echo=$ac_try;;
20554 esac
20555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20556 (eval "$ac_link") 2>&5
20557 ac_status=$?
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20560 { (case "(($ac_try" in
20561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20562 *) ac_try_echo=$ac_try;;
20563 esac
20564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20565 (eval "$ac_try") 2>&5
20566 ac_status=$?
20567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568 (exit $ac_status); }; }; then
20569 gl_cv_func_gnu_getopt=yes
20570 else
20571 echo "$as_me: program exited with status $ac_status" >&5
20572 echo "$as_me: failed program was:" >&5
20573 sed 's/^/| /' conftest.$ac_ext >&5
20574
20575 ( exit $ac_status )
20576 gl_cv_func_gnu_getopt=no
20577 fi
20578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20579 fi
20580
20581
20582 fi
20583 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
20584 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
20585 if test "$gl_cv_func_gnu_getopt" = "no"; then
20586 GETOPT_H=getopt.h
20587 fi
20588 fi
20589
20590
20591
20592 if test -n "$GETOPT_H"; then
20593
20594
20595 GETOPT_H=getopt.h
20596
20597 cat >>confdefs.h <<\_ACEOF
20598 #define __GETOPT_PREFIX rpl_
20599 _ACEOF
20600
20601
20602
20603 :
20604 GETOPTOBJS='getopt.o getopt1.o'
20605
20606 fi
20607
20608
20609
20610
20611 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
20612 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
20613 if test "${ac_cv_func_getpgrp_void+set}" = set; then
20614 echo $ECHO_N "(cached) $ECHO_C" >&6
20615 else
20616 # Use it with a single arg.
20617 cat >conftest.$ac_ext <<_ACEOF
20618 /* confdefs.h. */
20619 _ACEOF
20620 cat confdefs.h >>conftest.$ac_ext
20621 cat >>conftest.$ac_ext <<_ACEOF
20622 /* end confdefs.h. */
20623 $ac_includes_default
20624 int
20625 main ()
20626 {
20627 getpgrp (0);
20628 ;
20629 return 0;
20630 }
20631 _ACEOF
20632 rm -f conftest.$ac_objext
20633 if { (ac_try="$ac_compile"
20634 case "(($ac_try" in
20635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20636 *) ac_try_echo=$ac_try;;
20637 esac
20638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20639 (eval "$ac_compile") 2>conftest.er1
20640 ac_status=$?
20641 grep -v '^ *+' conftest.er1 >conftest.err
20642 rm -f conftest.er1
20643 cat conftest.err >&5
20644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645 (exit $ac_status); } &&
20646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20647 { (case "(($ac_try" in
20648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20649 *) ac_try_echo=$ac_try;;
20650 esac
20651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20652 (eval "$ac_try") 2>&5
20653 ac_status=$?
20654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655 (exit $ac_status); }; } &&
20656 { ac_try='test -s conftest.$ac_objext'
20657 { (case "(($ac_try" in
20658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20659 *) ac_try_echo=$ac_try;;
20660 esac
20661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20662 (eval "$ac_try") 2>&5
20663 ac_status=$?
20664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665 (exit $ac_status); }; }; then
20666 ac_cv_func_getpgrp_void=no
20667 else
20668 echo "$as_me: failed program was:" >&5
20669 sed 's/^/| /' conftest.$ac_ext >&5
20670
20671 ac_cv_func_getpgrp_void=yes
20672 fi
20673
20674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20675
20676 fi
20677 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
20678 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
20679 if test $ac_cv_func_getpgrp_void = yes; then
20680
20681 cat >>confdefs.h <<\_ACEOF
20682 #define GETPGRP_VOID 1
20683 _ACEOF
20684
20685 fi
20686
20687
20688
20689 for ac_func in strftime
20690 do
20691 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20692 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20693 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20694 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20695 echo $ECHO_N "(cached) $ECHO_C" >&6
20696 else
20697 cat >conftest.$ac_ext <<_ACEOF
20698 /* confdefs.h. */
20699 _ACEOF
20700 cat confdefs.h >>conftest.$ac_ext
20701 cat >>conftest.$ac_ext <<_ACEOF
20702 /* end confdefs.h. */
20703 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20705 #define $ac_func innocuous_$ac_func
20706
20707 /* System header to define __stub macros and hopefully few prototypes,
20708 which can conflict with char $ac_func (); below.
20709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20710 <limits.h> exists even on freestanding compilers. */
20711
20712 #ifdef __STDC__
20713 # include <limits.h>
20714 #else
20715 # include <assert.h>
20716 #endif
20717
20718 #undef $ac_func
20719
20720 /* Override any GCC internal prototype to avoid an error.
20721 Use char because int might match the return type of a GCC
20722 builtin and then its argument prototype would still apply. */
20723 #ifdef __cplusplus
20724 extern "C"
20725 #endif
20726 char $ac_func ();
20727 /* The GNU C library defines this for functions which it implements
20728 to always fail with ENOSYS. Some functions are actually named
20729 something starting with __ and the normal name is an alias. */
20730 #if defined __stub_$ac_func || defined __stub___$ac_func
20731 choke me
20732 #endif
20733
20734 int
20735 main ()
20736 {
20737 return $ac_func ();
20738 ;
20739 return 0;
20740 }
20741 _ACEOF
20742 rm -f conftest.$ac_objext conftest$ac_exeext
20743 if { (ac_try="$ac_link"
20744 case "(($ac_try" in
20745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20746 *) ac_try_echo=$ac_try;;
20747 esac
20748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20749 (eval "$ac_link") 2>conftest.er1
20750 ac_status=$?
20751 grep -v '^ *+' conftest.er1 >conftest.err
20752 rm -f conftest.er1
20753 cat conftest.err >&5
20754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20755 (exit $ac_status); } &&
20756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20757 { (case "(($ac_try" in
20758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20759 *) ac_try_echo=$ac_try;;
20760 esac
20761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20762 (eval "$ac_try") 2>&5
20763 ac_status=$?
20764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20765 (exit $ac_status); }; } &&
20766 { ac_try='test -s conftest$ac_exeext'
20767 { (case "(($ac_try" in
20768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20769 *) ac_try_echo=$ac_try;;
20770 esac
20771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20772 (eval "$ac_try") 2>&5
20773 ac_status=$?
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); }; }; then
20776 eval "$as_ac_var=yes"
20777 else
20778 echo "$as_me: failed program was:" >&5
20779 sed 's/^/| /' conftest.$ac_ext >&5
20780
20781 eval "$as_ac_var=no"
20782 fi
20783
20784 rm -f core conftest.err conftest.$ac_objext \
20785 conftest$ac_exeext conftest.$ac_ext
20786 fi
20787 ac_res=`eval echo '${'$as_ac_var'}'`
20788 { echo "$as_me:$LINENO: result: $ac_res" >&5
20789 echo "${ECHO_T}$ac_res" >&6; }
20790 if test `eval echo '${'$as_ac_var'}'` = yes; then
20791 cat >>confdefs.h <<_ACEOF
20792 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20793 _ACEOF
20794
20795 else
20796 # strftime is in -lintl on SCO UNIX.
20797 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
20798 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
20799 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20800 echo $ECHO_N "(cached) $ECHO_C" >&6
20801 else
20802 ac_check_lib_save_LIBS=$LIBS
20803 LIBS="-lintl $LIBS"
20804 cat >conftest.$ac_ext <<_ACEOF
20805 /* confdefs.h. */
20806 _ACEOF
20807 cat confdefs.h >>conftest.$ac_ext
20808 cat >>conftest.$ac_ext <<_ACEOF
20809 /* end confdefs.h. */
20810
20811 /* Override any GCC internal prototype to avoid an error.
20812 Use char because int might match the return type of a GCC
20813 builtin and then its argument prototype would still apply. */
20814 #ifdef __cplusplus
20815 extern "C"
20816 #endif
20817 char strftime ();
20818 int
20819 main ()
20820 {
20821 return strftime ();
20822 ;
20823 return 0;
20824 }
20825 _ACEOF
20826 rm -f conftest.$ac_objext conftest$ac_exeext
20827 if { (ac_try="$ac_link"
20828 case "(($ac_try" in
20829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20830 *) ac_try_echo=$ac_try;;
20831 esac
20832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20833 (eval "$ac_link") 2>conftest.er1
20834 ac_status=$?
20835 grep -v '^ *+' conftest.er1 >conftest.err
20836 rm -f conftest.er1
20837 cat conftest.err >&5
20838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839 (exit $ac_status); } &&
20840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20841 { (case "(($ac_try" in
20842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20843 *) ac_try_echo=$ac_try;;
20844 esac
20845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20846 (eval "$ac_try") 2>&5
20847 ac_status=$?
20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849 (exit $ac_status); }; } &&
20850 { ac_try='test -s conftest$ac_exeext'
20851 { (case "(($ac_try" in
20852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20853 *) ac_try_echo=$ac_try;;
20854 esac
20855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20856 (eval "$ac_try") 2>&5
20857 ac_status=$?
20858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859 (exit $ac_status); }; }; then
20860 ac_cv_lib_intl_strftime=yes
20861 else
20862 echo "$as_me: failed program was:" >&5
20863 sed 's/^/| /' conftest.$ac_ext >&5
20864
20865 ac_cv_lib_intl_strftime=no
20866 fi
20867
20868 rm -f core conftest.err conftest.$ac_objext \
20869 conftest$ac_exeext conftest.$ac_ext
20870 LIBS=$ac_check_lib_save_LIBS
20871 fi
20872 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
20873 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
20874 if test $ac_cv_lib_intl_strftime = yes; then
20875 cat >>confdefs.h <<\_ACEOF
20876 #define HAVE_STRFTIME 1
20877 _ACEOF
20878
20879 LIBS="-lintl $LIBS"
20880 fi
20881
20882 fi
20883 done
20884
20885
20886 # UNIX98 PTYs.
20887
20888 for ac_func in grantpt
20889 do
20890 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20891 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20892 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20893 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20894 echo $ECHO_N "(cached) $ECHO_C" >&6
20895 else
20896 cat >conftest.$ac_ext <<_ACEOF
20897 /* confdefs.h. */
20898 _ACEOF
20899 cat confdefs.h >>conftest.$ac_ext
20900 cat >>conftest.$ac_ext <<_ACEOF
20901 /* end confdefs.h. */
20902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20904 #define $ac_func innocuous_$ac_func
20905
20906 /* System header to define __stub macros and hopefully few prototypes,
20907 which can conflict with char $ac_func (); below.
20908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20909 <limits.h> exists even on freestanding compilers. */
20910
20911 #ifdef __STDC__
20912 # include <limits.h>
20913 #else
20914 # include <assert.h>
20915 #endif
20916
20917 #undef $ac_func
20918
20919 /* Override any GCC internal prototype to avoid an error.
20920 Use char because int might match the return type of a GCC
20921 builtin and then its argument prototype would still apply. */
20922 #ifdef __cplusplus
20923 extern "C"
20924 #endif
20925 char $ac_func ();
20926 /* The GNU C library defines this for functions which it implements
20927 to always fail with ENOSYS. Some functions are actually named
20928 something starting with __ and the normal name is an alias. */
20929 #if defined __stub_$ac_func || defined __stub___$ac_func
20930 choke me
20931 #endif
20932
20933 int
20934 main ()
20935 {
20936 return $ac_func ();
20937 ;
20938 return 0;
20939 }
20940 _ACEOF
20941 rm -f conftest.$ac_objext conftest$ac_exeext
20942 if { (ac_try="$ac_link"
20943 case "(($ac_try" in
20944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20945 *) ac_try_echo=$ac_try;;
20946 esac
20947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20948 (eval "$ac_link") 2>conftest.er1
20949 ac_status=$?
20950 grep -v '^ *+' conftest.er1 >conftest.err
20951 rm -f conftest.er1
20952 cat conftest.err >&5
20953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20954 (exit $ac_status); } &&
20955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20956 { (case "(($ac_try" in
20957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20958 *) ac_try_echo=$ac_try;;
20959 esac
20960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20961 (eval "$ac_try") 2>&5
20962 ac_status=$?
20963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964 (exit $ac_status); }; } &&
20965 { ac_try='test -s conftest$ac_exeext'
20966 { (case "(($ac_try" in
20967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20968 *) ac_try_echo=$ac_try;;
20969 esac
20970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20971 (eval "$ac_try") 2>&5
20972 ac_status=$?
20973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974 (exit $ac_status); }; }; then
20975 eval "$as_ac_var=yes"
20976 else
20977 echo "$as_me: failed program was:" >&5
20978 sed 's/^/| /' conftest.$ac_ext >&5
20979
20980 eval "$as_ac_var=no"
20981 fi
20982
20983 rm -f core conftest.err conftest.$ac_objext \
20984 conftest$ac_exeext conftest.$ac_ext
20985 fi
20986 ac_res=`eval echo '${'$as_ac_var'}'`
20987 { echo "$as_me:$LINENO: result: $ac_res" >&5
20988 echo "${ECHO_T}$ac_res" >&6; }
20989 if test `eval echo '${'$as_ac_var'}'` = yes; then
20990 cat >>confdefs.h <<_ACEOF
20991 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20992 _ACEOF
20993
20994 fi
20995 done
20996
20997
20998 # PTY-related GNU extensions.
20999
21000 for ac_func in getpt
21001 do
21002 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21003 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21004 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21005 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21006 echo $ECHO_N "(cached) $ECHO_C" >&6
21007 else
21008 cat >conftest.$ac_ext <<_ACEOF
21009 /* confdefs.h. */
21010 _ACEOF
21011 cat confdefs.h >>conftest.$ac_ext
21012 cat >>conftest.$ac_ext <<_ACEOF
21013 /* end confdefs.h. */
21014 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21016 #define $ac_func innocuous_$ac_func
21017
21018 /* System header to define __stub macros and hopefully few prototypes,
21019 which can conflict with char $ac_func (); below.
21020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21021 <limits.h> exists even on freestanding compilers. */
21022
21023 #ifdef __STDC__
21024 # include <limits.h>
21025 #else
21026 # include <assert.h>
21027 #endif
21028
21029 #undef $ac_func
21030
21031 /* Override any GCC internal prototype to avoid an error.
21032 Use char because int might match the return type of a GCC
21033 builtin and then its argument prototype would still apply. */
21034 #ifdef __cplusplus
21035 extern "C"
21036 #endif
21037 char $ac_func ();
21038 /* The GNU C library defines this for functions which it implements
21039 to always fail with ENOSYS. Some functions are actually named
21040 something starting with __ and the normal name is an alias. */
21041 #if defined __stub_$ac_func || defined __stub___$ac_func
21042 choke me
21043 #endif
21044
21045 int
21046 main ()
21047 {
21048 return $ac_func ();
21049 ;
21050 return 0;
21051 }
21052 _ACEOF
21053 rm -f conftest.$ac_objext conftest$ac_exeext
21054 if { (ac_try="$ac_link"
21055 case "(($ac_try" in
21056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21057 *) ac_try_echo=$ac_try;;
21058 esac
21059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21060 (eval "$ac_link") 2>conftest.er1
21061 ac_status=$?
21062 grep -v '^ *+' conftest.er1 >conftest.err
21063 rm -f conftest.er1
21064 cat conftest.err >&5
21065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066 (exit $ac_status); } &&
21067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21068 { (case "(($ac_try" in
21069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21070 *) ac_try_echo=$ac_try;;
21071 esac
21072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21073 (eval "$ac_try") 2>&5
21074 ac_status=$?
21075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076 (exit $ac_status); }; } &&
21077 { ac_try='test -s conftest$ac_exeext'
21078 { (case "(($ac_try" in
21079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21080 *) ac_try_echo=$ac_try;;
21081 esac
21082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21083 (eval "$ac_try") 2>&5
21084 ac_status=$?
21085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086 (exit $ac_status); }; }; then
21087 eval "$as_ac_var=yes"
21088 else
21089 echo "$as_me: failed program was:" >&5
21090 sed 's/^/| /' conftest.$ac_ext >&5
21091
21092 eval "$as_ac_var=no"
21093 fi
21094
21095 rm -f core conftest.err conftest.$ac_objext \
21096 conftest$ac_exeext conftest.$ac_ext
21097 fi
21098 ac_res=`eval echo '${'$as_ac_var'}'`
21099 { echo "$as_me:$LINENO: result: $ac_res" >&5
21100 echo "${ECHO_T}$ac_res" >&6; }
21101 if test `eval echo '${'$as_ac_var'}'` = yes; then
21102 cat >>confdefs.h <<_ACEOF
21103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21104 _ACEOF
21105
21106 fi
21107 done
21108
21109
21110 # Check this now, so that we will NOT find the above functions in ncurses.
21111 # That is because we have not set up to link ncurses in lib-src.
21112 # It's better to believe a function is not available
21113 # than to expect to find it in ncurses.
21114
21115 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
21116 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
21117 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
21118 echo $ECHO_N "(cached) $ECHO_C" >&6
21119 else
21120 ac_check_lib_save_LIBS=$LIBS
21121 LIBS="-lncurses $LIBS"
21122 cat >conftest.$ac_ext <<_ACEOF
21123 /* confdefs.h. */
21124 _ACEOF
21125 cat confdefs.h >>conftest.$ac_ext
21126 cat >>conftest.$ac_ext <<_ACEOF
21127 /* end confdefs.h. */
21128
21129 /* Override any GCC internal prototype to avoid an error.
21130 Use char because int might match the return type of a GCC
21131 builtin and then its argument prototype would still apply. */
21132 #ifdef __cplusplus
21133 extern "C"
21134 #endif
21135 char tparm ();
21136 int
21137 main ()
21138 {
21139 return tparm ();
21140 ;
21141 return 0;
21142 }
21143 _ACEOF
21144 rm -f conftest.$ac_objext conftest$ac_exeext
21145 if { (ac_try="$ac_link"
21146 case "(($ac_try" in
21147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21148 *) ac_try_echo=$ac_try;;
21149 esac
21150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21151 (eval "$ac_link") 2>conftest.er1
21152 ac_status=$?
21153 grep -v '^ *+' conftest.er1 >conftest.err
21154 rm -f conftest.er1
21155 cat conftest.err >&5
21156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157 (exit $ac_status); } &&
21158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21159 { (case "(($ac_try" in
21160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21161 *) ac_try_echo=$ac_try;;
21162 esac
21163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21164 (eval "$ac_try") 2>&5
21165 ac_status=$?
21166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167 (exit $ac_status); }; } &&
21168 { ac_try='test -s conftest$ac_exeext'
21169 { (case "(($ac_try" in
21170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21171 *) ac_try_echo=$ac_try;;
21172 esac
21173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21174 (eval "$ac_try") 2>&5
21175 ac_status=$?
21176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177 (exit $ac_status); }; }; then
21178 ac_cv_lib_ncurses_tparm=yes
21179 else
21180 echo "$as_me: failed program was:" >&5
21181 sed 's/^/| /' conftest.$ac_ext >&5
21182
21183 ac_cv_lib_ncurses_tparm=no
21184 fi
21185
21186 rm -f core conftest.err conftest.$ac_objext \
21187 conftest$ac_exeext conftest.$ac_ext
21188 LIBS=$ac_check_lib_save_LIBS
21189 fi
21190 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
21191 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
21192 if test $ac_cv_lib_ncurses_tparm = yes; then
21193 cat >>confdefs.h <<_ACEOF
21194 #define HAVE_LIBNCURSES 1
21195 _ACEOF
21196
21197 LIBS="-lncurses $LIBS"
21198
21199 fi
21200
21201
21202 # Do we need the Hesiod library to provide the support routines?
21203 if test "$with_hesiod" = yes ; then
21204 # Don't set $LIBS here -- see comments above.
21205 resolv=no
21206 { echo "$as_me:$LINENO: checking for res_send" >&5
21207 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
21208 if test "${ac_cv_func_res_send+set}" = set; then
21209 echo $ECHO_N "(cached) $ECHO_C" >&6
21210 else
21211 cat >conftest.$ac_ext <<_ACEOF
21212 /* confdefs.h. */
21213 _ACEOF
21214 cat confdefs.h >>conftest.$ac_ext
21215 cat >>conftest.$ac_ext <<_ACEOF
21216 /* end confdefs.h. */
21217 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21219 #define res_send innocuous_res_send
21220
21221 /* System header to define __stub macros and hopefully few prototypes,
21222 which can conflict with char res_send (); below.
21223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21224 <limits.h> exists even on freestanding compilers. */
21225
21226 #ifdef __STDC__
21227 # include <limits.h>
21228 #else
21229 # include <assert.h>
21230 #endif
21231
21232 #undef res_send
21233
21234 /* Override any GCC internal prototype to avoid an error.
21235 Use char because int might match the return type of a GCC
21236 builtin and then its argument prototype would still apply. */
21237 #ifdef __cplusplus
21238 extern "C"
21239 #endif
21240 char res_send ();
21241 /* The GNU C library defines this for functions which it implements
21242 to always fail with ENOSYS. Some functions are actually named
21243 something starting with __ and the normal name is an alias. */
21244 #if defined __stub_res_send || defined __stub___res_send
21245 choke me
21246 #endif
21247
21248 int
21249 main ()
21250 {
21251 return res_send ();
21252 ;
21253 return 0;
21254 }
21255 _ACEOF
21256 rm -f conftest.$ac_objext conftest$ac_exeext
21257 if { (ac_try="$ac_link"
21258 case "(($ac_try" in
21259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21260 *) ac_try_echo=$ac_try;;
21261 esac
21262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21263 (eval "$ac_link") 2>conftest.er1
21264 ac_status=$?
21265 grep -v '^ *+' conftest.er1 >conftest.err
21266 rm -f conftest.er1
21267 cat conftest.err >&5
21268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21269 (exit $ac_status); } &&
21270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21271 { (case "(($ac_try" in
21272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21273 *) ac_try_echo=$ac_try;;
21274 esac
21275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21276 (eval "$ac_try") 2>&5
21277 ac_status=$?
21278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279 (exit $ac_status); }; } &&
21280 { ac_try='test -s conftest$ac_exeext'
21281 { (case "(($ac_try" in
21282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21283 *) ac_try_echo=$ac_try;;
21284 esac
21285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21286 (eval "$ac_try") 2>&5
21287 ac_status=$?
21288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21289 (exit $ac_status); }; }; then
21290 ac_cv_func_res_send=yes
21291 else
21292 echo "$as_me: failed program was:" >&5
21293 sed 's/^/| /' conftest.$ac_ext >&5
21294
21295 ac_cv_func_res_send=no
21296 fi
21297
21298 rm -f core conftest.err conftest.$ac_objext \
21299 conftest$ac_exeext conftest.$ac_ext
21300 fi
21301 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
21302 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
21303 if test $ac_cv_func_res_send = yes; then
21304 :
21305 else
21306 { echo "$as_me:$LINENO: checking for __res_send" >&5
21307 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
21308 if test "${ac_cv_func___res_send+set}" = set; then
21309 echo $ECHO_N "(cached) $ECHO_C" >&6
21310 else
21311 cat >conftest.$ac_ext <<_ACEOF
21312 /* confdefs.h. */
21313 _ACEOF
21314 cat confdefs.h >>conftest.$ac_ext
21315 cat >>conftest.$ac_ext <<_ACEOF
21316 /* end confdefs.h. */
21317 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21319 #define __res_send innocuous___res_send
21320
21321 /* System header to define __stub macros and hopefully few prototypes,
21322 which can conflict with char __res_send (); below.
21323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21324 <limits.h> exists even on freestanding compilers. */
21325
21326 #ifdef __STDC__
21327 # include <limits.h>
21328 #else
21329 # include <assert.h>
21330 #endif
21331
21332 #undef __res_send
21333
21334 /* Override any GCC internal prototype to avoid an error.
21335 Use char because int might match the return type of a GCC
21336 builtin and then its argument prototype would still apply. */
21337 #ifdef __cplusplus
21338 extern "C"
21339 #endif
21340 char __res_send ();
21341 /* The GNU C library defines this for functions which it implements
21342 to always fail with ENOSYS. Some functions are actually named
21343 something starting with __ and the normal name is an alias. */
21344 #if defined __stub___res_send || defined __stub_____res_send
21345 choke me
21346 #endif
21347
21348 int
21349 main ()
21350 {
21351 return __res_send ();
21352 ;
21353 return 0;
21354 }
21355 _ACEOF
21356 rm -f conftest.$ac_objext conftest$ac_exeext
21357 if { (ac_try="$ac_link"
21358 case "(($ac_try" in
21359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21360 *) ac_try_echo=$ac_try;;
21361 esac
21362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21363 (eval "$ac_link") 2>conftest.er1
21364 ac_status=$?
21365 grep -v '^ *+' conftest.er1 >conftest.err
21366 rm -f conftest.er1
21367 cat conftest.err >&5
21368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369 (exit $ac_status); } &&
21370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21371 { (case "(($ac_try" in
21372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21373 *) ac_try_echo=$ac_try;;
21374 esac
21375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21376 (eval "$ac_try") 2>&5
21377 ac_status=$?
21378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379 (exit $ac_status); }; } &&
21380 { ac_try='test -s conftest$ac_exeext'
21381 { (case "(($ac_try" in
21382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21383 *) ac_try_echo=$ac_try;;
21384 esac
21385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21386 (eval "$ac_try") 2>&5
21387 ac_status=$?
21388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21389 (exit $ac_status); }; }; then
21390 ac_cv_func___res_send=yes
21391 else
21392 echo "$as_me: failed program was:" >&5
21393 sed 's/^/| /' conftest.$ac_ext >&5
21394
21395 ac_cv_func___res_send=no
21396 fi
21397
21398 rm -f core conftest.err conftest.$ac_objext \
21399 conftest$ac_exeext conftest.$ac_ext
21400 fi
21401 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
21402 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
21403 if test $ac_cv_func___res_send = yes; then
21404 :
21405 else
21406 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
21407 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
21408 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
21409 echo $ECHO_N "(cached) $ECHO_C" >&6
21410 else
21411 ac_check_lib_save_LIBS=$LIBS
21412 LIBS="-lresolv $LIBS"
21413 cat >conftest.$ac_ext <<_ACEOF
21414 /* confdefs.h. */
21415 _ACEOF
21416 cat confdefs.h >>conftest.$ac_ext
21417 cat >>conftest.$ac_ext <<_ACEOF
21418 /* end confdefs.h. */
21419
21420 /* Override any GCC internal prototype to avoid an error.
21421 Use char because int might match the return type of a GCC
21422 builtin and then its argument prototype would still apply. */
21423 #ifdef __cplusplus
21424 extern "C"
21425 #endif
21426 char res_send ();
21427 int
21428 main ()
21429 {
21430 return res_send ();
21431 ;
21432 return 0;
21433 }
21434 _ACEOF
21435 rm -f conftest.$ac_objext conftest$ac_exeext
21436 if { (ac_try="$ac_link"
21437 case "(($ac_try" in
21438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21439 *) ac_try_echo=$ac_try;;
21440 esac
21441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21442 (eval "$ac_link") 2>conftest.er1
21443 ac_status=$?
21444 grep -v '^ *+' conftest.er1 >conftest.err
21445 rm -f conftest.er1
21446 cat conftest.err >&5
21447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448 (exit $ac_status); } &&
21449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21450 { (case "(($ac_try" in
21451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21452 *) ac_try_echo=$ac_try;;
21453 esac
21454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21455 (eval "$ac_try") 2>&5
21456 ac_status=$?
21457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458 (exit $ac_status); }; } &&
21459 { ac_try='test -s conftest$ac_exeext'
21460 { (case "(($ac_try" in
21461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21462 *) ac_try_echo=$ac_try;;
21463 esac
21464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21465 (eval "$ac_try") 2>&5
21466 ac_status=$?
21467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468 (exit $ac_status); }; }; then
21469 ac_cv_lib_resolv_res_send=yes
21470 else
21471 echo "$as_me: failed program was:" >&5
21472 sed 's/^/| /' conftest.$ac_ext >&5
21473
21474 ac_cv_lib_resolv_res_send=no
21475 fi
21476
21477 rm -f core conftest.err conftest.$ac_objext \
21478 conftest$ac_exeext conftest.$ac_ext
21479 LIBS=$ac_check_lib_save_LIBS
21480 fi
21481 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
21482 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
21483 if test $ac_cv_lib_resolv_res_send = yes; then
21484 resolv=yes
21485 else
21486 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
21487 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
21488 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
21489 echo $ECHO_N "(cached) $ECHO_C" >&6
21490 else
21491 ac_check_lib_save_LIBS=$LIBS
21492 LIBS="-lresolv $LIBS"
21493 cat >conftest.$ac_ext <<_ACEOF
21494 /* confdefs.h. */
21495 _ACEOF
21496 cat confdefs.h >>conftest.$ac_ext
21497 cat >>conftest.$ac_ext <<_ACEOF
21498 /* end confdefs.h. */
21499
21500 /* Override any GCC internal prototype to avoid an error.
21501 Use char because int might match the return type of a GCC
21502 builtin and then its argument prototype would still apply. */
21503 #ifdef __cplusplus
21504 extern "C"
21505 #endif
21506 char __res_send ();
21507 int
21508 main ()
21509 {
21510 return __res_send ();
21511 ;
21512 return 0;
21513 }
21514 _ACEOF
21515 rm -f conftest.$ac_objext conftest$ac_exeext
21516 if { (ac_try="$ac_link"
21517 case "(($ac_try" in
21518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21519 *) ac_try_echo=$ac_try;;
21520 esac
21521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21522 (eval "$ac_link") 2>conftest.er1
21523 ac_status=$?
21524 grep -v '^ *+' conftest.er1 >conftest.err
21525 rm -f conftest.er1
21526 cat conftest.err >&5
21527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21528 (exit $ac_status); } &&
21529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21530 { (case "(($ac_try" in
21531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21532 *) ac_try_echo=$ac_try;;
21533 esac
21534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21535 (eval "$ac_try") 2>&5
21536 ac_status=$?
21537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21538 (exit $ac_status); }; } &&
21539 { ac_try='test -s conftest$ac_exeext'
21540 { (case "(($ac_try" in
21541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21542 *) ac_try_echo=$ac_try;;
21543 esac
21544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21545 (eval "$ac_try") 2>&5
21546 ac_status=$?
21547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548 (exit $ac_status); }; }; then
21549 ac_cv_lib_resolv___res_send=yes
21550 else
21551 echo "$as_me: failed program was:" >&5
21552 sed 's/^/| /' conftest.$ac_ext >&5
21553
21554 ac_cv_lib_resolv___res_send=no
21555 fi
21556
21557 rm -f core conftest.err conftest.$ac_objext \
21558 conftest$ac_exeext conftest.$ac_ext
21559 LIBS=$ac_check_lib_save_LIBS
21560 fi
21561 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
21562 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
21563 if test $ac_cv_lib_resolv___res_send = yes; then
21564 resolv=yes
21565 fi
21566
21567 fi
21568
21569 fi
21570
21571 fi
21572
21573 if test "$resolv" = yes ; then
21574 RESOLVLIB=-lresolv
21575
21576 cat >>confdefs.h <<\_ACEOF
21577 #define HAVE_LIBRESOLV 1
21578 _ACEOF
21579
21580 else
21581 RESOLVLIB=
21582 fi
21583 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
21584 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
21585 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21586 echo $ECHO_N "(cached) $ECHO_C" >&6
21587 else
21588 cat >conftest.$ac_ext <<_ACEOF
21589 /* confdefs.h. */
21590 _ACEOF
21591 cat confdefs.h >>conftest.$ac_ext
21592 cat >>conftest.$ac_ext <<_ACEOF
21593 /* end confdefs.h. */
21594 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21596 #define hes_getmailhost innocuous_hes_getmailhost
21597
21598 /* System header to define __stub macros and hopefully few prototypes,
21599 which can conflict with char hes_getmailhost (); below.
21600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21601 <limits.h> exists even on freestanding compilers. */
21602
21603 #ifdef __STDC__
21604 # include <limits.h>
21605 #else
21606 # include <assert.h>
21607 #endif
21608
21609 #undef hes_getmailhost
21610
21611 /* Override any GCC internal prototype to avoid an error.
21612 Use char because int might match the return type of a GCC
21613 builtin and then its argument prototype would still apply. */
21614 #ifdef __cplusplus
21615 extern "C"
21616 #endif
21617 char hes_getmailhost ();
21618 /* The GNU C library defines this for functions which it implements
21619 to always fail with ENOSYS. Some functions are actually named
21620 something starting with __ and the normal name is an alias. */
21621 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21622 choke me
21623 #endif
21624
21625 int
21626 main ()
21627 {
21628 return hes_getmailhost ();
21629 ;
21630 return 0;
21631 }
21632 _ACEOF
21633 rm -f conftest.$ac_objext conftest$ac_exeext
21634 if { (ac_try="$ac_link"
21635 case "(($ac_try" in
21636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21637 *) ac_try_echo=$ac_try;;
21638 esac
21639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21640 (eval "$ac_link") 2>conftest.er1
21641 ac_status=$?
21642 grep -v '^ *+' conftest.er1 >conftest.err
21643 rm -f conftest.er1
21644 cat conftest.err >&5
21645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646 (exit $ac_status); } &&
21647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21648 { (case "(($ac_try" in
21649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21650 *) ac_try_echo=$ac_try;;
21651 esac
21652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21653 (eval "$ac_try") 2>&5
21654 ac_status=$?
21655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656 (exit $ac_status); }; } &&
21657 { ac_try='test -s conftest$ac_exeext'
21658 { (case "(($ac_try" in
21659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21660 *) ac_try_echo=$ac_try;;
21661 esac
21662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21663 (eval "$ac_try") 2>&5
21664 ac_status=$?
21665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666 (exit $ac_status); }; }; then
21667 ac_cv_func_hes_getmailhost=yes
21668 else
21669 echo "$as_me: failed program was:" >&5
21670 sed 's/^/| /' conftest.$ac_ext >&5
21671
21672 ac_cv_func_hes_getmailhost=no
21673 fi
21674
21675 rm -f core conftest.err conftest.$ac_objext \
21676 conftest$ac_exeext conftest.$ac_ext
21677 fi
21678 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
21679 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
21680 if test $ac_cv_func_hes_getmailhost = yes; then
21681 :
21682 else
21683 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
21684 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
21685 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21686 echo $ECHO_N "(cached) $ECHO_C" >&6
21687 else
21688 ac_check_lib_save_LIBS=$LIBS
21689 LIBS="-lhesiod $RESOLVLIB $LIBS"
21690 cat >conftest.$ac_ext <<_ACEOF
21691 /* confdefs.h. */
21692 _ACEOF
21693 cat confdefs.h >>conftest.$ac_ext
21694 cat >>conftest.$ac_ext <<_ACEOF
21695 /* end confdefs.h. */
21696
21697 /* Override any GCC internal prototype to avoid an error.
21698 Use char because int might match the return type of a GCC
21699 builtin and then its argument prototype would still apply. */
21700 #ifdef __cplusplus
21701 extern "C"
21702 #endif
21703 char hes_getmailhost ();
21704 int
21705 main ()
21706 {
21707 return hes_getmailhost ();
21708 ;
21709 return 0;
21710 }
21711 _ACEOF
21712 rm -f conftest.$ac_objext conftest$ac_exeext
21713 if { (ac_try="$ac_link"
21714 case "(($ac_try" in
21715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21716 *) ac_try_echo=$ac_try;;
21717 esac
21718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21719 (eval "$ac_link") 2>conftest.er1
21720 ac_status=$?
21721 grep -v '^ *+' conftest.er1 >conftest.err
21722 rm -f conftest.er1
21723 cat conftest.err >&5
21724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21725 (exit $ac_status); } &&
21726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21727 { (case "(($ac_try" in
21728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21729 *) ac_try_echo=$ac_try;;
21730 esac
21731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21732 (eval "$ac_try") 2>&5
21733 ac_status=$?
21734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21735 (exit $ac_status); }; } &&
21736 { ac_try='test -s conftest$ac_exeext'
21737 { (case "(($ac_try" in
21738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21739 *) ac_try_echo=$ac_try;;
21740 esac
21741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21742 (eval "$ac_try") 2>&5
21743 ac_status=$?
21744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21745 (exit $ac_status); }; }; then
21746 ac_cv_lib_hesiod_hes_getmailhost=yes
21747 else
21748 echo "$as_me: failed program was:" >&5
21749 sed 's/^/| /' conftest.$ac_ext >&5
21750
21751 ac_cv_lib_hesiod_hes_getmailhost=no
21752 fi
21753
21754 rm -f core conftest.err conftest.$ac_objext \
21755 conftest$ac_exeext conftest.$ac_ext
21756 LIBS=$ac_check_lib_save_LIBS
21757 fi
21758 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21759 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21760 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
21761
21762 cat >>confdefs.h <<\_ACEOF
21763 #define HAVE_LIBHESIOD 1
21764 _ACEOF
21765
21766 else
21767 :
21768 fi
21769
21770 fi
21771
21772 fi
21773
21774 # These tell us which Kerberos-related libraries to use.
21775 if test "${with_kerberos+set}" = set; then
21776
21777 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
21778 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
21779 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
21780 echo $ECHO_N "(cached) $ECHO_C" >&6
21781 else
21782 ac_check_lib_save_LIBS=$LIBS
21783 LIBS="-lcom_err $LIBS"
21784 cat >conftest.$ac_ext <<_ACEOF
21785 /* confdefs.h. */
21786 _ACEOF
21787 cat confdefs.h >>conftest.$ac_ext
21788 cat >>conftest.$ac_ext <<_ACEOF
21789 /* end confdefs.h. */
21790
21791 /* Override any GCC internal prototype to avoid an error.
21792 Use char because int might match the return type of a GCC
21793 builtin and then its argument prototype would still apply. */
21794 #ifdef __cplusplus
21795 extern "C"
21796 #endif
21797 char com_err ();
21798 int
21799 main ()
21800 {
21801 return com_err ();
21802 ;
21803 return 0;
21804 }
21805 _ACEOF
21806 rm -f conftest.$ac_objext conftest$ac_exeext
21807 if { (ac_try="$ac_link"
21808 case "(($ac_try" in
21809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21810 *) ac_try_echo=$ac_try;;
21811 esac
21812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21813 (eval "$ac_link") 2>conftest.er1
21814 ac_status=$?
21815 grep -v '^ *+' conftest.er1 >conftest.err
21816 rm -f conftest.er1
21817 cat conftest.err >&5
21818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819 (exit $ac_status); } &&
21820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21821 { (case "(($ac_try" in
21822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21823 *) ac_try_echo=$ac_try;;
21824 esac
21825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21826 (eval "$ac_try") 2>&5
21827 ac_status=$?
21828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21829 (exit $ac_status); }; } &&
21830 { ac_try='test -s conftest$ac_exeext'
21831 { (case "(($ac_try" in
21832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21833 *) ac_try_echo=$ac_try;;
21834 esac
21835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21836 (eval "$ac_try") 2>&5
21837 ac_status=$?
21838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21839 (exit $ac_status); }; }; then
21840 ac_cv_lib_com_err_com_err=yes
21841 else
21842 echo "$as_me: failed program was:" >&5
21843 sed 's/^/| /' conftest.$ac_ext >&5
21844
21845 ac_cv_lib_com_err_com_err=no
21846 fi
21847
21848 rm -f core conftest.err conftest.$ac_objext \
21849 conftest$ac_exeext conftest.$ac_ext
21850 LIBS=$ac_check_lib_save_LIBS
21851 fi
21852 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
21853 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
21854 if test $ac_cv_lib_com_err_com_err = yes; then
21855 cat >>confdefs.h <<_ACEOF
21856 #define HAVE_LIBCOM_ERR 1
21857 _ACEOF
21858
21859 LIBS="-lcom_err $LIBS"
21860
21861 fi
21862
21863
21864 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
21865 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
21866 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
21867 echo $ECHO_N "(cached) $ECHO_C" >&6
21868 else
21869 ac_check_lib_save_LIBS=$LIBS
21870 LIBS="-lk5crypto $LIBS"
21871 cat >conftest.$ac_ext <<_ACEOF
21872 /* confdefs.h. */
21873 _ACEOF
21874 cat confdefs.h >>conftest.$ac_ext
21875 cat >>conftest.$ac_ext <<_ACEOF
21876 /* end confdefs.h. */
21877
21878 /* Override any GCC internal prototype to avoid an error.
21879 Use char because int might match the return type of a GCC
21880 builtin and then its argument prototype would still apply. */
21881 #ifdef __cplusplus
21882 extern "C"
21883 #endif
21884 char mit_des_cbc_encrypt ();
21885 int
21886 main ()
21887 {
21888 return mit_des_cbc_encrypt ();
21889 ;
21890 return 0;
21891 }
21892 _ACEOF
21893 rm -f conftest.$ac_objext conftest$ac_exeext
21894 if { (ac_try="$ac_link"
21895 case "(($ac_try" in
21896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21897 *) ac_try_echo=$ac_try;;
21898 esac
21899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21900 (eval "$ac_link") 2>conftest.er1
21901 ac_status=$?
21902 grep -v '^ *+' conftest.er1 >conftest.err
21903 rm -f conftest.er1
21904 cat conftest.err >&5
21905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906 (exit $ac_status); } &&
21907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21908 { (case "(($ac_try" in
21909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21910 *) ac_try_echo=$ac_try;;
21911 esac
21912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21913 (eval "$ac_try") 2>&5
21914 ac_status=$?
21915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916 (exit $ac_status); }; } &&
21917 { ac_try='test -s conftest$ac_exeext'
21918 { (case "(($ac_try" in
21919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21920 *) ac_try_echo=$ac_try;;
21921 esac
21922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21923 (eval "$ac_try") 2>&5
21924 ac_status=$?
21925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21926 (exit $ac_status); }; }; then
21927 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
21928 else
21929 echo "$as_me: failed program was:" >&5
21930 sed 's/^/| /' conftest.$ac_ext >&5
21931
21932 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
21933 fi
21934
21935 rm -f core conftest.err conftest.$ac_objext \
21936 conftest$ac_exeext conftest.$ac_ext
21937 LIBS=$ac_check_lib_save_LIBS
21938 fi
21939 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
21940 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
21941 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
21942 cat >>confdefs.h <<_ACEOF
21943 #define HAVE_LIBK5CRYPTO 1
21944 _ACEOF
21945
21946 LIBS="-lk5crypto $LIBS"
21947
21948 fi
21949
21950
21951 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
21952 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
21953 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
21954 echo $ECHO_N "(cached) $ECHO_C" >&6
21955 else
21956 ac_check_lib_save_LIBS=$LIBS
21957 LIBS="-lcrypto $LIBS"
21958 cat >conftest.$ac_ext <<_ACEOF
21959 /* confdefs.h. */
21960 _ACEOF
21961 cat confdefs.h >>conftest.$ac_ext
21962 cat >>conftest.$ac_ext <<_ACEOF
21963 /* end confdefs.h. */
21964
21965 /* Override any GCC internal prototype to avoid an error.
21966 Use char because int might match the return type of a GCC
21967 builtin and then its argument prototype would still apply. */
21968 #ifdef __cplusplus
21969 extern "C"
21970 #endif
21971 char mit_des_cbc_encrypt ();
21972 int
21973 main ()
21974 {
21975 return mit_des_cbc_encrypt ();
21976 ;
21977 return 0;
21978 }
21979 _ACEOF
21980 rm -f conftest.$ac_objext conftest$ac_exeext
21981 if { (ac_try="$ac_link"
21982 case "(($ac_try" in
21983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21984 *) ac_try_echo=$ac_try;;
21985 esac
21986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21987 (eval "$ac_link") 2>conftest.er1
21988 ac_status=$?
21989 grep -v '^ *+' conftest.er1 >conftest.err
21990 rm -f conftest.er1
21991 cat conftest.err >&5
21992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21993 (exit $ac_status); } &&
21994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21995 { (case "(($ac_try" in
21996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21997 *) ac_try_echo=$ac_try;;
21998 esac
21999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22000 (eval "$ac_try") 2>&5
22001 ac_status=$?
22002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22003 (exit $ac_status); }; } &&
22004 { ac_try='test -s conftest$ac_exeext'
22005 { (case "(($ac_try" in
22006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22007 *) ac_try_echo=$ac_try;;
22008 esac
22009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22010 (eval "$ac_try") 2>&5
22011 ac_status=$?
22012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013 (exit $ac_status); }; }; then
22014 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
22015 else
22016 echo "$as_me: failed program was:" >&5
22017 sed 's/^/| /' conftest.$ac_ext >&5
22018
22019 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22020 fi
22021
22022 rm -f core conftest.err conftest.$ac_objext \
22023 conftest$ac_exeext conftest.$ac_ext
22024 LIBS=$ac_check_lib_save_LIBS
22025 fi
22026 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22027 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22028 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
22029 cat >>confdefs.h <<_ACEOF
22030 #define HAVE_LIBCRYPTO 1
22031 _ACEOF
22032
22033 LIBS="-lcrypto $LIBS"
22034
22035 fi
22036
22037
22038 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
22039 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
22040 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
22041 echo $ECHO_N "(cached) $ECHO_C" >&6
22042 else
22043 ac_check_lib_save_LIBS=$LIBS
22044 LIBS="-lkrb5 $LIBS"
22045 cat >conftest.$ac_ext <<_ACEOF
22046 /* confdefs.h. */
22047 _ACEOF
22048 cat confdefs.h >>conftest.$ac_ext
22049 cat >>conftest.$ac_ext <<_ACEOF
22050 /* end confdefs.h. */
22051
22052 /* Override any GCC internal prototype to avoid an error.
22053 Use char because int might match the return type of a GCC
22054 builtin and then its argument prototype would still apply. */
22055 #ifdef __cplusplus
22056 extern "C"
22057 #endif
22058 char krb5_init_context ();
22059 int
22060 main ()
22061 {
22062 return krb5_init_context ();
22063 ;
22064 return 0;
22065 }
22066 _ACEOF
22067 rm -f conftest.$ac_objext conftest$ac_exeext
22068 if { (ac_try="$ac_link"
22069 case "(($ac_try" in
22070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22071 *) ac_try_echo=$ac_try;;
22072 esac
22073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22074 (eval "$ac_link") 2>conftest.er1
22075 ac_status=$?
22076 grep -v '^ *+' conftest.er1 >conftest.err
22077 rm -f conftest.er1
22078 cat conftest.err >&5
22079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22080 (exit $ac_status); } &&
22081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22082 { (case "(($ac_try" in
22083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22084 *) ac_try_echo=$ac_try;;
22085 esac
22086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22087 (eval "$ac_try") 2>&5
22088 ac_status=$?
22089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090 (exit $ac_status); }; } &&
22091 { ac_try='test -s conftest$ac_exeext'
22092 { (case "(($ac_try" in
22093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22094 *) ac_try_echo=$ac_try;;
22095 esac
22096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22097 (eval "$ac_try") 2>&5
22098 ac_status=$?
22099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22100 (exit $ac_status); }; }; then
22101 ac_cv_lib_krb5_krb5_init_context=yes
22102 else
22103 echo "$as_me: failed program was:" >&5
22104 sed 's/^/| /' conftest.$ac_ext >&5
22105
22106 ac_cv_lib_krb5_krb5_init_context=no
22107 fi
22108
22109 rm -f core conftest.err conftest.$ac_objext \
22110 conftest$ac_exeext conftest.$ac_ext
22111 LIBS=$ac_check_lib_save_LIBS
22112 fi
22113 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
22114 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
22115 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
22116 cat >>confdefs.h <<_ACEOF
22117 #define HAVE_LIBKRB5 1
22118 _ACEOF
22119
22120 LIBS="-lkrb5 $LIBS"
22121
22122 fi
22123
22124 if test "${with_kerberos5+set}" != set; then
22125
22126 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
22127 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
22128 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
22129 echo $ECHO_N "(cached) $ECHO_C" >&6
22130 else
22131 ac_check_lib_save_LIBS=$LIBS
22132 LIBS="-ldes425 $LIBS"
22133 cat >conftest.$ac_ext <<_ACEOF
22134 /* confdefs.h. */
22135 _ACEOF
22136 cat confdefs.h >>conftest.$ac_ext
22137 cat >>conftest.$ac_ext <<_ACEOF
22138 /* end confdefs.h. */
22139
22140 /* Override any GCC internal prototype to avoid an error.
22141 Use char because int might match the return type of a GCC
22142 builtin and then its argument prototype would still apply. */
22143 #ifdef __cplusplus
22144 extern "C"
22145 #endif
22146 char des_cbc_encrypt ();
22147 int
22148 main ()
22149 {
22150 return des_cbc_encrypt ();
22151 ;
22152 return 0;
22153 }
22154 _ACEOF
22155 rm -f conftest.$ac_objext conftest$ac_exeext
22156 if { (ac_try="$ac_link"
22157 case "(($ac_try" in
22158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22159 *) ac_try_echo=$ac_try;;
22160 esac
22161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22162 (eval "$ac_link") 2>conftest.er1
22163 ac_status=$?
22164 grep -v '^ *+' conftest.er1 >conftest.err
22165 rm -f conftest.er1
22166 cat conftest.err >&5
22167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22168 (exit $ac_status); } &&
22169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22170 { (case "(($ac_try" in
22171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22172 *) ac_try_echo=$ac_try;;
22173 esac
22174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22175 (eval "$ac_try") 2>&5
22176 ac_status=$?
22177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22178 (exit $ac_status); }; } &&
22179 { ac_try='test -s conftest$ac_exeext'
22180 { (case "(($ac_try" in
22181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22182 *) ac_try_echo=$ac_try;;
22183 esac
22184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22185 (eval "$ac_try") 2>&5
22186 ac_status=$?
22187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22188 (exit $ac_status); }; }; then
22189 ac_cv_lib_des425_des_cbc_encrypt=yes
22190 else
22191 echo "$as_me: failed program was:" >&5
22192 sed 's/^/| /' conftest.$ac_ext >&5
22193
22194 ac_cv_lib_des425_des_cbc_encrypt=no
22195 fi
22196
22197 rm -f core conftest.err conftest.$ac_objext \
22198 conftest$ac_exeext conftest.$ac_ext
22199 LIBS=$ac_check_lib_save_LIBS
22200 fi
22201 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22202 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22203 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
22204 cat >>confdefs.h <<_ACEOF
22205 #define HAVE_LIBDES425 1
22206 _ACEOF
22207
22208 LIBS="-ldes425 $LIBS"
22209
22210 else
22211
22212 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
22213 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
22214 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22215 echo $ECHO_N "(cached) $ECHO_C" >&6
22216 else
22217 ac_check_lib_save_LIBS=$LIBS
22218 LIBS="-ldes $LIBS"
22219 cat >conftest.$ac_ext <<_ACEOF
22220 /* confdefs.h. */
22221 _ACEOF
22222 cat confdefs.h >>conftest.$ac_ext
22223 cat >>conftest.$ac_ext <<_ACEOF
22224 /* end confdefs.h. */
22225
22226 /* Override any GCC internal prototype to avoid an error.
22227 Use char because int might match the return type of a GCC
22228 builtin and then its argument prototype would still apply. */
22229 #ifdef __cplusplus
22230 extern "C"
22231 #endif
22232 char des_cbc_encrypt ();
22233 int
22234 main ()
22235 {
22236 return des_cbc_encrypt ();
22237 ;
22238 return 0;
22239 }
22240 _ACEOF
22241 rm -f conftest.$ac_objext conftest$ac_exeext
22242 if { (ac_try="$ac_link"
22243 case "(($ac_try" in
22244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22245 *) ac_try_echo=$ac_try;;
22246 esac
22247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22248 (eval "$ac_link") 2>conftest.er1
22249 ac_status=$?
22250 grep -v '^ *+' conftest.er1 >conftest.err
22251 rm -f conftest.er1
22252 cat conftest.err >&5
22253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22254 (exit $ac_status); } &&
22255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22256 { (case "(($ac_try" in
22257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22258 *) ac_try_echo=$ac_try;;
22259 esac
22260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22261 (eval "$ac_try") 2>&5
22262 ac_status=$?
22263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22264 (exit $ac_status); }; } &&
22265 { ac_try='test -s conftest$ac_exeext'
22266 { (case "(($ac_try" in
22267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22268 *) ac_try_echo=$ac_try;;
22269 esac
22270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22271 (eval "$ac_try") 2>&5
22272 ac_status=$?
22273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22274 (exit $ac_status); }; }; then
22275 ac_cv_lib_des_des_cbc_encrypt=yes
22276 else
22277 echo "$as_me: failed program was:" >&5
22278 sed 's/^/| /' conftest.$ac_ext >&5
22279
22280 ac_cv_lib_des_des_cbc_encrypt=no
22281 fi
22282
22283 rm -f core conftest.err conftest.$ac_objext \
22284 conftest$ac_exeext conftest.$ac_ext
22285 LIBS=$ac_check_lib_save_LIBS
22286 fi
22287 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
22288 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22289 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
22290 cat >>confdefs.h <<_ACEOF
22291 #define HAVE_LIBDES 1
22292 _ACEOF
22293
22294 LIBS="-ldes $LIBS"
22295
22296 fi
22297
22298 fi
22299
22300
22301 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
22302 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
22303 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22304 echo $ECHO_N "(cached) $ECHO_C" >&6
22305 else
22306 ac_check_lib_save_LIBS=$LIBS
22307 LIBS="-lkrb4 $LIBS"
22308 cat >conftest.$ac_ext <<_ACEOF
22309 /* confdefs.h. */
22310 _ACEOF
22311 cat confdefs.h >>conftest.$ac_ext
22312 cat >>conftest.$ac_ext <<_ACEOF
22313 /* end confdefs.h. */
22314
22315 /* Override any GCC internal prototype to avoid an error.
22316 Use char because int might match the return type of a GCC
22317 builtin and then its argument prototype would still apply. */
22318 #ifdef __cplusplus
22319 extern "C"
22320 #endif
22321 char krb_get_cred ();
22322 int
22323 main ()
22324 {
22325 return krb_get_cred ();
22326 ;
22327 return 0;
22328 }
22329 _ACEOF
22330 rm -f conftest.$ac_objext conftest$ac_exeext
22331 if { (ac_try="$ac_link"
22332 case "(($ac_try" in
22333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22334 *) ac_try_echo=$ac_try;;
22335 esac
22336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22337 (eval "$ac_link") 2>conftest.er1
22338 ac_status=$?
22339 grep -v '^ *+' conftest.er1 >conftest.err
22340 rm -f conftest.er1
22341 cat conftest.err >&5
22342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22343 (exit $ac_status); } &&
22344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22345 { (case "(($ac_try" in
22346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22347 *) ac_try_echo=$ac_try;;
22348 esac
22349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22350 (eval "$ac_try") 2>&5
22351 ac_status=$?
22352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22353 (exit $ac_status); }; } &&
22354 { ac_try='test -s conftest$ac_exeext'
22355 { (case "(($ac_try" in
22356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22357 *) ac_try_echo=$ac_try;;
22358 esac
22359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22360 (eval "$ac_try") 2>&5
22361 ac_status=$?
22362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22363 (exit $ac_status); }; }; then
22364 ac_cv_lib_krb4_krb_get_cred=yes
22365 else
22366 echo "$as_me: failed program was:" >&5
22367 sed 's/^/| /' conftest.$ac_ext >&5
22368
22369 ac_cv_lib_krb4_krb_get_cred=no
22370 fi
22371
22372 rm -f core conftest.err conftest.$ac_objext \
22373 conftest$ac_exeext conftest.$ac_ext
22374 LIBS=$ac_check_lib_save_LIBS
22375 fi
22376 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
22377 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
22378 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
22379 cat >>confdefs.h <<_ACEOF
22380 #define HAVE_LIBKRB4 1
22381 _ACEOF
22382
22383 LIBS="-lkrb4 $LIBS"
22384
22385 else
22386
22387 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
22388 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
22389 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22390 echo $ECHO_N "(cached) $ECHO_C" >&6
22391 else
22392 ac_check_lib_save_LIBS=$LIBS
22393 LIBS="-lkrb $LIBS"
22394 cat >conftest.$ac_ext <<_ACEOF
22395 /* confdefs.h. */
22396 _ACEOF
22397 cat confdefs.h >>conftest.$ac_ext
22398 cat >>conftest.$ac_ext <<_ACEOF
22399 /* end confdefs.h. */
22400
22401 /* Override any GCC internal prototype to avoid an error.
22402 Use char because int might match the return type of a GCC
22403 builtin and then its argument prototype would still apply. */
22404 #ifdef __cplusplus
22405 extern "C"
22406 #endif
22407 char krb_get_cred ();
22408 int
22409 main ()
22410 {
22411 return krb_get_cred ();
22412 ;
22413 return 0;
22414 }
22415 _ACEOF
22416 rm -f conftest.$ac_objext conftest$ac_exeext
22417 if { (ac_try="$ac_link"
22418 case "(($ac_try" in
22419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22420 *) ac_try_echo=$ac_try;;
22421 esac
22422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22423 (eval "$ac_link") 2>conftest.er1
22424 ac_status=$?
22425 grep -v '^ *+' conftest.er1 >conftest.err
22426 rm -f conftest.er1
22427 cat conftest.err >&5
22428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22429 (exit $ac_status); } &&
22430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22431 { (case "(($ac_try" in
22432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22433 *) ac_try_echo=$ac_try;;
22434 esac
22435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22436 (eval "$ac_try") 2>&5
22437 ac_status=$?
22438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22439 (exit $ac_status); }; } &&
22440 { ac_try='test -s conftest$ac_exeext'
22441 { (case "(($ac_try" in
22442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22443 *) ac_try_echo=$ac_try;;
22444 esac
22445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22446 (eval "$ac_try") 2>&5
22447 ac_status=$?
22448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449 (exit $ac_status); }; }; then
22450 ac_cv_lib_krb_krb_get_cred=yes
22451 else
22452 echo "$as_me: failed program was:" >&5
22453 sed 's/^/| /' conftest.$ac_ext >&5
22454
22455 ac_cv_lib_krb_krb_get_cred=no
22456 fi
22457
22458 rm -f core conftest.err conftest.$ac_objext \
22459 conftest$ac_exeext conftest.$ac_ext
22460 LIBS=$ac_check_lib_save_LIBS
22461 fi
22462 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
22463 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
22464 if test $ac_cv_lib_krb_krb_get_cred = yes; then
22465 cat >>confdefs.h <<_ACEOF
22466 #define HAVE_LIBKRB 1
22467 _ACEOF
22468
22469 LIBS="-lkrb $LIBS"
22470
22471 fi
22472
22473 fi
22474
22475 fi
22476
22477 if test "${with_kerberos5+set}" = set; then
22478
22479 for ac_header in krb5.h
22480 do
22481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22483 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22486 echo $ECHO_N "(cached) $ECHO_C" >&6
22487 fi
22488 ac_res=`eval echo '${'$as_ac_Header'}'`
22489 { echo "$as_me:$LINENO: result: $ac_res" >&5
22490 echo "${ECHO_T}$ac_res" >&6; }
22491 else
22492 # Is the header compilable?
22493 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22494 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22495 cat >conftest.$ac_ext <<_ACEOF
22496 /* confdefs.h. */
22497 _ACEOF
22498 cat confdefs.h >>conftest.$ac_ext
22499 cat >>conftest.$ac_ext <<_ACEOF
22500 /* end confdefs.h. */
22501 $ac_includes_default
22502 #include <$ac_header>
22503 _ACEOF
22504 rm -f conftest.$ac_objext
22505 if { (ac_try="$ac_compile"
22506 case "(($ac_try" in
22507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22508 *) ac_try_echo=$ac_try;;
22509 esac
22510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22511 (eval "$ac_compile") 2>conftest.er1
22512 ac_status=$?
22513 grep -v '^ *+' conftest.er1 >conftest.err
22514 rm -f conftest.er1
22515 cat conftest.err >&5
22516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22517 (exit $ac_status); } &&
22518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22519 { (case "(($ac_try" in
22520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22521 *) ac_try_echo=$ac_try;;
22522 esac
22523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22524 (eval "$ac_try") 2>&5
22525 ac_status=$?
22526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527 (exit $ac_status); }; } &&
22528 { ac_try='test -s conftest.$ac_objext'
22529 { (case "(($ac_try" in
22530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22531 *) ac_try_echo=$ac_try;;
22532 esac
22533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22534 (eval "$ac_try") 2>&5
22535 ac_status=$?
22536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22537 (exit $ac_status); }; }; then
22538 ac_header_compiler=yes
22539 else
22540 echo "$as_me: failed program was:" >&5
22541 sed 's/^/| /' conftest.$ac_ext >&5
22542
22543 ac_header_compiler=no
22544 fi
22545
22546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22547 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22548 echo "${ECHO_T}$ac_header_compiler" >&6; }
22549
22550 # Is the header present?
22551 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22552 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22553 cat >conftest.$ac_ext <<_ACEOF
22554 /* confdefs.h. */
22555 _ACEOF
22556 cat confdefs.h >>conftest.$ac_ext
22557 cat >>conftest.$ac_ext <<_ACEOF
22558 /* end confdefs.h. */
22559 #include <$ac_header>
22560 _ACEOF
22561 if { (ac_try="$ac_cpp conftest.$ac_ext"
22562 case "(($ac_try" in
22563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22564 *) ac_try_echo=$ac_try;;
22565 esac
22566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22567 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22568 ac_status=$?
22569 grep -v '^ *+' conftest.er1 >conftest.err
22570 rm -f conftest.er1
22571 cat conftest.err >&5
22572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22573 (exit $ac_status); } >/dev/null; then
22574 if test -s conftest.err; then
22575 ac_cpp_err=$ac_c_preproc_warn_flag
22576 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22577 else
22578 ac_cpp_err=
22579 fi
22580 else
22581 ac_cpp_err=yes
22582 fi
22583 if test -z "$ac_cpp_err"; then
22584 ac_header_preproc=yes
22585 else
22586 echo "$as_me: failed program was:" >&5
22587 sed 's/^/| /' conftest.$ac_ext >&5
22588
22589 ac_header_preproc=no
22590 fi
22591
22592 rm -f conftest.err conftest.$ac_ext
22593 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22594 echo "${ECHO_T}$ac_header_preproc" >&6; }
22595
22596 # So? What about this header?
22597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22598 yes:no: )
22599 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22600 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22602 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22603 ac_header_preproc=yes
22604 ;;
22605 no:yes:* )
22606 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22607 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22608 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22609 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22610 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22611 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22612 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22613 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22615 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22616 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22617 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22618
22619 ;;
22620 esac
22621 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22624 echo $ECHO_N "(cached) $ECHO_C" >&6
22625 else
22626 eval "$as_ac_Header=\$ac_header_preproc"
22627 fi
22628 ac_res=`eval echo '${'$as_ac_Header'}'`
22629 { echo "$as_me:$LINENO: result: $ac_res" >&5
22630 echo "${ECHO_T}$ac_res" >&6; }
22631
22632 fi
22633 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22634 cat >>confdefs.h <<_ACEOF
22635 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22636 _ACEOF
22637
22638 fi
22639
22640 done
22641
22642 else
22643
22644 for ac_header in des.h
22645 do
22646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22651 echo $ECHO_N "(cached) $ECHO_C" >&6
22652 fi
22653 ac_res=`eval echo '${'$as_ac_Header'}'`
22654 { echo "$as_me:$LINENO: result: $ac_res" >&5
22655 echo "${ECHO_T}$ac_res" >&6; }
22656 else
22657 # Is the header compilable?
22658 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22660 cat >conftest.$ac_ext <<_ACEOF
22661 /* confdefs.h. */
22662 _ACEOF
22663 cat confdefs.h >>conftest.$ac_ext
22664 cat >>conftest.$ac_ext <<_ACEOF
22665 /* end confdefs.h. */
22666 $ac_includes_default
22667 #include <$ac_header>
22668 _ACEOF
22669 rm -f conftest.$ac_objext
22670 if { (ac_try="$ac_compile"
22671 case "(($ac_try" in
22672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22673 *) ac_try_echo=$ac_try;;
22674 esac
22675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22676 (eval "$ac_compile") 2>conftest.er1
22677 ac_status=$?
22678 grep -v '^ *+' conftest.er1 >conftest.err
22679 rm -f conftest.er1
22680 cat conftest.err >&5
22681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22682 (exit $ac_status); } &&
22683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22684 { (case "(($ac_try" in
22685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22686 *) ac_try_echo=$ac_try;;
22687 esac
22688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22689 (eval "$ac_try") 2>&5
22690 ac_status=$?
22691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22692 (exit $ac_status); }; } &&
22693 { ac_try='test -s conftest.$ac_objext'
22694 { (case "(($ac_try" in
22695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22696 *) ac_try_echo=$ac_try;;
22697 esac
22698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22699 (eval "$ac_try") 2>&5
22700 ac_status=$?
22701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22702 (exit $ac_status); }; }; then
22703 ac_header_compiler=yes
22704 else
22705 echo "$as_me: failed program was:" >&5
22706 sed 's/^/| /' conftest.$ac_ext >&5
22707
22708 ac_header_compiler=no
22709 fi
22710
22711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22712 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22713 echo "${ECHO_T}$ac_header_compiler" >&6; }
22714
22715 # Is the header present?
22716 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22717 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22718 cat >conftest.$ac_ext <<_ACEOF
22719 /* confdefs.h. */
22720 _ACEOF
22721 cat confdefs.h >>conftest.$ac_ext
22722 cat >>conftest.$ac_ext <<_ACEOF
22723 /* end confdefs.h. */
22724 #include <$ac_header>
22725 _ACEOF
22726 if { (ac_try="$ac_cpp conftest.$ac_ext"
22727 case "(($ac_try" in
22728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22729 *) ac_try_echo=$ac_try;;
22730 esac
22731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22733 ac_status=$?
22734 grep -v '^ *+' conftest.er1 >conftest.err
22735 rm -f conftest.er1
22736 cat conftest.err >&5
22737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22738 (exit $ac_status); } >/dev/null; then
22739 if test -s conftest.err; then
22740 ac_cpp_err=$ac_c_preproc_warn_flag
22741 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22742 else
22743 ac_cpp_err=
22744 fi
22745 else
22746 ac_cpp_err=yes
22747 fi
22748 if test -z "$ac_cpp_err"; then
22749 ac_header_preproc=yes
22750 else
22751 echo "$as_me: failed program was:" >&5
22752 sed 's/^/| /' conftest.$ac_ext >&5
22753
22754 ac_header_preproc=no
22755 fi
22756
22757 rm -f conftest.err conftest.$ac_ext
22758 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22759 echo "${ECHO_T}$ac_header_preproc" >&6; }
22760
22761 # So? What about this header?
22762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22763 yes:no: )
22764 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22765 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22767 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22768 ac_header_preproc=yes
22769 ;;
22770 no:yes:* )
22771 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22772 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22773 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22774 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22775 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22776 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22777 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22778 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22780 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22781 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22782 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22783
22784 ;;
22785 esac
22786 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22789 echo $ECHO_N "(cached) $ECHO_C" >&6
22790 else
22791 eval "$as_ac_Header=\$ac_header_preproc"
22792 fi
22793 ac_res=`eval echo '${'$as_ac_Header'}'`
22794 { echo "$as_me:$LINENO: result: $ac_res" >&5
22795 echo "${ECHO_T}$ac_res" >&6; }
22796
22797 fi
22798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22799 cat >>confdefs.h <<_ACEOF
22800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22801 _ACEOF
22802
22803 else
22804
22805 for ac_header in kerberosIV/des.h
22806 do
22807 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22809 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22812 echo $ECHO_N "(cached) $ECHO_C" >&6
22813 fi
22814 ac_res=`eval echo '${'$as_ac_Header'}'`
22815 { echo "$as_me:$LINENO: result: $ac_res" >&5
22816 echo "${ECHO_T}$ac_res" >&6; }
22817 else
22818 # Is the header compilable?
22819 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22821 cat >conftest.$ac_ext <<_ACEOF
22822 /* confdefs.h. */
22823 _ACEOF
22824 cat confdefs.h >>conftest.$ac_ext
22825 cat >>conftest.$ac_ext <<_ACEOF
22826 /* end confdefs.h. */
22827 $ac_includes_default
22828 #include <$ac_header>
22829 _ACEOF
22830 rm -f conftest.$ac_objext
22831 if { (ac_try="$ac_compile"
22832 case "(($ac_try" in
22833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22834 *) ac_try_echo=$ac_try;;
22835 esac
22836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22837 (eval "$ac_compile") 2>conftest.er1
22838 ac_status=$?
22839 grep -v '^ *+' conftest.er1 >conftest.err
22840 rm -f conftest.er1
22841 cat conftest.err >&5
22842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22843 (exit $ac_status); } &&
22844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22845 { (case "(($ac_try" in
22846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22847 *) ac_try_echo=$ac_try;;
22848 esac
22849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22850 (eval "$ac_try") 2>&5
22851 ac_status=$?
22852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22853 (exit $ac_status); }; } &&
22854 { ac_try='test -s conftest.$ac_objext'
22855 { (case "(($ac_try" in
22856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22857 *) ac_try_echo=$ac_try;;
22858 esac
22859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22860 (eval "$ac_try") 2>&5
22861 ac_status=$?
22862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22863 (exit $ac_status); }; }; then
22864 ac_header_compiler=yes
22865 else
22866 echo "$as_me: failed program was:" >&5
22867 sed 's/^/| /' conftest.$ac_ext >&5
22868
22869 ac_header_compiler=no
22870 fi
22871
22872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22873 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22874 echo "${ECHO_T}$ac_header_compiler" >&6; }
22875
22876 # Is the header present?
22877 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22878 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22879 cat >conftest.$ac_ext <<_ACEOF
22880 /* confdefs.h. */
22881 _ACEOF
22882 cat confdefs.h >>conftest.$ac_ext
22883 cat >>conftest.$ac_ext <<_ACEOF
22884 /* end confdefs.h. */
22885 #include <$ac_header>
22886 _ACEOF
22887 if { (ac_try="$ac_cpp conftest.$ac_ext"
22888 case "(($ac_try" in
22889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22890 *) ac_try_echo=$ac_try;;
22891 esac
22892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22894 ac_status=$?
22895 grep -v '^ *+' conftest.er1 >conftest.err
22896 rm -f conftest.er1
22897 cat conftest.err >&5
22898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22899 (exit $ac_status); } >/dev/null; then
22900 if test -s conftest.err; then
22901 ac_cpp_err=$ac_c_preproc_warn_flag
22902 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22903 else
22904 ac_cpp_err=
22905 fi
22906 else
22907 ac_cpp_err=yes
22908 fi
22909 if test -z "$ac_cpp_err"; then
22910 ac_header_preproc=yes
22911 else
22912 echo "$as_me: failed program was:" >&5
22913 sed 's/^/| /' conftest.$ac_ext >&5
22914
22915 ac_header_preproc=no
22916 fi
22917
22918 rm -f conftest.err conftest.$ac_ext
22919 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22920 echo "${ECHO_T}$ac_header_preproc" >&6; }
22921
22922 # So? What about this header?
22923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22924 yes:no: )
22925 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22926 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22928 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22929 ac_header_preproc=yes
22930 ;;
22931 no:yes:* )
22932 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22933 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22934 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22935 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22936 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22937 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22938 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22939 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22941 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22942 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22943 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22944
22945 ;;
22946 esac
22947 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22950 echo $ECHO_N "(cached) $ECHO_C" >&6
22951 else
22952 eval "$as_ac_Header=\$ac_header_preproc"
22953 fi
22954 ac_res=`eval echo '${'$as_ac_Header'}'`
22955 { echo "$as_me:$LINENO: result: $ac_res" >&5
22956 echo "${ECHO_T}$ac_res" >&6; }
22957
22958 fi
22959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22960 cat >>confdefs.h <<_ACEOF
22961 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22962 _ACEOF
22963
22964 else
22965
22966 for ac_header in kerberos/des.h
22967 do
22968 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22970 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22973 echo $ECHO_N "(cached) $ECHO_C" >&6
22974 fi
22975 ac_res=`eval echo '${'$as_ac_Header'}'`
22976 { echo "$as_me:$LINENO: result: $ac_res" >&5
22977 echo "${ECHO_T}$ac_res" >&6; }
22978 else
22979 # Is the header compilable?
22980 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22981 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22982 cat >conftest.$ac_ext <<_ACEOF
22983 /* confdefs.h. */
22984 _ACEOF
22985 cat confdefs.h >>conftest.$ac_ext
22986 cat >>conftest.$ac_ext <<_ACEOF
22987 /* end confdefs.h. */
22988 $ac_includes_default
22989 #include <$ac_header>
22990 _ACEOF
22991 rm -f conftest.$ac_objext
22992 if { (ac_try="$ac_compile"
22993 case "(($ac_try" in
22994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22995 *) ac_try_echo=$ac_try;;
22996 esac
22997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22998 (eval "$ac_compile") 2>conftest.er1
22999 ac_status=$?
23000 grep -v '^ *+' conftest.er1 >conftest.err
23001 rm -f conftest.er1
23002 cat conftest.err >&5
23003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23004 (exit $ac_status); } &&
23005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23006 { (case "(($ac_try" in
23007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23008 *) ac_try_echo=$ac_try;;
23009 esac
23010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23011 (eval "$ac_try") 2>&5
23012 ac_status=$?
23013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23014 (exit $ac_status); }; } &&
23015 { ac_try='test -s conftest.$ac_objext'
23016 { (case "(($ac_try" in
23017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23018 *) ac_try_echo=$ac_try;;
23019 esac
23020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23021 (eval "$ac_try") 2>&5
23022 ac_status=$?
23023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23024 (exit $ac_status); }; }; then
23025 ac_header_compiler=yes
23026 else
23027 echo "$as_me: failed program was:" >&5
23028 sed 's/^/| /' conftest.$ac_ext >&5
23029
23030 ac_header_compiler=no
23031 fi
23032
23033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23034 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23035 echo "${ECHO_T}$ac_header_compiler" >&6; }
23036
23037 # Is the header present?
23038 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23039 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23040 cat >conftest.$ac_ext <<_ACEOF
23041 /* confdefs.h. */
23042 _ACEOF
23043 cat confdefs.h >>conftest.$ac_ext
23044 cat >>conftest.$ac_ext <<_ACEOF
23045 /* end confdefs.h. */
23046 #include <$ac_header>
23047 _ACEOF
23048 if { (ac_try="$ac_cpp conftest.$ac_ext"
23049 case "(($ac_try" in
23050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23051 *) ac_try_echo=$ac_try;;
23052 esac
23053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23055 ac_status=$?
23056 grep -v '^ *+' conftest.er1 >conftest.err
23057 rm -f conftest.er1
23058 cat conftest.err >&5
23059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23060 (exit $ac_status); } >/dev/null; then
23061 if test -s conftest.err; then
23062 ac_cpp_err=$ac_c_preproc_warn_flag
23063 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23064 else
23065 ac_cpp_err=
23066 fi
23067 else
23068 ac_cpp_err=yes
23069 fi
23070 if test -z "$ac_cpp_err"; then
23071 ac_header_preproc=yes
23072 else
23073 echo "$as_me: failed program was:" >&5
23074 sed 's/^/| /' conftest.$ac_ext >&5
23075
23076 ac_header_preproc=no
23077 fi
23078
23079 rm -f conftest.err conftest.$ac_ext
23080 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23081 echo "${ECHO_T}$ac_header_preproc" >&6; }
23082
23083 # So? What about this header?
23084 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23085 yes:no: )
23086 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23087 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23089 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23090 ac_header_preproc=yes
23091 ;;
23092 no:yes:* )
23093 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23094 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23095 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23096 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23097 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23098 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23099 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23100 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23102 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23103 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23104 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23105
23106 ;;
23107 esac
23108 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23111 echo $ECHO_N "(cached) $ECHO_C" >&6
23112 else
23113 eval "$as_ac_Header=\$ac_header_preproc"
23114 fi
23115 ac_res=`eval echo '${'$as_ac_Header'}'`
23116 { echo "$as_me:$LINENO: result: $ac_res" >&5
23117 echo "${ECHO_T}$ac_res" >&6; }
23118
23119 fi
23120 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23121 cat >>confdefs.h <<_ACEOF
23122 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23123 _ACEOF
23124
23125 fi
23126
23127 done
23128
23129 fi
23130
23131 done
23132
23133 fi
23134
23135 done
23136
23137
23138 for ac_header in krb.h
23139 do
23140 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23142 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23145 echo $ECHO_N "(cached) $ECHO_C" >&6
23146 fi
23147 ac_res=`eval echo '${'$as_ac_Header'}'`
23148 { echo "$as_me:$LINENO: result: $ac_res" >&5
23149 echo "${ECHO_T}$ac_res" >&6; }
23150 else
23151 # Is the header compilable?
23152 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23153 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23154 cat >conftest.$ac_ext <<_ACEOF
23155 /* confdefs.h. */
23156 _ACEOF
23157 cat confdefs.h >>conftest.$ac_ext
23158 cat >>conftest.$ac_ext <<_ACEOF
23159 /* end confdefs.h. */
23160 $ac_includes_default
23161 #include <$ac_header>
23162 _ACEOF
23163 rm -f conftest.$ac_objext
23164 if { (ac_try="$ac_compile"
23165 case "(($ac_try" in
23166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23167 *) ac_try_echo=$ac_try;;
23168 esac
23169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23170 (eval "$ac_compile") 2>conftest.er1
23171 ac_status=$?
23172 grep -v '^ *+' conftest.er1 >conftest.err
23173 rm -f conftest.er1
23174 cat conftest.err >&5
23175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23176 (exit $ac_status); } &&
23177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23178 { (case "(($ac_try" in
23179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23180 *) ac_try_echo=$ac_try;;
23181 esac
23182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23183 (eval "$ac_try") 2>&5
23184 ac_status=$?
23185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23186 (exit $ac_status); }; } &&
23187 { ac_try='test -s conftest.$ac_objext'
23188 { (case "(($ac_try" in
23189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23190 *) ac_try_echo=$ac_try;;
23191 esac
23192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23193 (eval "$ac_try") 2>&5
23194 ac_status=$?
23195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23196 (exit $ac_status); }; }; then
23197 ac_header_compiler=yes
23198 else
23199 echo "$as_me: failed program was:" >&5
23200 sed 's/^/| /' conftest.$ac_ext >&5
23201
23202 ac_header_compiler=no
23203 fi
23204
23205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23206 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23207 echo "${ECHO_T}$ac_header_compiler" >&6; }
23208
23209 # Is the header present?
23210 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23211 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23212 cat >conftest.$ac_ext <<_ACEOF
23213 /* confdefs.h. */
23214 _ACEOF
23215 cat confdefs.h >>conftest.$ac_ext
23216 cat >>conftest.$ac_ext <<_ACEOF
23217 /* end confdefs.h. */
23218 #include <$ac_header>
23219 _ACEOF
23220 if { (ac_try="$ac_cpp conftest.$ac_ext"
23221 case "(($ac_try" in
23222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23223 *) ac_try_echo=$ac_try;;
23224 esac
23225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23226 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23227 ac_status=$?
23228 grep -v '^ *+' conftest.er1 >conftest.err
23229 rm -f conftest.er1
23230 cat conftest.err >&5
23231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23232 (exit $ac_status); } >/dev/null; then
23233 if test -s conftest.err; then
23234 ac_cpp_err=$ac_c_preproc_warn_flag
23235 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23236 else
23237 ac_cpp_err=
23238 fi
23239 else
23240 ac_cpp_err=yes
23241 fi
23242 if test -z "$ac_cpp_err"; then
23243 ac_header_preproc=yes
23244 else
23245 echo "$as_me: failed program was:" >&5
23246 sed 's/^/| /' conftest.$ac_ext >&5
23247
23248 ac_header_preproc=no
23249 fi
23250
23251 rm -f conftest.err conftest.$ac_ext
23252 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23253 echo "${ECHO_T}$ac_header_preproc" >&6; }
23254
23255 # So? What about this header?
23256 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23257 yes:no: )
23258 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23259 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23261 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23262 ac_header_preproc=yes
23263 ;;
23264 no:yes:* )
23265 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23266 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23267 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23268 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23269 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23270 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23271 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23272 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23274 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23275 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23276 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23277
23278 ;;
23279 esac
23280 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23283 echo $ECHO_N "(cached) $ECHO_C" >&6
23284 else
23285 eval "$as_ac_Header=\$ac_header_preproc"
23286 fi
23287 ac_res=`eval echo '${'$as_ac_Header'}'`
23288 { echo "$as_me:$LINENO: result: $ac_res" >&5
23289 echo "${ECHO_T}$ac_res" >&6; }
23290
23291 fi
23292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23293 cat >>confdefs.h <<_ACEOF
23294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23295 _ACEOF
23296
23297 else
23298
23299 for ac_header in kerberosIV/krb.h
23300 do
23301 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23303 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23306 echo $ECHO_N "(cached) $ECHO_C" >&6
23307 fi
23308 ac_res=`eval echo '${'$as_ac_Header'}'`
23309 { echo "$as_me:$LINENO: result: $ac_res" >&5
23310 echo "${ECHO_T}$ac_res" >&6; }
23311 else
23312 # Is the header compilable?
23313 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23314 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23315 cat >conftest.$ac_ext <<_ACEOF
23316 /* confdefs.h. */
23317 _ACEOF
23318 cat confdefs.h >>conftest.$ac_ext
23319 cat >>conftest.$ac_ext <<_ACEOF
23320 /* end confdefs.h. */
23321 $ac_includes_default
23322 #include <$ac_header>
23323 _ACEOF
23324 rm -f conftest.$ac_objext
23325 if { (ac_try="$ac_compile"
23326 case "(($ac_try" in
23327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23328 *) ac_try_echo=$ac_try;;
23329 esac
23330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23331 (eval "$ac_compile") 2>conftest.er1
23332 ac_status=$?
23333 grep -v '^ *+' conftest.er1 >conftest.err
23334 rm -f conftest.er1
23335 cat conftest.err >&5
23336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23337 (exit $ac_status); } &&
23338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23339 { (case "(($ac_try" in
23340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23341 *) ac_try_echo=$ac_try;;
23342 esac
23343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23344 (eval "$ac_try") 2>&5
23345 ac_status=$?
23346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23347 (exit $ac_status); }; } &&
23348 { ac_try='test -s conftest.$ac_objext'
23349 { (case "(($ac_try" in
23350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23351 *) ac_try_echo=$ac_try;;
23352 esac
23353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23354 (eval "$ac_try") 2>&5
23355 ac_status=$?
23356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23357 (exit $ac_status); }; }; then
23358 ac_header_compiler=yes
23359 else
23360 echo "$as_me: failed program was:" >&5
23361 sed 's/^/| /' conftest.$ac_ext >&5
23362
23363 ac_header_compiler=no
23364 fi
23365
23366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23367 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23368 echo "${ECHO_T}$ac_header_compiler" >&6; }
23369
23370 # Is the header present?
23371 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23372 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23373 cat >conftest.$ac_ext <<_ACEOF
23374 /* confdefs.h. */
23375 _ACEOF
23376 cat confdefs.h >>conftest.$ac_ext
23377 cat >>conftest.$ac_ext <<_ACEOF
23378 /* end confdefs.h. */
23379 #include <$ac_header>
23380 _ACEOF
23381 if { (ac_try="$ac_cpp conftest.$ac_ext"
23382 case "(($ac_try" in
23383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23384 *) ac_try_echo=$ac_try;;
23385 esac
23386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23387 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23388 ac_status=$?
23389 grep -v '^ *+' conftest.er1 >conftest.err
23390 rm -f conftest.er1
23391 cat conftest.err >&5
23392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23393 (exit $ac_status); } >/dev/null; then
23394 if test -s conftest.err; then
23395 ac_cpp_err=$ac_c_preproc_warn_flag
23396 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23397 else
23398 ac_cpp_err=
23399 fi
23400 else
23401 ac_cpp_err=yes
23402 fi
23403 if test -z "$ac_cpp_err"; then
23404 ac_header_preproc=yes
23405 else
23406 echo "$as_me: failed program was:" >&5
23407 sed 's/^/| /' conftest.$ac_ext >&5
23408
23409 ac_header_preproc=no
23410 fi
23411
23412 rm -f conftest.err conftest.$ac_ext
23413 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23414 echo "${ECHO_T}$ac_header_preproc" >&6; }
23415
23416 # So? What about this header?
23417 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23418 yes:no: )
23419 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23420 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23422 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23423 ac_header_preproc=yes
23424 ;;
23425 no:yes:* )
23426 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23427 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23428 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23429 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23430 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23431 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23432 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23433 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23435 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23436 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23437 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23438
23439 ;;
23440 esac
23441 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23444 echo $ECHO_N "(cached) $ECHO_C" >&6
23445 else
23446 eval "$as_ac_Header=\$ac_header_preproc"
23447 fi
23448 ac_res=`eval echo '${'$as_ac_Header'}'`
23449 { echo "$as_me:$LINENO: result: $ac_res" >&5
23450 echo "${ECHO_T}$ac_res" >&6; }
23451
23452 fi
23453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23454 cat >>confdefs.h <<_ACEOF
23455 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23456 _ACEOF
23457
23458 else
23459
23460 for ac_header in kerberos/krb.h
23461 do
23462 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23463 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23464 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23467 echo $ECHO_N "(cached) $ECHO_C" >&6
23468 fi
23469 ac_res=`eval echo '${'$as_ac_Header'}'`
23470 { echo "$as_me:$LINENO: result: $ac_res" >&5
23471 echo "${ECHO_T}$ac_res" >&6; }
23472 else
23473 # Is the header compilable?
23474 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23475 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23476 cat >conftest.$ac_ext <<_ACEOF
23477 /* confdefs.h. */
23478 _ACEOF
23479 cat confdefs.h >>conftest.$ac_ext
23480 cat >>conftest.$ac_ext <<_ACEOF
23481 /* end confdefs.h. */
23482 $ac_includes_default
23483 #include <$ac_header>
23484 _ACEOF
23485 rm -f conftest.$ac_objext
23486 if { (ac_try="$ac_compile"
23487 case "(($ac_try" in
23488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23489 *) ac_try_echo=$ac_try;;
23490 esac
23491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23492 (eval "$ac_compile") 2>conftest.er1
23493 ac_status=$?
23494 grep -v '^ *+' conftest.er1 >conftest.err
23495 rm -f conftest.er1
23496 cat conftest.err >&5
23497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23498 (exit $ac_status); } &&
23499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23500 { (case "(($ac_try" in
23501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23502 *) ac_try_echo=$ac_try;;
23503 esac
23504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23505 (eval "$ac_try") 2>&5
23506 ac_status=$?
23507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23508 (exit $ac_status); }; } &&
23509 { ac_try='test -s conftest.$ac_objext'
23510 { (case "(($ac_try" in
23511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23512 *) ac_try_echo=$ac_try;;
23513 esac
23514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23515 (eval "$ac_try") 2>&5
23516 ac_status=$?
23517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23518 (exit $ac_status); }; }; then
23519 ac_header_compiler=yes
23520 else
23521 echo "$as_me: failed program was:" >&5
23522 sed 's/^/| /' conftest.$ac_ext >&5
23523
23524 ac_header_compiler=no
23525 fi
23526
23527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23528 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23529 echo "${ECHO_T}$ac_header_compiler" >&6; }
23530
23531 # Is the header present?
23532 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23533 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23534 cat >conftest.$ac_ext <<_ACEOF
23535 /* confdefs.h. */
23536 _ACEOF
23537 cat confdefs.h >>conftest.$ac_ext
23538 cat >>conftest.$ac_ext <<_ACEOF
23539 /* end confdefs.h. */
23540 #include <$ac_header>
23541 _ACEOF
23542 if { (ac_try="$ac_cpp conftest.$ac_ext"
23543 case "(($ac_try" in
23544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23545 *) ac_try_echo=$ac_try;;
23546 esac
23547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23548 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23549 ac_status=$?
23550 grep -v '^ *+' conftest.er1 >conftest.err
23551 rm -f conftest.er1
23552 cat conftest.err >&5
23553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23554 (exit $ac_status); } >/dev/null; then
23555 if test -s conftest.err; then
23556 ac_cpp_err=$ac_c_preproc_warn_flag
23557 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23558 else
23559 ac_cpp_err=
23560 fi
23561 else
23562 ac_cpp_err=yes
23563 fi
23564 if test -z "$ac_cpp_err"; then
23565 ac_header_preproc=yes
23566 else
23567 echo "$as_me: failed program was:" >&5
23568 sed 's/^/| /' conftest.$ac_ext >&5
23569
23570 ac_header_preproc=no
23571 fi
23572
23573 rm -f conftest.err conftest.$ac_ext
23574 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23575 echo "${ECHO_T}$ac_header_preproc" >&6; }
23576
23577 # So? What about this header?
23578 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23579 yes:no: )
23580 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23581 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23583 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23584 ac_header_preproc=yes
23585 ;;
23586 no:yes:* )
23587 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23588 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23589 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23590 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23591 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23592 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23593 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23594 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23596 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23597 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23598 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23599
23600 ;;
23601 esac
23602 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23605 echo $ECHO_N "(cached) $ECHO_C" >&6
23606 else
23607 eval "$as_ac_Header=\$ac_header_preproc"
23608 fi
23609 ac_res=`eval echo '${'$as_ac_Header'}'`
23610 { echo "$as_me:$LINENO: result: $ac_res" >&5
23611 echo "${ECHO_T}$ac_res" >&6; }
23612
23613 fi
23614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23615 cat >>confdefs.h <<_ACEOF
23616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23617 _ACEOF
23618
23619 fi
23620
23621 done
23622
23623 fi
23624
23625 done
23626
23627 fi
23628
23629 done
23630
23631 fi
23632
23633 for ac_header in com_err.h
23634 do
23635 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23637 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23639 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23640 echo $ECHO_N "(cached) $ECHO_C" >&6
23641 fi
23642 ac_res=`eval echo '${'$as_ac_Header'}'`
23643 { echo "$as_me:$LINENO: result: $ac_res" >&5
23644 echo "${ECHO_T}$ac_res" >&6; }
23645 else
23646 # Is the header compilable?
23647 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23648 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23649 cat >conftest.$ac_ext <<_ACEOF
23650 /* confdefs.h. */
23651 _ACEOF
23652 cat confdefs.h >>conftest.$ac_ext
23653 cat >>conftest.$ac_ext <<_ACEOF
23654 /* end confdefs.h. */
23655 $ac_includes_default
23656 #include <$ac_header>
23657 _ACEOF
23658 rm -f conftest.$ac_objext
23659 if { (ac_try="$ac_compile"
23660 case "(($ac_try" in
23661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23662 *) ac_try_echo=$ac_try;;
23663 esac
23664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23665 (eval "$ac_compile") 2>conftest.er1
23666 ac_status=$?
23667 grep -v '^ *+' conftest.er1 >conftest.err
23668 rm -f conftest.er1
23669 cat conftest.err >&5
23670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23671 (exit $ac_status); } &&
23672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23673 { (case "(($ac_try" in
23674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23675 *) ac_try_echo=$ac_try;;
23676 esac
23677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23678 (eval "$ac_try") 2>&5
23679 ac_status=$?
23680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23681 (exit $ac_status); }; } &&
23682 { ac_try='test -s conftest.$ac_objext'
23683 { (case "(($ac_try" in
23684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23685 *) ac_try_echo=$ac_try;;
23686 esac
23687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23688 (eval "$ac_try") 2>&5
23689 ac_status=$?
23690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23691 (exit $ac_status); }; }; then
23692 ac_header_compiler=yes
23693 else
23694 echo "$as_me: failed program was:" >&5
23695 sed 's/^/| /' conftest.$ac_ext >&5
23696
23697 ac_header_compiler=no
23698 fi
23699
23700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23701 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23702 echo "${ECHO_T}$ac_header_compiler" >&6; }
23703
23704 # Is the header present?
23705 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23706 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23707 cat >conftest.$ac_ext <<_ACEOF
23708 /* confdefs.h. */
23709 _ACEOF
23710 cat confdefs.h >>conftest.$ac_ext
23711 cat >>conftest.$ac_ext <<_ACEOF
23712 /* end confdefs.h. */
23713 #include <$ac_header>
23714 _ACEOF
23715 if { (ac_try="$ac_cpp conftest.$ac_ext"
23716 case "(($ac_try" in
23717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23718 *) ac_try_echo=$ac_try;;
23719 esac
23720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23721 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23722 ac_status=$?
23723 grep -v '^ *+' conftest.er1 >conftest.err
23724 rm -f conftest.er1
23725 cat conftest.err >&5
23726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727 (exit $ac_status); } >/dev/null; then
23728 if test -s conftest.err; then
23729 ac_cpp_err=$ac_c_preproc_warn_flag
23730 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23731 else
23732 ac_cpp_err=
23733 fi
23734 else
23735 ac_cpp_err=yes
23736 fi
23737 if test -z "$ac_cpp_err"; then
23738 ac_header_preproc=yes
23739 else
23740 echo "$as_me: failed program was:" >&5
23741 sed 's/^/| /' conftest.$ac_ext >&5
23742
23743 ac_header_preproc=no
23744 fi
23745
23746 rm -f conftest.err conftest.$ac_ext
23747 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23748 echo "${ECHO_T}$ac_header_preproc" >&6; }
23749
23750 # So? What about this header?
23751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23752 yes:no: )
23753 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23754 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23756 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23757 ac_header_preproc=yes
23758 ;;
23759 no:yes:* )
23760 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23761 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23762 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23763 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23764 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23765 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23766 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23767 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23769 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23770 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23771 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23772
23773 ;;
23774 esac
23775 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23778 echo $ECHO_N "(cached) $ECHO_C" >&6
23779 else
23780 eval "$as_ac_Header=\$ac_header_preproc"
23781 fi
23782 ac_res=`eval echo '${'$as_ac_Header'}'`
23783 { echo "$as_me:$LINENO: result: $ac_res" >&5
23784 echo "${ECHO_T}$ac_res" >&6; }
23785
23786 fi
23787 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23788 cat >>confdefs.h <<_ACEOF
23789 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23790 _ACEOF
23791
23792 fi
23793
23794 done
23795
23796 fi
23797
23798 # Solaris requires -lintl if you want strerror (which calls dgettext)
23799 # to return localized messages.
23800
23801 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
23802 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
23803 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
23804 echo $ECHO_N "(cached) $ECHO_C" >&6
23805 else
23806 ac_check_lib_save_LIBS=$LIBS
23807 LIBS="-lintl $LIBS"
23808 cat >conftest.$ac_ext <<_ACEOF
23809 /* confdefs.h. */
23810 _ACEOF
23811 cat confdefs.h >>conftest.$ac_ext
23812 cat >>conftest.$ac_ext <<_ACEOF
23813 /* end confdefs.h. */
23814
23815 /* Override any GCC internal prototype to avoid an error.
23816 Use char because int might match the return type of a GCC
23817 builtin and then its argument prototype would still apply. */
23818 #ifdef __cplusplus
23819 extern "C"
23820 #endif
23821 char dgettext ();
23822 int
23823 main ()
23824 {
23825 return dgettext ();
23826 ;
23827 return 0;
23828 }
23829 _ACEOF
23830 rm -f conftest.$ac_objext conftest$ac_exeext
23831 if { (ac_try="$ac_link"
23832 case "(($ac_try" in
23833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23834 *) ac_try_echo=$ac_try;;
23835 esac
23836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23837 (eval "$ac_link") 2>conftest.er1
23838 ac_status=$?
23839 grep -v '^ *+' conftest.er1 >conftest.err
23840 rm -f conftest.er1
23841 cat conftest.err >&5
23842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23843 (exit $ac_status); } &&
23844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23845 { (case "(($ac_try" in
23846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23847 *) ac_try_echo=$ac_try;;
23848 esac
23849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23850 (eval "$ac_try") 2>&5
23851 ac_status=$?
23852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23853 (exit $ac_status); }; } &&
23854 { ac_try='test -s conftest$ac_exeext'
23855 { (case "(($ac_try" in
23856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23857 *) ac_try_echo=$ac_try;;
23858 esac
23859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23860 (eval "$ac_try") 2>&5
23861 ac_status=$?
23862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23863 (exit $ac_status); }; }; then
23864 ac_cv_lib_intl_dgettext=yes
23865 else
23866 echo "$as_me: failed program was:" >&5
23867 sed 's/^/| /' conftest.$ac_ext >&5
23868
23869 ac_cv_lib_intl_dgettext=no
23870 fi
23871
23872 rm -f core conftest.err conftest.$ac_objext \
23873 conftest$ac_exeext conftest.$ac_ext
23874 LIBS=$ac_check_lib_save_LIBS
23875 fi
23876 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
23877 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
23878 if test $ac_cv_lib_intl_dgettext = yes; then
23879 cat >>confdefs.h <<_ACEOF
23880 #define HAVE_LIBINTL 1
23881 _ACEOF
23882
23883 LIBS="-lintl $LIBS"
23884
23885 fi
23886
23887
23888 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
23889 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
23890 if test "${emacs_cv_localtime_cache+set}" = set; then
23891 echo $ECHO_N "(cached) $ECHO_C" >&6
23892 else
23893 if test x$ac_cv_func_tzset = xyes; then
23894 if test "$cross_compiling" = yes; then
23895 # If we have tzset, assume the worst when cross-compiling.
23896 emacs_cv_localtime_cache=yes
23897 else
23898 cat >conftest.$ac_ext <<_ACEOF
23899 /* confdefs.h. */
23900 _ACEOF
23901 cat confdefs.h >>conftest.$ac_ext
23902 cat >>conftest.$ac_ext <<_ACEOF
23903 /* end confdefs.h. */
23904 #include <time.h>
23905 extern char **environ;
23906 unset_TZ ()
23907 {
23908 char **from, **to;
23909 for (to = from = environ; (*to = *from); from++)
23910 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
23911 to++;
23912 }
23913 char TZ_GMT0[] = "TZ=GMT0";
23914 char TZ_PST8[] = "TZ=PST8";
23915 main()
23916 {
23917 time_t now = time ((time_t *) 0);
23918 int hour_GMT0, hour_unset;
23919 if (putenv (TZ_GMT0) != 0)
23920 exit (1);
23921 hour_GMT0 = localtime (&now)->tm_hour;
23922 unset_TZ ();
23923 hour_unset = localtime (&now)->tm_hour;
23924 if (putenv (TZ_PST8) != 0)
23925 exit (1);
23926 if (localtime (&now)->tm_hour == hour_GMT0)
23927 exit (1);
23928 unset_TZ ();
23929 if (localtime (&now)->tm_hour != hour_unset)
23930 exit (1);
23931 exit (0);
23932 }
23933 _ACEOF
23934 rm -f conftest$ac_exeext
23935 if { (ac_try="$ac_link"
23936 case "(($ac_try" in
23937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23938 *) ac_try_echo=$ac_try;;
23939 esac
23940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23941 (eval "$ac_link") 2>&5
23942 ac_status=$?
23943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23944 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23945 { (case "(($ac_try" in
23946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23947 *) ac_try_echo=$ac_try;;
23948 esac
23949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23950 (eval "$ac_try") 2>&5
23951 ac_status=$?
23952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23953 (exit $ac_status); }; }; then
23954 emacs_cv_localtime_cache=no
23955 else
23956 echo "$as_me: program exited with status $ac_status" >&5
23957 echo "$as_me: failed program was:" >&5
23958 sed 's/^/| /' conftest.$ac_ext >&5
23959
23960 ( exit $ac_status )
23961 emacs_cv_localtime_cache=yes
23962 fi
23963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23964 fi
23965
23966
23967 else
23968 # If we lack tzset, report that localtime does not cache TZ,
23969 # since we can't invalidate the cache if we don't have tzset.
23970 emacs_cv_localtime_cache=no
23971 fi
23972 fi
23973 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
23974 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
23975 if test $emacs_cv_localtime_cache = yes; then
23976
23977 cat >>confdefs.h <<\_ACEOF
23978 #define LOCALTIME_CACHE 1
23979 _ACEOF
23980
23981 fi
23982
23983 if test "x$HAVE_TIMEVAL" = xyes; then
23984
23985 for ac_func in gettimeofday
23986 do
23987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23988 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23990 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23991 echo $ECHO_N "(cached) $ECHO_C" >&6
23992 else
23993 cat >conftest.$ac_ext <<_ACEOF
23994 /* confdefs.h. */
23995 _ACEOF
23996 cat confdefs.h >>conftest.$ac_ext
23997 cat >>conftest.$ac_ext <<_ACEOF
23998 /* end confdefs.h. */
23999 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24001 #define $ac_func innocuous_$ac_func
24002
24003 /* System header to define __stub macros and hopefully few prototypes,
24004 which can conflict with char $ac_func (); below.
24005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24006 <limits.h> exists even on freestanding compilers. */
24007
24008 #ifdef __STDC__
24009 # include <limits.h>
24010 #else
24011 # include <assert.h>
24012 #endif
24013
24014 #undef $ac_func
24015
24016 /* Override any GCC internal prototype to avoid an error.
24017 Use char because int might match the return type of a GCC
24018 builtin and then its argument prototype would still apply. */
24019 #ifdef __cplusplus
24020 extern "C"
24021 #endif
24022 char $ac_func ();
24023 /* The GNU C library defines this for functions which it implements
24024 to always fail with ENOSYS. Some functions are actually named
24025 something starting with __ and the normal name is an alias. */
24026 #if defined __stub_$ac_func || defined __stub___$ac_func
24027 choke me
24028 #endif
24029
24030 int
24031 main ()
24032 {
24033 return $ac_func ();
24034 ;
24035 return 0;
24036 }
24037 _ACEOF
24038 rm -f conftest.$ac_objext conftest$ac_exeext
24039 if { (ac_try="$ac_link"
24040 case "(($ac_try" in
24041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24042 *) ac_try_echo=$ac_try;;
24043 esac
24044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24045 (eval "$ac_link") 2>conftest.er1
24046 ac_status=$?
24047 grep -v '^ *+' conftest.er1 >conftest.err
24048 rm -f conftest.er1
24049 cat conftest.err >&5
24050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24051 (exit $ac_status); } &&
24052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24053 { (case "(($ac_try" in
24054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24055 *) ac_try_echo=$ac_try;;
24056 esac
24057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24058 (eval "$ac_try") 2>&5
24059 ac_status=$?
24060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24061 (exit $ac_status); }; } &&
24062 { ac_try='test -s conftest$ac_exeext'
24063 { (case "(($ac_try" in
24064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24065 *) ac_try_echo=$ac_try;;
24066 esac
24067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24068 (eval "$ac_try") 2>&5
24069 ac_status=$?
24070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24071 (exit $ac_status); }; }; then
24072 eval "$as_ac_var=yes"
24073 else
24074 echo "$as_me: failed program was:" >&5
24075 sed 's/^/| /' conftest.$ac_ext >&5
24076
24077 eval "$as_ac_var=no"
24078 fi
24079
24080 rm -f core conftest.err conftest.$ac_objext \
24081 conftest$ac_exeext conftest.$ac_ext
24082 fi
24083 ac_res=`eval echo '${'$as_ac_var'}'`
24084 { echo "$as_me:$LINENO: result: $ac_res" >&5
24085 echo "${ECHO_T}$ac_res" >&6; }
24086 if test `eval echo '${'$as_ac_var'}'` = yes; then
24087 cat >>confdefs.h <<_ACEOF
24088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24089 _ACEOF
24090
24091 fi
24092 done
24093
24094 if test $ac_cv_func_gettimeofday = yes; then
24095 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
24096 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
24097 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
24098 echo $ECHO_N "(cached) $ECHO_C" >&6
24099 else
24100 cat >conftest.$ac_ext <<_ACEOF
24101 /* confdefs.h. */
24102 _ACEOF
24103 cat confdefs.h >>conftest.$ac_ext
24104 cat >>conftest.$ac_ext <<_ACEOF
24105 /* end confdefs.h. */
24106
24107 #ifdef TIME_WITH_SYS_TIME
24108 #include <sys/time.h>
24109 #include <time.h>
24110 #else
24111 #ifdef HAVE_SYS_TIME_H
24112 #include <sys/time.h>
24113 #else
24114 #include <time.h>
24115 #endif
24116 #endif
24117 int
24118 main ()
24119 {
24120 struct timeval time;
24121 gettimeofday (&time, 0);
24122 ;
24123 return 0;
24124 }
24125 _ACEOF
24126 rm -f conftest.$ac_objext
24127 if { (ac_try="$ac_compile"
24128 case "(($ac_try" in
24129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24130 *) ac_try_echo=$ac_try;;
24131 esac
24132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24133 (eval "$ac_compile") 2>conftest.er1
24134 ac_status=$?
24135 grep -v '^ *+' conftest.er1 >conftest.err
24136 rm -f conftest.er1
24137 cat conftest.err >&5
24138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24139 (exit $ac_status); } &&
24140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24141 { (case "(($ac_try" in
24142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24143 *) ac_try_echo=$ac_try;;
24144 esac
24145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24146 (eval "$ac_try") 2>&5
24147 ac_status=$?
24148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24149 (exit $ac_status); }; } &&
24150 { ac_try='test -s conftest.$ac_objext'
24151 { (case "(($ac_try" in
24152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24153 *) ac_try_echo=$ac_try;;
24154 esac
24155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24156 (eval "$ac_try") 2>&5
24157 ac_status=$?
24158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24159 (exit $ac_status); }; }; then
24160 emacs_cv_gettimeofday_two_arguments=yes
24161 else
24162 echo "$as_me: failed program was:" >&5
24163 sed 's/^/| /' conftest.$ac_ext >&5
24164
24165 emacs_cv_gettimeofday_two_arguments=no
24166 fi
24167
24168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24169 fi
24170 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
24171 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
24172 if test $emacs_cv_gettimeofday_two_arguments = no; then
24173
24174 cat >>confdefs.h <<\_ACEOF
24175 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24176 _ACEOF
24177
24178 fi
24179 fi
24180 fi
24181
24182 ok_so_far=yes
24183 { echo "$as_me:$LINENO: checking for socket" >&5
24184 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
24185 if test "${ac_cv_func_socket+set}" = set; then
24186 echo $ECHO_N "(cached) $ECHO_C" >&6
24187 else
24188 cat >conftest.$ac_ext <<_ACEOF
24189 /* confdefs.h. */
24190 _ACEOF
24191 cat confdefs.h >>conftest.$ac_ext
24192 cat >>conftest.$ac_ext <<_ACEOF
24193 /* end confdefs.h. */
24194 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24196 #define socket innocuous_socket
24197
24198 /* System header to define __stub macros and hopefully few prototypes,
24199 which can conflict with char socket (); below.
24200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24201 <limits.h> exists even on freestanding compilers. */
24202
24203 #ifdef __STDC__
24204 # include <limits.h>
24205 #else
24206 # include <assert.h>
24207 #endif
24208
24209 #undef socket
24210
24211 /* Override any GCC internal prototype to avoid an error.
24212 Use char because int might match the return type of a GCC
24213 builtin and then its argument prototype would still apply. */
24214 #ifdef __cplusplus
24215 extern "C"
24216 #endif
24217 char socket ();
24218 /* The GNU C library defines this for functions which it implements
24219 to always fail with ENOSYS. Some functions are actually named
24220 something starting with __ and the normal name is an alias. */
24221 #if defined __stub_socket || defined __stub___socket
24222 choke me
24223 #endif
24224
24225 int
24226 main ()
24227 {
24228 return socket ();
24229 ;
24230 return 0;
24231 }
24232 _ACEOF
24233 rm -f conftest.$ac_objext conftest$ac_exeext
24234 if { (ac_try="$ac_link"
24235 case "(($ac_try" in
24236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24237 *) ac_try_echo=$ac_try;;
24238 esac
24239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24240 (eval "$ac_link") 2>conftest.er1
24241 ac_status=$?
24242 grep -v '^ *+' conftest.er1 >conftest.err
24243 rm -f conftest.er1
24244 cat conftest.err >&5
24245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24246 (exit $ac_status); } &&
24247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24248 { (case "(($ac_try" in
24249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24250 *) ac_try_echo=$ac_try;;
24251 esac
24252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24253 (eval "$ac_try") 2>&5
24254 ac_status=$?
24255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24256 (exit $ac_status); }; } &&
24257 { ac_try='test -s conftest$ac_exeext'
24258 { (case "(($ac_try" in
24259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24260 *) ac_try_echo=$ac_try;;
24261 esac
24262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24263 (eval "$ac_try") 2>&5
24264 ac_status=$?
24265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24266 (exit $ac_status); }; }; then
24267 ac_cv_func_socket=yes
24268 else
24269 echo "$as_me: failed program was:" >&5
24270 sed 's/^/| /' conftest.$ac_ext >&5
24271
24272 ac_cv_func_socket=no
24273 fi
24274
24275 rm -f core conftest.err conftest.$ac_objext \
24276 conftest$ac_exeext conftest.$ac_ext
24277 fi
24278 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24279 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
24280 if test $ac_cv_func_socket = yes; then
24281 :
24282 else
24283 ok_so_far=no
24284 fi
24285
24286 if test $ok_so_far = yes; then
24287 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24288 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24289 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
24290 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24291 echo $ECHO_N "(cached) $ECHO_C" >&6
24292 fi
24293 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24294 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
24295 else
24296 # Is the header compilable?
24297 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
24298 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
24299 cat >conftest.$ac_ext <<_ACEOF
24300 /* confdefs.h. */
24301 _ACEOF
24302 cat confdefs.h >>conftest.$ac_ext
24303 cat >>conftest.$ac_ext <<_ACEOF
24304 /* end confdefs.h. */
24305 $ac_includes_default
24306 #include <netinet/in.h>
24307 _ACEOF
24308 rm -f conftest.$ac_objext
24309 if { (ac_try="$ac_compile"
24310 case "(($ac_try" in
24311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24312 *) ac_try_echo=$ac_try;;
24313 esac
24314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24315 (eval "$ac_compile") 2>conftest.er1
24316 ac_status=$?
24317 grep -v '^ *+' conftest.er1 >conftest.err
24318 rm -f conftest.er1
24319 cat conftest.err >&5
24320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24321 (exit $ac_status); } &&
24322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24323 { (case "(($ac_try" in
24324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24325 *) ac_try_echo=$ac_try;;
24326 esac
24327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24328 (eval "$ac_try") 2>&5
24329 ac_status=$?
24330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24331 (exit $ac_status); }; } &&
24332 { ac_try='test -s conftest.$ac_objext'
24333 { (case "(($ac_try" in
24334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24335 *) ac_try_echo=$ac_try;;
24336 esac
24337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24338 (eval "$ac_try") 2>&5
24339 ac_status=$?
24340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24341 (exit $ac_status); }; }; then
24342 ac_header_compiler=yes
24343 else
24344 echo "$as_me: failed program was:" >&5
24345 sed 's/^/| /' conftest.$ac_ext >&5
24346
24347 ac_header_compiler=no
24348 fi
24349
24350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24351 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24352 echo "${ECHO_T}$ac_header_compiler" >&6; }
24353
24354 # Is the header present?
24355 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
24356 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
24357 cat >conftest.$ac_ext <<_ACEOF
24358 /* confdefs.h. */
24359 _ACEOF
24360 cat confdefs.h >>conftest.$ac_ext
24361 cat >>conftest.$ac_ext <<_ACEOF
24362 /* end confdefs.h. */
24363 #include <netinet/in.h>
24364 _ACEOF
24365 if { (ac_try="$ac_cpp conftest.$ac_ext"
24366 case "(($ac_try" in
24367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24368 *) ac_try_echo=$ac_try;;
24369 esac
24370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24372 ac_status=$?
24373 grep -v '^ *+' conftest.er1 >conftest.err
24374 rm -f conftest.er1
24375 cat conftest.err >&5
24376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24377 (exit $ac_status); } >/dev/null; then
24378 if test -s conftest.err; then
24379 ac_cpp_err=$ac_c_preproc_warn_flag
24380 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24381 else
24382 ac_cpp_err=
24383 fi
24384 else
24385 ac_cpp_err=yes
24386 fi
24387 if test -z "$ac_cpp_err"; then
24388 ac_header_preproc=yes
24389 else
24390 echo "$as_me: failed program was:" >&5
24391 sed 's/^/| /' conftest.$ac_ext >&5
24392
24393 ac_header_preproc=no
24394 fi
24395
24396 rm -f conftest.err conftest.$ac_ext
24397 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24398 echo "${ECHO_T}$ac_header_preproc" >&6; }
24399
24400 # So? What about this header?
24401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24402 yes:no: )
24403 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
24404 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24405 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
24406 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
24407 ac_header_preproc=yes
24408 ;;
24409 no:yes:* )
24410 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
24411 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
24412 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
24413 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
24414 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
24415 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
24416 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
24417 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
24418 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
24419 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
24420 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
24421 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
24422
24423 ;;
24424 esac
24425 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24426 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
24427 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24428 echo $ECHO_N "(cached) $ECHO_C" >&6
24429 else
24430 ac_cv_header_netinet_in_h=$ac_header_preproc
24431 fi
24432 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24433 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
24434
24435 fi
24436 if test $ac_cv_header_netinet_in_h = yes; then
24437 :
24438 else
24439 ok_so_far=no
24440 fi
24441
24442
24443 fi
24444 if test $ok_so_far = yes; then
24445 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24446 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24447 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
24448 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24449 echo $ECHO_N "(cached) $ECHO_C" >&6
24450 fi
24451 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24452 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
24453 else
24454 # Is the header compilable?
24455 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
24456 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
24457 cat >conftest.$ac_ext <<_ACEOF
24458 /* confdefs.h. */
24459 _ACEOF
24460 cat confdefs.h >>conftest.$ac_ext
24461 cat >>conftest.$ac_ext <<_ACEOF
24462 /* end confdefs.h. */
24463 $ac_includes_default
24464 #include <arpa/inet.h>
24465 _ACEOF
24466 rm -f conftest.$ac_objext
24467 if { (ac_try="$ac_compile"
24468 case "(($ac_try" in
24469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24470 *) ac_try_echo=$ac_try;;
24471 esac
24472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24473 (eval "$ac_compile") 2>conftest.er1
24474 ac_status=$?
24475 grep -v '^ *+' conftest.er1 >conftest.err
24476 rm -f conftest.er1
24477 cat conftest.err >&5
24478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24479 (exit $ac_status); } &&
24480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24481 { (case "(($ac_try" in
24482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24483 *) ac_try_echo=$ac_try;;
24484 esac
24485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24486 (eval "$ac_try") 2>&5
24487 ac_status=$?
24488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24489 (exit $ac_status); }; } &&
24490 { ac_try='test -s conftest.$ac_objext'
24491 { (case "(($ac_try" in
24492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24493 *) ac_try_echo=$ac_try;;
24494 esac
24495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24496 (eval "$ac_try") 2>&5
24497 ac_status=$?
24498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24499 (exit $ac_status); }; }; then
24500 ac_header_compiler=yes
24501 else
24502 echo "$as_me: failed program was:" >&5
24503 sed 's/^/| /' conftest.$ac_ext >&5
24504
24505 ac_header_compiler=no
24506 fi
24507
24508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24509 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24510 echo "${ECHO_T}$ac_header_compiler" >&6; }
24511
24512 # Is the header present?
24513 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
24514 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
24515 cat >conftest.$ac_ext <<_ACEOF
24516 /* confdefs.h. */
24517 _ACEOF
24518 cat confdefs.h >>conftest.$ac_ext
24519 cat >>conftest.$ac_ext <<_ACEOF
24520 /* end confdefs.h. */
24521 #include <arpa/inet.h>
24522 _ACEOF
24523 if { (ac_try="$ac_cpp conftest.$ac_ext"
24524 case "(($ac_try" in
24525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24526 *) ac_try_echo=$ac_try;;
24527 esac
24528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24529 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24530 ac_status=$?
24531 grep -v '^ *+' conftest.er1 >conftest.err
24532 rm -f conftest.er1
24533 cat conftest.err >&5
24534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24535 (exit $ac_status); } >/dev/null; then
24536 if test -s conftest.err; then
24537 ac_cpp_err=$ac_c_preproc_warn_flag
24538 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24539 else
24540 ac_cpp_err=
24541 fi
24542 else
24543 ac_cpp_err=yes
24544 fi
24545 if test -z "$ac_cpp_err"; then
24546 ac_header_preproc=yes
24547 else
24548 echo "$as_me: failed program was:" >&5
24549 sed 's/^/| /' conftest.$ac_ext >&5
24550
24551 ac_header_preproc=no
24552 fi
24553
24554 rm -f conftest.err conftest.$ac_ext
24555 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24556 echo "${ECHO_T}$ac_header_preproc" >&6; }
24557
24558 # So? What about this header?
24559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24560 yes:no: )
24561 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
24562 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24563 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
24564 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
24565 ac_header_preproc=yes
24566 ;;
24567 no:yes:* )
24568 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
24569 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
24570 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
24571 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
24572 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
24573 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
24574 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
24575 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
24576 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
24577 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
24578 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
24579 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
24580
24581 ;;
24582 esac
24583 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24584 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
24585 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24586 echo $ECHO_N "(cached) $ECHO_C" >&6
24587 else
24588 ac_cv_header_arpa_inet_h=$ac_header_preproc
24589 fi
24590 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24591 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
24592
24593 fi
24594 if test $ac_cv_header_arpa_inet_h = yes; then
24595 :
24596 else
24597 ok_so_far=no
24598 fi
24599
24600
24601 fi
24602 if test $ok_so_far = yes; then
24603
24604 cat >>confdefs.h <<\_ACEOF
24605 #define HAVE_INET_SOCKETS 1
24606 _ACEOF
24607
24608 fi
24609
24610
24611 for ac_header in sys/ioctl.h
24612 do
24613 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24615 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24618 echo $ECHO_N "(cached) $ECHO_C" >&6
24619 fi
24620 ac_res=`eval echo '${'$as_ac_Header'}'`
24621 { echo "$as_me:$LINENO: result: $ac_res" >&5
24622 echo "${ECHO_T}$ac_res" >&6; }
24623 else
24624 # Is the header compilable?
24625 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24626 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24627 cat >conftest.$ac_ext <<_ACEOF
24628 /* confdefs.h. */
24629 _ACEOF
24630 cat confdefs.h >>conftest.$ac_ext
24631 cat >>conftest.$ac_ext <<_ACEOF
24632 /* end confdefs.h. */
24633 $ac_includes_default
24634 #include <$ac_header>
24635 _ACEOF
24636 rm -f conftest.$ac_objext
24637 if { (ac_try="$ac_compile"
24638 case "(($ac_try" in
24639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24640 *) ac_try_echo=$ac_try;;
24641 esac
24642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24643 (eval "$ac_compile") 2>conftest.er1
24644 ac_status=$?
24645 grep -v '^ *+' conftest.er1 >conftest.err
24646 rm -f conftest.er1
24647 cat conftest.err >&5
24648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24649 (exit $ac_status); } &&
24650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24651 { (case "(($ac_try" in
24652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24653 *) ac_try_echo=$ac_try;;
24654 esac
24655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24656 (eval "$ac_try") 2>&5
24657 ac_status=$?
24658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24659 (exit $ac_status); }; } &&
24660 { ac_try='test -s conftest.$ac_objext'
24661 { (case "(($ac_try" in
24662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24663 *) ac_try_echo=$ac_try;;
24664 esac
24665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24666 (eval "$ac_try") 2>&5
24667 ac_status=$?
24668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24669 (exit $ac_status); }; }; then
24670 ac_header_compiler=yes
24671 else
24672 echo "$as_me: failed program was:" >&5
24673 sed 's/^/| /' conftest.$ac_ext >&5
24674
24675 ac_header_compiler=no
24676 fi
24677
24678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24679 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24680 echo "${ECHO_T}$ac_header_compiler" >&6; }
24681
24682 # Is the header present?
24683 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24684 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24685 cat >conftest.$ac_ext <<_ACEOF
24686 /* confdefs.h. */
24687 _ACEOF
24688 cat confdefs.h >>conftest.$ac_ext
24689 cat >>conftest.$ac_ext <<_ACEOF
24690 /* end confdefs.h. */
24691 #include <$ac_header>
24692 _ACEOF
24693 if { (ac_try="$ac_cpp conftest.$ac_ext"
24694 case "(($ac_try" in
24695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24696 *) ac_try_echo=$ac_try;;
24697 esac
24698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24700 ac_status=$?
24701 grep -v '^ *+' conftest.er1 >conftest.err
24702 rm -f conftest.er1
24703 cat conftest.err >&5
24704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24705 (exit $ac_status); } >/dev/null; then
24706 if test -s conftest.err; then
24707 ac_cpp_err=$ac_c_preproc_warn_flag
24708 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24709 else
24710 ac_cpp_err=
24711 fi
24712 else
24713 ac_cpp_err=yes
24714 fi
24715 if test -z "$ac_cpp_err"; then
24716 ac_header_preproc=yes
24717 else
24718 echo "$as_me: failed program was:" >&5
24719 sed 's/^/| /' conftest.$ac_ext >&5
24720
24721 ac_header_preproc=no
24722 fi
24723
24724 rm -f conftest.err conftest.$ac_ext
24725 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24726 echo "${ECHO_T}$ac_header_preproc" >&6; }
24727
24728 # So? What about this header?
24729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24730 yes:no: )
24731 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24732 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24734 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24735 ac_header_preproc=yes
24736 ;;
24737 no:yes:* )
24738 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24739 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24740 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24741 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24742 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24743 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24744 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24745 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24747 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24748 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24749 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24750
24751 ;;
24752 esac
24753 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24756 echo $ECHO_N "(cached) $ECHO_C" >&6
24757 else
24758 eval "$as_ac_Header=\$ac_header_preproc"
24759 fi
24760 ac_res=`eval echo '${'$as_ac_Header'}'`
24761 { echo "$as_me:$LINENO: result: $ac_res" >&5
24762 echo "${ECHO_T}$ac_res" >&6; }
24763
24764 fi
24765 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24766 cat >>confdefs.h <<_ACEOF
24767 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24768 _ACEOF
24769
24770 fi
24771
24772 done
24773
24774
24775 if test -f /usr/lpp/X11/bin/smt.exp; then
24776
24777 cat >>confdefs.h <<\_ACEOF
24778 #define HAVE_AIX_SMT_EXP 1
24779 _ACEOF
24780
24781 fi
24782
24783 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
24784 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
24785 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
24786 { echo "$as_me:$LINENO: result: yes" >&5
24787 echo "${ECHO_T}yes" >&6; }
24788
24789 cat >>confdefs.h <<\_ACEOF
24790 #define HAVE_DEV_PTMX 1
24791 _ACEOF
24792
24793 else
24794 { echo "$as_me:$LINENO: result: no" >&5
24795 echo "${ECHO_T}no" >&6; }
24796 fi
24797
24798 { echo "$as_me:$LINENO: checking for pid_t" >&5
24799 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24800 if test "${ac_cv_type_pid_t+set}" = set; then
24801 echo $ECHO_N "(cached) $ECHO_C" >&6
24802 else
24803 cat >conftest.$ac_ext <<_ACEOF
24804 /* confdefs.h. */
24805 _ACEOF
24806 cat confdefs.h >>conftest.$ac_ext
24807 cat >>conftest.$ac_ext <<_ACEOF
24808 /* end confdefs.h. */
24809 $ac_includes_default
24810 typedef pid_t ac__type_new_;
24811 int
24812 main ()
24813 {
24814 if ((ac__type_new_ *) 0)
24815 return 0;
24816 if (sizeof (ac__type_new_))
24817 return 0;
24818 ;
24819 return 0;
24820 }
24821 _ACEOF
24822 rm -f conftest.$ac_objext
24823 if { (ac_try="$ac_compile"
24824 case "(($ac_try" in
24825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24826 *) ac_try_echo=$ac_try;;
24827 esac
24828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24829 (eval "$ac_compile") 2>conftest.er1
24830 ac_status=$?
24831 grep -v '^ *+' conftest.er1 >conftest.err
24832 rm -f conftest.er1
24833 cat conftest.err >&5
24834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24835 (exit $ac_status); } &&
24836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24837 { (case "(($ac_try" in
24838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24839 *) ac_try_echo=$ac_try;;
24840 esac
24841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24842 (eval "$ac_try") 2>&5
24843 ac_status=$?
24844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24845 (exit $ac_status); }; } &&
24846 { ac_try='test -s conftest.$ac_objext'
24847 { (case "(($ac_try" in
24848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24849 *) ac_try_echo=$ac_try;;
24850 esac
24851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24852 (eval "$ac_try") 2>&5
24853 ac_status=$?
24854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24855 (exit $ac_status); }; }; then
24856 ac_cv_type_pid_t=yes
24857 else
24858 echo "$as_me: failed program was:" >&5
24859 sed 's/^/| /' conftest.$ac_ext >&5
24860
24861 ac_cv_type_pid_t=no
24862 fi
24863
24864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24865 fi
24866 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24867 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24868 if test $ac_cv_type_pid_t = yes; then
24869 :
24870 else
24871
24872 cat >>confdefs.h <<_ACEOF
24873 #define pid_t int
24874 _ACEOF
24875
24876 fi
24877
24878
24879 for ac_header in vfork.h
24880 do
24881 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24883 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24886 echo $ECHO_N "(cached) $ECHO_C" >&6
24887 fi
24888 ac_res=`eval echo '${'$as_ac_Header'}'`
24889 { echo "$as_me:$LINENO: result: $ac_res" >&5
24890 echo "${ECHO_T}$ac_res" >&6; }
24891 else
24892 # Is the header compilable?
24893 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24894 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24895 cat >conftest.$ac_ext <<_ACEOF
24896 /* confdefs.h. */
24897 _ACEOF
24898 cat confdefs.h >>conftest.$ac_ext
24899 cat >>conftest.$ac_ext <<_ACEOF
24900 /* end confdefs.h. */
24901 $ac_includes_default
24902 #include <$ac_header>
24903 _ACEOF
24904 rm -f conftest.$ac_objext
24905 if { (ac_try="$ac_compile"
24906 case "(($ac_try" in
24907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24908 *) ac_try_echo=$ac_try;;
24909 esac
24910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24911 (eval "$ac_compile") 2>conftest.er1
24912 ac_status=$?
24913 grep -v '^ *+' conftest.er1 >conftest.err
24914 rm -f conftest.er1
24915 cat conftest.err >&5
24916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24917 (exit $ac_status); } &&
24918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24919 { (case "(($ac_try" in
24920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24921 *) ac_try_echo=$ac_try;;
24922 esac
24923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24924 (eval "$ac_try") 2>&5
24925 ac_status=$?
24926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24927 (exit $ac_status); }; } &&
24928 { ac_try='test -s conftest.$ac_objext'
24929 { (case "(($ac_try" in
24930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24931 *) ac_try_echo=$ac_try;;
24932 esac
24933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24934 (eval "$ac_try") 2>&5
24935 ac_status=$?
24936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24937 (exit $ac_status); }; }; then
24938 ac_header_compiler=yes
24939 else
24940 echo "$as_me: failed program was:" >&5
24941 sed 's/^/| /' conftest.$ac_ext >&5
24942
24943 ac_header_compiler=no
24944 fi
24945
24946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24947 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24948 echo "${ECHO_T}$ac_header_compiler" >&6; }
24949
24950 # Is the header present?
24951 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24952 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24953 cat >conftest.$ac_ext <<_ACEOF
24954 /* confdefs.h. */
24955 _ACEOF
24956 cat confdefs.h >>conftest.$ac_ext
24957 cat >>conftest.$ac_ext <<_ACEOF
24958 /* end confdefs.h. */
24959 #include <$ac_header>
24960 _ACEOF
24961 if { (ac_try="$ac_cpp conftest.$ac_ext"
24962 case "(($ac_try" in
24963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24964 *) ac_try_echo=$ac_try;;
24965 esac
24966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24968 ac_status=$?
24969 grep -v '^ *+' conftest.er1 >conftest.err
24970 rm -f conftest.er1
24971 cat conftest.err >&5
24972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24973 (exit $ac_status); } >/dev/null; then
24974 if test -s conftest.err; then
24975 ac_cpp_err=$ac_c_preproc_warn_flag
24976 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24977 else
24978 ac_cpp_err=
24979 fi
24980 else
24981 ac_cpp_err=yes
24982 fi
24983 if test -z "$ac_cpp_err"; then
24984 ac_header_preproc=yes
24985 else
24986 echo "$as_me: failed program was:" >&5
24987 sed 's/^/| /' conftest.$ac_ext >&5
24988
24989 ac_header_preproc=no
24990 fi
24991
24992 rm -f conftest.err conftest.$ac_ext
24993 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24994 echo "${ECHO_T}$ac_header_preproc" >&6; }
24995
24996 # So? What about this header?
24997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24998 yes:no: )
24999 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25000 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25002 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25003 ac_header_preproc=yes
25004 ;;
25005 no:yes:* )
25006 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25007 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25008 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25009 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25010 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25011 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25012 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25013 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25015 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25016 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25017 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25018
25019 ;;
25020 esac
25021 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25024 echo $ECHO_N "(cached) $ECHO_C" >&6
25025 else
25026 eval "$as_ac_Header=\$ac_header_preproc"
25027 fi
25028 ac_res=`eval echo '${'$as_ac_Header'}'`
25029 { echo "$as_me:$LINENO: result: $ac_res" >&5
25030 echo "${ECHO_T}$ac_res" >&6; }
25031
25032 fi
25033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25034 cat >>confdefs.h <<_ACEOF
25035 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25036 _ACEOF
25037
25038 fi
25039
25040 done
25041
25042
25043
25044 for ac_func in fork vfork
25045 do
25046 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25047 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25048 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25049 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25050 echo $ECHO_N "(cached) $ECHO_C" >&6
25051 else
25052 cat >conftest.$ac_ext <<_ACEOF
25053 /* confdefs.h. */
25054 _ACEOF
25055 cat confdefs.h >>conftest.$ac_ext
25056 cat >>conftest.$ac_ext <<_ACEOF
25057 /* end confdefs.h. */
25058 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25060 #define $ac_func innocuous_$ac_func
25061
25062 /* System header to define __stub macros and hopefully few prototypes,
25063 which can conflict with char $ac_func (); below.
25064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25065 <limits.h> exists even on freestanding compilers. */
25066
25067 #ifdef __STDC__
25068 # include <limits.h>
25069 #else
25070 # include <assert.h>
25071 #endif
25072
25073 #undef $ac_func
25074
25075 /* Override any GCC internal prototype to avoid an error.
25076 Use char because int might match the return type of a GCC
25077 builtin and then its argument prototype would still apply. */
25078 #ifdef __cplusplus
25079 extern "C"
25080 #endif
25081 char $ac_func ();
25082 /* The GNU C library defines this for functions which it implements
25083 to always fail with ENOSYS. Some functions are actually named
25084 something starting with __ and the normal name is an alias. */
25085 #if defined __stub_$ac_func || defined __stub___$ac_func
25086 choke me
25087 #endif
25088
25089 int
25090 main ()
25091 {
25092 return $ac_func ();
25093 ;
25094 return 0;
25095 }
25096 _ACEOF
25097 rm -f conftest.$ac_objext conftest$ac_exeext
25098 if { (ac_try="$ac_link"
25099 case "(($ac_try" in
25100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25101 *) ac_try_echo=$ac_try;;
25102 esac
25103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25104 (eval "$ac_link") 2>conftest.er1
25105 ac_status=$?
25106 grep -v '^ *+' conftest.er1 >conftest.err
25107 rm -f conftest.er1
25108 cat conftest.err >&5
25109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25110 (exit $ac_status); } &&
25111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25112 { (case "(($ac_try" in
25113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25114 *) ac_try_echo=$ac_try;;
25115 esac
25116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25117 (eval "$ac_try") 2>&5
25118 ac_status=$?
25119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25120 (exit $ac_status); }; } &&
25121 { ac_try='test -s conftest$ac_exeext'
25122 { (case "(($ac_try" in
25123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25124 *) ac_try_echo=$ac_try;;
25125 esac
25126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25127 (eval "$ac_try") 2>&5
25128 ac_status=$?
25129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25130 (exit $ac_status); }; }; then
25131 eval "$as_ac_var=yes"
25132 else
25133 echo "$as_me: failed program was:" >&5
25134 sed 's/^/| /' conftest.$ac_ext >&5
25135
25136 eval "$as_ac_var=no"
25137 fi
25138
25139 rm -f core conftest.err conftest.$ac_objext \
25140 conftest$ac_exeext conftest.$ac_ext
25141 fi
25142 ac_res=`eval echo '${'$as_ac_var'}'`
25143 { echo "$as_me:$LINENO: result: $ac_res" >&5
25144 echo "${ECHO_T}$ac_res" >&6; }
25145 if test `eval echo '${'$as_ac_var'}'` = yes; then
25146 cat >>confdefs.h <<_ACEOF
25147 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25148 _ACEOF
25149
25150 fi
25151 done
25152
25153 if test "x$ac_cv_func_fork" = xyes; then
25154 { echo "$as_me:$LINENO: checking for working fork" >&5
25155 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
25156 if test "${ac_cv_func_fork_works+set}" = set; then
25157 echo $ECHO_N "(cached) $ECHO_C" >&6
25158 else
25159 if test "$cross_compiling" = yes; then
25160 ac_cv_func_fork_works=cross
25161 else
25162 cat >conftest.$ac_ext <<_ACEOF
25163 /* confdefs.h. */
25164 _ACEOF
25165 cat confdefs.h >>conftest.$ac_ext
25166 cat >>conftest.$ac_ext <<_ACEOF
25167 /* end confdefs.h. */
25168 $ac_includes_default
25169 int
25170 main ()
25171 {
25172
25173 /* By Ruediger Kuhlmann. */
25174 return fork () < 0;
25175
25176 ;
25177 return 0;
25178 }
25179 _ACEOF
25180 rm -f conftest$ac_exeext
25181 if { (ac_try="$ac_link"
25182 case "(($ac_try" in
25183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25184 *) ac_try_echo=$ac_try;;
25185 esac
25186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25187 (eval "$ac_link") 2>&5
25188 ac_status=$?
25189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25191 { (case "(($ac_try" in
25192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25193 *) ac_try_echo=$ac_try;;
25194 esac
25195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25196 (eval "$ac_try") 2>&5
25197 ac_status=$?
25198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199 (exit $ac_status); }; }; then
25200 ac_cv_func_fork_works=yes
25201 else
25202 echo "$as_me: program exited with status $ac_status" >&5
25203 echo "$as_me: failed program was:" >&5
25204 sed 's/^/| /' conftest.$ac_ext >&5
25205
25206 ( exit $ac_status )
25207 ac_cv_func_fork_works=no
25208 fi
25209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25210 fi
25211
25212
25213 fi
25214 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25215 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
25216
25217 else
25218 ac_cv_func_fork_works=$ac_cv_func_fork
25219 fi
25220 if test "x$ac_cv_func_fork_works" = xcross; then
25221 case $host in
25222 *-*-amigaos* | *-*-msdosdjgpp*)
25223 # Override, as these systems have only a dummy fork() stub
25224 ac_cv_func_fork_works=no
25225 ;;
25226 *)
25227 ac_cv_func_fork_works=yes
25228 ;;
25229 esac
25230 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25231 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25232 fi
25233 ac_cv_func_vfork_works=$ac_cv_func_vfork
25234 if test "x$ac_cv_func_vfork" = xyes; then
25235 { echo "$as_me:$LINENO: checking for working vfork" >&5
25236 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
25237 if test "${ac_cv_func_vfork_works+set}" = set; then
25238 echo $ECHO_N "(cached) $ECHO_C" >&6
25239 else
25240 if test "$cross_compiling" = yes; then
25241 ac_cv_func_vfork_works=cross
25242 else
25243 cat >conftest.$ac_ext <<_ACEOF
25244 /* confdefs.h. */
25245 _ACEOF
25246 cat confdefs.h >>conftest.$ac_ext
25247 cat >>conftest.$ac_ext <<_ACEOF
25248 /* end confdefs.h. */
25249 /* Thanks to Paul Eggert for this test. */
25250 $ac_includes_default
25251 #include <sys/wait.h>
25252 #if HAVE_VFORK_H
25253 # include <vfork.h>
25254 #endif
25255 /* On some sparc systems, changes by the child to local and incoming
25256 argument registers are propagated back to the parent. The compiler
25257 is told about this with #include <vfork.h>, but some compilers
25258 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25259 static variable whose address is put into a register that is
25260 clobbered by the vfork. */
25261 static void
25262 #ifdef __cplusplus
25263 sparc_address_test (int arg)
25264 # else
25265 sparc_address_test (arg) int arg;
25266 #endif
25267 {
25268 static pid_t child;
25269 if (!child) {
25270 child = vfork ();
25271 if (child < 0) {
25272 perror ("vfork");
25273 _exit(2);
25274 }
25275 if (!child) {
25276 arg = getpid();
25277 write(-1, "", 0);
25278 _exit (arg);
25279 }
25280 }
25281 }
25282
25283 int
25284 main ()
25285 {
25286 pid_t parent = getpid ();
25287 pid_t child;
25288
25289 sparc_address_test (0);
25290
25291 child = vfork ();
25292
25293 if (child == 0) {
25294 /* Here is another test for sparc vfork register problems. This
25295 test uses lots of local variables, at least as many local
25296 variables as main has allocated so far including compiler
25297 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25298 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25299 reuse the register of parent for one of the local variables,
25300 since it will think that parent can't possibly be used any more
25301 in this routine. Assigning to the local variable will thus
25302 munge parent in the parent process. */
25303 pid_t
25304 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25305 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25306 /* Convince the compiler that p..p7 are live; otherwise, it might
25307 use the same hardware register for all 8 local variables. */
25308 if (p != p1 || p != p2 || p != p3 || p != p4
25309 || p != p5 || p != p6 || p != p7)
25310 _exit(1);
25311
25312 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25313 from child file descriptors. If the child closes a descriptor
25314 before it execs or exits, this munges the parent's descriptor
25315 as well. Test for this by closing stdout in the child. */
25316 _exit(close(fileno(stdout)) != 0);
25317 } else {
25318 int status;
25319 struct stat st;
25320
25321 while (wait(&status) != child)
25322 ;
25323 return (
25324 /* Was there some problem with vforking? */
25325 child < 0
25326
25327 /* Did the child fail? (This shouldn't happen.) */
25328 || status
25329
25330 /* Did the vfork/compiler bug occur? */
25331 || parent != getpid()
25332
25333 /* Did the file descriptor bug occur? */
25334 || fstat(fileno(stdout), &st) != 0
25335 );
25336 }
25337 }
25338 _ACEOF
25339 rm -f conftest$ac_exeext
25340 if { (ac_try="$ac_link"
25341 case "(($ac_try" in
25342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25343 *) ac_try_echo=$ac_try;;
25344 esac
25345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25346 (eval "$ac_link") 2>&5
25347 ac_status=$?
25348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25349 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25350 { (case "(($ac_try" in
25351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25352 *) ac_try_echo=$ac_try;;
25353 esac
25354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25355 (eval "$ac_try") 2>&5
25356 ac_status=$?
25357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25358 (exit $ac_status); }; }; then
25359 ac_cv_func_vfork_works=yes
25360 else
25361 echo "$as_me: program exited with status $ac_status" >&5
25362 echo "$as_me: failed program was:" >&5
25363 sed 's/^/| /' conftest.$ac_ext >&5
25364
25365 ( exit $ac_status )
25366 ac_cv_func_vfork_works=no
25367 fi
25368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25369 fi
25370
25371
25372 fi
25373 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25374 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
25375
25376 fi;
25377 if test "x$ac_cv_func_fork_works" = xcross; then
25378 ac_cv_func_vfork_works=$ac_cv_func_vfork
25379 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25380 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25381 fi
25382
25383 if test "x$ac_cv_func_vfork_works" = xyes; then
25384
25385 cat >>confdefs.h <<\_ACEOF
25386 #define HAVE_WORKING_VFORK 1
25387 _ACEOF
25388
25389 else
25390
25391 cat >>confdefs.h <<\_ACEOF
25392 #define vfork fork
25393 _ACEOF
25394
25395 fi
25396 if test "x$ac_cv_func_fork_works" = xyes; then
25397
25398 cat >>confdefs.h <<\_ACEOF
25399 #define HAVE_WORKING_FORK 1
25400 _ACEOF
25401
25402 fi
25403
25404
25405 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
25406 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
25407 if test "${emacs_cv_langinfo_codeset+set}" = set; then
25408 echo $ECHO_N "(cached) $ECHO_C" >&6
25409 else
25410 cat >conftest.$ac_ext <<_ACEOF
25411 /* confdefs.h. */
25412 _ACEOF
25413 cat confdefs.h >>conftest.$ac_ext
25414 cat >>conftest.$ac_ext <<_ACEOF
25415 /* end confdefs.h. */
25416 #include <langinfo.h>
25417 int
25418 main ()
25419 {
25420 char* cs = nl_langinfo(CODESET);
25421 ;
25422 return 0;
25423 }
25424 _ACEOF
25425 rm -f conftest.$ac_objext conftest$ac_exeext
25426 if { (ac_try="$ac_link"
25427 case "(($ac_try" in
25428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25429 *) ac_try_echo=$ac_try;;
25430 esac
25431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25432 (eval "$ac_link") 2>conftest.er1
25433 ac_status=$?
25434 grep -v '^ *+' conftest.er1 >conftest.err
25435 rm -f conftest.er1
25436 cat conftest.err >&5
25437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25438 (exit $ac_status); } &&
25439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25440 { (case "(($ac_try" in
25441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25442 *) ac_try_echo=$ac_try;;
25443 esac
25444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25445 (eval "$ac_try") 2>&5
25446 ac_status=$?
25447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25448 (exit $ac_status); }; } &&
25449 { ac_try='test -s conftest$ac_exeext'
25450 { (case "(($ac_try" in
25451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25452 *) ac_try_echo=$ac_try;;
25453 esac
25454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25455 (eval "$ac_try") 2>&5
25456 ac_status=$?
25457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25458 (exit $ac_status); }; }; then
25459 emacs_cv_langinfo_codeset=yes
25460 else
25461 echo "$as_me: failed program was:" >&5
25462 sed 's/^/| /' conftest.$ac_ext >&5
25463
25464 emacs_cv_langinfo_codeset=no
25465 fi
25466
25467 rm -f core conftest.err conftest.$ac_objext \
25468 conftest$ac_exeext conftest.$ac_ext
25469
25470 fi
25471 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
25472 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
25473 if test $emacs_cv_langinfo_codeset = yes; then
25474
25475 cat >>confdefs.h <<\_ACEOF
25476 #define HAVE_LANGINFO_CODESET 1
25477 _ACEOF
25478
25479 fi
25480
25481 { echo "$as_me:$LINENO: checking for size_t" >&5
25482 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
25483 if test "${ac_cv_type_size_t+set}" = set; then
25484 echo $ECHO_N "(cached) $ECHO_C" >&6
25485 else
25486 cat >conftest.$ac_ext <<_ACEOF
25487 /* confdefs.h. */
25488 _ACEOF
25489 cat confdefs.h >>conftest.$ac_ext
25490 cat >>conftest.$ac_ext <<_ACEOF
25491 /* end confdefs.h. */
25492 $ac_includes_default
25493 typedef size_t ac__type_new_;
25494 int
25495 main ()
25496 {
25497 if ((ac__type_new_ *) 0)
25498 return 0;
25499 if (sizeof (ac__type_new_))
25500 return 0;
25501 ;
25502 return 0;
25503 }
25504 _ACEOF
25505 rm -f conftest.$ac_objext
25506 if { (ac_try="$ac_compile"
25507 case "(($ac_try" in
25508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25509 *) ac_try_echo=$ac_try;;
25510 esac
25511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25512 (eval "$ac_compile") 2>conftest.er1
25513 ac_status=$?
25514 grep -v '^ *+' conftest.er1 >conftest.err
25515 rm -f conftest.er1
25516 cat conftest.err >&5
25517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25518 (exit $ac_status); } &&
25519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25520 { (case "(($ac_try" in
25521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25522 *) ac_try_echo=$ac_try;;
25523 esac
25524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25525 (eval "$ac_try") 2>&5
25526 ac_status=$?
25527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25528 (exit $ac_status); }; } &&
25529 { ac_try='test -s conftest.$ac_objext'
25530 { (case "(($ac_try" in
25531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25532 *) ac_try_echo=$ac_try;;
25533 esac
25534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25535 (eval "$ac_try") 2>&5
25536 ac_status=$?
25537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25538 (exit $ac_status); }; }; then
25539 ac_cv_type_size_t=yes
25540 else
25541 echo "$as_me: failed program was:" >&5
25542 sed 's/^/| /' conftest.$ac_ext >&5
25543
25544 ac_cv_type_size_t=no
25545 fi
25546
25547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25548 fi
25549 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25550 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
25551 if test $ac_cv_type_size_t = yes; then
25552
25553 cat >>confdefs.h <<_ACEOF
25554 #define HAVE_SIZE_T 1
25555 _ACEOF
25556
25557
25558 fi
25559
25560
25561 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
25562 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
25563 if test "${ac_cv_type_mbstate_t+set}" = set; then
25564 echo $ECHO_N "(cached) $ECHO_C" >&6
25565 else
25566 cat >conftest.$ac_ext <<_ACEOF
25567 /* confdefs.h. */
25568 _ACEOF
25569 cat confdefs.h >>conftest.$ac_ext
25570 cat >>conftest.$ac_ext <<_ACEOF
25571 /* end confdefs.h. */
25572 $ac_includes_default
25573 # include <wchar.h>
25574 int
25575 main ()
25576 {
25577 mbstate_t x; return sizeof x;
25578 ;
25579 return 0;
25580 }
25581 _ACEOF
25582 rm -f conftest.$ac_objext
25583 if { (ac_try="$ac_compile"
25584 case "(($ac_try" in
25585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25586 *) ac_try_echo=$ac_try;;
25587 esac
25588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25589 (eval "$ac_compile") 2>conftest.er1
25590 ac_status=$?
25591 grep -v '^ *+' conftest.er1 >conftest.err
25592 rm -f conftest.er1
25593 cat conftest.err >&5
25594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25595 (exit $ac_status); } &&
25596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25597 { (case "(($ac_try" in
25598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25599 *) ac_try_echo=$ac_try;;
25600 esac
25601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25602 (eval "$ac_try") 2>&5
25603 ac_status=$?
25604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25605 (exit $ac_status); }; } &&
25606 { ac_try='test -s conftest.$ac_objext'
25607 { (case "(($ac_try" in
25608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25609 *) ac_try_echo=$ac_try;;
25610 esac
25611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25612 (eval "$ac_try") 2>&5
25613 ac_status=$?
25614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25615 (exit $ac_status); }; }; then
25616 ac_cv_type_mbstate_t=yes
25617 else
25618 echo "$as_me: failed program was:" >&5
25619 sed 's/^/| /' conftest.$ac_ext >&5
25620
25621 ac_cv_type_mbstate_t=no
25622 fi
25623
25624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25625 fi
25626 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
25627 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
25628 if test $ac_cv_type_mbstate_t = yes; then
25629
25630 cat >>confdefs.h <<\_ACEOF
25631 #define HAVE_MBSTATE_T 1
25632 _ACEOF
25633
25634 else
25635
25636 cat >>confdefs.h <<\_ACEOF
25637 #define mbstate_t int
25638 _ACEOF
25639
25640 fi
25641
25642 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
25643 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
25644 if test "${emacs_cv_c_restrict+set}" = set; then
25645 echo $ECHO_N "(cached) $ECHO_C" >&6
25646 else
25647 cat >conftest.$ac_ext <<_ACEOF
25648 /* confdefs.h. */
25649 _ACEOF
25650 cat confdefs.h >>conftest.$ac_ext
25651 cat >>conftest.$ac_ext <<_ACEOF
25652 /* end confdefs.h. */
25653 void fred (int *restrict x);
25654 int
25655 main ()
25656 {
25657
25658 ;
25659 return 0;
25660 }
25661 _ACEOF
25662 rm -f conftest.$ac_objext
25663 if { (ac_try="$ac_compile"
25664 case "(($ac_try" in
25665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25666 *) ac_try_echo=$ac_try;;
25667 esac
25668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25669 (eval "$ac_compile") 2>conftest.er1
25670 ac_status=$?
25671 grep -v '^ *+' conftest.er1 >conftest.err
25672 rm -f conftest.er1
25673 cat conftest.err >&5
25674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25675 (exit $ac_status); } &&
25676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25677 { (case "(($ac_try" in
25678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25679 *) ac_try_echo=$ac_try;;
25680 esac
25681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25682 (eval "$ac_try") 2>&5
25683 ac_status=$?
25684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25685 (exit $ac_status); }; } &&
25686 { ac_try='test -s conftest.$ac_objext'
25687 { (case "(($ac_try" in
25688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25689 *) ac_try_echo=$ac_try;;
25690 esac
25691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25692 (eval "$ac_try") 2>&5
25693 ac_status=$?
25694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25695 (exit $ac_status); }; }; then
25696 emacs_cv_c_restrict=yes
25697 else
25698 echo "$as_me: failed program was:" >&5
25699 sed 's/^/| /' conftest.$ac_ext >&5
25700
25701 cat >conftest.$ac_ext <<_ACEOF
25702 /* confdefs.h. */
25703 _ACEOF
25704 cat confdefs.h >>conftest.$ac_ext
25705 cat >>conftest.$ac_ext <<_ACEOF
25706 /* end confdefs.h. */
25707 void fred (int *__restrict x);
25708 int
25709 main ()
25710 {
25711
25712 ;
25713 return 0;
25714 }
25715 _ACEOF
25716 rm -f conftest.$ac_objext
25717 if { (ac_try="$ac_compile"
25718 case "(($ac_try" in
25719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25720 *) ac_try_echo=$ac_try;;
25721 esac
25722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25723 (eval "$ac_compile") 2>conftest.er1
25724 ac_status=$?
25725 grep -v '^ *+' conftest.er1 >conftest.err
25726 rm -f conftest.er1
25727 cat conftest.err >&5
25728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25729 (exit $ac_status); } &&
25730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25731 { (case "(($ac_try" in
25732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25733 *) ac_try_echo=$ac_try;;
25734 esac
25735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25736 (eval "$ac_try") 2>&5
25737 ac_status=$?
25738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25739 (exit $ac_status); }; } &&
25740 { ac_try='test -s conftest.$ac_objext'
25741 { (case "(($ac_try" in
25742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25743 *) ac_try_echo=$ac_try;;
25744 esac
25745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25746 (eval "$ac_try") 2>&5
25747 ac_status=$?
25748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25749 (exit $ac_status); }; }; then
25750 emacs_cv_c_restrict=__restrict
25751 else
25752 echo "$as_me: failed program was:" >&5
25753 sed 's/^/| /' conftest.$ac_ext >&5
25754
25755 emacs_cv_c_restrict=no
25756 fi
25757
25758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25759 fi
25760
25761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25762 fi
25763 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
25764 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
25765 case "$emacs_cv_c_restrict" in
25766 yes) emacs_restrict=restrict;;
25767 no) emacs_restrict="";;
25768 *) emacs_restrict="$emacs_cv_c_restrict";;
25769 esac
25770 if test "$emacs_restrict" != __restrict; then
25771
25772 cat >>confdefs.h <<_ACEOF
25773 #define __restrict $emacs_restrict
25774 _ACEOF
25775
25776 fi
25777
25778 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
25779 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
25780 if test "${emacs_cv_c_restrict_arr+set}" = set; then
25781 echo $ECHO_N "(cached) $ECHO_C" >&6
25782 else
25783 cat >conftest.$ac_ext <<_ACEOF
25784 /* confdefs.h. */
25785 _ACEOF
25786 cat confdefs.h >>conftest.$ac_ext
25787 cat >>conftest.$ac_ext <<_ACEOF
25788 /* end confdefs.h. */
25789 void fred (int x[__restrict]);
25790 int
25791 main ()
25792 {
25793
25794 ;
25795 return 0;
25796 }
25797 _ACEOF
25798 rm -f conftest.$ac_objext
25799 if { (ac_try="$ac_compile"
25800 case "(($ac_try" in
25801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25802 *) ac_try_echo=$ac_try;;
25803 esac
25804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25805 (eval "$ac_compile") 2>conftest.er1
25806 ac_status=$?
25807 grep -v '^ *+' conftest.er1 >conftest.err
25808 rm -f conftest.er1
25809 cat conftest.err >&5
25810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25811 (exit $ac_status); } &&
25812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25813 { (case "(($ac_try" in
25814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25815 *) ac_try_echo=$ac_try;;
25816 esac
25817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25818 (eval "$ac_try") 2>&5
25819 ac_status=$?
25820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25821 (exit $ac_status); }; } &&
25822 { ac_try='test -s conftest.$ac_objext'
25823 { (case "(($ac_try" in
25824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25825 *) ac_try_echo=$ac_try;;
25826 esac
25827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25828 (eval "$ac_try") 2>&5
25829 ac_status=$?
25830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25831 (exit $ac_status); }; }; then
25832 emacs_cv_c_restrict_arr=yes
25833 else
25834 echo "$as_me: failed program was:" >&5
25835 sed 's/^/| /' conftest.$ac_ext >&5
25836
25837 emacs_cv_c_restrict_arr=no
25838 fi
25839
25840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25841 fi
25842 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
25843 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
25844 if test "$emacs_cv_c_restrict_arr" = yes; then
25845
25846 cat >>confdefs.h <<\_ACEOF
25847 #define __restrict_arr __restrict
25848 _ACEOF
25849
25850 fi
25851
25852
25853
25854 # Set up the CFLAGS for real compilation, so we can substitute it.
25855 CFLAGS="$REAL_CFLAGS"
25856 CPPFLAGS="$REAL_CPPFLAGS"
25857
25858 #### Find out which version of Emacs this is.
25859 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25860 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
25861 if test x"${version}" = x; then
25862 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
25863 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
25864 { (exit 1); exit 1; }; }
25865 fi
25866
25867 ### Specify what sort of things we'll be editing into Makefile and config.h.
25868 ### Use configuration here uncanonicalized to avoid exceeding size limits.
25869
25870
25871
25872
25873
25874
25875
25876
25877
25878
25879
25880
25881
25882
25883
25884
25885
25886
25887
25888
25889
25890
25891
25892
25893
25894
25895
25896
25897
25898
25899
25900
25901
25902
25903
25904 cat >>confdefs.h <<_ACEOF
25905 #define EMACS_CONFIGURATION "${canonical}"
25906 _ACEOF
25907
25908
25909 cat >>confdefs.h <<_ACEOF
25910 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
25911 _ACEOF
25912
25913
25914 cat >>confdefs.h <<_ACEOF
25915 #define config_machfile "${machfile}"
25916 _ACEOF
25917
25918
25919 cat >>confdefs.h <<_ACEOF
25920 #define config_opsysfile "${opsysfile}"
25921 _ACEOF
25922
25923
25924 cat >>confdefs.h <<_ACEOF
25925 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
25926 _ACEOF
25927
25928
25929 cat >>confdefs.h <<_ACEOF
25930 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
25931 _ACEOF
25932
25933
25934 cat >>confdefs.h <<_ACEOF
25935 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
25936 _ACEOF
25937
25938
25939 cat >>confdefs.h <<_ACEOF
25940 #define UNEXEC_SRC ${UNEXEC_SRC}
25941 _ACEOF
25942
25943
25944 if test "${HAVE_X_WINDOWS}" = "yes" ; then
25945
25946 cat >>confdefs.h <<\_ACEOF
25947 #define HAVE_X_WINDOWS 1
25948 _ACEOF
25949
25950 fi
25951 if test "${USE_X_TOOLKIT}" != "none" ; then
25952
25953 cat >>confdefs.h <<\_ACEOF
25954 #define USE_X_TOOLKIT 1
25955 _ACEOF
25956
25957 fi
25958 if test "${HAVE_X11}" = "yes" ; then
25959
25960 cat >>confdefs.h <<\_ACEOF
25961 #define HAVE_X11 1
25962 _ACEOF
25963
25964 fi
25965 if test "${HAVE_XFREE386}" = "yes" ; then
25966
25967 cat >>confdefs.h <<\_ACEOF
25968 #define HAVE_XFREE386 1
25969 _ACEOF
25970
25971 fi
25972 if test "${HAVE_MENUS}" = "yes" ; then
25973
25974 cat >>confdefs.h <<\_ACEOF
25975 #define HAVE_MENUS 1
25976 _ACEOF
25977
25978 fi
25979 if test "${GNU_MALLOC}" = "yes" ; then
25980
25981 cat >>confdefs.h <<\_ACEOF
25982 #define GNU_MALLOC 1
25983 _ACEOF
25984
25985 fi
25986 if test "${REL_ALLOC}" = "yes" ; then
25987
25988 cat >>confdefs.h <<\_ACEOF
25989 #define REL_ALLOC 1
25990 _ACEOF
25991
25992 fi
25993
25994
25995
25996
25997
25998 #### Report on what we decided to do.
25999 #### Report GTK as a toolkit, even if it doesn't use Xt.
26000 #### It makes printing result more understandable as using GTK sets
26001 #### toolkit_scroll_bars to yes by default.
26002 if test "${HAVE_GTK}" = "yes"; then
26003 USE_X_TOOLKIT=GTK
26004 fi
26005
26006 echo "
26007 Configured for \`${canonical}'.
26008
26009 Where should the build process find the source code? ${srcdir}
26010 What operating system and machine description files should Emacs use?
26011 \`${opsysfile}' and \`${machfile}'
26012 What compiler should emacs be built with? ${CC} ${CFLAGS}
26013 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
26014 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
26015 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
26016 What window system should Emacs use? ${window_system}
26017 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
26018
26019 if test -n "${x_includes}"; then
26020 echo " Where do we find X Windows header files? ${x_includes}"
26021 else
26022 echo " Where do we find X Windows header files? Standard dirs"
26023 fi
26024 if test -n "${x_libraries}"; then
26025 echo " Where do we find X Windows libraries? ${x_libraries}"
26026 else
26027 echo " Where do we find X Windows libraries? Standard dirs"
26028 fi
26029
26030 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
26031 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
26032 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
26033 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
26034 echo " Does Emacs use -lungif? ${HAVE_GIF}"
26035 echo " Does Emacs use -lpng? ${HAVE_PNG}"
26036 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
26037 echo
26038
26039 if test $USE_XASSERTS = yes; then
26040 echo " Compiling with asserts turned on."
26041 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
26042 echo
26043 fi
26044
26045
26046
26047 # Remove any trailing slashes in these variables.
26048 test "${prefix}" != NONE &&
26049 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26050 test "${exec_prefix}" != NONE &&
26051 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26052
26053 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
26054 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
26055 ## from Makefile.c can correctly provide the arg `-traditional' to the
26056 ## C preprocessor.
26057
26058 cat >conftest.$ac_ext <<_ACEOF
26059 /* confdefs.h. */
26060 _ACEOF
26061 cat confdefs.h >>conftest.$ac_ext
26062 cat >>conftest.$ac_ext <<_ACEOF
26063 /* end confdefs.h. */
26064 yes..yes
26065 _ACEOF
26066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26067 $EGREP "yes..yes" >/dev/null 2>&1; then
26068 CPP_NEED_TRADITIONAL=no
26069 else
26070 CPP_NEED_TRADITIONAL=yes
26071 fi
26072 rm -f conftest*
26073
26074
26075 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"
26076
26077 ac_config_commands="$ac_config_commands default"
26078
26079 cat >confcache <<\_ACEOF
26080 # This file is a shell script that caches the results of configure
26081 # tests run on this system so they can be shared between configure
26082 # scripts and configure runs, see configure's option --config-cache.
26083 # It is not useful on other systems. If it contains results you don't
26084 # want to keep, you may remove or edit it.
26085 #
26086 # config.status only pays attention to the cache file if you give it
26087 # the --recheck option to rerun configure.
26088 #
26089 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26090 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26091 # following values.
26092
26093 _ACEOF
26094
26095 # The following way of writing the cache mishandles newlines in values,
26096 # but we know of no workaround that is simple, portable, and efficient.
26097 # So, we kill variables containing newlines.
26098 # Ultrix sh set writes to stderr and can't be redirected directly,
26099 # and sets the high bit in the cache file unless we assign to the vars.
26100 (
26101 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26102 eval ac_val=\$$ac_var
26103 case $ac_val in #(
26104 *${as_nl}*)
26105 case $ac_var in #(
26106 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26107 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26108 esac
26109 case $ac_var in #(
26110 _ | IFS | as_nl) ;; #(
26111 *) $as_unset $ac_var ;;
26112 esac ;;
26113 esac
26114 done
26115
26116 (set) 2>&1 |
26117 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26118 *${as_nl}ac_space=\ *)
26119 # `set' does not quote correctly, so add quotes (double-quote
26120 # substitution turns \\\\ into \\, and sed turns \\ into \).
26121 sed -n \
26122 "s/'/'\\\\''/g;
26123 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26124 ;; #(
26125 *)
26126 # `set' quotes correctly as required by POSIX, so do not add quotes.
26127 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26128 ;;
26129 esac |
26130 sort
26131 ) |
26132 sed '
26133 /^ac_cv_env_/b end
26134 t clear
26135 :clear
26136 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26137 t end
26138 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26139 :end' >>confcache
26140 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26141 if test -w "$cache_file"; then
26142 test "x$cache_file" != "x/dev/null" &&
26143 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26144 echo "$as_me: updating cache $cache_file" >&6;}
26145 cat confcache >$cache_file
26146 else
26147 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26148 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26149 fi
26150 fi
26151 rm -f confcache
26152
26153 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26154 # Let make expand exec_prefix.
26155 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26156
26157 DEFS=-DHAVE_CONFIG_H
26158
26159 ac_libobjs=
26160 ac_ltlibobjs=
26161 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26162 # 1. Remove the extension, and $U if already installed.
26163 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26164 ac_i=`echo "$ac_i" | sed "$ac_script"`
26165 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26166 # will be set to the directory where LIBOBJS objects are built.
26167 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26168 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26169 done
26170 LIBOBJS=$ac_libobjs
26171
26172 LTLIBOBJS=$ac_ltlibobjs
26173
26174
26175
26176 : ${CONFIG_STATUS=./config.status}
26177 ac_clean_files_save=$ac_clean_files
26178 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26179 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26180 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26181 cat >$CONFIG_STATUS <<_ACEOF
26182 #! $SHELL
26183 # Generated by $as_me.
26184 # Run this file to recreate the current configuration.
26185 # Compiler output produced by configure, useful for debugging
26186 # configure, is in config.log if it exists.
26187
26188 debug=false
26189 ac_cs_recheck=false
26190 ac_cs_silent=false
26191 SHELL=\${CONFIG_SHELL-$SHELL}
26192 _ACEOF
26193
26194 cat >>$CONFIG_STATUS <<\_ACEOF
26195 ## --------------------- ##
26196 ## M4sh Initialization. ##
26197 ## --------------------- ##
26198
26199 # Be Bourne compatible
26200 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26201 emulate sh
26202 NULLCMD=:
26203 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26204 # is contrary to our usage. Disable this feature.
26205 alias -g '${1+"$@"}'='"$@"'
26206 setopt NO_GLOB_SUBST
26207 else
26208 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
26209 fi
26210 BIN_SH=xpg4; export BIN_SH # for Tru64
26211 DUALCASE=1; export DUALCASE # for MKS sh
26212
26213
26214 # PATH needs CR
26215 # Avoid depending upon Character Ranges.
26216 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26217 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26218 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26219 as_cr_digits='0123456789'
26220 as_cr_alnum=$as_cr_Letters$as_cr_digits
26221
26222 # The user is always right.
26223 if test "${PATH_SEPARATOR+set}" != set; then
26224 echo "#! /bin/sh" >conf$$.sh
26225 echo "exit 0" >>conf$$.sh
26226 chmod +x conf$$.sh
26227 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26228 PATH_SEPARATOR=';'
26229 else
26230 PATH_SEPARATOR=:
26231 fi
26232 rm -f conf$$.sh
26233 fi
26234
26235 # Support unset when possible.
26236 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26237 as_unset=unset
26238 else
26239 as_unset=false
26240 fi
26241
26242
26243 # IFS
26244 # We need space, tab and new line, in precisely that order. Quoting is
26245 # there to prevent editors from complaining about space-tab.
26246 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26247 # splitting by setting IFS to empty value.)
26248 as_nl='
26249 '
26250 IFS=" "" $as_nl"
26251
26252 # Find who we are. Look in the path if we contain no directory separator.
26253 case $0 in
26254 *[\\/]* ) as_myself=$0 ;;
26255 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26256 for as_dir in $PATH
26257 do
26258 IFS=$as_save_IFS
26259 test -z "$as_dir" && as_dir=.
26260 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26261 done
26262 IFS=$as_save_IFS
26263
26264 ;;
26265 esac
26266 # We did not find ourselves, most probably we were run as `sh COMMAND'
26267 # in which case we are not to be found in the path.
26268 if test "x$as_myself" = x; then
26269 as_myself=$0
26270 fi
26271 if test ! -f "$as_myself"; then
26272 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26273 { (exit 1); exit 1; }
26274 fi
26275
26276 # Work around bugs in pre-3.0 UWIN ksh.
26277 for as_var in ENV MAIL MAILPATH
26278 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26279 done
26280 PS1='$ '
26281 PS2='> '
26282 PS4='+ '
26283
26284 # NLS nuisances.
26285 for as_var in \
26286 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26287 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26288 LC_TELEPHONE LC_TIME
26289 do
26290 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26291 eval $as_var=C; export $as_var
26292 else
26293 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26294 fi
26295 done
26296
26297 # Required to use basename.
26298 if expr a : '\(a\)' >/dev/null 2>&1 &&
26299 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26300 as_expr=expr
26301 else
26302 as_expr=false
26303 fi
26304
26305 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26306 as_basename=basename
26307 else
26308 as_basename=false
26309 fi
26310
26311
26312 # Name of the executable.
26313 as_me=`$as_basename -- "$0" ||
26314 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26315 X"$0" : 'X\(//\)$' \| \
26316 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26317 echo X/"$0" |
26318 sed '/^.*\/\([^/][^/]*\)\/*$/{
26319 s//\1/
26320 q
26321 }
26322 /^X\/\(\/\/\)$/{
26323 s//\1/
26324 q
26325 }
26326 /^X\/\(\/\).*/{
26327 s//\1/
26328 q
26329 }
26330 s/.*/./; q'`
26331
26332 # CDPATH.
26333 $as_unset CDPATH
26334
26335
26336
26337 as_lineno_1=$LINENO
26338 as_lineno_2=$LINENO
26339 test "x$as_lineno_1" != "x$as_lineno_2" &&
26340 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26341
26342 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26343 # uniformly replaced by the line number. The first 'sed' inserts a
26344 # line-number line after each line using $LINENO; the second 'sed'
26345 # does the real work. The second script uses 'N' to pair each
26346 # line-number line with the line containing $LINENO, and appends
26347 # trailing '-' during substitution so that $LINENO is not a special
26348 # case at line end.
26349 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26350 # scripts with optimization help from Paolo Bonzini. Blame Lee
26351 # E. McMahon (1931-1989) for sed's syntax. :-)
26352 sed -n '
26353 p
26354 /[$]LINENO/=
26355 ' <$as_myself |
26356 sed '
26357 s/[$]LINENO.*/&-/
26358 t lineno
26359 b
26360 :lineno
26361 N
26362 :loop
26363 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26364 t loop
26365 s/-\n.*//
26366 ' >$as_me.lineno &&
26367 chmod +x "$as_me.lineno" ||
26368 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26369 { (exit 1); exit 1; }; }
26370
26371 # Don't try to exec as it changes $[0], causing all sort of problems
26372 # (the dirname of $[0] is not the place where we might find the
26373 # original and so on. Autoconf is especially sensitive to this).
26374 . "./$as_me.lineno"
26375 # Exit status is that of the last command.
26376 exit
26377 }
26378
26379
26380 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26381 as_dirname=dirname
26382 else
26383 as_dirname=false
26384 fi
26385
26386 ECHO_C= ECHO_N= ECHO_T=
26387 case `echo -n x` in
26388 -n*)
26389 case `echo 'x\c'` in
26390 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26391 *) ECHO_C='\c';;
26392 esac;;
26393 *)
26394 ECHO_N='-n';;
26395 esac
26396
26397 if expr a : '\(a\)' >/dev/null 2>&1 &&
26398 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26399 as_expr=expr
26400 else
26401 as_expr=false
26402 fi
26403
26404 rm -f conf$$ conf$$.exe conf$$.file
26405 if test -d conf$$.dir; then
26406 rm -f conf$$.dir/conf$$.file
26407 else
26408 rm -f conf$$.dir
26409 mkdir conf$$.dir
26410 fi
26411 echo >conf$$.file
26412 if ln -s conf$$.file conf$$ 2>/dev/null; then
26413 as_ln_s='ln -s'
26414 # ... but there are two gotchas:
26415 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26416 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26417 # In both cases, we have to default to `cp -p'.
26418 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26419 as_ln_s='cp -p'
26420 elif ln conf$$.file conf$$ 2>/dev/null; then
26421 as_ln_s=ln
26422 else
26423 as_ln_s='cp -p'
26424 fi
26425 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26426 rmdir conf$$.dir 2>/dev/null
26427
26428 if mkdir -p . 2>/dev/null; then
26429 as_mkdir_p=:
26430 else
26431 test -d ./-p && rmdir ./-p
26432 as_mkdir_p=false
26433 fi
26434
26435 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
26436 # systems may use methods other than mode bits to determine executability.
26437 cat >conf$$.file <<_ASEOF
26438 #! /bin/sh
26439 exit 0
26440 _ASEOF
26441 chmod +x conf$$.file
26442 if test -x conf$$.file >/dev/null 2>&1; then
26443 as_executable_p="test -x"
26444 else
26445 as_executable_p=:
26446 fi
26447 rm -f conf$$.file
26448
26449 # Sed expression to map a string onto a valid CPP name.
26450 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26451
26452 # Sed expression to map a string onto a valid variable name.
26453 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26454
26455
26456 exec 6>&1
26457
26458 # Save the log message, to keep $[0] and so on meaningful, and to
26459 # report actual input values of CONFIG_FILES etc. instead of their
26460 # values after options handling.
26461 ac_log="
26462 This file was extended by $as_me, which was
26463 generated by GNU Autoconf 2.60. Invocation command line was
26464
26465 CONFIG_FILES = $CONFIG_FILES
26466 CONFIG_HEADERS = $CONFIG_HEADERS
26467 CONFIG_LINKS = $CONFIG_LINKS
26468 CONFIG_COMMANDS = $CONFIG_COMMANDS
26469 $ $0 $@
26470
26471 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26472 "
26473
26474 _ACEOF
26475
26476 cat >>$CONFIG_STATUS <<_ACEOF
26477 # Files that config.status was made for.
26478 config_files="$ac_config_files"
26479 config_headers="$ac_config_headers"
26480 config_commands="$ac_config_commands"
26481
26482 _ACEOF
26483
26484 cat >>$CONFIG_STATUS <<\_ACEOF
26485 ac_cs_usage="\
26486 \`$as_me' instantiates files from templates according to the
26487 current configuration.
26488
26489 Usage: $0 [OPTIONS] [FILE]...
26490
26491 -h, --help print this help, then exit
26492 -V, --version print version number, then exit
26493 -q, --quiet do not print progress messages
26494 -d, --debug don't remove temporary files
26495 --recheck update $as_me by reconfiguring in the same conditions
26496 --file=FILE[:TEMPLATE]
26497 instantiate the configuration file FILE
26498 --header=FILE[:TEMPLATE]
26499 instantiate the configuration header FILE
26500
26501 Configuration files:
26502 $config_files
26503
26504 Configuration headers:
26505 $config_headers
26506
26507 Configuration commands:
26508 $config_commands
26509
26510 Report bugs to <bug-autoconf@gnu.org>."
26511
26512 _ACEOF
26513 cat >>$CONFIG_STATUS <<_ACEOF
26514 ac_cs_version="\\
26515 config.status
26516 configured by $0, generated by GNU Autoconf 2.60,
26517 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26518
26519 Copyright (C) 2006 Free Software Foundation, Inc.
26520 This config.status script is free software; the Free Software Foundation
26521 gives unlimited permission to copy, distribute and modify it."
26522
26523 ac_pwd='$ac_pwd'
26524 srcdir='$srcdir'
26525 INSTALL='$INSTALL'
26526 _ACEOF
26527
26528 cat >>$CONFIG_STATUS <<\_ACEOF
26529 # If no file are specified by the user, then we need to provide default
26530 # value. By we need to know if files were specified by the user.
26531 ac_need_defaults=:
26532 while test $# != 0
26533 do
26534 case $1 in
26535 --*=*)
26536 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26537 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26538 ac_shift=:
26539 ;;
26540 *)
26541 ac_option=$1
26542 ac_optarg=$2
26543 ac_shift=shift
26544 ;;
26545 esac
26546
26547 case $ac_option in
26548 # Handling of the options.
26549 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26550 ac_cs_recheck=: ;;
26551 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26552 echo "$ac_cs_version"; exit ;;
26553 --debug | --debu | --deb | --de | --d | -d )
26554 debug=: ;;
26555 --file | --fil | --fi | --f )
26556 $ac_shift
26557 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26558 ac_need_defaults=false;;
26559 --header | --heade | --head | --hea )
26560 $ac_shift
26561 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26562 ac_need_defaults=false;;
26563 --he | --h)
26564 # Conflict between --help and --header
26565 { echo "$as_me: error: ambiguous option: $1
26566 Try \`$0 --help' for more information." >&2
26567 { (exit 1); exit 1; }; };;
26568 --help | --hel | -h )
26569 echo "$ac_cs_usage"; exit ;;
26570 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26571 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26572 ac_cs_silent=: ;;
26573
26574 # This is an error.
26575 -*) { echo "$as_me: error: unrecognized option: $1
26576 Try \`$0 --help' for more information." >&2
26577 { (exit 1); exit 1; }; } ;;
26578
26579 *) ac_config_targets="$ac_config_targets $1"
26580 ac_need_defaults=false ;;
26581
26582 esac
26583 shift
26584 done
26585
26586 ac_configure_extra_args=
26587
26588 if $ac_cs_silent; then
26589 exec 6>/dev/null
26590 ac_configure_extra_args="$ac_configure_extra_args --silent"
26591 fi
26592
26593 _ACEOF
26594 cat >>$CONFIG_STATUS <<_ACEOF
26595 if \$ac_cs_recheck; then
26596 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26597 CONFIG_SHELL=$SHELL
26598 export CONFIG_SHELL
26599 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26600 fi
26601
26602 _ACEOF
26603 cat >>$CONFIG_STATUS <<\_ACEOF
26604 exec 5>>config.log
26605 {
26606 echo
26607 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26608 ## Running $as_me. ##
26609 _ASBOX
26610 echo "$ac_log"
26611 } >&5
26612
26613 _ACEOF
26614 cat >>$CONFIG_STATUS <<_ACEOF
26615 #
26616 # INIT-COMMANDS
26617 #
26618 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
26619
26620 _ACEOF
26621
26622 cat >>$CONFIG_STATUS <<\_ACEOF
26623
26624 # Handling of arguments.
26625 for ac_config_target in $ac_config_targets
26626 do
26627 case $ac_config_target in
26628 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
26629 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26630 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
26631 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
26632 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
26633 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
26634 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
26635 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
26636 "lispref/Makefile") CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
26637 "lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
26638 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
26639 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26640
26641 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26642 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26643 { (exit 1); exit 1; }; };;
26644 esac
26645 done
26646
26647
26648 # If the user did not use the arguments to specify the items to instantiate,
26649 # then the envvar interface is used. Set only those that are not.
26650 # We use the long form for the default assignment because of an extremely
26651 # bizarre bug on SunOS 4.1.3.
26652 if $ac_need_defaults; then
26653 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26654 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26655 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26656 fi
26657
26658 # Have a temporary directory for convenience. Make it in the build tree
26659 # simply because there is no reason against having it here, and in addition,
26660 # creating and moving files from /tmp can sometimes cause problems.
26661 # Hook for its removal unless debugging.
26662 # Note that there is a small window in which the directory will not be cleaned:
26663 # after its creation but before its name has been assigned to `$tmp'.
26664 $debug ||
26665 {
26666 tmp=
26667 trap 'exit_status=$?
26668 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26669 ' 0
26670 trap '{ (exit 1); exit 1; }' 1 2 13 15
26671 }
26672 # Create a (secure) tmp directory for tmp files.
26673
26674 {
26675 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26676 test -n "$tmp" && test -d "$tmp"
26677 } ||
26678 {
26679 tmp=./conf$$-$RANDOM
26680 (umask 077 && mkdir "$tmp")
26681 } ||
26682 {
26683 echo "$me: cannot create a temporary directory in ." >&2
26684 { (exit 1); exit 1; }
26685 }
26686
26687 #
26688 # Set up the sed scripts for CONFIG_FILES section.
26689 #
26690
26691 # No need to generate the scripts if there are no CONFIG_FILES.
26692 # This happens for instance when ./config.status config.h
26693 if test -n "$CONFIG_FILES"; then
26694
26695 _ACEOF
26696
26697
26698
26699 ac_delim='%!_!# '
26700 for ac_last_try in false false false false false :; do
26701 cat >conf$$subs.sed <<_ACEOF
26702 SHELL!$SHELL$ac_delim
26703 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26704 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26705 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26706 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26707 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26708 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26709 exec_prefix!$exec_prefix$ac_delim
26710 prefix!$prefix$ac_delim
26711 program_transform_name!$program_transform_name$ac_delim
26712 bindir!$bindir$ac_delim
26713 sbindir!$sbindir$ac_delim
26714 libexecdir!$libexecdir$ac_delim
26715 datarootdir!$datarootdir$ac_delim
26716 datadir!$datadir$ac_delim
26717 sysconfdir!$sysconfdir$ac_delim
26718 sharedstatedir!$sharedstatedir$ac_delim
26719 localstatedir!$localstatedir$ac_delim
26720 includedir!$includedir$ac_delim
26721 oldincludedir!$oldincludedir$ac_delim
26722 docdir!$docdir$ac_delim
26723 infodir!$infodir$ac_delim
26724 htmldir!$htmldir$ac_delim
26725 dvidir!$dvidir$ac_delim
26726 pdfdir!$pdfdir$ac_delim
26727 psdir!$psdir$ac_delim
26728 libdir!$libdir$ac_delim
26729 localedir!$localedir$ac_delim
26730 mandir!$mandir$ac_delim
26731 DEFS!$DEFS$ac_delim
26732 ECHO_C!$ECHO_C$ac_delim
26733 ECHO_N!$ECHO_N$ac_delim
26734 ECHO_T!$ECHO_T$ac_delim
26735 LIBS!$LIBS$ac_delim
26736 build_alias!$build_alias$ac_delim
26737 host_alias!$host_alias$ac_delim
26738 target_alias!$target_alias$ac_delim
26739 MAINT!$MAINT$ac_delim
26740 build!$build$ac_delim
26741 build_cpu!$build_cpu$ac_delim
26742 build_vendor!$build_vendor$ac_delim
26743 build_os!$build_os$ac_delim
26744 host!$host$ac_delim
26745 host_cpu!$host_cpu$ac_delim
26746 host_vendor!$host_vendor$ac_delim
26747 host_os!$host_os$ac_delim
26748 CC!$CC$ac_delim
26749 CFLAGS!$CFLAGS$ac_delim
26750 LDFLAGS!$LDFLAGS$ac_delim
26751 CPPFLAGS!$CPPFLAGS$ac_delim
26752 ac_ct_CC!$ac_ct_CC$ac_delim
26753 EXEEXT!$EXEEXT$ac_delim
26754 OBJEXT!$OBJEXT$ac_delim
26755 CPP!$CPP$ac_delim
26756 GREP!$GREP$ac_delim
26757 EGREP!$EGREP$ac_delim
26758 LN_S!$LN_S$ac_delim
26759 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26760 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26761 INSTALL_DATA!$INSTALL_DATA$ac_delim
26762 RANLIB!$RANLIB$ac_delim
26763 INSTALL_INFO!$INSTALL_INFO$ac_delim
26764 GZIP_PROG!$GZIP_PROG$ac_delim
26765 LIBSOUND!$LIBSOUND$ac_delim
26766 PKG_CONFIG!$PKG_CONFIG$ac_delim
26767 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
26768 ALSA_LIBS!$ALSA_LIBS$ac_delim
26769 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
26770 SET_MAKE!$SET_MAKE$ac_delim
26771 XMKMF!$XMKMF$ac_delim
26772 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
26773 GTK_LIBS!$GTK_LIBS$ac_delim
26774 ALLOCA!$ALLOCA$ac_delim
26775 liblockfile!$liblockfile$ac_delim
26776 LIBOBJS!$LIBOBJS$ac_delim
26777 NEED_SETGID!$NEED_SETGID$ac_delim
26778 KMEM_GROUP!$KMEM_GROUP$ac_delim
26779 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
26780 GETOPT_H!$GETOPT_H$ac_delim
26781 GETOPTOBJS!$GETOPTOBJS$ac_delim
26782 version!$version$ac_delim
26783 configuration!$configuration$ac_delim
26784 canonical!$canonical$ac_delim
26785 srcdir!$srcdir$ac_delim
26786 lispdir!$lispdir$ac_delim
26787 locallisppath!$locallisppath$ac_delim
26788 lisppath!$lisppath$ac_delim
26789 x_default_search_path!$x_default_search_path$ac_delim
26790 etcdir!$etcdir$ac_delim
26791 archlibdir!$archlibdir$ac_delim
26792 bitmapdir!$bitmapdir$ac_delim
26793 gamedir!$gamedir$ac_delim
26794 gameuser!$gameuser$ac_delim
26795 c_switch_system!$c_switch_system$ac_delim
26796 c_switch_machine!$c_switch_machine$ac_delim
26797 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
26798 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
26799 _ACEOF
26800
26801 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26802 break
26803 elif $ac_last_try; then
26804 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26805 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26806 { (exit 1); exit 1; }; }
26807 else
26808 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26809 fi
26810 done
26811
26812 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26813 if test -n "$ac_eof"; then
26814 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26815 ac_eof=`expr $ac_eof + 1`
26816 fi
26817
26818 cat >>$CONFIG_STATUS <<_ACEOF
26819 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26820 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26821 _ACEOF
26822 sed '
26823 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26824 s/^/s,@/; s/!/@,|#_!!_#|/
26825 :n
26826 t n
26827 s/'"$ac_delim"'$/,g/; t
26828 s/$/\\/; p
26829 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26830 ' >>$CONFIG_STATUS <conf$$subs.sed
26831 rm -f conf$$subs.sed
26832 cat >>$CONFIG_STATUS <<_ACEOF
26833 CEOF$ac_eof
26834 _ACEOF
26835
26836
26837 ac_delim='%!_!# '
26838 for ac_last_try in false false false false false :; do
26839 cat >conf$$subs.sed <<_ACEOF
26840 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
26841 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
26842 machfile!$machfile$ac_delim
26843 opsysfile!$opsysfile$ac_delim
26844 carbon_appdir!$carbon_appdir$ac_delim
26845 LTLIBOBJS!$LTLIBOBJS$ac_delim
26846 _ACEOF
26847
26848 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
26849 break
26850 elif $ac_last_try; then
26851 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26852 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26853 { (exit 1); exit 1; }; }
26854 else
26855 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26856 fi
26857 done
26858
26859 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26860 if test -n "$ac_eof"; then
26861 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26862 ac_eof=`expr $ac_eof + 1`
26863 fi
26864
26865 cat >>$CONFIG_STATUS <<_ACEOF
26866 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26867 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26868 _ACEOF
26869 sed '
26870 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26871 s/^/s,@/; s/!/@,|#_!!_#|/
26872 :n
26873 t n
26874 s/'"$ac_delim"'$/,g/; t
26875 s/$/\\/; p
26876 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26877 ' >>$CONFIG_STATUS <conf$$subs.sed
26878 rm -f conf$$subs.sed
26879 cat >>$CONFIG_STATUS <<_ACEOF
26880 :end
26881 s/|#_!!_#|//g
26882 CEOF$ac_eof
26883 _ACEOF
26884
26885
26886 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26887 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26888 # trailing colons and then remove the whole line if VPATH becomes empty
26889 # (actually we leave an empty line to preserve line numbers).
26890 if test "x$srcdir" = x.; then
26891 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26892 s/:*\$(srcdir):*/:/
26893 s/:*\${srcdir}:*/:/
26894 s/:*@srcdir@:*/:/
26895 s/^\([^=]*=[ ]*\):*/\1/
26896 s/:*$//
26897 s/^[^=]*=[ ]*$//
26898 }'
26899 fi
26900
26901 cat >>$CONFIG_STATUS <<\_ACEOF
26902 fi # test -n "$CONFIG_FILES"
26903
26904
26905 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
26906 do
26907 case $ac_tag in
26908 :[FHLC]) ac_mode=$ac_tag; continue;;
26909 esac
26910 case $ac_mode$ac_tag in
26911 :[FHL]*:*);;
26912 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26913 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26914 { (exit 1); exit 1; }; };;
26915 :[FH]-) ac_tag=-:-;;
26916 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26917 esac
26918 ac_save_IFS=$IFS
26919 IFS=:
26920 set x $ac_tag
26921 IFS=$ac_save_IFS
26922 shift
26923 ac_file=$1
26924 shift
26925
26926 case $ac_mode in
26927 :L) ac_source=$1;;
26928 :[FH])
26929 ac_file_inputs=
26930 for ac_f
26931 do
26932 case $ac_f in
26933 -) ac_f="$tmp/stdin";;
26934 *) # Look for the file first in the build tree, then in the source tree
26935 # (if the path is not absolute). The absolute path cannot be DOS-style,
26936 # because $ac_f cannot contain `:'.
26937 test -f "$ac_f" ||
26938 case $ac_f in
26939 [\\/$]*) false;;
26940 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26941 esac ||
26942 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26943 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26944 { (exit 1); exit 1; }; };;
26945 esac
26946 ac_file_inputs="$ac_file_inputs $ac_f"
26947 done
26948
26949 # Let's still pretend it is `configure' which instantiates (i.e., don't
26950 # use $as_me), people would be surprised to read:
26951 # /* config.h. Generated by config.status. */
26952 configure_input="Generated from "`IFS=:
26953 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26954 if test x"$ac_file" != x-; then
26955 configure_input="$ac_file. $configure_input"
26956 { echo "$as_me:$LINENO: creating $ac_file" >&5
26957 echo "$as_me: creating $ac_file" >&6;}
26958 fi
26959
26960 case $ac_tag in
26961 *:-:* | *:-) cat >"$tmp/stdin";;
26962 esac
26963 ;;
26964 esac
26965
26966 ac_dir=`$as_dirname -- "$ac_file" ||
26967 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26968 X"$ac_file" : 'X\(//\)[^/]' \| \
26969 X"$ac_file" : 'X\(//\)$' \| \
26970 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26971 echo X"$ac_file" |
26972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26973 s//\1/
26974 q
26975 }
26976 /^X\(\/\/\)[^/].*/{
26977 s//\1/
26978 q
26979 }
26980 /^X\(\/\/\)$/{
26981 s//\1/
26982 q
26983 }
26984 /^X\(\/\).*/{
26985 s//\1/
26986 q
26987 }
26988 s/.*/./; q'`
26989 { as_dir="$ac_dir"
26990 case $as_dir in #(
26991 -*) as_dir=./$as_dir;;
26992 esac
26993 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26994 as_dirs=
26995 while :; do
26996 case $as_dir in #(
26997 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26998 *) as_qdir=$as_dir;;
26999 esac
27000 as_dirs="'$as_qdir' $as_dirs"
27001 as_dir=`$as_dirname -- "$as_dir" ||
27002 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27003 X"$as_dir" : 'X\(//\)[^/]' \| \
27004 X"$as_dir" : 'X\(//\)$' \| \
27005 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27006 echo X"$as_dir" |
27007 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27008 s//\1/
27009 q
27010 }
27011 /^X\(\/\/\)[^/].*/{
27012 s//\1/
27013 q
27014 }
27015 /^X\(\/\/\)$/{
27016 s//\1/
27017 q
27018 }
27019 /^X\(\/\).*/{
27020 s//\1/
27021 q
27022 }
27023 s/.*/./; q'`
27024 test -d "$as_dir" && break
27025 done
27026 test -z "$as_dirs" || eval "mkdir $as_dirs"
27027 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27028 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27029 { (exit 1); exit 1; }; }; }
27030 ac_builddir=.
27031
27032 case "$ac_dir" in
27033 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27034 *)
27035 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27036 # A ".." for each directory in $ac_dir_suffix.
27037 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27038 case $ac_top_builddir_sub in
27039 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27040 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27041 esac ;;
27042 esac
27043 ac_abs_top_builddir=$ac_pwd
27044 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27045 # for backward compatibility:
27046 ac_top_builddir=$ac_top_build_prefix
27047
27048 case $srcdir in
27049 .) # We are building in place.
27050 ac_srcdir=.
27051 ac_top_srcdir=$ac_top_builddir_sub
27052 ac_abs_top_srcdir=$ac_pwd ;;
27053 [\\/]* | ?:[\\/]* ) # Absolute name.
27054 ac_srcdir=$srcdir$ac_dir_suffix;
27055 ac_top_srcdir=$srcdir
27056 ac_abs_top_srcdir=$srcdir ;;
27057 *) # Relative name.
27058 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27059 ac_top_srcdir=$ac_top_build_prefix$srcdir
27060 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27061 esac
27062 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27063
27064
27065 case $ac_mode in
27066 :F)
27067 #
27068 # CONFIG_FILE
27069 #
27070
27071 case $INSTALL in
27072 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27073 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27074 esac
27075 _ACEOF
27076
27077 cat >>$CONFIG_STATUS <<\_ACEOF
27078 # If the template does not know about datarootdir, expand it.
27079 # FIXME: This hack should be removed a few years after 2.60.
27080 ac_datarootdir_hack=; ac_datarootdir_seen=
27081
27082 case `sed -n '/datarootdir/ {
27083 p
27084 q
27085 }
27086 /@datadir@/p
27087 /@docdir@/p
27088 /@infodir@/p
27089 /@localedir@/p
27090 /@mandir@/p
27091 ' $ac_file_inputs` in
27092 *datarootdir*) ac_datarootdir_seen=yes;;
27093 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27094 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27095 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27096 _ACEOF
27097 cat >>$CONFIG_STATUS <<_ACEOF
27098 ac_datarootdir_hack='
27099 s&@datadir@&$datadir&g
27100 s&@docdir@&$docdir&g
27101 s&@infodir@&$infodir&g
27102 s&@localedir@&$localedir&g
27103 s&@mandir@&$mandir&g
27104 s&\\\${datarootdir}&$datarootdir&g' ;;
27105 esac
27106 _ACEOF
27107
27108 # Neutralize VPATH when `$srcdir' = `.'.
27109 # Shell code in configure.ac might set extrasub.
27110 # FIXME: do we really want to maintain this feature?
27111 cat >>$CONFIG_STATUS <<_ACEOF
27112 sed "$ac_vpsub
27113 $extrasub
27114 _ACEOF
27115 cat >>$CONFIG_STATUS <<\_ACEOF
27116 :t
27117 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27118 s&@configure_input@&$configure_input&;t t
27119 s&@top_builddir@&$ac_top_builddir_sub&;t t
27120 s&@srcdir@&$ac_srcdir&;t t
27121 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27122 s&@top_srcdir@&$ac_top_srcdir&;t t
27123 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27124 s&@builddir@&$ac_builddir&;t t
27125 s&@abs_builddir@&$ac_abs_builddir&;t t
27126 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27127 s&@INSTALL@&$ac_INSTALL&;t t
27128 $ac_datarootdir_hack
27129 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27130
27131 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27132 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27133 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27134 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27135 which seems to be undefined. Please make sure it is defined." >&5
27136 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27137 which seems to be undefined. Please make sure it is defined." >&2;}
27138
27139 rm -f "$tmp/stdin"
27140 case $ac_file in
27141 -) cat "$tmp/out"; rm -f "$tmp/out";;
27142 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27143 esac
27144 ;;
27145 :H)
27146 #
27147 # CONFIG_HEADER
27148 #
27149 _ACEOF
27150
27151 # Transform confdefs.h into a sed script `conftest.defines', that
27152 # substitutes the proper values into config.h.in to produce config.h.
27153 rm -f conftest.defines conftest.tail
27154 # First, append a space to every undef/define line, to ease matching.
27155 echo 's/$/ /' >conftest.defines
27156 # Then, protect against being on the right side of a sed subst, or in
27157 # an unquoted here document, in config.status. If some macros were
27158 # called several times there might be several #defines for the same
27159 # symbol, which is useless. But do not sort them, since the last
27160 # AC_DEFINE must be honored.
27161 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27162 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27163 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27164 # PARAMS is the parameter list in the macro definition--in most cases, it's
27165 # just an empty string.
27166 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27167 ac_dB='\\)[ (].*,\\1define\\2'
27168 ac_dC=' '
27169 ac_dD=' ,'
27170
27171 uniq confdefs.h |
27172 sed -n '
27173 t rset
27174 :rset
27175 s/^[ ]*#[ ]*define[ ][ ]*//
27176 t ok
27177 d
27178 :ok
27179 s/[\\&,]/\\&/g
27180 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27181 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27182 ' >>conftest.defines
27183
27184 # Remove the space that was appended to ease matching.
27185 # Then replace #undef with comments. This is necessary, for
27186 # example, in the case of _POSIX_SOURCE, which is predefined and required
27187 # on some systems where configure will not decide to define it.
27188 # (The regexp can be short, since the line contains either #define or #undef.)
27189 echo 's/ $//
27190 s,^[ #]*u.*,/* & */,' >>conftest.defines
27191
27192 # Break up conftest.defines:
27193 ac_max_sed_lines=50
27194
27195 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27196 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27197 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27198 # et cetera.
27199 ac_in='$ac_file_inputs'
27200 ac_out='"$tmp/out1"'
27201 ac_nxt='"$tmp/out2"'
27202
27203 while :
27204 do
27205 # Write a here document:
27206 cat >>$CONFIG_STATUS <<_ACEOF
27207 # First, check the format of the line:
27208 cat >"\$tmp/defines.sed" <<\\CEOF
27209 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27210 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27211 b
27212 :def
27213 _ACEOF
27214 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27215 echo 'CEOF
27216 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27217 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27218 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27219 grep . conftest.tail >/dev/null || break
27220 rm -f conftest.defines
27221 mv conftest.tail conftest.defines
27222 done
27223 rm -f conftest.defines conftest.tail
27224
27225 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27226 cat >>$CONFIG_STATUS <<\_ACEOF
27227 if test x"$ac_file" != x-; then
27228 echo "/* $configure_input */" >"$tmp/config.h"
27229 cat "$ac_result" >>"$tmp/config.h"
27230 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27231 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27232 echo "$as_me: $ac_file is unchanged" >&6;}
27233 else
27234 rm -f $ac_file
27235 mv "$tmp/config.h" $ac_file
27236 fi
27237 else
27238 echo "/* $configure_input */"
27239 cat "$ac_result"
27240 fi
27241 rm -f "$tmp/out12"
27242 ;;
27243
27244 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27245 echo "$as_me: executing $ac_file commands" >&6;}
27246 ;;
27247 esac
27248
27249
27250 case $ac_file$ac_mode in
27251 "default":C)
27252
27253 ### Make the necessary directories, if they don't exist.
27254 for dir in etc lisp ; do
27255 test -d ${dir} || mkdir ${dir}
27256 done
27257
27258 # Build src/Makefile from ${srcdir}/src/Makefile.c
27259 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
27260 # This must be done after src/config.h is built, since we rely on that file.
27261
27262 # Now get this: Some word that is part of the ${srcdir} directory name
27263 # or the ${configuration} value might, just might, happen to be an
27264 # identifier like `sun4' or `i386' or something, and be predefined by
27265 # the C preprocessor to some helpful value like 1, or maybe the empty
27266 # string. Needless to say consequent macro substitutions are less
27267 # than conducive to the makefile finding the correct directory.
27268 undefs="`echo $top_srcdir $configuration $canonical |
27269 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
27270 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
27271 `"
27272
27273 echo creating src/epaths.h
27274 ${MAKE-make} epaths-force
27275
27276 # As of 2000-11-19, newest development versions of GNU cpp preprocess
27277 # `..' to `. .' unless invoked with -traditional
27278
27279 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
27280 CPPFLAGS="$CPPFLAGS -traditional"
27281 fi
27282
27283 echo creating lib-src/Makefile
27284 ( cd lib-src
27285 rm -f junk.c junk1.c junk2.c
27286 sed -e '/start of cpp stuff/q' \
27287 < Makefile.c > junk1.c
27288 sed -e '1,/start of cpp stuff/d'\
27289 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27290 < Makefile.c > junk.c
27291 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
27292 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27293 cat junk1.c junk2.c > Makefile.new
27294 rm -f junk.c junk1.c junk2.c
27295 chmod 444 Makefile.new
27296 mv -f Makefile.new Makefile
27297 )
27298
27299 echo creating src/Makefile
27300 ( cd src
27301 rm -f junk.c junk1.c junk2.c
27302 sed -e '/start of cpp stuff/q' \
27303 < Makefile.c > junk1.c
27304 sed -e '1,/start of cpp stuff/d'\
27305 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27306 < Makefile.c > junk.c
27307 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
27308 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27309 cat junk1.c junk2.c > Makefile.new
27310 rm -f junk.c junk1.c junk2.c
27311 chmod 444 Makefile.new
27312 mv -f Makefile.new Makefile
27313 )
27314
27315 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
27316 echo creating src/.gdbinit
27317 echo source $srcdir/src/.gdbinit > src/.gdbinit
27318 fi
27319
27320 # This is how we know whether to re-run configure in certain cases.
27321 touch src/config.stamp
27322
27323 ;;
27324
27325 esac
27326 done # for ac_tag
27327
27328
27329 { (exit 0); exit 0; }
27330 _ACEOF
27331 chmod +x $CONFIG_STATUS
27332 ac_clean_files=$ac_clean_files_save
27333
27334
27335 # configure is writing to config.log, and then calls config.status.
27336 # config.status does its own redirection, appending to config.log.
27337 # Unfortunately, on DOS this fails, as config.log is still kept open
27338 # by configure, so config.status won't be able to write to it; its
27339 # output is simply discarded. So we exec the FD to /dev/null,
27340 # effectively closing config.log, so it can be properly (re)opened and
27341 # appended to by config.status. When coming back to configure, we
27342 # need to make the FD available again.
27343 if test "$no_create" != yes; then
27344 ac_cs_success=:
27345 ac_config_status_args=
27346 test "$silent" = yes &&
27347 ac_config_status_args="$ac_config_status_args --quiet"
27348 exec 5>/dev/null
27349 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27350 exec 5>>config.log
27351 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27352 # would make configure fail if this is the last instruction.
27353 $ac_cs_success || { (exit 1); exit 1; }
27354 fi
27355
27356