]> code.delx.au - gnu-emacs/blob - configure
Regenerate.
[gnu-emacs] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
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 more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" "" $as_nl"
69
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82 ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107 do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
159 fi
160
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
164 }
165 as_func_success () {
166 as_func_return 0
167 }
168 as_func_failure () {
169 as_func_return 1
170 }
171 as_func_ret_success () {
172 return 0
173 }
174 as_func_ret_failure () {
175 return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192 :
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205 else
206 exitcode=1
207 echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218 :
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278 (exit $1)
279 }
280 as_func_success () {
281 as_func_return 0
282 }
283 as_func_failure () {
284 as_func_return 1
285 }
286 as_func_ret_success () {
287 return 0
288 }
289 as_func_ret_failure () {
290 return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295 :
296 else
297 exitcode=1
298 echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307 :
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320 else
321 exitcode=1
322 echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335 break
336 fi
337
338 fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367 (exit \$1)
368 }
369 as_func_success () {
370 as_func_return 0
371 }
372 as_func_failure () {
373 as_func_return 1
374 }
375 as_func_ret_success () {
376 return 0
377 }
378 as_func_ret_failure () {
379 return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384 :
385 else
386 exitcode=1
387 echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396 :
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409 else
410 exitcode=1
411 echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419 }
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479 *)
480 ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="src/lisp.h"
580 ac_config_libobj_dir=src
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 # include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 # include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
616
617 ac_header_list=
618 ac_func_list=
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 MAINT
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 CC
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
672 CPP
673 GREP
674 EGREP
675 LN_S
676 INSTALL_PROGRAM
677 INSTALL_SCRIPT
678 INSTALL_DATA
679 RANLIB
680 INSTALL_INFO
681 GZIP_PROG
682 LIBSOUND
683 PKG_CONFIG
684 ALSA_CFLAGS
685 ALSA_LIBS
686
687 CFLAGS_SOUND
688 SET_MAKE
689 XMKMF
690 GTK_CFLAGS
691 GTK_LIBS
692 ALLOCA
693 liblockfile
694 LIBOBJS
695 NEED_SETGID
696 KMEM_GROUP
697 GETLOADAVG_LIBS
698 GETOPT_H
699 GETOPTOBJS
700 version
701 configuration
702 canonical
703 srcdir
704 lispdir
705 locallisppath
706 lisppath
707 x_default_search_path
708 etcdir
709 archlibdir
710 bitmapdir
711 gamedir
712 gameuser
713 c_switch_system
714 c_switch_machine
715 LD_SWITCH_X_SITE
716 LD_SWITCH_X_SITE_AUX
717 C_SWITCH_X_SITE
718 X_TOOLKIT_TYPE
719 machfile
720 opsysfile
721 carbon_appdir
722 LTLIBOBJS'
723 ac_subst_files=''
724 ac_precious_vars='build_alias
725 host_alias
726 target_alias
727 CC
728 CFLAGS
729 LDFLAGS
730 LIBS
731 CPPFLAGS
732 CPP
733 XMKMF'
734
735
736 # Initialize some variables set by options.
737 ac_init_help=
738 ac_init_version=false
739 # The variables have the same names as the options, with
740 # dashes changed to underlines.
741 cache_file=/dev/null
742 exec_prefix=NONE
743 no_create=
744 no_recursion=
745 prefix=NONE
746 program_prefix=NONE
747 program_suffix=NONE
748 program_transform_name=s,x,x,
749 silent=
750 site=
751 srcdir=
752 verbose=
753 x_includes=NONE
754 x_libraries=NONE
755
756 # Installation directory options.
757 # These are left unexpanded so users can "make install exec_prefix=/foo"
758 # and all the variables that are supposed to be based on exec_prefix
759 # by default will actually change.
760 # Use braces instead of parens because sh, perl, etc. also accept them.
761 # (The list follows the same order as the GNU Coding Standards.)
762 bindir='${exec_prefix}/bin'
763 sbindir='${exec_prefix}/sbin'
764 libexecdir='${exec_prefix}/libexec'
765 datarootdir='${prefix}/share'
766 datadir='${datarootdir}'
767 sysconfdir='${prefix}/etc'
768 sharedstatedir='${prefix}/com'
769 localstatedir='${prefix}/var'
770 includedir='${prefix}/include'
771 oldincludedir='/usr/include'
772 docdir='${datarootdir}/doc/${PACKAGE}'
773 infodir='${datarootdir}/info'
774 htmldir='${docdir}'
775 dvidir='${docdir}'
776 pdfdir='${docdir}'
777 psdir='${docdir}'
778 libdir='${exec_prefix}/lib'
779 localedir='${datarootdir}/locale'
780 mandir='${datarootdir}/man'
781
782 ac_prev=
783 ac_dashdash=
784 for ac_option
785 do
786 # If the previous option needs an argument, assign it.
787 if test -n "$ac_prev"; then
788 eval $ac_prev=\$ac_option
789 ac_prev=
790 continue
791 fi
792
793 case $ac_option in
794 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
795 *) ac_optarg=yes ;;
796 esac
797
798 # Accept the important Cygnus configure options, so we can diagnose typos.
799
800 case $ac_dashdash$ac_option in
801 --)
802 ac_dashdash=yes ;;
803
804 -bindir | --bindir | --bindi | --bind | --bin | --bi)
805 ac_prev=bindir ;;
806 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
807 bindir=$ac_optarg ;;
808
809 -build | --build | --buil | --bui | --bu)
810 ac_prev=build_alias ;;
811 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
812 build_alias=$ac_optarg ;;
813
814 -cache-file | --cache-file | --cache-fil | --cache-fi \
815 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
816 ac_prev=cache_file ;;
817 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
818 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
819 cache_file=$ac_optarg ;;
820
821 --config-cache | -C)
822 cache_file=config.cache ;;
823
824 -datadir | --datadir | --datadi | --datad)
825 ac_prev=datadir ;;
826 -datadir=* | --datadir=* | --datadi=* | --datad=*)
827 datadir=$ac_optarg ;;
828
829 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
830 | --dataroo | --dataro | --datar)
831 ac_prev=datarootdir ;;
832 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
833 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
834 datarootdir=$ac_optarg ;;
835
836 -disable-* | --disable-*)
837 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
838 # Reject names that are not valid shell variable names.
839 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
840 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
841 { (exit 1); exit 1; }; }
842 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
843 eval enable_$ac_feature=no ;;
844
845 -docdir | --docdir | --docdi | --doc | --do)
846 ac_prev=docdir ;;
847 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
848 docdir=$ac_optarg ;;
849
850 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
851 ac_prev=dvidir ;;
852 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
853 dvidir=$ac_optarg ;;
854
855 -enable-* | --enable-*)
856 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
857 # Reject names that are not valid shell variable names.
858 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
859 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
860 { (exit 1); exit 1; }; }
861 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
862 eval enable_$ac_feature=\$ac_optarg ;;
863
864 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
865 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
866 | --exec | --exe | --ex)
867 ac_prev=exec_prefix ;;
868 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
869 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
870 | --exec=* | --exe=* | --ex=*)
871 exec_prefix=$ac_optarg ;;
872
873 -gas | --gas | --ga | --g)
874 # Obsolete; use --with-gas.
875 with_gas=yes ;;
876
877 -help | --help | --hel | --he | -h)
878 ac_init_help=long ;;
879 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
880 ac_init_help=recursive ;;
881 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
882 ac_init_help=short ;;
883
884 -host | --host | --hos | --ho)
885 ac_prev=host_alias ;;
886 -host=* | --host=* | --hos=* | --ho=*)
887 host_alias=$ac_optarg ;;
888
889 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
890 ac_prev=htmldir ;;
891 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
892 | --ht=*)
893 htmldir=$ac_optarg ;;
894
895 -includedir | --includedir | --includedi | --included | --include \
896 | --includ | --inclu | --incl | --inc)
897 ac_prev=includedir ;;
898 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
899 | --includ=* | --inclu=* | --incl=* | --inc=*)
900 includedir=$ac_optarg ;;
901
902 -infodir | --infodir | --infodi | --infod | --info | --inf)
903 ac_prev=infodir ;;
904 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
905 infodir=$ac_optarg ;;
906
907 -libdir | --libdir | --libdi | --libd)
908 ac_prev=libdir ;;
909 -libdir=* | --libdir=* | --libdi=* | --libd=*)
910 libdir=$ac_optarg ;;
911
912 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
913 | --libexe | --libex | --libe)
914 ac_prev=libexecdir ;;
915 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
916 | --libexe=* | --libex=* | --libe=*)
917 libexecdir=$ac_optarg ;;
918
919 -localedir | --localedir | --localedi | --localed | --locale)
920 ac_prev=localedir ;;
921 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
922 localedir=$ac_optarg ;;
923
924 -localstatedir | --localstatedir | --localstatedi | --localstated \
925 | --localstate | --localstat | --localsta | --localst | --locals)
926 ac_prev=localstatedir ;;
927 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
928 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
929 localstatedir=$ac_optarg ;;
930
931 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
932 ac_prev=mandir ;;
933 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
934 mandir=$ac_optarg ;;
935
936 -nfp | --nfp | --nf)
937 # Obsolete; use --without-fp.
938 with_fp=no ;;
939
940 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
941 | --no-cr | --no-c | -n)
942 no_create=yes ;;
943
944 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
945 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
946 no_recursion=yes ;;
947
948 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
949 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
950 | --oldin | --oldi | --old | --ol | --o)
951 ac_prev=oldincludedir ;;
952 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
953 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
954 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
955 oldincludedir=$ac_optarg ;;
956
957 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
958 ac_prev=prefix ;;
959 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
960 prefix=$ac_optarg ;;
961
962 -program-prefix | --program-prefix | --program-prefi | --program-pref \
963 | --program-pre | --program-pr | --program-p)
964 ac_prev=program_prefix ;;
965 -program-prefix=* | --program-prefix=* | --program-prefi=* \
966 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
967 program_prefix=$ac_optarg ;;
968
969 -program-suffix | --program-suffix | --program-suffi | --program-suff \
970 | --program-suf | --program-su | --program-s)
971 ac_prev=program_suffix ;;
972 -program-suffix=* | --program-suffix=* | --program-suffi=* \
973 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
974 program_suffix=$ac_optarg ;;
975
976 -program-transform-name | --program-transform-name \
977 | --program-transform-nam | --program-transform-na \
978 | --program-transform-n | --program-transform- \
979 | --program-transform | --program-transfor \
980 | --program-transfo | --program-transf \
981 | --program-trans | --program-tran \
982 | --progr-tra | --program-tr | --program-t)
983 ac_prev=program_transform_name ;;
984 -program-transform-name=* | --program-transform-name=* \
985 | --program-transform-nam=* | --program-transform-na=* \
986 | --program-transform-n=* | --program-transform-=* \
987 | --program-transform=* | --program-transfor=* \
988 | --program-transfo=* | --program-transf=* \
989 | --program-trans=* | --program-tran=* \
990 | --progr-tra=* | --program-tr=* | --program-t=*)
991 program_transform_name=$ac_optarg ;;
992
993 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
994 ac_prev=pdfdir ;;
995 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
996 pdfdir=$ac_optarg ;;
997
998 -psdir | --psdir | --psdi | --psd | --ps)
999 ac_prev=psdir ;;
1000 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1001 psdir=$ac_optarg ;;
1002
1003 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1004 | -silent | --silent | --silen | --sile | --sil)
1005 silent=yes ;;
1006
1007 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1008 ac_prev=sbindir ;;
1009 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1010 | --sbi=* | --sb=*)
1011 sbindir=$ac_optarg ;;
1012
1013 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1014 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1015 | --sharedst | --shareds | --shared | --share | --shar \
1016 | --sha | --sh)
1017 ac_prev=sharedstatedir ;;
1018 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1019 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1020 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1021 | --sha=* | --sh=*)
1022 sharedstatedir=$ac_optarg ;;
1023
1024 -site | --site | --sit)
1025 ac_prev=site ;;
1026 -site=* | --site=* | --sit=*)
1027 site=$ac_optarg ;;
1028
1029 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1030 ac_prev=srcdir ;;
1031 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1032 srcdir=$ac_optarg ;;
1033
1034 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1035 | --syscon | --sysco | --sysc | --sys | --sy)
1036 ac_prev=sysconfdir ;;
1037 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1038 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1039 sysconfdir=$ac_optarg ;;
1040
1041 -target | --target | --targe | --targ | --tar | --ta | --t)
1042 ac_prev=target_alias ;;
1043 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1044 target_alias=$ac_optarg ;;
1045
1046 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1047 verbose=yes ;;
1048
1049 -version | --version | --versio | --versi | --vers | -V)
1050 ac_init_version=: ;;
1051
1052 -with-* | --with-*)
1053 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1056 { echo "$as_me: error: invalid package name: $ac_package" >&2
1057 { (exit 1); exit 1; }; }
1058 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1059 eval with_$ac_package=\$ac_optarg ;;
1060
1061 -without-* | --without-*)
1062 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1065 { echo "$as_me: error: invalid package name: $ac_package" >&2
1066 { (exit 1); exit 1; }; }
1067 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1068 eval with_$ac_package=no ;;
1069
1070 --x)
1071 # Obsolete; use --with-x.
1072 with_x=yes ;;
1073
1074 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1075 | --x-incl | --x-inc | --x-in | --x-i)
1076 ac_prev=x_includes ;;
1077 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1078 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1079 x_includes=$ac_optarg ;;
1080
1081 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1082 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1083 ac_prev=x_libraries ;;
1084 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1085 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1086 x_libraries=$ac_optarg ;;
1087
1088 -*) { echo "$as_me: error: unrecognized option: $ac_option
1089 Try \`$0 --help' for more information." >&2
1090 { (exit 1); exit 1; }; }
1091 ;;
1092
1093 *=*)
1094 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1095 # Reject names that are not valid shell variable names.
1096 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1097 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1098 { (exit 1); exit 1; }; }
1099 eval $ac_envvar=\$ac_optarg
1100 export $ac_envvar ;;
1101
1102 *)
1103 # FIXME: should be removed in autoconf 3.0.
1104 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1105 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1106 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1107 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1108 ;;
1109
1110 esac
1111 done
1112
1113 if test -n "$ac_prev"; then
1114 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1115 { echo "$as_me: error: missing argument to $ac_option" >&2
1116 { (exit 1); exit 1; }; }
1117 fi
1118
1119 # Be sure to have absolute directory names.
1120 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1121 datadir sysconfdir sharedstatedir localstatedir includedir \
1122 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1123 libdir localedir mandir
1124 do
1125 eval ac_val=\$$ac_var
1126 case $ac_val in
1127 [\\/$]* | ?:[\\/]* ) continue;;
1128 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1129 esac
1130 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1131 { (exit 1); exit 1; }; }
1132 done
1133
1134 # There might be people who depend on the old broken behavior: `$host'
1135 # used to hold the argument of --host etc.
1136 # FIXME: To remove some day.
1137 build=$build_alias
1138 host=$host_alias
1139 target=$target_alias
1140
1141 # FIXME: To remove some day.
1142 if test "x$host_alias" != x; then
1143 if test "x$build_alias" = x; then
1144 cross_compiling=maybe
1145 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1146 If a cross compiler is detected then cross compile mode will be used." >&2
1147 elif test "x$build_alias" != "x$host_alias"; then
1148 cross_compiling=yes
1149 fi
1150 fi
1151
1152 ac_tool_prefix=
1153 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1154
1155 test "$silent" = yes && exec 6>/dev/null
1156
1157
1158 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1159 ac_ls_di=`ls -di .` &&
1160 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1161 { echo "$as_me: error: Working directory cannot be determined" >&2
1162 { (exit 1); exit 1; }; }
1163 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1164 { echo "$as_me: error: pwd does not report name of working directory" >&2
1165 { (exit 1); exit 1; }; }
1166
1167
1168 # Find the source files, if location was not specified.
1169 if test -z "$srcdir"; then
1170 ac_srcdir_defaulted=yes
1171 # Try the directory containing this script, then the parent directory.
1172 ac_confdir=`$as_dirname -- "$0" ||
1173 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1174 X"$0" : 'X\(//\)[^/]' \| \
1175 X"$0" : 'X\(//\)$' \| \
1176 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1177 echo X"$0" |
1178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1179 s//\1/
1180 q
1181 }
1182 /^X\(\/\/\)[^/].*/{
1183 s//\1/
1184 q
1185 }
1186 /^X\(\/\/\)$/{
1187 s//\1/
1188 q
1189 }
1190 /^X\(\/\).*/{
1191 s//\1/
1192 q
1193 }
1194 s/.*/./; q'`
1195 srcdir=$ac_confdir
1196 if test ! -r "$srcdir/$ac_unique_file"; then
1197 srcdir=..
1198 fi
1199 else
1200 ac_srcdir_defaulted=no
1201 fi
1202 if test ! -r "$srcdir/$ac_unique_file"; then
1203 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1204 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1205 { (exit 1); exit 1; }; }
1206 fi
1207 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1208 ac_abs_confdir=`(
1209 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1210 { (exit 1); exit 1; }; }
1211 pwd)`
1212 # When building in place, set srcdir=.
1213 if test "$ac_abs_confdir" = "$ac_pwd"; then
1214 srcdir=.
1215 fi
1216 # Remove unnecessary trailing slashes from srcdir.
1217 # Double slashes in file names in object file debugging info
1218 # mess up M-x gdb in Emacs.
1219 case $srcdir in
1220 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1221 esac
1222 for ac_var in $ac_precious_vars; do
1223 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1224 eval ac_env_${ac_var}_value=\$${ac_var}
1225 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1226 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1227 done
1228
1229 #
1230 # Report the --help message.
1231 #
1232 if test "$ac_init_help" = "long"; then
1233 # Omit some internal or obsolete options to make the list less imposing.
1234 # This message is too long to be a string in the A/UX 3.1 sh.
1235 cat <<_ACEOF
1236 \`configure' configures this package to adapt to many kinds of systems.
1237
1238 Usage: $0 [OPTION]... [VAR=VALUE]...
1239
1240 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1241 VAR=VALUE. See below for descriptions of some of the useful variables.
1242
1243 Defaults for the options are specified in brackets.
1244
1245 Configuration:
1246 -h, --help display this help and exit
1247 --help=short display options specific to this package
1248 --help=recursive display the short help of all the included packages
1249 -V, --version display version information and exit
1250 -q, --quiet, --silent do not print \`checking...' messages
1251 --cache-file=FILE cache test results in FILE [disabled]
1252 -C, --config-cache alias for \`--cache-file=config.cache'
1253 -n, --no-create do not create output files
1254 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1255
1256 Installation directories:
1257 --prefix=PREFIX install architecture-independent files in PREFIX
1258 [$ac_default_prefix]
1259 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1260 [PREFIX]
1261
1262 By default, \`make install' will install all the files in
1263 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1264 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1265 for instance \`--prefix=\$HOME'.
1266
1267 For better control, use the options below.
1268
1269 Fine tuning of the installation directories:
1270 --bindir=DIR user executables [EPREFIX/bin]
1271 --sbindir=DIR system admin executables [EPREFIX/sbin]
1272 --libexecdir=DIR program executables [EPREFIX/libexec]
1273 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1274 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1275 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1276 --libdir=DIR object code libraries [EPREFIX/lib]
1277 --includedir=DIR C header files [PREFIX/include]
1278 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1279 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1280 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1281 --infodir=DIR info documentation [DATAROOTDIR/info]
1282 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1283 --mandir=DIR man documentation [DATAROOTDIR/man]
1284 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1285 --htmldir=DIR html documentation [DOCDIR]
1286 --dvidir=DIR dvi documentation [DOCDIR]
1287 --pdfdir=DIR pdf documentation [DOCDIR]
1288 --psdir=DIR ps documentation [DOCDIR]
1289 _ACEOF
1290
1291 cat <<\_ACEOF
1292
1293 Program names:
1294 --program-prefix=PREFIX prepend PREFIX to installed program names
1295 --program-suffix=SUFFIX append SUFFIX to installed program names
1296 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1297
1298 X features:
1299 --x-includes=DIR X include files are in DIR
1300 --x-libraries=DIR X library files are in DIR
1301
1302 System types:
1303 --build=BUILD configure for building on BUILD [guessed]
1304 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1305 _ACEOF
1306 fi
1307
1308 if test -n "$ac_init_help"; then
1309
1310 cat <<\_ACEOF
1311
1312 Optional Features:
1313 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1314 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1315 --enable-carbon-app[=DIR] [DIR=/Application]
1316 specify install directory for Emacs.app on Mac OS X
1317 --enable-asserts compile code with asserts enabled
1318 --enable-maintainer-mode enable make rules and dependencies not useful
1319 (and sometimes confusing) to the casual installer
1320 --enable-locallisppath=PATH
1321 directories Emacs should search for lisp files
1322 specific to this site
1323 --disable-largefile omit support for large files
1324
1325 Optional Packages:
1326 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1327 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1328 --without-gcc don't use GCC to compile Emacs if GCC is found
1329 --without-pop don't support POP mail retrieval with movemail
1330 --with-kerberos support Kerberos-authenticated POP
1331 --with-kerberos5 support Kerberos version 5 authenticated POP
1332 --with-hesiod support Hesiod to get the POP server host
1333 --without-sound don't compile with sound support
1334 --with-x-toolkit=KIT use an X toolkit
1335 (KIT = yes/lucid/athena/motif/gtk/no)
1336 --with-xpm use -lXpm for displaying XPM images
1337 --with-jpeg use -ljpeg for displaying JPEG images
1338 --with-tiff use -ltiff for displaying TIFF images
1339 --with-gif use -lungif for displaying GIF images
1340 --with-png use -lpng for displaying PNG images
1341 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1342 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1343 --without-toolkit-scroll-bars
1344 don't use Motif or Xaw3d scroll bars
1345 --without-xim don't use X11 XIM
1346 --without-carbon don't use Carbon GUI on Mac OS X
1347 --with-x use the X Window System
1348
1349 Some influential environment variables:
1350 CC C compiler command
1351 CFLAGS C compiler flags
1352 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1353 nonstandard directory <lib dir>
1354 LIBS libraries to pass to the linker, e.g. -l<library>
1355 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1356 you have headers in a nonstandard directory <include dir>
1357 CPP C preprocessor
1358 XMKMF Path to xmkmf, Makefile generator for X Window System
1359
1360 Use these variables to override the choices made by `configure' or to help
1361 it to find libraries and programs with nonstandard names/locations.
1362
1363 _ACEOF
1364 ac_status=$?
1365 fi
1366
1367 if test "$ac_init_help" = "recursive"; then
1368 # If there are subdirs, report their specific --help.
1369 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1370 test -d "$ac_dir" || continue
1371 ac_builddir=.
1372
1373 case "$ac_dir" in
1374 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1375 *)
1376 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1377 # A ".." for each directory in $ac_dir_suffix.
1378 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1379 case $ac_top_builddir_sub in
1380 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1381 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1382 esac ;;
1383 esac
1384 ac_abs_top_builddir=$ac_pwd
1385 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1386 # for backward compatibility:
1387 ac_top_builddir=$ac_top_build_prefix
1388
1389 case $srcdir in
1390 .) # We are building in place.
1391 ac_srcdir=.
1392 ac_top_srcdir=$ac_top_builddir_sub
1393 ac_abs_top_srcdir=$ac_pwd ;;
1394 [\\/]* | ?:[\\/]* ) # Absolute name.
1395 ac_srcdir=$srcdir$ac_dir_suffix;
1396 ac_top_srcdir=$srcdir
1397 ac_abs_top_srcdir=$srcdir ;;
1398 *) # Relative name.
1399 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1400 ac_top_srcdir=$ac_top_build_prefix$srcdir
1401 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1402 esac
1403 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1404
1405 cd "$ac_dir" || { ac_status=$?; continue; }
1406 # Check for guested configure.
1407 if test -f "$ac_srcdir/configure.gnu"; then
1408 echo &&
1409 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1410 elif test -f "$ac_srcdir/configure"; then
1411 echo &&
1412 $SHELL "$ac_srcdir/configure" --help=recursive
1413 else
1414 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1415 fi || ac_status=$?
1416 cd "$ac_pwd" || { ac_status=$?; break; }
1417 done
1418 fi
1419
1420 test -n "$ac_init_help" && exit $ac_status
1421 if $ac_init_version; then
1422 cat <<\_ACEOF
1423 configure
1424 generated by GNU Autoconf 2.61
1425
1426 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1427 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1428 This configure script is free software; the Free Software Foundation
1429 gives unlimited permission to copy, distribute and modify it.
1430 _ACEOF
1431 exit
1432 fi
1433 cat >config.log <<_ACEOF
1434 This file contains any messages produced by compilers while
1435 running configure, to aid debugging if configure makes a mistake.
1436
1437 It was created by $as_me, which was
1438 generated by GNU Autoconf 2.61. Invocation command line was
1439
1440 $ $0 $@
1441
1442 _ACEOF
1443 exec 5>>config.log
1444 {
1445 cat <<_ASUNAME
1446 ## --------- ##
1447 ## Platform. ##
1448 ## --------- ##
1449
1450 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1451 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1452 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1453 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1454 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1455
1456 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1457 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1458
1459 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1460 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1461 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1462 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1463 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1464 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1465 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1466
1467 _ASUNAME
1468
1469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1470 for as_dir in $PATH
1471 do
1472 IFS=$as_save_IFS
1473 test -z "$as_dir" && as_dir=.
1474 echo "PATH: $as_dir"
1475 done
1476 IFS=$as_save_IFS
1477
1478 } >&5
1479
1480 cat >&5 <<_ACEOF
1481
1482
1483 ## ----------- ##
1484 ## Core tests. ##
1485 ## ----------- ##
1486
1487 _ACEOF
1488
1489
1490 # Keep a trace of the command line.
1491 # Strip out --no-create and --no-recursion so they do not pile up.
1492 # Strip out --silent because we don't want to record it for future runs.
1493 # Also quote any args containing shell meta-characters.
1494 # Make two passes to allow for proper duplicate-argument suppression.
1495 ac_configure_args=
1496 ac_configure_args0=
1497 ac_configure_args1=
1498 ac_must_keep_next=false
1499 for ac_pass in 1 2
1500 do
1501 for ac_arg
1502 do
1503 case $ac_arg in
1504 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1505 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1506 | -silent | --silent | --silen | --sile | --sil)
1507 continue ;;
1508 *\'*)
1509 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1510 esac
1511 case $ac_pass in
1512 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1513 2)
1514 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1515 if test $ac_must_keep_next = true; then
1516 ac_must_keep_next=false # Got value, back to normal.
1517 else
1518 case $ac_arg in
1519 *=* | --config-cache | -C | -disable-* | --disable-* \
1520 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1521 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1522 | -with-* | --with-* | -without-* | --without-* | --x)
1523 case "$ac_configure_args0 " in
1524 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1525 esac
1526 ;;
1527 -* ) ac_must_keep_next=true ;;
1528 esac
1529 fi
1530 ac_configure_args="$ac_configure_args '$ac_arg'"
1531 ;;
1532 esac
1533 done
1534 done
1535 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1536 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1537
1538 # When interrupted or exit'd, cleanup temporary files, and complete
1539 # config.log. We remove comments because anyway the quotes in there
1540 # would cause problems or look ugly.
1541 # WARNING: Use '\'' to represent an apostrophe within the trap.
1542 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1543 trap 'exit_status=$?
1544 # Save into config.log some information that might help in debugging.
1545 {
1546 echo
1547
1548 cat <<\_ASBOX
1549 ## ---------------- ##
1550 ## Cache variables. ##
1551 ## ---------------- ##
1552 _ASBOX
1553 echo
1554 # The following way of writing the cache mishandles newlines in values,
1555 (
1556 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1557 eval ac_val=\$$ac_var
1558 case $ac_val in #(
1559 *${as_nl}*)
1560 case $ac_var in #(
1561 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1562 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1563 esac
1564 case $ac_var in #(
1565 _ | IFS | as_nl) ;; #(
1566 *) $as_unset $ac_var ;;
1567 esac ;;
1568 esac
1569 done
1570 (set) 2>&1 |
1571 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1572 *${as_nl}ac_space=\ *)
1573 sed -n \
1574 "s/'\''/'\''\\\\'\'''\''/g;
1575 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1576 ;; #(
1577 *)
1578 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1579 ;;
1580 esac |
1581 sort
1582 )
1583 echo
1584
1585 cat <<\_ASBOX
1586 ## ----------------- ##
1587 ## Output variables. ##
1588 ## ----------------- ##
1589 _ASBOX
1590 echo
1591 for ac_var in $ac_subst_vars
1592 do
1593 eval ac_val=\$$ac_var
1594 case $ac_val in
1595 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1596 esac
1597 echo "$ac_var='\''$ac_val'\''"
1598 done | sort
1599 echo
1600
1601 if test -n "$ac_subst_files"; then
1602 cat <<\_ASBOX
1603 ## ------------------- ##
1604 ## File substitutions. ##
1605 ## ------------------- ##
1606 _ASBOX
1607 echo
1608 for ac_var in $ac_subst_files
1609 do
1610 eval ac_val=\$$ac_var
1611 case $ac_val in
1612 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1613 esac
1614 echo "$ac_var='\''$ac_val'\''"
1615 done | sort
1616 echo
1617 fi
1618
1619 if test -s confdefs.h; then
1620 cat <<\_ASBOX
1621 ## ----------- ##
1622 ## confdefs.h. ##
1623 ## ----------- ##
1624 _ASBOX
1625 echo
1626 cat confdefs.h
1627 echo
1628 fi
1629 test "$ac_signal" != 0 &&
1630 echo "$as_me: caught signal $ac_signal"
1631 echo "$as_me: exit $exit_status"
1632 } >&5
1633 rm -f core *.core core.conftest.* &&
1634 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1635 exit $exit_status
1636 ' 0
1637 for ac_signal in 1 2 13 15; do
1638 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1639 done
1640 ac_signal=0
1641
1642 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1643 rm -f -r conftest* confdefs.h
1644
1645 # Predefined preprocessor variables.
1646
1647 cat >>confdefs.h <<_ACEOF
1648 #define PACKAGE_NAME "$PACKAGE_NAME"
1649 _ACEOF
1650
1651
1652 cat >>confdefs.h <<_ACEOF
1653 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1654 _ACEOF
1655
1656
1657 cat >>confdefs.h <<_ACEOF
1658 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1659 _ACEOF
1660
1661
1662 cat >>confdefs.h <<_ACEOF
1663 #define PACKAGE_STRING "$PACKAGE_STRING"
1664 _ACEOF
1665
1666
1667 cat >>confdefs.h <<_ACEOF
1668 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1669 _ACEOF
1670
1671
1672 # Let the site file select an alternate cache file if it wants to.
1673 # Prefer explicitly selected file to automatically selected ones.
1674 if test -n "$CONFIG_SITE"; then
1675 set x "$CONFIG_SITE"
1676 elif test "x$prefix" != xNONE; then
1677 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1678 else
1679 set x "$ac_default_prefix/share/config.site" \
1680 "$ac_default_prefix/etc/config.site"
1681 fi
1682 shift
1683 for ac_site_file
1684 do
1685 if test -r "$ac_site_file"; then
1686 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1687 echo "$as_me: loading site script $ac_site_file" >&6;}
1688 sed 's/^/| /' "$ac_site_file" >&5
1689 . "$ac_site_file"
1690 fi
1691 done
1692
1693 if test -r "$cache_file"; then
1694 # Some versions of bash will fail to source /dev/null (special
1695 # files actually), so we avoid doing that.
1696 if test -f "$cache_file"; then
1697 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1698 echo "$as_me: loading cache $cache_file" >&6;}
1699 case $cache_file in
1700 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1701 *) . "./$cache_file";;
1702 esac
1703 fi
1704 else
1705 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1706 echo "$as_me: creating cache $cache_file" >&6;}
1707 >$cache_file
1708 fi
1709
1710 ac_header_list="$ac_header_list sys/time.h"
1711 ac_header_list="$ac_header_list unistd.h"
1712 ac_func_list="$ac_func_list alarm"
1713 # Check that the precious variables saved in the cache have kept the same
1714 # value.
1715 ac_cache_corrupted=false
1716 for ac_var in $ac_precious_vars; do
1717 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1718 eval ac_new_set=\$ac_env_${ac_var}_set
1719 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1720 eval ac_new_val=\$ac_env_${ac_var}_value
1721 case $ac_old_set,$ac_new_set in
1722 set,)
1723 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1724 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1725 ac_cache_corrupted=: ;;
1726 ,set)
1727 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1728 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1729 ac_cache_corrupted=: ;;
1730 ,);;
1731 *)
1732 if test "x$ac_old_val" != "x$ac_new_val"; then
1733 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1734 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1735 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1736 echo "$as_me: former value: $ac_old_val" >&2;}
1737 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1738 echo "$as_me: current value: $ac_new_val" >&2;}
1739 ac_cache_corrupted=:
1740 fi;;
1741 esac
1742 # Pass precious variables to config.status.
1743 if test "$ac_new_set" = set; then
1744 case $ac_new_val in
1745 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1746 *) ac_arg=$ac_var=$ac_new_val ;;
1747 esac
1748 case " $ac_configure_args " in
1749 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1750 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1751 esac
1752 fi
1753 done
1754 if $ac_cache_corrupted; then
1755 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1756 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1757 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1758 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1759 { (exit 1); exit 1; }; }
1760 fi
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778 ac_ext=c
1779 ac_cpp='$CPP $CPPFLAGS'
1780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1783
1784
1785 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1786
1787
1788 test "$program_prefix" != NONE &&
1789 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1790 # Use a double $ so make ignores it.
1791 test "$program_suffix" != NONE &&
1792 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1793 # Double any \ or $. echo might interpret backslashes.
1794 # By default was `s,x,x', remove it if useless.
1795 cat <<\_ACEOF >conftest.sed
1796 s/[\\$]/&&/g;s/;s,x,x,$//
1797 _ACEOF
1798 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1799 rm -f conftest.sed
1800
1801
1802 lispdir='${datadir}/emacs/${version}/lisp'
1803 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1804 '${datadir}/emacs/site-lisp'
1805 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1806 etcdir='${datadir}/emacs/${version}/etc'
1807 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1808 docdir='${datadir}/emacs/${version}/etc'
1809 gamedir='${localstatedir}/games/emacs'
1810
1811 gameuser=games
1812
1813
1814 # Check whether --with-gcc was given.
1815 if test "${with_gcc+set}" = set; then
1816 withval=$with_gcc;
1817 fi
1818
1819
1820 # Check whether --with-pop was given.
1821 if test "${with_pop+set}" = set; then
1822 withval=$with_pop; if test "$withval" = yes; then
1823 cat >>confdefs.h <<\_ACEOF
1824 #define MAIL_USE_POP 1
1825 _ACEOF
1826
1827 else :
1828 fi
1829 else
1830 cat >>confdefs.h <<\_ACEOF
1831 #define MAIL_USE_POP 1
1832 _ACEOF
1833
1834 fi
1835
1836
1837
1838 # Check whether --with-kerberos was given.
1839 if test "${with_kerberos+set}" = set; then
1840 withval=$with_kerberos; cat >>confdefs.h <<\_ACEOF
1841 #define KERBEROS 1
1842 _ACEOF
1843
1844 fi
1845
1846
1847
1848 # Check whether --with-kerberos5 was given.
1849 if test "${with_kerberos5+set}" = set; then
1850 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1851 if test "${with_kerberos+set}" != set; then
1852 with_kerberos=yes
1853 cat >>confdefs.h <<\_ACEOF
1854 #define KERBEROS 1
1855 _ACEOF
1856
1857 fi
1858 fi
1859
1860 cat >>confdefs.h <<\_ACEOF
1861 #define KERBEROS5 1
1862 _ACEOF
1863
1864 fi
1865
1866
1867 # Check whether --with-hesiod was given.
1868 if test "${with_hesiod+set}" = set; then
1869 withval=$with_hesiod;
1870 cat >>confdefs.h <<\_ACEOF
1871 #define HESIOD 1
1872 _ACEOF
1873
1874 fi
1875
1876
1877
1878 # Check whether --with-sound was given.
1879 if test "${with_sound+set}" = set; then
1880 withval=$with_sound;
1881 fi
1882
1883
1884
1885 # Check whether --with-x-toolkit was given.
1886 if test "${with_x_toolkit+set}" = set; then
1887 withval=$with_x_toolkit; case "${withval}" in
1888 y | ye | yes ) val=athena ;;
1889 n | no ) val=no ;;
1890 l | lu | luc | luci | lucid ) val=lucid ;;
1891 a | at | ath | athe | athen | athena ) val=athena ;;
1892 m | mo | mot | moti | motif ) val=motif ;;
1893 g | gt | gtk ) val=gtk ;;
1894 * )
1895 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1896 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1897 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1898 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1899 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1900 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1901 { (exit 1); exit 1; }; }
1902 ;;
1903 esac
1904 with_x_toolkit=$val
1905
1906 fi
1907
1908
1909 # Check whether --with-xpm was given.
1910 if test "${with_xpm+set}" = set; then
1911 withval=$with_xpm;
1912 fi
1913
1914
1915 # Check whether --with-jpeg was given.
1916 if test "${with_jpeg+set}" = set; then
1917 withval=$with_jpeg;
1918 fi
1919
1920
1921 # Check whether --with-tiff was given.
1922 if test "${with_tiff+set}" = set; then
1923 withval=$with_tiff;
1924 fi
1925
1926
1927 # Check whether --with-gif was given.
1928 if test "${with_gif+set}" = set; then
1929 withval=$with_gif;
1930 fi
1931
1932
1933 # Check whether --with-png was given.
1934 if test "${with_png+set}" = set; then
1935 withval=$with_png;
1936 fi
1937
1938
1939 # Check whether --with-gtk was given.
1940 if test "${with_gtk+set}" = set; then
1941 withval=$with_gtk;
1942 fi
1943
1944
1945 # Check whether --with-pkg-config-prog was given.
1946 if test "${with_pkg_config_prog+set}" = set; then
1947 withval=$with_pkg_config_prog;
1948 fi
1949
1950
1951 # Check whether --with-toolkit-scroll-bars was given.
1952 if test "${with_toolkit_scroll_bars+set}" = set; then
1953 withval=$with_toolkit_scroll_bars;
1954 fi
1955
1956
1957 # Check whether --with-xim was given.
1958 if test "${with_xim+set}" = set; then
1959 withval=$with_xim;
1960 fi
1961
1962
1963 # Check whether --with-carbon was given.
1964 if test "${with_carbon+set}" = set; then
1965 withval=$with_carbon;
1966 fi
1967
1968 # Check whether --enable-carbon-app was given.
1969 if test "${enable_carbon_app+set}" = set; then
1970 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1971 fi
1972
1973
1974 # Check whether --enable-asserts was given.
1975 if test "${enable_asserts+set}" = set; then
1976 enableval=$enable_asserts; USE_XASSERTS=$enableval
1977 else
1978 USE_XASSERTS=no
1979 fi
1980
1981
1982 # Check whether --enable-maintainer-mode was given.
1983 if test "${enable_maintainer_mode+set}" = set; then
1984 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1985 else
1986 USE_MAINTAINER_MODE=no
1987 fi
1988
1989 if test $USE_MAINTAINER_MODE = yes; then
1990 MAINT=
1991 else
1992 MAINT=#
1993 fi
1994
1995
1996 # Check whether --enable-locallisppath was given.
1997 if test "${enable_locallisppath+set}" = set; then
1998 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
1999 locallisppath=
2000 elif test "${enableval}" != "yes"; then
2001 locallisppath=${enableval}
2002 fi
2003 fi
2004
2005
2006 #### Make srcdir absolute, if it isn't already. It's important to
2007 #### avoid running the path through pwd unnecessarily, since pwd can
2008 #### give you automounter prefixes, which can go away. We do all this
2009 #### so Emacs can find its files when run uninstalled.
2010 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2011 unset CDPATH
2012 case "${srcdir}" in
2013 /* ) ;;
2014 . )
2015 ## We may be able to use the $PWD environment variable to make this
2016 ## absolute. But sometimes PWD is inaccurate.
2017 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2018 ## but that tested only for a well-formed and valid PWD,
2019 ## it did not object when PWD was well-formed and valid but just wrong.
2020 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2021 then
2022 srcdir="$PWD"
2023 else
2024 srcdir="`(cd ${srcdir}; pwd)`"
2025 fi
2026 ;;
2027 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2028 esac
2029
2030 #### Check if the source directory already has a configured system in it.
2031 if test `pwd` != `(cd ${srcdir} && pwd)` \
2032 && test -f "${srcdir}/src/config.h" ; then
2033 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2034 as a build directory right now; it has been configured in its own
2035 right. To configure in another directory as well, you MUST
2036 use GNU make. If you do not have GNU make, then you must
2037 now do \`make distclean' in ${srcdir},
2038 and then run $0 again." >&5
2039 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2040 as a build directory right now; it has been configured in its own
2041 right. To configure in another directory as well, you MUST
2042 use GNU make. If you do not have GNU make, then you must
2043 now do \`make distclean' in ${srcdir},
2044 and then run $0 again." >&2;}
2045 fi
2046
2047 #### Given the configuration name, set machfile and opsysfile to the
2048 #### names of the m/*.h and s/*.h files we should use.
2049
2050 ### Canonicalize the configuration name.
2051
2052 ac_aux_dir=
2053 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2054 if test -f "$ac_dir/install-sh"; then
2055 ac_aux_dir=$ac_dir
2056 ac_install_sh="$ac_aux_dir/install-sh -c"
2057 break
2058 elif test -f "$ac_dir/install.sh"; then
2059 ac_aux_dir=$ac_dir
2060 ac_install_sh="$ac_aux_dir/install.sh -c"
2061 break
2062 elif test -f "$ac_dir/shtool"; then
2063 ac_aux_dir=$ac_dir
2064 ac_install_sh="$ac_aux_dir/shtool install -c"
2065 break
2066 fi
2067 done
2068 if test -z "$ac_aux_dir"; then
2069 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2070 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2071 { (exit 1); exit 1; }; }
2072 fi
2073
2074 # These three variables are undocumented and unsupported,
2075 # and are intended to be withdrawn in a future Autoconf release.
2076 # They can cause serious problems if a builder's source tree is in a directory
2077 # whose full name contains unusual characters.
2078 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2079 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2080 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2081
2082
2083 # Make sure we can run config.sub.
2084 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2085 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2086 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2087 { (exit 1); exit 1; }; }
2088
2089 { echo "$as_me:$LINENO: checking build system type" >&5
2090 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2091 if test "${ac_cv_build+set}" = set; then
2092 echo $ECHO_N "(cached) $ECHO_C" >&6
2093 else
2094 ac_build_alias=$build_alias
2095 test "x$ac_build_alias" = x &&
2096 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2097 test "x$ac_build_alias" = x &&
2098 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2099 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2100 { (exit 1); exit 1; }; }
2101 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2102 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2103 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2104 { (exit 1); exit 1; }; }
2105
2106 fi
2107 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2108 echo "${ECHO_T}$ac_cv_build" >&6; }
2109 case $ac_cv_build in
2110 *-*-*) ;;
2111 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2112 echo "$as_me: error: invalid value of canonical build" >&2;}
2113 { (exit 1); exit 1; }; };;
2114 esac
2115 build=$ac_cv_build
2116 ac_save_IFS=$IFS; IFS='-'
2117 set x $ac_cv_build
2118 shift
2119 build_cpu=$1
2120 build_vendor=$2
2121 shift; shift
2122 # Remember, the first character of IFS is used to create $*,
2123 # except with old shells:
2124 build_os=$*
2125 IFS=$ac_save_IFS
2126 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2127
2128
2129 { echo "$as_me:$LINENO: checking host system type" >&5
2130 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2131 if test "${ac_cv_host+set}" = set; then
2132 echo $ECHO_N "(cached) $ECHO_C" >&6
2133 else
2134 if test "x$host_alias" = x; then
2135 ac_cv_host=$ac_cv_build
2136 else
2137 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2138 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2139 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2140 { (exit 1); exit 1; }; }
2141 fi
2142
2143 fi
2144 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2145 echo "${ECHO_T}$ac_cv_host" >&6; }
2146 case $ac_cv_host in
2147 *-*-*) ;;
2148 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2149 echo "$as_me: error: invalid value of canonical host" >&2;}
2150 { (exit 1); exit 1; }; };;
2151 esac
2152 host=$ac_cv_host
2153 ac_save_IFS=$IFS; IFS='-'
2154 set x $ac_cv_host
2155 shift
2156 host_cpu=$1
2157 host_vendor=$2
2158 shift; shift
2159 # Remember, the first character of IFS is used to create $*,
2160 # except with old shells:
2161 host_os=$*
2162 IFS=$ac_save_IFS
2163 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2164
2165
2166 canonical=$host
2167 configuration=${host_alias-$host}
2168
2169
2170
2171 ### If you add support for a new configuration, add code to this
2172 ### switch statement to recognize your configuration name and select
2173 ### the appropriate operating system and machine description files.
2174
2175 ### You would hope that you could choose an m/*.h file pretty much
2176 ### based on the machine portion of the configuration name, and an s-
2177 ### file based on the operating system portion. However, it turns out
2178 ### that each m/*.h file is pretty manufacturer-specific - for
2179 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2180 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2181 ### machines. So we basically have to have a special case for each
2182 ### configuration name.
2183 ###
2184 ### As far as handling version numbers on operating systems is
2185 ### concerned, make sure things will fail in a fixable way. If
2186 ### /etc/MACHINES doesn't say anything about version numbers, be
2187 ### prepared to handle anything reasonably. If version numbers
2188 ### matter, be sure /etc/MACHINES says something about it.
2189 ###
2190 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2191 ### "System V Release 4"; he writes, "The old convention encouraged
2192 ### confusion between `system' and `release' levels'."
2193
2194 machine='' opsys='' unported=no
2195 case "${canonical}" in
2196
2197 ## FreeBSD ports
2198 *-*-freebsd* )
2199 opsys=freebsd
2200 case "${canonical}" in
2201 alpha*-*-freebsd*) machine=alpha ;;
2202 ia64-*-freebsd*) machine=ia64 ;;
2203 sparc64-*-freebsd*) machine=sparc ;;
2204 powerpc-*-freebsd*) machine=macppc ;;
2205 i[3456]86-*-freebsd*) machine=intel386 ;;
2206 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2207 esac
2208 ;;
2209
2210 ## NetBSD ports
2211 *-*-netbsd* )
2212 opsys=netbsd
2213 if test -f /usr/lib/crti.o; then
2214
2215 cat >>confdefs.h <<\_ACEOF
2216 #define HAVE_CRTIN
2217 _ACEOF
2218
2219 fi
2220
2221 case "${canonical}" in
2222 alpha*-*-netbsd*) machine=alpha ;;
2223 i[3456]86-*-netbsd*) machine=intel386 ;;
2224 m68k-*-netbsd*)
2225 # This is somewhat bogus.
2226 machine=hp9000s300 ;;
2227 mips-*-netbsd*) machine=pmax ;;
2228 mipsel-*-netbsd*) machine=pmax ;;
2229 mipseb-*-netbsd*) machine=pmax ;;
2230 ns32k-*-netbsd*) machine=ns32000 ;;
2231 powerpc-*-netbsd*) machine=macppc ;;
2232 sparc*-*-netbsd*) machine=sparc ;;
2233 vax-*-netbsd*) machine=vax ;;
2234 arm-*-netbsd*) machine=arm ;;
2235 x86_64-*-netbsd*) machine=amdx86-64 ;;
2236 hppa-*-netbsd*) machine=hp800 ;;
2237 shle-*-netbsd*) machine=sh3el ;;
2238 esac
2239 ;;
2240
2241 ## OpenBSD ports
2242 *-*-openbsd* )
2243 opsys=openbsd
2244 case "${canonical}" in
2245 alpha*-*-openbsd*) machine=alpha ;;
2246 i386-*-openbsd*) machine=intel386 ;;
2247 x86_64-*-openbsd*) machine=amdx86-64 ;;
2248 m68k-*-openbsd*) machine=hp9000s300 ;;
2249 mipsel-*-openbsd*) machine=pmax ;;
2250 ns32k-*-openbsd*) machine=ns32000 ;;
2251 sparc-*-openbsd*) machine=sparc ;;
2252 vax-*-openbsd*) machine=vax ;;
2253 esac
2254 ;;
2255
2256 ## LynxOS ports
2257 *-*-lynxos* )
2258 opsys=lynxos
2259 case "${canonical}" in
2260 i[3456]86-*-lynxos*) machine=intel386 ;;
2261 powerpc-*-lynxos*) machine=powerpc ;;
2262 esac
2263 ;;
2264
2265 ## Acorn RISCiX:
2266 arm-acorn-riscix1.1* )
2267 machine=acorn opsys=riscix1-1
2268 ;;
2269 arm-acorn-riscix1.2* | arm-acorn-riscix )
2270 ## This name is riscix12 instead of riscix1.2
2271 ## to avoid a file name conflict on MSDOS.
2272 machine=acorn opsys=riscix12
2273 ;;
2274
2275 ## BSDI ports
2276 *-*-bsdi* )
2277 opsys=bsdi
2278 case "${canonical}" in
2279 i[345]86-*-bsdi*) machine=intel386 ;;
2280 sparc-*-bsdi*) machine=sparc ;;
2281 powerpc-*-bsdi*) machine=macppc ;;
2282 esac
2283 case "${canonical}" in
2284 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2285 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2286 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2287 *-*-bsdi3* ) opsys=bsdos3 ;;
2288 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2289 esac
2290 ;;
2291
2292 ## Alliant machines
2293 ## Strictly speaking, we need the version of the alliant operating
2294 ## system to choose the right machine file, but currently the
2295 ## configuration name doesn't tell us enough to choose the right
2296 ## one; we need to give alliants their own operating system name to
2297 ## do this right. When someone cares, they can help us.
2298 fx80-alliant-* )
2299 machine=alliant4 opsys=bsd4-2
2300 ;;
2301 i860-alliant-* )
2302 machine=alliant-2800 opsys=bsd4-3
2303 ;;
2304
2305 ## Alpha (DEC) machines.
2306 alpha*-dec-osf* )
2307 machine=alpha opsys=osf1
2308 # This is needed to find X11R6.1 libraries for certain tests.
2309 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2310 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2311 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2312 # due to non-traditional preprocessing with the current compiler
2313 # defaults. OSF 4 can also have that compiler version, and there
2314 # seems always to have been a usable /usr/bin/cpp.
2315 NON_GNU_CPP=/usr/bin/cpp
2316 case "${canonical}" in
2317 alpha*-dec-osf[5-9]*)
2318 opsys=osf5-0 ;;
2319 esac
2320 ;;
2321
2322 alpha*-*-linux-gnu* )
2323 machine=alpha opsys=gnu-linux
2324 ;;
2325
2326 arm*-*-linux-gnu* )
2327 machine=arm opsys=gnu-linux
2328 ;;
2329
2330 ## Altos 3068
2331 m68*-altos-sysv* )
2332 machine=altos opsys=usg5-2
2333 ;;
2334
2335 ## Amdahl UTS
2336 580-amdahl-sysv* )
2337 machine=amdahl opsys=usg5-2-2
2338 ;;
2339
2340 ## Apollo, Domain/OS
2341 m68*-apollo-* )
2342 machine=apollo opsys=bsd4-3
2343 ;;
2344
2345 ## Apple Darwin / Mac OS X
2346 *-apple-darwin* )
2347 case "${canonical}" in
2348 i[3456]86-* ) machine=intel386 ;;
2349 powerpc-* ) machine=powermac ;;
2350 * ) unported=yes ;;
2351 esac
2352 opsys=darwin
2353 # Define CPP as follows to make autoconf work correctly.
2354 CPP="${CC-cc} -E -no-cpp-precomp"
2355 # Use fink packages if available.
2356 if test -d /sw/include && test -d /sw/lib; then
2357 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2358 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2359 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2360 fi
2361 ;;
2362
2363 ## AT&T 3b2, 3b5, 3b15, 3b20
2364 we32k-att-sysv* )
2365 machine=att3b opsys=usg5-2-2
2366 ;;
2367
2368 ## AT&T 3b1 - The Mighty Unix PC!
2369 m68*-att-sysv* )
2370 machine=7300 opsys=usg5-2-2
2371 ;;
2372
2373 ## Bull dpx20
2374 rs6000-bull-bosx* )
2375 machine=ibmrs6000 opsys=aix3-2
2376 ;;
2377
2378 ## Bull dpx2
2379 m68*-bull-sysv3* )
2380 machine=dpx2 opsys=usg5-3
2381 ;;
2382
2383 ## Bull sps7
2384 m68*-bull-sysv2* )
2385 machine=sps7 opsys=usg5-2
2386 ;;
2387
2388 ## CCI 5/32, 6/32 -- see "Tahoe".
2389
2390 ## Celerity
2391 ## I don't know what configuration name to use for this; config.sub
2392 ## doesn't seem to know anything about it. Hey, Celerity users, get
2393 ## in touch with us!
2394 celerity-celerity-bsd* )
2395 machine=celerity opsys=bsd4-2
2396 ;;
2397
2398 ## Clipper
2399 ## What operating systems does this chip run that Emacs has been
2400 ## tested on?
2401 clipper-* )
2402 machine=clipper
2403 ## We'll use the catch-all code at the bottom to guess the
2404 ## operating system.
2405 ;;
2406
2407 ## Compaq Nonstop
2408 mips-compaq-nonstopux* )
2409 machine=nonstopux opsys=nonstopux
2410 ;;
2411
2412 ## Convex
2413 *-convex-bsd* | *-convex-convexos* )
2414 machine=convex opsys=bsd4-3
2415 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2416 NON_GNU_CPP="cc -E -P"
2417 ;;
2418
2419 ## Cubix QBx/386
2420 i[3456]86-cubix-sysv* )
2421 machine=intel386 opsys=usg5-3
2422 ;;
2423
2424 ## Cydra 5
2425 cydra*-cydrome-sysv* )
2426 machine=cydra5 opsys=usg5-3
2427 ;;
2428
2429 ## Data General AViiON Machines
2430 ## DG changed naming conventions with the release of 5.4.4.10, they
2431 ## dropped the initial 5.4 but left the intervening R. Because of the
2432 ## R this shouldn't conflict with older versions of the OS (which I
2433 ## think were named like dgux4.*). In addition, DG new AViiONs series
2434 ## uses either Motorola M88k or Intel Pentium CPUs.
2435 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
2436 machine=aviion opsys=dgux4
2437 ;;
2438 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
2439 ## This name is dgux5-4-3 instead of dgux5-4r3
2440 ## to avoid a file name conflict on MSDOS.
2441 machine=aviion opsys=dgux5-4-3
2442 ;;
2443 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
2444 machine=aviion opsys=dgux5-4r2
2445 ;;
2446 m88k-dg-dgux* )
2447 machine=aviion opsys=dgux
2448 ;;
2449
2450 ## Data General AViiON Intel (x86) Machines
2451 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2452 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2453 i[345]86-dg-dguxR4* )
2454 machine=aviion-intel opsys=dgux4
2455 ;;
2456
2457 ## DECstations
2458 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2459 machine=pmax opsys=bsd4-2
2460 ;;
2461 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2462 machine=pmax opsys=bsd4-3
2463 ;;
2464 mips-dec-ultrix* )
2465 machine=pmax opsys=ultrix4-3
2466 ;;
2467 mips-dec-osf* )
2468 machine=pmax opsys=osf1
2469 ;;
2470 mips-dec-mach_bsd4.3* )
2471 machine=pmax opsys=mach-bsd4-3
2472 ;;
2473
2474 ## Motorola Delta machines
2475 m68k-motorola-sysv* | m68000-motorola-sysv* )
2476 machine=delta opsys=usg5-3
2477 if test -z "`type gnucc | grep 'not found'`"
2478 then
2479 if test -s /etc/167config
2480 then CC="gnucc -m68040"
2481 else CC="gnucc -m68881"
2482 fi
2483 else
2484 if test -z "`type gcc | grep 'not found'`"
2485 then CC=gcc
2486 else CC=cc
2487 fi
2488 fi
2489 ;;
2490 m88k-motorola-sysv4* )
2491 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2492 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2493 # I hope there are not other 4.0 versions for this machine
2494 # which really need usg5-4 instead.
2495 machine=delta88k opsys=usg5-4-2
2496 ;;
2497 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2498 machine=delta88k opsys=usg5-3
2499 ;;
2500
2501 ## Dual machines
2502 m68*-dual-sysv* )
2503 machine=dual opsys=usg5-2
2504 ;;
2505 m68*-dual-uniplus* )
2506 machine=dual opsys=unipl5-2
2507 ;;
2508
2509 ## Elxsi 6400
2510 elxsi-elxsi-sysv* )
2511 machine=elxsi opsys=usg5-2
2512 ;;
2513
2514 ## Encore machines
2515 ns16k-encore-bsd* )
2516 machine=ns16000 opsys=umax
2517 ;;
2518
2519 ## The GEC 63 - apparently, this port isn't really finished yet.
2520 # I'm sure we finished off the last of the machines, though. -- fx
2521
2522 ## Gould Power Node and NP1
2523 pn-gould-bsd4.2* )
2524 machine=gould opsys=bsd4-2
2525 ;;
2526 pn-gould-bsd4.3* )
2527 machine=gould opsys=bsd4-3
2528 ;;
2529 np1-gould-bsd* )
2530 machine=gould-np1 opsys=bsd4-3
2531 ;;
2532
2533 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2534 ## as far as Emacs is concerned).
2535 m88k-harris-cxux* )
2536 # Build needs to be different on 7.0 and later releases
2537 case "`uname -r`" in
2538 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2539 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2540 esac
2541 NON_GNU_CPP="/lib/cpp"
2542 ;;
2543 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2544 m68k-harris-cxux* )
2545 machine=nh3000 opsys=cxux
2546 ;;
2547 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2548 powerpc-harris-powerunix )
2549 machine=nh6000 opsys=powerunix
2550 NON_GNU_CPP="cc -Xo -E -P"
2551 ;;
2552 ## SR2001/SR2201 running HI-UX/MPP
2553 hppa1.1-hitachi-hiuxmpp* )
2554 machine=sr2k opsys=hiuxmpp
2555 ;;
2556 hppa1.1-hitachi-hiuxwe2* )
2557 machine=sr2k opsys=hiuxwe2
2558 ;;
2559 ## Honeywell XPS100
2560 xps*-honeywell-sysv* )
2561 machine=xps100 opsys=usg5-2
2562 ;;
2563
2564 ## HP 9000 series 200 or 300
2565 m68*-hp-bsd* )
2566 machine=hp9000s300 opsys=bsd4-3
2567 ;;
2568 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2569 m68*-hp-hpux* )
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=hp9000s300 opsys=hpux8 ;;
2574 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2575 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2576 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2577 *) machine=hp9000s300 opsys=hpux ;;
2578 esac
2579 ;;
2580
2581 ## HP 9000 series 700 and 800, running HP/UX
2582 hppa*-hp-hpux7* )
2583 machine=hp800 opsys=hpux
2584 ;;
2585 hppa*-hp-hpux8* )
2586 machine=hp800 opsys=hpux8
2587 ;;
2588 hppa*-hp-hpux9shr* )
2589 machine=hp800 opsys=hpux9shr
2590 ;;
2591 hppa*-hp-hpux9* )
2592 machine=hp800 opsys=hpux9
2593 ;;
2594 hppa*-hp-hpux10.2* )
2595 machine=hp800 opsys=hpux10-20
2596 ;;
2597 hppa*-hp-hpux10* )
2598 machine=hp800 opsys=hpux10
2599 ;;
2600 hppa*-hp-hpux1[1-9]* )
2601 machine=hp800 opsys=hpux11
2602 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2603 ;;
2604
2605 hppa*-*-linux-gnu* )
2606 machine=hp800 opsys=gnu-linux
2607 ;;
2608
2609 ## HP 9000 series 700 and 800, running HP/UX
2610 hppa*-hp-hpux* )
2611 ## Cross-compilation? Nah!
2612 case "`uname -r`" in
2613 ## Someone's system reports A.B8.05 for this.
2614 ## I wonder what other possibilities there are.
2615 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2616 *.08.* ) machine=hp800 opsys=hpux8 ;;
2617 *.09.* ) machine=hp800 opsys=hpux9 ;;
2618 *) machine=hp800 opsys=hpux10 ;;
2619 esac
2620 ;;
2621 hppa*-*-nextstep* )
2622 machine=hp800 opsys=nextstep
2623 ;;
2624
2625 ## Orion machines
2626 orion-orion-bsd* )
2627 machine=orion opsys=bsd4-2
2628 ;;
2629 clipper-orion-bsd* )
2630 machine=orion105 opsys=bsd4-2
2631 ;;
2632
2633 ## IBM machines
2634 i[3456]86-ibm-aix1.1* )
2635 machine=ibmps2-aix opsys=usg5-2-2
2636 ;;
2637 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2638 machine=ibmps2-aix opsys=usg5-3
2639 ;;
2640 i370-ibm-aix*)
2641 machine=ibm370aix opsys=usg5-3
2642 ;;
2643 s390-*-linux-gnu* )
2644 machine=ibms390 opsys=gnu-linux
2645 ;;
2646 s390x-*-linux-gnu* )
2647 machine=ibms390x opsys=gnu-linux
2648 ;;
2649 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2650 machine=ibmrs6000 opsys=aix3-1
2651 ;;
2652 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2653 machine=ibmrs6000 opsys=aix3-2-5
2654 ;;
2655 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2656 machine=ibmrs6000 opsys=aix4-1
2657 ;;
2658 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2659 machine=ibmrs6000 opsys=aix4-2
2660 ;;
2661 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2662 machine=ibmrs6000 opsys=aix4-2
2663 ;;
2664 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2665 machine=ibmrs6000 opsys=aix4
2666 ;;
2667 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2668 machine=ibmrs6000 opsys=aix4-1
2669 ;;
2670 rs6000-ibm-aix* | powerpc-ibm-aix* )
2671 machine=ibmrs6000 opsys=aix3-2
2672 ;;
2673 romp-ibm-bsd4.3* )
2674 machine=ibmrt opsys=bsd4-3
2675 ;;
2676 romp-ibm-bsd4.2* )
2677 machine=ibmrt opsys=bsd4-2
2678 ;;
2679 romp-ibm-aos4.3* )
2680 machine=ibmrt opsys=bsd4-3
2681 ;;
2682 romp-ibm-aos4.2* )
2683 machine=ibmrt opsys=bsd4-2
2684 ;;
2685 romp-ibm-aos* )
2686 machine=ibmrt opsys=bsd4-3
2687 ;;
2688 romp-ibm-bsd* )
2689 machine=ibmrt opsys=bsd4-3
2690 ;;
2691 romp-ibm-aix* )
2692 machine=ibmrt-aix opsys=usg5-2-2
2693 ;;
2694
2695 ## Integrated Solutions `Optimum V'
2696 m68*-isi-bsd4.2* )
2697 machine=isi-ov opsys=bsd4-2
2698 ;;
2699 m68*-isi-bsd4.3* )
2700 machine=isi-ov opsys=bsd4-3
2701 ;;
2702
2703 ## Intel 386 machines where we do care about the manufacturer
2704 i[3456]86-intsys-sysv* )
2705 machine=is386 opsys=usg5-2-2
2706 ;;
2707
2708 ## Prime EXL
2709 i[3456]86-prime-sysv* )
2710 machine=i386 opsys=usg5-3
2711 ;;
2712
2713 ## Sequent Symmetry running Dynix
2714 i[3456]86-sequent-bsd* )
2715 machine=symmetry opsys=bsd4-3
2716 ;;
2717
2718 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2719 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2720 machine=sequent-ptx opsys=ptx4
2721 NON_GNU_CPP=/lib/cpp
2722 ;;
2723
2724 ## Sequent Symmetry running DYNIX/ptx
2725 ## Use the old cpp rather than the newer ANSI one.
2726 i[3456]86-sequent-ptx* )
2727 machine=sequent-ptx opsys=ptx
2728 NON_GNU_CPP="/lib/cpp"
2729 ;;
2730
2731 ## ncr machine running svr4.3.
2732 i[3456]86-ncr-sysv4.3 )
2733 machine=ncr386 opsys=usg5-4-3
2734 ;;
2735
2736 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2737 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2738 i[3456]86-ncr-sysv* )
2739 machine=ncr386 opsys=usg5-4-2
2740 ;;
2741
2742 ## Intel Paragon OSF/1
2743 i860-intel-osf1* )
2744 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2745 ;;
2746
2747 ## Intel 860
2748 i860-*-sysv4* )
2749 machine=i860 opsys=usg5-4
2750 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2751 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2752 ;;
2753
2754 ## Macintosh PowerPC
2755 powerpc*-*-linux-gnu* )
2756 machine=macppc opsys=gnu-linux
2757 ;;
2758
2759 ## Masscomp machines
2760 m68*-masscomp-rtu* )
2761 machine=masscomp opsys=rtu
2762 ;;
2763
2764 ## Megatest machines
2765 m68*-megatest-bsd* )
2766 machine=mega68 opsys=bsd4-2
2767 ;;
2768
2769 ## Workstations sold by MIPS
2770 ## This is not necessarily all workstations using the MIPS processor -
2771 ## Irises are produced by SGI, and DECstations by DEC.
2772
2773 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2774 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2775 ## it gives for choosing between the alternatives seems to be "Use
2776 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2777 ## the BSD world." I'll assume that these are instructions for
2778 ## handling two odd situations, and that every other situation
2779 ## should use mips.h and usg5-2-2, they being listed first.
2780 mips-mips-usg* )
2781 machine=mips4
2782 ## Fall through to the general code at the bottom to decide on the OS.
2783 ;;
2784 mips-mips-riscos4* )
2785 machine=mips4 opsys=bsd4-3
2786 NON_GNU_CC="cc -systype bsd43"
2787 NON_GNU_CPP="cc -systype bsd43 -E"
2788 ;;
2789 mips-mips-riscos5* )
2790 machine=mips4 opsys=riscos5
2791 NON_GNU_CC="cc -systype bsd43"
2792 NON_GNU_CPP="cc -systype bsd43 -E"
2793 ;;
2794 mips-mips-bsd* )
2795 machine=mips opsys=bsd4-3
2796 ;;
2797 mips-mips-* )
2798 machine=mips opsys=usg5-2-2
2799 ;;
2800
2801 ## NeXT
2802 m68*-next-* | m68k-*-nextstep* )
2803 machine=m68k opsys=nextstep
2804 ;;
2805
2806 ## The complete machine from National Semiconductor
2807 ns32k-ns-genix* )
2808 machine=ns32000 opsys=usg5-2
2809 ;;
2810
2811 ## NCR machines
2812 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2813 machine=tower32 opsys=usg5-2-2
2814 ;;
2815 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2816 machine=tower32v3 opsys=usg5-3
2817 ;;
2818
2819 ## NEC EWS4800
2820 mips-nec-sysv4*)
2821 machine=ews4800 opsys=ux4800
2822 ;;
2823
2824 ## Nixdorf Targon 31
2825 m68*-nixdorf-sysv* )
2826 machine=targon31 opsys=usg5-2-2
2827 ;;
2828
2829 ## Nu (TI or LMI)
2830 m68*-nu-sysv* )
2831 machine=nu opsys=usg5-2
2832 ;;
2833
2834 ## Plexus
2835 m68*-plexus-sysv* )
2836 machine=plexus opsys=usg5-2
2837 ;;
2838
2839 ## Pyramid machines
2840 ## I don't really have any idea what sort of processor the Pyramid has,
2841 ## so I'm assuming it is its own architecture.
2842 pyramid-pyramid-bsd* )
2843 machine=pyramid opsys=bsd4-2
2844 ;;
2845
2846 ## Sequent Balance
2847 ns32k-sequent-bsd4.2* )
2848 machine=sequent opsys=bsd4-2
2849 ;;
2850 ns32k-sequent-bsd4.3* )
2851 machine=sequent opsys=bsd4-3
2852 ;;
2853
2854 ## Siemens Nixdorf
2855 mips-siemens-sysv* | mips-sni-sysv*)
2856 machine=mips-siemens opsys=usg5-4
2857 NON_GNU_CC=/usr/ccs/bin/cc
2858 NON_GNU_CPP=/usr/ccs/lib/cpp
2859 ;;
2860
2861 ## Silicon Graphics machines
2862 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2863 m68*-sgi-iris3.5* )
2864 machine=irist opsys=iris3-5
2865 ;;
2866 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2867 machine=irist opsys=iris3-6
2868 ;;
2869 ## Iris 4D
2870 mips-sgi-irix3* )
2871 machine=iris4d opsys=irix3-3
2872 ;;
2873 mips-sgi-irix4* )
2874 machine=iris4d opsys=irix4-0
2875 ;;
2876 mips-sgi-irix6.5 )
2877 machine=iris4d opsys=irix6-5
2878 # Without defining _LANGUAGE_C, things get masked out in the headers
2879 # so that, for instance, grepping for `free' in stdlib.h fails and
2880 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2881 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2882 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2883 ;;
2884 mips-sgi-irix6* )
2885 machine=iris4d opsys=irix6-0
2886 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2887 # but presumably it does no harm.
2888 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2889 # -32 probably isn't necessary in later v.6s -- anyone know which?
2890 NON_GCC_TEST_OPTIONS=-32
2891 ;;
2892 mips-sgi-irix5.[01]* )
2893 machine=iris4d opsys=irix5-0
2894 ;;
2895 mips-sgi-irix5* | mips-sgi-irix* )
2896 machine=iris4d opsys=irix5-2
2897 ;;
2898
2899 ## SONY machines
2900 m68*-sony-bsd4.2* )
2901 machine=news opsys=bsd4-2
2902 ;;
2903 m68*-sony-bsd4.3* )
2904 machine=news opsys=bsd4-3
2905 ;;
2906 m68*-sony-newsos3* | m68*-sony-news3*)
2907 machine=news opsys=bsd4-3
2908 ;;
2909 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2910 machine=news-risc opsys=bsd4-3
2911 ;;
2912 mips-sony-newsos6* )
2913 machine=news-r6 opsys=newsos6
2914 ;;
2915 mips-sony-news* )
2916 machine=news-risc opsys=newsos5
2917 ;;
2918
2919 ## Stride
2920 m68*-stride-sysv* )
2921 machine=stride opsys=usg5-2
2922 ;;
2923
2924 ## Suns
2925 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2926 machine=sparc opsys=gnu-linux
2927 ;;
2928
2929 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2930 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2931 | rs6000-*-solaris2*)
2932 case "${canonical}" in
2933 m68*-sunos1* ) machine=sun1 ;;
2934 m68*-sunos2* ) machine=sun2 ;;
2935 m68* ) machine=sun3 ;;
2936 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2937 i[3456]86-*-* ) machine=intel386 ;;
2938 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2939 powerpcle* ) machine=powerpcle ;;
2940 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2941 sparc* ) machine=sparc ;;
2942 * ) unported=yes ;;
2943 esac
2944 case "${canonical}" in
2945 ## The Sun386 didn't get past 4.0.
2946 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2947 *-sunos4.0* ) opsys=sunos4-0 ;;
2948 *-sunos4.1.[3-9]*noshare )
2949 ## This name is sunos413 instead of sunos4-1-3
2950 ## to avoid a file name conflict on MSDOS.
2951 opsys=sunos413
2952 NON_GNU_CPP=/usr/lib/cpp
2953 NON_GCC_TEST_OPTIONS=-Bstatic
2954 GCC_TEST_OPTIONS=-static
2955 ;;
2956 *-sunos4.1.[3-9]* | *-sunos4shr*)
2957 opsys=sunos4shr
2958 NON_GNU_CPP=/usr/lib/cpp
2959 ;;
2960 *-sunos4* | *-sunos )
2961 opsys=sunos4-1
2962 NON_GCC_TEST_OPTIONS=-Bstatic
2963 GCC_TEST_OPTIONS=-static
2964 ;;
2965 *-sunos5.3* | *-solaris2.3* )
2966 opsys=sol2-3
2967 NON_GNU_CPP=/usr/ccs/lib/cpp
2968 ;;
2969 *-sunos5.4* | *-solaris2.4* )
2970 opsys=sol2-4
2971 NON_GNU_CPP=/usr/ccs/lib/cpp
2972 RANLIB="ar -ts"
2973 ;;
2974 *-sunos5.5* | *-solaris2.5* )
2975 opsys=sol2-5
2976 NON_GNU_CPP=/usr/ccs/lib/cpp
2977 RANLIB="ar -ts"
2978 ;;
2979 *-sunos5.6* | *-solaris2.6* )
2980 opsys=sol2-6
2981 NON_GNU_CPP=/usr/ccs/lib/cpp
2982 RANLIB="ar -ts"
2983 ;;
2984 *-sunos5* | *-solaris* )
2985 opsys=sol2-6
2986 NON_GNU_CPP=/usr/ccs/lib/cpp
2987 ;;
2988 * ) opsys=bsd4-2 ;;
2989 esac
2990 ## Watch out for a compiler that we know will not work.
2991 case "${canonical}" in
2992 *-solaris* | *-sunos5* )
2993 if [ "x$CC" = x/usr/ucb/cc ]; then
2994 ## /usr/ucb/cc doesn't work;
2995 ## we should find some other compiler that does work.
2996 unset CC
2997 fi
2998 ;;
2999 *) ;;
3000 esac
3001 ;;
3002 sparc-*-nextstep* )
3003 machine=sparc opsys=nextstep
3004 ;;
3005
3006 ## Tadpole 68k
3007 m68*-tadpole-sysv* )
3008 machine=tad68k opsys=usg5-3
3009 ;;
3010
3011 ## Tahoe machines
3012 tahoe-tahoe-bsd4.2* )
3013 machine=tahoe opsys=bsd4-2
3014 ;;
3015 tahoe-tahoe-bsd4.3* )
3016 machine=tahoe opsys=bsd4-3
3017 ;;
3018
3019 ## Tandem Integrity S2
3020 mips-tandem-sysv* )
3021 machine=tandem-s2 opsys=usg5-3
3022 ;;
3023
3024 ## Tektronix XD88
3025 m88k-tektronix-sysv3* )
3026 machine=tekxd88 opsys=usg5-3
3027 ;;
3028
3029 ## Tektronix 16000 box (6130?)
3030 ns16k-tektronix-bsd* )
3031 machine=ns16000 opsys=bsd4-2
3032 ;;
3033 ## Tektronix 4300
3034 ## src/m/tek4300.h hints that this is a m68k machine.
3035 m68*-tektronix-bsd* )
3036 machine=tek4300 opsys=bsd4-3
3037 ;;
3038
3039 ## Titan P2 or P3
3040 ## We seem to have lost the machine-description file titan.h!
3041 titan-titan-sysv* )
3042 machine=titan opsys=usg5-3
3043 ;;
3044
3045 ## Ustation E30 (SS5E)
3046 m68*-unisys-uniplus* )
3047 machine=ustation opsystem=unipl5-2
3048 ;;
3049
3050 ## Vaxen.
3051 vax-dec-* )
3052 machine=vax
3053 case "${canonical}" in
3054 *-bsd4.1* ) opsys=bsd4-1 ;;
3055 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
3056 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
3057 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
3058 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
3059 *-vms* ) opsys=vms ;;
3060 * ) unported=yes
3061 esac
3062 ;;
3063
3064 ## Whitechapel MG1
3065 ns16k-whitechapel-* )
3066 machine=mg1
3067 ## We don't know what sort of OS runs on these; we'll let the
3068 ## operating system guessing code below try.
3069 ;;
3070
3071 ## Wicat
3072 m68*-wicat-sysv* )
3073 machine=wicat opsys=usg5-2
3074 ;;
3075
3076 ## IA-64
3077 ia64*-*-linux* )
3078 machine=ia64 opsys=gnu-linux
3079 ;;
3080
3081 ## Intel 386 machines where we don't care about the manufacturer
3082 i[3456]86-*-* )
3083 machine=intel386
3084 case "${canonical}" in
3085 *-cygwin ) opsys=cygwin ;;
3086 *-darwin* ) opsys=darwin
3087 CPP="${CC-cc} -E -no-cpp-precomp"
3088 ;;
3089 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
3090 *-isc2.2* ) opsys=isc2-2 ;;
3091 *-isc4.0* ) opsys=isc4-0 ;;
3092 *-isc4.* ) opsys=isc4-1
3093 GCC_TEST_OPTIONS=-posix
3094 NON_GCC_TEST_OPTIONS=-Xp
3095 ;;
3096 *-isc* ) opsys=isc3-0 ;;
3097 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
3098 *-esix* ) opsys=esix ;;
3099 *-xenix* ) opsys=xenix ;;
3100 *-linux-gnu* ) opsys=gnu-linux ;;
3101 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
3102 *-sco3.2v5* ) opsys=sco5
3103 NON_GNU_CPP=/lib/cpp
3104 # Prevent -belf from being passed to $CPP.
3105 # /lib/cpp does not accept it.
3106 OVERRIDE_CPPFLAGS=" "
3107 ;;
3108 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3109 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3110 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3111 *-386bsd* ) opsys=386bsd ;;
3112 *-nextstep* ) opsys=nextstep ;;
3113 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3114 esac
3115 ;;
3116
3117 ## m68k Linux-based GNU system
3118 m68k-*-linux-gnu* )
3119 machine=m68k opsys=gnu-linux
3120 ;;
3121
3122 ## Mips Linux-based GNU system
3123 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
3124 machine=mips opsys=gnu-linux
3125 ;;
3126
3127 ## UXP/DS
3128 sparc-fujitsu-sysv4* )
3129 machine=sparc opsys=uxpds
3130 NON_GNU_CPP=/usr/ccs/lib/cpp
3131 RANLIB="ar -ts"
3132 ;;
3133
3134 ## UXP/V
3135 f301-fujitsu-uxpv4.1)
3136 machine=f301 opsys=uxpv
3137 ;;
3138
3139 ## AMD x86-64 Linux-based GNU system
3140 x86_64-*-linux-gnu* )
3141 machine=amdx86-64 opsys=gnu-linux
3142 ;;
3143
3144 * )
3145 unported=yes
3146 ;;
3147 esac
3148
3149 ### If the code above didn't choose an operating system, just choose
3150 ### an operating system based on the configuration name. You really
3151 ### only want to use this when you have no idea what the right
3152 ### operating system is; if you know what operating systems a machine
3153 ### runs, it's cleaner to make it explicit in the case statement
3154 ### above.
3155 if test x"${opsys}" = x; then
3156 case "${canonical}" in
3157 *-gnu* ) opsys=gnu ;;
3158 *-bsd4.[01] ) opsys=bsd4-1 ;;
3159 *-bsd4.2 ) opsys=bsd4-2 ;;
3160 *-bsd4.3 ) opsys=bsd4-3 ;;
3161 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
3162 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
3163 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
3164 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
3165 *-sysv4.2uw* ) opsys=unixware ;;
3166 *-sysv5uw* ) opsys=unixware ;;
3167 *-sysv5OpenUNIX* ) opsys=unixware ;;
3168 *-sysv4.1* | *-sysvr4.1* )
3169 NON_GNU_CPP=/usr/lib/cpp
3170 opsys=usg5-4 ;;
3171 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3172 if [ x$NON_GNU_CPP = x ]; then
3173 if [ -f /usr/ccs/lib/cpp ]; then
3174 NON_GNU_CPP=/usr/ccs/lib/cpp
3175 else
3176 NON_GNU_CPP=/lib/cpp
3177 fi
3178 fi
3179 opsys=usg5-4-2 ;;
3180 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3181 * )
3182 unported=yes
3183 ;;
3184 esac
3185 fi
3186
3187
3188
3189 if test $unported = yes; then
3190 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3191 Check \`etc/MACHINES' for recognized configuration names." >&5
3192 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3193 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3194 { (exit 1); exit 1; }; }
3195 fi
3196
3197 machfile="m/${machine}.h"
3198 opsysfile="s/${opsys}.h"
3199
3200
3201 #### Choose a compiler.
3202 test -n "$CC" && cc_specified=yes
3203
3204 # Save the value of CFLAGS that the user specified.
3205 SPECIFIED_CFLAGS="$CFLAGS"
3206
3207 case ${with_gcc} in
3208 "yes" ) CC="gcc" GCC=yes ;;
3209 "no" ) : ${CC=cc} ;;
3210 * )
3211 esac
3212 ac_ext=c
3213 ac_cpp='$CPP $CPPFLAGS'
3214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3217 if test -n "$ac_tool_prefix"; then
3218 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3219 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3222 if test "${ac_cv_prog_CC+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3224 else
3225 if test -n "$CC"; then
3226 ac_cv_prog_CC="$CC" # Let the user override the test.
3227 else
3228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229 for as_dir in $PATH
3230 do
3231 IFS=$as_save_IFS
3232 test -z "$as_dir" && as_dir=.
3233 for ac_exec_ext in '' $ac_executable_extensions; do
3234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3235 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3237 break 2
3238 fi
3239 done
3240 done
3241 IFS=$as_save_IFS
3242
3243 fi
3244 fi
3245 CC=$ac_cv_prog_CC
3246 if test -n "$CC"; then
3247 { echo "$as_me:$LINENO: result: $CC" >&5
3248 echo "${ECHO_T}$CC" >&6; }
3249 else
3250 { echo "$as_me:$LINENO: result: no" >&5
3251 echo "${ECHO_T}no" >&6; }
3252 fi
3253
3254
3255 fi
3256 if test -z "$ac_cv_prog_CC"; then
3257 ac_ct_CC=$CC
3258 # Extract the first word of "gcc", so it can be a program name with args.
3259 set dummy gcc; ac_word=$2
3260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3262 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3263 echo $ECHO_N "(cached) $ECHO_C" >&6
3264 else
3265 if test -n "$ac_ct_CC"; then
3266 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3267 else
3268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269 for as_dir in $PATH
3270 do
3271 IFS=$as_save_IFS
3272 test -z "$as_dir" && as_dir=.
3273 for ac_exec_ext in '' $ac_executable_extensions; do
3274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3275 ac_cv_prog_ac_ct_CC="gcc"
3276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3277 break 2
3278 fi
3279 done
3280 done
3281 IFS=$as_save_IFS
3282
3283 fi
3284 fi
3285 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3286 if test -n "$ac_ct_CC"; then
3287 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3288 echo "${ECHO_T}$ac_ct_CC" >&6; }
3289 else
3290 { echo "$as_me:$LINENO: result: no" >&5
3291 echo "${ECHO_T}no" >&6; }
3292 fi
3293
3294 if test "x$ac_ct_CC" = x; then
3295 CC=""
3296 else
3297 case $cross_compiling:$ac_tool_warned in
3298 yes:)
3299 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3300 whose name does not start with the host triplet. If you think this
3301 configuration is useful to you, please write to autoconf@gnu.org." >&5
3302 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3303 whose name does not start with the host triplet. If you think this
3304 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3305 ac_tool_warned=yes ;;
3306 esac
3307 CC=$ac_ct_CC
3308 fi
3309 else
3310 CC="$ac_cv_prog_CC"
3311 fi
3312
3313 if test -z "$CC"; then
3314 if test -n "$ac_tool_prefix"; then
3315 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3316 set dummy ${ac_tool_prefix}cc; ac_word=$2
3317 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3319 if test "${ac_cv_prog_CC+set}" = set; then
3320 echo $ECHO_N "(cached) $ECHO_C" >&6
3321 else
3322 if test -n "$CC"; then
3323 ac_cv_prog_CC="$CC" # Let the user override the test.
3324 else
3325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326 for as_dir in $PATH
3327 do
3328 IFS=$as_save_IFS
3329 test -z "$as_dir" && as_dir=.
3330 for ac_exec_ext in '' $ac_executable_extensions; do
3331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3332 ac_cv_prog_CC="${ac_tool_prefix}cc"
3333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 break 2
3335 fi
3336 done
3337 done
3338 IFS=$as_save_IFS
3339
3340 fi
3341 fi
3342 CC=$ac_cv_prog_CC
3343 if test -n "$CC"; then
3344 { echo "$as_me:$LINENO: result: $CC" >&5
3345 echo "${ECHO_T}$CC" >&6; }
3346 else
3347 { echo "$as_me:$LINENO: result: no" >&5
3348 echo "${ECHO_T}no" >&6; }
3349 fi
3350
3351
3352 fi
3353 fi
3354 if test -z "$CC"; then
3355 # Extract the first word of "cc", so it can be a program name with args.
3356 set dummy cc; ac_word=$2
3357 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3359 if test "${ac_cv_prog_CC+set}" = set; then
3360 echo $ECHO_N "(cached) $ECHO_C" >&6
3361 else
3362 if test -n "$CC"; then
3363 ac_cv_prog_CC="$CC" # Let the user override the test.
3364 else
3365 ac_prog_rejected=no
3366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367 for as_dir in $PATH
3368 do
3369 IFS=$as_save_IFS
3370 test -z "$as_dir" && as_dir=.
3371 for ac_exec_ext in '' $ac_executable_extensions; do
3372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3373 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3374 ac_prog_rejected=yes
3375 continue
3376 fi
3377 ac_cv_prog_CC="cc"
3378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3379 break 2
3380 fi
3381 done
3382 done
3383 IFS=$as_save_IFS
3384
3385 if test $ac_prog_rejected = yes; then
3386 # We found a bogon in the path, so make sure we never use it.
3387 set dummy $ac_cv_prog_CC
3388 shift
3389 if test $# != 0; then
3390 # We chose a different compiler from the bogus one.
3391 # However, it has the same basename, so the bogon will be chosen
3392 # first if we set CC to just the basename; use the full file name.
3393 shift
3394 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3395 fi
3396 fi
3397 fi
3398 fi
3399 CC=$ac_cv_prog_CC
3400 if test -n "$CC"; then
3401 { echo "$as_me:$LINENO: result: $CC" >&5
3402 echo "${ECHO_T}$CC" >&6; }
3403 else
3404 { echo "$as_me:$LINENO: result: no" >&5
3405 echo "${ECHO_T}no" >&6; }
3406 fi
3407
3408
3409 fi
3410 if test -z "$CC"; then
3411 if test -n "$ac_tool_prefix"; then
3412 for ac_prog in cl.exe
3413 do
3414 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3415 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3416 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3418 if test "${ac_cv_prog_CC+set}" = set; then
3419 echo $ECHO_N "(cached) $ECHO_C" >&6
3420 else
3421 if test -n "$CC"; then
3422 ac_cv_prog_CC="$CC" # Let the user override the test.
3423 else
3424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3425 for as_dir in $PATH
3426 do
3427 IFS=$as_save_IFS
3428 test -z "$as_dir" && as_dir=.
3429 for ac_exec_ext in '' $ac_executable_extensions; do
3430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3431 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3433 break 2
3434 fi
3435 done
3436 done
3437 IFS=$as_save_IFS
3438
3439 fi
3440 fi
3441 CC=$ac_cv_prog_CC
3442 if test -n "$CC"; then
3443 { echo "$as_me:$LINENO: result: $CC" >&5
3444 echo "${ECHO_T}$CC" >&6; }
3445 else
3446 { echo "$as_me:$LINENO: result: no" >&5
3447 echo "${ECHO_T}no" >&6; }
3448 fi
3449
3450
3451 test -n "$CC" && break
3452 done
3453 fi
3454 if test -z "$CC"; then
3455 ac_ct_CC=$CC
3456 for ac_prog in cl.exe
3457 do
3458 # Extract the first word of "$ac_prog", so it can be a program name with args.
3459 set dummy $ac_prog; ac_word=$2
3460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3462 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3464 else
3465 if test -n "$ac_ct_CC"; then
3466 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3467 else
3468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469 for as_dir in $PATH
3470 do
3471 IFS=$as_save_IFS
3472 test -z "$as_dir" && as_dir=.
3473 for ac_exec_ext in '' $ac_executable_extensions; do
3474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3475 ac_cv_prog_ac_ct_CC="$ac_prog"
3476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3477 break 2
3478 fi
3479 done
3480 done
3481 IFS=$as_save_IFS
3482
3483 fi
3484 fi
3485 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3486 if test -n "$ac_ct_CC"; then
3487 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3488 echo "${ECHO_T}$ac_ct_CC" >&6; }
3489 else
3490 { echo "$as_me:$LINENO: result: no" >&5
3491 echo "${ECHO_T}no" >&6; }
3492 fi
3493
3494
3495 test -n "$ac_ct_CC" && break
3496 done
3497
3498 if test "x$ac_ct_CC" = x; then
3499 CC=""
3500 else
3501 case $cross_compiling:$ac_tool_warned in
3502 yes:)
3503 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3504 whose name does not start with the host triplet. If you think this
3505 configuration is useful to you, please write to autoconf@gnu.org." >&5
3506 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3507 whose name does not start with the host triplet. If you think this
3508 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3509 ac_tool_warned=yes ;;
3510 esac
3511 CC=$ac_ct_CC
3512 fi
3513 fi
3514
3515 fi
3516
3517
3518 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3519 See \`config.log' for more details." >&5
3520 echo "$as_me: error: no acceptable C compiler found in \$PATH
3521 See \`config.log' for more details." >&2;}
3522 { (exit 1); exit 1; }; }
3523
3524 # Provide some information about the compiler.
3525 echo "$as_me:$LINENO: checking for C compiler version" >&5
3526 ac_compiler=`set X $ac_compile; echo $2`
3527 { (ac_try="$ac_compiler --version >&5"
3528 case "(($ac_try" in
3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530 *) ac_try_echo=$ac_try;;
3531 esac
3532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3533 (eval "$ac_compiler --version >&5") 2>&5
3534 ac_status=$?
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); }
3537 { (ac_try="$ac_compiler -v >&5"
3538 case "(($ac_try" in
3539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540 *) ac_try_echo=$ac_try;;
3541 esac
3542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3543 (eval "$ac_compiler -v >&5") 2>&5
3544 ac_status=$?
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); }
3547 { (ac_try="$ac_compiler -V >&5"
3548 case "(($ac_try" in
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3551 esac
3552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3553 (eval "$ac_compiler -V >&5") 2>&5
3554 ac_status=$?
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); }
3557
3558 cat >conftest.$ac_ext <<_ACEOF
3559 /* confdefs.h. */
3560 _ACEOF
3561 cat confdefs.h >>conftest.$ac_ext
3562 cat >>conftest.$ac_ext <<_ACEOF
3563 /* end confdefs.h. */
3564
3565 int
3566 main ()
3567 {
3568
3569 ;
3570 return 0;
3571 }
3572 _ACEOF
3573 ac_clean_files_save=$ac_clean_files
3574 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3575 # Try to create an executable without -o first, disregard a.out.
3576 # It will help us diagnose broken compilers, and finding out an intuition
3577 # of exeext.
3578 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3579 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3580 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3581 #
3582 # List of possible output files, starting from the most likely.
3583 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3584 # only as a last resort. b.out is created by i960 compilers.
3585 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3586 #
3587 # The IRIX 6 linker writes into existing files which may not be
3588 # executable, retaining their permissions. Remove them first so a
3589 # subsequent execution test works.
3590 ac_rmfiles=
3591 for ac_file in $ac_files
3592 do
3593 case $ac_file in
3594 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3595 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3596 esac
3597 done
3598 rm -f $ac_rmfiles
3599
3600 if { (ac_try="$ac_link_default"
3601 case "(($ac_try" in
3602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3604 esac
3605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3606 (eval "$ac_link_default") 2>&5
3607 ac_status=$?
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); }; then
3610 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3611 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3612 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3613 # so that the user can short-circuit this test for compilers unknown to
3614 # Autoconf.
3615 for ac_file in $ac_files ''
3616 do
3617 test -f "$ac_file" || continue
3618 case $ac_file in
3619 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3620 ;;
3621 [ab].out )
3622 # We found the default executable, but exeext='' is most
3623 # certainly right.
3624 break;;
3625 *.* )
3626 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3627 then :; else
3628 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3629 fi
3630 # We set ac_cv_exeext here because the later test for it is not
3631 # safe: cross compilers may not add the suffix if given an `-o'
3632 # argument, so we may need to know it at that point already.
3633 # Even if this section looks crufty: it has the advantage of
3634 # actually working.
3635 break;;
3636 * )
3637 break;;
3638 esac
3639 done
3640 test "$ac_cv_exeext" = no && ac_cv_exeext=
3641
3642 else
3643 ac_file=''
3644 fi
3645
3646 { echo "$as_me:$LINENO: result: $ac_file" >&5
3647 echo "${ECHO_T}$ac_file" >&6; }
3648 if test -z "$ac_file"; then
3649 echo "$as_me: failed program was:" >&5
3650 sed 's/^/| /' conftest.$ac_ext >&5
3651
3652 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3653 See \`config.log' for more details." >&5
3654 echo "$as_me: error: C compiler cannot create executables
3655 See \`config.log' for more details." >&2;}
3656 { (exit 77); exit 77; }; }
3657 fi
3658
3659 ac_exeext=$ac_cv_exeext
3660
3661 # Check that the compiler produces executables we can run. If not, either
3662 # the compiler is broken, or we cross compile.
3663 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3664 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3665 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3666 # If not cross compiling, check that we can run a simple program.
3667 if test "$cross_compiling" != yes; then
3668 if { ac_try='./$ac_file'
3669 { (case "(($ac_try" in
3670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671 *) ac_try_echo=$ac_try;;
3672 esac
3673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3674 (eval "$ac_try") 2>&5
3675 ac_status=$?
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); }; }; then
3678 cross_compiling=no
3679 else
3680 if test "$cross_compiling" = maybe; then
3681 cross_compiling=yes
3682 else
3683 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3684 If you meant to cross compile, use \`--host'.
3685 See \`config.log' for more details." >&5
3686 echo "$as_me: error: cannot run C compiled programs.
3687 If you meant to cross compile, use \`--host'.
3688 See \`config.log' for more details." >&2;}
3689 { (exit 1); exit 1; }; }
3690 fi
3691 fi
3692 fi
3693 { echo "$as_me:$LINENO: result: yes" >&5
3694 echo "${ECHO_T}yes" >&6; }
3695
3696 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3697 ac_clean_files=$ac_clean_files_save
3698 # Check that the compiler produces executables we can run. If not, either
3699 # the compiler is broken, or we cross compile.
3700 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3701 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3702 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3703 echo "${ECHO_T}$cross_compiling" >&6; }
3704
3705 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3706 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3707 if { (ac_try="$ac_link"
3708 case "(($ac_try" in
3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710 *) ac_try_echo=$ac_try;;
3711 esac
3712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3713 (eval "$ac_link") 2>&5
3714 ac_status=$?
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); }; then
3717 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3718 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3719 # work properly (i.e., refer to `conftest.exe'), while it won't with
3720 # `rm'.
3721 for ac_file in conftest.exe conftest conftest.*; do
3722 test -f "$ac_file" || continue
3723 case $ac_file in
3724 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3725 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3726 break;;
3727 * ) break;;
3728 esac
3729 done
3730 else
3731 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3732 See \`config.log' for more details." >&5
3733 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3734 See \`config.log' for more details." >&2;}
3735 { (exit 1); exit 1; }; }
3736 fi
3737
3738 rm -f conftest$ac_cv_exeext
3739 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3740 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3741
3742 rm -f conftest.$ac_ext
3743 EXEEXT=$ac_cv_exeext
3744 ac_exeext=$EXEEXT
3745 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3746 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3747 if test "${ac_cv_objext+set}" = set; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3749 else
3750 cat >conftest.$ac_ext <<_ACEOF
3751 /* confdefs.h. */
3752 _ACEOF
3753 cat confdefs.h >>conftest.$ac_ext
3754 cat >>conftest.$ac_ext <<_ACEOF
3755 /* end confdefs.h. */
3756
3757 int
3758 main ()
3759 {
3760
3761 ;
3762 return 0;
3763 }
3764 _ACEOF
3765 rm -f conftest.o conftest.obj
3766 if { (ac_try="$ac_compile"
3767 case "(($ac_try" in
3768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3769 *) ac_try_echo=$ac_try;;
3770 esac
3771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3772 (eval "$ac_compile") 2>&5
3773 ac_status=$?
3774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775 (exit $ac_status); }; then
3776 for ac_file in conftest.o conftest.obj conftest.*; do
3777 test -f "$ac_file" || continue;
3778 case $ac_file in
3779 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3780 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3781 break;;
3782 esac
3783 done
3784 else
3785 echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3787
3788 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3789 See \`config.log' for more details." >&5
3790 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3791 See \`config.log' for more details." >&2;}
3792 { (exit 1); exit 1; }; }
3793 fi
3794
3795 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3796 fi
3797 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3798 echo "${ECHO_T}$ac_cv_objext" >&6; }
3799 OBJEXT=$ac_cv_objext
3800 ac_objext=$OBJEXT
3801 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3802 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3803 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3804 echo $ECHO_N "(cached) $ECHO_C" >&6
3805 else
3806 cat >conftest.$ac_ext <<_ACEOF
3807 /* confdefs.h. */
3808 _ACEOF
3809 cat confdefs.h >>conftest.$ac_ext
3810 cat >>conftest.$ac_ext <<_ACEOF
3811 /* end confdefs.h. */
3812
3813 int
3814 main ()
3815 {
3816 #ifndef __GNUC__
3817 choke me
3818 #endif
3819
3820 ;
3821 return 0;
3822 }
3823 _ACEOF
3824 rm -f conftest.$ac_objext
3825 if { (ac_try="$ac_compile"
3826 case "(($ac_try" in
3827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828 *) ac_try_echo=$ac_try;;
3829 esac
3830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3831 (eval "$ac_compile") 2>conftest.er1
3832 ac_status=$?
3833 grep -v '^ *+' conftest.er1 >conftest.err
3834 rm -f conftest.er1
3835 cat conftest.err >&5
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); } && {
3838 test -z "$ac_c_werror_flag" ||
3839 test ! -s conftest.err
3840 } && test -s conftest.$ac_objext; then
3841 ac_compiler_gnu=yes
3842 else
3843 echo "$as_me: failed program was:" >&5
3844 sed 's/^/| /' conftest.$ac_ext >&5
3845
3846 ac_compiler_gnu=no
3847 fi
3848
3849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3850 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3851
3852 fi
3853 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3854 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3855 GCC=`test $ac_compiler_gnu = yes && echo yes`
3856 ac_test_CFLAGS=${CFLAGS+set}
3857 ac_save_CFLAGS=$CFLAGS
3858 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3859 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3860 if test "${ac_cv_prog_cc_g+set}" = set; then
3861 echo $ECHO_N "(cached) $ECHO_C" >&6
3862 else
3863 ac_save_c_werror_flag=$ac_c_werror_flag
3864 ac_c_werror_flag=yes
3865 ac_cv_prog_cc_g=no
3866 CFLAGS="-g"
3867 cat >conftest.$ac_ext <<_ACEOF
3868 /* confdefs.h. */
3869 _ACEOF
3870 cat confdefs.h >>conftest.$ac_ext
3871 cat >>conftest.$ac_ext <<_ACEOF
3872 /* end confdefs.h. */
3873
3874 int
3875 main ()
3876 {
3877
3878 ;
3879 return 0;
3880 }
3881 _ACEOF
3882 rm -f conftest.$ac_objext
3883 if { (ac_try="$ac_compile"
3884 case "(($ac_try" in
3885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886 *) ac_try_echo=$ac_try;;
3887 esac
3888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3889 (eval "$ac_compile") 2>conftest.er1
3890 ac_status=$?
3891 grep -v '^ *+' conftest.er1 >conftest.err
3892 rm -f conftest.er1
3893 cat conftest.err >&5
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); } && {
3896 test -z "$ac_c_werror_flag" ||
3897 test ! -s conftest.err
3898 } && test -s conftest.$ac_objext; then
3899 ac_cv_prog_cc_g=yes
3900 else
3901 echo "$as_me: failed program was:" >&5
3902 sed 's/^/| /' conftest.$ac_ext >&5
3903
3904 CFLAGS=""
3905 cat >conftest.$ac_ext <<_ACEOF
3906 /* confdefs.h. */
3907 _ACEOF
3908 cat confdefs.h >>conftest.$ac_ext
3909 cat >>conftest.$ac_ext <<_ACEOF
3910 /* end confdefs.h. */
3911
3912 int
3913 main ()
3914 {
3915
3916 ;
3917 return 0;
3918 }
3919 _ACEOF
3920 rm -f conftest.$ac_objext
3921 if { (ac_try="$ac_compile"
3922 case "(($ac_try" in
3923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3924 *) ac_try_echo=$ac_try;;
3925 esac
3926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3927 (eval "$ac_compile") 2>conftest.er1
3928 ac_status=$?
3929 grep -v '^ *+' conftest.er1 >conftest.err
3930 rm -f conftest.er1
3931 cat conftest.err >&5
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); } && {
3934 test -z "$ac_c_werror_flag" ||
3935 test ! -s conftest.err
3936 } && test -s conftest.$ac_objext; then
3937 :
3938 else
3939 echo "$as_me: failed program was:" >&5
3940 sed 's/^/| /' conftest.$ac_ext >&5
3941
3942 ac_c_werror_flag=$ac_save_c_werror_flag
3943 CFLAGS="-g"
3944 cat >conftest.$ac_ext <<_ACEOF
3945 /* confdefs.h. */
3946 _ACEOF
3947 cat confdefs.h >>conftest.$ac_ext
3948 cat >>conftest.$ac_ext <<_ACEOF
3949 /* end confdefs.h. */
3950
3951 int
3952 main ()
3953 {
3954
3955 ;
3956 return 0;
3957 }
3958 _ACEOF
3959 rm -f conftest.$ac_objext
3960 if { (ac_try="$ac_compile"
3961 case "(($ac_try" in
3962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963 *) ac_try_echo=$ac_try;;
3964 esac
3965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3966 (eval "$ac_compile") 2>conftest.er1
3967 ac_status=$?
3968 grep -v '^ *+' conftest.er1 >conftest.err
3969 rm -f conftest.er1
3970 cat conftest.err >&5
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); } && {
3973 test -z "$ac_c_werror_flag" ||
3974 test ! -s conftest.err
3975 } && test -s conftest.$ac_objext; then
3976 ac_cv_prog_cc_g=yes
3977 else
3978 echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3980
3981
3982 fi
3983
3984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3985 fi
3986
3987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3988 fi
3989
3990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3991 ac_c_werror_flag=$ac_save_c_werror_flag
3992 fi
3993 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3994 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3995 if test "$ac_test_CFLAGS" = set; then
3996 CFLAGS=$ac_save_CFLAGS
3997 elif test $ac_cv_prog_cc_g = yes; then
3998 if test "$GCC" = yes; then
3999 CFLAGS="-g -O2"
4000 else
4001 CFLAGS="-g"
4002 fi
4003 else
4004 if test "$GCC" = yes; then
4005 CFLAGS="-O2"
4006 else
4007 CFLAGS=
4008 fi
4009 fi
4010 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4011 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4012 if test "${ac_cv_prog_cc_c89+set}" = set; then
4013 echo $ECHO_N "(cached) $ECHO_C" >&6
4014 else
4015 ac_cv_prog_cc_c89=no
4016 ac_save_CC=$CC
4017 cat >conftest.$ac_ext <<_ACEOF
4018 /* confdefs.h. */
4019 _ACEOF
4020 cat confdefs.h >>conftest.$ac_ext
4021 cat >>conftest.$ac_ext <<_ACEOF
4022 /* end confdefs.h. */
4023 #include <stdarg.h>
4024 #include <stdio.h>
4025 #include <sys/types.h>
4026 #include <sys/stat.h>
4027 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4028 struct buf { int x; };
4029 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4030 static char *e (p, i)
4031 char **p;
4032 int i;
4033 {
4034 return p[i];
4035 }
4036 static char *f (char * (*g) (char **, int), char **p, ...)
4037 {
4038 char *s;
4039 va_list v;
4040 va_start (v,p);
4041 s = g (p, va_arg (v,int));
4042 va_end (v);
4043 return s;
4044 }
4045
4046 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4047 function prototypes and stuff, but not '\xHH' hex character constants.
4048 These don't provoke an error unfortunately, instead are silently treated
4049 as 'x'. The following induces an error, until -std is added to get
4050 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4051 array size at least. It's necessary to write '\x00'==0 to get something
4052 that's true only with -std. */
4053 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4054
4055 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4056 inside strings and character constants. */
4057 #define FOO(x) 'x'
4058 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4059
4060 int test (int i, double x);
4061 struct s1 {int (*f) (int a);};
4062 struct s2 {int (*f) (double a);};
4063 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4064 int argc;
4065 char **argv;
4066 int
4067 main ()
4068 {
4069 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4070 ;
4071 return 0;
4072 }
4073 _ACEOF
4074 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4075 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4076 do
4077 CC="$ac_save_CC $ac_arg"
4078 rm -f conftest.$ac_objext
4079 if { (ac_try="$ac_compile"
4080 case "(($ac_try" in
4081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082 *) ac_try_echo=$ac_try;;
4083 esac
4084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4085 (eval "$ac_compile") 2>conftest.er1
4086 ac_status=$?
4087 grep -v '^ *+' conftest.er1 >conftest.err
4088 rm -f conftest.er1
4089 cat conftest.err >&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); } && {
4092 test -z "$ac_c_werror_flag" ||
4093 test ! -s conftest.err
4094 } && test -s conftest.$ac_objext; then
4095 ac_cv_prog_cc_c89=$ac_arg
4096 else
4097 echo "$as_me: failed program was:" >&5
4098 sed 's/^/| /' conftest.$ac_ext >&5
4099
4100
4101 fi
4102
4103 rm -f core conftest.err conftest.$ac_objext
4104 test "x$ac_cv_prog_cc_c89" != "xno" && break
4105 done
4106 rm -f conftest.$ac_ext
4107 CC=$ac_save_CC
4108
4109 fi
4110 # AC_CACHE_VAL
4111 case "x$ac_cv_prog_cc_c89" in
4112 x)
4113 { echo "$as_me:$LINENO: result: none needed" >&5
4114 echo "${ECHO_T}none needed" >&6; } ;;
4115 xno)
4116 { echo "$as_me:$LINENO: result: unsupported" >&5
4117 echo "${ECHO_T}unsupported" >&6; } ;;
4118 *)
4119 CC="$CC $ac_cv_prog_cc_c89"
4120 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4121 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4122 esac
4123
4124
4125 ac_ext=c
4126 ac_cpp='$CPP $CPPFLAGS'
4127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4130
4131
4132 # On Suns, sometimes $CPP names a directory.
4133 if test -n "$CPP" && test -d "$CPP"; then
4134 CPP=
4135 fi
4136
4137 #### Some systems specify a CPP to use unless we are using GCC.
4138 #### Now that we know whether we are using GCC, we can decide whether
4139 #### to use that one.
4140 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4141 then
4142 CPP="$NON_GNU_CPP"
4143 fi
4144
4145 #### Some systems specify a CC to use unless we are using GCC.
4146 #### Now that we know whether we are using GCC, we can decide whether
4147 #### to use that one.
4148 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4149 test x$cc_specified != xyes
4150 then
4151 CC="$NON_GNU_CC"
4152 fi
4153
4154 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4155 then
4156 CC="$CC $GCC_TEST_OPTIONS"
4157 fi
4158
4159 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4160 then
4161 CC="$CC $NON_GCC_TEST_OPTIONS"
4162 fi
4163
4164
4165 ac_ext=c
4166 ac_cpp='$CPP $CPPFLAGS'
4167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4170 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4171 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4172 # On Suns, sometimes $CPP names a directory.
4173 if test -n "$CPP" && test -d "$CPP"; then
4174 CPP=
4175 fi
4176 if test -z "$CPP"; then
4177 if test "${ac_cv_prog_CPP+set}" = set; then
4178 echo $ECHO_N "(cached) $ECHO_C" >&6
4179 else
4180 # Double quotes because CPP needs to be expanded
4181 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4182 do
4183 ac_preproc_ok=false
4184 for ac_c_preproc_warn_flag in '' yes
4185 do
4186 # Use a header file that comes with gcc, so configuring glibc
4187 # with a fresh cross-compiler works.
4188 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4189 # <limits.h> exists even on freestanding compilers.
4190 # On the NeXT, cc -E runs the code through the compiler's parser,
4191 # not just through cpp. "Syntax error" is here to catch this case.
4192 cat >conftest.$ac_ext <<_ACEOF
4193 /* confdefs.h. */
4194 _ACEOF
4195 cat confdefs.h >>conftest.$ac_ext
4196 cat >>conftest.$ac_ext <<_ACEOF
4197 /* end confdefs.h. */
4198 #ifdef __STDC__
4199 # include <limits.h>
4200 #else
4201 # include <assert.h>
4202 #endif
4203 Syntax error
4204 _ACEOF
4205 if { (ac_try="$ac_cpp conftest.$ac_ext"
4206 case "(($ac_try" in
4207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4208 *) ac_try_echo=$ac_try;;
4209 esac
4210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4211 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4212 ac_status=$?
4213 grep -v '^ *+' conftest.er1 >conftest.err
4214 rm -f conftest.er1
4215 cat conftest.err >&5
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); } >/dev/null && {
4218 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4219 test ! -s conftest.err
4220 }; then
4221 :
4222 else
4223 echo "$as_me: failed program was:" >&5
4224 sed 's/^/| /' conftest.$ac_ext >&5
4225
4226 # Broken: fails on valid input.
4227 continue
4228 fi
4229
4230 rm -f conftest.err conftest.$ac_ext
4231
4232 # OK, works on sane cases. Now check whether nonexistent headers
4233 # can be detected and how.
4234 cat >conftest.$ac_ext <<_ACEOF
4235 /* confdefs.h. */
4236 _ACEOF
4237 cat confdefs.h >>conftest.$ac_ext
4238 cat >>conftest.$ac_ext <<_ACEOF
4239 /* end confdefs.h. */
4240 #include <ac_nonexistent.h>
4241 _ACEOF
4242 if { (ac_try="$ac_cpp conftest.$ac_ext"
4243 case "(($ac_try" in
4244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4245 *) ac_try_echo=$ac_try;;
4246 esac
4247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4249 ac_status=$?
4250 grep -v '^ *+' conftest.er1 >conftest.err
4251 rm -f conftest.er1
4252 cat conftest.err >&5
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); } >/dev/null && {
4255 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4256 test ! -s conftest.err
4257 }; then
4258 # Broken: success on invalid input.
4259 continue
4260 else
4261 echo "$as_me: failed program was:" >&5
4262 sed 's/^/| /' conftest.$ac_ext >&5
4263
4264 # Passes both tests.
4265 ac_preproc_ok=:
4266 break
4267 fi
4268
4269 rm -f conftest.err conftest.$ac_ext
4270
4271 done
4272 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4273 rm -f conftest.err conftest.$ac_ext
4274 if $ac_preproc_ok; then
4275 break
4276 fi
4277
4278 done
4279 ac_cv_prog_CPP=$CPP
4280
4281 fi
4282 CPP=$ac_cv_prog_CPP
4283 else
4284 ac_cv_prog_CPP=$CPP
4285 fi
4286 { echo "$as_me:$LINENO: result: $CPP" >&5
4287 echo "${ECHO_T}$CPP" >&6; }
4288 ac_preproc_ok=false
4289 for ac_c_preproc_warn_flag in '' yes
4290 do
4291 # Use a header file that comes with gcc, so configuring glibc
4292 # with a fresh cross-compiler works.
4293 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4294 # <limits.h> exists even on freestanding compilers.
4295 # On the NeXT, cc -E runs the code through the compiler's parser,
4296 # not just through cpp. "Syntax error" is here to catch this case.
4297 cat >conftest.$ac_ext <<_ACEOF
4298 /* confdefs.h. */
4299 _ACEOF
4300 cat confdefs.h >>conftest.$ac_ext
4301 cat >>conftest.$ac_ext <<_ACEOF
4302 /* end confdefs.h. */
4303 #ifdef __STDC__
4304 # include <limits.h>
4305 #else
4306 # include <assert.h>
4307 #endif
4308 Syntax error
4309 _ACEOF
4310 if { (ac_try="$ac_cpp conftest.$ac_ext"
4311 case "(($ac_try" in
4312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4313 *) ac_try_echo=$ac_try;;
4314 esac
4315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4316 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4317 ac_status=$?
4318 grep -v '^ *+' conftest.er1 >conftest.err
4319 rm -f conftest.er1
4320 cat conftest.err >&5
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); } >/dev/null && {
4323 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4324 test ! -s conftest.err
4325 }; then
4326 :
4327 else
4328 echo "$as_me: failed program was:" >&5
4329 sed 's/^/| /' conftest.$ac_ext >&5
4330
4331 # Broken: fails on valid input.
4332 continue
4333 fi
4334
4335 rm -f conftest.err conftest.$ac_ext
4336
4337 # OK, works on sane cases. Now check whether nonexistent headers
4338 # can be detected and how.
4339 cat >conftest.$ac_ext <<_ACEOF
4340 /* confdefs.h. */
4341 _ACEOF
4342 cat confdefs.h >>conftest.$ac_ext
4343 cat >>conftest.$ac_ext <<_ACEOF
4344 /* end confdefs.h. */
4345 #include <ac_nonexistent.h>
4346 _ACEOF
4347 if { (ac_try="$ac_cpp conftest.$ac_ext"
4348 case "(($ac_try" in
4349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4350 *) ac_try_echo=$ac_try;;
4351 esac
4352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4354 ac_status=$?
4355 grep -v '^ *+' conftest.er1 >conftest.err
4356 rm -f conftest.er1
4357 cat conftest.err >&5
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); } >/dev/null && {
4360 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4361 test ! -s conftest.err
4362 }; then
4363 # Broken: success on invalid input.
4364 continue
4365 else
4366 echo "$as_me: failed program was:" >&5
4367 sed 's/^/| /' conftest.$ac_ext >&5
4368
4369 # Passes both tests.
4370 ac_preproc_ok=:
4371 break
4372 fi
4373
4374 rm -f conftest.err conftest.$ac_ext
4375
4376 done
4377 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4378 rm -f conftest.err conftest.$ac_ext
4379 if $ac_preproc_ok; then
4380 :
4381 else
4382 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4383 See \`config.log' for more details." >&5
4384 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4385 See \`config.log' for more details." >&2;}
4386 { (exit 1); exit 1; }; }
4387 fi
4388
4389 ac_ext=c
4390 ac_cpp='$CPP $CPPFLAGS'
4391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4394
4395
4396 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4397 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4398 if test "${ac_cv_path_GREP+set}" = set; then
4399 echo $ECHO_N "(cached) $ECHO_C" >&6
4400 else
4401 # Extract the first word of "grep ggrep" to use in msg output
4402 if test -z "$GREP"; then
4403 set dummy grep ggrep; ac_prog_name=$2
4404 if test "${ac_cv_path_GREP+set}" = set; then
4405 echo $ECHO_N "(cached) $ECHO_C" >&6
4406 else
4407 ac_path_GREP_found=false
4408 # Loop through the user's path and test for each of PROGNAME-LIST
4409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4410 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4411 do
4412 IFS=$as_save_IFS
4413 test -z "$as_dir" && as_dir=.
4414 for ac_prog in grep ggrep; do
4415 for ac_exec_ext in '' $ac_executable_extensions; do
4416 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4417 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4418 # Check for GNU ac_path_GREP and select it if it is found.
4419 # Check for GNU $ac_path_GREP
4420 case `"$ac_path_GREP" --version 2>&1` in
4421 *GNU*)
4422 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4423 *)
4424 ac_count=0
4425 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4426 while :
4427 do
4428 cat "conftest.in" "conftest.in" >"conftest.tmp"
4429 mv "conftest.tmp" "conftest.in"
4430 cp "conftest.in" "conftest.nl"
4431 echo 'GREP' >> "conftest.nl"
4432 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4433 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4434 ac_count=`expr $ac_count + 1`
4435 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4436 # Best one so far, save it but keep looking for a better one
4437 ac_cv_path_GREP="$ac_path_GREP"
4438 ac_path_GREP_max=$ac_count
4439 fi
4440 # 10*(2^10) chars as input seems more than enough
4441 test $ac_count -gt 10 && break
4442 done
4443 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4444 esac
4445
4446
4447 $ac_path_GREP_found && break 3
4448 done
4449 done
4450
4451 done
4452 IFS=$as_save_IFS
4453
4454
4455 fi
4456
4457 GREP="$ac_cv_path_GREP"
4458 if test -z "$GREP"; then
4459 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4460 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4461 { (exit 1); exit 1; }; }
4462 fi
4463
4464 else
4465 ac_cv_path_GREP=$GREP
4466 fi
4467
4468
4469 fi
4470 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4471 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4472 GREP="$ac_cv_path_GREP"
4473
4474
4475 { echo "$as_me:$LINENO: checking for egrep" >&5
4476 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4477 if test "${ac_cv_path_EGREP+set}" = set; then
4478 echo $ECHO_N "(cached) $ECHO_C" >&6
4479 else
4480 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4481 then ac_cv_path_EGREP="$GREP -E"
4482 else
4483 # Extract the first word of "egrep" to use in msg output
4484 if test -z "$EGREP"; then
4485 set dummy egrep; ac_prog_name=$2
4486 if test "${ac_cv_path_EGREP+set}" = set; then
4487 echo $ECHO_N "(cached) $ECHO_C" >&6
4488 else
4489 ac_path_EGREP_found=false
4490 # Loop through the user's path and test for each of PROGNAME-LIST
4491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4493 do
4494 IFS=$as_save_IFS
4495 test -z "$as_dir" && as_dir=.
4496 for ac_prog in egrep; do
4497 for ac_exec_ext in '' $ac_executable_extensions; do
4498 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4499 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4500 # Check for GNU ac_path_EGREP and select it if it is found.
4501 # Check for GNU $ac_path_EGREP
4502 case `"$ac_path_EGREP" --version 2>&1` in
4503 *GNU*)
4504 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4505 *)
4506 ac_count=0
4507 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4508 while :
4509 do
4510 cat "conftest.in" "conftest.in" >"conftest.tmp"
4511 mv "conftest.tmp" "conftest.in"
4512 cp "conftest.in" "conftest.nl"
4513 echo 'EGREP' >> "conftest.nl"
4514 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4515 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4516 ac_count=`expr $ac_count + 1`
4517 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4518 # Best one so far, save it but keep looking for a better one
4519 ac_cv_path_EGREP="$ac_path_EGREP"
4520 ac_path_EGREP_max=$ac_count
4521 fi
4522 # 10*(2^10) chars as input seems more than enough
4523 test $ac_count -gt 10 && break
4524 done
4525 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4526 esac
4527
4528
4529 $ac_path_EGREP_found && break 3
4530 done
4531 done
4532
4533 done
4534 IFS=$as_save_IFS
4535
4536
4537 fi
4538
4539 EGREP="$ac_cv_path_EGREP"
4540 if test -z "$EGREP"; then
4541 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4542 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4543 { (exit 1); exit 1; }; }
4544 fi
4545
4546 else
4547 ac_cv_path_EGREP=$EGREP
4548 fi
4549
4550
4551 fi
4552 fi
4553 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4554 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4555 EGREP="$ac_cv_path_EGREP"
4556
4557
4558
4559 { echo "$as_me:$LINENO: checking for AIX" >&5
4560 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4561 cat >conftest.$ac_ext <<_ACEOF
4562 /* confdefs.h. */
4563 _ACEOF
4564 cat confdefs.h >>conftest.$ac_ext
4565 cat >>conftest.$ac_ext <<_ACEOF
4566 /* end confdefs.h. */
4567 #ifdef _AIX
4568 yes
4569 #endif
4570
4571 _ACEOF
4572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4573 $EGREP "yes" >/dev/null 2>&1; then
4574 { echo "$as_me:$LINENO: result: yes" >&5
4575 echo "${ECHO_T}yes" >&6; }
4576 cat >>confdefs.h <<\_ACEOF
4577 #define _ALL_SOURCE 1
4578 _ACEOF
4579
4580 else
4581 { echo "$as_me:$LINENO: result: no" >&5
4582 echo "${ECHO_T}no" >&6; }
4583 fi
4584 rm -f conftest*
4585
4586
4587
4588 cat >>confdefs.h <<\_ACEOF
4589 #define _GNU_SOURCE 1
4590 _ACEOF
4591
4592
4593
4594 ### Use -Wno-pointer-sign if the compiler supports it
4595 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4596 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4597 SAVE_CFLAGS="$CFLAGS"
4598 CFLAGS="$CFLAGS -Wno-pointer-sign"
4599 cat >conftest.$ac_ext <<_ACEOF
4600 /* confdefs.h. */
4601 _ACEOF
4602 cat confdefs.h >>conftest.$ac_ext
4603 cat >>conftest.$ac_ext <<_ACEOF
4604 /* end confdefs.h. */
4605
4606 int
4607 main ()
4608 {
4609
4610 ;
4611 return 0;
4612 }
4613 _ACEOF
4614 rm -f conftest.$ac_objext
4615 if { (ac_try="$ac_compile"
4616 case "(($ac_try" in
4617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4618 *) ac_try_echo=$ac_try;;
4619 esac
4620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4621 (eval "$ac_compile") 2>conftest.er1
4622 ac_status=$?
4623 grep -v '^ *+' conftest.er1 >conftest.err
4624 rm -f conftest.er1
4625 cat conftest.err >&5
4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 (exit $ac_status); } && {
4628 test -z "$ac_c_werror_flag" ||
4629 test ! -s conftest.err
4630 } && test -s conftest.$ac_objext; then
4631 has_option=yes
4632 else
4633 echo "$as_me: failed program was:" >&5
4634 sed 's/^/| /' conftest.$ac_ext >&5
4635
4636 has_option=no
4637 fi
4638
4639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4640 if test $has_option = yes; then
4641 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4642 fi
4643 { echo "$as_me:$LINENO: result: $has_option" >&5
4644 echo "${ECHO_T}$has_option" >&6; }
4645 CFLAGS="$SAVE_CFLAGS"
4646 unset has_option
4647 unset SAVE_CFLAGS
4648
4649 #### Some other nice autoconf tests.
4650
4651 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4652 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4653 LN_S=$as_ln_s
4654 if test "$LN_S" = "ln -s"; then
4655 { echo "$as_me:$LINENO: result: yes" >&5
4656 echo "${ECHO_T}yes" >&6; }
4657 else
4658 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4659 echo "${ECHO_T}no, using $LN_S" >&6; }
4660 fi
4661
4662 ac_ext=c
4663 ac_cpp='$CPP $CPPFLAGS'
4664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4667 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4668 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4669 # On Suns, sometimes $CPP names a directory.
4670 if test -n "$CPP" && test -d "$CPP"; then
4671 CPP=
4672 fi
4673 if test -z "$CPP"; then
4674 if test "${ac_cv_prog_CPP+set}" = set; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4676 else
4677 # Double quotes because CPP needs to be expanded
4678 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4679 do
4680 ac_preproc_ok=false
4681 for ac_c_preproc_warn_flag in '' yes
4682 do
4683 # Use a header file that comes with gcc, so configuring glibc
4684 # with a fresh cross-compiler works.
4685 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4686 # <limits.h> exists even on freestanding compilers.
4687 # On the NeXT, cc -E runs the code through the compiler's parser,
4688 # not just through cpp. "Syntax error" is here to catch this case.
4689 cat >conftest.$ac_ext <<_ACEOF
4690 /* confdefs.h. */
4691 _ACEOF
4692 cat confdefs.h >>conftest.$ac_ext
4693 cat >>conftest.$ac_ext <<_ACEOF
4694 /* end confdefs.h. */
4695 #ifdef __STDC__
4696 # include <limits.h>
4697 #else
4698 # include <assert.h>
4699 #endif
4700 Syntax error
4701 _ACEOF
4702 if { (ac_try="$ac_cpp conftest.$ac_ext"
4703 case "(($ac_try" in
4704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4705 *) ac_try_echo=$ac_try;;
4706 esac
4707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4709 ac_status=$?
4710 grep -v '^ *+' conftest.er1 >conftest.err
4711 rm -f conftest.er1
4712 cat conftest.err >&5
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); } >/dev/null && {
4715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4716 test ! -s conftest.err
4717 }; then
4718 :
4719 else
4720 echo "$as_me: failed program was:" >&5
4721 sed 's/^/| /' conftest.$ac_ext >&5
4722
4723 # Broken: fails on valid input.
4724 continue
4725 fi
4726
4727 rm -f conftest.err conftest.$ac_ext
4728
4729 # OK, works on sane cases. Now check whether nonexistent headers
4730 # can be detected and how.
4731 cat >conftest.$ac_ext <<_ACEOF
4732 /* confdefs.h. */
4733 _ACEOF
4734 cat confdefs.h >>conftest.$ac_ext
4735 cat >>conftest.$ac_ext <<_ACEOF
4736 /* end confdefs.h. */
4737 #include <ac_nonexistent.h>
4738 _ACEOF
4739 if { (ac_try="$ac_cpp conftest.$ac_ext"
4740 case "(($ac_try" in
4741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4742 *) ac_try_echo=$ac_try;;
4743 esac
4744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4745 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4746 ac_status=$?
4747 grep -v '^ *+' conftest.er1 >conftest.err
4748 rm -f conftest.er1
4749 cat conftest.err >&5
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); } >/dev/null && {
4752 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4753 test ! -s conftest.err
4754 }; then
4755 # Broken: success on invalid input.
4756 continue
4757 else
4758 echo "$as_me: failed program was:" >&5
4759 sed 's/^/| /' conftest.$ac_ext >&5
4760
4761 # Passes both tests.
4762 ac_preproc_ok=:
4763 break
4764 fi
4765
4766 rm -f conftest.err conftest.$ac_ext
4767
4768 done
4769 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4770 rm -f conftest.err conftest.$ac_ext
4771 if $ac_preproc_ok; then
4772 break
4773 fi
4774
4775 done
4776 ac_cv_prog_CPP=$CPP
4777
4778 fi
4779 CPP=$ac_cv_prog_CPP
4780 else
4781 ac_cv_prog_CPP=$CPP
4782 fi
4783 { echo "$as_me:$LINENO: result: $CPP" >&5
4784 echo "${ECHO_T}$CPP" >&6; }
4785 ac_preproc_ok=false
4786 for ac_c_preproc_warn_flag in '' yes
4787 do
4788 # Use a header file that comes with gcc, so configuring glibc
4789 # with a fresh cross-compiler works.
4790 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4791 # <limits.h> exists even on freestanding compilers.
4792 # On the NeXT, cc -E runs the code through the compiler's parser,
4793 # not just through cpp. "Syntax error" is here to catch this case.
4794 cat >conftest.$ac_ext <<_ACEOF
4795 /* confdefs.h. */
4796 _ACEOF
4797 cat confdefs.h >>conftest.$ac_ext
4798 cat >>conftest.$ac_ext <<_ACEOF
4799 /* end confdefs.h. */
4800 #ifdef __STDC__
4801 # include <limits.h>
4802 #else
4803 # include <assert.h>
4804 #endif
4805 Syntax error
4806 _ACEOF
4807 if { (ac_try="$ac_cpp conftest.$ac_ext"
4808 case "(($ac_try" in
4809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4810 *) ac_try_echo=$ac_try;;
4811 esac
4812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4814 ac_status=$?
4815 grep -v '^ *+' conftest.er1 >conftest.err
4816 rm -f conftest.er1
4817 cat conftest.err >&5
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); } >/dev/null && {
4820 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4821 test ! -s conftest.err
4822 }; then
4823 :
4824 else
4825 echo "$as_me: failed program was:" >&5
4826 sed 's/^/| /' conftest.$ac_ext >&5
4827
4828 # Broken: fails on valid input.
4829 continue
4830 fi
4831
4832 rm -f conftest.err conftest.$ac_ext
4833
4834 # OK, works on sane cases. Now check whether nonexistent headers
4835 # can be detected and how.
4836 cat >conftest.$ac_ext <<_ACEOF
4837 /* confdefs.h. */
4838 _ACEOF
4839 cat confdefs.h >>conftest.$ac_ext
4840 cat >>conftest.$ac_ext <<_ACEOF
4841 /* end confdefs.h. */
4842 #include <ac_nonexistent.h>
4843 _ACEOF
4844 if { (ac_try="$ac_cpp conftest.$ac_ext"
4845 case "(($ac_try" in
4846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4847 *) ac_try_echo=$ac_try;;
4848 esac
4849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4851 ac_status=$?
4852 grep -v '^ *+' conftest.er1 >conftest.err
4853 rm -f conftest.er1
4854 cat conftest.err >&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); } >/dev/null && {
4857 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4858 test ! -s conftest.err
4859 }; then
4860 # Broken: success on invalid input.
4861 continue
4862 else
4863 echo "$as_me: failed program was:" >&5
4864 sed 's/^/| /' conftest.$ac_ext >&5
4865
4866 # Passes both tests.
4867 ac_preproc_ok=:
4868 break
4869 fi
4870
4871 rm -f conftest.err conftest.$ac_ext
4872
4873 done
4874 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4875 rm -f conftest.err conftest.$ac_ext
4876 if $ac_preproc_ok; then
4877 :
4878 else
4879 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4880 See \`config.log' for more details." >&5
4881 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4882 See \`config.log' for more details." >&2;}
4883 { (exit 1); exit 1; }; }
4884 fi
4885
4886 ac_ext=c
4887 ac_cpp='$CPP $CPPFLAGS'
4888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4891
4892 # Find a good install program. We prefer a C program (faster),
4893 # so one script is as good as another. But avoid the broken or
4894 # incompatible versions:
4895 # SysV /etc/install, /usr/sbin/install
4896 # SunOS /usr/etc/install
4897 # IRIX /sbin/install
4898 # AIX /bin/install
4899 # AmigaOS /C/install, which installs bootblocks on floppy discs
4900 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4901 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4902 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4903 # OS/2's system install, which has a completely different semantic
4904 # ./install, which can be erroneously created by make from ./install.sh.
4905 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4906 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4907 if test -z "$INSTALL"; then
4908 if test "${ac_cv_path_install+set}" = set; then
4909 echo $ECHO_N "(cached) $ECHO_C" >&6
4910 else
4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912 for as_dir in $PATH
4913 do
4914 IFS=$as_save_IFS
4915 test -z "$as_dir" && as_dir=.
4916 # Account for people who put trailing slashes in PATH elements.
4917 case $as_dir/ in
4918 ./ | .// | /cC/* | \
4919 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4920 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4921 /usr/ucb/* ) ;;
4922 *)
4923 # OSF1 and SCO ODT 3.0 have their own names for install.
4924 # Don't use installbsd from OSF since it installs stuff as root
4925 # by default.
4926 for ac_prog in ginstall scoinst install; do
4927 for ac_exec_ext in '' $ac_executable_extensions; do
4928 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4929 if test $ac_prog = install &&
4930 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4931 # AIX install. It has an incompatible calling convention.
4932 :
4933 elif test $ac_prog = install &&
4934 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4935 # program-specific install script used by HP pwplus--don't use.
4936 :
4937 else
4938 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4939 break 3
4940 fi
4941 fi
4942 done
4943 done
4944 ;;
4945 esac
4946 done
4947 IFS=$as_save_IFS
4948
4949
4950 fi
4951 if test "${ac_cv_path_install+set}" = set; then
4952 INSTALL=$ac_cv_path_install
4953 else
4954 # As a last resort, use the slow shell script. Don't cache a
4955 # value for INSTALL within a source directory, because that will
4956 # break other packages using the cache if that directory is
4957 # removed, or if the value is a relative name.
4958 INSTALL=$ac_install_sh
4959 fi
4960 fi
4961 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4962 echo "${ECHO_T}$INSTALL" >&6; }
4963
4964 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4965 # It thinks the first close brace ends the variable substitution.
4966 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4967
4968 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4969
4970 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4971
4972 if test "x$RANLIB" = x; then
4973 if test -n "$ac_tool_prefix"; then
4974 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4975 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4978 if test "${ac_cv_prog_RANLIB+set}" = set; then
4979 echo $ECHO_N "(cached) $ECHO_C" >&6
4980 else
4981 if test -n "$RANLIB"; then
4982 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4983 else
4984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4985 for as_dir in $PATH
4986 do
4987 IFS=$as_save_IFS
4988 test -z "$as_dir" && as_dir=.
4989 for ac_exec_ext in '' $ac_executable_extensions; do
4990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4991 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4993 break 2
4994 fi
4995 done
4996 done
4997 IFS=$as_save_IFS
4998
4999 fi
5000 fi
5001 RANLIB=$ac_cv_prog_RANLIB
5002 if test -n "$RANLIB"; then
5003 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5004 echo "${ECHO_T}$RANLIB" >&6; }
5005 else
5006 { echo "$as_me:$LINENO: result: no" >&5
5007 echo "${ECHO_T}no" >&6; }
5008 fi
5009
5010
5011 fi
5012 if test -z "$ac_cv_prog_RANLIB"; then
5013 ac_ct_RANLIB=$RANLIB
5014 # Extract the first word of "ranlib", so it can be a program name with args.
5015 set dummy ranlib; ac_word=$2
5016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5018 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5019 echo $ECHO_N "(cached) $ECHO_C" >&6
5020 else
5021 if test -n "$ac_ct_RANLIB"; then
5022 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5023 else
5024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025 for as_dir in $PATH
5026 do
5027 IFS=$as_save_IFS
5028 test -z "$as_dir" && as_dir=.
5029 for ac_exec_ext in '' $ac_executable_extensions; do
5030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5031 ac_cv_prog_ac_ct_RANLIB="ranlib"
5032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5033 break 2
5034 fi
5035 done
5036 done
5037 IFS=$as_save_IFS
5038
5039 fi
5040 fi
5041 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5042 if test -n "$ac_ct_RANLIB"; then
5043 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5044 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5045 else
5046 { echo "$as_me:$LINENO: result: no" >&5
5047 echo "${ECHO_T}no" >&6; }
5048 fi
5049
5050 if test "x$ac_ct_RANLIB" = x; then
5051 RANLIB=":"
5052 else
5053 case $cross_compiling:$ac_tool_warned in
5054 yes:)
5055 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5056 whose name does not start with the host triplet. If you think this
5057 configuration is useful to you, please write to autoconf@gnu.org." >&5
5058 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5059 whose name does not start with the host triplet. If you think this
5060 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5061 ac_tool_warned=yes ;;
5062 esac
5063 RANLIB=$ac_ct_RANLIB
5064 fi
5065 else
5066 RANLIB="$ac_cv_prog_RANLIB"
5067 fi
5068
5069 fi
5070 # Extract the first word of "install-info", so it can be a program name with args.
5071 set dummy install-info; ac_word=$2
5072 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5074 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5075 echo $ECHO_N "(cached) $ECHO_C" >&6
5076 else
5077 case $INSTALL_INFO in
5078 [\\/]* | ?:[\\/]*)
5079 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5080 ;;
5081 *)
5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083 for as_dir in $PATH
5084 do
5085 IFS=$as_save_IFS
5086 test -z "$as_dir" && as_dir=.
5087 for ac_exec_ext in '' $ac_executable_extensions; do
5088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5089 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5091 break 2
5092 fi
5093 done
5094 done
5095 IFS=$as_save_IFS
5096
5097 ;;
5098 esac
5099 fi
5100 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5101 if test -n "$INSTALL_INFO"; then
5102 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5103 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5104 else
5105 { echo "$as_me:$LINENO: result: no" >&5
5106 echo "${ECHO_T}no" >&6; }
5107 fi
5108
5109
5110 # Extract the first word of "install-info", so it can be a program name with args.
5111 set dummy install-info; ac_word=$2
5112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5114 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5115 echo $ECHO_N "(cached) $ECHO_C" >&6
5116 else
5117 case $INSTALL_INFO in
5118 [\\/]* | ?:[\\/]*)
5119 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5120 ;;
5121 *)
5122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123 for as_dir in /usr/sbin
5124 do
5125 IFS=$as_save_IFS
5126 test -z "$as_dir" && as_dir=.
5127 for ac_exec_ext in '' $ac_executable_extensions; do
5128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5129 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5131 break 2
5132 fi
5133 done
5134 done
5135 IFS=$as_save_IFS
5136
5137 ;;
5138 esac
5139 fi
5140 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5141 if test -n "$INSTALL_INFO"; then
5142 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5143 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5144 else
5145 { echo "$as_me:$LINENO: result: no" >&5
5146 echo "${ECHO_T}no" >&6; }
5147 fi
5148
5149
5150 # Extract the first word of "install-info", so it can be a program name with args.
5151 set dummy install-info; ac_word=$2
5152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5154 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5155 echo $ECHO_N "(cached) $ECHO_C" >&6
5156 else
5157 case $INSTALL_INFO in
5158 [\\/]* | ?:[\\/]*)
5159 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5160 ;;
5161 *)
5162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163 for as_dir in /sbin
5164 do
5165 IFS=$as_save_IFS
5166 test -z "$as_dir" && as_dir=.
5167 for ac_exec_ext in '' $ac_executable_extensions; do
5168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5169 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5171 break 2
5172 fi
5173 done
5174 done
5175 IFS=$as_save_IFS
5176
5177 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5178 ;;
5179 esac
5180 fi
5181 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5182 if test -n "$INSTALL_INFO"; then
5183 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5184 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5185 else
5186 { echo "$as_me:$LINENO: result: no" >&5
5187 echo "${ECHO_T}no" >&6; }
5188 fi
5189
5190
5191 # Extract the first word of "gzip", so it can be a program name with args.
5192 set dummy gzip; ac_word=$2
5193 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5195 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5196 echo $ECHO_N "(cached) $ECHO_C" >&6
5197 else
5198 case $GZIP_PROG in
5199 [\\/]* | ?:[\\/]*)
5200 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5201 ;;
5202 *)
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204 for as_dir in $PATH
5205 do
5206 IFS=$as_save_IFS
5207 test -z "$as_dir" && as_dir=.
5208 for ac_exec_ext in '' $ac_executable_extensions; do
5209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5210 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5212 break 2
5213 fi
5214 done
5215 done
5216 IFS=$as_save_IFS
5217
5218 ;;
5219 esac
5220 fi
5221 GZIP_PROG=$ac_cv_path_GZIP_PROG
5222 if test -n "$GZIP_PROG"; then
5223 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5224 echo "${ECHO_T}$GZIP_PROG" >&6; }
5225 else
5226 { echo "$as_me:$LINENO: result: no" >&5
5227 echo "${ECHO_T}no" >&6; }
5228 fi
5229
5230
5231
5232
5233 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5234 then
5235 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5236 fi
5237
5238 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5239 then
5240 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5241 fi
5242
5243
5244 late_LDFLAGS=$LDFLAGS
5245 if test "$GCC" = yes; then
5246 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5247 else
5248 LDFLAGS="$LDFLAGS -znocombreloc"
5249 fi
5250
5251 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5252 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5253 cat >conftest.$ac_ext <<_ACEOF
5254 main(){return 0;}
5255 _ACEOF
5256 rm -f conftest.$ac_objext conftest$ac_exeext
5257 if { (ac_try="$ac_link"
5258 case "(($ac_try" in
5259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5260 *) ac_try_echo=$ac_try;;
5261 esac
5262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5263 (eval "$ac_link") 2>conftest.er1
5264 ac_status=$?
5265 grep -v '^ *+' conftest.er1 >conftest.err
5266 rm -f conftest.er1
5267 cat conftest.err >&5
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); } && {
5270 test -z "$ac_c_werror_flag" ||
5271 test ! -s conftest.err
5272 } && test -s conftest$ac_exeext &&
5273 $as_test_x conftest$ac_exeext; then
5274 { echo "$as_me:$LINENO: result: yes" >&5
5275 echo "${ECHO_T}yes" >&6; }
5276 else
5277 echo "$as_me: failed program was:" >&5
5278 sed 's/^/| /' conftest.$ac_ext >&5
5279
5280 LDFLAGS=$late_LDFLAGS
5281 { echo "$as_me:$LINENO: result: no" >&5
5282 echo "${ECHO_T}no" >&6; }
5283 fi
5284
5285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5286 conftest$ac_exeext conftest.$ac_ext
5287
5288 #### Extract some information from the operating system and machine files.
5289
5290 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5291 - which libraries the lib-src programs will want, and
5292 - whether the GNU malloc routines are usable..." >&5
5293 echo "$as_me: checking the machine- and system-dependent files to find out
5294 - which libraries the lib-src programs will want, and
5295 - whether the GNU malloc routines are usable..." >&6;}
5296
5297 ### First figure out CFLAGS (which we use for running the compiler here)
5298 ### and REAL_CFLAGS (which we use for real compilation).
5299 ### The two are the same except on a few systems, where they are made
5300 ### different to work around various lossages. For example,
5301 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5302 ### as implying static linking.
5303
5304 ### If the CFLAGS env var is specified, we use that value
5305 ### instead of the default.
5306
5307 ### It's not important that this name contain the PID; you can't run
5308 ### two configures in the same directory and have anything work
5309 ### anyway.
5310 tempcname="conftest.c"
5311
5312 echo '
5313 #include "'${srcdir}'/src/'${opsysfile}'"
5314 #include "'${srcdir}'/src/'${machfile}'"
5315 #ifndef LIBS_MACHINE
5316 #define LIBS_MACHINE
5317 #endif
5318 #ifndef LIBS_SYSTEM
5319 #define LIBS_SYSTEM
5320 #endif
5321 #ifndef C_SWITCH_SYSTEM
5322 #define C_SWITCH_SYSTEM
5323 #endif
5324 #ifndef C_SWITCH_MACHINE
5325 #define C_SWITCH_MACHINE
5326 #endif
5327 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5328 configure___ c_switch_system=C_SWITCH_SYSTEM
5329 configure___ c_switch_machine=C_SWITCH_MACHINE
5330
5331 #ifndef LIB_X11_LIB
5332 #define LIB_X11_LIB -lX11
5333 #endif
5334
5335 #ifndef LIBX11_MACHINE
5336 #define LIBX11_MACHINE
5337 #endif
5338
5339 #ifndef LIBX11_SYSTEM
5340 #define LIBX11_SYSTEM
5341 #endif
5342 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5343
5344 #ifdef UNEXEC
5345 configure___ unexec=UNEXEC
5346 #else
5347 configure___ unexec=unexec.o
5348 #endif
5349
5350 #ifdef SYSTEM_MALLOC
5351 configure___ system_malloc=yes
5352 #else
5353 configure___ system_malloc=no
5354 #endif
5355
5356 #ifdef USE_MMAP_FOR_BUFFERS
5357 configure___ use_mmap_for_buffers=yes
5358 #else
5359 configure___ use_mmap_for_buffers=no
5360 #endif
5361
5362 #ifndef C_DEBUG_SWITCH
5363 #define C_DEBUG_SWITCH -g
5364 #endif
5365
5366 #ifndef C_OPTIMIZE_SWITCH
5367 #ifdef __GNUC__
5368 #define C_OPTIMIZE_SWITCH -O2
5369 #else
5370 #define C_OPTIMIZE_SWITCH -O
5371 #endif
5372 #endif
5373
5374 #ifndef C_WARNINGS_SWITCH
5375 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5376 #endif
5377
5378 #ifndef LD_SWITCH_MACHINE
5379 #define LD_SWITCH_MACHINE
5380 #endif
5381
5382 #ifndef LD_SWITCH_SYSTEM
5383 #define LD_SWITCH_SYSTEM
5384 #endif
5385
5386 #ifndef LD_SWITCH_X_SITE_AUX
5387 #define LD_SWITCH_X_SITE_AUX
5388 #endif
5389
5390 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5391 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5392
5393 #ifdef THIS_IS_CONFIGURE
5394
5395 /* Get the CFLAGS for tests in configure. */
5396 #ifdef __GNUC__
5397 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5398 #else
5399 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5400 #endif
5401
5402 #else /* not THIS_IS_CONFIGURE */
5403
5404 /* Get the CFLAGS for real compilation. */
5405 #ifdef __GNUC__
5406 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5407 #else
5408 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5409 #endif
5410
5411 #endif /* not THIS_IS_CONFIGURE */
5412 ' > ${tempcname}
5413
5414 # The value of CPP is a quoted variable reference, so we need to do this
5415 # to get its actual value...
5416 CPP=`eval "echo $CPP"`
5417 eval `${CPP} -Isrc ${tempcname} \
5418 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5419 if test "x$SPECIFIED_CFLAGS" = x; then
5420 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5421 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5422 else
5423 REAL_CFLAGS="$CFLAGS"
5424 fi
5425 rm ${tempcname}
5426
5427 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5428
5429 ### Make sure subsequent tests use flags consistent with the build flags.
5430
5431 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5432 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5433 else
5434 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5435 fi
5436
5437
5438
5439 # Check whether --enable-largefile was given.
5440 if test "${enable_largefile+set}" = set; then
5441 enableval=$enable_largefile;
5442 fi
5443
5444 if test "$enable_largefile" != no; then
5445
5446 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5447 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5448 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5449 echo $ECHO_N "(cached) $ECHO_C" >&6
5450 else
5451 ac_cv_sys_largefile_CC=no
5452 if test "$GCC" != yes; then
5453 ac_save_CC=$CC
5454 while :; do
5455 # IRIX 6.2 and later do not support large files by default,
5456 # so use the C compiler's -n32 option if that helps.
5457 cat >conftest.$ac_ext <<_ACEOF
5458 /* confdefs.h. */
5459 _ACEOF
5460 cat confdefs.h >>conftest.$ac_ext
5461 cat >>conftest.$ac_ext <<_ACEOF
5462 /* end confdefs.h. */
5463 #include <sys/types.h>
5464 /* Check that off_t can represent 2**63 - 1 correctly.
5465 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5466 since some C++ compilers masquerading as C compilers
5467 incorrectly reject 9223372036854775807. */
5468 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5469 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5470 && LARGE_OFF_T % 2147483647 == 1)
5471 ? 1 : -1];
5472 int
5473 main ()
5474 {
5475
5476 ;
5477 return 0;
5478 }
5479 _ACEOF
5480 rm -f conftest.$ac_objext
5481 if { (ac_try="$ac_compile"
5482 case "(($ac_try" in
5483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5484 *) ac_try_echo=$ac_try;;
5485 esac
5486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5487 (eval "$ac_compile") 2>conftest.er1
5488 ac_status=$?
5489 grep -v '^ *+' conftest.er1 >conftest.err
5490 rm -f conftest.er1
5491 cat conftest.err >&5
5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493 (exit $ac_status); } && {
5494 test -z "$ac_c_werror_flag" ||
5495 test ! -s conftest.err
5496 } && test -s conftest.$ac_objext; then
5497 break
5498 else
5499 echo "$as_me: failed program was:" >&5
5500 sed 's/^/| /' conftest.$ac_ext >&5
5501
5502
5503 fi
5504
5505 rm -f core conftest.err conftest.$ac_objext
5506 CC="$CC -n32"
5507 rm -f conftest.$ac_objext
5508 if { (ac_try="$ac_compile"
5509 case "(($ac_try" in
5510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5511 *) ac_try_echo=$ac_try;;
5512 esac
5513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5514 (eval "$ac_compile") 2>conftest.er1
5515 ac_status=$?
5516 grep -v '^ *+' conftest.er1 >conftest.err
5517 rm -f conftest.er1
5518 cat conftest.err >&5
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); } && {
5521 test -z "$ac_c_werror_flag" ||
5522 test ! -s conftest.err
5523 } && test -s conftest.$ac_objext; then
5524 ac_cv_sys_largefile_CC=' -n32'; break
5525 else
5526 echo "$as_me: failed program was:" >&5
5527 sed 's/^/| /' conftest.$ac_ext >&5
5528
5529
5530 fi
5531
5532 rm -f core conftest.err conftest.$ac_objext
5533 break
5534 done
5535 CC=$ac_save_CC
5536 rm -f conftest.$ac_ext
5537 fi
5538 fi
5539 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5540 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5541 if test "$ac_cv_sys_largefile_CC" != no; then
5542 CC=$CC$ac_cv_sys_largefile_CC
5543 fi
5544
5545 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5546 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5547 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5548 echo $ECHO_N "(cached) $ECHO_C" >&6
5549 else
5550 while :; do
5551 cat >conftest.$ac_ext <<_ACEOF
5552 /* confdefs.h. */
5553 _ACEOF
5554 cat confdefs.h >>conftest.$ac_ext
5555 cat >>conftest.$ac_ext <<_ACEOF
5556 /* end confdefs.h. */
5557 #include <sys/types.h>
5558 /* Check that off_t can represent 2**63 - 1 correctly.
5559 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5560 since some C++ compilers masquerading as C compilers
5561 incorrectly reject 9223372036854775807. */
5562 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5563 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5564 && LARGE_OFF_T % 2147483647 == 1)
5565 ? 1 : -1];
5566 int
5567 main ()
5568 {
5569
5570 ;
5571 return 0;
5572 }
5573 _ACEOF
5574 rm -f conftest.$ac_objext
5575 if { (ac_try="$ac_compile"
5576 case "(($ac_try" in
5577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5578 *) ac_try_echo=$ac_try;;
5579 esac
5580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5581 (eval "$ac_compile") 2>conftest.er1
5582 ac_status=$?
5583 grep -v '^ *+' conftest.er1 >conftest.err
5584 rm -f conftest.er1
5585 cat conftest.err >&5
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); } && {
5588 test -z "$ac_c_werror_flag" ||
5589 test ! -s conftest.err
5590 } && test -s conftest.$ac_objext; then
5591 ac_cv_sys_file_offset_bits=no; break
5592 else
5593 echo "$as_me: failed program was:" >&5
5594 sed 's/^/| /' conftest.$ac_ext >&5
5595
5596
5597 fi
5598
5599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5600 cat >conftest.$ac_ext <<_ACEOF
5601 /* confdefs.h. */
5602 _ACEOF
5603 cat confdefs.h >>conftest.$ac_ext
5604 cat >>conftest.$ac_ext <<_ACEOF
5605 /* end confdefs.h. */
5606 #define _FILE_OFFSET_BITS 64
5607 #include <sys/types.h>
5608 /* Check that off_t can represent 2**63 - 1 correctly.
5609 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5610 since some C++ compilers masquerading as C compilers
5611 incorrectly reject 9223372036854775807. */
5612 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5613 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5614 && LARGE_OFF_T % 2147483647 == 1)
5615 ? 1 : -1];
5616 int
5617 main ()
5618 {
5619
5620 ;
5621 return 0;
5622 }
5623 _ACEOF
5624 rm -f conftest.$ac_objext
5625 if { (ac_try="$ac_compile"
5626 case "(($ac_try" in
5627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5628 *) ac_try_echo=$ac_try;;
5629 esac
5630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5631 (eval "$ac_compile") 2>conftest.er1
5632 ac_status=$?
5633 grep -v '^ *+' conftest.er1 >conftest.err
5634 rm -f conftest.er1
5635 cat conftest.err >&5
5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); } && {
5638 test -z "$ac_c_werror_flag" ||
5639 test ! -s conftest.err
5640 } && test -s conftest.$ac_objext; then
5641 ac_cv_sys_file_offset_bits=64; break
5642 else
5643 echo "$as_me: failed program was:" >&5
5644 sed 's/^/| /' conftest.$ac_ext >&5
5645
5646
5647 fi
5648
5649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5650 ac_cv_sys_file_offset_bits=unknown
5651 break
5652 done
5653 fi
5654 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5655 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5656 case $ac_cv_sys_file_offset_bits in #(
5657 no | unknown) ;;
5658 *)
5659 cat >>confdefs.h <<_ACEOF
5660 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5661 _ACEOF
5662 ;;
5663 esac
5664 rm -f conftest*
5665 if test $ac_cv_sys_file_offset_bits = unknown; then
5666 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5667 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5668 if test "${ac_cv_sys_large_files+set}" = set; then
5669 echo $ECHO_N "(cached) $ECHO_C" >&6
5670 else
5671 while :; do
5672 cat >conftest.$ac_ext <<_ACEOF
5673 /* confdefs.h. */
5674 _ACEOF
5675 cat confdefs.h >>conftest.$ac_ext
5676 cat >>conftest.$ac_ext <<_ACEOF
5677 /* end confdefs.h. */
5678 #include <sys/types.h>
5679 /* Check that off_t can represent 2**63 - 1 correctly.
5680 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5681 since some C++ compilers masquerading as C compilers
5682 incorrectly reject 9223372036854775807. */
5683 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5684 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5685 && LARGE_OFF_T % 2147483647 == 1)
5686 ? 1 : -1];
5687 int
5688 main ()
5689 {
5690
5691 ;
5692 return 0;
5693 }
5694 _ACEOF
5695 rm -f conftest.$ac_objext
5696 if { (ac_try="$ac_compile"
5697 case "(($ac_try" in
5698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5699 *) ac_try_echo=$ac_try;;
5700 esac
5701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5702 (eval "$ac_compile") 2>conftest.er1
5703 ac_status=$?
5704 grep -v '^ *+' conftest.er1 >conftest.err
5705 rm -f conftest.er1
5706 cat conftest.err >&5
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); } && {
5709 test -z "$ac_c_werror_flag" ||
5710 test ! -s conftest.err
5711 } && test -s conftest.$ac_objext; then
5712 ac_cv_sys_large_files=no; break
5713 else
5714 echo "$as_me: failed program was:" >&5
5715 sed 's/^/| /' conftest.$ac_ext >&5
5716
5717
5718 fi
5719
5720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5721 cat >conftest.$ac_ext <<_ACEOF
5722 /* confdefs.h. */
5723 _ACEOF
5724 cat confdefs.h >>conftest.$ac_ext
5725 cat >>conftest.$ac_ext <<_ACEOF
5726 /* end confdefs.h. */
5727 #define _LARGE_FILES 1
5728 #include <sys/types.h>
5729 /* Check that off_t can represent 2**63 - 1 correctly.
5730 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5731 since some C++ compilers masquerading as C compilers
5732 incorrectly reject 9223372036854775807. */
5733 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5734 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5735 && LARGE_OFF_T % 2147483647 == 1)
5736 ? 1 : -1];
5737 int
5738 main ()
5739 {
5740
5741 ;
5742 return 0;
5743 }
5744 _ACEOF
5745 rm -f conftest.$ac_objext
5746 if { (ac_try="$ac_compile"
5747 case "(($ac_try" in
5748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5749 *) ac_try_echo=$ac_try;;
5750 esac
5751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5752 (eval "$ac_compile") 2>conftest.er1
5753 ac_status=$?
5754 grep -v '^ *+' conftest.er1 >conftest.err
5755 rm -f conftest.er1
5756 cat conftest.err >&5
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); } && {
5759 test -z "$ac_c_werror_flag" ||
5760 test ! -s conftest.err
5761 } && test -s conftest.$ac_objext; then
5762 ac_cv_sys_large_files=1; break
5763 else
5764 echo "$as_me: failed program was:" >&5
5765 sed 's/^/| /' conftest.$ac_ext >&5
5766
5767
5768 fi
5769
5770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5771 ac_cv_sys_large_files=unknown
5772 break
5773 done
5774 fi
5775 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5776 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5777 case $ac_cv_sys_large_files in #(
5778 no | unknown) ;;
5779 *)
5780 cat >>confdefs.h <<_ACEOF
5781 #define _LARGE_FILES $ac_cv_sys_large_files
5782 _ACEOF
5783 ;;
5784 esac
5785 rm -f conftest*
5786 fi
5787 fi
5788
5789
5790
5791 ### The standard library on x86-64 GNU/Linux distributions can
5792 ### be located in either /usr/lib64 or /usr/lib.
5793 case "${canonical}" in
5794 x86_64-*-linux-gnu* )
5795 if test -d /usr/lib64; then
5796
5797 cat >>confdefs.h <<\_ACEOF
5798 #define HAVE_X86_64_LIB64_DIR 1
5799 _ACEOF
5800
5801 fi
5802 esac
5803
5804
5805
5806
5807 if test "${with_sound}" != "no"; then
5808 # Sound support for GNU/Linux and the free BSDs.
5809 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5810 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5811 if test "${ac_cv_header_stdc+set}" = set; then
5812 echo $ECHO_N "(cached) $ECHO_C" >&6
5813 else
5814 cat >conftest.$ac_ext <<_ACEOF
5815 /* confdefs.h. */
5816 _ACEOF
5817 cat confdefs.h >>conftest.$ac_ext
5818 cat >>conftest.$ac_ext <<_ACEOF
5819 /* end confdefs.h. */
5820 #include <stdlib.h>
5821 #include <stdarg.h>
5822 #include <string.h>
5823 #include <float.h>
5824
5825 int
5826 main ()
5827 {
5828
5829 ;
5830 return 0;
5831 }
5832 _ACEOF
5833 rm -f conftest.$ac_objext
5834 if { (ac_try="$ac_compile"
5835 case "(($ac_try" in
5836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5837 *) ac_try_echo=$ac_try;;
5838 esac
5839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5840 (eval "$ac_compile") 2>conftest.er1
5841 ac_status=$?
5842 grep -v '^ *+' conftest.er1 >conftest.err
5843 rm -f conftest.er1
5844 cat conftest.err >&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); } && {
5847 test -z "$ac_c_werror_flag" ||
5848 test ! -s conftest.err
5849 } && test -s conftest.$ac_objext; then
5850 ac_cv_header_stdc=yes
5851 else
5852 echo "$as_me: failed program was:" >&5
5853 sed 's/^/| /' conftest.$ac_ext >&5
5854
5855 ac_cv_header_stdc=no
5856 fi
5857
5858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5859
5860 if test $ac_cv_header_stdc = yes; then
5861 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5862 cat >conftest.$ac_ext <<_ACEOF
5863 /* confdefs.h. */
5864 _ACEOF
5865 cat confdefs.h >>conftest.$ac_ext
5866 cat >>conftest.$ac_ext <<_ACEOF
5867 /* end confdefs.h. */
5868 #include <string.h>
5869
5870 _ACEOF
5871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5872 $EGREP "memchr" >/dev/null 2>&1; then
5873 :
5874 else
5875 ac_cv_header_stdc=no
5876 fi
5877 rm -f conftest*
5878
5879 fi
5880
5881 if test $ac_cv_header_stdc = yes; then
5882 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5883 cat >conftest.$ac_ext <<_ACEOF
5884 /* confdefs.h. */
5885 _ACEOF
5886 cat confdefs.h >>conftest.$ac_ext
5887 cat >>conftest.$ac_ext <<_ACEOF
5888 /* end confdefs.h. */
5889 #include <stdlib.h>
5890
5891 _ACEOF
5892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5893 $EGREP "free" >/dev/null 2>&1; then
5894 :
5895 else
5896 ac_cv_header_stdc=no
5897 fi
5898 rm -f conftest*
5899
5900 fi
5901
5902 if test $ac_cv_header_stdc = yes; then
5903 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5904 if test "$cross_compiling" = yes; then
5905 :
5906 else
5907 cat >conftest.$ac_ext <<_ACEOF
5908 /* confdefs.h. */
5909 _ACEOF
5910 cat confdefs.h >>conftest.$ac_ext
5911 cat >>conftest.$ac_ext <<_ACEOF
5912 /* end confdefs.h. */
5913 #include <ctype.h>
5914 #include <stdlib.h>
5915 #if ((' ' & 0x0FF) == 0x020)
5916 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5917 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5918 #else
5919 # define ISLOWER(c) \
5920 (('a' <= (c) && (c) <= 'i') \
5921 || ('j' <= (c) && (c) <= 'r') \
5922 || ('s' <= (c) && (c) <= 'z'))
5923 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5924 #endif
5925
5926 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5927 int
5928 main ()
5929 {
5930 int i;
5931 for (i = 0; i < 256; i++)
5932 if (XOR (islower (i), ISLOWER (i))
5933 || toupper (i) != TOUPPER (i))
5934 return 2;
5935 return 0;
5936 }
5937 _ACEOF
5938 rm -f conftest$ac_exeext
5939 if { (ac_try="$ac_link"
5940 case "(($ac_try" in
5941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5942 *) ac_try_echo=$ac_try;;
5943 esac
5944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5945 (eval "$ac_link") 2>&5
5946 ac_status=$?
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5949 { (case "(($ac_try" in
5950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5951 *) ac_try_echo=$ac_try;;
5952 esac
5953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5954 (eval "$ac_try") 2>&5
5955 ac_status=$?
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); }; }; then
5958 :
5959 else
5960 echo "$as_me: program exited with status $ac_status" >&5
5961 echo "$as_me: failed program was:" >&5
5962 sed 's/^/| /' conftest.$ac_ext >&5
5963
5964 ( exit $ac_status )
5965 ac_cv_header_stdc=no
5966 fi
5967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5968 fi
5969
5970
5971 fi
5972 fi
5973 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5974 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5975 if test $ac_cv_header_stdc = yes; then
5976
5977 cat >>confdefs.h <<\_ACEOF
5978 #define STDC_HEADERS 1
5979 _ACEOF
5980
5981 fi
5982
5983 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5994 inttypes.h stdint.h unistd.h
5995 do
5996 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5997 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6000 echo $ECHO_N "(cached) $ECHO_C" >&6
6001 else
6002 cat >conftest.$ac_ext <<_ACEOF
6003 /* confdefs.h. */
6004 _ACEOF
6005 cat confdefs.h >>conftest.$ac_ext
6006 cat >>conftest.$ac_ext <<_ACEOF
6007 /* end confdefs.h. */
6008 $ac_includes_default
6009
6010 #include <$ac_header>
6011 _ACEOF
6012 rm -f conftest.$ac_objext
6013 if { (ac_try="$ac_compile"
6014 case "(($ac_try" in
6015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6016 *) ac_try_echo=$ac_try;;
6017 esac
6018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6019 (eval "$ac_compile") 2>conftest.er1
6020 ac_status=$?
6021 grep -v '^ *+' conftest.er1 >conftest.err
6022 rm -f conftest.er1
6023 cat conftest.err >&5
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); } && {
6026 test -z "$ac_c_werror_flag" ||
6027 test ! -s conftest.err
6028 } && test -s conftest.$ac_objext; then
6029 eval "$as_ac_Header=yes"
6030 else
6031 echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6033
6034 eval "$as_ac_Header=no"
6035 fi
6036
6037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6038 fi
6039 ac_res=`eval echo '${'$as_ac_Header'}'`
6040 { echo "$as_me:$LINENO: result: $ac_res" >&5
6041 echo "${ECHO_T}$ac_res" >&6; }
6042 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6043 cat >>confdefs.h <<_ACEOF
6044 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6045 _ACEOF
6046
6047 fi
6048
6049 done
6050
6051
6052
6053
6054
6055 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6056 do
6057 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6059 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6063 fi
6064 ac_res=`eval echo '${'$as_ac_Header'}'`
6065 { echo "$as_me:$LINENO: result: $ac_res" >&5
6066 echo "${ECHO_T}$ac_res" >&6; }
6067 else
6068 # Is the header compilable?
6069 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6070 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6071 cat >conftest.$ac_ext <<_ACEOF
6072 /* confdefs.h. */
6073 _ACEOF
6074 cat confdefs.h >>conftest.$ac_ext
6075 cat >>conftest.$ac_ext <<_ACEOF
6076 /* end confdefs.h. */
6077 $ac_includes_default
6078 #include <$ac_header>
6079 _ACEOF
6080 rm -f conftest.$ac_objext
6081 if { (ac_try="$ac_compile"
6082 case "(($ac_try" in
6083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6084 *) ac_try_echo=$ac_try;;
6085 esac
6086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6087 (eval "$ac_compile") 2>conftest.er1
6088 ac_status=$?
6089 grep -v '^ *+' conftest.er1 >conftest.err
6090 rm -f conftest.er1
6091 cat conftest.err >&5
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); } && {
6094 test -z "$ac_c_werror_flag" ||
6095 test ! -s conftest.err
6096 } && test -s conftest.$ac_objext; then
6097 ac_header_compiler=yes
6098 else
6099 echo "$as_me: failed program was:" >&5
6100 sed 's/^/| /' conftest.$ac_ext >&5
6101
6102 ac_header_compiler=no
6103 fi
6104
6105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6106 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6107 echo "${ECHO_T}$ac_header_compiler" >&6; }
6108
6109 # Is the header present?
6110 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6111 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6112 cat >conftest.$ac_ext <<_ACEOF
6113 /* confdefs.h. */
6114 _ACEOF
6115 cat confdefs.h >>conftest.$ac_ext
6116 cat >>conftest.$ac_ext <<_ACEOF
6117 /* end confdefs.h. */
6118 #include <$ac_header>
6119 _ACEOF
6120 if { (ac_try="$ac_cpp conftest.$ac_ext"
6121 case "(($ac_try" in
6122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6123 *) ac_try_echo=$ac_try;;
6124 esac
6125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6126 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6127 ac_status=$?
6128 grep -v '^ *+' conftest.er1 >conftest.err
6129 rm -f conftest.er1
6130 cat conftest.err >&5
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); } >/dev/null && {
6133 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6134 test ! -s conftest.err
6135 }; then
6136 ac_header_preproc=yes
6137 else
6138 echo "$as_me: failed program was:" >&5
6139 sed 's/^/| /' conftest.$ac_ext >&5
6140
6141 ac_header_preproc=no
6142 fi
6143
6144 rm -f conftest.err conftest.$ac_ext
6145 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6146 echo "${ECHO_T}$ac_header_preproc" >&6; }
6147
6148 # So? What about this header?
6149 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6150 yes:no: )
6151 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6152 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6154 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6155 ac_header_preproc=yes
6156 ;;
6157 no:yes:* )
6158 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6159 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6160 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6161 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6162 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6163 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6164 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6165 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6167 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6168 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6169 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6170
6171 ;;
6172 esac
6173 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6176 echo $ECHO_N "(cached) $ECHO_C" >&6
6177 else
6178 eval "$as_ac_Header=\$ac_header_preproc"
6179 fi
6180 ac_res=`eval echo '${'$as_ac_Header'}'`
6181 { echo "$as_me:$LINENO: result: $ac_res" >&5
6182 echo "${ECHO_T}$ac_res" >&6; }
6183
6184 fi
6185 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6186 cat >>confdefs.h <<_ACEOF
6187 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6188 _ACEOF
6189
6190 fi
6191
6192 done
6193
6194 # Emulation library used on NetBSD.
6195 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6196 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6197 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6199 else
6200 ac_check_lib_save_LIBS=$LIBS
6201 LIBS="-lossaudio $LIBS"
6202 cat >conftest.$ac_ext <<_ACEOF
6203 /* confdefs.h. */
6204 _ACEOF
6205 cat confdefs.h >>conftest.$ac_ext
6206 cat >>conftest.$ac_ext <<_ACEOF
6207 /* end confdefs.h. */
6208
6209 /* Override any GCC internal prototype to avoid an error.
6210 Use char because int might match the return type of a GCC
6211 builtin and then its argument prototype would still apply. */
6212 #ifdef __cplusplus
6213 extern "C"
6214 #endif
6215 char _oss_ioctl ();
6216 int
6217 main ()
6218 {
6219 return _oss_ioctl ();
6220 ;
6221 return 0;
6222 }
6223 _ACEOF
6224 rm -f conftest.$ac_objext conftest$ac_exeext
6225 if { (ac_try="$ac_link"
6226 case "(($ac_try" in
6227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6228 *) ac_try_echo=$ac_try;;
6229 esac
6230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6231 (eval "$ac_link") 2>conftest.er1
6232 ac_status=$?
6233 grep -v '^ *+' conftest.er1 >conftest.err
6234 rm -f conftest.er1
6235 cat conftest.err >&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); } && {
6238 test -z "$ac_c_werror_flag" ||
6239 test ! -s conftest.err
6240 } && test -s conftest$ac_exeext &&
6241 $as_test_x conftest$ac_exeext; then
6242 ac_cv_lib_ossaudio__oss_ioctl=yes
6243 else
6244 echo "$as_me: failed program was:" >&5
6245 sed 's/^/| /' conftest.$ac_ext >&5
6246
6247 ac_cv_lib_ossaudio__oss_ioctl=no
6248 fi
6249
6250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6251 conftest$ac_exeext conftest.$ac_ext
6252 LIBS=$ac_check_lib_save_LIBS
6253 fi
6254 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6255 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6256 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6257 LIBSOUND=-lossaudio
6258 else
6259 LIBSOUND=
6260 fi
6261
6262
6263
6264 ALSA_REQUIRED=1.0.0
6265 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6266 if test "X${with_pkg_config_prog}" != X; then
6267 PKG_CONFIG="${with_pkg_config_prog}"
6268 fi
6269
6270 succeeded=no
6271
6272 if test -z "$PKG_CONFIG"; then
6273 # Extract the first word of "pkg-config", so it can be a program name with args.
6274 set dummy pkg-config; ac_word=$2
6275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6277 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6278 echo $ECHO_N "(cached) $ECHO_C" >&6
6279 else
6280 case $PKG_CONFIG in
6281 [\\/]* | ?:[\\/]*)
6282 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6283 ;;
6284 *)
6285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286 for as_dir in $PATH
6287 do
6288 IFS=$as_save_IFS
6289 test -z "$as_dir" && as_dir=.
6290 for ac_exec_ext in '' $ac_executable_extensions; do
6291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6292 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6294 break 2
6295 fi
6296 done
6297 done
6298 IFS=$as_save_IFS
6299
6300 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6301 ;;
6302 esac
6303 fi
6304 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6305 if test -n "$PKG_CONFIG"; then
6306 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6307 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6308 else
6309 { echo "$as_me:$LINENO: result: no" >&5
6310 echo "${ECHO_T}no" >&6; }
6311 fi
6312
6313
6314 fi
6315
6316 if test "$PKG_CONFIG" = "no" ; then
6317 HAVE_ALSA=no
6318 else
6319 PKG_CONFIG_MIN_VERSION=0.9.0
6320 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6321 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6322 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6323
6324 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6325 { echo "$as_me:$LINENO: result: yes" >&5
6326 echo "${ECHO_T}yes" >&6; }
6327 succeeded=yes
6328
6329 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6330 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6331 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"`
6332 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6333 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6334
6335 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6336 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6337 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"`
6338 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6339 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6340 else
6341 { echo "$as_me:$LINENO: result: no" >&5
6342 echo "${ECHO_T}no" >&6; }
6343 ALSA_CFLAGS=""
6344 ALSA_LIBS=""
6345 ## If we have a custom action on failure, don't print errors, but
6346 ## do set a variable so people can do so.
6347 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6348
6349 fi
6350
6351
6352
6353 else
6354 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6355 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6356 fi
6357 fi
6358
6359 if test $succeeded = yes; then
6360 HAVE_ALSA=yes
6361 else
6362 HAVE_ALSA=no
6363 fi
6364
6365 if test $HAVE_ALSA = yes; then
6366 SAVE_CFLAGS="$CFLAGS"
6367 SAVE_LDFLAGS="$LDFLAGS"
6368 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6369 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6370 cat >conftest.$ac_ext <<_ACEOF
6371 /* confdefs.h. */
6372 _ACEOF
6373 cat confdefs.h >>conftest.$ac_ext
6374 cat >>conftest.$ac_ext <<_ACEOF
6375 /* end confdefs.h. */
6376 #include <asoundlib.h>
6377 int
6378 main ()
6379 {
6380 snd_lib_error_set_handler (0);
6381 ;
6382 return 0;
6383 }
6384 _ACEOF
6385 rm -f conftest.$ac_objext
6386 if { (ac_try="$ac_compile"
6387 case "(($ac_try" in
6388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6389 *) ac_try_echo=$ac_try;;
6390 esac
6391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6392 (eval "$ac_compile") 2>conftest.er1
6393 ac_status=$?
6394 grep -v '^ *+' conftest.er1 >conftest.err
6395 rm -f conftest.er1
6396 cat conftest.err >&5
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); } && {
6399 test -z "$ac_c_werror_flag" ||
6400 test ! -s conftest.err
6401 } && test -s conftest.$ac_objext; then
6402 emacs_alsa_normal=yes
6403 else
6404 echo "$as_me: failed program was:" >&5
6405 sed 's/^/| /' conftest.$ac_ext >&5
6406
6407 emacs_alsa_normal=no
6408 fi
6409
6410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6411 if test "$emacs_alsa_normal" != yes; then
6412 cat >conftest.$ac_ext <<_ACEOF
6413 /* confdefs.h. */
6414 _ACEOF
6415 cat confdefs.h >>conftest.$ac_ext
6416 cat >>conftest.$ac_ext <<_ACEOF
6417 /* end confdefs.h. */
6418 #include <alsa/asoundlib.h>
6419 int
6420 main ()
6421 {
6422 snd_lib_error_set_handler (0);
6423 ;
6424 return 0;
6425 }
6426 _ACEOF
6427 rm -f conftest.$ac_objext
6428 if { (ac_try="$ac_compile"
6429 case "(($ac_try" in
6430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6431 *) ac_try_echo=$ac_try;;
6432 esac
6433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6434 (eval "$ac_compile") 2>conftest.er1
6435 ac_status=$?
6436 grep -v '^ *+' conftest.er1 >conftest.err
6437 rm -f conftest.er1
6438 cat conftest.err >&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } && {
6441 test -z "$ac_c_werror_flag" ||
6442 test ! -s conftest.err
6443 } && test -s conftest.$ac_objext; then
6444 emacs_alsa_subdir=yes
6445 else
6446 echo "$as_me: failed program was:" >&5
6447 sed 's/^/| /' conftest.$ac_ext >&5
6448
6449 emacs_alsa_subdir=no
6450 fi
6451
6452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6453 if test "$emacs_alsa_subdir" != yes; then
6454 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6455 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6456 { (exit 1); exit 1; }; }
6457 fi
6458 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6459 fi
6460
6461 CFLAGS="$SAVE_CFLAGS"
6462 LDFLAGS="$SAVE_LDFLAGS"
6463 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6464 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6465
6466 cat >>confdefs.h <<\_ACEOF
6467 #define HAVE_ALSA 1
6468 _ACEOF
6469
6470
6471 fi
6472
6473 fi
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6501 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6502 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6503 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6504 sys/utsname.h pwd.h
6505 do
6506 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6508 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6511 echo $ECHO_N "(cached) $ECHO_C" >&6
6512 fi
6513 ac_res=`eval echo '${'$as_ac_Header'}'`
6514 { echo "$as_me:$LINENO: result: $ac_res" >&5
6515 echo "${ECHO_T}$ac_res" >&6; }
6516 else
6517 # Is the header compilable?
6518 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6519 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6520 cat >conftest.$ac_ext <<_ACEOF
6521 /* confdefs.h. */
6522 _ACEOF
6523 cat confdefs.h >>conftest.$ac_ext
6524 cat >>conftest.$ac_ext <<_ACEOF
6525 /* end confdefs.h. */
6526 $ac_includes_default
6527 #include <$ac_header>
6528 _ACEOF
6529 rm -f conftest.$ac_objext
6530 if { (ac_try="$ac_compile"
6531 case "(($ac_try" in
6532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6533 *) ac_try_echo=$ac_try;;
6534 esac
6535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6536 (eval "$ac_compile") 2>conftest.er1
6537 ac_status=$?
6538 grep -v '^ *+' conftest.er1 >conftest.err
6539 rm -f conftest.er1
6540 cat conftest.err >&5
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); } && {
6543 test -z "$ac_c_werror_flag" ||
6544 test ! -s conftest.err
6545 } && test -s conftest.$ac_objext; then
6546 ac_header_compiler=yes
6547 else
6548 echo "$as_me: failed program was:" >&5
6549 sed 's/^/| /' conftest.$ac_ext >&5
6550
6551 ac_header_compiler=no
6552 fi
6553
6554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6555 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6556 echo "${ECHO_T}$ac_header_compiler" >&6; }
6557
6558 # Is the header present?
6559 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6560 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6561 cat >conftest.$ac_ext <<_ACEOF
6562 /* confdefs.h. */
6563 _ACEOF
6564 cat confdefs.h >>conftest.$ac_ext
6565 cat >>conftest.$ac_ext <<_ACEOF
6566 /* end confdefs.h. */
6567 #include <$ac_header>
6568 _ACEOF
6569 if { (ac_try="$ac_cpp conftest.$ac_ext"
6570 case "(($ac_try" in
6571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6572 *) ac_try_echo=$ac_try;;
6573 esac
6574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6576 ac_status=$?
6577 grep -v '^ *+' conftest.er1 >conftest.err
6578 rm -f conftest.er1
6579 cat conftest.err >&5
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); } >/dev/null && {
6582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6583 test ! -s conftest.err
6584 }; then
6585 ac_header_preproc=yes
6586 else
6587 echo "$as_me: failed program was:" >&5
6588 sed 's/^/| /' conftest.$ac_ext >&5
6589
6590 ac_header_preproc=no
6591 fi
6592
6593 rm -f conftest.err conftest.$ac_ext
6594 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6595 echo "${ECHO_T}$ac_header_preproc" >&6; }
6596
6597 # So? What about this header?
6598 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6599 yes:no: )
6600 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6601 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6603 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6604 ac_header_preproc=yes
6605 ;;
6606 no:yes:* )
6607 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6608 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6609 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6610 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6611 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6612 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6613 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6614 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6616 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6617 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6618 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6619
6620 ;;
6621 esac
6622 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6625 echo $ECHO_N "(cached) $ECHO_C" >&6
6626 else
6627 eval "$as_ac_Header=\$ac_header_preproc"
6628 fi
6629 ac_res=`eval echo '${'$as_ac_Header'}'`
6630 { echo "$as_me:$LINENO: result: $ac_res" >&5
6631 echo "${ECHO_T}$ac_res" >&6; }
6632
6633 fi
6634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6635 cat >>confdefs.h <<_ACEOF
6636 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6637 _ACEOF
6638
6639 fi
6640
6641 done
6642
6643
6644 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6645 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6646 cat >conftest.$ac_ext <<_ACEOF
6647 /* confdefs.h. */
6648 _ACEOF
6649 cat confdefs.h >>conftest.$ac_ext
6650 cat >>conftest.$ac_ext <<_ACEOF
6651 /* end confdefs.h. */
6652 #include <sys/personality.h>
6653 int
6654 main ()
6655 {
6656 personality (PER_LINUX32)
6657 ;
6658 return 0;
6659 }
6660 _ACEOF
6661 rm -f conftest.$ac_objext
6662 if { (ac_try="$ac_compile"
6663 case "(($ac_try" in
6664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6665 *) ac_try_echo=$ac_try;;
6666 esac
6667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6668 (eval "$ac_compile") 2>conftest.er1
6669 ac_status=$?
6670 grep -v '^ *+' conftest.er1 >conftest.err
6671 rm -f conftest.er1
6672 cat conftest.err >&5
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); } && {
6675 test -z "$ac_c_werror_flag" ||
6676 test ! -s conftest.err
6677 } && test -s conftest.$ac_objext; then
6678 emacs_cv_personality_linux32=yes
6679 else
6680 echo "$as_me: failed program was:" >&5
6681 sed 's/^/| /' conftest.$ac_ext >&5
6682
6683 emacs_cv_personality_linux32=no
6684 fi
6685
6686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6687 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6688 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6689
6690 if test $emacs_cv_personality_linux32 = yes; then
6691
6692 cat >>confdefs.h <<\_ACEOF
6693 #define HAVE_PERSONALITY_LINUX32 1
6694 _ACEOF
6695
6696 fi
6697
6698
6699 for ac_header in term.h
6700 do
6701 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6702 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6705 echo $ECHO_N "(cached) $ECHO_C" >&6
6706 else
6707 cat >conftest.$ac_ext <<_ACEOF
6708 /* confdefs.h. */
6709 _ACEOF
6710 cat confdefs.h >>conftest.$ac_ext
6711 cat >>conftest.$ac_ext <<_ACEOF
6712 /* end confdefs.h. */
6713 #include <$ac_header>
6714 _ACEOF
6715 if { (ac_try="$ac_cpp conftest.$ac_ext"
6716 case "(($ac_try" in
6717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6718 *) ac_try_echo=$ac_try;;
6719 esac
6720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6721 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6722 ac_status=$?
6723 grep -v '^ *+' conftest.er1 >conftest.err
6724 rm -f conftest.er1
6725 cat conftest.err >&5
6726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727 (exit $ac_status); } >/dev/null && {
6728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6729 test ! -s conftest.err
6730 }; then
6731 eval "$as_ac_Header=yes"
6732 else
6733 echo "$as_me: failed program was:" >&5
6734 sed 's/^/| /' conftest.$ac_ext >&5
6735
6736 eval "$as_ac_Header=no"
6737 fi
6738
6739 rm -f conftest.err conftest.$ac_ext
6740 fi
6741 ac_res=`eval echo '${'$as_ac_Header'}'`
6742 { echo "$as_me:$LINENO: result: $ac_res" >&5
6743 echo "${ECHO_T}$ac_res" >&6; }
6744 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6745 cat >>confdefs.h <<_ACEOF
6746 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6747 _ACEOF
6748
6749 fi
6750
6751 done
6752
6753 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6754 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6755 if test "${ac_cv_header_stdc+set}" = set; then
6756 echo $ECHO_N "(cached) $ECHO_C" >&6
6757 else
6758 cat >conftest.$ac_ext <<_ACEOF
6759 /* confdefs.h. */
6760 _ACEOF
6761 cat confdefs.h >>conftest.$ac_ext
6762 cat >>conftest.$ac_ext <<_ACEOF
6763 /* end confdefs.h. */
6764 #include <stdlib.h>
6765 #include <stdarg.h>
6766 #include <string.h>
6767 #include <float.h>
6768
6769 int
6770 main ()
6771 {
6772
6773 ;
6774 return 0;
6775 }
6776 _ACEOF
6777 rm -f conftest.$ac_objext
6778 if { (ac_try="$ac_compile"
6779 case "(($ac_try" in
6780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6781 *) ac_try_echo=$ac_try;;
6782 esac
6783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6784 (eval "$ac_compile") 2>conftest.er1
6785 ac_status=$?
6786 grep -v '^ *+' conftest.er1 >conftest.err
6787 rm -f conftest.er1
6788 cat conftest.err >&5
6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); } && {
6791 test -z "$ac_c_werror_flag" ||
6792 test ! -s conftest.err
6793 } && test -s conftest.$ac_objext; then
6794 ac_cv_header_stdc=yes
6795 else
6796 echo "$as_me: failed program was:" >&5
6797 sed 's/^/| /' conftest.$ac_ext >&5
6798
6799 ac_cv_header_stdc=no
6800 fi
6801
6802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6803
6804 if test $ac_cv_header_stdc = yes; then
6805 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6806 cat >conftest.$ac_ext <<_ACEOF
6807 /* confdefs.h. */
6808 _ACEOF
6809 cat confdefs.h >>conftest.$ac_ext
6810 cat >>conftest.$ac_ext <<_ACEOF
6811 /* end confdefs.h. */
6812 #include <string.h>
6813
6814 _ACEOF
6815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6816 $EGREP "memchr" >/dev/null 2>&1; then
6817 :
6818 else
6819 ac_cv_header_stdc=no
6820 fi
6821 rm -f conftest*
6822
6823 fi
6824
6825 if test $ac_cv_header_stdc = yes; then
6826 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6827 cat >conftest.$ac_ext <<_ACEOF
6828 /* confdefs.h. */
6829 _ACEOF
6830 cat confdefs.h >>conftest.$ac_ext
6831 cat >>conftest.$ac_ext <<_ACEOF
6832 /* end confdefs.h. */
6833 #include <stdlib.h>
6834
6835 _ACEOF
6836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6837 $EGREP "free" >/dev/null 2>&1; then
6838 :
6839 else
6840 ac_cv_header_stdc=no
6841 fi
6842 rm -f conftest*
6843
6844 fi
6845
6846 if test $ac_cv_header_stdc = yes; then
6847 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6848 if test "$cross_compiling" = yes; then
6849 :
6850 else
6851 cat >conftest.$ac_ext <<_ACEOF
6852 /* confdefs.h. */
6853 _ACEOF
6854 cat confdefs.h >>conftest.$ac_ext
6855 cat >>conftest.$ac_ext <<_ACEOF
6856 /* end confdefs.h. */
6857 #include <ctype.h>
6858 #include <stdlib.h>
6859 #if ((' ' & 0x0FF) == 0x020)
6860 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6861 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6862 #else
6863 # define ISLOWER(c) \
6864 (('a' <= (c) && (c) <= 'i') \
6865 || ('j' <= (c) && (c) <= 'r') \
6866 || ('s' <= (c) && (c) <= 'z'))
6867 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6868 #endif
6869
6870 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6871 int
6872 main ()
6873 {
6874 int i;
6875 for (i = 0; i < 256; i++)
6876 if (XOR (islower (i), ISLOWER (i))
6877 || toupper (i) != TOUPPER (i))
6878 return 2;
6879 return 0;
6880 }
6881 _ACEOF
6882 rm -f conftest$ac_exeext
6883 if { (ac_try="$ac_link"
6884 case "(($ac_try" in
6885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6886 *) ac_try_echo=$ac_try;;
6887 esac
6888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6889 (eval "$ac_link") 2>&5
6890 ac_status=$?
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6893 { (case "(($ac_try" in
6894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6895 *) ac_try_echo=$ac_try;;
6896 esac
6897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6898 (eval "$ac_try") 2>&5
6899 ac_status=$?
6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); }; }; then
6902 :
6903 else
6904 echo "$as_me: program exited with status $ac_status" >&5
6905 echo "$as_me: failed program was:" >&5
6906 sed 's/^/| /' conftest.$ac_ext >&5
6907
6908 ( exit $ac_status )
6909 ac_cv_header_stdc=no
6910 fi
6911 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6912 fi
6913
6914
6915 fi
6916 fi
6917 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6918 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6919 if test $ac_cv_header_stdc = yes; then
6920
6921 cat >>confdefs.h <<\_ACEOF
6922 #define STDC_HEADERS 1
6923 _ACEOF
6924
6925 fi
6926
6927 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6928 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6929 if test "${ac_cv_header_time+set}" = set; then
6930 echo $ECHO_N "(cached) $ECHO_C" >&6
6931 else
6932 cat >conftest.$ac_ext <<_ACEOF
6933 /* confdefs.h. */
6934 _ACEOF
6935 cat confdefs.h >>conftest.$ac_ext
6936 cat >>conftest.$ac_ext <<_ACEOF
6937 /* end confdefs.h. */
6938 #include <sys/types.h>
6939 #include <sys/time.h>
6940 #include <time.h>
6941
6942 int
6943 main ()
6944 {
6945 if ((struct tm *) 0)
6946 return 0;
6947 ;
6948 return 0;
6949 }
6950 _ACEOF
6951 rm -f conftest.$ac_objext
6952 if { (ac_try="$ac_compile"
6953 case "(($ac_try" in
6954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6955 *) ac_try_echo=$ac_try;;
6956 esac
6957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6958 (eval "$ac_compile") 2>conftest.er1
6959 ac_status=$?
6960 grep -v '^ *+' conftest.er1 >conftest.err
6961 rm -f conftest.er1
6962 cat conftest.err >&5
6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); } && {
6965 test -z "$ac_c_werror_flag" ||
6966 test ! -s conftest.err
6967 } && test -s conftest.$ac_objext; then
6968 ac_cv_header_time=yes
6969 else
6970 echo "$as_me: failed program was:" >&5
6971 sed 's/^/| /' conftest.$ac_ext >&5
6972
6973 ac_cv_header_time=no
6974 fi
6975
6976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6977 fi
6978 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6979 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6980 if test $ac_cv_header_time = yes; then
6981
6982 cat >>confdefs.h <<\_ACEOF
6983 #define TIME_WITH_SYS_TIME 1
6984 _ACEOF
6985
6986 fi
6987
6988 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6989 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6990 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
6992 else
6993 cat >conftest.$ac_ext <<_ACEOF
6994 /* confdefs.h. */
6995 _ACEOF
6996 cat confdefs.h >>conftest.$ac_ext
6997 cat >>conftest.$ac_ext <<_ACEOF
6998 /* end confdefs.h. */
6999 $ac_includes_default
7000 int
7001 main ()
7002 {
7003 #ifndef sys_siglist
7004 (void) sys_siglist;
7005 #endif
7006
7007 ;
7008 return 0;
7009 }
7010 _ACEOF
7011 rm -f conftest.$ac_objext
7012 if { (ac_try="$ac_compile"
7013 case "(($ac_try" in
7014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7015 *) ac_try_echo=$ac_try;;
7016 esac
7017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7018 (eval "$ac_compile") 2>conftest.er1
7019 ac_status=$?
7020 grep -v '^ *+' conftest.er1 >conftest.err
7021 rm -f conftest.er1
7022 cat conftest.err >&5
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); } && {
7025 test -z "$ac_c_werror_flag" ||
7026 test ! -s conftest.err
7027 } && test -s conftest.$ac_objext; then
7028 ac_cv_have_decl_sys_siglist=yes
7029 else
7030 echo "$as_me: failed program was:" >&5
7031 sed 's/^/| /' conftest.$ac_ext >&5
7032
7033 ac_cv_have_decl_sys_siglist=no
7034 fi
7035
7036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7037 fi
7038 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7039 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7040 if test $ac_cv_have_decl_sys_siglist = yes; then
7041
7042 cat >>confdefs.h <<_ACEOF
7043 #define HAVE_DECL_SYS_SIGLIST 1
7044 _ACEOF
7045
7046
7047 else
7048 cat >>confdefs.h <<_ACEOF
7049 #define HAVE_DECL_SYS_SIGLIST 0
7050 _ACEOF
7051
7052
7053 fi
7054
7055
7056 if test $ac_cv_have_decl_sys_siglist != yes; then
7057 # For Tru64, at least:
7058 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7059 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7060 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7061 echo $ECHO_N "(cached) $ECHO_C" >&6
7062 else
7063 cat >conftest.$ac_ext <<_ACEOF
7064 /* confdefs.h. */
7065 _ACEOF
7066 cat confdefs.h >>conftest.$ac_ext
7067 cat >>conftest.$ac_ext <<_ACEOF
7068 /* end confdefs.h. */
7069 $ac_includes_default
7070 int
7071 main ()
7072 {
7073 #ifndef __sys_siglist
7074 (void) __sys_siglist;
7075 #endif
7076
7077 ;
7078 return 0;
7079 }
7080 _ACEOF
7081 rm -f conftest.$ac_objext
7082 if { (ac_try="$ac_compile"
7083 case "(($ac_try" in
7084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7085 *) ac_try_echo=$ac_try;;
7086 esac
7087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7088 (eval "$ac_compile") 2>conftest.er1
7089 ac_status=$?
7090 grep -v '^ *+' conftest.er1 >conftest.err
7091 rm -f conftest.er1
7092 cat conftest.err >&5
7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); } && {
7095 test -z "$ac_c_werror_flag" ||
7096 test ! -s conftest.err
7097 } && test -s conftest.$ac_objext; then
7098 ac_cv_have_decl___sys_siglist=yes
7099 else
7100 echo "$as_me: failed program was:" >&5
7101 sed 's/^/| /' conftest.$ac_ext >&5
7102
7103 ac_cv_have_decl___sys_siglist=no
7104 fi
7105
7106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7107 fi
7108 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7109 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7110 if test $ac_cv_have_decl___sys_siglist = yes; then
7111
7112 cat >>confdefs.h <<_ACEOF
7113 #define HAVE_DECL___SYS_SIGLIST 1
7114 _ACEOF
7115
7116
7117 else
7118 cat >>confdefs.h <<_ACEOF
7119 #define HAVE_DECL___SYS_SIGLIST 0
7120 _ACEOF
7121
7122
7123 fi
7124
7125
7126 if test $ac_cv_have_decl___sys_siglist = yes; then
7127
7128 cat >>confdefs.h <<\_ACEOF
7129 #define sys_siglist __sys_siglist
7130 _ACEOF
7131
7132 fi
7133 fi
7134 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7135 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7136 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7137 echo $ECHO_N "(cached) $ECHO_C" >&6
7138 else
7139 cat >conftest.$ac_ext <<_ACEOF
7140 /* confdefs.h. */
7141 _ACEOF
7142 cat confdefs.h >>conftest.$ac_ext
7143 cat >>conftest.$ac_ext <<_ACEOF
7144 /* end confdefs.h. */
7145 #include <sys/types.h>
7146 #include <sys/wait.h>
7147 #ifndef WEXITSTATUS
7148 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7149 #endif
7150 #ifndef WIFEXITED
7151 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7152 #endif
7153
7154 int
7155 main ()
7156 {
7157 int s;
7158 wait (&s);
7159 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7160 ;
7161 return 0;
7162 }
7163 _ACEOF
7164 rm -f conftest.$ac_objext
7165 if { (ac_try="$ac_compile"
7166 case "(($ac_try" in
7167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7168 *) ac_try_echo=$ac_try;;
7169 esac
7170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7171 (eval "$ac_compile") 2>conftest.er1
7172 ac_status=$?
7173 grep -v '^ *+' conftest.er1 >conftest.err
7174 rm -f conftest.er1
7175 cat conftest.err >&5
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); } && {
7178 test -z "$ac_c_werror_flag" ||
7179 test ! -s conftest.err
7180 } && test -s conftest.$ac_objext; then
7181 ac_cv_header_sys_wait_h=yes
7182 else
7183 echo "$as_me: failed program was:" >&5
7184 sed 's/^/| /' conftest.$ac_ext >&5
7185
7186 ac_cv_header_sys_wait_h=no
7187 fi
7188
7189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7190 fi
7191 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7192 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7193 if test $ac_cv_header_sys_wait_h = yes; then
7194
7195 cat >>confdefs.h <<\_ACEOF
7196 #define HAVE_SYS_WAIT_H 1
7197 _ACEOF
7198
7199 fi
7200
7201
7202 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7203 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7204 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7205 echo $ECHO_N "(cached) $ECHO_C" >&6
7206 else
7207 cat >conftest.$ac_ext <<_ACEOF
7208 /* confdefs.h. */
7209 _ACEOF
7210 cat confdefs.h >>conftest.$ac_ext
7211 cat >>conftest.$ac_ext <<_ACEOF
7212 /* end confdefs.h. */
7213 #ifdef TIME_WITH_SYS_TIME
7214 #include <sys/time.h>
7215 #include <time.h>
7216 #else
7217 #ifdef HAVE_SYS_TIME_H
7218 #include <sys/time.h>
7219 #else
7220 #include <time.h>
7221 #endif
7222 #endif
7223 #ifdef HAVE_UTIME_H
7224 #include <utime.h>
7225 #endif
7226 int
7227 main ()
7228 {
7229 static struct utimbuf x; x.actime = x.modtime;
7230 ;
7231 return 0;
7232 }
7233 _ACEOF
7234 rm -f conftest.$ac_objext
7235 if { (ac_try="$ac_compile"
7236 case "(($ac_try" in
7237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7238 *) ac_try_echo=$ac_try;;
7239 esac
7240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7241 (eval "$ac_compile") 2>conftest.er1
7242 ac_status=$?
7243 grep -v '^ *+' conftest.er1 >conftest.err
7244 rm -f conftest.er1
7245 cat conftest.err >&5
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); } && {
7248 test -z "$ac_c_werror_flag" ||
7249 test ! -s conftest.err
7250 } && test -s conftest.$ac_objext; then
7251 emacs_cv_struct_utimbuf=yes
7252 else
7253 echo "$as_me: failed program was:" >&5
7254 sed 's/^/| /' conftest.$ac_ext >&5
7255
7256 emacs_cv_struct_utimbuf=no
7257 fi
7258
7259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7260 fi
7261 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7262 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7263 if test $emacs_cv_struct_utimbuf = yes; then
7264
7265 cat >>confdefs.h <<\_ACEOF
7266 #define HAVE_STRUCT_UTIMBUF 1
7267 _ACEOF
7268
7269 fi
7270
7271 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7272 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7273 if test "${ac_cv_type_signal+set}" = set; then
7274 echo $ECHO_N "(cached) $ECHO_C" >&6
7275 else
7276 cat >conftest.$ac_ext <<_ACEOF
7277 /* confdefs.h. */
7278 _ACEOF
7279 cat confdefs.h >>conftest.$ac_ext
7280 cat >>conftest.$ac_ext <<_ACEOF
7281 /* end confdefs.h. */
7282 #include <sys/types.h>
7283 #include <signal.h>
7284
7285 int
7286 main ()
7287 {
7288 return *(signal (0, 0)) (0) == 1;
7289 ;
7290 return 0;
7291 }
7292 _ACEOF
7293 rm -f conftest.$ac_objext
7294 if { (ac_try="$ac_compile"
7295 case "(($ac_try" in
7296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7297 *) ac_try_echo=$ac_try;;
7298 esac
7299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7300 (eval "$ac_compile") 2>conftest.er1
7301 ac_status=$?
7302 grep -v '^ *+' conftest.er1 >conftest.err
7303 rm -f conftest.er1
7304 cat conftest.err >&5
7305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306 (exit $ac_status); } && {
7307 test -z "$ac_c_werror_flag" ||
7308 test ! -s conftest.err
7309 } && test -s conftest.$ac_objext; then
7310 ac_cv_type_signal=int
7311 else
7312 echo "$as_me: failed program was:" >&5
7313 sed 's/^/| /' conftest.$ac_ext >&5
7314
7315 ac_cv_type_signal=void
7316 fi
7317
7318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7319 fi
7320 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7321 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7322
7323 cat >>confdefs.h <<_ACEOF
7324 #define RETSIGTYPE $ac_cv_type_signal
7325 _ACEOF
7326
7327
7328
7329 { echo "$as_me:$LINENO: checking for speed_t" >&5
7330 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7331 if test "${emacs_cv_speed_t+set}" = set; then
7332 echo $ECHO_N "(cached) $ECHO_C" >&6
7333 else
7334 cat >conftest.$ac_ext <<_ACEOF
7335 /* confdefs.h. */
7336 _ACEOF
7337 cat confdefs.h >>conftest.$ac_ext
7338 cat >>conftest.$ac_ext <<_ACEOF
7339 /* end confdefs.h. */
7340 #include <termios.h>
7341 int
7342 main ()
7343 {
7344 speed_t x = 1;
7345 ;
7346 return 0;
7347 }
7348 _ACEOF
7349 rm -f conftest.$ac_objext
7350 if { (ac_try="$ac_compile"
7351 case "(($ac_try" in
7352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7353 *) ac_try_echo=$ac_try;;
7354 esac
7355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7356 (eval "$ac_compile") 2>conftest.er1
7357 ac_status=$?
7358 grep -v '^ *+' conftest.er1 >conftest.err
7359 rm -f conftest.er1
7360 cat conftest.err >&5
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); } && {
7363 test -z "$ac_c_werror_flag" ||
7364 test ! -s conftest.err
7365 } && test -s conftest.$ac_objext; then
7366 emacs_cv_speed_t=yes
7367 else
7368 echo "$as_me: failed program was:" >&5
7369 sed 's/^/| /' conftest.$ac_ext >&5
7370
7371 emacs_cv_speed_t=no
7372 fi
7373
7374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7375 fi
7376 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7377 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7378 if test $emacs_cv_speed_t = yes; then
7379
7380 cat >>confdefs.h <<\_ACEOF
7381 #define HAVE_SPEED_T 1
7382 _ACEOF
7383
7384 fi
7385
7386 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7387 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7388 if test "${emacs_cv_struct_timeval+set}" = set; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
7390 else
7391 cat >conftest.$ac_ext <<_ACEOF
7392 /* confdefs.h. */
7393 _ACEOF
7394 cat confdefs.h >>conftest.$ac_ext
7395 cat >>conftest.$ac_ext <<_ACEOF
7396 /* end confdefs.h. */
7397 #ifdef TIME_WITH_SYS_TIME
7398 #include <sys/time.h>
7399 #include <time.h>
7400 #else
7401 #ifdef HAVE_SYS_TIME_H
7402 #include <sys/time.h>
7403 #else
7404 #include <time.h>
7405 #endif
7406 #endif
7407 int
7408 main ()
7409 {
7410 static struct timeval x; x.tv_sec = x.tv_usec;
7411 ;
7412 return 0;
7413 }
7414 _ACEOF
7415 rm -f conftest.$ac_objext
7416 if { (ac_try="$ac_compile"
7417 case "(($ac_try" in
7418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7419 *) ac_try_echo=$ac_try;;
7420 esac
7421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7422 (eval "$ac_compile") 2>conftest.er1
7423 ac_status=$?
7424 grep -v '^ *+' conftest.er1 >conftest.err
7425 rm -f conftest.er1
7426 cat conftest.err >&5
7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); } && {
7429 test -z "$ac_c_werror_flag" ||
7430 test ! -s conftest.err
7431 } && test -s conftest.$ac_objext; then
7432 emacs_cv_struct_timeval=yes
7433 else
7434 echo "$as_me: failed program was:" >&5
7435 sed 's/^/| /' conftest.$ac_ext >&5
7436
7437 emacs_cv_struct_timeval=no
7438 fi
7439
7440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7441 fi
7442 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7443 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7444 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7445 if test $emacs_cv_struct_timeval = yes; then
7446
7447 cat >>confdefs.h <<\_ACEOF
7448 #define HAVE_TIMEVAL 1
7449 _ACEOF
7450
7451 fi
7452
7453 { echo "$as_me:$LINENO: checking for struct exception" >&5
7454 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7455 if test "${emacs_cv_struct_exception+set}" = set; then
7456 echo $ECHO_N "(cached) $ECHO_C" >&6
7457 else
7458 cat >conftest.$ac_ext <<_ACEOF
7459 /* confdefs.h. */
7460 _ACEOF
7461 cat confdefs.h >>conftest.$ac_ext
7462 cat >>conftest.$ac_ext <<_ACEOF
7463 /* end confdefs.h. */
7464 #include <math.h>
7465 int
7466 main ()
7467 {
7468 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7469 ;
7470 return 0;
7471 }
7472 _ACEOF
7473 rm -f conftest.$ac_objext
7474 if { (ac_try="$ac_compile"
7475 case "(($ac_try" in
7476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7477 *) ac_try_echo=$ac_try;;
7478 esac
7479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7480 (eval "$ac_compile") 2>conftest.er1
7481 ac_status=$?
7482 grep -v '^ *+' conftest.er1 >conftest.err
7483 rm -f conftest.er1
7484 cat conftest.err >&5
7485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486 (exit $ac_status); } && {
7487 test -z "$ac_c_werror_flag" ||
7488 test ! -s conftest.err
7489 } && test -s conftest.$ac_objext; then
7490 emacs_cv_struct_exception=yes
7491 else
7492 echo "$as_me: failed program was:" >&5
7493 sed 's/^/| /' conftest.$ac_ext >&5
7494
7495 emacs_cv_struct_exception=no
7496 fi
7497
7498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7499 fi
7500 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7501 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7502 HAVE_EXCEPTION=$emacs_cv_struct_exception
7503 if test $emacs_cv_struct_exception != yes; then
7504
7505 cat >>confdefs.h <<\_ACEOF
7506 #define NO_MATHERR 1
7507 _ACEOF
7508
7509 fi
7510
7511
7512 for ac_header in sys/socket.h
7513 do
7514 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7516 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7519 echo $ECHO_N "(cached) $ECHO_C" >&6
7520 fi
7521 ac_res=`eval echo '${'$as_ac_Header'}'`
7522 { echo "$as_me:$LINENO: result: $ac_res" >&5
7523 echo "${ECHO_T}$ac_res" >&6; }
7524 else
7525 # Is the header compilable?
7526 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7527 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7528 cat >conftest.$ac_ext <<_ACEOF
7529 /* confdefs.h. */
7530 _ACEOF
7531 cat confdefs.h >>conftest.$ac_ext
7532 cat >>conftest.$ac_ext <<_ACEOF
7533 /* end confdefs.h. */
7534 $ac_includes_default
7535 #include <$ac_header>
7536 _ACEOF
7537 rm -f conftest.$ac_objext
7538 if { (ac_try="$ac_compile"
7539 case "(($ac_try" in
7540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7541 *) ac_try_echo=$ac_try;;
7542 esac
7543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7544 (eval "$ac_compile") 2>conftest.er1
7545 ac_status=$?
7546 grep -v '^ *+' conftest.er1 >conftest.err
7547 rm -f conftest.er1
7548 cat conftest.err >&5
7549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550 (exit $ac_status); } && {
7551 test -z "$ac_c_werror_flag" ||
7552 test ! -s conftest.err
7553 } && test -s conftest.$ac_objext; then
7554 ac_header_compiler=yes
7555 else
7556 echo "$as_me: failed program was:" >&5
7557 sed 's/^/| /' conftest.$ac_ext >&5
7558
7559 ac_header_compiler=no
7560 fi
7561
7562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7563 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7564 echo "${ECHO_T}$ac_header_compiler" >&6; }
7565
7566 # Is the header present?
7567 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7568 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7569 cat >conftest.$ac_ext <<_ACEOF
7570 /* confdefs.h. */
7571 _ACEOF
7572 cat confdefs.h >>conftest.$ac_ext
7573 cat >>conftest.$ac_ext <<_ACEOF
7574 /* end confdefs.h. */
7575 #include <$ac_header>
7576 _ACEOF
7577 if { (ac_try="$ac_cpp conftest.$ac_ext"
7578 case "(($ac_try" in
7579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7580 *) ac_try_echo=$ac_try;;
7581 esac
7582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7584 ac_status=$?
7585 grep -v '^ *+' conftest.er1 >conftest.err
7586 rm -f conftest.er1
7587 cat conftest.err >&5
7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); } >/dev/null && {
7590 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7591 test ! -s conftest.err
7592 }; then
7593 ac_header_preproc=yes
7594 else
7595 echo "$as_me: failed program was:" >&5
7596 sed 's/^/| /' conftest.$ac_ext >&5
7597
7598 ac_header_preproc=no
7599 fi
7600
7601 rm -f conftest.err conftest.$ac_ext
7602 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7603 echo "${ECHO_T}$ac_header_preproc" >&6; }
7604
7605 # So? What about this header?
7606 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7607 yes:no: )
7608 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7609 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7611 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7612 ac_header_preproc=yes
7613 ;;
7614 no:yes:* )
7615 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7616 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7617 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7618 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7619 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7620 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7621 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7622 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7624 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7625 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7626 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7627
7628 ;;
7629 esac
7630 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7633 echo $ECHO_N "(cached) $ECHO_C" >&6
7634 else
7635 eval "$as_ac_Header=\$ac_header_preproc"
7636 fi
7637 ac_res=`eval echo '${'$as_ac_Header'}'`
7638 { echo "$as_me:$LINENO: result: $ac_res" >&5
7639 echo "${ECHO_T}$ac_res" >&6; }
7640
7641 fi
7642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7643 cat >>confdefs.h <<_ACEOF
7644 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7645 _ACEOF
7646
7647 fi
7648
7649 done
7650
7651
7652 for ac_header in net/if.h
7653 do
7654 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7655 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7658 echo $ECHO_N "(cached) $ECHO_C" >&6
7659 else
7660 cat >conftest.$ac_ext <<_ACEOF
7661 /* confdefs.h. */
7662 _ACEOF
7663 cat confdefs.h >>conftest.$ac_ext
7664 cat >>conftest.$ac_ext <<_ACEOF
7665 /* end confdefs.h. */
7666 $ac_includes_default
7667 #if HAVE_SYS_SOCKET_H
7668 #include <sys/socket.h>
7669 #endif
7670
7671 #include <$ac_header>
7672 _ACEOF
7673 rm -f conftest.$ac_objext
7674 if { (ac_try="$ac_compile"
7675 case "(($ac_try" in
7676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7677 *) ac_try_echo=$ac_try;;
7678 esac
7679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7680 (eval "$ac_compile") 2>conftest.er1
7681 ac_status=$?
7682 grep -v '^ *+' conftest.er1 >conftest.err
7683 rm -f conftest.er1
7684 cat conftest.err >&5
7685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686 (exit $ac_status); } && {
7687 test -z "$ac_c_werror_flag" ||
7688 test ! -s conftest.err
7689 } && test -s conftest.$ac_objext; then
7690 eval "$as_ac_Header=yes"
7691 else
7692 echo "$as_me: failed program was:" >&5
7693 sed 's/^/| /' conftest.$ac_ext >&5
7694
7695 eval "$as_ac_Header=no"
7696 fi
7697
7698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7699 fi
7700 ac_res=`eval echo '${'$as_ac_Header'}'`
7701 { echo "$as_me:$LINENO: result: $ac_res" >&5
7702 echo "${ECHO_T}$ac_res" >&6; }
7703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7704 cat >>confdefs.h <<_ACEOF
7705 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7706 _ACEOF
7707
7708 fi
7709
7710 done
7711
7712
7713 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7714 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7715 if test "${ac_cv_struct_tm+set}" = set; then
7716 echo $ECHO_N "(cached) $ECHO_C" >&6
7717 else
7718 cat >conftest.$ac_ext <<_ACEOF
7719 /* confdefs.h. */
7720 _ACEOF
7721 cat confdefs.h >>conftest.$ac_ext
7722 cat >>conftest.$ac_ext <<_ACEOF
7723 /* end confdefs.h. */
7724 #include <sys/types.h>
7725 #include <time.h>
7726
7727 int
7728 main ()
7729 {
7730 struct tm tm;
7731 int *p = &tm.tm_sec;
7732 return !p;
7733 ;
7734 return 0;
7735 }
7736 _ACEOF
7737 rm -f conftest.$ac_objext
7738 if { (ac_try="$ac_compile"
7739 case "(($ac_try" in
7740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7741 *) ac_try_echo=$ac_try;;
7742 esac
7743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7744 (eval "$ac_compile") 2>conftest.er1
7745 ac_status=$?
7746 grep -v '^ *+' conftest.er1 >conftest.err
7747 rm -f conftest.er1
7748 cat conftest.err >&5
7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750 (exit $ac_status); } && {
7751 test -z "$ac_c_werror_flag" ||
7752 test ! -s conftest.err
7753 } && test -s conftest.$ac_objext; then
7754 ac_cv_struct_tm=time.h
7755 else
7756 echo "$as_me: failed program was:" >&5
7757 sed 's/^/| /' conftest.$ac_ext >&5
7758
7759 ac_cv_struct_tm=sys/time.h
7760 fi
7761
7762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7763 fi
7764 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7765 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7766 if test $ac_cv_struct_tm = sys/time.h; then
7767
7768 cat >>confdefs.h <<\_ACEOF
7769 #define TM_IN_SYS_TIME 1
7770 _ACEOF
7771
7772 fi
7773
7774 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7775 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7776 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7777 echo $ECHO_N "(cached) $ECHO_C" >&6
7778 else
7779 cat >conftest.$ac_ext <<_ACEOF
7780 /* confdefs.h. */
7781 _ACEOF
7782 cat confdefs.h >>conftest.$ac_ext
7783 cat >>conftest.$ac_ext <<_ACEOF
7784 /* end confdefs.h. */
7785 #include <sys/types.h>
7786 #include <$ac_cv_struct_tm>
7787
7788
7789 int
7790 main ()
7791 {
7792 static struct tm ac_aggr;
7793 if (ac_aggr.tm_zone)
7794 return 0;
7795 ;
7796 return 0;
7797 }
7798 _ACEOF
7799 rm -f conftest.$ac_objext
7800 if { (ac_try="$ac_compile"
7801 case "(($ac_try" in
7802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7803 *) ac_try_echo=$ac_try;;
7804 esac
7805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7806 (eval "$ac_compile") 2>conftest.er1
7807 ac_status=$?
7808 grep -v '^ *+' conftest.er1 >conftest.err
7809 rm -f conftest.er1
7810 cat conftest.err >&5
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); } && {
7813 test -z "$ac_c_werror_flag" ||
7814 test ! -s conftest.err
7815 } && test -s conftest.$ac_objext; then
7816 ac_cv_member_struct_tm_tm_zone=yes
7817 else
7818 echo "$as_me: failed program was:" >&5
7819 sed 's/^/| /' conftest.$ac_ext >&5
7820
7821 cat >conftest.$ac_ext <<_ACEOF
7822 /* confdefs.h. */
7823 _ACEOF
7824 cat confdefs.h >>conftest.$ac_ext
7825 cat >>conftest.$ac_ext <<_ACEOF
7826 /* end confdefs.h. */
7827 #include <sys/types.h>
7828 #include <$ac_cv_struct_tm>
7829
7830
7831 int
7832 main ()
7833 {
7834 static struct tm ac_aggr;
7835 if (sizeof ac_aggr.tm_zone)
7836 return 0;
7837 ;
7838 return 0;
7839 }
7840 _ACEOF
7841 rm -f conftest.$ac_objext
7842 if { (ac_try="$ac_compile"
7843 case "(($ac_try" in
7844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7845 *) ac_try_echo=$ac_try;;
7846 esac
7847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7848 (eval "$ac_compile") 2>conftest.er1
7849 ac_status=$?
7850 grep -v '^ *+' conftest.er1 >conftest.err
7851 rm -f conftest.er1
7852 cat conftest.err >&5
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); } && {
7855 test -z "$ac_c_werror_flag" ||
7856 test ! -s conftest.err
7857 } && test -s conftest.$ac_objext; then
7858 ac_cv_member_struct_tm_tm_zone=yes
7859 else
7860 echo "$as_me: failed program was:" >&5
7861 sed 's/^/| /' conftest.$ac_ext >&5
7862
7863 ac_cv_member_struct_tm_tm_zone=no
7864 fi
7865
7866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7867 fi
7868
7869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7870 fi
7871 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7872 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7873 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7874
7875 cat >>confdefs.h <<_ACEOF
7876 #define HAVE_STRUCT_TM_TM_ZONE 1
7877 _ACEOF
7878
7879
7880 fi
7881
7882 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7883
7884 cat >>confdefs.h <<\_ACEOF
7885 #define HAVE_TM_ZONE 1
7886 _ACEOF
7887
7888 else
7889 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7890 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7891 if test "${ac_cv_have_decl_tzname+set}" = set; then
7892 echo $ECHO_N "(cached) $ECHO_C" >&6
7893 else
7894 cat >conftest.$ac_ext <<_ACEOF
7895 /* confdefs.h. */
7896 _ACEOF
7897 cat confdefs.h >>conftest.$ac_ext
7898 cat >>conftest.$ac_ext <<_ACEOF
7899 /* end confdefs.h. */
7900 #include <time.h>
7901
7902 int
7903 main ()
7904 {
7905 #ifndef tzname
7906 (void) tzname;
7907 #endif
7908
7909 ;
7910 return 0;
7911 }
7912 _ACEOF
7913 rm -f conftest.$ac_objext
7914 if { (ac_try="$ac_compile"
7915 case "(($ac_try" in
7916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7917 *) ac_try_echo=$ac_try;;
7918 esac
7919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7920 (eval "$ac_compile") 2>conftest.er1
7921 ac_status=$?
7922 grep -v '^ *+' conftest.er1 >conftest.err
7923 rm -f conftest.er1
7924 cat conftest.err >&5
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); } && {
7927 test -z "$ac_c_werror_flag" ||
7928 test ! -s conftest.err
7929 } && test -s conftest.$ac_objext; then
7930 ac_cv_have_decl_tzname=yes
7931 else
7932 echo "$as_me: failed program was:" >&5
7933 sed 's/^/| /' conftest.$ac_ext >&5
7934
7935 ac_cv_have_decl_tzname=no
7936 fi
7937
7938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7939 fi
7940 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7941 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7942 if test $ac_cv_have_decl_tzname = yes; then
7943
7944 cat >>confdefs.h <<_ACEOF
7945 #define HAVE_DECL_TZNAME 1
7946 _ACEOF
7947
7948
7949 else
7950 cat >>confdefs.h <<_ACEOF
7951 #define HAVE_DECL_TZNAME 0
7952 _ACEOF
7953
7954
7955 fi
7956
7957
7958 { echo "$as_me:$LINENO: checking for tzname" >&5
7959 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7960 if test "${ac_cv_var_tzname+set}" = set; then
7961 echo $ECHO_N "(cached) $ECHO_C" >&6
7962 else
7963 cat >conftest.$ac_ext <<_ACEOF
7964 /* confdefs.h. */
7965 _ACEOF
7966 cat confdefs.h >>conftest.$ac_ext
7967 cat >>conftest.$ac_ext <<_ACEOF
7968 /* end confdefs.h. */
7969 #include <time.h>
7970 #if !HAVE_DECL_TZNAME
7971 extern char *tzname[];
7972 #endif
7973
7974 int
7975 main ()
7976 {
7977 return tzname[0][0];
7978 ;
7979 return 0;
7980 }
7981 _ACEOF
7982 rm -f conftest.$ac_objext conftest$ac_exeext
7983 if { (ac_try="$ac_link"
7984 case "(($ac_try" in
7985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7986 *) ac_try_echo=$ac_try;;
7987 esac
7988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7989 (eval "$ac_link") 2>conftest.er1
7990 ac_status=$?
7991 grep -v '^ *+' conftest.er1 >conftest.err
7992 rm -f conftest.er1
7993 cat conftest.err >&5
7994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995 (exit $ac_status); } && {
7996 test -z "$ac_c_werror_flag" ||
7997 test ! -s conftest.err
7998 } && test -s conftest$ac_exeext &&
7999 $as_test_x conftest$ac_exeext; then
8000 ac_cv_var_tzname=yes
8001 else
8002 echo "$as_me: failed program was:" >&5
8003 sed 's/^/| /' conftest.$ac_ext >&5
8004
8005 ac_cv_var_tzname=no
8006 fi
8007
8008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8009 conftest$ac_exeext conftest.$ac_ext
8010 fi
8011 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8012 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8013 if test $ac_cv_var_tzname = yes; then
8014
8015 cat >>confdefs.h <<\_ACEOF
8016 #define HAVE_TZNAME 1
8017 _ACEOF
8018
8019 fi
8020 fi
8021
8022 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8023 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8024 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8025 echo $ECHO_N "(cached) $ECHO_C" >&6
8026 else
8027 cat >conftest.$ac_ext <<_ACEOF
8028 /* confdefs.h. */
8029 _ACEOF
8030 cat confdefs.h >>conftest.$ac_ext
8031 cat >>conftest.$ac_ext <<_ACEOF
8032 /* end confdefs.h. */
8033 #include <time.h>
8034
8035 int
8036 main ()
8037 {
8038 static struct tm ac_aggr;
8039 if (ac_aggr.tm_gmtoff)
8040 return 0;
8041 ;
8042 return 0;
8043 }
8044 _ACEOF
8045 rm -f conftest.$ac_objext
8046 if { (ac_try="$ac_compile"
8047 case "(($ac_try" in
8048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8049 *) ac_try_echo=$ac_try;;
8050 esac
8051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8052 (eval "$ac_compile") 2>conftest.er1
8053 ac_status=$?
8054 grep -v '^ *+' conftest.er1 >conftest.err
8055 rm -f conftest.er1
8056 cat conftest.err >&5
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); } && {
8059 test -z "$ac_c_werror_flag" ||
8060 test ! -s conftest.err
8061 } && test -s conftest.$ac_objext; then
8062 ac_cv_member_struct_tm_tm_gmtoff=yes
8063 else
8064 echo "$as_me: failed program was:" >&5
8065 sed 's/^/| /' conftest.$ac_ext >&5
8066
8067 cat >conftest.$ac_ext <<_ACEOF
8068 /* confdefs.h. */
8069 _ACEOF
8070 cat confdefs.h >>conftest.$ac_ext
8071 cat >>conftest.$ac_ext <<_ACEOF
8072 /* end confdefs.h. */
8073 #include <time.h>
8074
8075 int
8076 main ()
8077 {
8078 static struct tm ac_aggr;
8079 if (sizeof ac_aggr.tm_gmtoff)
8080 return 0;
8081 ;
8082 return 0;
8083 }
8084 _ACEOF
8085 rm -f conftest.$ac_objext
8086 if { (ac_try="$ac_compile"
8087 case "(($ac_try" in
8088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8089 *) ac_try_echo=$ac_try;;
8090 esac
8091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8092 (eval "$ac_compile") 2>conftest.er1
8093 ac_status=$?
8094 grep -v '^ *+' conftest.er1 >conftest.err
8095 rm -f conftest.er1
8096 cat conftest.err >&5
8097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098 (exit $ac_status); } && {
8099 test -z "$ac_c_werror_flag" ||
8100 test ! -s conftest.err
8101 } && test -s conftest.$ac_objext; then
8102 ac_cv_member_struct_tm_tm_gmtoff=yes
8103 else
8104 echo "$as_me: failed program was:" >&5
8105 sed 's/^/| /' conftest.$ac_ext >&5
8106
8107 ac_cv_member_struct_tm_tm_gmtoff=no
8108 fi
8109
8110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8111 fi
8112
8113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8114 fi
8115 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8116 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8117 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8118
8119 cat >>confdefs.h <<\_ACEOF
8120 #define HAVE_TM_GMTOFF 1
8121 _ACEOF
8122
8123 fi
8124
8125 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8126 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8127 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8128 echo $ECHO_N "(cached) $ECHO_C" >&6
8129 else
8130 cat >conftest.$ac_ext <<_ACEOF
8131 /* confdefs.h. */
8132 _ACEOF
8133 cat confdefs.h >>conftest.$ac_ext
8134 cat >>conftest.$ac_ext <<_ACEOF
8135 /* end confdefs.h. */
8136 $ac_includes_default
8137 #if HAVE_SYS_SOCKET_H
8138 #include <sys/socket.h>
8139 #endif
8140 #if HAVE_NET_IF_H
8141 #include <net/if.h>
8142 #endif
8143
8144 int
8145 main ()
8146 {
8147 static struct ifreq ac_aggr;
8148 if (ac_aggr.ifr_flags)
8149 return 0;
8150 ;
8151 return 0;
8152 }
8153 _ACEOF
8154 rm -f conftest.$ac_objext
8155 if { (ac_try="$ac_compile"
8156 case "(($ac_try" in
8157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8158 *) ac_try_echo=$ac_try;;
8159 esac
8160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8161 (eval "$ac_compile") 2>conftest.er1
8162 ac_status=$?
8163 grep -v '^ *+' conftest.er1 >conftest.err
8164 rm -f conftest.er1
8165 cat conftest.err >&5
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); } && {
8168 test -z "$ac_c_werror_flag" ||
8169 test ! -s conftest.err
8170 } && test -s conftest.$ac_objext; then
8171 ac_cv_member_struct_ifreq_ifr_flags=yes
8172 else
8173 echo "$as_me: failed program was:" >&5
8174 sed 's/^/| /' conftest.$ac_ext >&5
8175
8176 cat >conftest.$ac_ext <<_ACEOF
8177 /* confdefs.h. */
8178 _ACEOF
8179 cat confdefs.h >>conftest.$ac_ext
8180 cat >>conftest.$ac_ext <<_ACEOF
8181 /* end confdefs.h. */
8182 $ac_includes_default
8183 #if HAVE_SYS_SOCKET_H
8184 #include <sys/socket.h>
8185 #endif
8186 #if HAVE_NET_IF_H
8187 #include <net/if.h>
8188 #endif
8189
8190 int
8191 main ()
8192 {
8193 static struct ifreq ac_aggr;
8194 if (sizeof ac_aggr.ifr_flags)
8195 return 0;
8196 ;
8197 return 0;
8198 }
8199 _ACEOF
8200 rm -f conftest.$ac_objext
8201 if { (ac_try="$ac_compile"
8202 case "(($ac_try" in
8203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8204 *) ac_try_echo=$ac_try;;
8205 esac
8206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8207 (eval "$ac_compile") 2>conftest.er1
8208 ac_status=$?
8209 grep -v '^ *+' conftest.er1 >conftest.err
8210 rm -f conftest.er1
8211 cat conftest.err >&5
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); } && {
8214 test -z "$ac_c_werror_flag" ||
8215 test ! -s conftest.err
8216 } && test -s conftest.$ac_objext; then
8217 ac_cv_member_struct_ifreq_ifr_flags=yes
8218 else
8219 echo "$as_me: failed program was:" >&5
8220 sed 's/^/| /' conftest.$ac_ext >&5
8221
8222 ac_cv_member_struct_ifreq_ifr_flags=no
8223 fi
8224
8225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8226 fi
8227
8228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8229 fi
8230 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8231 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8232 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8233
8234 cat >>confdefs.h <<_ACEOF
8235 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8236 _ACEOF
8237
8238
8239 fi
8240 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8241 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8242 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8243 echo $ECHO_N "(cached) $ECHO_C" >&6
8244 else
8245 cat >conftest.$ac_ext <<_ACEOF
8246 /* confdefs.h. */
8247 _ACEOF
8248 cat confdefs.h >>conftest.$ac_ext
8249 cat >>conftest.$ac_ext <<_ACEOF
8250 /* end confdefs.h. */
8251 $ac_includes_default
8252 #if HAVE_SYS_SOCKET_H
8253 #include <sys/socket.h>
8254 #endif
8255 #if HAVE_NET_IF_H
8256 #include <net/if.h>
8257 #endif
8258
8259 int
8260 main ()
8261 {
8262 static struct ifreq ac_aggr;
8263 if (ac_aggr.ifr_hwaddr)
8264 return 0;
8265 ;
8266 return 0;
8267 }
8268 _ACEOF
8269 rm -f conftest.$ac_objext
8270 if { (ac_try="$ac_compile"
8271 case "(($ac_try" in
8272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8273 *) ac_try_echo=$ac_try;;
8274 esac
8275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8276 (eval "$ac_compile") 2>conftest.er1
8277 ac_status=$?
8278 grep -v '^ *+' conftest.er1 >conftest.err
8279 rm -f conftest.er1
8280 cat conftest.err >&5
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); } && {
8283 test -z "$ac_c_werror_flag" ||
8284 test ! -s conftest.err
8285 } && test -s conftest.$ac_objext; then
8286 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8287 else
8288 echo "$as_me: failed program was:" >&5
8289 sed 's/^/| /' conftest.$ac_ext >&5
8290
8291 cat >conftest.$ac_ext <<_ACEOF
8292 /* confdefs.h. */
8293 _ACEOF
8294 cat confdefs.h >>conftest.$ac_ext
8295 cat >>conftest.$ac_ext <<_ACEOF
8296 /* end confdefs.h. */
8297 $ac_includes_default
8298 #if HAVE_SYS_SOCKET_H
8299 #include <sys/socket.h>
8300 #endif
8301 #if HAVE_NET_IF_H
8302 #include <net/if.h>
8303 #endif
8304
8305 int
8306 main ()
8307 {
8308 static struct ifreq ac_aggr;
8309 if (sizeof ac_aggr.ifr_hwaddr)
8310 return 0;
8311 ;
8312 return 0;
8313 }
8314 _ACEOF
8315 rm -f conftest.$ac_objext
8316 if { (ac_try="$ac_compile"
8317 case "(($ac_try" in
8318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8319 *) ac_try_echo=$ac_try;;
8320 esac
8321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8322 (eval "$ac_compile") 2>conftest.er1
8323 ac_status=$?
8324 grep -v '^ *+' conftest.er1 >conftest.err
8325 rm -f conftest.er1
8326 cat conftest.err >&5
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); } && {
8329 test -z "$ac_c_werror_flag" ||
8330 test ! -s conftest.err
8331 } && test -s conftest.$ac_objext; then
8332 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8333 else
8334 echo "$as_me: failed program was:" >&5
8335 sed 's/^/| /' conftest.$ac_ext >&5
8336
8337 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8338 fi
8339
8340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8341 fi
8342
8343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8344 fi
8345 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8346 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8347 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8348
8349 cat >>confdefs.h <<_ACEOF
8350 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8351 _ACEOF
8352
8353
8354 fi
8355 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8356 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8357 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8358 echo $ECHO_N "(cached) $ECHO_C" >&6
8359 else
8360 cat >conftest.$ac_ext <<_ACEOF
8361 /* confdefs.h. */
8362 _ACEOF
8363 cat confdefs.h >>conftest.$ac_ext
8364 cat >>conftest.$ac_ext <<_ACEOF
8365 /* end confdefs.h. */
8366 $ac_includes_default
8367 #if HAVE_SYS_SOCKET_H
8368 #include <sys/socket.h>
8369 #endif
8370 #if HAVE_NET_IF_H
8371 #include <net/if.h>
8372 #endif
8373
8374 int
8375 main ()
8376 {
8377 static struct ifreq ac_aggr;
8378 if (ac_aggr.ifr_netmask)
8379 return 0;
8380 ;
8381 return 0;
8382 }
8383 _ACEOF
8384 rm -f conftest.$ac_objext
8385 if { (ac_try="$ac_compile"
8386 case "(($ac_try" in
8387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8388 *) ac_try_echo=$ac_try;;
8389 esac
8390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8391 (eval "$ac_compile") 2>conftest.er1
8392 ac_status=$?
8393 grep -v '^ *+' conftest.er1 >conftest.err
8394 rm -f conftest.er1
8395 cat conftest.err >&5
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); } && {
8398 test -z "$ac_c_werror_flag" ||
8399 test ! -s conftest.err
8400 } && test -s conftest.$ac_objext; then
8401 ac_cv_member_struct_ifreq_ifr_netmask=yes
8402 else
8403 echo "$as_me: failed program was:" >&5
8404 sed 's/^/| /' conftest.$ac_ext >&5
8405
8406 cat >conftest.$ac_ext <<_ACEOF
8407 /* confdefs.h. */
8408 _ACEOF
8409 cat confdefs.h >>conftest.$ac_ext
8410 cat >>conftest.$ac_ext <<_ACEOF
8411 /* end confdefs.h. */
8412 $ac_includes_default
8413 #if HAVE_SYS_SOCKET_H
8414 #include <sys/socket.h>
8415 #endif
8416 #if HAVE_NET_IF_H
8417 #include <net/if.h>
8418 #endif
8419
8420 int
8421 main ()
8422 {
8423 static struct ifreq ac_aggr;
8424 if (sizeof ac_aggr.ifr_netmask)
8425 return 0;
8426 ;
8427 return 0;
8428 }
8429 _ACEOF
8430 rm -f conftest.$ac_objext
8431 if { (ac_try="$ac_compile"
8432 case "(($ac_try" in
8433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8434 *) ac_try_echo=$ac_try;;
8435 esac
8436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8437 (eval "$ac_compile") 2>conftest.er1
8438 ac_status=$?
8439 grep -v '^ *+' conftest.er1 >conftest.err
8440 rm -f conftest.er1
8441 cat conftest.err >&5
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); } && {
8444 test -z "$ac_c_werror_flag" ||
8445 test ! -s conftest.err
8446 } && test -s conftest.$ac_objext; then
8447 ac_cv_member_struct_ifreq_ifr_netmask=yes
8448 else
8449 echo "$as_me: failed program was:" >&5
8450 sed 's/^/| /' conftest.$ac_ext >&5
8451
8452 ac_cv_member_struct_ifreq_ifr_netmask=no
8453 fi
8454
8455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8456 fi
8457
8458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8459 fi
8460 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8461 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8462 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8463
8464 cat >>confdefs.h <<_ACEOF
8465 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8466 _ACEOF
8467
8468
8469 fi
8470 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8471 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8472 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8473 echo $ECHO_N "(cached) $ECHO_C" >&6
8474 else
8475 cat >conftest.$ac_ext <<_ACEOF
8476 /* confdefs.h. */
8477 _ACEOF
8478 cat confdefs.h >>conftest.$ac_ext
8479 cat >>conftest.$ac_ext <<_ACEOF
8480 /* end confdefs.h. */
8481 $ac_includes_default
8482 #if HAVE_SYS_SOCKET_H
8483 #include <sys/socket.h>
8484 #endif
8485 #if HAVE_NET_IF_H
8486 #include <net/if.h>
8487 #endif
8488
8489 int
8490 main ()
8491 {
8492 static struct ifreq ac_aggr;
8493 if (ac_aggr.ifr_broadaddr)
8494 return 0;
8495 ;
8496 return 0;
8497 }
8498 _ACEOF
8499 rm -f conftest.$ac_objext
8500 if { (ac_try="$ac_compile"
8501 case "(($ac_try" in
8502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8503 *) ac_try_echo=$ac_try;;
8504 esac
8505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8506 (eval "$ac_compile") 2>conftest.er1
8507 ac_status=$?
8508 grep -v '^ *+' conftest.er1 >conftest.err
8509 rm -f conftest.er1
8510 cat conftest.err >&5
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); } && {
8513 test -z "$ac_c_werror_flag" ||
8514 test ! -s conftest.err
8515 } && test -s conftest.$ac_objext; then
8516 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8517 else
8518 echo "$as_me: failed program was:" >&5
8519 sed 's/^/| /' conftest.$ac_ext >&5
8520
8521 cat >conftest.$ac_ext <<_ACEOF
8522 /* confdefs.h. */
8523 _ACEOF
8524 cat confdefs.h >>conftest.$ac_ext
8525 cat >>conftest.$ac_ext <<_ACEOF
8526 /* end confdefs.h. */
8527 $ac_includes_default
8528 #if HAVE_SYS_SOCKET_H
8529 #include <sys/socket.h>
8530 #endif
8531 #if HAVE_NET_IF_H
8532 #include <net/if.h>
8533 #endif
8534
8535 int
8536 main ()
8537 {
8538 static struct ifreq ac_aggr;
8539 if (sizeof ac_aggr.ifr_broadaddr)
8540 return 0;
8541 ;
8542 return 0;
8543 }
8544 _ACEOF
8545 rm -f conftest.$ac_objext
8546 if { (ac_try="$ac_compile"
8547 case "(($ac_try" in
8548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8549 *) ac_try_echo=$ac_try;;
8550 esac
8551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8552 (eval "$ac_compile") 2>conftest.er1
8553 ac_status=$?
8554 grep -v '^ *+' conftest.er1 >conftest.err
8555 rm -f conftest.er1
8556 cat conftest.err >&5
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); } && {
8559 test -z "$ac_c_werror_flag" ||
8560 test ! -s conftest.err
8561 } && test -s conftest.$ac_objext; then
8562 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8563 else
8564 echo "$as_me: failed program was:" >&5
8565 sed 's/^/| /' conftest.$ac_ext >&5
8566
8567 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8568 fi
8569
8570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8571 fi
8572
8573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8574 fi
8575 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8576 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8577 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8578
8579 cat >>confdefs.h <<_ACEOF
8580 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8581 _ACEOF
8582
8583
8584 fi
8585 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8586 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8587 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8588 echo $ECHO_N "(cached) $ECHO_C" >&6
8589 else
8590 cat >conftest.$ac_ext <<_ACEOF
8591 /* confdefs.h. */
8592 _ACEOF
8593 cat confdefs.h >>conftest.$ac_ext
8594 cat >>conftest.$ac_ext <<_ACEOF
8595 /* end confdefs.h. */
8596 $ac_includes_default
8597 #if HAVE_SYS_SOCKET_H
8598 #include <sys/socket.h>
8599 #endif
8600 #if HAVE_NET_IF_H
8601 #include <net/if.h>
8602 #endif
8603
8604 int
8605 main ()
8606 {
8607 static struct ifreq ac_aggr;
8608 if (ac_aggr.ifr_addr)
8609 return 0;
8610 ;
8611 return 0;
8612 }
8613 _ACEOF
8614 rm -f conftest.$ac_objext
8615 if { (ac_try="$ac_compile"
8616 case "(($ac_try" in
8617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8618 *) ac_try_echo=$ac_try;;
8619 esac
8620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8621 (eval "$ac_compile") 2>conftest.er1
8622 ac_status=$?
8623 grep -v '^ *+' conftest.er1 >conftest.err
8624 rm -f conftest.er1
8625 cat conftest.err >&5
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); } && {
8628 test -z "$ac_c_werror_flag" ||
8629 test ! -s conftest.err
8630 } && test -s conftest.$ac_objext; then
8631 ac_cv_member_struct_ifreq_ifr_addr=yes
8632 else
8633 echo "$as_me: failed program was:" >&5
8634 sed 's/^/| /' conftest.$ac_ext >&5
8635
8636 cat >conftest.$ac_ext <<_ACEOF
8637 /* confdefs.h. */
8638 _ACEOF
8639 cat confdefs.h >>conftest.$ac_ext
8640 cat >>conftest.$ac_ext <<_ACEOF
8641 /* end confdefs.h. */
8642 $ac_includes_default
8643 #if HAVE_SYS_SOCKET_H
8644 #include <sys/socket.h>
8645 #endif
8646 #if HAVE_NET_IF_H
8647 #include <net/if.h>
8648 #endif
8649
8650 int
8651 main ()
8652 {
8653 static struct ifreq ac_aggr;
8654 if (sizeof ac_aggr.ifr_addr)
8655 return 0;
8656 ;
8657 return 0;
8658 }
8659 _ACEOF
8660 rm -f conftest.$ac_objext
8661 if { (ac_try="$ac_compile"
8662 case "(($ac_try" in
8663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8664 *) ac_try_echo=$ac_try;;
8665 esac
8666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8667 (eval "$ac_compile") 2>conftest.er1
8668 ac_status=$?
8669 grep -v '^ *+' conftest.er1 >conftest.err
8670 rm -f conftest.er1
8671 cat conftest.err >&5
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); } && {
8674 test -z "$ac_c_werror_flag" ||
8675 test ! -s conftest.err
8676 } && test -s conftest.$ac_objext; then
8677 ac_cv_member_struct_ifreq_ifr_addr=yes
8678 else
8679 echo "$as_me: failed program was:" >&5
8680 sed 's/^/| /' conftest.$ac_ext >&5
8681
8682 ac_cv_member_struct_ifreq_ifr_addr=no
8683 fi
8684
8685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8686 fi
8687
8688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8689 fi
8690 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8691 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8692 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8693
8694 cat >>confdefs.h <<_ACEOF
8695 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8696 _ACEOF
8697
8698
8699 fi
8700
8701
8702
8703 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8704 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8705 if test "$ac_cv_prog_cc_c89" != no; then
8706 { echo "$as_me:$LINENO: result: yes" >&5
8707 echo "${ECHO_T}yes" >&6; }
8708
8709 cat >>confdefs.h <<\_ACEOF
8710 #define PROTOTYPES 1
8711 _ACEOF
8712
8713
8714 cat >>confdefs.h <<\_ACEOF
8715 #define __PROTOTYPES 1
8716 _ACEOF
8717
8718 else
8719 { echo "$as_me:$LINENO: result: no" >&5
8720 echo "${ECHO_T}no" >&6; }
8721 fi
8722
8723 { echo "$as_me:$LINENO: checking for working volatile" >&5
8724 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8725 if test "${ac_cv_c_volatile+set}" = set; then
8726 echo $ECHO_N "(cached) $ECHO_C" >&6
8727 else
8728 cat >conftest.$ac_ext <<_ACEOF
8729 /* confdefs.h. */
8730 _ACEOF
8731 cat confdefs.h >>conftest.$ac_ext
8732 cat >>conftest.$ac_ext <<_ACEOF
8733 /* end confdefs.h. */
8734
8735 int
8736 main ()
8737 {
8738
8739 volatile int x;
8740 int * volatile y = (int *) 0;
8741 return !x && !y;
8742 ;
8743 return 0;
8744 }
8745 _ACEOF
8746 rm -f conftest.$ac_objext
8747 if { (ac_try="$ac_compile"
8748 case "(($ac_try" in
8749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8750 *) ac_try_echo=$ac_try;;
8751 esac
8752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8753 (eval "$ac_compile") 2>conftest.er1
8754 ac_status=$?
8755 grep -v '^ *+' conftest.er1 >conftest.err
8756 rm -f conftest.er1
8757 cat conftest.err >&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); } && {
8760 test -z "$ac_c_werror_flag" ||
8761 test ! -s conftest.err
8762 } && test -s conftest.$ac_objext; then
8763 ac_cv_c_volatile=yes
8764 else
8765 echo "$as_me: failed program was:" >&5
8766 sed 's/^/| /' conftest.$ac_ext >&5
8767
8768 ac_cv_c_volatile=no
8769 fi
8770
8771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8772 fi
8773 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8774 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8775 if test $ac_cv_c_volatile = no; then
8776
8777 cat >>confdefs.h <<\_ACEOF
8778 #define volatile
8779 _ACEOF
8780
8781 fi
8782
8783 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8784 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8785 if test "${ac_cv_c_const+set}" = set; then
8786 echo $ECHO_N "(cached) $ECHO_C" >&6
8787 else
8788 cat >conftest.$ac_ext <<_ACEOF
8789 /* confdefs.h. */
8790 _ACEOF
8791 cat confdefs.h >>conftest.$ac_ext
8792 cat >>conftest.$ac_ext <<_ACEOF
8793 /* end confdefs.h. */
8794
8795 int
8796 main ()
8797 {
8798 /* FIXME: Include the comments suggested by Paul. */
8799 #ifndef __cplusplus
8800 /* Ultrix mips cc rejects this. */
8801 typedef int charset[2];
8802 const charset cs;
8803 /* SunOS 4.1.1 cc rejects this. */
8804 char const *const *pcpcc;
8805 char **ppc;
8806 /* NEC SVR4.0.2 mips cc rejects this. */
8807 struct point {int x, y;};
8808 static struct point const zero = {0,0};
8809 /* AIX XL C 1.02.0.0 rejects this.
8810 It does not let you subtract one const X* pointer from another in
8811 an arm of an if-expression whose if-part is not a constant
8812 expression */
8813 const char *g = "string";
8814 pcpcc = &g + (g ? g-g : 0);
8815 /* HPUX 7.0 cc rejects these. */
8816 ++pcpcc;
8817 ppc = (char**) pcpcc;
8818 pcpcc = (char const *const *) ppc;
8819 { /* SCO 3.2v4 cc rejects this. */
8820 char *t;
8821 char const *s = 0 ? (char *) 0 : (char const *) 0;
8822
8823 *t++ = 0;
8824 if (s) return 0;
8825 }
8826 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8827 int x[] = {25, 17};
8828 const int *foo = &x[0];
8829 ++foo;
8830 }
8831 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8832 typedef const int *iptr;
8833 iptr p = 0;
8834 ++p;
8835 }
8836 { /* AIX XL C 1.02.0.0 rejects this saying
8837 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8838 struct s { int j; const int *ap[3]; };
8839 struct s *b; b->j = 5;
8840 }
8841 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8842 const int foo = 10;
8843 if (!foo) return 0;
8844 }
8845 return !cs[0] && !zero.x;
8846 #endif
8847
8848 ;
8849 return 0;
8850 }
8851 _ACEOF
8852 rm -f conftest.$ac_objext
8853 if { (ac_try="$ac_compile"
8854 case "(($ac_try" in
8855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8856 *) ac_try_echo=$ac_try;;
8857 esac
8858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8859 (eval "$ac_compile") 2>conftest.er1
8860 ac_status=$?
8861 grep -v '^ *+' conftest.er1 >conftest.err
8862 rm -f conftest.er1
8863 cat conftest.err >&5
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); } && {
8866 test -z "$ac_c_werror_flag" ||
8867 test ! -s conftest.err
8868 } && test -s conftest.$ac_objext; then
8869 ac_cv_c_const=yes
8870 else
8871 echo "$as_me: failed program was:" >&5
8872 sed 's/^/| /' conftest.$ac_ext >&5
8873
8874 ac_cv_c_const=no
8875 fi
8876
8877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8878 fi
8879 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8880 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8881 if test $ac_cv_c_const = no; then
8882
8883 cat >>confdefs.h <<\_ACEOF
8884 #define const
8885 _ACEOF
8886
8887 fi
8888
8889 { echo "$as_me:$LINENO: checking for void * support" >&5
8890 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8891 if test "${emacs_cv_void_star+set}" = set; then
8892 echo $ECHO_N "(cached) $ECHO_C" >&6
8893 else
8894 cat >conftest.$ac_ext <<_ACEOF
8895 /* confdefs.h. */
8896 _ACEOF
8897 cat confdefs.h >>conftest.$ac_ext
8898 cat >>conftest.$ac_ext <<_ACEOF
8899 /* end confdefs.h. */
8900
8901 int
8902 main ()
8903 {
8904 void * foo;
8905 ;
8906 return 0;
8907 }
8908 _ACEOF
8909 rm -f conftest.$ac_objext
8910 if { (ac_try="$ac_compile"
8911 case "(($ac_try" in
8912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8913 *) ac_try_echo=$ac_try;;
8914 esac
8915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8916 (eval "$ac_compile") 2>conftest.er1
8917 ac_status=$?
8918 grep -v '^ *+' conftest.er1 >conftest.err
8919 rm -f conftest.er1
8920 cat conftest.err >&5
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); } && {
8923 test -z "$ac_c_werror_flag" ||
8924 test ! -s conftest.err
8925 } && test -s conftest.$ac_objext; then
8926 emacs_cv_void_star=yes
8927 else
8928 echo "$as_me: failed program was:" >&5
8929 sed 's/^/| /' conftest.$ac_ext >&5
8930
8931 emacs_cv_void_star=no
8932 fi
8933
8934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8935 fi
8936 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8937 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8938 if test $emacs_cv_void_star = yes; then
8939 cat >>confdefs.h <<\_ACEOF
8940 #define POINTER_TYPE void
8941 _ACEOF
8942
8943 else
8944 cat >>confdefs.h <<\_ACEOF
8945 #define POINTER_TYPE char
8946 _ACEOF
8947
8948 fi
8949
8950
8951
8952
8953
8954 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8955 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8956 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8957 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8958 echo $ECHO_N "(cached) $ECHO_C" >&6
8959 else
8960 cat >conftest.make <<\_ACEOF
8961 SHELL = /bin/sh
8962 all:
8963 @echo '@@@%%%=$(MAKE)=@@@%%%'
8964 _ACEOF
8965 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8966 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8967 *@@@%%%=?*=@@@%%%*)
8968 eval ac_cv_prog_make_${ac_make}_set=yes;;
8969 *)
8970 eval ac_cv_prog_make_${ac_make}_set=no;;
8971 esac
8972 rm -f conftest.make
8973 fi
8974 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8975 { echo "$as_me:$LINENO: result: yes" >&5
8976 echo "${ECHO_T}yes" >&6; }
8977 SET_MAKE=
8978 else
8979 { echo "$as_me:$LINENO: result: no" >&5
8980 echo "${ECHO_T}no" >&6; }
8981 SET_MAKE="MAKE=${MAKE-make}"
8982 fi
8983
8984
8985 { echo "$as_me:$LINENO: checking for long file names" >&5
8986 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8987 if test "${ac_cv_sys_long_file_names+set}" = set; then
8988 echo $ECHO_N "(cached) $ECHO_C" >&6
8989 else
8990 ac_cv_sys_long_file_names=yes
8991 # Test for long file names in all the places we know might matter:
8992 # . the current directory, where building will happen
8993 # $prefix/lib where we will be installing things
8994 # $exec_prefix/lib likewise
8995 # $TMPDIR if set, where it might want to write temporary files
8996 # /tmp where it might want to write temporary files
8997 # /var/tmp likewise
8998 # /usr/tmp likewise
8999 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9000 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9001 # in the usual case where exec_prefix is '${prefix}'.
9002 case $ac_dir in #(
9003 . | /* | ?:[\\/]*) ;; #(
9004 *) continue;;
9005 esac
9006 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9007 ac_xdir=$ac_dir/cf$$
9008 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9009 ac_tf1=$ac_xdir/conftest9012345
9010 ac_tf2=$ac_xdir/conftest9012346
9011 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9012 ac_cv_sys_long_file_names=no
9013 rm -f -r "$ac_xdir" 2>/dev/null
9014 test $ac_cv_sys_long_file_names = no && break
9015 done
9016 fi
9017 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9018 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9019 if test $ac_cv_sys_long_file_names = yes; then
9020
9021 cat >>confdefs.h <<\_ACEOF
9022 #define HAVE_LONG_FILE_NAMES 1
9023 _ACEOF
9024
9025 fi
9026
9027
9028 #### Choose a window system.
9029
9030 { echo "$as_me:$LINENO: checking for X" >&5
9031 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9032
9033
9034 # Check whether --with-x was given.
9035 if test "${with_x+set}" = set; then
9036 withval=$with_x;
9037 fi
9038
9039 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9040 if test "x$with_x" = xno; then
9041 # The user explicitly disabled X.
9042 have_x=disabled
9043 else
9044 case $x_includes,$x_libraries in #(
9045 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9046 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9047 { (exit 1); exit 1; }; };; #(
9048 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9049 echo $ECHO_N "(cached) $ECHO_C" >&6
9050 else
9051 # One or both of the vars are not set, and there is no cached value.
9052 ac_x_includes=no ac_x_libraries=no
9053 rm -f -r conftest.dir
9054 if mkdir conftest.dir; then
9055 cd conftest.dir
9056 cat >Imakefile <<'_ACEOF'
9057 incroot:
9058 @echo incroot='${INCROOT}'
9059 usrlibdir:
9060 @echo usrlibdir='${USRLIBDIR}'
9061 libdir:
9062 @echo libdir='${LIBDIR}'
9063 _ACEOF
9064 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9065 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9066 for ac_var in incroot usrlibdir libdir; do
9067 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9068 done
9069 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9070 for ac_extension in a so sl; do
9071 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9072 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9073 ac_im_usrlibdir=$ac_im_libdir; break
9074 fi
9075 done
9076 # Screen out bogus values from the imake configuration. They are
9077 # bogus both because they are the default anyway, and because
9078 # using them would break gcc on systems where it needs fixed includes.
9079 case $ac_im_incroot in
9080 /usr/include) ac_x_includes= ;;
9081 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9082 esac
9083 case $ac_im_usrlibdir in
9084 /usr/lib | /lib) ;;
9085 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9086 esac
9087 fi
9088 cd ..
9089 rm -f -r conftest.dir
9090 fi
9091
9092 # Standard set of common directories for X headers.
9093 # Check X11 before X11Rn because it is often a symlink to the current release.
9094 ac_x_header_dirs='
9095 /usr/X11/include
9096 /usr/X11R6/include
9097 /usr/X11R5/include
9098 /usr/X11R4/include
9099
9100 /usr/include/X11
9101 /usr/include/X11R6
9102 /usr/include/X11R5
9103 /usr/include/X11R4
9104
9105 /usr/local/X11/include
9106 /usr/local/X11R6/include
9107 /usr/local/X11R5/include
9108 /usr/local/X11R4/include
9109
9110 /usr/local/include/X11
9111 /usr/local/include/X11R6
9112 /usr/local/include/X11R5
9113 /usr/local/include/X11R4
9114
9115 /usr/X386/include
9116 /usr/x386/include
9117 /usr/XFree86/include/X11
9118
9119 /usr/include
9120 /usr/local/include
9121 /usr/unsupported/include
9122 /usr/athena/include
9123 /usr/local/x11r5/include
9124 /usr/lpp/Xamples/include
9125
9126 /usr/openwin/include
9127 /usr/openwin/share/include'
9128
9129 if test "$ac_x_includes" = no; then
9130 # Guess where to find include files, by looking for Xlib.h.
9131 # First, try using that file with no special directory specified.
9132 cat >conftest.$ac_ext <<_ACEOF
9133 /* confdefs.h. */
9134 _ACEOF
9135 cat confdefs.h >>conftest.$ac_ext
9136 cat >>conftest.$ac_ext <<_ACEOF
9137 /* end confdefs.h. */
9138 #include <X11/Xlib.h>
9139 _ACEOF
9140 if { (ac_try="$ac_cpp conftest.$ac_ext"
9141 case "(($ac_try" in
9142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9143 *) ac_try_echo=$ac_try;;
9144 esac
9145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9146 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9147 ac_status=$?
9148 grep -v '^ *+' conftest.er1 >conftest.err
9149 rm -f conftest.er1
9150 cat conftest.err >&5
9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); } >/dev/null && {
9153 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9154 test ! -s conftest.err
9155 }; then
9156 # We can compile using X headers with no special include directory.
9157 ac_x_includes=
9158 else
9159 echo "$as_me: failed program was:" >&5
9160 sed 's/^/| /' conftest.$ac_ext >&5
9161
9162 for ac_dir in $ac_x_header_dirs; do
9163 if test -r "$ac_dir/X11/Xlib.h"; then
9164 ac_x_includes=$ac_dir
9165 break
9166 fi
9167 done
9168 fi
9169
9170 rm -f conftest.err conftest.$ac_ext
9171 fi # $ac_x_includes = no
9172
9173 if test "$ac_x_libraries" = no; then
9174 # Check for the libraries.
9175 # See if we find them without any special options.
9176 # Don't add to $LIBS permanently.
9177 ac_save_LIBS=$LIBS
9178 LIBS="-lX11 $LIBS"
9179 cat >conftest.$ac_ext <<_ACEOF
9180 /* confdefs.h. */
9181 _ACEOF
9182 cat confdefs.h >>conftest.$ac_ext
9183 cat >>conftest.$ac_ext <<_ACEOF
9184 /* end confdefs.h. */
9185 #include <X11/Xlib.h>
9186 int
9187 main ()
9188 {
9189 XrmInitialize ()
9190 ;
9191 return 0;
9192 }
9193 _ACEOF
9194 rm -f conftest.$ac_objext conftest$ac_exeext
9195 if { (ac_try="$ac_link"
9196 case "(($ac_try" in
9197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9198 *) ac_try_echo=$ac_try;;
9199 esac
9200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9201 (eval "$ac_link") 2>conftest.er1
9202 ac_status=$?
9203 grep -v '^ *+' conftest.er1 >conftest.err
9204 rm -f conftest.er1
9205 cat conftest.err >&5
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); } && {
9208 test -z "$ac_c_werror_flag" ||
9209 test ! -s conftest.err
9210 } && test -s conftest$ac_exeext &&
9211 $as_test_x conftest$ac_exeext; then
9212 LIBS=$ac_save_LIBS
9213 # We can link X programs with no special library path.
9214 ac_x_libraries=
9215 else
9216 echo "$as_me: failed program was:" >&5
9217 sed 's/^/| /' conftest.$ac_ext >&5
9218
9219 LIBS=$ac_save_LIBS
9220 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9221 do
9222 # Don't even attempt the hair of trying to link an X program!
9223 for ac_extension in a so sl; do
9224 if test -r "$ac_dir/libX11.$ac_extension"; then
9225 ac_x_libraries=$ac_dir
9226 break 2
9227 fi
9228 done
9229 done
9230 fi
9231
9232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9233 conftest$ac_exeext conftest.$ac_ext
9234 fi # $ac_x_libraries = no
9235
9236 case $ac_x_includes,$ac_x_libraries in #(
9237 no,* | *,no | *\'*)
9238 # Didn't find X, or a directory has "'" in its name.
9239 ac_cv_have_x="have_x=no";; #(
9240 *)
9241 # Record where we found X for the cache.
9242 ac_cv_have_x="have_x=yes\
9243 ac_x_includes='$ac_x_includes'\
9244 ac_x_libraries='$ac_x_libraries'"
9245 esac
9246 fi
9247 ;; #(
9248 *) have_x=yes;;
9249 esac
9250 eval "$ac_cv_have_x"
9251 fi # $with_x != no
9252
9253 if test "$have_x" != yes; then
9254 { echo "$as_me:$LINENO: result: $have_x" >&5
9255 echo "${ECHO_T}$have_x" >&6; }
9256 no_x=yes
9257 else
9258 # If each of the values was on the command line, it overrides each guess.
9259 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9260 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9261 # Update the cache value to reflect the command line values.
9262 ac_cv_have_x="have_x=yes\
9263 ac_x_includes='$x_includes'\
9264 ac_x_libraries='$x_libraries'"
9265 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9266 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9267 fi
9268
9269 if test "$no_x" = yes; then
9270 window_system=none
9271 else
9272 window_system=x11
9273 fi
9274
9275 if test "${x_libraries}" != NONE; then
9276 if test -n "${x_libraries}"; then
9277 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9278 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9279 fi
9280 x_default_search_path=""
9281 x_search_path=${x_libraries}
9282 if test -z "${x_search_path}"; then
9283 x_search_path=/usr/lib
9284 fi
9285 for x_library in `echo ${x_search_path}: | \
9286 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9287 x_search_path="\
9288 ${x_library}/X11/%L/%T/%N%C%S:\
9289 ${x_library}/X11/%l/%T/%N%C%S:\
9290 ${x_library}/X11/%T/%N%C%S:\
9291 ${x_library}/X11/%L/%T/%N%S:\
9292 ${x_library}/X11/%l/%T/%N%S:\
9293 ${x_library}/X11/%T/%N%S"
9294 if test x"${x_default_search_path}" = x; then
9295 x_default_search_path=${x_search_path}
9296 else
9297 x_default_search_path="${x_search_path}:${x_default_search_path}"
9298 fi
9299 done
9300 fi
9301 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9302 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9303 fi
9304
9305 if test x"${x_includes}" = x; then
9306 bitmapdir=/usr/include/X11/bitmaps
9307 else
9308 # accumulate include directories that have X11 bitmap subdirectories
9309 bmd_acc="dummyval"
9310 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9311 if test -d "${bmd}/X11/bitmaps"; then
9312 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9313 fi
9314 if test -d "${bmd}/bitmaps"; then
9315 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9316 fi
9317 done
9318 if test ${bmd_acc} != "dummyval"; then
9319 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9320 fi
9321 fi
9322
9323 HAVE_CARBON=no
9324 if test "${with_carbon}" != no; then
9325 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9326 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9327 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9328 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9329 echo $ECHO_N "(cached) $ECHO_C" >&6
9330 fi
9331 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9332 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9333 else
9334 # Is the header compilable?
9335 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9336 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9337 cat >conftest.$ac_ext <<_ACEOF
9338 /* confdefs.h. */
9339 _ACEOF
9340 cat confdefs.h >>conftest.$ac_ext
9341 cat >>conftest.$ac_ext <<_ACEOF
9342 /* end confdefs.h. */
9343 $ac_includes_default
9344 #include <Carbon/Carbon.h>
9345 _ACEOF
9346 rm -f conftest.$ac_objext
9347 if { (ac_try="$ac_compile"
9348 case "(($ac_try" in
9349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9350 *) ac_try_echo=$ac_try;;
9351 esac
9352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9353 (eval "$ac_compile") 2>conftest.er1
9354 ac_status=$?
9355 grep -v '^ *+' conftest.er1 >conftest.err
9356 rm -f conftest.er1
9357 cat conftest.err >&5
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); } && {
9360 test -z "$ac_c_werror_flag" ||
9361 test ! -s conftest.err
9362 } && test -s conftest.$ac_objext; then
9363 ac_header_compiler=yes
9364 else
9365 echo "$as_me: failed program was:" >&5
9366 sed 's/^/| /' conftest.$ac_ext >&5
9367
9368 ac_header_compiler=no
9369 fi
9370
9371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9372 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9373 echo "${ECHO_T}$ac_header_compiler" >&6; }
9374
9375 # Is the header present?
9376 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9377 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9378 cat >conftest.$ac_ext <<_ACEOF
9379 /* confdefs.h. */
9380 _ACEOF
9381 cat confdefs.h >>conftest.$ac_ext
9382 cat >>conftest.$ac_ext <<_ACEOF
9383 /* end confdefs.h. */
9384 #include <Carbon/Carbon.h>
9385 _ACEOF
9386 if { (ac_try="$ac_cpp conftest.$ac_ext"
9387 case "(($ac_try" in
9388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9389 *) ac_try_echo=$ac_try;;
9390 esac
9391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9392 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9393 ac_status=$?
9394 grep -v '^ *+' conftest.er1 >conftest.err
9395 rm -f conftest.er1
9396 cat conftest.err >&5
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); } >/dev/null && {
9399 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9400 test ! -s conftest.err
9401 }; then
9402 ac_header_preproc=yes
9403 else
9404 echo "$as_me: failed program was:" >&5
9405 sed 's/^/| /' conftest.$ac_ext >&5
9406
9407 ac_header_preproc=no
9408 fi
9409
9410 rm -f conftest.err conftest.$ac_ext
9411 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9412 echo "${ECHO_T}$ac_header_preproc" >&6; }
9413
9414 # So? What about this header?
9415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9416 yes:no: )
9417 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9418 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9419 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9420 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9421 ac_header_preproc=yes
9422 ;;
9423 no:yes:* )
9424 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9425 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9426 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9427 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9428 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9429 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9430 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9431 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9432 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9433 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9434 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9435 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9436
9437 ;;
9438 esac
9439 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9440 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9441 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9442 echo $ECHO_N "(cached) $ECHO_C" >&6
9443 else
9444 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9445 fi
9446 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9447 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9448
9449 fi
9450 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9451 HAVE_CARBON=yes
9452 fi
9453
9454
9455 fi
9456 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9457 if test "${with_carbon+set}" != set \
9458 && test "${carbon_appdir_x+set}" != set; then
9459 for var in with_x with_x_toolkit with_gtk with_xim \
9460 with_xpm with_jpeg with_tiff with_gif with_png; do
9461 if eval test \"\${$var+set}\" = set; then
9462 HAVE_CARBON=no
9463 break
9464 fi
9465 done
9466 fi
9467 fi
9468 if test "${HAVE_CARBON}" = yes; then
9469 window_system=mac
9470 fi
9471
9472 case "${window_system}" in
9473 x11 )
9474 HAVE_X_WINDOWS=yes
9475 HAVE_X11=yes
9476 case "${with_x_toolkit}" in
9477 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9478 motif ) USE_X_TOOLKIT=MOTIF ;;
9479 gtk ) with_gtk=yes
9480 USE_X_TOOLKIT=none ;;
9481 no ) USE_X_TOOLKIT=none ;;
9482 * ) USE_X_TOOLKIT=maybe ;;
9483 esac
9484 ;;
9485 mac | none )
9486 HAVE_X_WINDOWS=no
9487 HAVE_X11=no
9488 USE_X_TOOLKIT=none
9489 ;;
9490 esac
9491
9492 ### If we're using X11, we should use the X menu package.
9493 HAVE_MENUS=no
9494 case ${HAVE_X11} in
9495 yes ) HAVE_MENUS=yes ;;
9496 esac
9497
9498 if test "${opsys}" = "hpux9"; then
9499 case "${x_libraries}" in
9500 *X11R4* )
9501 opsysfile="s/hpux9-x11r4.h"
9502 ;;
9503 esac
9504 fi
9505
9506 if test "${opsys}" = "hpux9shr"; then
9507 case "${x_libraries}" in
9508 *X11R4* )
9509 opsysfile="s/hpux9shxr4.h"
9510 ;;
9511 esac
9512 fi
9513
9514 ### Compute the unexec source name from the object name.
9515 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9516
9517 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9518 # Assume not, until told otherwise.
9519 GNU_MALLOC=yes
9520 doug_lea_malloc=yes
9521 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9522 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9523 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9524 echo $ECHO_N "(cached) $ECHO_C" >&6
9525 else
9526 cat >conftest.$ac_ext <<_ACEOF
9527 /* confdefs.h. */
9528 _ACEOF
9529 cat confdefs.h >>conftest.$ac_ext
9530 cat >>conftest.$ac_ext <<_ACEOF
9531 /* end confdefs.h. */
9532 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9533 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9534 #define malloc_get_state innocuous_malloc_get_state
9535
9536 /* System header to define __stub macros and hopefully few prototypes,
9537 which can conflict with char malloc_get_state (); below.
9538 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9539 <limits.h> exists even on freestanding compilers. */
9540
9541 #ifdef __STDC__
9542 # include <limits.h>
9543 #else
9544 # include <assert.h>
9545 #endif
9546
9547 #undef malloc_get_state
9548
9549 /* Override any GCC internal prototype to avoid an error.
9550 Use char because int might match the return type of a GCC
9551 builtin and then its argument prototype would still apply. */
9552 #ifdef __cplusplus
9553 extern "C"
9554 #endif
9555 char malloc_get_state ();
9556 /* The GNU C library defines this for functions which it implements
9557 to always fail with ENOSYS. Some functions are actually named
9558 something starting with __ and the normal name is an alias. */
9559 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9560 choke me
9561 #endif
9562
9563 int
9564 main ()
9565 {
9566 return malloc_get_state ();
9567 ;
9568 return 0;
9569 }
9570 _ACEOF
9571 rm -f conftest.$ac_objext conftest$ac_exeext
9572 if { (ac_try="$ac_link"
9573 case "(($ac_try" in
9574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9575 *) ac_try_echo=$ac_try;;
9576 esac
9577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9578 (eval "$ac_link") 2>conftest.er1
9579 ac_status=$?
9580 grep -v '^ *+' conftest.er1 >conftest.err
9581 rm -f conftest.er1
9582 cat conftest.err >&5
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); } && {
9585 test -z "$ac_c_werror_flag" ||
9586 test ! -s conftest.err
9587 } && test -s conftest$ac_exeext &&
9588 $as_test_x conftest$ac_exeext; then
9589 ac_cv_func_malloc_get_state=yes
9590 else
9591 echo "$as_me: failed program was:" >&5
9592 sed 's/^/| /' conftest.$ac_ext >&5
9593
9594 ac_cv_func_malloc_get_state=no
9595 fi
9596
9597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9598 conftest$ac_exeext conftest.$ac_ext
9599 fi
9600 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9601 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9602 if test $ac_cv_func_malloc_get_state = yes; then
9603 :
9604 else
9605 doug_lea_malloc=no
9606 fi
9607
9608 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9609 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9610 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9611 echo $ECHO_N "(cached) $ECHO_C" >&6
9612 else
9613 cat >conftest.$ac_ext <<_ACEOF
9614 /* confdefs.h. */
9615 _ACEOF
9616 cat confdefs.h >>conftest.$ac_ext
9617 cat >>conftest.$ac_ext <<_ACEOF
9618 /* end confdefs.h. */
9619 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9621 #define malloc_set_state innocuous_malloc_set_state
9622
9623 /* System header to define __stub macros and hopefully few prototypes,
9624 which can conflict with char malloc_set_state (); below.
9625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9626 <limits.h> exists even on freestanding compilers. */
9627
9628 #ifdef __STDC__
9629 # include <limits.h>
9630 #else
9631 # include <assert.h>
9632 #endif
9633
9634 #undef malloc_set_state
9635
9636 /* Override any GCC internal prototype to avoid an error.
9637 Use char because int might match the return type of a GCC
9638 builtin and then its argument prototype would still apply. */
9639 #ifdef __cplusplus
9640 extern "C"
9641 #endif
9642 char malloc_set_state ();
9643 /* The GNU C library defines this for functions which it implements
9644 to always fail with ENOSYS. Some functions are actually named
9645 something starting with __ and the normal name is an alias. */
9646 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9647 choke me
9648 #endif
9649
9650 int
9651 main ()
9652 {
9653 return malloc_set_state ();
9654 ;
9655 return 0;
9656 }
9657 _ACEOF
9658 rm -f conftest.$ac_objext conftest$ac_exeext
9659 if { (ac_try="$ac_link"
9660 case "(($ac_try" in
9661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662 *) ac_try_echo=$ac_try;;
9663 esac
9664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665 (eval "$ac_link") 2>conftest.er1
9666 ac_status=$?
9667 grep -v '^ *+' conftest.er1 >conftest.err
9668 rm -f conftest.er1
9669 cat conftest.err >&5
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); } && {
9672 test -z "$ac_c_werror_flag" ||
9673 test ! -s conftest.err
9674 } && test -s conftest$ac_exeext &&
9675 $as_test_x conftest$ac_exeext; then
9676 ac_cv_func_malloc_set_state=yes
9677 else
9678 echo "$as_me: failed program was:" >&5
9679 sed 's/^/| /' conftest.$ac_ext >&5
9680
9681 ac_cv_func_malloc_set_state=no
9682 fi
9683
9684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9685 conftest$ac_exeext conftest.$ac_ext
9686 fi
9687 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9688 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9689 if test $ac_cv_func_malloc_set_state = yes; then
9690 :
9691 else
9692 doug_lea_malloc=no
9693 fi
9694
9695 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9696 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9697 if test "${emacs_cv_var___after_morecore_hook+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 extern void (* __after_morecore_hook)();
9707 int
9708 main ()
9709 {
9710 __after_morecore_hook = 0
9711 ;
9712 return 0;
9713 }
9714 _ACEOF
9715 rm -f conftest.$ac_objext conftest$ac_exeext
9716 if { (ac_try="$ac_link"
9717 case "(($ac_try" in
9718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9719 *) ac_try_echo=$ac_try;;
9720 esac
9721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9722 (eval "$ac_link") 2>conftest.er1
9723 ac_status=$?
9724 grep -v '^ *+' conftest.er1 >conftest.err
9725 rm -f conftest.er1
9726 cat conftest.err >&5
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); } && {
9729 test -z "$ac_c_werror_flag" ||
9730 test ! -s conftest.err
9731 } && test -s conftest$ac_exeext &&
9732 $as_test_x conftest$ac_exeext; then
9733 emacs_cv_var___after_morecore_hook=yes
9734 else
9735 echo "$as_me: failed program was:" >&5
9736 sed 's/^/| /' conftest.$ac_ext >&5
9737
9738 emacs_cv_var___after_morecore_hook=no
9739 fi
9740
9741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9742 conftest$ac_exeext conftest.$ac_ext
9743 fi
9744 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9745 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9746 if test $emacs_cv_var___after_morecore_hook = no; then
9747 doug_lea_malloc=no
9748 fi
9749 if test "${system_malloc}" = "yes"; then
9750 GNU_MALLOC=no
9751 GNU_MALLOC_reason="
9752 (The GNU allocators don't work with this system configuration.)"
9753 fi
9754 if test "$doug_lea_malloc" = "yes" ; then
9755 if test "$GNU_MALLOC" = yes ; then
9756 GNU_MALLOC_reason="
9757 (Using Doug Lea's new malloc from the GNU C Library.)"
9758 fi
9759
9760 cat >>confdefs.h <<\_ACEOF
9761 #define DOUG_LEA_MALLOC 1
9762 _ACEOF
9763
9764 fi
9765
9766 if test x"${REL_ALLOC}" = x; then
9767 REL_ALLOC=${GNU_MALLOC}
9768 fi
9769
9770
9771
9772
9773 for ac_header in stdlib.h unistd.h
9774 do
9775 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9777 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9780 echo $ECHO_N "(cached) $ECHO_C" >&6
9781 fi
9782 ac_res=`eval echo '${'$as_ac_Header'}'`
9783 { echo "$as_me:$LINENO: result: $ac_res" >&5
9784 echo "${ECHO_T}$ac_res" >&6; }
9785 else
9786 # Is the header compilable?
9787 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9788 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9789 cat >conftest.$ac_ext <<_ACEOF
9790 /* confdefs.h. */
9791 _ACEOF
9792 cat confdefs.h >>conftest.$ac_ext
9793 cat >>conftest.$ac_ext <<_ACEOF
9794 /* end confdefs.h. */
9795 $ac_includes_default
9796 #include <$ac_header>
9797 _ACEOF
9798 rm -f conftest.$ac_objext
9799 if { (ac_try="$ac_compile"
9800 case "(($ac_try" in
9801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9802 *) ac_try_echo=$ac_try;;
9803 esac
9804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9805 (eval "$ac_compile") 2>conftest.er1
9806 ac_status=$?
9807 grep -v '^ *+' conftest.er1 >conftest.err
9808 rm -f conftest.er1
9809 cat conftest.err >&5
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); } && {
9812 test -z "$ac_c_werror_flag" ||
9813 test ! -s conftest.err
9814 } && test -s conftest.$ac_objext; then
9815 ac_header_compiler=yes
9816 else
9817 echo "$as_me: failed program was:" >&5
9818 sed 's/^/| /' conftest.$ac_ext >&5
9819
9820 ac_header_compiler=no
9821 fi
9822
9823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9824 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9825 echo "${ECHO_T}$ac_header_compiler" >&6; }
9826
9827 # Is the header present?
9828 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9829 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9830 cat >conftest.$ac_ext <<_ACEOF
9831 /* confdefs.h. */
9832 _ACEOF
9833 cat confdefs.h >>conftest.$ac_ext
9834 cat >>conftest.$ac_ext <<_ACEOF
9835 /* end confdefs.h. */
9836 #include <$ac_header>
9837 _ACEOF
9838 if { (ac_try="$ac_cpp conftest.$ac_ext"
9839 case "(($ac_try" in
9840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9841 *) ac_try_echo=$ac_try;;
9842 esac
9843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9845 ac_status=$?
9846 grep -v '^ *+' conftest.er1 >conftest.err
9847 rm -f conftest.er1
9848 cat conftest.err >&5
9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); } >/dev/null && {
9851 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9852 test ! -s conftest.err
9853 }; then
9854 ac_header_preproc=yes
9855 else
9856 echo "$as_me: failed program was:" >&5
9857 sed 's/^/| /' conftest.$ac_ext >&5
9858
9859 ac_header_preproc=no
9860 fi
9861
9862 rm -f conftest.err conftest.$ac_ext
9863 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9864 echo "${ECHO_T}$ac_header_preproc" >&6; }
9865
9866 # So? What about this header?
9867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9868 yes:no: )
9869 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9870 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9872 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9873 ac_header_preproc=yes
9874 ;;
9875 no:yes:* )
9876 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9877 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9878 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9879 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9880 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9881 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9882 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9883 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9885 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9886 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9887 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9888
9889 ;;
9890 esac
9891 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9894 echo $ECHO_N "(cached) $ECHO_C" >&6
9895 else
9896 eval "$as_ac_Header=\$ac_header_preproc"
9897 fi
9898 ac_res=`eval echo '${'$as_ac_Header'}'`
9899 { echo "$as_me:$LINENO: result: $ac_res" >&5
9900 echo "${ECHO_T}$ac_res" >&6; }
9901
9902 fi
9903 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9904 cat >>confdefs.h <<_ACEOF
9905 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9906 _ACEOF
9907
9908 fi
9909
9910 done
9911
9912
9913 for ac_func in getpagesize
9914 do
9915 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9916 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9918 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9919 echo $ECHO_N "(cached) $ECHO_C" >&6
9920 else
9921 cat >conftest.$ac_ext <<_ACEOF
9922 /* confdefs.h. */
9923 _ACEOF
9924 cat confdefs.h >>conftest.$ac_ext
9925 cat >>conftest.$ac_ext <<_ACEOF
9926 /* end confdefs.h. */
9927 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9929 #define $ac_func innocuous_$ac_func
9930
9931 /* System header to define __stub macros and hopefully few prototypes,
9932 which can conflict with char $ac_func (); below.
9933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9934 <limits.h> exists even on freestanding compilers. */
9935
9936 #ifdef __STDC__
9937 # include <limits.h>
9938 #else
9939 # include <assert.h>
9940 #endif
9941
9942 #undef $ac_func
9943
9944 /* Override any GCC internal prototype to avoid an error.
9945 Use char because int might match the return type of a GCC
9946 builtin and then its argument prototype would still apply. */
9947 #ifdef __cplusplus
9948 extern "C"
9949 #endif
9950 char $ac_func ();
9951 /* The GNU C library defines this for functions which it implements
9952 to always fail with ENOSYS. Some functions are actually named
9953 something starting with __ and the normal name is an alias. */
9954 #if defined __stub_$ac_func || defined __stub___$ac_func
9955 choke me
9956 #endif
9957
9958 int
9959 main ()
9960 {
9961 return $ac_func ();
9962 ;
9963 return 0;
9964 }
9965 _ACEOF
9966 rm -f conftest.$ac_objext conftest$ac_exeext
9967 if { (ac_try="$ac_link"
9968 case "(($ac_try" in
9969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9970 *) ac_try_echo=$ac_try;;
9971 esac
9972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9973 (eval "$ac_link") 2>conftest.er1
9974 ac_status=$?
9975 grep -v '^ *+' conftest.er1 >conftest.err
9976 rm -f conftest.er1
9977 cat conftest.err >&5
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); } && {
9980 test -z "$ac_c_werror_flag" ||
9981 test ! -s conftest.err
9982 } && test -s conftest$ac_exeext &&
9983 $as_test_x conftest$ac_exeext; then
9984 eval "$as_ac_var=yes"
9985 else
9986 echo "$as_me: failed program was:" >&5
9987 sed 's/^/| /' conftest.$ac_ext >&5
9988
9989 eval "$as_ac_var=no"
9990 fi
9991
9992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9993 conftest$ac_exeext conftest.$ac_ext
9994 fi
9995 ac_res=`eval echo '${'$as_ac_var'}'`
9996 { echo "$as_me:$LINENO: result: $ac_res" >&5
9997 echo "${ECHO_T}$ac_res" >&6; }
9998 if test `eval echo '${'$as_ac_var'}'` = yes; then
9999 cat >>confdefs.h <<_ACEOF
10000 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10001 _ACEOF
10002
10003 fi
10004 done
10005
10006 { echo "$as_me:$LINENO: checking for working mmap" >&5
10007 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10008 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10009 echo $ECHO_N "(cached) $ECHO_C" >&6
10010 else
10011 if test "$cross_compiling" = yes; then
10012 ac_cv_func_mmap_fixed_mapped=no
10013 else
10014 cat >conftest.$ac_ext <<_ACEOF
10015 /* confdefs.h. */
10016 _ACEOF
10017 cat confdefs.h >>conftest.$ac_ext
10018 cat >>conftest.$ac_ext <<_ACEOF
10019 /* end confdefs.h. */
10020 $ac_includes_default
10021 /* malloc might have been renamed as rpl_malloc. */
10022 #undef malloc
10023
10024 /* Thanks to Mike Haertel and Jim Avera for this test.
10025 Here is a matrix of mmap possibilities:
10026 mmap private not fixed
10027 mmap private fixed at somewhere currently unmapped
10028 mmap private fixed at somewhere already mapped
10029 mmap shared not fixed
10030 mmap shared fixed at somewhere currently unmapped
10031 mmap shared fixed at somewhere already mapped
10032 For private mappings, we should verify that changes cannot be read()
10033 back from the file, nor mmap's back from the file at a different
10034 address. (There have been systems where private was not correctly
10035 implemented like the infamous i386 svr4.0, and systems where the
10036 VM page cache was not coherent with the file system buffer cache
10037 like early versions of FreeBSD and possibly contemporary NetBSD.)
10038 For shared mappings, we should conversely verify that changes get
10039 propagated back to all the places they're supposed to be.
10040
10041 Grep wants private fixed already mapped.
10042 The main things grep needs to know about mmap are:
10043 * does it exist and is it safe to write into the mmap'd area
10044 * how to use it (BSD variants) */
10045
10046 #include <fcntl.h>
10047 #include <sys/mman.h>
10048
10049 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10050 char *malloc ();
10051 #endif
10052
10053 /* This mess was copied from the GNU getpagesize.h. */
10054 #ifndef HAVE_GETPAGESIZE
10055 /* Assume that all systems that can run configure have sys/param.h. */
10056 # ifndef HAVE_SYS_PARAM_H
10057 # define HAVE_SYS_PARAM_H 1
10058 # endif
10059
10060 # ifdef _SC_PAGESIZE
10061 # define getpagesize() sysconf(_SC_PAGESIZE)
10062 # else /* no _SC_PAGESIZE */
10063 # ifdef HAVE_SYS_PARAM_H
10064 # include <sys/param.h>
10065 # ifdef EXEC_PAGESIZE
10066 # define getpagesize() EXEC_PAGESIZE
10067 # else /* no EXEC_PAGESIZE */
10068 # ifdef NBPG
10069 # define getpagesize() NBPG * CLSIZE
10070 # ifndef CLSIZE
10071 # define CLSIZE 1
10072 # endif /* no CLSIZE */
10073 # else /* no NBPG */
10074 # ifdef NBPC
10075 # define getpagesize() NBPC
10076 # else /* no NBPC */
10077 # ifdef PAGESIZE
10078 # define getpagesize() PAGESIZE
10079 # endif /* PAGESIZE */
10080 # endif /* no NBPC */
10081 # endif /* no NBPG */
10082 # endif /* no EXEC_PAGESIZE */
10083 # else /* no HAVE_SYS_PARAM_H */
10084 # define getpagesize() 8192 /* punt totally */
10085 # endif /* no HAVE_SYS_PARAM_H */
10086 # endif /* no _SC_PAGESIZE */
10087
10088 #endif /* no HAVE_GETPAGESIZE */
10089
10090 int
10091 main ()
10092 {
10093 char *data, *data2, *data3;
10094 int i, pagesize;
10095 int fd;
10096
10097 pagesize = getpagesize ();
10098
10099 /* First, make a file with some known garbage in it. */
10100 data = (char *) malloc (pagesize);
10101 if (!data)
10102 return 1;
10103 for (i = 0; i < pagesize; ++i)
10104 *(data + i) = rand ();
10105 umask (0);
10106 fd = creat ("conftest.mmap", 0600);
10107 if (fd < 0)
10108 return 1;
10109 if (write (fd, data, pagesize) != pagesize)
10110 return 1;
10111 close (fd);
10112
10113 /* Next, try to mmap the file at a fixed address which already has
10114 something else allocated at it. If we can, also make sure that
10115 we see the same garbage. */
10116 fd = open ("conftest.mmap", O_RDWR);
10117 if (fd < 0)
10118 return 1;
10119 data2 = (char *) malloc (2 * pagesize);
10120 if (!data2)
10121 return 1;
10122 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10123 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10124 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10125 return 1;
10126 for (i = 0; i < pagesize; ++i)
10127 if (*(data + i) != *(data2 + i))
10128 return 1;
10129
10130 /* Finally, make sure that changes to the mapped area do not
10131 percolate back to the file as seen by read(). (This is a bug on
10132 some variants of i386 svr4.0.) */
10133 for (i = 0; i < pagesize; ++i)
10134 *(data2 + i) = *(data2 + i) + 1;
10135 data3 = (char *) malloc (pagesize);
10136 if (!data3)
10137 return 1;
10138 if (read (fd, data3, pagesize) != pagesize)
10139 return 1;
10140 for (i = 0; i < pagesize; ++i)
10141 if (*(data + i) != *(data3 + i))
10142 return 1;
10143 close (fd);
10144 return 0;
10145 }
10146 _ACEOF
10147 rm -f 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>&5
10155 ac_status=$?
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10158 { (case "(($ac_try" in
10159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10160 *) ac_try_echo=$ac_try;;
10161 esac
10162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10163 (eval "$ac_try") 2>&5
10164 ac_status=$?
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); }; }; then
10167 ac_cv_func_mmap_fixed_mapped=yes
10168 else
10169 echo "$as_me: program exited with status $ac_status" >&5
10170 echo "$as_me: failed program was:" >&5
10171 sed 's/^/| /' conftest.$ac_ext >&5
10172
10173 ( exit $ac_status )
10174 ac_cv_func_mmap_fixed_mapped=no
10175 fi
10176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10177 fi
10178
10179
10180 fi
10181 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10182 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10183 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10184
10185 cat >>confdefs.h <<\_ACEOF
10186 #define HAVE_MMAP 1
10187 _ACEOF
10188
10189 fi
10190 rm -f conftest.mmap
10191
10192 if test $use_mmap_for_buffers = yes; then
10193 REL_ALLOC=no
10194 fi
10195
10196 LIBS="$libsrc_libs $LIBS"
10197
10198
10199 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10200 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10201 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10202 echo $ECHO_N "(cached) $ECHO_C" >&6
10203 else
10204 ac_check_lib_save_LIBS=$LIBS
10205 LIBS="-ldnet $LIBS"
10206 cat >conftest.$ac_ext <<_ACEOF
10207 /* confdefs.h. */
10208 _ACEOF
10209 cat confdefs.h >>conftest.$ac_ext
10210 cat >>conftest.$ac_ext <<_ACEOF
10211 /* end confdefs.h. */
10212
10213 /* Override any GCC internal prototype to avoid an error.
10214 Use char because int might match the return type of a GCC
10215 builtin and then its argument prototype would still apply. */
10216 #ifdef __cplusplus
10217 extern "C"
10218 #endif
10219 char dnet_ntoa ();
10220 int
10221 main ()
10222 {
10223 return dnet_ntoa ();
10224 ;
10225 return 0;
10226 }
10227 _ACEOF
10228 rm -f conftest.$ac_objext conftest$ac_exeext
10229 if { (ac_try="$ac_link"
10230 case "(($ac_try" in
10231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10232 *) ac_try_echo=$ac_try;;
10233 esac
10234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10235 (eval "$ac_link") 2>conftest.er1
10236 ac_status=$?
10237 grep -v '^ *+' conftest.er1 >conftest.err
10238 rm -f conftest.er1
10239 cat conftest.err >&5
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); } && {
10242 test -z "$ac_c_werror_flag" ||
10243 test ! -s conftest.err
10244 } && test -s conftest$ac_exeext &&
10245 $as_test_x conftest$ac_exeext; then
10246 ac_cv_lib_dnet_dnet_ntoa=yes
10247 else
10248 echo "$as_me: failed program was:" >&5
10249 sed 's/^/| /' conftest.$ac_ext >&5
10250
10251 ac_cv_lib_dnet_dnet_ntoa=no
10252 fi
10253
10254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10255 conftest$ac_exeext conftest.$ac_ext
10256 LIBS=$ac_check_lib_save_LIBS
10257 fi
10258 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10259 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10260 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10261 cat >>confdefs.h <<_ACEOF
10262 #define HAVE_LIBDNET 1
10263 _ACEOF
10264
10265 LIBS="-ldnet $LIBS"
10266
10267 fi
10268
10269
10270 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10271 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10272 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10273 echo $ECHO_N "(cached) $ECHO_C" >&6
10274 else
10275 ac_check_lib_save_LIBS=$LIBS
10276 LIBS="-lXbsd $LIBS"
10277 cat >conftest.$ac_ext <<_ACEOF
10278 /* confdefs.h. */
10279 _ACEOF
10280 cat confdefs.h >>conftest.$ac_ext
10281 cat >>conftest.$ac_ext <<_ACEOF
10282 /* end confdefs.h. */
10283
10284
10285 int
10286 main ()
10287 {
10288 return main ();
10289 ;
10290 return 0;
10291 }
10292 _ACEOF
10293 rm -f conftest.$ac_objext conftest$ac_exeext
10294 if { (ac_try="$ac_link"
10295 case "(($ac_try" in
10296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10297 *) ac_try_echo=$ac_try;;
10298 esac
10299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10300 (eval "$ac_link") 2>conftest.er1
10301 ac_status=$?
10302 grep -v '^ *+' conftest.er1 >conftest.err
10303 rm -f conftest.er1
10304 cat conftest.err >&5
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); } && {
10307 test -z "$ac_c_werror_flag" ||
10308 test ! -s conftest.err
10309 } && test -s conftest$ac_exeext &&
10310 $as_test_x conftest$ac_exeext; then
10311 ac_cv_lib_Xbsd_main=yes
10312 else
10313 echo "$as_me: failed program was:" >&5
10314 sed 's/^/| /' conftest.$ac_ext >&5
10315
10316 ac_cv_lib_Xbsd_main=no
10317 fi
10318
10319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10320 conftest$ac_exeext conftest.$ac_ext
10321 LIBS=$ac_check_lib_save_LIBS
10322 fi
10323 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10324 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10325 if test $ac_cv_lib_Xbsd_main = yes; then
10326 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10327 fi
10328
10329
10330
10331 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10332 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10333 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10334 echo $ECHO_N "(cached) $ECHO_C" >&6
10335 else
10336 ac_check_lib_save_LIBS=$LIBS
10337 LIBS="-lpthreads $LIBS"
10338 cat >conftest.$ac_ext <<_ACEOF
10339 /* confdefs.h. */
10340 _ACEOF
10341 cat confdefs.h >>conftest.$ac_ext
10342 cat >>conftest.$ac_ext <<_ACEOF
10343 /* end confdefs.h. */
10344
10345 /* Override any GCC internal prototype to avoid an error.
10346 Use char because int might match the return type of a GCC
10347 builtin and then its argument prototype would still apply. */
10348 #ifdef __cplusplus
10349 extern "C"
10350 #endif
10351 char cma_open ();
10352 int
10353 main ()
10354 {
10355 return cma_open ();
10356 ;
10357 return 0;
10358 }
10359 _ACEOF
10360 rm -f conftest.$ac_objext conftest$ac_exeext
10361 if { (ac_try="$ac_link"
10362 case "(($ac_try" in
10363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10364 *) ac_try_echo=$ac_try;;
10365 esac
10366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10367 (eval "$ac_link") 2>conftest.er1
10368 ac_status=$?
10369 grep -v '^ *+' conftest.er1 >conftest.err
10370 rm -f conftest.er1
10371 cat conftest.err >&5
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); } && {
10374 test -z "$ac_c_werror_flag" ||
10375 test ! -s conftest.err
10376 } && test -s conftest$ac_exeext &&
10377 $as_test_x conftest$ac_exeext; then
10378 ac_cv_lib_pthreads_cma_open=yes
10379 else
10380 echo "$as_me: failed program was:" >&5
10381 sed 's/^/| /' conftest.$ac_ext >&5
10382
10383 ac_cv_lib_pthreads_cma_open=no
10384 fi
10385
10386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10387 conftest$ac_exeext conftest.$ac_ext
10388 LIBS=$ac_check_lib_save_LIBS
10389 fi
10390 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10391 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10392 if test $ac_cv_lib_pthreads_cma_open = yes; then
10393 cat >>confdefs.h <<_ACEOF
10394 #define HAVE_LIBPTHREADS 1
10395 _ACEOF
10396
10397 LIBS="-lpthreads $LIBS"
10398
10399 fi
10400
10401
10402 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10403 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10404 if test -d /usr/X386/include; then
10405 HAVE_XFREE386=yes
10406 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10407 else
10408 HAVE_XFREE386=no
10409 fi
10410 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10411 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10412
10413
10414 case ${host_os} in
10415 aix*)
10416 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10417 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10418 if test "${gdb_cv_bigtoc+set}" = set; then
10419 echo $ECHO_N "(cached) $ECHO_C" >&6
10420 else
10421
10422 case $GCC in
10423 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10424 *) gdb_cv_bigtoc=-bbigtoc ;;
10425 esac
10426
10427 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10428 cat >conftest.$ac_ext <<_ACEOF
10429 /* confdefs.h. */
10430 _ACEOF
10431 cat confdefs.h >>conftest.$ac_ext
10432 cat >>conftest.$ac_ext <<_ACEOF
10433 /* end confdefs.h. */
10434
10435 int
10436 main ()
10437 {
10438 int i;
10439 ;
10440 return 0;
10441 }
10442 _ACEOF
10443 rm -f conftest.$ac_objext conftest$ac_exeext
10444 if { (ac_try="$ac_link"
10445 case "(($ac_try" in
10446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10447 *) ac_try_echo=$ac_try;;
10448 esac
10449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10450 (eval "$ac_link") 2>conftest.er1
10451 ac_status=$?
10452 grep -v '^ *+' conftest.er1 >conftest.err
10453 rm -f conftest.er1
10454 cat conftest.err >&5
10455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); } && {
10457 test -z "$ac_c_werror_flag" ||
10458 test ! -s conftest.err
10459 } && test -s conftest$ac_exeext &&
10460 $as_test_x conftest$ac_exeext; then
10461 :
10462 else
10463 echo "$as_me: failed program was:" >&5
10464 sed 's/^/| /' conftest.$ac_ext >&5
10465
10466 gdb_cv_bigtoc=
10467 fi
10468
10469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10470 conftest$ac_exeext conftest.$ac_ext
10471
10472 fi
10473 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10474 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10475 ;;
10476 esac
10477
10478 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10479 # used for the tests that follow. We set them back to REAL_CFLAGS and
10480 # REAL_CPPFLAGS later on.
10481
10482 REAL_CPPFLAGS="$CPPFLAGS"
10483
10484 if test "${HAVE_X11}" = "yes"; then
10485 DEFS="$C_SWITCH_X_SITE $DEFS"
10486 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10487 LIBS="$LIBX $LIBS"
10488 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10489 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10490
10491 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10492 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10493 # but it's more convenient here to set LD_RUN_PATH
10494 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10495 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10496 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10497 export LD_RUN_PATH
10498 fi
10499
10500 if test "${opsys}" = "gnu-linux"; then
10501 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10502 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10503 cat >conftest.$ac_ext <<_ACEOF
10504 /* confdefs.h. */
10505 _ACEOF
10506 cat confdefs.h >>conftest.$ac_ext
10507 cat >>conftest.$ac_ext <<_ACEOF
10508 /* end confdefs.h. */
10509
10510 int
10511 main ()
10512 {
10513 XOpenDisplay ("foo");
10514 ;
10515 return 0;
10516 }
10517 _ACEOF
10518 rm -f conftest.$ac_objext conftest$ac_exeext
10519 if { (ac_try="$ac_link"
10520 case "(($ac_try" in
10521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10522 *) ac_try_echo=$ac_try;;
10523 esac
10524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10525 (eval "$ac_link") 2>conftest.er1
10526 ac_status=$?
10527 grep -v '^ *+' conftest.er1 >conftest.err
10528 rm -f conftest.er1
10529 cat conftest.err >&5
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); } && {
10532 test -z "$ac_c_werror_flag" ||
10533 test ! -s conftest.err
10534 } && test -s conftest$ac_exeext &&
10535 $as_test_x conftest$ac_exeext; then
10536 xlinux_first_failure=no
10537 else
10538 echo "$as_me: failed program was:" >&5
10539 sed 's/^/| /' conftest.$ac_ext >&5
10540
10541 xlinux_first_failure=yes
10542 fi
10543
10544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10545 conftest$ac_exeext conftest.$ac_ext
10546 if test "${xlinux_first_failure}" = "yes"; then
10547 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10548 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10549 OLD_CPPFLAGS="$CPPFLAGS"
10550 OLD_LIBS="$LIBS"
10551 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10552 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10553 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10554 LIBS="$LIBS -b i486-linuxaout"
10555 cat >conftest.$ac_ext <<_ACEOF
10556 /* confdefs.h. */
10557 _ACEOF
10558 cat confdefs.h >>conftest.$ac_ext
10559 cat >>conftest.$ac_ext <<_ACEOF
10560 /* end confdefs.h. */
10561
10562 int
10563 main ()
10564 {
10565 XOpenDisplay ("foo");
10566 ;
10567 return 0;
10568 }
10569 _ACEOF
10570 rm -f conftest.$ac_objext conftest$ac_exeext
10571 if { (ac_try="$ac_link"
10572 case "(($ac_try" in
10573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10574 *) ac_try_echo=$ac_try;;
10575 esac
10576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10577 (eval "$ac_link") 2>conftest.er1
10578 ac_status=$?
10579 grep -v '^ *+' conftest.er1 >conftest.err
10580 rm -f conftest.er1
10581 cat conftest.err >&5
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); } && {
10584 test -z "$ac_c_werror_flag" ||
10585 test ! -s conftest.err
10586 } && test -s conftest$ac_exeext &&
10587 $as_test_x conftest$ac_exeext; then
10588 xlinux_second_failure=no
10589 else
10590 echo "$as_me: failed program was:" >&5
10591 sed 's/^/| /' conftest.$ac_ext >&5
10592
10593 xlinux_second_failure=yes
10594 fi
10595
10596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10597 conftest$ac_exeext conftest.$ac_ext
10598 if test "${xlinux_second_failure}" = "yes"; then
10599 # If we get the same failure with -b, there is no use adding -b.
10600 # So take it out. This plays safe.
10601 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10602 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10603 CPPFLAGS="$OLD_CPPFLAGS"
10604 LIBS="$OLD_LIBS"
10605 { echo "$as_me:$LINENO: result: no" >&5
10606 echo "${ECHO_T}no" >&6; }
10607 else
10608 { echo "$as_me:$LINENO: result: yes" >&5
10609 echo "${ECHO_T}yes" >&6; }
10610 fi
10611 else
10612 { echo "$as_me:$LINENO: result: no" >&5
10613 echo "${ECHO_T}no" >&6; }
10614 fi
10615 fi
10616
10617 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10618 # header files included from there.
10619 { echo "$as_me:$LINENO: checking for Xkb" >&5
10620 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10621 cat >conftest.$ac_ext <<_ACEOF
10622 /* confdefs.h. */
10623 _ACEOF
10624 cat confdefs.h >>conftest.$ac_ext
10625 cat >>conftest.$ac_ext <<_ACEOF
10626 /* end confdefs.h. */
10627 #include <X11/Xlib.h>
10628 #include <X11/XKBlib.h>
10629 int
10630 main ()
10631 {
10632 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10633 ;
10634 return 0;
10635 }
10636 _ACEOF
10637 rm -f conftest.$ac_objext conftest$ac_exeext
10638 if { (ac_try="$ac_link"
10639 case "(($ac_try" in
10640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10641 *) ac_try_echo=$ac_try;;
10642 esac
10643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10644 (eval "$ac_link") 2>conftest.er1
10645 ac_status=$?
10646 grep -v '^ *+' conftest.er1 >conftest.err
10647 rm -f conftest.er1
10648 cat conftest.err >&5
10649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650 (exit $ac_status); } && {
10651 test -z "$ac_c_werror_flag" ||
10652 test ! -s conftest.err
10653 } && test -s conftest$ac_exeext &&
10654 $as_test_x conftest$ac_exeext; then
10655 emacs_xkb=yes
10656 else
10657 echo "$as_me: failed program was:" >&5
10658 sed 's/^/| /' conftest.$ac_ext >&5
10659
10660 emacs_xkb=no
10661 fi
10662
10663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10664 conftest$ac_exeext conftest.$ac_ext
10665 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10666 echo "${ECHO_T}$emacs_xkb" >&6; }
10667 if test $emacs_xkb = yes; then
10668
10669 cat >>confdefs.h <<\_ACEOF
10670 #define HAVE_XKBGETKEYBOARD 1
10671 _ACEOF
10672
10673 fi
10674
10675
10676
10677
10678
10679 for ac_func in XrmSetDatabase XScreenResourceString \
10680 XScreenNumberOfScreen XSetWMProtocols
10681 do
10682 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10683 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10685 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10686 echo $ECHO_N "(cached) $ECHO_C" >&6
10687 else
10688 cat >conftest.$ac_ext <<_ACEOF
10689 /* confdefs.h. */
10690 _ACEOF
10691 cat confdefs.h >>conftest.$ac_ext
10692 cat >>conftest.$ac_ext <<_ACEOF
10693 /* end confdefs.h. */
10694 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10696 #define $ac_func innocuous_$ac_func
10697
10698 /* System header to define __stub macros and hopefully few prototypes,
10699 which can conflict with char $ac_func (); below.
10700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10701 <limits.h> exists even on freestanding compilers. */
10702
10703 #ifdef __STDC__
10704 # include <limits.h>
10705 #else
10706 # include <assert.h>
10707 #endif
10708
10709 #undef $ac_func
10710
10711 /* Override any GCC internal prototype to avoid an error.
10712 Use char because int might match the return type of a GCC
10713 builtin and then its argument prototype would still apply. */
10714 #ifdef __cplusplus
10715 extern "C"
10716 #endif
10717 char $ac_func ();
10718 /* The GNU C library defines this for functions which it implements
10719 to always fail with ENOSYS. Some functions are actually named
10720 something starting with __ and the normal name is an alias. */
10721 #if defined __stub_$ac_func || defined __stub___$ac_func
10722 choke me
10723 #endif
10724
10725 int
10726 main ()
10727 {
10728 return $ac_func ();
10729 ;
10730 return 0;
10731 }
10732 _ACEOF
10733 rm -f conftest.$ac_objext conftest$ac_exeext
10734 if { (ac_try="$ac_link"
10735 case "(($ac_try" in
10736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10737 *) ac_try_echo=$ac_try;;
10738 esac
10739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10740 (eval "$ac_link") 2>conftest.er1
10741 ac_status=$?
10742 grep -v '^ *+' conftest.er1 >conftest.err
10743 rm -f conftest.er1
10744 cat conftest.err >&5
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); } && {
10747 test -z "$ac_c_werror_flag" ||
10748 test ! -s conftest.err
10749 } && test -s conftest$ac_exeext &&
10750 $as_test_x conftest$ac_exeext; then
10751 eval "$as_ac_var=yes"
10752 else
10753 echo "$as_me: failed program was:" >&5
10754 sed 's/^/| /' conftest.$ac_ext >&5
10755
10756 eval "$as_ac_var=no"
10757 fi
10758
10759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10760 conftest$ac_exeext conftest.$ac_ext
10761 fi
10762 ac_res=`eval echo '${'$as_ac_var'}'`
10763 { echo "$as_me:$LINENO: result: $ac_res" >&5
10764 echo "${ECHO_T}$ac_res" >&6; }
10765 if test `eval echo '${'$as_ac_var'}'` = yes; then
10766 cat >>confdefs.h <<_ACEOF
10767 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10768 _ACEOF
10769
10770 fi
10771 done
10772
10773 fi
10774
10775 if test "${window_system}" = "x11"; then
10776 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10777 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10778 if test "${emacs_cv_x11_version_6+set}" = set; then
10779 echo $ECHO_N "(cached) $ECHO_C" >&6
10780 else
10781 cat >conftest.$ac_ext <<_ACEOF
10782 /* confdefs.h. */
10783 _ACEOF
10784 cat confdefs.h >>conftest.$ac_ext
10785 cat >>conftest.$ac_ext <<_ACEOF
10786 /* end confdefs.h. */
10787 #include <X11/Xlib.h>
10788 int
10789 main ()
10790 {
10791 #if XlibSpecificationRelease < 6
10792 fail;
10793 #endif
10794
10795 ;
10796 return 0;
10797 }
10798 _ACEOF
10799 rm -f conftest.$ac_objext conftest$ac_exeext
10800 if { (ac_try="$ac_link"
10801 case "(($ac_try" in
10802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10803 *) ac_try_echo=$ac_try;;
10804 esac
10805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10806 (eval "$ac_link") 2>conftest.er1
10807 ac_status=$?
10808 grep -v '^ *+' conftest.er1 >conftest.err
10809 rm -f conftest.er1
10810 cat conftest.err >&5
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); } && {
10813 test -z "$ac_c_werror_flag" ||
10814 test ! -s conftest.err
10815 } && test -s conftest$ac_exeext &&
10816 $as_test_x conftest$ac_exeext; then
10817 emacs_cv_x11_version_6=yes
10818 else
10819 echo "$as_me: failed program was:" >&5
10820 sed 's/^/| /' conftest.$ac_ext >&5
10821
10822 emacs_cv_x11_version_6=no
10823 fi
10824
10825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10826 conftest$ac_exeext conftest.$ac_ext
10827 fi
10828
10829 if test $emacs_cv_x11_version_6 = yes; then
10830 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10831 echo "${ECHO_T}6 or newer" >&6; }
10832
10833 cat >>confdefs.h <<\_ACEOF
10834 #define HAVE_X11R6 1
10835 _ACEOF
10836
10837 else
10838 { echo "$as_me:$LINENO: result: before 6" >&5
10839 echo "${ECHO_T}before 6" >&6; }
10840 fi
10841 fi
10842
10843 if test "${window_system}" = "x11"; then
10844 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10845 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10846 if test "${emacs_cv_x11_version_5+set}" = set; then
10847 echo $ECHO_N "(cached) $ECHO_C" >&6
10848 else
10849 cat >conftest.$ac_ext <<_ACEOF
10850 /* confdefs.h. */
10851 _ACEOF
10852 cat confdefs.h >>conftest.$ac_ext
10853 cat >>conftest.$ac_ext <<_ACEOF
10854 /* end confdefs.h. */
10855 #include <X11/Xlib.h>
10856 int
10857 main ()
10858 {
10859 #if XlibSpecificationRelease < 5
10860 fail;
10861 #endif
10862
10863 ;
10864 return 0;
10865 }
10866 _ACEOF
10867 rm -f conftest.$ac_objext conftest$ac_exeext
10868 if { (ac_try="$ac_link"
10869 case "(($ac_try" in
10870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10871 *) ac_try_echo=$ac_try;;
10872 esac
10873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10874 (eval "$ac_link") 2>conftest.er1
10875 ac_status=$?
10876 grep -v '^ *+' conftest.er1 >conftest.err
10877 rm -f conftest.er1
10878 cat conftest.err >&5
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); } && {
10881 test -z "$ac_c_werror_flag" ||
10882 test ! -s conftest.err
10883 } && test -s conftest$ac_exeext &&
10884 $as_test_x conftest$ac_exeext; then
10885 emacs_cv_x11_version_5=yes
10886 else
10887 echo "$as_me: failed program was:" >&5
10888 sed 's/^/| /' conftest.$ac_ext >&5
10889
10890 emacs_cv_x11_version_5=no
10891 fi
10892
10893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10894 conftest$ac_exeext conftest.$ac_ext
10895 fi
10896
10897 if test $emacs_cv_x11_version_5 = yes; then
10898 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10899 echo "${ECHO_T}5 or newer" >&6; }
10900 HAVE_X11R5=yes
10901
10902 cat >>confdefs.h <<\_ACEOF
10903 #define HAVE_X11R5 1
10904 _ACEOF
10905
10906 else
10907 HAVE_X11R5=no
10908 { echo "$as_me:$LINENO: result: before 5" >&5
10909 echo "${ECHO_T}before 5" >&6; }
10910 fi
10911 fi
10912
10913 HAVE_GTK=no
10914 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10915 USE_X_TOOLKIT=none
10916 fi
10917 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10918 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10919 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10920 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10921 { (exit 1); exit 1; }; };
10922 fi
10923 GLIB_REQUIRED=2.4
10924 GTK_REQUIRED=2.4
10925 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10926
10927 if test "X${with_pkg_config_prog}" != X; then
10928 PKG_CONFIG="${with_pkg_config_prog}"
10929 fi
10930
10931 succeeded=no
10932
10933 if test -z "$PKG_CONFIG"; then
10934 # Extract the first word of "pkg-config", so it can be a program name with args.
10935 set dummy pkg-config; ac_word=$2
10936 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10938 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10939 echo $ECHO_N "(cached) $ECHO_C" >&6
10940 else
10941 case $PKG_CONFIG in
10942 [\\/]* | ?:[\\/]*)
10943 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10944 ;;
10945 *)
10946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10947 for as_dir in $PATH
10948 do
10949 IFS=$as_save_IFS
10950 test -z "$as_dir" && as_dir=.
10951 for ac_exec_ext in '' $ac_executable_extensions; do
10952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10953 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10955 break 2
10956 fi
10957 done
10958 done
10959 IFS=$as_save_IFS
10960
10961 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10962 ;;
10963 esac
10964 fi
10965 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10966 if test -n "$PKG_CONFIG"; then
10967 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10968 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10969 else
10970 { echo "$as_me:$LINENO: result: no" >&5
10971 echo "${ECHO_T}no" >&6; }
10972 fi
10973
10974
10975 fi
10976
10977 if test "$PKG_CONFIG" = "no" ; then
10978 { { echo "$as_me:$LINENO: error:
10979 *** 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
10980 echo "$as_me: error:
10981 *** 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;}
10982 { (exit 1); exit 1; }; }
10983 else
10984 PKG_CONFIG_MIN_VERSION=0.9.0
10985 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10986 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10987 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10988
10989 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10990 { echo "$as_me:$LINENO: result: yes" >&5
10991 echo "${ECHO_T}yes" >&6; }
10992 succeeded=yes
10993
10994 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10995 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10996 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10997 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10998 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10999
11000 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11001 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11002 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
11003 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11004 echo "${ECHO_T}$GTK_LIBS" >&6; }
11005 else
11006 { echo "$as_me:$LINENO: result: no" >&5
11007 echo "${ECHO_T}no" >&6; }
11008 GTK_CFLAGS=""
11009 GTK_LIBS=""
11010 ## If we have a custom action on failure, don't print errors, but
11011 ## do set a variable so people can do so.
11012 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11013 echo $GTK_PKG_ERRORS
11014 fi
11015
11016
11017
11018 else
11019 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11020 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11021 fi
11022 fi
11023
11024 if test $succeeded = yes; then
11025 :
11026 else
11027 { { 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
11028 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;}
11029 { (exit 1); exit 1; }; }
11030 fi
11031
11032
11033
11034 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11035 CFLAGS="$CFLAGS $GTK_CFLAGS"
11036 LIBS="$GTK_LIBS $LIBS"
11037 GTK_COMPILES=no
11038
11039 for ac_func in gtk_main
11040 do
11041 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11042 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11043 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11044 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11045 echo $ECHO_N "(cached) $ECHO_C" >&6
11046 else
11047 cat >conftest.$ac_ext <<_ACEOF
11048 /* confdefs.h. */
11049 _ACEOF
11050 cat confdefs.h >>conftest.$ac_ext
11051 cat >>conftest.$ac_ext <<_ACEOF
11052 /* end confdefs.h. */
11053 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11054 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11055 #define $ac_func innocuous_$ac_func
11056
11057 /* System header to define __stub macros and hopefully few prototypes,
11058 which can conflict with char $ac_func (); below.
11059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11060 <limits.h> exists even on freestanding compilers. */
11061
11062 #ifdef __STDC__
11063 # include <limits.h>
11064 #else
11065 # include <assert.h>
11066 #endif
11067
11068 #undef $ac_func
11069
11070 /* Override any GCC internal prototype to avoid an error.
11071 Use char because int might match the return type of a GCC
11072 builtin and then its argument prototype would still apply. */
11073 #ifdef __cplusplus
11074 extern "C"
11075 #endif
11076 char $ac_func ();
11077 /* The GNU C library defines this for functions which it implements
11078 to always fail with ENOSYS. Some functions are actually named
11079 something starting with __ and the normal name is an alias. */
11080 #if defined __stub_$ac_func || defined __stub___$ac_func
11081 choke me
11082 #endif
11083
11084 int
11085 main ()
11086 {
11087 return $ac_func ();
11088 ;
11089 return 0;
11090 }
11091 _ACEOF
11092 rm -f conftest.$ac_objext conftest$ac_exeext
11093 if { (ac_try="$ac_link"
11094 case "(($ac_try" in
11095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11096 *) ac_try_echo=$ac_try;;
11097 esac
11098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11099 (eval "$ac_link") 2>conftest.er1
11100 ac_status=$?
11101 grep -v '^ *+' conftest.er1 >conftest.err
11102 rm -f conftest.er1
11103 cat conftest.err >&5
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); } && {
11106 test -z "$ac_c_werror_flag" ||
11107 test ! -s conftest.err
11108 } && test -s conftest$ac_exeext &&
11109 $as_test_x conftest$ac_exeext; then
11110 eval "$as_ac_var=yes"
11111 else
11112 echo "$as_me: failed program was:" >&5
11113 sed 's/^/| /' conftest.$ac_ext >&5
11114
11115 eval "$as_ac_var=no"
11116 fi
11117
11118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11119 conftest$ac_exeext conftest.$ac_ext
11120 fi
11121 ac_res=`eval echo '${'$as_ac_var'}'`
11122 { echo "$as_me:$LINENO: result: $ac_res" >&5
11123 echo "${ECHO_T}$ac_res" >&6; }
11124 if test `eval echo '${'$as_ac_var'}'` = yes; then
11125 cat >>confdefs.h <<_ACEOF
11126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11127 _ACEOF
11128 GTK_COMPILES=yes
11129 fi
11130 done
11131
11132 if test "${GTK_COMPILES}" != "yes"; then
11133 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11134 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11135 { (exit 1); exit 1; }; };
11136 fi
11137
11138 HAVE_GTK=yes
11139
11140 cat >>confdefs.h <<\_ACEOF
11141 #define HAVE_GTK 1
11142 _ACEOF
11143
11144 USE_X_TOOLKIT=none
11145
11146 if test "$with_toolkit_scroll_bars" != no; then
11147 with_toolkit_scroll_bars=yes
11148 fi
11149
11150 HAVE_GTK_MULTIDISPLAY=no
11151
11152 for ac_func in gdk_display_open
11153 do
11154 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11155 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11157 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11158 echo $ECHO_N "(cached) $ECHO_C" >&6
11159 else
11160 cat >conftest.$ac_ext <<_ACEOF
11161 /* confdefs.h. */
11162 _ACEOF
11163 cat confdefs.h >>conftest.$ac_ext
11164 cat >>conftest.$ac_ext <<_ACEOF
11165 /* end confdefs.h. */
11166 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11168 #define $ac_func innocuous_$ac_func
11169
11170 /* System header to define __stub macros and hopefully few prototypes,
11171 which can conflict with char $ac_func (); below.
11172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11173 <limits.h> exists even on freestanding compilers. */
11174
11175 #ifdef __STDC__
11176 # include <limits.h>
11177 #else
11178 # include <assert.h>
11179 #endif
11180
11181 #undef $ac_func
11182
11183 /* Override any GCC internal prototype to avoid an error.
11184 Use char because int might match the return type of a GCC
11185 builtin and then its argument prototype would still apply. */
11186 #ifdef __cplusplus
11187 extern "C"
11188 #endif
11189 char $ac_func ();
11190 /* The GNU C library defines this for functions which it implements
11191 to always fail with ENOSYS. Some functions are actually named
11192 something starting with __ and the normal name is an alias. */
11193 #if defined __stub_$ac_func || defined __stub___$ac_func
11194 choke me
11195 #endif
11196
11197 int
11198 main ()
11199 {
11200 return $ac_func ();
11201 ;
11202 return 0;
11203 }
11204 _ACEOF
11205 rm -f conftest.$ac_objext conftest$ac_exeext
11206 if { (ac_try="$ac_link"
11207 case "(($ac_try" in
11208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11209 *) ac_try_echo=$ac_try;;
11210 esac
11211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11212 (eval "$ac_link") 2>conftest.er1
11213 ac_status=$?
11214 grep -v '^ *+' conftest.er1 >conftest.err
11215 rm -f conftest.er1
11216 cat conftest.err >&5
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); } && {
11219 test -z "$ac_c_werror_flag" ||
11220 test ! -s conftest.err
11221 } && test -s conftest$ac_exeext &&
11222 $as_test_x conftest$ac_exeext; then
11223 eval "$as_ac_var=yes"
11224 else
11225 echo "$as_me: failed program was:" >&5
11226 sed 's/^/| /' conftest.$ac_ext >&5
11227
11228 eval "$as_ac_var=no"
11229 fi
11230
11231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11232 conftest$ac_exeext conftest.$ac_ext
11233 fi
11234 ac_res=`eval echo '${'$as_ac_var'}'`
11235 { echo "$as_me:$LINENO: result: $ac_res" >&5
11236 echo "${ECHO_T}$ac_res" >&6; }
11237 if test `eval echo '${'$as_ac_var'}'` = yes; then
11238 cat >>confdefs.h <<_ACEOF
11239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11240 _ACEOF
11241 HAVE_GTK_MULTIDISPLAY=yes
11242 fi
11243 done
11244
11245 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11246
11247 cat >>confdefs.h <<\_ACEOF
11248 #define HAVE_GTK_MULTIDISPLAY 1
11249 _ACEOF
11250
11251 fi
11252 HAVE_GTK_FILE_SELECTION=no
11253
11254 for ac_func in gtk_file_selection_new
11255 do
11256 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11257 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11259 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11260 echo $ECHO_N "(cached) $ECHO_C" >&6
11261 else
11262 cat >conftest.$ac_ext <<_ACEOF
11263 /* confdefs.h. */
11264 _ACEOF
11265 cat confdefs.h >>conftest.$ac_ext
11266 cat >>conftest.$ac_ext <<_ACEOF
11267 /* end confdefs.h. */
11268 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11270 #define $ac_func innocuous_$ac_func
11271
11272 /* System header to define __stub macros and hopefully few prototypes,
11273 which can conflict with char $ac_func (); below.
11274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11275 <limits.h> exists even on freestanding compilers. */
11276
11277 #ifdef __STDC__
11278 # include <limits.h>
11279 #else
11280 # include <assert.h>
11281 #endif
11282
11283 #undef $ac_func
11284
11285 /* Override any GCC internal prototype to avoid an error.
11286 Use char because int might match the return type of a GCC
11287 builtin and then its argument prototype would still apply. */
11288 #ifdef __cplusplus
11289 extern "C"
11290 #endif
11291 char $ac_func ();
11292 /* The GNU C library defines this for functions which it implements
11293 to always fail with ENOSYS. Some functions are actually named
11294 something starting with __ and the normal name is an alias. */
11295 #if defined __stub_$ac_func || defined __stub___$ac_func
11296 choke me
11297 #endif
11298
11299 int
11300 main ()
11301 {
11302 return $ac_func ();
11303 ;
11304 return 0;
11305 }
11306 _ACEOF
11307 rm -f conftest.$ac_objext conftest$ac_exeext
11308 if { (ac_try="$ac_link"
11309 case "(($ac_try" in
11310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11311 *) ac_try_echo=$ac_try;;
11312 esac
11313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11314 (eval "$ac_link") 2>conftest.er1
11315 ac_status=$?
11316 grep -v '^ *+' conftest.er1 >conftest.err
11317 rm -f conftest.er1
11318 cat conftest.err >&5
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); } && {
11321 test -z "$ac_c_werror_flag" ||
11322 test ! -s conftest.err
11323 } && test -s conftest$ac_exeext &&
11324 $as_test_x conftest$ac_exeext; then
11325 eval "$as_ac_var=yes"
11326 else
11327 echo "$as_me: failed program was:" >&5
11328 sed 's/^/| /' conftest.$ac_ext >&5
11329
11330 eval "$as_ac_var=no"
11331 fi
11332
11333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11334 conftest$ac_exeext conftest.$ac_ext
11335 fi
11336 ac_res=`eval echo '${'$as_ac_var'}'`
11337 { echo "$as_me:$LINENO: result: $ac_res" >&5
11338 echo "${ECHO_T}$ac_res" >&6; }
11339 if test `eval echo '${'$as_ac_var'}'` = yes; then
11340 cat >>confdefs.h <<_ACEOF
11341 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11342 _ACEOF
11343 HAVE_GTK_FILE_SELECTION=yes
11344 fi
11345 done
11346
11347
11348 HAVE_GTK_FILE_CHOOSER=no
11349
11350 for ac_func in gtk_file_chooser_dialog_new
11351 do
11352 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11353 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11354 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11355 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11356 echo $ECHO_N "(cached) $ECHO_C" >&6
11357 else
11358 cat >conftest.$ac_ext <<_ACEOF
11359 /* confdefs.h. */
11360 _ACEOF
11361 cat confdefs.h >>conftest.$ac_ext
11362 cat >>conftest.$ac_ext <<_ACEOF
11363 /* end confdefs.h. */
11364 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11366 #define $ac_func innocuous_$ac_func
11367
11368 /* System header to define __stub macros and hopefully few prototypes,
11369 which can conflict with char $ac_func (); below.
11370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11371 <limits.h> exists even on freestanding compilers. */
11372
11373 #ifdef __STDC__
11374 # include <limits.h>
11375 #else
11376 # include <assert.h>
11377 #endif
11378
11379 #undef $ac_func
11380
11381 /* Override any GCC internal prototype to avoid an error.
11382 Use char because int might match the return type of a GCC
11383 builtin and then its argument prototype would still apply. */
11384 #ifdef __cplusplus
11385 extern "C"
11386 #endif
11387 char $ac_func ();
11388 /* The GNU C library defines this for functions which it implements
11389 to always fail with ENOSYS. Some functions are actually named
11390 something starting with __ and the normal name is an alias. */
11391 #if defined __stub_$ac_func || defined __stub___$ac_func
11392 choke me
11393 #endif
11394
11395 int
11396 main ()
11397 {
11398 return $ac_func ();
11399 ;
11400 return 0;
11401 }
11402 _ACEOF
11403 rm -f conftest.$ac_objext conftest$ac_exeext
11404 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
11411 ac_status=$?
11412 grep -v '^ *+' conftest.er1 >conftest.err
11413 rm -f conftest.er1
11414 cat conftest.err >&5
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); } && {
11417 test -z "$ac_c_werror_flag" ||
11418 test ! -s conftest.err
11419 } && test -s conftest$ac_exeext &&
11420 $as_test_x conftest$ac_exeext; then
11421 eval "$as_ac_var=yes"
11422 else
11423 echo "$as_me: failed program was:" >&5
11424 sed 's/^/| /' conftest.$ac_ext >&5
11425
11426 eval "$as_ac_var=no"
11427 fi
11428
11429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11430 conftest$ac_exeext conftest.$ac_ext
11431 fi
11432 ac_res=`eval echo '${'$as_ac_var'}'`
11433 { echo "$as_me:$LINENO: result: $ac_res" >&5
11434 echo "${ECHO_T}$ac_res" >&6; }
11435 if test `eval echo '${'$as_ac_var'}'` = yes; then
11436 cat >>confdefs.h <<_ACEOF
11437 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11438 _ACEOF
11439 HAVE_GTK_FILE_CHOOSER=yes
11440 fi
11441 done
11442
11443
11444 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11445 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11446
11447 cat >>confdefs.h <<\_ACEOF
11448 #define HAVE_GTK_FILE_BOTH 1
11449 _ACEOF
11450
11451 fi
11452
11453 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11454 HAVE_GTK_AND_PTHREAD=no
11455
11456 for ac_header in pthread.h
11457 do
11458 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11460 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11463 echo $ECHO_N "(cached) $ECHO_C" >&6
11464 fi
11465 ac_res=`eval echo '${'$as_ac_Header'}'`
11466 { echo "$as_me:$LINENO: result: $ac_res" >&5
11467 echo "${ECHO_T}$ac_res" >&6; }
11468 else
11469 # Is the header compilable?
11470 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11471 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11472 cat >conftest.$ac_ext <<_ACEOF
11473 /* confdefs.h. */
11474 _ACEOF
11475 cat confdefs.h >>conftest.$ac_ext
11476 cat >>conftest.$ac_ext <<_ACEOF
11477 /* end confdefs.h. */
11478 $ac_includes_default
11479 #include <$ac_header>
11480 _ACEOF
11481 rm -f conftest.$ac_objext
11482 if { (ac_try="$ac_compile"
11483 case "(($ac_try" in
11484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11485 *) ac_try_echo=$ac_try;;
11486 esac
11487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11488 (eval "$ac_compile") 2>conftest.er1
11489 ac_status=$?
11490 grep -v '^ *+' conftest.er1 >conftest.err
11491 rm -f conftest.er1
11492 cat conftest.err >&5
11493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494 (exit $ac_status); } && {
11495 test -z "$ac_c_werror_flag" ||
11496 test ! -s conftest.err
11497 } && test -s conftest.$ac_objext; then
11498 ac_header_compiler=yes
11499 else
11500 echo "$as_me: failed program was:" >&5
11501 sed 's/^/| /' conftest.$ac_ext >&5
11502
11503 ac_header_compiler=no
11504 fi
11505
11506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11507 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11508 echo "${ECHO_T}$ac_header_compiler" >&6; }
11509
11510 # Is the header present?
11511 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11512 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11513 cat >conftest.$ac_ext <<_ACEOF
11514 /* confdefs.h. */
11515 _ACEOF
11516 cat confdefs.h >>conftest.$ac_ext
11517 cat >>conftest.$ac_ext <<_ACEOF
11518 /* end confdefs.h. */
11519 #include <$ac_header>
11520 _ACEOF
11521 if { (ac_try="$ac_cpp conftest.$ac_ext"
11522 case "(($ac_try" in
11523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11524 *) ac_try_echo=$ac_try;;
11525 esac
11526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11528 ac_status=$?
11529 grep -v '^ *+' conftest.er1 >conftest.err
11530 rm -f conftest.er1
11531 cat conftest.err >&5
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); } >/dev/null && {
11534 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11535 test ! -s conftest.err
11536 }; then
11537 ac_header_preproc=yes
11538 else
11539 echo "$as_me: failed program was:" >&5
11540 sed 's/^/| /' conftest.$ac_ext >&5
11541
11542 ac_header_preproc=no
11543 fi
11544
11545 rm -f conftest.err conftest.$ac_ext
11546 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11547 echo "${ECHO_T}$ac_header_preproc" >&6; }
11548
11549 # So? What about this header?
11550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11551 yes:no: )
11552 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11553 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11555 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11556 ac_header_preproc=yes
11557 ;;
11558 no:yes:* )
11559 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11560 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11561 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11562 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11563 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11564 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11565 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11566 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11569 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11570 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11571
11572 ;;
11573 esac
11574 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11577 echo $ECHO_N "(cached) $ECHO_C" >&6
11578 else
11579 eval "$as_ac_Header=\$ac_header_preproc"
11580 fi
11581 ac_res=`eval echo '${'$as_ac_Header'}'`
11582 { echo "$as_me:$LINENO: result: $ac_res" >&5
11583 echo "${ECHO_T}$ac_res" >&6; }
11584
11585 fi
11586 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11587 cat >>confdefs.h <<_ACEOF
11588 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11589 _ACEOF
11590
11591 fi
11592
11593 done
11594
11595 if test "$ac_cv_header_pthread_h"; then
11596 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11597 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11598 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11599 echo $ECHO_N "(cached) $ECHO_C" >&6
11600 else
11601 ac_check_lib_save_LIBS=$LIBS
11602 LIBS="-lpthread $LIBS"
11603 cat >conftest.$ac_ext <<_ACEOF
11604 /* confdefs.h. */
11605 _ACEOF
11606 cat confdefs.h >>conftest.$ac_ext
11607 cat >>conftest.$ac_ext <<_ACEOF
11608 /* end confdefs.h. */
11609
11610 /* Override any GCC internal prototype to avoid an error.
11611 Use char because int might match the return type of a GCC
11612 builtin and then its argument prototype would still apply. */
11613 #ifdef __cplusplus
11614 extern "C"
11615 #endif
11616 char pthread_self ();
11617 int
11618 main ()
11619 {
11620 return pthread_self ();
11621 ;
11622 return 0;
11623 }
11624 _ACEOF
11625 rm -f conftest.$ac_objext conftest$ac_exeext
11626 if { (ac_try="$ac_link"
11627 case "(($ac_try" in
11628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11629 *) ac_try_echo=$ac_try;;
11630 esac
11631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11632 (eval "$ac_link") 2>conftest.er1
11633 ac_status=$?
11634 grep -v '^ *+' conftest.er1 >conftest.err
11635 rm -f conftest.er1
11636 cat conftest.err >&5
11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); } && {
11639 test -z "$ac_c_werror_flag" ||
11640 test ! -s conftest.err
11641 } && test -s conftest$ac_exeext &&
11642 $as_test_x conftest$ac_exeext; then
11643 ac_cv_lib_pthread_pthread_self=yes
11644 else
11645 echo "$as_me: failed program was:" >&5
11646 sed 's/^/| /' conftest.$ac_ext >&5
11647
11648 ac_cv_lib_pthread_pthread_self=no
11649 fi
11650
11651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11652 conftest$ac_exeext conftest.$ac_ext
11653 LIBS=$ac_check_lib_save_LIBS
11654 fi
11655 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11656 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11657 if test $ac_cv_lib_pthread_pthread_self = yes; then
11658 HAVE_GTK_AND_PTHREAD=yes
11659 fi
11660
11661 fi
11662 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11663 GTK_LIBS="$GTK_LIBS -lpthread"
11664
11665 cat >>confdefs.h <<\_ACEOF
11666 #define HAVE_GTK_AND_PTHREAD 1
11667 _ACEOF
11668
11669 fi
11670 fi
11671 fi
11672
11673 if test x"${USE_X_TOOLKIT}" = xmaybe; then
11674 if test x"${HAVE_X11R5}" = xyes; then
11675 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11676 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
11677 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11678 echo $ECHO_N "(cached) $ECHO_C" >&6
11679 else
11680 cat >conftest.$ac_ext <<_ACEOF
11681 /* confdefs.h. */
11682 _ACEOF
11683 cat confdefs.h >>conftest.$ac_ext
11684 cat >>conftest.$ac_ext <<_ACEOF
11685 /* end confdefs.h. */
11686
11687 #include <X11/Intrinsic.h>
11688 #include <X11/Xaw/Simple.h>
11689 int
11690 main ()
11691 {
11692
11693 ;
11694 return 0;
11695 }
11696 _ACEOF
11697 rm -f conftest.$ac_objext conftest$ac_exeext
11698 if { (ac_try="$ac_link"
11699 case "(($ac_try" in
11700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11701 *) ac_try_echo=$ac_try;;
11702 esac
11703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11704 (eval "$ac_link") 2>conftest.er1
11705 ac_status=$?
11706 grep -v '^ *+' conftest.er1 >conftest.err
11707 rm -f conftest.er1
11708 cat conftest.err >&5
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); } && {
11711 test -z "$ac_c_werror_flag" ||
11712 test ! -s conftest.err
11713 } && test -s conftest$ac_exeext &&
11714 $as_test_x conftest$ac_exeext; then
11715 emacs_cv_x11_version_5_with_xaw=yes
11716 else
11717 echo "$as_me: failed program was:" >&5
11718 sed 's/^/| /' conftest.$ac_ext >&5
11719
11720 emacs_cv_x11_version_5_with_xaw=no
11721 fi
11722
11723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11724 conftest$ac_exeext conftest.$ac_ext
11725 fi
11726
11727 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11728 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11729 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
11730 USE_X_TOOLKIT=LUCID
11731 else
11732 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11733 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
11734 USE_X_TOOLKIT=none
11735 fi
11736 else
11737 USE_X_TOOLKIT=none
11738 fi
11739 fi
11740
11741 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11742
11743 if test "${USE_X_TOOLKIT}" != "none"; then
11744 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11745 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11746 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11747 echo $ECHO_N "(cached) $ECHO_C" >&6
11748 else
11749 cat >conftest.$ac_ext <<_ACEOF
11750 /* confdefs.h. */
11751 _ACEOF
11752 cat confdefs.h >>conftest.$ac_ext
11753 cat >>conftest.$ac_ext <<_ACEOF
11754 /* end confdefs.h. */
11755 #include <X11/Intrinsic.h>
11756 int
11757 main ()
11758 {
11759 #if XtSpecificationRelease < 6
11760 fail;
11761 #endif
11762
11763 ;
11764 return 0;
11765 }
11766 _ACEOF
11767 rm -f conftest.$ac_objext conftest$ac_exeext
11768 if { (ac_try="$ac_link"
11769 case "(($ac_try" in
11770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11771 *) ac_try_echo=$ac_try;;
11772 esac
11773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11774 (eval "$ac_link") 2>conftest.er1
11775 ac_status=$?
11776 grep -v '^ *+' conftest.er1 >conftest.err
11777 rm -f conftest.er1
11778 cat conftest.err >&5
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); } && {
11781 test -z "$ac_c_werror_flag" ||
11782 test ! -s conftest.err
11783 } && test -s conftest$ac_exeext &&
11784 $as_test_x conftest$ac_exeext; then
11785 emacs_cv_x11_toolkit_version_6=yes
11786 else
11787 echo "$as_me: failed program was:" >&5
11788 sed 's/^/| /' conftest.$ac_ext >&5
11789
11790 emacs_cv_x11_toolkit_version_6=no
11791 fi
11792
11793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11794 conftest$ac_exeext conftest.$ac_ext
11795 fi
11796
11797 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11798 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11799 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11800 echo "${ECHO_T}6 or newer" >&6; }
11801
11802 cat >>confdefs.h <<\_ACEOF
11803 #define HAVE_X11XTR6 1
11804 _ACEOF
11805
11806 else
11807 { echo "$as_me:$LINENO: result: before 6" >&5
11808 echo "${ECHO_T}before 6" >&6; }
11809 fi
11810
11811 OLDLIBS="$LIBS"
11812 if test x$HAVE_X11XTR6 = xyes; then
11813 LIBS="-lXt -lSM -lICE $LIBS"
11814 else
11815 LIBS="-lXt $LIBS"
11816 fi
11817
11818 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11819 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11820 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11821 echo $ECHO_N "(cached) $ECHO_C" >&6
11822 else
11823 ac_check_lib_save_LIBS=$LIBS
11824 LIBS="-lXmu $LIBS"
11825 cat >conftest.$ac_ext <<_ACEOF
11826 /* confdefs.h. */
11827 _ACEOF
11828 cat confdefs.h >>conftest.$ac_ext
11829 cat >>conftest.$ac_ext <<_ACEOF
11830 /* end confdefs.h. */
11831
11832 /* Override any GCC internal prototype to avoid an error.
11833 Use char because int might match the return type of a GCC
11834 builtin and then its argument prototype would still apply. */
11835 #ifdef __cplusplus
11836 extern "C"
11837 #endif
11838 char XmuConvertStandardSelection ();
11839 int
11840 main ()
11841 {
11842 return XmuConvertStandardSelection ();
11843 ;
11844 return 0;
11845 }
11846 _ACEOF
11847 rm -f conftest.$ac_objext conftest$ac_exeext
11848 if { (ac_try="$ac_link"
11849 case "(($ac_try" in
11850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11851 *) ac_try_echo=$ac_try;;
11852 esac
11853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11854 (eval "$ac_link") 2>conftest.er1
11855 ac_status=$?
11856 grep -v '^ *+' conftest.er1 >conftest.err
11857 rm -f conftest.er1
11858 cat conftest.err >&5
11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); } && {
11861 test -z "$ac_c_werror_flag" ||
11862 test ! -s conftest.err
11863 } && test -s conftest$ac_exeext &&
11864 $as_test_x conftest$ac_exeext; then
11865 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11866 else
11867 echo "$as_me: failed program was:" >&5
11868 sed 's/^/| /' conftest.$ac_ext >&5
11869
11870 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11871 fi
11872
11873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11874 conftest$ac_exeext conftest.$ac_ext
11875 LIBS=$ac_check_lib_save_LIBS
11876 fi
11877 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11878 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11879 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11880 cat >>confdefs.h <<_ACEOF
11881 #define HAVE_LIBXMU 1
11882 _ACEOF
11883
11884 LIBS="-lXmu $LIBS"
11885
11886 fi
11887
11888 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11889 fi
11890
11891 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11892 if test "${HAVE_X11}" = "yes"; then
11893 if test "${USE_X_TOOLKIT}" != "none"; then
11894
11895 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11896 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
11897 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11898 echo $ECHO_N "(cached) $ECHO_C" >&6
11899 else
11900 ac_check_lib_save_LIBS=$LIBS
11901 LIBS="-lXext $LIBS"
11902 cat >conftest.$ac_ext <<_ACEOF
11903 /* confdefs.h. */
11904 _ACEOF
11905 cat confdefs.h >>conftest.$ac_ext
11906 cat >>conftest.$ac_ext <<_ACEOF
11907 /* end confdefs.h. */
11908
11909 /* Override any GCC internal prototype to avoid an error.
11910 Use char because int might match the return type of a GCC
11911 builtin and then its argument prototype would still apply. */
11912 #ifdef __cplusplus
11913 extern "C"
11914 #endif
11915 char XShapeQueryExtension ();
11916 int
11917 main ()
11918 {
11919 return XShapeQueryExtension ();
11920 ;
11921 return 0;
11922 }
11923 _ACEOF
11924 rm -f conftest.$ac_objext conftest$ac_exeext
11925 if { (ac_try="$ac_link"
11926 case "(($ac_try" in
11927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11928 *) ac_try_echo=$ac_try;;
11929 esac
11930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11931 (eval "$ac_link") 2>conftest.er1
11932 ac_status=$?
11933 grep -v '^ *+' conftest.er1 >conftest.err
11934 rm -f conftest.er1
11935 cat conftest.err >&5
11936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937 (exit $ac_status); } && {
11938 test -z "$ac_c_werror_flag" ||
11939 test ! -s conftest.err
11940 } && test -s conftest$ac_exeext &&
11941 $as_test_x conftest$ac_exeext; then
11942 ac_cv_lib_Xext_XShapeQueryExtension=yes
11943 else
11944 echo "$as_me: failed program was:" >&5
11945 sed 's/^/| /' conftest.$ac_ext >&5
11946
11947 ac_cv_lib_Xext_XShapeQueryExtension=no
11948 fi
11949
11950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11951 conftest$ac_exeext conftest.$ac_ext
11952 LIBS=$ac_check_lib_save_LIBS
11953 fi
11954 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11955 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11956 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11957 cat >>confdefs.h <<_ACEOF
11958 #define HAVE_LIBXEXT 1
11959 _ACEOF
11960
11961 LIBS="-lXext $LIBS"
11962
11963 fi
11964
11965 fi
11966 fi
11967
11968 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11969 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11970 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
11971 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11972 echo $ECHO_N "(cached) $ECHO_C" >&6
11973 else
11974 cat >conftest.$ac_ext <<_ACEOF
11975 /* confdefs.h. */
11976 _ACEOF
11977 cat confdefs.h >>conftest.$ac_ext
11978 cat >>conftest.$ac_ext <<_ACEOF
11979 /* end confdefs.h. */
11980 #include <Xm/Xm.h>
11981 int
11982 main ()
11983 {
11984 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11985 int x = 5;
11986 #else
11987 Motif version prior to 2.1.
11988 #endif
11989 ;
11990 return 0;
11991 }
11992 _ACEOF
11993 rm -f conftest.$ac_objext
11994 if { (ac_try="$ac_compile"
11995 case "(($ac_try" in
11996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11997 *) ac_try_echo=$ac_try;;
11998 esac
11999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12000 (eval "$ac_compile") 2>conftest.er1
12001 ac_status=$?
12002 grep -v '^ *+' conftest.er1 >conftest.err
12003 rm -f conftest.er1
12004 cat conftest.err >&5
12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); } && {
12007 test -z "$ac_c_werror_flag" ||
12008 test ! -s conftest.err
12009 } && test -s conftest.$ac_objext; then
12010 emacs_cv_motif_version_2_1=yes
12011 else
12012 echo "$as_me: failed program was:" >&5
12013 sed 's/^/| /' conftest.$ac_ext >&5
12014
12015 emacs_cv_motif_version_2_1=no
12016 fi
12017
12018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12019 fi
12020 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12021 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12022 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12023 if test $emacs_cv_motif_version_2_1 = yes; then
12024 HAVE_LIBXP=no
12025
12026 cat >>confdefs.h <<\_ACEOF
12027 #define HAVE_MOTIF_2_1 1
12028 _ACEOF
12029
12030 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12031 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12032 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12033 echo $ECHO_N "(cached) $ECHO_C" >&6
12034 else
12035 ac_check_lib_save_LIBS=$LIBS
12036 LIBS="-lXp $LIBS"
12037 cat >conftest.$ac_ext <<_ACEOF
12038 /* confdefs.h. */
12039 _ACEOF
12040 cat confdefs.h >>conftest.$ac_ext
12041 cat >>conftest.$ac_ext <<_ACEOF
12042 /* end confdefs.h. */
12043
12044 /* Override any GCC internal prototype to avoid an error.
12045 Use char because int might match the return type of a GCC
12046 builtin and then its argument prototype would still apply. */
12047 #ifdef __cplusplus
12048 extern "C"
12049 #endif
12050 char XpCreateContext ();
12051 int
12052 main ()
12053 {
12054 return XpCreateContext ();
12055 ;
12056 return 0;
12057 }
12058 _ACEOF
12059 rm -f conftest.$ac_objext conftest$ac_exeext
12060 if { (ac_try="$ac_link"
12061 case "(($ac_try" in
12062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12063 *) ac_try_echo=$ac_try;;
12064 esac
12065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12066 (eval "$ac_link") 2>conftest.er1
12067 ac_status=$?
12068 grep -v '^ *+' conftest.er1 >conftest.err
12069 rm -f conftest.er1
12070 cat conftest.err >&5
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); } && {
12073 test -z "$ac_c_werror_flag" ||
12074 test ! -s conftest.err
12075 } && test -s conftest$ac_exeext &&
12076 $as_test_x conftest$ac_exeext; then
12077 ac_cv_lib_Xp_XpCreateContext=yes
12078 else
12079 echo "$as_me: failed program was:" >&5
12080 sed 's/^/| /' conftest.$ac_ext >&5
12081
12082 ac_cv_lib_Xp_XpCreateContext=no
12083 fi
12084
12085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12086 conftest$ac_exeext conftest.$ac_ext
12087 LIBS=$ac_check_lib_save_LIBS
12088 fi
12089 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12090 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12091 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12092 HAVE_LIBXP=yes
12093 fi
12094
12095 if test ${HAVE_LIBXP} = yes; then
12096
12097 cat >>confdefs.h <<\_ACEOF
12098 #define HAVE_LIBXP 1
12099 _ACEOF
12100
12101 fi
12102 else
12103 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12104 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12105 if test "${emacs_cv_lesstif+set}" = set; then
12106 echo $ECHO_N "(cached) $ECHO_C" >&6
12107 else
12108 # We put this in CFLAGS temporarily to precede other -I options
12109 # that might be in CFLAGS temporarily.
12110 # We put this in CPPFLAGS where it precedes the other -I options.
12111 OLD_CPPFLAGS=$CPPFLAGS
12112 OLD_CFLAGS=$CFLAGS
12113 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12114 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12115 cat >conftest.$ac_ext <<_ACEOF
12116 /* confdefs.h. */
12117 _ACEOF
12118 cat confdefs.h >>conftest.$ac_ext
12119 cat >>conftest.$ac_ext <<_ACEOF
12120 /* end confdefs.h. */
12121 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12122 int
12123 main ()
12124 {
12125 int x = 5;
12126 ;
12127 return 0;
12128 }
12129 _ACEOF
12130 rm -f conftest.$ac_objext
12131 if { (ac_try="$ac_compile"
12132 case "(($ac_try" in
12133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12134 *) ac_try_echo=$ac_try;;
12135 esac
12136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12137 (eval "$ac_compile") 2>conftest.er1
12138 ac_status=$?
12139 grep -v '^ *+' conftest.er1 >conftest.err
12140 rm -f conftest.er1
12141 cat conftest.err >&5
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); } && {
12144 test -z "$ac_c_werror_flag" ||
12145 test ! -s conftest.err
12146 } && test -s conftest.$ac_objext; then
12147 emacs_cv_lesstif=yes
12148 else
12149 echo "$as_me: failed program was:" >&5
12150 sed 's/^/| /' conftest.$ac_ext >&5
12151
12152 emacs_cv_lesstif=no
12153 fi
12154
12155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12156 fi
12157 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12158 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12159 if test $emacs_cv_lesstif = yes; then
12160 # Make sure this -I option remains in CPPFLAGS after it is set
12161 # back to REAL_CPPFLAGS.
12162 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12163 # have those other -I options anyway. Ultimately, having this
12164 # directory ultimately in CPPFLAGS will be enough.
12165 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12166 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12167 else
12168 CFLAGS=$OLD_CFLAGS
12169 CPPFLAGS=$OLD_CPPFLAGS
12170 fi
12171 fi
12172 fi
12173
12174 ### Is -lXaw3d available?
12175 HAVE_XAW3D=no
12176 if test "${HAVE_X11}" = "yes"; then
12177 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12178 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12179 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12180 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12181 echo $ECHO_N "(cached) $ECHO_C" >&6
12182 else
12183 cat >conftest.$ac_ext <<_ACEOF
12184 /* confdefs.h. */
12185 _ACEOF
12186 cat confdefs.h >>conftest.$ac_ext
12187 cat >>conftest.$ac_ext <<_ACEOF
12188 /* end confdefs.h. */
12189 #include <X11/Xaw3d/Scrollbar.h>
12190 _ACEOF
12191 if { (ac_try="$ac_cpp conftest.$ac_ext"
12192 case "(($ac_try" in
12193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12194 *) ac_try_echo=$ac_try;;
12195 esac
12196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12198 ac_status=$?
12199 grep -v '^ *+' conftest.er1 >conftest.err
12200 rm -f conftest.er1
12201 cat conftest.err >&5
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); } >/dev/null && {
12204 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12205 test ! -s conftest.err
12206 }; then
12207 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
12208 else
12209 echo "$as_me: failed program was:" >&5
12210 sed 's/^/| /' conftest.$ac_ext >&5
12211
12212 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
12213 fi
12214
12215 rm -f conftest.err conftest.$ac_ext
12216 fi
12217 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12218 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12219 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12220 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12221 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12222 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12223 echo $ECHO_N "(cached) $ECHO_C" >&6
12224 else
12225 ac_check_lib_save_LIBS=$LIBS
12226 LIBS="-lXaw3d $LIBS"
12227 cat >conftest.$ac_ext <<_ACEOF
12228 /* confdefs.h. */
12229 _ACEOF
12230 cat confdefs.h >>conftest.$ac_ext
12231 cat >>conftest.$ac_ext <<_ACEOF
12232 /* end confdefs.h. */
12233
12234 /* Override any GCC internal prototype to avoid an error.
12235 Use char because int might match the return type of a GCC
12236 builtin and then its argument prototype would still apply. */
12237 #ifdef __cplusplus
12238 extern "C"
12239 #endif
12240 char XawScrollbarSetThumb ();
12241 int
12242 main ()
12243 {
12244 return XawScrollbarSetThumb ();
12245 ;
12246 return 0;
12247 }
12248 _ACEOF
12249 rm -f conftest.$ac_objext conftest$ac_exeext
12250 if { (ac_try="$ac_link"
12251 case "(($ac_try" in
12252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12253 *) ac_try_echo=$ac_try;;
12254 esac
12255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12256 (eval "$ac_link") 2>conftest.er1
12257 ac_status=$?
12258 grep -v '^ *+' conftest.er1 >conftest.err
12259 rm -f conftest.er1
12260 cat conftest.err >&5
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); } && {
12263 test -z "$ac_c_werror_flag" ||
12264 test ! -s conftest.err
12265 } && test -s conftest$ac_exeext &&
12266 $as_test_x conftest$ac_exeext; then
12267 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12268 else
12269 echo "$as_me: failed program was:" >&5
12270 sed 's/^/| /' conftest.$ac_ext >&5
12271
12272 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12273 fi
12274
12275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12276 conftest$ac_exeext conftest.$ac_ext
12277 LIBS=$ac_check_lib_save_LIBS
12278 fi
12279 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12280 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12281 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12282 HAVE_XAW3D=yes
12283 fi
12284
12285 fi
12286
12287
12288 if test "${HAVE_XAW3D}" = "yes"; then
12289
12290 cat >>confdefs.h <<\_ACEOF
12291 #define HAVE_XAW3D 1
12292 _ACEOF
12293
12294 fi
12295 fi
12296 fi
12297
12298
12299
12300 USE_TOOLKIT_SCROLL_BARS=no
12301 if test "${with_toolkit_scroll_bars}" != "no"; then
12302 if test "${USE_X_TOOLKIT}" != "none"; then
12303 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12304 cat >>confdefs.h <<\_ACEOF
12305 #define USE_TOOLKIT_SCROLL_BARS 1
12306 _ACEOF
12307
12308 HAVE_XAW3D=no
12309 USE_TOOLKIT_SCROLL_BARS=yes
12310 elif test "${HAVE_XAW3D}" = "yes"; then
12311 cat >>confdefs.h <<\_ACEOF
12312 #define USE_TOOLKIT_SCROLL_BARS 1
12313 _ACEOF
12314
12315 USE_TOOLKIT_SCROLL_BARS=yes
12316 fi
12317 elif test "${HAVE_GTK}" = "yes"; then
12318 cat >>confdefs.h <<\_ACEOF
12319 #define USE_TOOLKIT_SCROLL_BARS 1
12320 _ACEOF
12321
12322 USE_TOOLKIT_SCROLL_BARS=yes
12323 elif test "${HAVE_CARBON}" = "yes"; then
12324 cat >>confdefs.h <<\_ACEOF
12325 #define USE_TOOLKIT_SCROLL_BARS 1
12326 _ACEOF
12327
12328 USE_TOOLKIT_SCROLL_BARS=yes
12329 fi
12330 fi
12331
12332 cat >conftest.$ac_ext <<_ACEOF
12333 /* confdefs.h. */
12334 _ACEOF
12335 cat confdefs.h >>conftest.$ac_ext
12336 cat >>conftest.$ac_ext <<_ACEOF
12337 /* end confdefs.h. */
12338
12339 #include <X11/Xlib.h>
12340 #include <X11/Xresource.h>
12341 int
12342 main ()
12343 {
12344 XIMProc callback;
12345 ;
12346 return 0;
12347 }
12348 _ACEOF
12349 rm -f conftest.$ac_objext
12350 if { (ac_try="$ac_compile"
12351 case "(($ac_try" in
12352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12353 *) ac_try_echo=$ac_try;;
12354 esac
12355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12356 (eval "$ac_compile") 2>conftest.er1
12357 ac_status=$?
12358 grep -v '^ *+' conftest.er1 >conftest.err
12359 rm -f conftest.er1
12360 cat conftest.err >&5
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); } && {
12363 test -z "$ac_c_werror_flag" ||
12364 test ! -s conftest.err
12365 } && test -s conftest.$ac_objext; then
12366 HAVE_XIM=yes
12367
12368 cat >>confdefs.h <<\_ACEOF
12369 #define HAVE_XIM 1
12370 _ACEOF
12371
12372 else
12373 echo "$as_me: failed program was:" >&5
12374 sed 's/^/| /' conftest.$ac_ext >&5
12375
12376 HAVE_XIM=no
12377 fi
12378
12379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12380
12381
12382 if test "${with_xim}" != "no"; then
12383
12384 cat >>confdefs.h <<\_ACEOF
12385 #define USE_XIM 1
12386 _ACEOF
12387
12388 fi
12389
12390
12391 if test "${HAVE_XIM}" != "no"; then
12392 late_CFLAGS=$CFLAGS
12393 if test "$GCC" = yes; then
12394 CFLAGS="$CFLAGS --pedantic-errors"
12395 fi
12396 cat >conftest.$ac_ext <<_ACEOF
12397 /* confdefs.h. */
12398 _ACEOF
12399 cat confdefs.h >>conftest.$ac_ext
12400 cat >>conftest.$ac_ext <<_ACEOF
12401 /* end confdefs.h. */
12402
12403 #include <X11/Xlib.h>
12404 #include <X11/Xresource.h>
12405 int
12406 main ()
12407 {
12408 Display *display;
12409 XrmDatabase db;
12410 char *res_name;
12411 char *res_class;
12412 XIMProc callback;
12413 XPointer *client_data;
12414 #ifndef __GNUC__
12415 /* If we're not using GCC, it's probably not XFree86, and this is
12416 probably right, but we can't use something like --pedantic-errors. */
12417 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12418 char*, XIMProc, XPointer*);
12419 #endif
12420 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12421 client_data);
12422 ;
12423 return 0;
12424 }
12425 _ACEOF
12426 rm -f conftest.$ac_objext
12427 if { (ac_try="$ac_compile"
12428 case "(($ac_try" in
12429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12430 *) ac_try_echo=$ac_try;;
12431 esac
12432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12433 (eval "$ac_compile") 2>conftest.er1
12434 ac_status=$?
12435 grep -v '^ *+' conftest.er1 >conftest.err
12436 rm -f conftest.er1
12437 cat conftest.err >&5
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); } && {
12440 test -z "$ac_c_werror_flag" ||
12441 test ! -s conftest.err
12442 } && test -s conftest.$ac_objext; then
12443 emacs_cv_arg6_star=yes
12444 else
12445 echo "$as_me: failed program was:" >&5
12446 sed 's/^/| /' conftest.$ac_ext >&5
12447
12448
12449 fi
12450
12451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12452
12453 if test "$emacs_cv_arg6_star" = yes; then
12454 cat >>confdefs.h <<\_ACEOF
12455 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12456 _ACEOF
12457
12458 else
12459 cat >>confdefs.h <<\_ACEOF
12460 #define XRegisterIMInstantiateCallback_arg6 XPointer
12461 _ACEOF
12462
12463 fi
12464 CFLAGS=$late_CFLAGS
12465 fi
12466
12467 ### Use -lXpm if available, unless `--with-xpm=no'.
12468 HAVE_XPM=no
12469 if test "${HAVE_X11}" = "yes"; then
12470 if test "${with_xpm}" != "no"; then
12471 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12472 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12473 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12474 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12475 echo $ECHO_N "(cached) $ECHO_C" >&6
12476 fi
12477 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12478 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12479 else
12480 # Is the header compilable?
12481 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12482 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
12483 cat >conftest.$ac_ext <<_ACEOF
12484 /* confdefs.h. */
12485 _ACEOF
12486 cat confdefs.h >>conftest.$ac_ext
12487 cat >>conftest.$ac_ext <<_ACEOF
12488 /* end confdefs.h. */
12489 $ac_includes_default
12490 #include <X11/xpm.h>
12491 _ACEOF
12492 rm -f conftest.$ac_objext
12493 if { (ac_try="$ac_compile"
12494 case "(($ac_try" in
12495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12496 *) ac_try_echo=$ac_try;;
12497 esac
12498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12499 (eval "$ac_compile") 2>conftest.er1
12500 ac_status=$?
12501 grep -v '^ *+' conftest.er1 >conftest.err
12502 rm -f conftest.er1
12503 cat conftest.err >&5
12504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505 (exit $ac_status); } && {
12506 test -z "$ac_c_werror_flag" ||
12507 test ! -s conftest.err
12508 } && test -s conftest.$ac_objext; then
12509 ac_header_compiler=yes
12510 else
12511 echo "$as_me: failed program was:" >&5
12512 sed 's/^/| /' conftest.$ac_ext >&5
12513
12514 ac_header_compiler=no
12515 fi
12516
12517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12518 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12519 echo "${ECHO_T}$ac_header_compiler" >&6; }
12520
12521 # Is the header present?
12522 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12523 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12524 cat >conftest.$ac_ext <<_ACEOF
12525 /* confdefs.h. */
12526 _ACEOF
12527 cat confdefs.h >>conftest.$ac_ext
12528 cat >>conftest.$ac_ext <<_ACEOF
12529 /* end confdefs.h. */
12530 #include <X11/xpm.h>
12531 _ACEOF
12532 if { (ac_try="$ac_cpp conftest.$ac_ext"
12533 case "(($ac_try" in
12534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12535 *) ac_try_echo=$ac_try;;
12536 esac
12537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12539 ac_status=$?
12540 grep -v '^ *+' conftest.er1 >conftest.err
12541 rm -f conftest.er1
12542 cat conftest.err >&5
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); } >/dev/null && {
12545 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12546 test ! -s conftest.err
12547 }; then
12548 ac_header_preproc=yes
12549 else
12550 echo "$as_me: failed program was:" >&5
12551 sed 's/^/| /' conftest.$ac_ext >&5
12552
12553 ac_header_preproc=no
12554 fi
12555
12556 rm -f conftest.err conftest.$ac_ext
12557 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12558 echo "${ECHO_T}$ac_header_preproc" >&6; }
12559
12560 # So? What about this header?
12561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12562 yes:no: )
12563 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12564 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12565 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12566 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12567 ac_header_preproc=yes
12568 ;;
12569 no:yes:* )
12570 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12571 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12572 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12573 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12574 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12575 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12576 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12577 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12578 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12579 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12580 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12581 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12582
12583 ;;
12584 esac
12585 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12586 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12587 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12588 echo $ECHO_N "(cached) $ECHO_C" >&6
12589 else
12590 ac_cv_header_X11_xpm_h=$ac_header_preproc
12591 fi
12592 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12593 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12594
12595 fi
12596 if test $ac_cv_header_X11_xpm_h = yes; then
12597 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12598 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
12599 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12600 echo $ECHO_N "(cached) $ECHO_C" >&6
12601 else
12602 ac_check_lib_save_LIBS=$LIBS
12603 LIBS="-lXpm -lX11 $LIBS"
12604 cat >conftest.$ac_ext <<_ACEOF
12605 /* confdefs.h. */
12606 _ACEOF
12607 cat confdefs.h >>conftest.$ac_ext
12608 cat >>conftest.$ac_ext <<_ACEOF
12609 /* end confdefs.h. */
12610
12611 /* Override any GCC internal prototype to avoid an error.
12612 Use char because int might match the return type of a GCC
12613 builtin and then its argument prototype would still apply. */
12614 #ifdef __cplusplus
12615 extern "C"
12616 #endif
12617 char XpmReadFileToPixmap ();
12618 int
12619 main ()
12620 {
12621 return XpmReadFileToPixmap ();
12622 ;
12623 return 0;
12624 }
12625 _ACEOF
12626 rm -f conftest.$ac_objext conftest$ac_exeext
12627 if { (ac_try="$ac_link"
12628 case "(($ac_try" in
12629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12630 *) ac_try_echo=$ac_try;;
12631 esac
12632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12633 (eval "$ac_link") 2>conftest.er1
12634 ac_status=$?
12635 grep -v '^ *+' conftest.er1 >conftest.err
12636 rm -f conftest.er1
12637 cat conftest.err >&5
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); } && {
12640 test -z "$ac_c_werror_flag" ||
12641 test ! -s conftest.err
12642 } && test -s conftest$ac_exeext &&
12643 $as_test_x conftest$ac_exeext; then
12644 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12645 else
12646 echo "$as_me: failed program was:" >&5
12647 sed 's/^/| /' conftest.$ac_ext >&5
12648
12649 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12650 fi
12651
12652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12653 conftest$ac_exeext conftest.$ac_ext
12654 LIBS=$ac_check_lib_save_LIBS
12655 fi
12656 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12657 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12658 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
12659 HAVE_XPM=yes
12660 fi
12661
12662 fi
12663
12664
12665 if test "${HAVE_XPM}" = "yes"; then
12666 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
12667 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
12668 cat >conftest.$ac_ext <<_ACEOF
12669 /* confdefs.h. */
12670 _ACEOF
12671 cat confdefs.h >>conftest.$ac_ext
12672 cat >>conftest.$ac_ext <<_ACEOF
12673 /* end confdefs.h. */
12674 #include "X11/xpm.h"
12675 #ifndef XpmReturnAllocPixels
12676 no_return_alloc_pixels
12677 #endif
12678
12679 _ACEOF
12680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12681 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
12682 HAVE_XPM=no
12683 else
12684 HAVE_XPM=yes
12685 fi
12686 rm -f conftest*
12687
12688
12689 if test "${HAVE_XPM}" = "yes"; then
12690 { echo "$as_me:$LINENO: result: yes" >&5
12691 echo "${ECHO_T}yes" >&6; }
12692 else
12693 { echo "$as_me:$LINENO: result: no" >&5
12694 echo "${ECHO_T}no" >&6; }
12695 fi
12696 fi
12697 fi
12698
12699 if test "${HAVE_XPM}" = "yes"; then
12700
12701 cat >>confdefs.h <<\_ACEOF
12702 #define HAVE_XPM 1
12703 _ACEOF
12704
12705 fi
12706 fi
12707
12708 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12709 HAVE_JPEG=no
12710 if test "${HAVE_X11}" = "yes"; then
12711 if test "${with_jpeg}" != "no"; then
12712 if test "${ac_cv_header_jerror_h+set}" = set; then
12713 { echo "$as_me:$LINENO: checking for jerror.h" >&5
12714 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
12715 if test "${ac_cv_header_jerror_h+set}" = set; then
12716 echo $ECHO_N "(cached) $ECHO_C" >&6
12717 fi
12718 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12719 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
12720 else
12721 # Is the header compilable?
12722 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
12723 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
12724 cat >conftest.$ac_ext <<_ACEOF
12725 /* confdefs.h. */
12726 _ACEOF
12727 cat confdefs.h >>conftest.$ac_ext
12728 cat >>conftest.$ac_ext <<_ACEOF
12729 /* end confdefs.h. */
12730 $ac_includes_default
12731 #include <jerror.h>
12732 _ACEOF
12733 rm -f conftest.$ac_objext
12734 if { (ac_try="$ac_compile"
12735 case "(($ac_try" in
12736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12737 *) ac_try_echo=$ac_try;;
12738 esac
12739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12740 (eval "$ac_compile") 2>conftest.er1
12741 ac_status=$?
12742 grep -v '^ *+' conftest.er1 >conftest.err
12743 rm -f conftest.er1
12744 cat conftest.err >&5
12745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746 (exit $ac_status); } && {
12747 test -z "$ac_c_werror_flag" ||
12748 test ! -s conftest.err
12749 } && test -s conftest.$ac_objext; then
12750 ac_header_compiler=yes
12751 else
12752 echo "$as_me: failed program was:" >&5
12753 sed 's/^/| /' conftest.$ac_ext >&5
12754
12755 ac_header_compiler=no
12756 fi
12757
12758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12759 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12760 echo "${ECHO_T}$ac_header_compiler" >&6; }
12761
12762 # Is the header present?
12763 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
12764 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
12765 cat >conftest.$ac_ext <<_ACEOF
12766 /* confdefs.h. */
12767 _ACEOF
12768 cat confdefs.h >>conftest.$ac_ext
12769 cat >>conftest.$ac_ext <<_ACEOF
12770 /* end confdefs.h. */
12771 #include <jerror.h>
12772 _ACEOF
12773 if { (ac_try="$ac_cpp conftest.$ac_ext"
12774 case "(($ac_try" in
12775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12776 *) ac_try_echo=$ac_try;;
12777 esac
12778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12780 ac_status=$?
12781 grep -v '^ *+' conftest.er1 >conftest.err
12782 rm -f conftest.er1
12783 cat conftest.err >&5
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); } >/dev/null && {
12786 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12787 test ! -s conftest.err
12788 }; then
12789 ac_header_preproc=yes
12790 else
12791 echo "$as_me: failed program was:" >&5
12792 sed 's/^/| /' conftest.$ac_ext >&5
12793
12794 ac_header_preproc=no
12795 fi
12796
12797 rm -f conftest.err conftest.$ac_ext
12798 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12799 echo "${ECHO_T}$ac_header_preproc" >&6; }
12800
12801 # So? What about this header?
12802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12803 yes:no: )
12804 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
12805 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12806 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
12807 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
12808 ac_header_preproc=yes
12809 ;;
12810 no:yes:* )
12811 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
12812 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
12813 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
12814 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
12815 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
12816 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
12817 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
12818 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
12819 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
12820 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
12821 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
12822 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
12823
12824 ;;
12825 esac
12826 { echo "$as_me:$LINENO: checking for jerror.h" >&5
12827 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
12828 if test "${ac_cv_header_jerror_h+set}" = set; then
12829 echo $ECHO_N "(cached) $ECHO_C" >&6
12830 else
12831 ac_cv_header_jerror_h=$ac_header_preproc
12832 fi
12833 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12834 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
12835
12836 fi
12837 if test $ac_cv_header_jerror_h = yes; then
12838 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
12839 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
12840 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
12841 echo $ECHO_N "(cached) $ECHO_C" >&6
12842 else
12843 ac_check_lib_save_LIBS=$LIBS
12844 LIBS="-ljpeg $LIBS"
12845 cat >conftest.$ac_ext <<_ACEOF
12846 /* confdefs.h. */
12847 _ACEOF
12848 cat confdefs.h >>conftest.$ac_ext
12849 cat >>conftest.$ac_ext <<_ACEOF
12850 /* end confdefs.h. */
12851
12852 /* Override any GCC internal prototype to avoid an error.
12853 Use char because int might match the return type of a GCC
12854 builtin and then its argument prototype would still apply. */
12855 #ifdef __cplusplus
12856 extern "C"
12857 #endif
12858 char jpeg_destroy_compress ();
12859 int
12860 main ()
12861 {
12862 return jpeg_destroy_compress ();
12863 ;
12864 return 0;
12865 }
12866 _ACEOF
12867 rm -f conftest.$ac_objext conftest$ac_exeext
12868 if { (ac_try="$ac_link"
12869 case "(($ac_try" in
12870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12871 *) ac_try_echo=$ac_try;;
12872 esac
12873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12874 (eval "$ac_link") 2>conftest.er1
12875 ac_status=$?
12876 grep -v '^ *+' conftest.er1 >conftest.err
12877 rm -f conftest.er1
12878 cat conftest.err >&5
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); } && {
12881 test -z "$ac_c_werror_flag" ||
12882 test ! -s conftest.err
12883 } && test -s conftest$ac_exeext &&
12884 $as_test_x conftest$ac_exeext; then
12885 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12886 else
12887 echo "$as_me: failed program was:" >&5
12888 sed 's/^/| /' conftest.$ac_ext >&5
12889
12890 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12891 fi
12892
12893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12894 conftest$ac_exeext conftest.$ac_ext
12895 LIBS=$ac_check_lib_save_LIBS
12896 fi
12897 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12898 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12899 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
12900 HAVE_JPEG=yes
12901 fi
12902
12903 fi
12904
12905
12906 fi
12907
12908
12909 if test "${HAVE_JPEG}" = "yes"; then
12910 cat >>confdefs.h <<\_ACEOF
12911 #define HAVE_JPEG 1
12912 _ACEOF
12913
12914 cat >conftest.$ac_ext <<_ACEOF
12915 /* confdefs.h. */
12916 _ACEOF
12917 cat confdefs.h >>conftest.$ac_ext
12918 cat >>conftest.$ac_ext <<_ACEOF
12919 /* end confdefs.h. */
12920 #include <jpeglib.h>
12921 version=JPEG_LIB_VERSION
12922
12923 _ACEOF
12924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12925 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
12926 cat >>confdefs.h <<\_ACEOF
12927 #define HAVE_JPEG 1
12928 _ACEOF
12929
12930 else
12931 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
12932 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12933 HAVE_JPEG=no
12934 fi
12935 rm -f conftest*
12936
12937 fi
12938 fi
12939
12940 ### Use -lpng if available, unless `--with-png=no'.
12941 HAVE_PNG=no
12942 if test "${HAVE_X11}" = "yes"; then
12943 if test "${with_png}" != "no"; then
12944 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12945 # in /usr/include/libpng.
12946
12947
12948 for ac_header in png.h libpng/png.h
12949 do
12950 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12952 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12955 echo $ECHO_N "(cached) $ECHO_C" >&6
12956 fi
12957 ac_res=`eval echo '${'$as_ac_Header'}'`
12958 { echo "$as_me:$LINENO: result: $ac_res" >&5
12959 echo "${ECHO_T}$ac_res" >&6; }
12960 else
12961 # Is the header compilable?
12962 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12963 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12964 cat >conftest.$ac_ext <<_ACEOF
12965 /* confdefs.h. */
12966 _ACEOF
12967 cat confdefs.h >>conftest.$ac_ext
12968 cat >>conftest.$ac_ext <<_ACEOF
12969 /* end confdefs.h. */
12970 $ac_includes_default
12971 #include <$ac_header>
12972 _ACEOF
12973 rm -f conftest.$ac_objext
12974 if { (ac_try="$ac_compile"
12975 case "(($ac_try" in
12976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12977 *) ac_try_echo=$ac_try;;
12978 esac
12979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12980 (eval "$ac_compile") 2>conftest.er1
12981 ac_status=$?
12982 grep -v '^ *+' conftest.er1 >conftest.err
12983 rm -f conftest.er1
12984 cat conftest.err >&5
12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); } && {
12987 test -z "$ac_c_werror_flag" ||
12988 test ! -s conftest.err
12989 } && test -s conftest.$ac_objext; then
12990 ac_header_compiler=yes
12991 else
12992 echo "$as_me: failed program was:" >&5
12993 sed 's/^/| /' conftest.$ac_ext >&5
12994
12995 ac_header_compiler=no
12996 fi
12997
12998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12999 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13000 echo "${ECHO_T}$ac_header_compiler" >&6; }
13001
13002 # Is the header present?
13003 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13004 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13005 cat >conftest.$ac_ext <<_ACEOF
13006 /* confdefs.h. */
13007 _ACEOF
13008 cat confdefs.h >>conftest.$ac_ext
13009 cat >>conftest.$ac_ext <<_ACEOF
13010 /* end confdefs.h. */
13011 #include <$ac_header>
13012 _ACEOF
13013 if { (ac_try="$ac_cpp conftest.$ac_ext"
13014 case "(($ac_try" in
13015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13016 *) ac_try_echo=$ac_try;;
13017 esac
13018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13019 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13020 ac_status=$?
13021 grep -v '^ *+' conftest.er1 >conftest.err
13022 rm -f conftest.er1
13023 cat conftest.err >&5
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); } >/dev/null && {
13026 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13027 test ! -s conftest.err
13028 }; then
13029 ac_header_preproc=yes
13030 else
13031 echo "$as_me: failed program was:" >&5
13032 sed 's/^/| /' conftest.$ac_ext >&5
13033
13034 ac_header_preproc=no
13035 fi
13036
13037 rm -f conftest.err conftest.$ac_ext
13038 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13039 echo "${ECHO_T}$ac_header_preproc" >&6; }
13040
13041 # So? What about this header?
13042 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13043 yes:no: )
13044 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13045 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13047 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13048 ac_header_preproc=yes
13049 ;;
13050 no:yes:* )
13051 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13052 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13053 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13054 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13055 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13056 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13057 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13058 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13060 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13061 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13062 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13063
13064 ;;
13065 esac
13066 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13068 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13069 echo $ECHO_N "(cached) $ECHO_C" >&6
13070 else
13071 eval "$as_ac_Header=\$ac_header_preproc"
13072 fi
13073 ac_res=`eval echo '${'$as_ac_Header'}'`
13074 { echo "$as_me:$LINENO: result: $ac_res" >&5
13075 echo "${ECHO_T}$ac_res" >&6; }
13076
13077 fi
13078 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13079 cat >>confdefs.h <<_ACEOF
13080 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13081 _ACEOF
13082
13083 fi
13084
13085 done
13086
13087 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13088 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13089 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13090 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13091 echo $ECHO_N "(cached) $ECHO_C" >&6
13092 else
13093 ac_check_lib_save_LIBS=$LIBS
13094 LIBS="-lpng -lz -lm $LIBS"
13095 cat >conftest.$ac_ext <<_ACEOF
13096 /* confdefs.h. */
13097 _ACEOF
13098 cat confdefs.h >>conftest.$ac_ext
13099 cat >>conftest.$ac_ext <<_ACEOF
13100 /* end confdefs.h. */
13101
13102 /* Override any GCC internal prototype to avoid an error.
13103 Use char because int might match the return type of a GCC
13104 builtin and then its argument prototype would still apply. */
13105 #ifdef __cplusplus
13106 extern "C"
13107 #endif
13108 char png_get_channels ();
13109 int
13110 main ()
13111 {
13112 return png_get_channels ();
13113 ;
13114 return 0;
13115 }
13116 _ACEOF
13117 rm -f conftest.$ac_objext conftest$ac_exeext
13118 if { (ac_try="$ac_link"
13119 case "(($ac_try" in
13120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13121 *) ac_try_echo=$ac_try;;
13122 esac
13123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13124 (eval "$ac_link") 2>conftest.er1
13125 ac_status=$?
13126 grep -v '^ *+' conftest.er1 >conftest.err
13127 rm -f conftest.er1
13128 cat conftest.err >&5
13129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130 (exit $ac_status); } && {
13131 test -z "$ac_c_werror_flag" ||
13132 test ! -s conftest.err
13133 } && test -s conftest$ac_exeext &&
13134 $as_test_x conftest$ac_exeext; then
13135 ac_cv_lib_png_png_get_channels=yes
13136 else
13137 echo "$as_me: failed program was:" >&5
13138 sed 's/^/| /' conftest.$ac_ext >&5
13139
13140 ac_cv_lib_png_png_get_channels=no
13141 fi
13142
13143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13144 conftest$ac_exeext conftest.$ac_ext
13145 LIBS=$ac_check_lib_save_LIBS
13146 fi
13147 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13148 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13149 if test $ac_cv_lib_png_png_get_channels = yes; then
13150 HAVE_PNG=yes
13151 fi
13152
13153 fi
13154 fi
13155
13156 if test "${HAVE_PNG}" = "yes"; then
13157
13158 cat >>confdefs.h <<\_ACEOF
13159 #define HAVE_PNG 1
13160 _ACEOF
13161
13162 fi
13163 fi
13164
13165 ### Use -ltiff if available, unless `--with-tiff=no'.
13166 HAVE_TIFF=no
13167 if test "${HAVE_X11}" = "yes"; then
13168 if test "${with_tiff}" != "no"; then
13169 if test "${ac_cv_header_tiffio_h+set}" = set; then
13170 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13171 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13172 if test "${ac_cv_header_tiffio_h+set}" = set; then
13173 echo $ECHO_N "(cached) $ECHO_C" >&6
13174 fi
13175 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13176 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13177 else
13178 # Is the header compilable?
13179 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13180 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13181 cat >conftest.$ac_ext <<_ACEOF
13182 /* confdefs.h. */
13183 _ACEOF
13184 cat confdefs.h >>conftest.$ac_ext
13185 cat >>conftest.$ac_ext <<_ACEOF
13186 /* end confdefs.h. */
13187 $ac_includes_default
13188 #include <tiffio.h>
13189 _ACEOF
13190 rm -f conftest.$ac_objext
13191 if { (ac_try="$ac_compile"
13192 case "(($ac_try" in
13193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13194 *) ac_try_echo=$ac_try;;
13195 esac
13196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13197 (eval "$ac_compile") 2>conftest.er1
13198 ac_status=$?
13199 grep -v '^ *+' conftest.er1 >conftest.err
13200 rm -f conftest.er1
13201 cat conftest.err >&5
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); } && {
13204 test -z "$ac_c_werror_flag" ||
13205 test ! -s conftest.err
13206 } && test -s conftest.$ac_objext; then
13207 ac_header_compiler=yes
13208 else
13209 echo "$as_me: failed program was:" >&5
13210 sed 's/^/| /' conftest.$ac_ext >&5
13211
13212 ac_header_compiler=no
13213 fi
13214
13215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13216 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13217 echo "${ECHO_T}$ac_header_compiler" >&6; }
13218
13219 # Is the header present?
13220 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13221 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13222 cat >conftest.$ac_ext <<_ACEOF
13223 /* confdefs.h. */
13224 _ACEOF
13225 cat confdefs.h >>conftest.$ac_ext
13226 cat >>conftest.$ac_ext <<_ACEOF
13227 /* end confdefs.h. */
13228 #include <tiffio.h>
13229 _ACEOF
13230 if { (ac_try="$ac_cpp conftest.$ac_ext"
13231 case "(($ac_try" in
13232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13233 *) ac_try_echo=$ac_try;;
13234 esac
13235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13236 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13237 ac_status=$?
13238 grep -v '^ *+' conftest.er1 >conftest.err
13239 rm -f conftest.er1
13240 cat conftest.err >&5
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); } >/dev/null && {
13243 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13244 test ! -s conftest.err
13245 }; then
13246 ac_header_preproc=yes
13247 else
13248 echo "$as_me: failed program was:" >&5
13249 sed 's/^/| /' conftest.$ac_ext >&5
13250
13251 ac_header_preproc=no
13252 fi
13253
13254 rm -f conftest.err conftest.$ac_ext
13255 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13256 echo "${ECHO_T}$ac_header_preproc" >&6; }
13257
13258 # So? What about this header?
13259 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13260 yes:no: )
13261 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13262 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13263 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13264 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13265 ac_header_preproc=yes
13266 ;;
13267 no:yes:* )
13268 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13269 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13270 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13271 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13272 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13273 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13274 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13275 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13276 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13277 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13278 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13279 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13280
13281 ;;
13282 esac
13283 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13284 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13285 if test "${ac_cv_header_tiffio_h+set}" = set; then
13286 echo $ECHO_N "(cached) $ECHO_C" >&6
13287 else
13288 ac_cv_header_tiffio_h=$ac_header_preproc
13289 fi
13290 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13291 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13292
13293 fi
13294 if test $ac_cv_header_tiffio_h = yes; then
13295 tifflibs="-lz -lm"
13296 # At least one tiff package requires the jpeg library.
13297 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13298 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13299 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13300 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13301 echo $ECHO_N "(cached) $ECHO_C" >&6
13302 else
13303 ac_check_lib_save_LIBS=$LIBS
13304 LIBS="-ltiff $tifflibs $LIBS"
13305 cat >conftest.$ac_ext <<_ACEOF
13306 /* confdefs.h. */
13307 _ACEOF
13308 cat confdefs.h >>conftest.$ac_ext
13309 cat >>conftest.$ac_ext <<_ACEOF
13310 /* end confdefs.h. */
13311
13312 /* Override any GCC internal prototype to avoid an error.
13313 Use char because int might match the return type of a GCC
13314 builtin and then its argument prototype would still apply. */
13315 #ifdef __cplusplus
13316 extern "C"
13317 #endif
13318 char TIFFGetVersion ();
13319 int
13320 main ()
13321 {
13322 return TIFFGetVersion ();
13323 ;
13324 return 0;
13325 }
13326 _ACEOF
13327 rm -f conftest.$ac_objext conftest$ac_exeext
13328 if { (ac_try="$ac_link"
13329 case "(($ac_try" in
13330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13331 *) ac_try_echo=$ac_try;;
13332 esac
13333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13334 (eval "$ac_link") 2>conftest.er1
13335 ac_status=$?
13336 grep -v '^ *+' conftest.er1 >conftest.err
13337 rm -f conftest.er1
13338 cat conftest.err >&5
13339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340 (exit $ac_status); } && {
13341 test -z "$ac_c_werror_flag" ||
13342 test ! -s conftest.err
13343 } && test -s conftest$ac_exeext &&
13344 $as_test_x conftest$ac_exeext; then
13345 ac_cv_lib_tiff_TIFFGetVersion=yes
13346 else
13347 echo "$as_me: failed program was:" >&5
13348 sed 's/^/| /' conftest.$ac_ext >&5
13349
13350 ac_cv_lib_tiff_TIFFGetVersion=no
13351 fi
13352
13353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13354 conftest$ac_exeext conftest.$ac_ext
13355 LIBS=$ac_check_lib_save_LIBS
13356 fi
13357 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13358 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13359 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13360 HAVE_TIFF=yes
13361 fi
13362
13363 fi
13364
13365
13366 fi
13367
13368 if test "${HAVE_TIFF}" = "yes"; then
13369
13370 cat >>confdefs.h <<\_ACEOF
13371 #define HAVE_TIFF 1
13372 _ACEOF
13373
13374 fi
13375 fi
13376
13377 ### Use -lgif if available, unless `--with-gif=no'.
13378 HAVE_GIF=no
13379 if test "${HAVE_X11}" = "yes"; then
13380 if test "${with_gif}" != "no"; then
13381 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13382 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13383 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13384 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13385 echo $ECHO_N "(cached) $ECHO_C" >&6
13386 fi
13387 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13388 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13389 else
13390 # Is the header compilable?
13391 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13392 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13393 cat >conftest.$ac_ext <<_ACEOF
13394 /* confdefs.h. */
13395 _ACEOF
13396 cat confdefs.h >>conftest.$ac_ext
13397 cat >>conftest.$ac_ext <<_ACEOF
13398 /* end confdefs.h. */
13399 $ac_includes_default
13400 #include <gif_lib.h>
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 test -z "$ac_c_werror_flag" ||
13417 test ! -s conftest.err
13418 } && test -s conftest.$ac_objext; then
13419 ac_header_compiler=yes
13420 else
13421 echo "$as_me: failed program was:" >&5
13422 sed 's/^/| /' conftest.$ac_ext >&5
13423
13424 ac_header_compiler=no
13425 fi
13426
13427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13428 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13429 echo "${ECHO_T}$ac_header_compiler" >&6; }
13430
13431 # Is the header present?
13432 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13433 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13434 cat >conftest.$ac_ext <<_ACEOF
13435 /* confdefs.h. */
13436 _ACEOF
13437 cat confdefs.h >>conftest.$ac_ext
13438 cat >>conftest.$ac_ext <<_ACEOF
13439 /* end confdefs.h. */
13440 #include <gif_lib.h>
13441 _ACEOF
13442 if { (ac_try="$ac_cpp conftest.$ac_ext"
13443 case "(($ac_try" in
13444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13445 *) ac_try_echo=$ac_try;;
13446 esac
13447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13448 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13449 ac_status=$?
13450 grep -v '^ *+' conftest.er1 >conftest.err
13451 rm -f conftest.er1
13452 cat conftest.err >&5
13453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454 (exit $ac_status); } >/dev/null && {
13455 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13456 test ! -s conftest.err
13457 }; then
13458 ac_header_preproc=yes
13459 else
13460 echo "$as_me: failed program was:" >&5
13461 sed 's/^/| /' conftest.$ac_ext >&5
13462
13463 ac_header_preproc=no
13464 fi
13465
13466 rm -f conftest.err conftest.$ac_ext
13467 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13468 echo "${ECHO_T}$ac_header_preproc" >&6; }
13469
13470 # So? What about this header?
13471 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13472 yes:no: )
13473 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13474 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13475 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13476 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13477 ac_header_preproc=yes
13478 ;;
13479 no:yes:* )
13480 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13481 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13482 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13483 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13484 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13485 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13486 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13487 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13488 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13489 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13490 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13491 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13492
13493 ;;
13494 esac
13495 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13496 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13497 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13498 echo $ECHO_N "(cached) $ECHO_C" >&6
13499 else
13500 ac_cv_header_gif_lib_h=$ac_header_preproc
13501 fi
13502 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13503 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13504
13505 fi
13506 if test $ac_cv_header_gif_lib_h = yes; then
13507 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13508 # Earlier versions can crash Emacs.
13509 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13510 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
13511 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13512 echo $ECHO_N "(cached) $ECHO_C" >&6
13513 else
13514 ac_check_lib_save_LIBS=$LIBS
13515 LIBS="-lungif $LIBS"
13516 cat >conftest.$ac_ext <<_ACEOF
13517 /* confdefs.h. */
13518 _ACEOF
13519 cat confdefs.h >>conftest.$ac_ext
13520 cat >>conftest.$ac_ext <<_ACEOF
13521 /* end confdefs.h. */
13522
13523 /* Override any GCC internal prototype to avoid an error.
13524 Use char because int might match the return type of a GCC
13525 builtin and then its argument prototype would still apply. */
13526 #ifdef __cplusplus
13527 extern "C"
13528 #endif
13529 char EGifPutExtensionLast ();
13530 int
13531 main ()
13532 {
13533 return EGifPutExtensionLast ();
13534 ;
13535 return 0;
13536 }
13537 _ACEOF
13538 rm -f conftest.$ac_objext conftest$ac_exeext
13539 if { (ac_try="$ac_link"
13540 case "(($ac_try" in
13541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13542 *) ac_try_echo=$ac_try;;
13543 esac
13544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13545 (eval "$ac_link") 2>conftest.er1
13546 ac_status=$?
13547 grep -v '^ *+' conftest.er1 >conftest.err
13548 rm -f conftest.er1
13549 cat conftest.err >&5
13550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551 (exit $ac_status); } && {
13552 test -z "$ac_c_werror_flag" ||
13553 test ! -s conftest.err
13554 } && test -s conftest$ac_exeext &&
13555 $as_test_x conftest$ac_exeext; then
13556 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13557 else
13558 echo "$as_me: failed program was:" >&5
13559 sed 's/^/| /' conftest.$ac_ext >&5
13560
13561 ac_cv_lib_ungif_EGifPutExtensionLast=no
13562 fi
13563
13564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13565 conftest$ac_exeext conftest.$ac_ext
13566 LIBS=$ac_check_lib_save_LIBS
13567 fi
13568 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13569 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13570 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13571 HAVE_GIF=yes
13572 fi
13573
13574 fi
13575
13576
13577 fi
13578
13579 if test "${HAVE_GIF}" = "yes"; then
13580
13581 cat >>confdefs.h <<\_ACEOF
13582 #define HAVE_GIF 1
13583 _ACEOF
13584
13585 fi
13586 fi
13587
13588 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13589 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13590 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13591 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13592 echo $ECHO_N "(cached) $ECHO_C" >&6
13593 fi
13594 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13595 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13596 else
13597 # Is the header compilable?
13598 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13599 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
13600 cat >conftest.$ac_ext <<_ACEOF
13601 /* confdefs.h. */
13602 _ACEOF
13603 cat confdefs.h >>conftest.$ac_ext
13604 cat >>conftest.$ac_ext <<_ACEOF
13605 /* end confdefs.h. */
13606 $ac_includes_default
13607 #include <malloc/malloc.h>
13608 _ACEOF
13609 rm -f conftest.$ac_objext
13610 if { (ac_try="$ac_compile"
13611 case "(($ac_try" in
13612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13613 *) ac_try_echo=$ac_try;;
13614 esac
13615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13616 (eval "$ac_compile") 2>conftest.er1
13617 ac_status=$?
13618 grep -v '^ *+' conftest.er1 >conftest.err
13619 rm -f conftest.er1
13620 cat conftest.err >&5
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); } && {
13623 test -z "$ac_c_werror_flag" ||
13624 test ! -s conftest.err
13625 } && test -s conftest.$ac_objext; then
13626 ac_header_compiler=yes
13627 else
13628 echo "$as_me: failed program was:" >&5
13629 sed 's/^/| /' conftest.$ac_ext >&5
13630
13631 ac_header_compiler=no
13632 fi
13633
13634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13635 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13636 echo "${ECHO_T}$ac_header_compiler" >&6; }
13637
13638 # Is the header present?
13639 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13640 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
13641 cat >conftest.$ac_ext <<_ACEOF
13642 /* confdefs.h. */
13643 _ACEOF
13644 cat confdefs.h >>conftest.$ac_ext
13645 cat >>conftest.$ac_ext <<_ACEOF
13646 /* end confdefs.h. */
13647 #include <malloc/malloc.h>
13648 _ACEOF
13649 if { (ac_try="$ac_cpp conftest.$ac_ext"
13650 case "(($ac_try" in
13651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13652 *) ac_try_echo=$ac_try;;
13653 esac
13654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13656 ac_status=$?
13657 grep -v '^ *+' conftest.er1 >conftest.err
13658 rm -f conftest.er1
13659 cat conftest.err >&5
13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); } >/dev/null && {
13662 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13663 test ! -s conftest.err
13664 }; then
13665 ac_header_preproc=yes
13666 else
13667 echo "$as_me: failed program was:" >&5
13668 sed 's/^/| /' conftest.$ac_ext >&5
13669
13670 ac_header_preproc=no
13671 fi
13672
13673 rm -f conftest.err conftest.$ac_ext
13674 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13675 echo "${ECHO_T}$ac_header_preproc" >&6; }
13676
13677 # So? What about this header?
13678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13679 yes:no: )
13680 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13681 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13682 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
13683 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
13684 ac_header_preproc=yes
13685 ;;
13686 no:yes:* )
13687 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13688 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13689 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13690 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13691 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13692 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13693 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13694 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13695 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
13696 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
13697 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13698 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13699
13700 ;;
13701 esac
13702 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13703 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13704 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13705 echo $ECHO_N "(cached) $ECHO_C" >&6
13706 else
13707 ac_cv_header_malloc_malloc_h=$ac_header_preproc
13708 fi
13709 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13710 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13711
13712 fi
13713 if test $ac_cv_header_malloc_malloc_h = yes; then
13714
13715 cat >>confdefs.h <<\_ACEOF
13716 #define HAVE_MALLOC_MALLOC_H 1
13717 _ACEOF
13718
13719 fi
13720
13721
13722
13723 ### Use Mac OS X Carbon API to implement GUI.
13724 if test "${HAVE_CARBON}" = "yes"; then
13725
13726 cat >>confdefs.h <<\_ACEOF
13727 #define HAVE_CARBON 1
13728 _ACEOF
13729
13730 ## Specify the install directory
13731 carbon_appdir=
13732 if test "${carbon_appdir_x}" != ""; then
13733 case ${carbon_appdir_x} in
13734 y | ye | yes) carbon_appdir=/Applications ;;
13735 * ) carbon_appdir=${carbon_appdir_x} ;;
13736 esac
13737 fi
13738 # We also have mouse menus.
13739 HAVE_MENUS=yes
13740 fi
13741
13742 ### Use session management (-lSM -lICE) if available
13743 HAVE_X_SM=no
13744 if test "${HAVE_X11}" = "yes"; then
13745 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13746 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13747 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
13748 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13749 echo $ECHO_N "(cached) $ECHO_C" >&6
13750 fi
13751 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13752 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
13753 else
13754 # Is the header compilable?
13755 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
13756 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
13757 cat >conftest.$ac_ext <<_ACEOF
13758 /* confdefs.h. */
13759 _ACEOF
13760 cat confdefs.h >>conftest.$ac_ext
13761 cat >>conftest.$ac_ext <<_ACEOF
13762 /* end confdefs.h. */
13763 $ac_includes_default
13764 #include <X11/SM/SMlib.h>
13765 _ACEOF
13766 rm -f conftest.$ac_objext
13767 if { (ac_try="$ac_compile"
13768 case "(($ac_try" in
13769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13770 *) ac_try_echo=$ac_try;;
13771 esac
13772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13773 (eval "$ac_compile") 2>conftest.er1
13774 ac_status=$?
13775 grep -v '^ *+' conftest.er1 >conftest.err
13776 rm -f conftest.er1
13777 cat conftest.err >&5
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); } && {
13780 test -z "$ac_c_werror_flag" ||
13781 test ! -s conftest.err
13782 } && test -s conftest.$ac_objext; then
13783 ac_header_compiler=yes
13784 else
13785 echo "$as_me: failed program was:" >&5
13786 sed 's/^/| /' conftest.$ac_ext >&5
13787
13788 ac_header_compiler=no
13789 fi
13790
13791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13792 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13793 echo "${ECHO_T}$ac_header_compiler" >&6; }
13794
13795 # Is the header present?
13796 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
13797 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
13798 cat >conftest.$ac_ext <<_ACEOF
13799 /* confdefs.h. */
13800 _ACEOF
13801 cat confdefs.h >>conftest.$ac_ext
13802 cat >>conftest.$ac_ext <<_ACEOF
13803 /* end confdefs.h. */
13804 #include <X11/SM/SMlib.h>
13805 _ACEOF
13806 if { (ac_try="$ac_cpp conftest.$ac_ext"
13807 case "(($ac_try" in
13808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13809 *) ac_try_echo=$ac_try;;
13810 esac
13811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13813 ac_status=$?
13814 grep -v '^ *+' conftest.er1 >conftest.err
13815 rm -f conftest.er1
13816 cat conftest.err >&5
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); } >/dev/null && {
13819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13820 test ! -s conftest.err
13821 }; then
13822 ac_header_preproc=yes
13823 else
13824 echo "$as_me: failed program was:" >&5
13825 sed 's/^/| /' conftest.$ac_ext >&5
13826
13827 ac_header_preproc=no
13828 fi
13829
13830 rm -f conftest.err conftest.$ac_ext
13831 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13832 echo "${ECHO_T}$ac_header_preproc" >&6; }
13833
13834 # So? What about this header?
13835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13836 yes:no: )
13837 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13838 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13839 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
13840 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
13841 ac_header_preproc=yes
13842 ;;
13843 no:yes:* )
13844 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
13845 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
13846 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
13847 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
13848 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
13849 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
13850 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
13851 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13852 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
13853 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
13854 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
13855 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
13856
13857 ;;
13858 esac
13859 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13860 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
13861 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13862 echo $ECHO_N "(cached) $ECHO_C" >&6
13863 else
13864 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
13865 fi
13866 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13867 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
13868
13869 fi
13870 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
13871 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
13872 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
13873 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
13874 echo $ECHO_N "(cached) $ECHO_C" >&6
13875 else
13876 ac_check_lib_save_LIBS=$LIBS
13877 LIBS="-lSM -lICE $LIBS"
13878 cat >conftest.$ac_ext <<_ACEOF
13879 /* confdefs.h. */
13880 _ACEOF
13881 cat confdefs.h >>conftest.$ac_ext
13882 cat >>conftest.$ac_ext <<_ACEOF
13883 /* end confdefs.h. */
13884
13885 /* Override any GCC internal prototype to avoid an error.
13886 Use char because int might match the return type of a GCC
13887 builtin and then its argument prototype would still apply. */
13888 #ifdef __cplusplus
13889 extern "C"
13890 #endif
13891 char SmcOpenConnection ();
13892 int
13893 main ()
13894 {
13895 return SmcOpenConnection ();
13896 ;
13897 return 0;
13898 }
13899 _ACEOF
13900 rm -f conftest.$ac_objext conftest$ac_exeext
13901 if { (ac_try="$ac_link"
13902 case "(($ac_try" in
13903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13904 *) ac_try_echo=$ac_try;;
13905 esac
13906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13907 (eval "$ac_link") 2>conftest.er1
13908 ac_status=$?
13909 grep -v '^ *+' conftest.er1 >conftest.err
13910 rm -f conftest.er1
13911 cat conftest.err >&5
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); } && {
13914 test -z "$ac_c_werror_flag" ||
13915 test ! -s conftest.err
13916 } && test -s conftest$ac_exeext &&
13917 $as_test_x conftest$ac_exeext; then
13918 ac_cv_lib_SM_SmcOpenConnection=yes
13919 else
13920 echo "$as_me: failed program was:" >&5
13921 sed 's/^/| /' conftest.$ac_ext >&5
13922
13923 ac_cv_lib_SM_SmcOpenConnection=no
13924 fi
13925
13926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13927 conftest$ac_exeext conftest.$ac_ext
13928 LIBS=$ac_check_lib_save_LIBS
13929 fi
13930 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13931 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13932 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
13933 HAVE_X_SM=yes
13934 fi
13935
13936 fi
13937
13938
13939
13940 if test "${HAVE_X_SM}" = "yes"; then
13941
13942 cat >>confdefs.h <<\_ACEOF
13943 #define HAVE_X_SM 1
13944 _ACEOF
13945
13946 case "$LIBS" in
13947 *-lSM*) ;;
13948 *) LIBS="-lSM -lICE $LIBS" ;;
13949 esac
13950 fi
13951 fi
13952
13953 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13954 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
13955 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
13956 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
13957 echo $ECHO_N "(cached) $ECHO_C" >&6
13958 else
13959 cat >conftest.$ac_ext <<_ACEOF
13960 /* confdefs.h. */
13961 _ACEOF
13962 cat confdefs.h >>conftest.$ac_ext
13963 cat >>conftest.$ac_ext <<_ACEOF
13964 /* end confdefs.h. */
13965 #include <netdb.h>
13966 int
13967 main ()
13968 {
13969 return h_errno;
13970 ;
13971 return 0;
13972 }
13973 _ACEOF
13974 rm -f conftest.$ac_objext conftest$ac_exeext
13975 if { (ac_try="$ac_link"
13976 case "(($ac_try" in
13977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13978 *) ac_try_echo=$ac_try;;
13979 esac
13980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13981 (eval "$ac_link") 2>conftest.er1
13982 ac_status=$?
13983 grep -v '^ *+' conftest.er1 >conftest.err
13984 rm -f conftest.er1
13985 cat conftest.err >&5
13986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987 (exit $ac_status); } && {
13988 test -z "$ac_c_werror_flag" ||
13989 test ! -s conftest.err
13990 } && test -s conftest$ac_exeext &&
13991 $as_test_x conftest$ac_exeext; then
13992 emacs_cv_netdb_declares_h_errno=yes
13993 else
13994 echo "$as_me: failed program was:" >&5
13995 sed 's/^/| /' conftest.$ac_ext >&5
13996
13997 emacs_cv_netdb_declares_h_errno=no
13998 fi
13999
14000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14001 conftest$ac_exeext conftest.$ac_ext
14002 fi
14003 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14004 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14005 if test $emacs_cv_netdb_declares_h_errno = yes; then
14006
14007 cat >>confdefs.h <<\_ACEOF
14008 #define HAVE_H_ERRNO 1
14009 _ACEOF
14010
14011 fi
14012
14013 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14014 # for constant arguments. Useless!
14015 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14016 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14017 if test "${ac_cv_working_alloca_h+set}" = set; then
14018 echo $ECHO_N "(cached) $ECHO_C" >&6
14019 else
14020 cat >conftest.$ac_ext <<_ACEOF
14021 /* confdefs.h. */
14022 _ACEOF
14023 cat confdefs.h >>conftest.$ac_ext
14024 cat >>conftest.$ac_ext <<_ACEOF
14025 /* end confdefs.h. */
14026 #include <alloca.h>
14027 int
14028 main ()
14029 {
14030 char *p = (char *) alloca (2 * sizeof (int));
14031 if (p) return 0;
14032 ;
14033 return 0;
14034 }
14035 _ACEOF
14036 rm -f conftest.$ac_objext conftest$ac_exeext
14037 if { (ac_try="$ac_link"
14038 case "(($ac_try" in
14039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14040 *) ac_try_echo=$ac_try;;
14041 esac
14042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14043 (eval "$ac_link") 2>conftest.er1
14044 ac_status=$?
14045 grep -v '^ *+' conftest.er1 >conftest.err
14046 rm -f conftest.er1
14047 cat conftest.err >&5
14048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); } && {
14050 test -z "$ac_c_werror_flag" ||
14051 test ! -s conftest.err
14052 } && test -s conftest$ac_exeext &&
14053 $as_test_x conftest$ac_exeext; then
14054 ac_cv_working_alloca_h=yes
14055 else
14056 echo "$as_me: failed program was:" >&5
14057 sed 's/^/| /' conftest.$ac_ext >&5
14058
14059 ac_cv_working_alloca_h=no
14060 fi
14061
14062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14063 conftest$ac_exeext conftest.$ac_ext
14064 fi
14065 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14066 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14067 if test $ac_cv_working_alloca_h = yes; then
14068
14069 cat >>confdefs.h <<\_ACEOF
14070 #define HAVE_ALLOCA_H 1
14071 _ACEOF
14072
14073 fi
14074
14075 { echo "$as_me:$LINENO: checking for alloca" >&5
14076 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14077 if test "${ac_cv_func_alloca_works+set}" = set; then
14078 echo $ECHO_N "(cached) $ECHO_C" >&6
14079 else
14080 cat >conftest.$ac_ext <<_ACEOF
14081 /* confdefs.h. */
14082 _ACEOF
14083 cat confdefs.h >>conftest.$ac_ext
14084 cat >>conftest.$ac_ext <<_ACEOF
14085 /* end confdefs.h. */
14086 #ifdef __GNUC__
14087 # define alloca __builtin_alloca
14088 #else
14089 # ifdef _MSC_VER
14090 # include <malloc.h>
14091 # define alloca _alloca
14092 # else
14093 # ifdef HAVE_ALLOCA_H
14094 # include <alloca.h>
14095 # else
14096 # ifdef _AIX
14097 #pragma alloca
14098 # else
14099 # ifndef alloca /* predefined by HP cc +Olibcalls */
14100 char *alloca ();
14101 # endif
14102 # endif
14103 # endif
14104 # endif
14105 #endif
14106
14107 int
14108 main ()
14109 {
14110 char *p = (char *) alloca (1);
14111 if (p) return 0;
14112 ;
14113 return 0;
14114 }
14115 _ACEOF
14116 rm -f conftest.$ac_objext conftest$ac_exeext
14117 if { (ac_try="$ac_link"
14118 case "(($ac_try" in
14119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14120 *) ac_try_echo=$ac_try;;
14121 esac
14122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14123 (eval "$ac_link") 2>conftest.er1
14124 ac_status=$?
14125 grep -v '^ *+' conftest.er1 >conftest.err
14126 rm -f conftest.er1
14127 cat conftest.err >&5
14128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129 (exit $ac_status); } && {
14130 test -z "$ac_c_werror_flag" ||
14131 test ! -s conftest.err
14132 } && test -s conftest$ac_exeext &&
14133 $as_test_x conftest$ac_exeext; then
14134 ac_cv_func_alloca_works=yes
14135 else
14136 echo "$as_me: failed program was:" >&5
14137 sed 's/^/| /' conftest.$ac_ext >&5
14138
14139 ac_cv_func_alloca_works=no
14140 fi
14141
14142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14143 conftest$ac_exeext conftest.$ac_ext
14144 fi
14145 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14146 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14147
14148 if test $ac_cv_func_alloca_works = yes; then
14149
14150 cat >>confdefs.h <<\_ACEOF
14151 #define HAVE_ALLOCA 1
14152 _ACEOF
14153
14154 else
14155 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14156 # that cause trouble. Some versions do not even contain alloca or
14157 # contain a buggy version. If you still want to use their alloca,
14158 # use ar to extract alloca.o from them instead of compiling alloca.c.
14159
14160 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14161
14162 cat >>confdefs.h <<\_ACEOF
14163 #define C_ALLOCA 1
14164 _ACEOF
14165
14166
14167 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14168 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
14169 if test "${ac_cv_os_cray+set}" = set; then
14170 echo $ECHO_N "(cached) $ECHO_C" >&6
14171 else
14172 cat >conftest.$ac_ext <<_ACEOF
14173 /* confdefs.h. */
14174 _ACEOF
14175 cat confdefs.h >>conftest.$ac_ext
14176 cat >>conftest.$ac_ext <<_ACEOF
14177 /* end confdefs.h. */
14178 #if defined CRAY && ! defined CRAY2
14179 webecray
14180 #else
14181 wenotbecray
14182 #endif
14183
14184 _ACEOF
14185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14186 $EGREP "webecray" >/dev/null 2>&1; then
14187 ac_cv_os_cray=yes
14188 else
14189 ac_cv_os_cray=no
14190 fi
14191 rm -f conftest*
14192
14193 fi
14194 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14195 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14196 if test $ac_cv_os_cray = yes; then
14197 for ac_func in _getb67 GETB67 getb67; do
14198 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14199 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14200 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14201 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14202 echo $ECHO_N "(cached) $ECHO_C" >&6
14203 else
14204 cat >conftest.$ac_ext <<_ACEOF
14205 /* confdefs.h. */
14206 _ACEOF
14207 cat confdefs.h >>conftest.$ac_ext
14208 cat >>conftest.$ac_ext <<_ACEOF
14209 /* end confdefs.h. */
14210 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14211 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14212 #define $ac_func innocuous_$ac_func
14213
14214 /* System header to define __stub macros and hopefully few prototypes,
14215 which can conflict with char $ac_func (); below.
14216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14217 <limits.h> exists even on freestanding compilers. */
14218
14219 #ifdef __STDC__
14220 # include <limits.h>
14221 #else
14222 # include <assert.h>
14223 #endif
14224
14225 #undef $ac_func
14226
14227 /* Override any GCC internal prototype to avoid an error.
14228 Use char because int might match the return type of a GCC
14229 builtin and then its argument prototype would still apply. */
14230 #ifdef __cplusplus
14231 extern "C"
14232 #endif
14233 char $ac_func ();
14234 /* The GNU C library defines this for functions which it implements
14235 to always fail with ENOSYS. Some functions are actually named
14236 something starting with __ and the normal name is an alias. */
14237 #if defined __stub_$ac_func || defined __stub___$ac_func
14238 choke me
14239 #endif
14240
14241 int
14242 main ()
14243 {
14244 return $ac_func ();
14245 ;
14246 return 0;
14247 }
14248 _ACEOF
14249 rm -f conftest.$ac_objext conftest$ac_exeext
14250 if { (ac_try="$ac_link"
14251 case "(($ac_try" in
14252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14253 *) ac_try_echo=$ac_try;;
14254 esac
14255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14256 (eval "$ac_link") 2>conftest.er1
14257 ac_status=$?
14258 grep -v '^ *+' conftest.er1 >conftest.err
14259 rm -f conftest.er1
14260 cat conftest.err >&5
14261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262 (exit $ac_status); } && {
14263 test -z "$ac_c_werror_flag" ||
14264 test ! -s conftest.err
14265 } && test -s conftest$ac_exeext &&
14266 $as_test_x conftest$ac_exeext; then
14267 eval "$as_ac_var=yes"
14268 else
14269 echo "$as_me: failed program was:" >&5
14270 sed 's/^/| /' conftest.$ac_ext >&5
14271
14272 eval "$as_ac_var=no"
14273 fi
14274
14275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14276 conftest$ac_exeext conftest.$ac_ext
14277 fi
14278 ac_res=`eval echo '${'$as_ac_var'}'`
14279 { echo "$as_me:$LINENO: result: $ac_res" >&5
14280 echo "${ECHO_T}$ac_res" >&6; }
14281 if test `eval echo '${'$as_ac_var'}'` = yes; then
14282
14283 cat >>confdefs.h <<_ACEOF
14284 #define CRAY_STACKSEG_END $ac_func
14285 _ACEOF
14286
14287 break
14288 fi
14289
14290 done
14291 fi
14292
14293 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14294 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
14295 if test "${ac_cv_c_stack_direction+set}" = set; then
14296 echo $ECHO_N "(cached) $ECHO_C" >&6
14297 else
14298 if test "$cross_compiling" = yes; then
14299 ac_cv_c_stack_direction=0
14300 else
14301 cat >conftest.$ac_ext <<_ACEOF
14302 /* confdefs.h. */
14303 _ACEOF
14304 cat confdefs.h >>conftest.$ac_ext
14305 cat >>conftest.$ac_ext <<_ACEOF
14306 /* end confdefs.h. */
14307 $ac_includes_default
14308 int
14309 find_stack_direction ()
14310 {
14311 static char *addr = 0;
14312 auto char dummy;
14313 if (addr == 0)
14314 {
14315 addr = &dummy;
14316 return find_stack_direction ();
14317 }
14318 else
14319 return (&dummy > addr) ? 1 : -1;
14320 }
14321
14322 int
14323 main ()
14324 {
14325 return find_stack_direction () < 0;
14326 }
14327 _ACEOF
14328 rm -f conftest$ac_exeext
14329 if { (ac_try="$ac_link"
14330 case "(($ac_try" in
14331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14332 *) ac_try_echo=$ac_try;;
14333 esac
14334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14335 (eval "$ac_link") 2>&5
14336 ac_status=$?
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14339 { (case "(($ac_try" in
14340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14341 *) ac_try_echo=$ac_try;;
14342 esac
14343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14344 (eval "$ac_try") 2>&5
14345 ac_status=$?
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); }; }; then
14348 ac_cv_c_stack_direction=1
14349 else
14350 echo "$as_me: program exited with status $ac_status" >&5
14351 echo "$as_me: failed program was:" >&5
14352 sed 's/^/| /' conftest.$ac_ext >&5
14353
14354 ( exit $ac_status )
14355 ac_cv_c_stack_direction=-1
14356 fi
14357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14358 fi
14359
14360
14361 fi
14362 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14363 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14364
14365 cat >>confdefs.h <<_ACEOF
14366 #define STACK_DIRECTION $ac_cv_c_stack_direction
14367 _ACEOF
14368
14369
14370 fi
14371
14372
14373 # fmod, logb, and frexp are found in -lm on most systems.
14374 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14375
14376 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
14377 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
14378 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14379 echo $ECHO_N "(cached) $ECHO_C" >&6
14380 else
14381 ac_check_lib_save_LIBS=$LIBS
14382 LIBS="-lm $LIBS"
14383 cat >conftest.$ac_ext <<_ACEOF
14384 /* confdefs.h. */
14385 _ACEOF
14386 cat confdefs.h >>conftest.$ac_ext
14387 cat >>conftest.$ac_ext <<_ACEOF
14388 /* end confdefs.h. */
14389
14390 /* Override any GCC internal prototype to avoid an error.
14391 Use char because int might match the return type of a GCC
14392 builtin and then its argument prototype would still apply. */
14393 #ifdef __cplusplus
14394 extern "C"
14395 #endif
14396 char sqrt ();
14397 int
14398 main ()
14399 {
14400 return sqrt ();
14401 ;
14402 return 0;
14403 }
14404 _ACEOF
14405 rm -f conftest.$ac_objext conftest$ac_exeext
14406 if { (ac_try="$ac_link"
14407 case "(($ac_try" in
14408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14409 *) ac_try_echo=$ac_try;;
14410 esac
14411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14412 (eval "$ac_link") 2>conftest.er1
14413 ac_status=$?
14414 grep -v '^ *+' conftest.er1 >conftest.err
14415 rm -f conftest.er1
14416 cat conftest.err >&5
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); } && {
14419 test -z "$ac_c_werror_flag" ||
14420 test ! -s conftest.err
14421 } && test -s conftest$ac_exeext &&
14422 $as_test_x conftest$ac_exeext; then
14423 ac_cv_lib_m_sqrt=yes
14424 else
14425 echo "$as_me: failed program was:" >&5
14426 sed 's/^/| /' conftest.$ac_ext >&5
14427
14428 ac_cv_lib_m_sqrt=no
14429 fi
14430
14431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14432 conftest$ac_exeext conftest.$ac_ext
14433 LIBS=$ac_check_lib_save_LIBS
14434 fi
14435 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
14436 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
14437 if test $ac_cv_lib_m_sqrt = yes; then
14438 cat >>confdefs.h <<_ACEOF
14439 #define HAVE_LIBM 1
14440 _ACEOF
14441
14442 LIBS="-lm $LIBS"
14443
14444 fi
14445
14446
14447 # Check for mail-locking functions in a "mail" library. Probably this should
14448 # have the same check as for liblockfile below.
14449
14450 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
14451 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
14452 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14453 echo $ECHO_N "(cached) $ECHO_C" >&6
14454 else
14455 ac_check_lib_save_LIBS=$LIBS
14456 LIBS="-lmail $LIBS"
14457 cat >conftest.$ac_ext <<_ACEOF
14458 /* confdefs.h. */
14459 _ACEOF
14460 cat confdefs.h >>conftest.$ac_ext
14461 cat >>conftest.$ac_ext <<_ACEOF
14462 /* end confdefs.h. */
14463
14464 /* Override any GCC internal prototype to avoid an error.
14465 Use char because int might match the return type of a GCC
14466 builtin and then its argument prototype would still apply. */
14467 #ifdef __cplusplus
14468 extern "C"
14469 #endif
14470 char maillock ();
14471 int
14472 main ()
14473 {
14474 return maillock ();
14475 ;
14476 return 0;
14477 }
14478 _ACEOF
14479 rm -f conftest.$ac_objext conftest$ac_exeext
14480 if { (ac_try="$ac_link"
14481 case "(($ac_try" in
14482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14483 *) ac_try_echo=$ac_try;;
14484 esac
14485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14486 (eval "$ac_link") 2>conftest.er1
14487 ac_status=$?
14488 grep -v '^ *+' conftest.er1 >conftest.err
14489 rm -f conftest.er1
14490 cat conftest.err >&5
14491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); } && {
14493 test -z "$ac_c_werror_flag" ||
14494 test ! -s conftest.err
14495 } && test -s conftest$ac_exeext &&
14496 $as_test_x conftest$ac_exeext; then
14497 ac_cv_lib_mail_maillock=yes
14498 else
14499 echo "$as_me: failed program was:" >&5
14500 sed 's/^/| /' conftest.$ac_ext >&5
14501
14502 ac_cv_lib_mail_maillock=no
14503 fi
14504
14505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14506 conftest$ac_exeext conftest.$ac_ext
14507 LIBS=$ac_check_lib_save_LIBS
14508 fi
14509 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
14510 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
14511 if test $ac_cv_lib_mail_maillock = yes; then
14512 cat >>confdefs.h <<_ACEOF
14513 #define HAVE_LIBMAIL 1
14514 _ACEOF
14515
14516 LIBS="-lmail $LIBS"
14517
14518 fi
14519
14520
14521 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
14522 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
14523 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14524 echo $ECHO_N "(cached) $ECHO_C" >&6
14525 else
14526 ac_check_lib_save_LIBS=$LIBS
14527 LIBS="-llockfile $LIBS"
14528 cat >conftest.$ac_ext <<_ACEOF
14529 /* confdefs.h. */
14530 _ACEOF
14531 cat confdefs.h >>conftest.$ac_ext
14532 cat >>conftest.$ac_ext <<_ACEOF
14533 /* end confdefs.h. */
14534
14535 /* Override any GCC internal prototype to avoid an error.
14536 Use char because int might match the return type of a GCC
14537 builtin and then its argument prototype would still apply. */
14538 #ifdef __cplusplus
14539 extern "C"
14540 #endif
14541 char maillock ();
14542 int
14543 main ()
14544 {
14545 return maillock ();
14546 ;
14547 return 0;
14548 }
14549 _ACEOF
14550 rm -f conftest.$ac_objext conftest$ac_exeext
14551 if { (ac_try="$ac_link"
14552 case "(($ac_try" in
14553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14554 *) ac_try_echo=$ac_try;;
14555 esac
14556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14557 (eval "$ac_link") 2>conftest.er1
14558 ac_status=$?
14559 grep -v '^ *+' conftest.er1 >conftest.err
14560 rm -f conftest.er1
14561 cat conftest.err >&5
14562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563 (exit $ac_status); } && {
14564 test -z "$ac_c_werror_flag" ||
14565 test ! -s conftest.err
14566 } && test -s conftest$ac_exeext &&
14567 $as_test_x conftest$ac_exeext; then
14568 ac_cv_lib_lockfile_maillock=yes
14569 else
14570 echo "$as_me: failed program was:" >&5
14571 sed 's/^/| /' conftest.$ac_ext >&5
14572
14573 ac_cv_lib_lockfile_maillock=no
14574 fi
14575
14576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14577 conftest$ac_exeext conftest.$ac_ext
14578 LIBS=$ac_check_lib_save_LIBS
14579 fi
14580 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14581 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
14582 if test $ac_cv_lib_lockfile_maillock = yes; then
14583 cat >>confdefs.h <<_ACEOF
14584 #define HAVE_LIBLOCKFILE 1
14585 _ACEOF
14586
14587 LIBS="-llockfile $LIBS"
14588
14589 fi
14590
14591 # If we have the shared liblockfile, assume we must use it for mail
14592 # locking (e.g. Debian). If we couldn't link against liblockfile
14593 # (no liblockfile.a installed), ensure that we don't need to.
14594 if test "$ac_cv_lib_lockfile_maillock" = no; then
14595 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14596 set dummy liblockfile.so; ac_word=$2
14597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14599 if test "${ac_cv_prog_liblockfile+set}" = set; then
14600 echo $ECHO_N "(cached) $ECHO_C" >&6
14601 else
14602 if test -n "$liblockfile"; then
14603 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14604 else
14605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14606 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14607 for as_dir in $as_dummy
14608 do
14609 IFS=$as_save_IFS
14610 test -z "$as_dir" && as_dir=.
14611 for ac_exec_ext in '' $ac_executable_extensions; do
14612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14613 ac_cv_prog_liblockfile="yes"
14614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14615 break 2
14616 fi
14617 done
14618 done
14619 IFS=$as_save_IFS
14620
14621 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14622 fi
14623 fi
14624 liblockfile=$ac_cv_prog_liblockfile
14625 if test -n "$liblockfile"; then
14626 { echo "$as_me:$LINENO: result: $liblockfile" >&5
14627 echo "${ECHO_T}$liblockfile" >&6; }
14628 else
14629 { echo "$as_me:$LINENO: result: no" >&5
14630 echo "${ECHO_T}no" >&6; }
14631 fi
14632
14633
14634 if test $ac_cv_prog_liblockfile = yes; then
14635 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
14636 This probably means that movemail could lose mail.
14637 There may be a \`development' package to install containing liblockfile." >&5
14638 echo "$as_me: error: Shared liblockfile found but can't link against it.
14639 This probably means that movemail could lose mail.
14640 There may be a \`development' package to install containing liblockfile." >&2;}
14641 { (exit 1); exit 1; }; }
14642 else :
14643 fi
14644 fi
14645
14646 for ac_func in touchlock
14647 do
14648 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14649 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14651 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14652 echo $ECHO_N "(cached) $ECHO_C" >&6
14653 else
14654 cat >conftest.$ac_ext <<_ACEOF
14655 /* confdefs.h. */
14656 _ACEOF
14657 cat confdefs.h >>conftest.$ac_ext
14658 cat >>conftest.$ac_ext <<_ACEOF
14659 /* end confdefs.h. */
14660 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14662 #define $ac_func innocuous_$ac_func
14663
14664 /* System header to define __stub macros and hopefully few prototypes,
14665 which can conflict with char $ac_func (); below.
14666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14667 <limits.h> exists even on freestanding compilers. */
14668
14669 #ifdef __STDC__
14670 # include <limits.h>
14671 #else
14672 # include <assert.h>
14673 #endif
14674
14675 #undef $ac_func
14676
14677 /* Override any GCC internal prototype to avoid an error.
14678 Use char because int might match the return type of a GCC
14679 builtin and then its argument prototype would still apply. */
14680 #ifdef __cplusplus
14681 extern "C"
14682 #endif
14683 char $ac_func ();
14684 /* The GNU C library defines this for functions which it implements
14685 to always fail with ENOSYS. Some functions are actually named
14686 something starting with __ and the normal name is an alias. */
14687 #if defined __stub_$ac_func || defined __stub___$ac_func
14688 choke me
14689 #endif
14690
14691 int
14692 main ()
14693 {
14694 return $ac_func ();
14695 ;
14696 return 0;
14697 }
14698 _ACEOF
14699 rm -f conftest.$ac_objext conftest$ac_exeext
14700 if { (ac_try="$ac_link"
14701 case "(($ac_try" in
14702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14703 *) ac_try_echo=$ac_try;;
14704 esac
14705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14706 (eval "$ac_link") 2>conftest.er1
14707 ac_status=$?
14708 grep -v '^ *+' conftest.er1 >conftest.err
14709 rm -f conftest.er1
14710 cat conftest.err >&5
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); } && {
14713 test -z "$ac_c_werror_flag" ||
14714 test ! -s conftest.err
14715 } && test -s conftest$ac_exeext &&
14716 $as_test_x conftest$ac_exeext; then
14717 eval "$as_ac_var=yes"
14718 else
14719 echo "$as_me: failed program was:" >&5
14720 sed 's/^/| /' conftest.$ac_ext >&5
14721
14722 eval "$as_ac_var=no"
14723 fi
14724
14725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14726 conftest$ac_exeext conftest.$ac_ext
14727 fi
14728 ac_res=`eval echo '${'$as_ac_var'}'`
14729 { echo "$as_me:$LINENO: result: $ac_res" >&5
14730 echo "${ECHO_T}$ac_res" >&6; }
14731 if test `eval echo '${'$as_ac_var'}'` = yes; then
14732 cat >>confdefs.h <<_ACEOF
14733 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14734 _ACEOF
14735
14736 fi
14737 done
14738
14739
14740 for ac_header in maillock.h
14741 do
14742 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14743 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14744 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14746 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14747 echo $ECHO_N "(cached) $ECHO_C" >&6
14748 fi
14749 ac_res=`eval echo '${'$as_ac_Header'}'`
14750 { echo "$as_me:$LINENO: result: $ac_res" >&5
14751 echo "${ECHO_T}$ac_res" >&6; }
14752 else
14753 # Is the header compilable?
14754 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14755 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14756 cat >conftest.$ac_ext <<_ACEOF
14757 /* confdefs.h. */
14758 _ACEOF
14759 cat confdefs.h >>conftest.$ac_ext
14760 cat >>conftest.$ac_ext <<_ACEOF
14761 /* end confdefs.h. */
14762 $ac_includes_default
14763 #include <$ac_header>
14764 _ACEOF
14765 rm -f conftest.$ac_objext
14766 if { (ac_try="$ac_compile"
14767 case "(($ac_try" in
14768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14769 *) ac_try_echo=$ac_try;;
14770 esac
14771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14772 (eval "$ac_compile") 2>conftest.er1
14773 ac_status=$?
14774 grep -v '^ *+' conftest.er1 >conftest.err
14775 rm -f conftest.er1
14776 cat conftest.err >&5
14777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778 (exit $ac_status); } && {
14779 test -z "$ac_c_werror_flag" ||
14780 test ! -s conftest.err
14781 } && test -s conftest.$ac_objext; then
14782 ac_header_compiler=yes
14783 else
14784 echo "$as_me: failed program was:" >&5
14785 sed 's/^/| /' conftest.$ac_ext >&5
14786
14787 ac_header_compiler=no
14788 fi
14789
14790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14791 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14792 echo "${ECHO_T}$ac_header_compiler" >&6; }
14793
14794 # Is the header present?
14795 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14796 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14797 cat >conftest.$ac_ext <<_ACEOF
14798 /* confdefs.h. */
14799 _ACEOF
14800 cat confdefs.h >>conftest.$ac_ext
14801 cat >>conftest.$ac_ext <<_ACEOF
14802 /* end confdefs.h. */
14803 #include <$ac_header>
14804 _ACEOF
14805 if { (ac_try="$ac_cpp conftest.$ac_ext"
14806 case "(($ac_try" in
14807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14808 *) ac_try_echo=$ac_try;;
14809 esac
14810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14812 ac_status=$?
14813 grep -v '^ *+' conftest.er1 >conftest.err
14814 rm -f conftest.er1
14815 cat conftest.err >&5
14816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817 (exit $ac_status); } >/dev/null && {
14818 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14819 test ! -s conftest.err
14820 }; then
14821 ac_header_preproc=yes
14822 else
14823 echo "$as_me: failed program was:" >&5
14824 sed 's/^/| /' conftest.$ac_ext >&5
14825
14826 ac_header_preproc=no
14827 fi
14828
14829 rm -f conftest.err conftest.$ac_ext
14830 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14831 echo "${ECHO_T}$ac_header_preproc" >&6; }
14832
14833 # So? What about this header?
14834 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14835 yes:no: )
14836 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14837 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14839 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14840 ac_header_preproc=yes
14841 ;;
14842 no:yes:* )
14843 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14844 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14845 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14846 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14847 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14848 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14849 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14850 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14852 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14853 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14854 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14855
14856 ;;
14857 esac
14858 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14861 echo $ECHO_N "(cached) $ECHO_C" >&6
14862 else
14863 eval "$as_ac_Header=\$ac_header_preproc"
14864 fi
14865 ac_res=`eval echo '${'$as_ac_Header'}'`
14866 { echo "$as_me:$LINENO: result: $ac_res" >&5
14867 echo "${ECHO_T}$ac_res" >&6; }
14868
14869 fi
14870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14871 cat >>confdefs.h <<_ACEOF
14872 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14873 _ACEOF
14874
14875 fi
14876
14877 done
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949 for ac_func in gethostname getdomainname dup2 \
14950 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
14951 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
14952 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
14953 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14954 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
14955 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14956 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
14957 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
14958 do
14959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14960 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14962 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14963 echo $ECHO_N "(cached) $ECHO_C" >&6
14964 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14973 #define $ac_func innocuous_$ac_func
14974
14975 /* System header to define __stub macros and hopefully few prototypes,
14976 which can conflict with char $ac_func (); below.
14977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14978 <limits.h> exists even on freestanding compilers. */
14979
14980 #ifdef __STDC__
14981 # include <limits.h>
14982 #else
14983 # include <assert.h>
14984 #endif
14985
14986 #undef $ac_func
14987
14988 /* Override any GCC internal prototype to avoid an error.
14989 Use char because int might match the return type of a GCC
14990 builtin and then its argument prototype would still apply. */
14991 #ifdef __cplusplus
14992 extern "C"
14993 #endif
14994 char $ac_func ();
14995 /* The GNU C library defines this for functions which it implements
14996 to always fail with ENOSYS. Some functions are actually named
14997 something starting with __ and the normal name is an alias. */
14998 #if defined __stub_$ac_func || defined __stub___$ac_func
14999 choke me
15000 #endif
15001
15002 int
15003 main ()
15004 {
15005 return $ac_func ();
15006 ;
15007 return 0;
15008 }
15009 _ACEOF
15010 rm -f conftest.$ac_objext conftest$ac_exeext
15011 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
15018 ac_status=$?
15019 grep -v '^ *+' conftest.er1 >conftest.err
15020 rm -f conftest.er1
15021 cat conftest.err >&5
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); } && {
15024 test -z "$ac_c_werror_flag" ||
15025 test ! -s conftest.err
15026 } && test -s conftest$ac_exeext &&
15027 $as_test_x conftest$ac_exeext; then
15028 eval "$as_ac_var=yes"
15029 else
15030 echo "$as_me: failed program was:" >&5
15031 sed 's/^/| /' conftest.$ac_ext >&5
15032
15033 eval "$as_ac_var=no"
15034 fi
15035
15036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15037 conftest$ac_exeext conftest.$ac_ext
15038 fi
15039 ac_res=`eval echo '${'$as_ac_var'}'`
15040 { echo "$as_me:$LINENO: result: $ac_res" >&5
15041 echo "${ECHO_T}$ac_res" >&6; }
15042 if test `eval echo '${'$as_ac_var'}'` = yes; then
15043 cat >>confdefs.h <<_ACEOF
15044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15045 _ACEOF
15046
15047 fi
15048 done
15049
15050
15051
15052 for ac_header in sys/un.h
15053 do
15054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15059 echo $ECHO_N "(cached) $ECHO_C" >&6
15060 fi
15061 ac_res=`eval echo '${'$as_ac_Header'}'`
15062 { echo "$as_me:$LINENO: result: $ac_res" >&5
15063 echo "${ECHO_T}$ac_res" >&6; }
15064 else
15065 # Is the header compilable?
15066 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15067 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15068 cat >conftest.$ac_ext <<_ACEOF
15069 /* confdefs.h. */
15070 _ACEOF
15071 cat confdefs.h >>conftest.$ac_ext
15072 cat >>conftest.$ac_ext <<_ACEOF
15073 /* end confdefs.h. */
15074 $ac_includes_default
15075 #include <$ac_header>
15076 _ACEOF
15077 rm -f conftest.$ac_objext
15078 if { (ac_try="$ac_compile"
15079 case "(($ac_try" in
15080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15081 *) ac_try_echo=$ac_try;;
15082 esac
15083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15084 (eval "$ac_compile") 2>conftest.er1
15085 ac_status=$?
15086 grep -v '^ *+' conftest.er1 >conftest.err
15087 rm -f conftest.er1
15088 cat conftest.err >&5
15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 (exit $ac_status); } && {
15091 test -z "$ac_c_werror_flag" ||
15092 test ! -s conftest.err
15093 } && test -s conftest.$ac_objext; then
15094 ac_header_compiler=yes
15095 else
15096 echo "$as_me: failed program was:" >&5
15097 sed 's/^/| /' conftest.$ac_ext >&5
15098
15099 ac_header_compiler=no
15100 fi
15101
15102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15103 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15104 echo "${ECHO_T}$ac_header_compiler" >&6; }
15105
15106 # Is the header present?
15107 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15108 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15109 cat >conftest.$ac_ext <<_ACEOF
15110 /* confdefs.h. */
15111 _ACEOF
15112 cat confdefs.h >>conftest.$ac_ext
15113 cat >>conftest.$ac_ext <<_ACEOF
15114 /* end confdefs.h. */
15115 #include <$ac_header>
15116 _ACEOF
15117 if { (ac_try="$ac_cpp conftest.$ac_ext"
15118 case "(($ac_try" in
15119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15120 *) ac_try_echo=$ac_try;;
15121 esac
15122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15124 ac_status=$?
15125 grep -v '^ *+' conftest.er1 >conftest.err
15126 rm -f conftest.er1
15127 cat conftest.err >&5
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); } >/dev/null && {
15130 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15131 test ! -s conftest.err
15132 }; then
15133 ac_header_preproc=yes
15134 else
15135 echo "$as_me: failed program was:" >&5
15136 sed 's/^/| /' conftest.$ac_ext >&5
15137
15138 ac_header_preproc=no
15139 fi
15140
15141 rm -f conftest.err conftest.$ac_ext
15142 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15143 echo "${ECHO_T}$ac_header_preproc" >&6; }
15144
15145 # So? What about this header?
15146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15147 yes:no: )
15148 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15149 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15151 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15152 ac_header_preproc=yes
15153 ;;
15154 no:yes:* )
15155 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15156 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15157 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15158 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15159 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15160 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15161 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15162 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15165 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15166 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15167
15168 ;;
15169 esac
15170 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15173 echo $ECHO_N "(cached) $ECHO_C" >&6
15174 else
15175 eval "$as_ac_Header=\$ac_header_preproc"
15176 fi
15177 ac_res=`eval echo '${'$as_ac_Header'}'`
15178 { echo "$as_me:$LINENO: result: $ac_res" >&5
15179 echo "${ECHO_T}$ac_res" >&6; }
15180
15181 fi
15182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15183 cat >>confdefs.h <<_ACEOF
15184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15185 _ACEOF
15186
15187 fi
15188
15189 done
15190
15191
15192
15193
15194
15195
15196 for ac_header in $ac_header_list
15197 do
15198 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15200 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15203 echo $ECHO_N "(cached) $ECHO_C" >&6
15204 fi
15205 ac_res=`eval echo '${'$as_ac_Header'}'`
15206 { echo "$as_me:$LINENO: result: $ac_res" >&5
15207 echo "${ECHO_T}$ac_res" >&6; }
15208 else
15209 # Is the header compilable?
15210 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15211 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15212 cat >conftest.$ac_ext <<_ACEOF
15213 /* confdefs.h. */
15214 _ACEOF
15215 cat confdefs.h >>conftest.$ac_ext
15216 cat >>conftest.$ac_ext <<_ACEOF
15217 /* end confdefs.h. */
15218 $ac_includes_default
15219 #include <$ac_header>
15220 _ACEOF
15221 rm -f conftest.$ac_objext
15222 if { (ac_try="$ac_compile"
15223 case "(($ac_try" in
15224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15225 *) ac_try_echo=$ac_try;;
15226 esac
15227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15228 (eval "$ac_compile") 2>conftest.er1
15229 ac_status=$?
15230 grep -v '^ *+' conftest.er1 >conftest.err
15231 rm -f conftest.er1
15232 cat conftest.err >&5
15233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 (exit $ac_status); } && {
15235 test -z "$ac_c_werror_flag" ||
15236 test ! -s conftest.err
15237 } && test -s conftest.$ac_objext; then
15238 ac_header_compiler=yes
15239 else
15240 echo "$as_me: failed program was:" >&5
15241 sed 's/^/| /' conftest.$ac_ext >&5
15242
15243 ac_header_compiler=no
15244 fi
15245
15246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15247 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15248 echo "${ECHO_T}$ac_header_compiler" >&6; }
15249
15250 # Is the header present?
15251 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15252 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15253 cat >conftest.$ac_ext <<_ACEOF
15254 /* confdefs.h. */
15255 _ACEOF
15256 cat confdefs.h >>conftest.$ac_ext
15257 cat >>conftest.$ac_ext <<_ACEOF
15258 /* end confdefs.h. */
15259 #include <$ac_header>
15260 _ACEOF
15261 if { (ac_try="$ac_cpp conftest.$ac_ext"
15262 case "(($ac_try" in
15263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15264 *) ac_try_echo=$ac_try;;
15265 esac
15266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15267 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15268 ac_status=$?
15269 grep -v '^ *+' conftest.er1 >conftest.err
15270 rm -f conftest.er1
15271 cat conftest.err >&5
15272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 (exit $ac_status); } >/dev/null && {
15274 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15275 test ! -s conftest.err
15276 }; then
15277 ac_header_preproc=yes
15278 else
15279 echo "$as_me: failed program was:" >&5
15280 sed 's/^/| /' conftest.$ac_ext >&5
15281
15282 ac_header_preproc=no
15283 fi
15284
15285 rm -f conftest.err conftest.$ac_ext
15286 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15287 echo "${ECHO_T}$ac_header_preproc" >&6; }
15288
15289 # So? What about this header?
15290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15291 yes:no: )
15292 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15293 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15295 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15296 ac_header_preproc=yes
15297 ;;
15298 no:yes:* )
15299 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15300 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15301 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15302 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15303 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15304 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15305 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15306 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15308 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15309 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15310 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15311
15312 ;;
15313 esac
15314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15317 echo $ECHO_N "(cached) $ECHO_C" >&6
15318 else
15319 eval "$as_ac_Header=\$ac_header_preproc"
15320 fi
15321 ac_res=`eval echo '${'$as_ac_Header'}'`
15322 { echo "$as_me:$LINENO: result: $ac_res" >&5
15323 echo "${ECHO_T}$ac_res" >&6; }
15324
15325 fi
15326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15327 cat >>confdefs.h <<_ACEOF
15328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15329 _ACEOF
15330
15331 fi
15332
15333 done
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343 for ac_func in $ac_func_list
15344 do
15345 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15346 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15348 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15349 echo $ECHO_N "(cached) $ECHO_C" >&6
15350 else
15351 cat >conftest.$ac_ext <<_ACEOF
15352 /* confdefs.h. */
15353 _ACEOF
15354 cat confdefs.h >>conftest.$ac_ext
15355 cat >>conftest.$ac_ext <<_ACEOF
15356 /* end confdefs.h. */
15357 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15359 #define $ac_func innocuous_$ac_func
15360
15361 /* System header to define __stub macros and hopefully few prototypes,
15362 which can conflict with char $ac_func (); below.
15363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15364 <limits.h> exists even on freestanding compilers. */
15365
15366 #ifdef __STDC__
15367 # include <limits.h>
15368 #else
15369 # include <assert.h>
15370 #endif
15371
15372 #undef $ac_func
15373
15374 /* Override any GCC internal prototype to avoid an error.
15375 Use char because int might match the return type of a GCC
15376 builtin and then its argument prototype would still apply. */
15377 #ifdef __cplusplus
15378 extern "C"
15379 #endif
15380 char $ac_func ();
15381 /* The GNU C library defines this for functions which it implements
15382 to always fail with ENOSYS. Some functions are actually named
15383 something starting with __ and the normal name is an alias. */
15384 #if defined __stub_$ac_func || defined __stub___$ac_func
15385 choke me
15386 #endif
15387
15388 int
15389 main ()
15390 {
15391 return $ac_func ();
15392 ;
15393 return 0;
15394 }
15395 _ACEOF
15396 rm -f conftest.$ac_objext conftest$ac_exeext
15397 if { (ac_try="$ac_link"
15398 case "(($ac_try" in
15399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15400 *) ac_try_echo=$ac_try;;
15401 esac
15402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15403 (eval "$ac_link") 2>conftest.er1
15404 ac_status=$?
15405 grep -v '^ *+' conftest.er1 >conftest.err
15406 rm -f conftest.er1
15407 cat conftest.err >&5
15408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409 (exit $ac_status); } && {
15410 test -z "$ac_c_werror_flag" ||
15411 test ! -s conftest.err
15412 } && test -s conftest$ac_exeext &&
15413 $as_test_x conftest$ac_exeext; then
15414 eval "$as_ac_var=yes"
15415 else
15416 echo "$as_me: failed program was:" >&5
15417 sed 's/^/| /' conftest.$ac_ext >&5
15418
15419 eval "$as_ac_var=no"
15420 fi
15421
15422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15423 conftest$ac_exeext conftest.$ac_ext
15424 fi
15425 ac_res=`eval echo '${'$as_ac_var'}'`
15426 { echo "$as_me:$LINENO: result: $ac_res" >&5
15427 echo "${ECHO_T}$ac_res" >&6; }
15428 if test `eval echo '${'$as_ac_var'}'` = yes; then
15429 cat >>confdefs.h <<_ACEOF
15430 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15431 _ACEOF
15432
15433 fi
15434 done
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452 { echo "$as_me:$LINENO: checking for working mktime" >&5
15453 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
15454 if test "${ac_cv_func_working_mktime+set}" = set; then
15455 echo $ECHO_N "(cached) $ECHO_C" >&6
15456 else
15457 if test "$cross_compiling" = yes; then
15458 ac_cv_func_working_mktime=no
15459 else
15460 cat >conftest.$ac_ext <<_ACEOF
15461 /* confdefs.h. */
15462 _ACEOF
15463 cat confdefs.h >>conftest.$ac_ext
15464 cat >>conftest.$ac_ext <<_ACEOF
15465 /* end confdefs.h. */
15466 /* Test program from Paul Eggert and Tony Leneis. */
15467 #ifdef TIME_WITH_SYS_TIME
15468 # include <sys/time.h>
15469 # include <time.h>
15470 #else
15471 # ifdef HAVE_SYS_TIME_H
15472 # include <sys/time.h>
15473 # else
15474 # include <time.h>
15475 # endif
15476 #endif
15477
15478 #include <stdlib.h>
15479
15480 #ifdef HAVE_UNISTD_H
15481 # include <unistd.h>
15482 #endif
15483
15484 #ifndef HAVE_ALARM
15485 # define alarm(X) /* empty */
15486 #endif
15487
15488 /* Work around redefinition to rpl_putenv by other config tests. */
15489 #undef putenv
15490
15491 static time_t time_t_max;
15492 static time_t time_t_min;
15493
15494 /* Values we'll use to set the TZ environment variable. */
15495 static char *tz_strings[] = {
15496 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15497 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15498 };
15499 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15500
15501 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15502 Based on a problem report from Andreas Jaeger. */
15503 static int
15504 spring_forward_gap ()
15505 {
15506 /* glibc (up to about 1998-10-07) failed this test. */
15507 struct tm tm;
15508
15509 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15510 instead of "TZ=America/Vancouver" in order to detect the bug even
15511 on systems that don't support the Olson extension, or don't have the
15512 full zoneinfo tables installed. */
15513 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15514
15515 tm.tm_year = 98;
15516 tm.tm_mon = 3;
15517 tm.tm_mday = 5;
15518 tm.tm_hour = 2;
15519 tm.tm_min = 0;
15520 tm.tm_sec = 0;
15521 tm.tm_isdst = -1;
15522 return mktime (&tm) != (time_t) -1;
15523 }
15524
15525 static int
15526 mktime_test1 (now)
15527 time_t now;
15528 {
15529 struct tm *lt;
15530 return ! (lt = localtime (&now)) || mktime (lt) == now;
15531 }
15532
15533 static int
15534 mktime_test (now)
15535 time_t now;
15536 {
15537 return (mktime_test1 (now)
15538 && mktime_test1 ((time_t) (time_t_max - now))
15539 && mktime_test1 ((time_t) (time_t_min + now)));
15540 }
15541
15542 static int
15543 irix_6_4_bug ()
15544 {
15545 /* Based on code from Ariel Faigon. */
15546 struct tm tm;
15547 tm.tm_year = 96;
15548 tm.tm_mon = 3;
15549 tm.tm_mday = 0;
15550 tm.tm_hour = 0;
15551 tm.tm_min = 0;
15552 tm.tm_sec = 0;
15553 tm.tm_isdst = -1;
15554 mktime (&tm);
15555 return tm.tm_mon == 2 && tm.tm_mday == 31;
15556 }
15557
15558 static int
15559 bigtime_test (j)
15560 int j;
15561 {
15562 struct tm tm;
15563 time_t now;
15564 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15565 now = mktime (&tm);
15566 if (now != (time_t) -1)
15567 {
15568 struct tm *lt = localtime (&now);
15569 if (! (lt
15570 && lt->tm_year == tm.tm_year
15571 && lt->tm_mon == tm.tm_mon
15572 && lt->tm_mday == tm.tm_mday
15573 && lt->tm_hour == tm.tm_hour
15574 && lt->tm_min == tm.tm_min
15575 && lt->tm_sec == tm.tm_sec
15576 && lt->tm_yday == tm.tm_yday
15577 && lt->tm_wday == tm.tm_wday
15578 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15579 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15580 return 0;
15581 }
15582 return 1;
15583 }
15584
15585 static int
15586 year_2050_test ()
15587 {
15588 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15589 ignoring leap seconds. */
15590 unsigned long int answer = 2527315200UL;
15591
15592 struct tm tm;
15593 time_t t;
15594 tm.tm_year = 2050 - 1900;
15595 tm.tm_mon = 2 - 1;
15596 tm.tm_mday = 1;
15597 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15598 tm.tm_isdst = -1;
15599
15600 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15601 instead of "TZ=America/Vancouver" in order to detect the bug even
15602 on systems that don't support the Olson extension, or don't have the
15603 full zoneinfo tables installed. */
15604 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15605
15606 t = mktime (&tm);
15607
15608 /* Check that the result is either a failure, or close enough
15609 to the correct answer that we can assume the discrepancy is
15610 due to leap seconds. */
15611 return (t == (time_t) -1
15612 || (0 < t && answer - 120 <= t && t <= answer + 120));
15613 }
15614
15615 int
15616 main ()
15617 {
15618 time_t t, delta;
15619 int i, j;
15620
15621 /* This test makes some buggy mktime implementations loop.
15622 Give up after 60 seconds; a mktime slower than that
15623 isn't worth using anyway. */
15624 alarm (60);
15625
15626 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15627 continue;
15628 time_t_max--;
15629 if ((time_t) -1 < 0)
15630 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15631 continue;
15632 delta = time_t_max / 997; /* a suitable prime number */
15633 for (i = 0; i < N_STRINGS; i++)
15634 {
15635 if (tz_strings[i])
15636 putenv (tz_strings[i]);
15637
15638 for (t = 0; t <= time_t_max - delta; t += delta)
15639 if (! mktime_test (t))
15640 return 1;
15641 if (! (mktime_test ((time_t) 1)
15642 && mktime_test ((time_t) (60 * 60))
15643 && mktime_test ((time_t) (60 * 60 * 24))))
15644 return 1;
15645
15646 for (j = 1; 0 < j; j *= 2)
15647 if (! bigtime_test (j))
15648 return 1;
15649 if (! bigtime_test (j - 1))
15650 return 1;
15651 }
15652 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
15653 }
15654 _ACEOF
15655 rm -f conftest$ac_exeext
15656 if { (ac_try="$ac_link"
15657 case "(($ac_try" in
15658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15659 *) ac_try_echo=$ac_try;;
15660 esac
15661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15662 (eval "$ac_link") 2>&5
15663 ac_status=$?
15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
15672 ac_status=$?
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); }; }; then
15675 ac_cv_func_working_mktime=yes
15676 else
15677 echo "$as_me: program exited with status $ac_status" >&5
15678 echo "$as_me: failed program was:" >&5
15679 sed 's/^/| /' conftest.$ac_ext >&5
15680
15681 ( exit $ac_status )
15682 ac_cv_func_working_mktime=no
15683 fi
15684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15685 fi
15686
15687
15688 fi
15689 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15690 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
15691 if test $ac_cv_func_working_mktime = no; then
15692 case " $LIBOBJS " in
15693 *" mktime.$ac_objext "* ) ;;
15694 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
15695 ;;
15696 esac
15697
15698 fi
15699
15700 if test "$ac_cv_func_working_mktime" = no; then
15701
15702 cat >>confdefs.h <<\_ACEOF
15703 #define BROKEN_MKTIME 1
15704 _ACEOF
15705
15706 fi
15707
15708 ac_have_func=no # yes means we've found a way to get the load average.
15709
15710 # Make sure getloadavg.c is where it belongs, at configure-time.
15711 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
15712 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
15713 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
15714 { (exit 1); exit 1; }; }
15715
15716 ac_save_LIBS=$LIBS
15717
15718 # Check for getloadavg, but be sure not to touch the cache variable.
15719 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
15720 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
15721 if test "${ac_cv_func_getloadavg+set}" = set; then
15722 echo $ECHO_N "(cached) $ECHO_C" >&6
15723 else
15724 cat >conftest.$ac_ext <<_ACEOF
15725 /* confdefs.h. */
15726 _ACEOF
15727 cat confdefs.h >>conftest.$ac_ext
15728 cat >>conftest.$ac_ext <<_ACEOF
15729 /* end confdefs.h. */
15730 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
15731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15732 #define getloadavg innocuous_getloadavg
15733
15734 /* System header to define __stub macros and hopefully few prototypes,
15735 which can conflict with char getloadavg (); below.
15736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15737 <limits.h> exists even on freestanding compilers. */
15738
15739 #ifdef __STDC__
15740 # include <limits.h>
15741 #else
15742 # include <assert.h>
15743 #endif
15744
15745 #undef getloadavg
15746
15747 /* Override any GCC internal prototype to avoid an error.
15748 Use char because int might match the return type of a GCC
15749 builtin and then its argument prototype would still apply. */
15750 #ifdef __cplusplus
15751 extern "C"
15752 #endif
15753 char getloadavg ();
15754 /* The GNU C library defines this for functions which it implements
15755 to always fail with ENOSYS. Some functions are actually named
15756 something starting with __ and the normal name is an alias. */
15757 #if defined __stub_getloadavg || defined __stub___getloadavg
15758 choke me
15759 #endif
15760
15761 int
15762 main ()
15763 {
15764 return getloadavg ();
15765 ;
15766 return 0;
15767 }
15768 _ACEOF
15769 rm -f conftest.$ac_objext conftest$ac_exeext
15770 if { (ac_try="$ac_link"
15771 case "(($ac_try" in
15772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15773 *) ac_try_echo=$ac_try;;
15774 esac
15775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15776 (eval "$ac_link") 2>conftest.er1
15777 ac_status=$?
15778 grep -v '^ *+' conftest.er1 >conftest.err
15779 rm -f conftest.er1
15780 cat conftest.err >&5
15781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782 (exit $ac_status); } && {
15783 test -z "$ac_c_werror_flag" ||
15784 test ! -s conftest.err
15785 } && test -s conftest$ac_exeext &&
15786 $as_test_x conftest$ac_exeext; then
15787 ac_cv_func_getloadavg=yes
15788 else
15789 echo "$as_me: failed program was:" >&5
15790 sed 's/^/| /' conftest.$ac_ext >&5
15791
15792 ac_cv_func_getloadavg=no
15793 fi
15794
15795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15796 conftest$ac_exeext conftest.$ac_ext
15797 fi
15798 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
15799 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
15800 if test $ac_cv_func_getloadavg = yes; then
15801 exit 0
15802 else
15803 exit 1
15804 fi
15805 ) && ac_have_func=yes
15806
15807 # On HPUX9, an unprivileged user can get load averages through this function.
15808
15809 for ac_func in pstat_getdynamic
15810 do
15811 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15812 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15813 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15814 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15815 echo $ECHO_N "(cached) $ECHO_C" >&6
15816 else
15817 cat >conftest.$ac_ext <<_ACEOF
15818 /* confdefs.h. */
15819 _ACEOF
15820 cat confdefs.h >>conftest.$ac_ext
15821 cat >>conftest.$ac_ext <<_ACEOF
15822 /* end confdefs.h. */
15823 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15825 #define $ac_func innocuous_$ac_func
15826
15827 /* System header to define __stub macros and hopefully few prototypes,
15828 which can conflict with char $ac_func (); below.
15829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15830 <limits.h> exists even on freestanding compilers. */
15831
15832 #ifdef __STDC__
15833 # include <limits.h>
15834 #else
15835 # include <assert.h>
15836 #endif
15837
15838 #undef $ac_func
15839
15840 /* Override any GCC internal prototype to avoid an error.
15841 Use char because int might match the return type of a GCC
15842 builtin and then its argument prototype would still apply. */
15843 #ifdef __cplusplus
15844 extern "C"
15845 #endif
15846 char $ac_func ();
15847 /* The GNU C library defines this for functions which it implements
15848 to always fail with ENOSYS. Some functions are actually named
15849 something starting with __ and the normal name is an alias. */
15850 #if defined __stub_$ac_func || defined __stub___$ac_func
15851 choke me
15852 #endif
15853
15854 int
15855 main ()
15856 {
15857 return $ac_func ();
15858 ;
15859 return 0;
15860 }
15861 _ACEOF
15862 rm -f conftest.$ac_objext conftest$ac_exeext
15863 if { (ac_try="$ac_link"
15864 case "(($ac_try" in
15865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15866 *) ac_try_echo=$ac_try;;
15867 esac
15868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15869 (eval "$ac_link") 2>conftest.er1
15870 ac_status=$?
15871 grep -v '^ *+' conftest.er1 >conftest.err
15872 rm -f conftest.er1
15873 cat conftest.err >&5
15874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875 (exit $ac_status); } && {
15876 test -z "$ac_c_werror_flag" ||
15877 test ! -s conftest.err
15878 } && test -s conftest$ac_exeext &&
15879 $as_test_x conftest$ac_exeext; then
15880 eval "$as_ac_var=yes"
15881 else
15882 echo "$as_me: failed program was:" >&5
15883 sed 's/^/| /' conftest.$ac_ext >&5
15884
15885 eval "$as_ac_var=no"
15886 fi
15887
15888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15889 conftest$ac_exeext conftest.$ac_ext
15890 fi
15891 ac_res=`eval echo '${'$as_ac_var'}'`
15892 { echo "$as_me:$LINENO: result: $ac_res" >&5
15893 echo "${ECHO_T}$ac_res" >&6; }
15894 if test `eval echo '${'$as_ac_var'}'` = yes; then
15895 cat >>confdefs.h <<_ACEOF
15896 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15897 _ACEOF
15898
15899 fi
15900 done
15901
15902
15903 # Solaris has libkstat which does not require root.
15904
15905 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
15906 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
15907 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
15908 echo $ECHO_N "(cached) $ECHO_C" >&6
15909 else
15910 ac_check_lib_save_LIBS=$LIBS
15911 LIBS="-lkstat $LIBS"
15912 cat >conftest.$ac_ext <<_ACEOF
15913 /* confdefs.h. */
15914 _ACEOF
15915 cat confdefs.h >>conftest.$ac_ext
15916 cat >>conftest.$ac_ext <<_ACEOF
15917 /* end confdefs.h. */
15918
15919 /* Override any GCC internal prototype to avoid an error.
15920 Use char because int might match the return type of a GCC
15921 builtin and then its argument prototype would still apply. */
15922 #ifdef __cplusplus
15923 extern "C"
15924 #endif
15925 char kstat_open ();
15926 int
15927 main ()
15928 {
15929 return kstat_open ();
15930 ;
15931 return 0;
15932 }
15933 _ACEOF
15934 rm -f conftest.$ac_objext conftest$ac_exeext
15935 if { (ac_try="$ac_link"
15936 case "(($ac_try" in
15937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15938 *) ac_try_echo=$ac_try;;
15939 esac
15940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15941 (eval "$ac_link") 2>conftest.er1
15942 ac_status=$?
15943 grep -v '^ *+' conftest.er1 >conftest.err
15944 rm -f conftest.er1
15945 cat conftest.err >&5
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); } && {
15948 test -z "$ac_c_werror_flag" ||
15949 test ! -s conftest.err
15950 } && test -s conftest$ac_exeext &&
15951 $as_test_x conftest$ac_exeext; then
15952 ac_cv_lib_kstat_kstat_open=yes
15953 else
15954 echo "$as_me: failed program was:" >&5
15955 sed 's/^/| /' conftest.$ac_ext >&5
15956
15957 ac_cv_lib_kstat_kstat_open=no
15958 fi
15959
15960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15961 conftest$ac_exeext conftest.$ac_ext
15962 LIBS=$ac_check_lib_save_LIBS
15963 fi
15964 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
15965 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
15966 if test $ac_cv_lib_kstat_kstat_open = yes; then
15967 cat >>confdefs.h <<_ACEOF
15968 #define HAVE_LIBKSTAT 1
15969 _ACEOF
15970
15971 LIBS="-lkstat $LIBS"
15972
15973 fi
15974
15975 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
15976
15977 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15978 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15979 # to get the right answer into the cache.
15980 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
15981 if test $ac_have_func = no; then
15982 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
15983 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
15984 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15985 echo $ECHO_N "(cached) $ECHO_C" >&6
15986 else
15987 ac_check_lib_save_LIBS=$LIBS
15988 LIBS="-lelf $LIBS"
15989 cat >conftest.$ac_ext <<_ACEOF
15990 /* confdefs.h. */
15991 _ACEOF
15992 cat confdefs.h >>conftest.$ac_ext
15993 cat >>conftest.$ac_ext <<_ACEOF
15994 /* end confdefs.h. */
15995
15996 /* Override any GCC internal prototype to avoid an error.
15997 Use char because int might match the return type of a GCC
15998 builtin and then its argument prototype would still apply. */
15999 #ifdef __cplusplus
16000 extern "C"
16001 #endif
16002 char elf_begin ();
16003 int
16004 main ()
16005 {
16006 return elf_begin ();
16007 ;
16008 return 0;
16009 }
16010 _ACEOF
16011 rm -f conftest.$ac_objext conftest$ac_exeext
16012 if { (ac_try="$ac_link"
16013 case "(($ac_try" in
16014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16015 *) ac_try_echo=$ac_try;;
16016 esac
16017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16018 (eval "$ac_link") 2>conftest.er1
16019 ac_status=$?
16020 grep -v '^ *+' conftest.er1 >conftest.err
16021 rm -f conftest.er1
16022 cat conftest.err >&5
16023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024 (exit $ac_status); } && {
16025 test -z "$ac_c_werror_flag" ||
16026 test ! -s conftest.err
16027 } && test -s conftest$ac_exeext &&
16028 $as_test_x conftest$ac_exeext; then
16029 ac_cv_lib_elf_elf_begin=yes
16030 else
16031 echo "$as_me: failed program was:" >&5
16032 sed 's/^/| /' conftest.$ac_ext >&5
16033
16034 ac_cv_lib_elf_elf_begin=no
16035 fi
16036
16037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16038 conftest$ac_exeext conftest.$ac_ext
16039 LIBS=$ac_check_lib_save_LIBS
16040 fi
16041 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
16042 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16043 if test $ac_cv_lib_elf_elf_begin = yes; then
16044 LIBS="-lelf $LIBS"
16045 fi
16046
16047 fi
16048 if test $ac_have_func = no; then
16049 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
16050 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
16051 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16052 echo $ECHO_N "(cached) $ECHO_C" >&6
16053 else
16054 ac_check_lib_save_LIBS=$LIBS
16055 LIBS="-lkvm $LIBS"
16056 cat >conftest.$ac_ext <<_ACEOF
16057 /* confdefs.h. */
16058 _ACEOF
16059 cat confdefs.h >>conftest.$ac_ext
16060 cat >>conftest.$ac_ext <<_ACEOF
16061 /* end confdefs.h. */
16062
16063 /* Override any GCC internal prototype to avoid an error.
16064 Use char because int might match the return type of a GCC
16065 builtin and then its argument prototype would still apply. */
16066 #ifdef __cplusplus
16067 extern "C"
16068 #endif
16069 char kvm_open ();
16070 int
16071 main ()
16072 {
16073 return kvm_open ();
16074 ;
16075 return 0;
16076 }
16077 _ACEOF
16078 rm -f conftest.$ac_objext conftest$ac_exeext
16079 if { (ac_try="$ac_link"
16080 case "(($ac_try" in
16081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16082 *) ac_try_echo=$ac_try;;
16083 esac
16084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16085 (eval "$ac_link") 2>conftest.er1
16086 ac_status=$?
16087 grep -v '^ *+' conftest.er1 >conftest.err
16088 rm -f conftest.er1
16089 cat conftest.err >&5
16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 (exit $ac_status); } && {
16092 test -z "$ac_c_werror_flag" ||
16093 test ! -s conftest.err
16094 } && test -s conftest$ac_exeext &&
16095 $as_test_x conftest$ac_exeext; then
16096 ac_cv_lib_kvm_kvm_open=yes
16097 else
16098 echo "$as_me: failed program was:" >&5
16099 sed 's/^/| /' conftest.$ac_ext >&5
16100
16101 ac_cv_lib_kvm_kvm_open=no
16102 fi
16103
16104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16105 conftest$ac_exeext conftest.$ac_ext
16106 LIBS=$ac_check_lib_save_LIBS
16107 fi
16108 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
16109 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16110 if test $ac_cv_lib_kvm_kvm_open = yes; then
16111 LIBS="-lkvm $LIBS"
16112 fi
16113
16114 # Check for the 4.4BSD definition of getloadavg.
16115 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
16116 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
16117 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16118 echo $ECHO_N "(cached) $ECHO_C" >&6
16119 else
16120 ac_check_lib_save_LIBS=$LIBS
16121 LIBS="-lutil $LIBS"
16122 cat >conftest.$ac_ext <<_ACEOF
16123 /* confdefs.h. */
16124 _ACEOF
16125 cat confdefs.h >>conftest.$ac_ext
16126 cat >>conftest.$ac_ext <<_ACEOF
16127 /* end confdefs.h. */
16128
16129 /* Override any GCC internal prototype to avoid an error.
16130 Use char because int might match the return type of a GCC
16131 builtin and then its argument prototype would still apply. */
16132 #ifdef __cplusplus
16133 extern "C"
16134 #endif
16135 char getloadavg ();
16136 int
16137 main ()
16138 {
16139 return getloadavg ();
16140 ;
16141 return 0;
16142 }
16143 _ACEOF
16144 rm -f conftest.$ac_objext conftest$ac_exeext
16145 if { (ac_try="$ac_link"
16146 case "(($ac_try" in
16147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16148 *) ac_try_echo=$ac_try;;
16149 esac
16150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16151 (eval "$ac_link") 2>conftest.er1
16152 ac_status=$?
16153 grep -v '^ *+' conftest.er1 >conftest.err
16154 rm -f conftest.er1
16155 cat conftest.err >&5
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); } && {
16158 test -z "$ac_c_werror_flag" ||
16159 test ! -s conftest.err
16160 } && test -s conftest$ac_exeext &&
16161 $as_test_x conftest$ac_exeext; then
16162 ac_cv_lib_util_getloadavg=yes
16163 else
16164 echo "$as_me: failed program was:" >&5
16165 sed 's/^/| /' conftest.$ac_ext >&5
16166
16167 ac_cv_lib_util_getloadavg=no
16168 fi
16169
16170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16171 conftest$ac_exeext conftest.$ac_ext
16172 LIBS=$ac_check_lib_save_LIBS
16173 fi
16174 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
16175 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16176 if test $ac_cv_lib_util_getloadavg = yes; then
16177 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16178 fi
16179
16180 fi
16181
16182 if test $ac_have_func = no; then
16183 # There is a commonly available library for RS/6000 AIX.
16184 # Since it is not a standard part of AIX, it might be installed locally.
16185 ac_getloadavg_LIBS=$LIBS
16186 LIBS="-L/usr/local/lib $LIBS"
16187 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
16188 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
16189 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16190 echo $ECHO_N "(cached) $ECHO_C" >&6
16191 else
16192 ac_check_lib_save_LIBS=$LIBS
16193 LIBS="-lgetloadavg $LIBS"
16194 cat >conftest.$ac_ext <<_ACEOF
16195 /* confdefs.h. */
16196 _ACEOF
16197 cat confdefs.h >>conftest.$ac_ext
16198 cat >>conftest.$ac_ext <<_ACEOF
16199 /* end confdefs.h. */
16200
16201 /* Override any GCC internal prototype to avoid an error.
16202 Use char because int might match the return type of a GCC
16203 builtin and then its argument prototype would still apply. */
16204 #ifdef __cplusplus
16205 extern "C"
16206 #endif
16207 char getloadavg ();
16208 int
16209 main ()
16210 {
16211 return getloadavg ();
16212 ;
16213 return 0;
16214 }
16215 _ACEOF
16216 rm -f conftest.$ac_objext conftest$ac_exeext
16217 if { (ac_try="$ac_link"
16218 case "(($ac_try" in
16219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16220 *) ac_try_echo=$ac_try;;
16221 esac
16222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16223 (eval "$ac_link") 2>conftest.er1
16224 ac_status=$?
16225 grep -v '^ *+' conftest.er1 >conftest.err
16226 rm -f conftest.er1
16227 cat conftest.err >&5
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); } && {
16230 test -z "$ac_c_werror_flag" ||
16231 test ! -s conftest.err
16232 } && test -s conftest$ac_exeext &&
16233 $as_test_x conftest$ac_exeext; then
16234 ac_cv_lib_getloadavg_getloadavg=yes
16235 else
16236 echo "$as_me: failed program was:" >&5
16237 sed 's/^/| /' conftest.$ac_ext >&5
16238
16239 ac_cv_lib_getloadavg_getloadavg=no
16240 fi
16241
16242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16243 conftest$ac_exeext conftest.$ac_ext
16244 LIBS=$ac_check_lib_save_LIBS
16245 fi
16246 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
16247 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16248 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16249 LIBS="-lgetloadavg $LIBS"
16250 else
16251 LIBS=$ac_getloadavg_LIBS
16252 fi
16253
16254 fi
16255
16256 # Make sure it is really in the library, if we think we found it,
16257 # otherwise set up the replacement function.
16258
16259 for ac_func in getloadavg
16260 do
16261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16262 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16264 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16265 echo $ECHO_N "(cached) $ECHO_C" >&6
16266 else
16267 cat >conftest.$ac_ext <<_ACEOF
16268 /* confdefs.h. */
16269 _ACEOF
16270 cat confdefs.h >>conftest.$ac_ext
16271 cat >>conftest.$ac_ext <<_ACEOF
16272 /* end confdefs.h. */
16273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16275 #define $ac_func innocuous_$ac_func
16276
16277 /* System header to define __stub macros and hopefully few prototypes,
16278 which can conflict with char $ac_func (); below.
16279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16280 <limits.h> exists even on freestanding compilers. */
16281
16282 #ifdef __STDC__
16283 # include <limits.h>
16284 #else
16285 # include <assert.h>
16286 #endif
16287
16288 #undef $ac_func
16289
16290 /* Override any GCC internal prototype to avoid an error.
16291 Use char because int might match the return type of a GCC
16292 builtin and then its argument prototype would still apply. */
16293 #ifdef __cplusplus
16294 extern "C"
16295 #endif
16296 char $ac_func ();
16297 /* The GNU C library defines this for functions which it implements
16298 to always fail with ENOSYS. Some functions are actually named
16299 something starting with __ and the normal name is an alias. */
16300 #if defined __stub_$ac_func || defined __stub___$ac_func
16301 choke me
16302 #endif
16303
16304 int
16305 main ()
16306 {
16307 return $ac_func ();
16308 ;
16309 return 0;
16310 }
16311 _ACEOF
16312 rm -f conftest.$ac_objext conftest$ac_exeext
16313 if { (ac_try="$ac_link"
16314 case "(($ac_try" in
16315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16316 *) ac_try_echo=$ac_try;;
16317 esac
16318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16319 (eval "$ac_link") 2>conftest.er1
16320 ac_status=$?
16321 grep -v '^ *+' conftest.er1 >conftest.err
16322 rm -f conftest.er1
16323 cat conftest.err >&5
16324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); } && {
16326 test -z "$ac_c_werror_flag" ||
16327 test ! -s conftest.err
16328 } && test -s conftest$ac_exeext &&
16329 $as_test_x conftest$ac_exeext; then
16330 eval "$as_ac_var=yes"
16331 else
16332 echo "$as_me: failed program was:" >&5
16333 sed 's/^/| /' conftest.$ac_ext >&5
16334
16335 eval "$as_ac_var=no"
16336 fi
16337
16338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16339 conftest$ac_exeext conftest.$ac_ext
16340 fi
16341 ac_res=`eval echo '${'$as_ac_var'}'`
16342 { echo "$as_me:$LINENO: result: $ac_res" >&5
16343 echo "${ECHO_T}$ac_res" >&6; }
16344 if test `eval echo '${'$as_ac_var'}'` = yes; then
16345 cat >>confdefs.h <<_ACEOF
16346 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16347 _ACEOF
16348
16349 else
16350 case " $LIBOBJS " in
16351 *" getloadavg.$ac_objext "* ) ;;
16352 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
16353 ;;
16354 esac
16355
16356
16357 cat >>confdefs.h <<\_ACEOF
16358 #define C_GETLOADAVG 1
16359 _ACEOF
16360
16361 # Figure out what our getloadavg.c needs.
16362 ac_have_func=no
16363 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16364 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16365 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
16366 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16367 echo $ECHO_N "(cached) $ECHO_C" >&6
16368 fi
16369 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16370 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16371 else
16372 # Is the header compilable?
16373 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
16374 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
16375 cat >conftest.$ac_ext <<_ACEOF
16376 /* confdefs.h. */
16377 _ACEOF
16378 cat confdefs.h >>conftest.$ac_ext
16379 cat >>conftest.$ac_ext <<_ACEOF
16380 /* end confdefs.h. */
16381 $ac_includes_default
16382 #include <sys/dg_sys_info.h>
16383 _ACEOF
16384 rm -f conftest.$ac_objext
16385 if { (ac_try="$ac_compile"
16386 case "(($ac_try" in
16387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16388 *) ac_try_echo=$ac_try;;
16389 esac
16390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16391 (eval "$ac_compile") 2>conftest.er1
16392 ac_status=$?
16393 grep -v '^ *+' conftest.er1 >conftest.err
16394 rm -f conftest.er1
16395 cat conftest.err >&5
16396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 (exit $ac_status); } && {
16398 test -z "$ac_c_werror_flag" ||
16399 test ! -s conftest.err
16400 } && test -s conftest.$ac_objext; then
16401 ac_header_compiler=yes
16402 else
16403 echo "$as_me: failed program was:" >&5
16404 sed 's/^/| /' conftest.$ac_ext >&5
16405
16406 ac_header_compiler=no
16407 fi
16408
16409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16410 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16411 echo "${ECHO_T}$ac_header_compiler" >&6; }
16412
16413 # Is the header present?
16414 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
16415 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
16416 cat >conftest.$ac_ext <<_ACEOF
16417 /* confdefs.h. */
16418 _ACEOF
16419 cat confdefs.h >>conftest.$ac_ext
16420 cat >>conftest.$ac_ext <<_ACEOF
16421 /* end confdefs.h. */
16422 #include <sys/dg_sys_info.h>
16423 _ACEOF
16424 if { (ac_try="$ac_cpp conftest.$ac_ext"
16425 case "(($ac_try" in
16426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16427 *) ac_try_echo=$ac_try;;
16428 esac
16429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16430 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16431 ac_status=$?
16432 grep -v '^ *+' conftest.er1 >conftest.err
16433 rm -f conftest.er1
16434 cat conftest.err >&5
16435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436 (exit $ac_status); } >/dev/null && {
16437 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16438 test ! -s conftest.err
16439 }; then
16440 ac_header_preproc=yes
16441 else
16442 echo "$as_me: failed program was:" >&5
16443 sed 's/^/| /' conftest.$ac_ext >&5
16444
16445 ac_header_preproc=no
16446 fi
16447
16448 rm -f conftest.err conftest.$ac_ext
16449 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16450 echo "${ECHO_T}$ac_header_preproc" >&6; }
16451
16452 # So? What about this header?
16453 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16454 yes:no: )
16455 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
16456 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16457 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
16458 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
16459 ac_header_preproc=yes
16460 ;;
16461 no:yes:* )
16462 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
16463 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
16464 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
16465 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
16466 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
16467 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
16468 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
16469 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
16470 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
16471 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
16472 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
16473 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
16474
16475 ;;
16476 esac
16477 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16478 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
16479 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16480 echo $ECHO_N "(cached) $ECHO_C" >&6
16481 else
16482 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16483 fi
16484 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16485 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16486
16487 fi
16488 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16489 ac_have_func=yes
16490
16491 cat >>confdefs.h <<\_ACEOF
16492 #define DGUX 1
16493 _ACEOF
16494
16495
16496 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16497 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
16498 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16499 echo $ECHO_N "(cached) $ECHO_C" >&6
16500 else
16501 ac_check_lib_save_LIBS=$LIBS
16502 LIBS="-ldgc $LIBS"
16503 cat >conftest.$ac_ext <<_ACEOF
16504 /* confdefs.h. */
16505 _ACEOF
16506 cat confdefs.h >>conftest.$ac_ext
16507 cat >>conftest.$ac_ext <<_ACEOF
16508 /* end confdefs.h. */
16509
16510 /* Override any GCC internal prototype to avoid an error.
16511 Use char because int might match the return type of a GCC
16512 builtin and then its argument prototype would still apply. */
16513 #ifdef __cplusplus
16514 extern "C"
16515 #endif
16516 char dg_sys_info ();
16517 int
16518 main ()
16519 {
16520 return dg_sys_info ();
16521 ;
16522 return 0;
16523 }
16524 _ACEOF
16525 rm -f conftest.$ac_objext conftest$ac_exeext
16526 if { (ac_try="$ac_link"
16527 case "(($ac_try" in
16528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16529 *) ac_try_echo=$ac_try;;
16530 esac
16531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16532 (eval "$ac_link") 2>conftest.er1
16533 ac_status=$?
16534 grep -v '^ *+' conftest.er1 >conftest.err
16535 rm -f conftest.er1
16536 cat conftest.err >&5
16537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538 (exit $ac_status); } && {
16539 test -z "$ac_c_werror_flag" ||
16540 test ! -s conftest.err
16541 } && test -s conftest$ac_exeext &&
16542 $as_test_x conftest$ac_exeext; then
16543 ac_cv_lib_dgc_dg_sys_info=yes
16544 else
16545 echo "$as_me: failed program was:" >&5
16546 sed 's/^/| /' conftest.$ac_ext >&5
16547
16548 ac_cv_lib_dgc_dg_sys_info=no
16549 fi
16550
16551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16552 conftest$ac_exeext conftest.$ac_ext
16553 LIBS=$ac_check_lib_save_LIBS
16554 fi
16555 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16556 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
16557 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16558 cat >>confdefs.h <<_ACEOF
16559 #define HAVE_LIBDGC 1
16560 _ACEOF
16561
16562 LIBS="-ldgc $LIBS"
16563
16564 fi
16565
16566 fi
16567
16568
16569
16570 if test "${ac_cv_header_locale_h+set}" = set; then
16571 { echo "$as_me:$LINENO: checking for locale.h" >&5
16572 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
16573 if test "${ac_cv_header_locale_h+set}" = set; then
16574 echo $ECHO_N "(cached) $ECHO_C" >&6
16575 fi
16576 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16577 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16578 else
16579 # Is the header compilable?
16580 { echo "$as_me:$LINENO: checking locale.h usability" >&5
16581 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
16582 cat >conftest.$ac_ext <<_ACEOF
16583 /* confdefs.h. */
16584 _ACEOF
16585 cat confdefs.h >>conftest.$ac_ext
16586 cat >>conftest.$ac_ext <<_ACEOF
16587 /* end confdefs.h. */
16588 $ac_includes_default
16589 #include <locale.h>
16590 _ACEOF
16591 rm -f conftest.$ac_objext
16592 if { (ac_try="$ac_compile"
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_compile") 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 test -z "$ac_c_werror_flag" ||
16606 test ! -s conftest.err
16607 } && test -s conftest.$ac_objext; then
16608 ac_header_compiler=yes
16609 else
16610 echo "$as_me: failed program was:" >&5
16611 sed 's/^/| /' conftest.$ac_ext >&5
16612
16613 ac_header_compiler=no
16614 fi
16615
16616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16617 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16618 echo "${ECHO_T}$ac_header_compiler" >&6; }
16619
16620 # Is the header present?
16621 { echo "$as_me:$LINENO: checking locale.h presence" >&5
16622 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
16623 cat >conftest.$ac_ext <<_ACEOF
16624 /* confdefs.h. */
16625 _ACEOF
16626 cat confdefs.h >>conftest.$ac_ext
16627 cat >>conftest.$ac_ext <<_ACEOF
16628 /* end confdefs.h. */
16629 #include <locale.h>
16630 _ACEOF
16631 if { (ac_try="$ac_cpp conftest.$ac_ext"
16632 case "(($ac_try" in
16633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16634 *) ac_try_echo=$ac_try;;
16635 esac
16636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16638 ac_status=$?
16639 grep -v '^ *+' conftest.er1 >conftest.err
16640 rm -f conftest.er1
16641 cat conftest.err >&5
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); } >/dev/null && {
16644 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16645 test ! -s conftest.err
16646 }; then
16647 ac_header_preproc=yes
16648 else
16649 echo "$as_me: failed program was:" >&5
16650 sed 's/^/| /' conftest.$ac_ext >&5
16651
16652 ac_header_preproc=no
16653 fi
16654
16655 rm -f conftest.err conftest.$ac_ext
16656 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16657 echo "${ECHO_T}$ac_header_preproc" >&6; }
16658
16659 # So? What about this header?
16660 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16661 yes:no: )
16662 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
16663 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16664 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
16665 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
16666 ac_header_preproc=yes
16667 ;;
16668 no:yes:* )
16669 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
16670 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
16671 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
16672 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
16673 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
16674 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
16675 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
16676 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
16677 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
16678 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
16679 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
16680 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
16681
16682 ;;
16683 esac
16684 { echo "$as_me:$LINENO: checking for locale.h" >&5
16685 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
16686 if test "${ac_cv_header_locale_h+set}" = set; then
16687 echo $ECHO_N "(cached) $ECHO_C" >&6
16688 else
16689 ac_cv_header_locale_h=$ac_header_preproc
16690 fi
16691 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16692 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16693
16694 fi
16695
16696
16697
16698 for ac_func in setlocale
16699 do
16700 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16701 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16702 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16703 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16704 echo $ECHO_N "(cached) $ECHO_C" >&6
16705 else
16706 cat >conftest.$ac_ext <<_ACEOF
16707 /* confdefs.h. */
16708 _ACEOF
16709 cat confdefs.h >>conftest.$ac_ext
16710 cat >>conftest.$ac_ext <<_ACEOF
16711 /* end confdefs.h. */
16712 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16714 #define $ac_func innocuous_$ac_func
16715
16716 /* System header to define __stub macros and hopefully few prototypes,
16717 which can conflict with char $ac_func (); below.
16718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16719 <limits.h> exists even on freestanding compilers. */
16720
16721 #ifdef __STDC__
16722 # include <limits.h>
16723 #else
16724 # include <assert.h>
16725 #endif
16726
16727 #undef $ac_func
16728
16729 /* Override any GCC internal prototype to avoid an error.
16730 Use char because int might match the return type of a GCC
16731 builtin and then its argument prototype would still apply. */
16732 #ifdef __cplusplus
16733 extern "C"
16734 #endif
16735 char $ac_func ();
16736 /* The GNU C library defines this for functions which it implements
16737 to always fail with ENOSYS. Some functions are actually named
16738 something starting with __ and the normal name is an alias. */
16739 #if defined __stub_$ac_func || defined __stub___$ac_func
16740 choke me
16741 #endif
16742
16743 int
16744 main ()
16745 {
16746 return $ac_func ();
16747 ;
16748 return 0;
16749 }
16750 _ACEOF
16751 rm -f conftest.$ac_objext conftest$ac_exeext
16752 if { (ac_try="$ac_link"
16753 case "(($ac_try" in
16754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16755 *) ac_try_echo=$ac_try;;
16756 esac
16757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16758 (eval "$ac_link") 2>conftest.er1
16759 ac_status=$?
16760 grep -v '^ *+' conftest.er1 >conftest.err
16761 rm -f conftest.er1
16762 cat conftest.err >&5
16763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764 (exit $ac_status); } && {
16765 test -z "$ac_c_werror_flag" ||
16766 test ! -s conftest.err
16767 } && test -s conftest$ac_exeext &&
16768 $as_test_x conftest$ac_exeext; then
16769 eval "$as_ac_var=yes"
16770 else
16771 echo "$as_me: failed program was:" >&5
16772 sed 's/^/| /' conftest.$ac_ext >&5
16773
16774 eval "$as_ac_var=no"
16775 fi
16776
16777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16778 conftest$ac_exeext conftest.$ac_ext
16779 fi
16780 ac_res=`eval echo '${'$as_ac_var'}'`
16781 { echo "$as_me:$LINENO: result: $ac_res" >&5
16782 echo "${ECHO_T}$ac_res" >&6; }
16783 if test `eval echo '${'$as_ac_var'}'` = yes; then
16784 cat >>confdefs.h <<_ACEOF
16785 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16786 _ACEOF
16787
16788 fi
16789 done
16790
16791
16792 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
16793 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
16794 # Irix 4.0.5F has the header but not the library.
16795 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
16796 ac_have_func=yes
16797
16798 cat >>confdefs.h <<\_ACEOF
16799 #define SVR4 1
16800 _ACEOF
16801
16802 fi
16803
16804 if test $ac_have_func = no; then
16805 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16806 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16807 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
16808 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16809 echo $ECHO_N "(cached) $ECHO_C" >&6
16810 fi
16811 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16812 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
16813 else
16814 # Is the header compilable?
16815 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
16816 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
16817 cat >conftest.$ac_ext <<_ACEOF
16818 /* confdefs.h. */
16819 _ACEOF
16820 cat confdefs.h >>conftest.$ac_ext
16821 cat >>conftest.$ac_ext <<_ACEOF
16822 /* end confdefs.h. */
16823 $ac_includes_default
16824 #include <inq_stats/cpustats.h>
16825 _ACEOF
16826 rm -f conftest.$ac_objext
16827 if { (ac_try="$ac_compile"
16828 case "(($ac_try" in
16829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16830 *) ac_try_echo=$ac_try;;
16831 esac
16832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16833 (eval "$ac_compile") 2>conftest.er1
16834 ac_status=$?
16835 grep -v '^ *+' conftest.er1 >conftest.err
16836 rm -f conftest.er1
16837 cat conftest.err >&5
16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); } && {
16840 test -z "$ac_c_werror_flag" ||
16841 test ! -s conftest.err
16842 } && test -s conftest.$ac_objext; then
16843 ac_header_compiler=yes
16844 else
16845 echo "$as_me: failed program was:" >&5
16846 sed 's/^/| /' conftest.$ac_ext >&5
16847
16848 ac_header_compiler=no
16849 fi
16850
16851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16852 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16853 echo "${ECHO_T}$ac_header_compiler" >&6; }
16854
16855 # Is the header present?
16856 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
16857 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
16858 cat >conftest.$ac_ext <<_ACEOF
16859 /* confdefs.h. */
16860 _ACEOF
16861 cat confdefs.h >>conftest.$ac_ext
16862 cat >>conftest.$ac_ext <<_ACEOF
16863 /* end confdefs.h. */
16864 #include <inq_stats/cpustats.h>
16865 _ACEOF
16866 if { (ac_try="$ac_cpp conftest.$ac_ext"
16867 case "(($ac_try" in
16868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16869 *) ac_try_echo=$ac_try;;
16870 esac
16871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16873 ac_status=$?
16874 grep -v '^ *+' conftest.er1 >conftest.err
16875 rm -f conftest.er1
16876 cat conftest.err >&5
16877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878 (exit $ac_status); } >/dev/null && {
16879 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16880 test ! -s conftest.err
16881 }; then
16882 ac_header_preproc=yes
16883 else
16884 echo "$as_me: failed program was:" >&5
16885 sed 's/^/| /' conftest.$ac_ext >&5
16886
16887 ac_header_preproc=no
16888 fi
16889
16890 rm -f conftest.err conftest.$ac_ext
16891 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16892 echo "${ECHO_T}$ac_header_preproc" >&6; }
16893
16894 # So? What about this header?
16895 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16896 yes:no: )
16897 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16898 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16899 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
16900 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
16901 ac_header_preproc=yes
16902 ;;
16903 no:yes:* )
16904 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
16905 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
16906 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
16907 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
16908 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
16909 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
16910 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16911 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16912 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
16913 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
16914 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
16915 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
16916
16917 ;;
16918 esac
16919 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16920 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
16921 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16922 echo $ECHO_N "(cached) $ECHO_C" >&6
16923 else
16924 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
16925 fi
16926 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16927 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
16928
16929 fi
16930 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16931 ac_have_func=yes
16932
16933 cat >>confdefs.h <<\_ACEOF
16934 #define UMAX 1
16935 _ACEOF
16936
16937
16938 cat >>confdefs.h <<\_ACEOF
16939 #define UMAX4_3 1
16940 _ACEOF
16941
16942 fi
16943
16944
16945 fi
16946
16947 if test $ac_have_func = no; then
16948 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16949 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16950 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
16951 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16952 echo $ECHO_N "(cached) $ECHO_C" >&6
16953 fi
16954 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16955 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
16956 else
16957 # Is the header compilable?
16958 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16959 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
16960 cat >conftest.$ac_ext <<_ACEOF
16961 /* confdefs.h. */
16962 _ACEOF
16963 cat confdefs.h >>conftest.$ac_ext
16964 cat >>conftest.$ac_ext <<_ACEOF
16965 /* end confdefs.h. */
16966 $ac_includes_default
16967 #include <sys/cpustats.h>
16968 _ACEOF
16969 rm -f conftest.$ac_objext
16970 if { (ac_try="$ac_compile"
16971 case "(($ac_try" in
16972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16973 *) ac_try_echo=$ac_try;;
16974 esac
16975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16976 (eval "$ac_compile") 2>conftest.er1
16977 ac_status=$?
16978 grep -v '^ *+' conftest.er1 >conftest.err
16979 rm -f conftest.er1
16980 cat conftest.err >&5
16981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982 (exit $ac_status); } && {
16983 test -z "$ac_c_werror_flag" ||
16984 test ! -s conftest.err
16985 } && test -s conftest.$ac_objext; then
16986 ac_header_compiler=yes
16987 else
16988 echo "$as_me: failed program was:" >&5
16989 sed 's/^/| /' conftest.$ac_ext >&5
16990
16991 ac_header_compiler=no
16992 fi
16993
16994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16995 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16996 echo "${ECHO_T}$ac_header_compiler" >&6; }
16997
16998 # Is the header present?
16999 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
17000 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
17001 cat >conftest.$ac_ext <<_ACEOF
17002 /* confdefs.h. */
17003 _ACEOF
17004 cat confdefs.h >>conftest.$ac_ext
17005 cat >>conftest.$ac_ext <<_ACEOF
17006 /* end confdefs.h. */
17007 #include <sys/cpustats.h>
17008 _ACEOF
17009 if { (ac_try="$ac_cpp conftest.$ac_ext"
17010 case "(($ac_try" in
17011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17012 *) ac_try_echo=$ac_try;;
17013 esac
17014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17016 ac_status=$?
17017 grep -v '^ *+' conftest.er1 >conftest.err
17018 rm -f conftest.er1
17019 cat conftest.err >&5
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); } >/dev/null && {
17022 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17023 test ! -s conftest.err
17024 }; then
17025 ac_header_preproc=yes
17026 else
17027 echo "$as_me: failed program was:" >&5
17028 sed 's/^/| /' conftest.$ac_ext >&5
17029
17030 ac_header_preproc=no
17031 fi
17032
17033 rm -f conftest.err conftest.$ac_ext
17034 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17035 echo "${ECHO_T}$ac_header_preproc" >&6; }
17036
17037 # So? What about this header?
17038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17039 yes:no: )
17040 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17041 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17042 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
17043 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
17044 ac_header_preproc=yes
17045 ;;
17046 no:yes:* )
17047 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
17048 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
17049 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
17050 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
17051 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
17052 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
17053 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17054 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17055 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
17056 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
17057 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
17058 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
17059
17060 ;;
17061 esac
17062 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17063 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17064 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17065 echo $ECHO_N "(cached) $ECHO_C" >&6
17066 else
17067 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17068 fi
17069 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17070 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17071
17072 fi
17073 if test $ac_cv_header_sys_cpustats_h = yes; then
17074 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17075 #define UMAX 1
17076 _ACEOF
17077
17078 fi
17079
17080
17081 fi
17082
17083 if test $ac_have_func = no; then
17084
17085 for ac_header in mach/mach.h
17086 do
17087 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17089 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17092 echo $ECHO_N "(cached) $ECHO_C" >&6
17093 fi
17094 ac_res=`eval echo '${'$as_ac_Header'}'`
17095 { echo "$as_me:$LINENO: result: $ac_res" >&5
17096 echo "${ECHO_T}$ac_res" >&6; }
17097 else
17098 # Is the header compilable?
17099 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17100 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17101 cat >conftest.$ac_ext <<_ACEOF
17102 /* confdefs.h. */
17103 _ACEOF
17104 cat confdefs.h >>conftest.$ac_ext
17105 cat >>conftest.$ac_ext <<_ACEOF
17106 /* end confdefs.h. */
17107 $ac_includes_default
17108 #include <$ac_header>
17109 _ACEOF
17110 rm -f conftest.$ac_objext
17111 if { (ac_try="$ac_compile"
17112 case "(($ac_try" in
17113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17114 *) ac_try_echo=$ac_try;;
17115 esac
17116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17117 (eval "$ac_compile") 2>conftest.er1
17118 ac_status=$?
17119 grep -v '^ *+' conftest.er1 >conftest.err
17120 rm -f conftest.er1
17121 cat conftest.err >&5
17122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123 (exit $ac_status); } && {
17124 test -z "$ac_c_werror_flag" ||
17125 test ! -s conftest.err
17126 } && test -s conftest.$ac_objext; then
17127 ac_header_compiler=yes
17128 else
17129 echo "$as_me: failed program was:" >&5
17130 sed 's/^/| /' conftest.$ac_ext >&5
17131
17132 ac_header_compiler=no
17133 fi
17134
17135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17136 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17137 echo "${ECHO_T}$ac_header_compiler" >&6; }
17138
17139 # Is the header present?
17140 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17141 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17142 cat >conftest.$ac_ext <<_ACEOF
17143 /* confdefs.h. */
17144 _ACEOF
17145 cat confdefs.h >>conftest.$ac_ext
17146 cat >>conftest.$ac_ext <<_ACEOF
17147 /* end confdefs.h. */
17148 #include <$ac_header>
17149 _ACEOF
17150 if { (ac_try="$ac_cpp conftest.$ac_ext"
17151 case "(($ac_try" in
17152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17153 *) ac_try_echo=$ac_try;;
17154 esac
17155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17156 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17157 ac_status=$?
17158 grep -v '^ *+' conftest.er1 >conftest.err
17159 rm -f conftest.er1
17160 cat conftest.err >&5
17161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162 (exit $ac_status); } >/dev/null && {
17163 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17164 test ! -s conftest.err
17165 }; then
17166 ac_header_preproc=yes
17167 else
17168 echo "$as_me: failed program was:" >&5
17169 sed 's/^/| /' conftest.$ac_ext >&5
17170
17171 ac_header_preproc=no
17172 fi
17173
17174 rm -f conftest.err conftest.$ac_ext
17175 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17176 echo "${ECHO_T}$ac_header_preproc" >&6; }
17177
17178 # So? What about this header?
17179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17180 yes:no: )
17181 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17182 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17184 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17185 ac_header_preproc=yes
17186 ;;
17187 no:yes:* )
17188 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17189 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17190 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17191 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17192 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17193 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17194 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17195 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17197 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17198 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17199 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17200
17201 ;;
17202 esac
17203 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17206 echo $ECHO_N "(cached) $ECHO_C" >&6
17207 else
17208 eval "$as_ac_Header=\$ac_header_preproc"
17209 fi
17210 ac_res=`eval echo '${'$as_ac_Header'}'`
17211 { echo "$as_me:$LINENO: result: $ac_res" >&5
17212 echo "${ECHO_T}$ac_res" >&6; }
17213
17214 fi
17215 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17216 cat >>confdefs.h <<_ACEOF
17217 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17218 _ACEOF
17219
17220 fi
17221
17222 done
17223
17224 fi
17225
17226
17227 for ac_header in nlist.h
17228 do
17229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17231 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17234 echo $ECHO_N "(cached) $ECHO_C" >&6
17235 fi
17236 ac_res=`eval echo '${'$as_ac_Header'}'`
17237 { echo "$as_me:$LINENO: result: $ac_res" >&5
17238 echo "${ECHO_T}$ac_res" >&6; }
17239 else
17240 # Is the header compilable?
17241 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17242 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17243 cat >conftest.$ac_ext <<_ACEOF
17244 /* confdefs.h. */
17245 _ACEOF
17246 cat confdefs.h >>conftest.$ac_ext
17247 cat >>conftest.$ac_ext <<_ACEOF
17248 /* end confdefs.h. */
17249 $ac_includes_default
17250 #include <$ac_header>
17251 _ACEOF
17252 rm -f conftest.$ac_objext
17253 if { (ac_try="$ac_compile"
17254 case "(($ac_try" in
17255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17256 *) ac_try_echo=$ac_try;;
17257 esac
17258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17259 (eval "$ac_compile") 2>conftest.er1
17260 ac_status=$?
17261 grep -v '^ *+' conftest.er1 >conftest.err
17262 rm -f conftest.er1
17263 cat conftest.err >&5
17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); } && {
17266 test -z "$ac_c_werror_flag" ||
17267 test ! -s conftest.err
17268 } && test -s conftest.$ac_objext; then
17269 ac_header_compiler=yes
17270 else
17271 echo "$as_me: failed program was:" >&5
17272 sed 's/^/| /' conftest.$ac_ext >&5
17273
17274 ac_header_compiler=no
17275 fi
17276
17277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17278 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17279 echo "${ECHO_T}$ac_header_compiler" >&6; }
17280
17281 # Is the header present?
17282 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17283 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17284 cat >conftest.$ac_ext <<_ACEOF
17285 /* confdefs.h. */
17286 _ACEOF
17287 cat confdefs.h >>conftest.$ac_ext
17288 cat >>conftest.$ac_ext <<_ACEOF
17289 /* end confdefs.h. */
17290 #include <$ac_header>
17291 _ACEOF
17292 if { (ac_try="$ac_cpp conftest.$ac_ext"
17293 case "(($ac_try" in
17294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17295 *) ac_try_echo=$ac_try;;
17296 esac
17297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17299 ac_status=$?
17300 grep -v '^ *+' conftest.er1 >conftest.err
17301 rm -f conftest.er1
17302 cat conftest.err >&5
17303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304 (exit $ac_status); } >/dev/null && {
17305 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17306 test ! -s conftest.err
17307 }; then
17308 ac_header_preproc=yes
17309 else
17310 echo "$as_me: failed program was:" >&5
17311 sed 's/^/| /' conftest.$ac_ext >&5
17312
17313 ac_header_preproc=no
17314 fi
17315
17316 rm -f conftest.err conftest.$ac_ext
17317 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17318 echo "${ECHO_T}$ac_header_preproc" >&6; }
17319
17320 # So? What about this header?
17321 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17322 yes:no: )
17323 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17324 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17326 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17327 ac_header_preproc=yes
17328 ;;
17329 no:yes:* )
17330 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17331 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17332 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17333 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17334 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17335 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17336 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17337 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17339 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17340 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17341 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17342
17343 ;;
17344 esac
17345 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17348 echo $ECHO_N "(cached) $ECHO_C" >&6
17349 else
17350 eval "$as_ac_Header=\$ac_header_preproc"
17351 fi
17352 ac_res=`eval echo '${'$as_ac_Header'}'`
17353 { echo "$as_me:$LINENO: result: $ac_res" >&5
17354 echo "${ECHO_T}$ac_res" >&6; }
17355
17356 fi
17357 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17358 cat >>confdefs.h <<_ACEOF
17359 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17360 _ACEOF
17361 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
17362 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
17363 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17364 echo $ECHO_N "(cached) $ECHO_C" >&6
17365 else
17366 cat >conftest.$ac_ext <<_ACEOF
17367 /* confdefs.h. */
17368 _ACEOF
17369 cat confdefs.h >>conftest.$ac_ext
17370 cat >>conftest.$ac_ext <<_ACEOF
17371 /* end confdefs.h. */
17372 #include <nlist.h>
17373
17374 int
17375 main ()
17376 {
17377 static struct nlist ac_aggr;
17378 if (ac_aggr.n_un.n_name)
17379 return 0;
17380 ;
17381 return 0;
17382 }
17383 _ACEOF
17384 rm -f conftest.$ac_objext
17385 if { (ac_try="$ac_compile"
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_compile") 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 test -z "$ac_c_werror_flag" ||
17399 test ! -s conftest.err
17400 } && test -s conftest.$ac_objext; then
17401 ac_cv_member_struct_nlist_n_un_n_name=yes
17402 else
17403 echo "$as_me: failed program was:" >&5
17404 sed 's/^/| /' conftest.$ac_ext >&5
17405
17406 cat >conftest.$ac_ext <<_ACEOF
17407 /* confdefs.h. */
17408 _ACEOF
17409 cat confdefs.h >>conftest.$ac_ext
17410 cat >>conftest.$ac_ext <<_ACEOF
17411 /* end confdefs.h. */
17412 #include <nlist.h>
17413
17414 int
17415 main ()
17416 {
17417 static struct nlist ac_aggr;
17418 if (sizeof ac_aggr.n_un.n_name)
17419 return 0;
17420 ;
17421 return 0;
17422 }
17423 _ACEOF
17424 rm -f conftest.$ac_objext
17425 if { (ac_try="$ac_compile"
17426 case "(($ac_try" in
17427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17428 *) ac_try_echo=$ac_try;;
17429 esac
17430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17431 (eval "$ac_compile") 2>conftest.er1
17432 ac_status=$?
17433 grep -v '^ *+' conftest.er1 >conftest.err
17434 rm -f conftest.er1
17435 cat conftest.err >&5
17436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437 (exit $ac_status); } && {
17438 test -z "$ac_c_werror_flag" ||
17439 test ! -s conftest.err
17440 } && test -s conftest.$ac_objext; then
17441 ac_cv_member_struct_nlist_n_un_n_name=yes
17442 else
17443 echo "$as_me: failed program was:" >&5
17444 sed 's/^/| /' conftest.$ac_ext >&5
17445
17446 ac_cv_member_struct_nlist_n_un_n_name=no
17447 fi
17448
17449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17450 fi
17451
17452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17453 fi
17454 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17455 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
17456 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17457
17458 cat >>confdefs.h <<_ACEOF
17459 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17460 _ACEOF
17461
17462
17463 cat >>confdefs.h <<\_ACEOF
17464 #define NLIST_NAME_UNION 1
17465 _ACEOF
17466
17467 fi
17468
17469
17470 fi
17471
17472 done
17473
17474 fi
17475 done
17476
17477
17478 # Some definitions of getloadavg require that the program be installed setgid.
17479 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17480 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
17481 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17482 echo $ECHO_N "(cached) $ECHO_C" >&6
17483 else
17484 cat >conftest.$ac_ext <<_ACEOF
17485 /* confdefs.h. */
17486 _ACEOF
17487 cat confdefs.h >>conftest.$ac_ext
17488 cat >>conftest.$ac_ext <<_ACEOF
17489 /* end confdefs.h. */
17490 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17491 #ifdef LDAV_PRIVILEGED
17492 Yowza Am I SETGID yet
17493 #endif
17494 _ACEOF
17495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17496 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
17497 ac_cv_func_getloadavg_setgid=yes
17498 else
17499 ac_cv_func_getloadavg_setgid=no
17500 fi
17501 rm -f conftest*
17502
17503 fi
17504 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17505 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
17506 if test $ac_cv_func_getloadavg_setgid = yes; then
17507 NEED_SETGID=true
17508
17509 cat >>confdefs.h <<\_ACEOF
17510 #define GETLOADAVG_PRIVILEGED 1
17511 _ACEOF
17512
17513 else
17514 NEED_SETGID=false
17515 fi
17516
17517 if test $ac_cv_func_getloadavg_setgid = yes; then
17518 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17519 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
17520 if test "${ac_cv_group_kmem+set}" = set; then
17521 echo $ECHO_N "(cached) $ECHO_C" >&6
17522 else
17523 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17524 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17525 # If we got an error (system does not support symlinks), try without -L.
17526 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17527 ac_cv_group_kmem=`echo $ac_ls_output \
17528 | sed -ne 's/[ ][ ]*/ /g;
17529 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17530 / /s/.* //;p;'`
17531
17532 fi
17533 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17534 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
17535 KMEM_GROUP=$ac_cv_group_kmem
17536 fi
17537 if test "x$ac_save_LIBS" = x; then
17538 GETLOADAVG_LIBS=$LIBS
17539 else
17540 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17541 fi
17542 LIBS=$ac_save_LIBS
17543
17544
17545
17546 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17547 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
17548 if test "${ac_cv_sys_largefile_source+set}" = set; then
17549 echo $ECHO_N "(cached) $ECHO_C" >&6
17550 else
17551 while :; do
17552 cat >conftest.$ac_ext <<_ACEOF
17553 /* confdefs.h. */
17554 _ACEOF
17555 cat confdefs.h >>conftest.$ac_ext
17556 cat >>conftest.$ac_ext <<_ACEOF
17557 /* end confdefs.h. */
17558 #include <stdio.h>
17559 int
17560 main ()
17561 {
17562 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17563 ;
17564 return 0;
17565 }
17566 _ACEOF
17567 rm -f conftest.$ac_objext conftest$ac_exeext
17568 if { (ac_try="$ac_link"
17569 case "(($ac_try" in
17570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17571 *) ac_try_echo=$ac_try;;
17572 esac
17573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17574 (eval "$ac_link") 2>conftest.er1
17575 ac_status=$?
17576 grep -v '^ *+' conftest.er1 >conftest.err
17577 rm -f conftest.er1
17578 cat conftest.err >&5
17579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580 (exit $ac_status); } && {
17581 test -z "$ac_c_werror_flag" ||
17582 test ! -s conftest.err
17583 } && test -s conftest$ac_exeext &&
17584 $as_test_x conftest$ac_exeext; then
17585 ac_cv_sys_largefile_source=no; break
17586 else
17587 echo "$as_me: failed program was:" >&5
17588 sed 's/^/| /' conftest.$ac_ext >&5
17589
17590
17591 fi
17592
17593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17594 conftest$ac_exeext conftest.$ac_ext
17595 cat >conftest.$ac_ext <<_ACEOF
17596 /* confdefs.h. */
17597 _ACEOF
17598 cat confdefs.h >>conftest.$ac_ext
17599 cat >>conftest.$ac_ext <<_ACEOF
17600 /* end confdefs.h. */
17601 #define _LARGEFILE_SOURCE 1
17602 #include <stdio.h>
17603 int
17604 main ()
17605 {
17606 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17607 ;
17608 return 0;
17609 }
17610 _ACEOF
17611 rm -f conftest.$ac_objext conftest$ac_exeext
17612 if { (ac_try="$ac_link"
17613 case "(($ac_try" in
17614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17615 *) ac_try_echo=$ac_try;;
17616 esac
17617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17618 (eval "$ac_link") 2>conftest.er1
17619 ac_status=$?
17620 grep -v '^ *+' conftest.er1 >conftest.err
17621 rm -f conftest.er1
17622 cat conftest.err >&5
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); } && {
17625 test -z "$ac_c_werror_flag" ||
17626 test ! -s conftest.err
17627 } && test -s conftest$ac_exeext &&
17628 $as_test_x conftest$ac_exeext; then
17629 ac_cv_sys_largefile_source=1; break
17630 else
17631 echo "$as_me: failed program was:" >&5
17632 sed 's/^/| /' conftest.$ac_ext >&5
17633
17634
17635 fi
17636
17637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17638 conftest$ac_exeext conftest.$ac_ext
17639 ac_cv_sys_largefile_source=unknown
17640 break
17641 done
17642 fi
17643 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17644 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
17645 case $ac_cv_sys_largefile_source in #(
17646 no | unknown) ;;
17647 *)
17648 cat >>confdefs.h <<_ACEOF
17649 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17650 _ACEOF
17651 ;;
17652 esac
17653 rm -f conftest*
17654
17655 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17656 # in glibc 2.1.3, but that breaks too many other things.
17657 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17658 if test $ac_cv_sys_largefile_source != unknown; then
17659
17660 cat >>confdefs.h <<\_ACEOF
17661 #define HAVE_FSEEKO 1
17662 _ACEOF
17663
17664 fi
17665
17666
17667 # Configure getopt.
17668 # getopt.m4 serial 10
17669
17670 # The getopt module assume you want GNU getopt, with getopt_long etc,
17671 # rather than vanilla POSIX getopt. This means your your code should
17672 # always include <getopt.h> for the getopt prototypes.
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684 # Prerequisites of lib/getopt*.
17685
17686
17687
17688
17689 GETOPT_H=
17690
17691 for ac_header in getopt.h
17692 do
17693 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17695 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17698 echo $ECHO_N "(cached) $ECHO_C" >&6
17699 fi
17700 ac_res=`eval echo '${'$as_ac_Header'}'`
17701 { echo "$as_me:$LINENO: result: $ac_res" >&5
17702 echo "${ECHO_T}$ac_res" >&6; }
17703 else
17704 # Is the header compilable?
17705 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17706 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17707 cat >conftest.$ac_ext <<_ACEOF
17708 /* confdefs.h. */
17709 _ACEOF
17710 cat confdefs.h >>conftest.$ac_ext
17711 cat >>conftest.$ac_ext <<_ACEOF
17712 /* end confdefs.h. */
17713 $ac_includes_default
17714 #include <$ac_header>
17715 _ACEOF
17716 rm -f conftest.$ac_objext
17717 if { (ac_try="$ac_compile"
17718 case "(($ac_try" in
17719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17720 *) ac_try_echo=$ac_try;;
17721 esac
17722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17723 (eval "$ac_compile") 2>conftest.er1
17724 ac_status=$?
17725 grep -v '^ *+' conftest.er1 >conftest.err
17726 rm -f conftest.er1
17727 cat conftest.err >&5
17728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729 (exit $ac_status); } && {
17730 test -z "$ac_c_werror_flag" ||
17731 test ! -s conftest.err
17732 } && test -s conftest.$ac_objext; then
17733 ac_header_compiler=yes
17734 else
17735 echo "$as_me: failed program was:" >&5
17736 sed 's/^/| /' conftest.$ac_ext >&5
17737
17738 ac_header_compiler=no
17739 fi
17740
17741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17742 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17743 echo "${ECHO_T}$ac_header_compiler" >&6; }
17744
17745 # Is the header present?
17746 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17747 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17748 cat >conftest.$ac_ext <<_ACEOF
17749 /* confdefs.h. */
17750 _ACEOF
17751 cat confdefs.h >>conftest.$ac_ext
17752 cat >>conftest.$ac_ext <<_ACEOF
17753 /* end confdefs.h. */
17754 #include <$ac_header>
17755 _ACEOF
17756 if { (ac_try="$ac_cpp conftest.$ac_ext"
17757 case "(($ac_try" in
17758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17759 *) ac_try_echo=$ac_try;;
17760 esac
17761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17763 ac_status=$?
17764 grep -v '^ *+' conftest.er1 >conftest.err
17765 rm -f conftest.er1
17766 cat conftest.err >&5
17767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); } >/dev/null && {
17769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17770 test ! -s conftest.err
17771 }; then
17772 ac_header_preproc=yes
17773 else
17774 echo "$as_me: failed program was:" >&5
17775 sed 's/^/| /' conftest.$ac_ext >&5
17776
17777 ac_header_preproc=no
17778 fi
17779
17780 rm -f conftest.err conftest.$ac_ext
17781 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17782 echo "${ECHO_T}$ac_header_preproc" >&6; }
17783
17784 # So? What about this header?
17785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17786 yes:no: )
17787 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17788 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17790 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17791 ac_header_preproc=yes
17792 ;;
17793 no:yes:* )
17794 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17795 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17796 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17797 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17798 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17799 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17800 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17801 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17804 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17805 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17806
17807 ;;
17808 esac
17809 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17812 echo $ECHO_N "(cached) $ECHO_C" >&6
17813 else
17814 eval "$as_ac_Header=\$ac_header_preproc"
17815 fi
17816 ac_res=`eval echo '${'$as_ac_Header'}'`
17817 { echo "$as_me:$LINENO: result: $ac_res" >&5
17818 echo "${ECHO_T}$ac_res" >&6; }
17819
17820 fi
17821 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17822 cat >>confdefs.h <<_ACEOF
17823 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17824 _ACEOF
17825
17826 else
17827 GETOPT_H=getopt.h
17828 fi
17829
17830 done
17831
17832 if test -z "$GETOPT_H"; then
17833
17834 for ac_func in getopt_long_only
17835 do
17836 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17837 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17838 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17839 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17840 echo $ECHO_N "(cached) $ECHO_C" >&6
17841 else
17842 cat >conftest.$ac_ext <<_ACEOF
17843 /* confdefs.h. */
17844 _ACEOF
17845 cat confdefs.h >>conftest.$ac_ext
17846 cat >>conftest.$ac_ext <<_ACEOF
17847 /* end confdefs.h. */
17848 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17850 #define $ac_func innocuous_$ac_func
17851
17852 /* System header to define __stub macros and hopefully few prototypes,
17853 which can conflict with char $ac_func (); below.
17854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17855 <limits.h> exists even on freestanding compilers. */
17856
17857 #ifdef __STDC__
17858 # include <limits.h>
17859 #else
17860 # include <assert.h>
17861 #endif
17862
17863 #undef $ac_func
17864
17865 /* Override any GCC internal prototype to avoid an error.
17866 Use char because int might match the return type of a GCC
17867 builtin and then its argument prototype would still apply. */
17868 #ifdef __cplusplus
17869 extern "C"
17870 #endif
17871 char $ac_func ();
17872 /* The GNU C library defines this for functions which it implements
17873 to always fail with ENOSYS. Some functions are actually named
17874 something starting with __ and the normal name is an alias. */
17875 #if defined __stub_$ac_func || defined __stub___$ac_func
17876 choke me
17877 #endif
17878
17879 int
17880 main ()
17881 {
17882 return $ac_func ();
17883 ;
17884 return 0;
17885 }
17886 _ACEOF
17887 rm -f conftest.$ac_objext conftest$ac_exeext
17888 if { (ac_try="$ac_link"
17889 case "(($ac_try" in
17890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17891 *) ac_try_echo=$ac_try;;
17892 esac
17893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17894 (eval "$ac_link") 2>conftest.er1
17895 ac_status=$?
17896 grep -v '^ *+' conftest.er1 >conftest.err
17897 rm -f conftest.er1
17898 cat conftest.err >&5
17899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900 (exit $ac_status); } && {
17901 test -z "$ac_c_werror_flag" ||
17902 test ! -s conftest.err
17903 } && test -s conftest$ac_exeext &&
17904 $as_test_x conftest$ac_exeext; then
17905 eval "$as_ac_var=yes"
17906 else
17907 echo "$as_me: failed program was:" >&5
17908 sed 's/^/| /' conftest.$ac_ext >&5
17909
17910 eval "$as_ac_var=no"
17911 fi
17912
17913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17914 conftest$ac_exeext conftest.$ac_ext
17915 fi
17916 ac_res=`eval echo '${'$as_ac_var'}'`
17917 { echo "$as_me:$LINENO: result: $ac_res" >&5
17918 echo "${ECHO_T}$ac_res" >&6; }
17919 if test `eval echo '${'$as_ac_var'}'` = yes; then
17920 cat >>confdefs.h <<_ACEOF
17921 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17922 _ACEOF
17923
17924 else
17925 GETOPT_H=getopt.h
17926 fi
17927 done
17928
17929 fi
17930
17931 if test -z "$GETOPT_H"; then
17932 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
17933 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
17934 if test "${ac_cv_have_decl_optreset+set}" = set; then
17935 echo $ECHO_N "(cached) $ECHO_C" >&6
17936 else
17937 cat >conftest.$ac_ext <<_ACEOF
17938 /* confdefs.h. */
17939 _ACEOF
17940 cat confdefs.h >>conftest.$ac_ext
17941 cat >>conftest.$ac_ext <<_ACEOF
17942 /* end confdefs.h. */
17943 #include <getopt.h>
17944
17945 int
17946 main ()
17947 {
17948 #ifndef optreset
17949 (void) optreset;
17950 #endif
17951
17952 ;
17953 return 0;
17954 }
17955 _ACEOF
17956 rm -f conftest.$ac_objext
17957 if { (ac_try="$ac_compile"
17958 case "(($ac_try" in
17959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17960 *) ac_try_echo=$ac_try;;
17961 esac
17962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17963 (eval "$ac_compile") 2>conftest.er1
17964 ac_status=$?
17965 grep -v '^ *+' conftest.er1 >conftest.err
17966 rm -f conftest.er1
17967 cat conftest.err >&5
17968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969 (exit $ac_status); } && {
17970 test -z "$ac_c_werror_flag" ||
17971 test ! -s conftest.err
17972 } && test -s conftest.$ac_objext; then
17973 ac_cv_have_decl_optreset=yes
17974 else
17975 echo "$as_me: failed program was:" >&5
17976 sed 's/^/| /' conftest.$ac_ext >&5
17977
17978 ac_cv_have_decl_optreset=no
17979 fi
17980
17981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17982 fi
17983 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
17984 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
17985 if test $ac_cv_have_decl_optreset = yes; then
17986 GETOPT_H=getopt.h
17987 fi
17988
17989 fi
17990
17991 if test -z "$GETOPT_H"; then
17992 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
17993 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
17994 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17995 echo $ECHO_N "(cached) $ECHO_C" >&6
17996 else
17997 if test "$cross_compiling" = yes; then
17998 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
17999 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
18000 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18001 echo $ECHO_N "(cached) $ECHO_C" >&6
18002 else
18003 cat >conftest.$ac_ext <<_ACEOF
18004 /* confdefs.h. */
18005 _ACEOF
18006 cat confdefs.h >>conftest.$ac_ext
18007 cat >>conftest.$ac_ext <<_ACEOF
18008 /* end confdefs.h. */
18009 #include <getopt.h>
18010
18011 int
18012 main ()
18013 {
18014 #ifndef getopt_clip
18015 (void) getopt_clip;
18016 #endif
18017
18018 ;
18019 return 0;
18020 }
18021 _ACEOF
18022 rm -f conftest.$ac_objext
18023 if { (ac_try="$ac_compile"
18024 case "(($ac_try" in
18025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18026 *) ac_try_echo=$ac_try;;
18027 esac
18028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18029 (eval "$ac_compile") 2>conftest.er1
18030 ac_status=$?
18031 grep -v '^ *+' conftest.er1 >conftest.err
18032 rm -f conftest.er1
18033 cat conftest.err >&5
18034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035 (exit $ac_status); } && {
18036 test -z "$ac_c_werror_flag" ||
18037 test ! -s conftest.err
18038 } && test -s conftest.$ac_objext; then
18039 ac_cv_have_decl_getopt_clip=yes
18040 else
18041 echo "$as_me: failed program was:" >&5
18042 sed 's/^/| /' conftest.$ac_ext >&5
18043
18044 ac_cv_have_decl_getopt_clip=no
18045 fi
18046
18047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18048 fi
18049 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
18050 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18051 if test $ac_cv_have_decl_getopt_clip = yes; then
18052 gl_cv_func_gnu_getopt=no
18053 else
18054 gl_cv_func_gnu_getopt=yes
18055 fi
18056
18057 else
18058 cat >conftest.$ac_ext <<_ACEOF
18059 /* confdefs.h. */
18060 _ACEOF
18061 cat confdefs.h >>conftest.$ac_ext
18062 cat >>conftest.$ac_ext <<_ACEOF
18063 /* end confdefs.h. */
18064 #include <getopt.h>
18065 int
18066 main ()
18067 {
18068
18069 char *myargv[3];
18070 myargv[0] = "conftest";
18071 myargv[1] = "-+";
18072 myargv[2] = 0;
18073 return getopt (2, myargv, "+a") != '?';
18074
18075 ;
18076 return 0;
18077 }
18078 _ACEOF
18079 rm -f conftest$ac_exeext
18080 if { (ac_try="$ac_link"
18081 case "(($ac_try" in
18082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18083 *) ac_try_echo=$ac_try;;
18084 esac
18085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18086 (eval "$ac_link") 2>&5
18087 ac_status=$?
18088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18090 { (case "(($ac_try" in
18091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18092 *) ac_try_echo=$ac_try;;
18093 esac
18094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18095 (eval "$ac_try") 2>&5
18096 ac_status=$?
18097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098 (exit $ac_status); }; }; then
18099 gl_cv_func_gnu_getopt=yes
18100 else
18101 echo "$as_me: program exited with status $ac_status" >&5
18102 echo "$as_me: failed program was:" >&5
18103 sed 's/^/| /' conftest.$ac_ext >&5
18104
18105 ( exit $ac_status )
18106 gl_cv_func_gnu_getopt=no
18107 fi
18108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18109 fi
18110
18111
18112 fi
18113 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
18114 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18115 if test "$gl_cv_func_gnu_getopt" = "no"; then
18116 GETOPT_H=getopt.h
18117 fi
18118 fi
18119
18120
18121
18122 if test -n "$GETOPT_H"; then
18123
18124
18125 GETOPT_H=getopt.h
18126
18127 cat >>confdefs.h <<\_ACEOF
18128 #define __GETOPT_PREFIX rpl_
18129 _ACEOF
18130
18131
18132
18133 :
18134 GETOPTOBJS='getopt.o getopt1.o'
18135
18136 fi
18137
18138
18139
18140
18141 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
18142 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
18143 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18144 echo $ECHO_N "(cached) $ECHO_C" >&6
18145 else
18146 # Use it with a single arg.
18147 cat >conftest.$ac_ext <<_ACEOF
18148 /* confdefs.h. */
18149 _ACEOF
18150 cat confdefs.h >>conftest.$ac_ext
18151 cat >>conftest.$ac_ext <<_ACEOF
18152 /* end confdefs.h. */
18153 $ac_includes_default
18154 int
18155 main ()
18156 {
18157 getpgrp (0);
18158 ;
18159 return 0;
18160 }
18161 _ACEOF
18162 rm -f conftest.$ac_objext
18163 if { (ac_try="$ac_compile"
18164 case "(($ac_try" in
18165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18166 *) ac_try_echo=$ac_try;;
18167 esac
18168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18169 (eval "$ac_compile") 2>conftest.er1
18170 ac_status=$?
18171 grep -v '^ *+' conftest.er1 >conftest.err
18172 rm -f conftest.er1
18173 cat conftest.err >&5
18174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); } && {
18176 test -z "$ac_c_werror_flag" ||
18177 test ! -s conftest.err
18178 } && test -s conftest.$ac_objext; then
18179 ac_cv_func_getpgrp_void=no
18180 else
18181 echo "$as_me: failed program was:" >&5
18182 sed 's/^/| /' conftest.$ac_ext >&5
18183
18184 ac_cv_func_getpgrp_void=yes
18185 fi
18186
18187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18188
18189 fi
18190 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
18191 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18192 if test $ac_cv_func_getpgrp_void = yes; then
18193
18194 cat >>confdefs.h <<\_ACEOF
18195 #define GETPGRP_VOID 1
18196 _ACEOF
18197
18198 fi
18199
18200
18201
18202 for ac_func in strftime
18203 do
18204 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18205 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18206 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18207 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18208 echo $ECHO_N "(cached) $ECHO_C" >&6
18209 else
18210 cat >conftest.$ac_ext <<_ACEOF
18211 /* confdefs.h. */
18212 _ACEOF
18213 cat confdefs.h >>conftest.$ac_ext
18214 cat >>conftest.$ac_ext <<_ACEOF
18215 /* end confdefs.h. */
18216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18218 #define $ac_func innocuous_$ac_func
18219
18220 /* System header to define __stub macros and hopefully few prototypes,
18221 which can conflict with char $ac_func (); below.
18222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18223 <limits.h> exists even on freestanding compilers. */
18224
18225 #ifdef __STDC__
18226 # include <limits.h>
18227 #else
18228 # include <assert.h>
18229 #endif
18230
18231 #undef $ac_func
18232
18233 /* Override any GCC internal prototype to avoid an error.
18234 Use char because int might match the return type of a GCC
18235 builtin and then its argument prototype would still apply. */
18236 #ifdef __cplusplus
18237 extern "C"
18238 #endif
18239 char $ac_func ();
18240 /* The GNU C library defines this for functions which it implements
18241 to always fail with ENOSYS. Some functions are actually named
18242 something starting with __ and the normal name is an alias. */
18243 #if defined __stub_$ac_func || defined __stub___$ac_func
18244 choke me
18245 #endif
18246
18247 int
18248 main ()
18249 {
18250 return $ac_func ();
18251 ;
18252 return 0;
18253 }
18254 _ACEOF
18255 rm -f conftest.$ac_objext conftest$ac_exeext
18256 if { (ac_try="$ac_link"
18257 case "(($ac_try" in
18258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18259 *) ac_try_echo=$ac_try;;
18260 esac
18261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18262 (eval "$ac_link") 2>conftest.er1
18263 ac_status=$?
18264 grep -v '^ *+' conftest.er1 >conftest.err
18265 rm -f conftest.er1
18266 cat conftest.err >&5
18267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268 (exit $ac_status); } && {
18269 test -z "$ac_c_werror_flag" ||
18270 test ! -s conftest.err
18271 } && test -s conftest$ac_exeext &&
18272 $as_test_x conftest$ac_exeext; then
18273 eval "$as_ac_var=yes"
18274 else
18275 echo "$as_me: failed program was:" >&5
18276 sed 's/^/| /' conftest.$ac_ext >&5
18277
18278 eval "$as_ac_var=no"
18279 fi
18280
18281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18282 conftest$ac_exeext conftest.$ac_ext
18283 fi
18284 ac_res=`eval echo '${'$as_ac_var'}'`
18285 { echo "$as_me:$LINENO: result: $ac_res" >&5
18286 echo "${ECHO_T}$ac_res" >&6; }
18287 if test `eval echo '${'$as_ac_var'}'` = yes; then
18288 cat >>confdefs.h <<_ACEOF
18289 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18290 _ACEOF
18291
18292 else
18293 # strftime is in -lintl on SCO UNIX.
18294 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18295 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
18296 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18297 echo $ECHO_N "(cached) $ECHO_C" >&6
18298 else
18299 ac_check_lib_save_LIBS=$LIBS
18300 LIBS="-lintl $LIBS"
18301 cat >conftest.$ac_ext <<_ACEOF
18302 /* confdefs.h. */
18303 _ACEOF
18304 cat confdefs.h >>conftest.$ac_ext
18305 cat >>conftest.$ac_ext <<_ACEOF
18306 /* end confdefs.h. */
18307
18308 /* Override any GCC internal prototype to avoid an error.
18309 Use char because int might match the return type of a GCC
18310 builtin and then its argument prototype would still apply. */
18311 #ifdef __cplusplus
18312 extern "C"
18313 #endif
18314 char strftime ();
18315 int
18316 main ()
18317 {
18318 return strftime ();
18319 ;
18320 return 0;
18321 }
18322 _ACEOF
18323 rm -f conftest.$ac_objext conftest$ac_exeext
18324 if { (ac_try="$ac_link"
18325 case "(($ac_try" in
18326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18327 *) ac_try_echo=$ac_try;;
18328 esac
18329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18330 (eval "$ac_link") 2>conftest.er1
18331 ac_status=$?
18332 grep -v '^ *+' conftest.er1 >conftest.err
18333 rm -f conftest.er1
18334 cat conftest.err >&5
18335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); } && {
18337 test -z "$ac_c_werror_flag" ||
18338 test ! -s conftest.err
18339 } && test -s conftest$ac_exeext &&
18340 $as_test_x conftest$ac_exeext; then
18341 ac_cv_lib_intl_strftime=yes
18342 else
18343 echo "$as_me: failed program was:" >&5
18344 sed 's/^/| /' conftest.$ac_ext >&5
18345
18346 ac_cv_lib_intl_strftime=no
18347 fi
18348
18349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18350 conftest$ac_exeext conftest.$ac_ext
18351 LIBS=$ac_check_lib_save_LIBS
18352 fi
18353 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18354 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18355 if test $ac_cv_lib_intl_strftime = yes; then
18356 cat >>confdefs.h <<\_ACEOF
18357 #define HAVE_STRFTIME 1
18358 _ACEOF
18359
18360 LIBS="-lintl $LIBS"
18361 fi
18362
18363 fi
18364 done
18365
18366
18367 # UNIX98 PTYs.
18368
18369 for ac_func in grantpt
18370 do
18371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18372 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18374 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18375 echo $ECHO_N "(cached) $ECHO_C" >&6
18376 else
18377 cat >conftest.$ac_ext <<_ACEOF
18378 /* confdefs.h. */
18379 _ACEOF
18380 cat confdefs.h >>conftest.$ac_ext
18381 cat >>conftest.$ac_ext <<_ACEOF
18382 /* end confdefs.h. */
18383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18385 #define $ac_func innocuous_$ac_func
18386
18387 /* System header to define __stub macros and hopefully few prototypes,
18388 which can conflict with char $ac_func (); below.
18389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18390 <limits.h> exists even on freestanding compilers. */
18391
18392 #ifdef __STDC__
18393 # include <limits.h>
18394 #else
18395 # include <assert.h>
18396 #endif
18397
18398 #undef $ac_func
18399
18400 /* Override any GCC internal prototype to avoid an error.
18401 Use char because int might match the return type of a GCC
18402 builtin and then its argument prototype would still apply. */
18403 #ifdef __cplusplus
18404 extern "C"
18405 #endif
18406 char $ac_func ();
18407 /* The GNU C library defines this for functions which it implements
18408 to always fail with ENOSYS. Some functions are actually named
18409 something starting with __ and the normal name is an alias. */
18410 #if defined __stub_$ac_func || defined __stub___$ac_func
18411 choke me
18412 #endif
18413
18414 int
18415 main ()
18416 {
18417 return $ac_func ();
18418 ;
18419 return 0;
18420 }
18421 _ACEOF
18422 rm -f conftest.$ac_objext conftest$ac_exeext
18423 if { (ac_try="$ac_link"
18424 case "(($ac_try" in
18425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18426 *) ac_try_echo=$ac_try;;
18427 esac
18428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18429 (eval "$ac_link") 2>conftest.er1
18430 ac_status=$?
18431 grep -v '^ *+' conftest.er1 >conftest.err
18432 rm -f conftest.er1
18433 cat conftest.err >&5
18434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435 (exit $ac_status); } && {
18436 test -z "$ac_c_werror_flag" ||
18437 test ! -s conftest.err
18438 } && test -s conftest$ac_exeext &&
18439 $as_test_x conftest$ac_exeext; then
18440 eval "$as_ac_var=yes"
18441 else
18442 echo "$as_me: failed program was:" >&5
18443 sed 's/^/| /' conftest.$ac_ext >&5
18444
18445 eval "$as_ac_var=no"
18446 fi
18447
18448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18449 conftest$ac_exeext conftest.$ac_ext
18450 fi
18451 ac_res=`eval echo '${'$as_ac_var'}'`
18452 { echo "$as_me:$LINENO: result: $ac_res" >&5
18453 echo "${ECHO_T}$ac_res" >&6; }
18454 if test `eval echo '${'$as_ac_var'}'` = yes; then
18455 cat >>confdefs.h <<_ACEOF
18456 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18457 _ACEOF
18458
18459 fi
18460 done
18461
18462
18463 # PTY-related GNU extensions.
18464
18465 for ac_func in getpt
18466 do
18467 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18468 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18469 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18470 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18471 echo $ECHO_N "(cached) $ECHO_C" >&6
18472 else
18473 cat >conftest.$ac_ext <<_ACEOF
18474 /* confdefs.h. */
18475 _ACEOF
18476 cat confdefs.h >>conftest.$ac_ext
18477 cat >>conftest.$ac_ext <<_ACEOF
18478 /* end confdefs.h. */
18479 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18481 #define $ac_func innocuous_$ac_func
18482
18483 /* System header to define __stub macros and hopefully few prototypes,
18484 which can conflict with char $ac_func (); below.
18485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18486 <limits.h> exists even on freestanding compilers. */
18487
18488 #ifdef __STDC__
18489 # include <limits.h>
18490 #else
18491 # include <assert.h>
18492 #endif
18493
18494 #undef $ac_func
18495
18496 /* Override any GCC internal prototype to avoid an error.
18497 Use char because int might match the return type of a GCC
18498 builtin and then its argument prototype would still apply. */
18499 #ifdef __cplusplus
18500 extern "C"
18501 #endif
18502 char $ac_func ();
18503 /* The GNU C library defines this for functions which it implements
18504 to always fail with ENOSYS. Some functions are actually named
18505 something starting with __ and the normal name is an alias. */
18506 #if defined __stub_$ac_func || defined __stub___$ac_func
18507 choke me
18508 #endif
18509
18510 int
18511 main ()
18512 {
18513 return $ac_func ();
18514 ;
18515 return 0;
18516 }
18517 _ACEOF
18518 rm -f conftest.$ac_objext conftest$ac_exeext
18519 if { (ac_try="$ac_link"
18520 case "(($ac_try" in
18521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18522 *) ac_try_echo=$ac_try;;
18523 esac
18524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18525 (eval "$ac_link") 2>conftest.er1
18526 ac_status=$?
18527 grep -v '^ *+' conftest.er1 >conftest.err
18528 rm -f conftest.er1
18529 cat conftest.err >&5
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); } && {
18532 test -z "$ac_c_werror_flag" ||
18533 test ! -s conftest.err
18534 } && test -s conftest$ac_exeext &&
18535 $as_test_x conftest$ac_exeext; then
18536 eval "$as_ac_var=yes"
18537 else
18538 echo "$as_me: failed program was:" >&5
18539 sed 's/^/| /' conftest.$ac_ext >&5
18540
18541 eval "$as_ac_var=no"
18542 fi
18543
18544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18545 conftest$ac_exeext conftest.$ac_ext
18546 fi
18547 ac_res=`eval echo '${'$as_ac_var'}'`
18548 { echo "$as_me:$LINENO: result: $ac_res" >&5
18549 echo "${ECHO_T}$ac_res" >&6; }
18550 if test `eval echo '${'$as_ac_var'}'` = yes; then
18551 cat >>confdefs.h <<_ACEOF
18552 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18553 _ACEOF
18554
18555 fi
18556 done
18557
18558
18559 # Check this now, so that we will NOT find the above functions in ncurses.
18560 # That is because we have not set up to link ncurses in lib-src.
18561 # It's better to believe a function is not available
18562 # than to expect to find it in ncurses.
18563
18564 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18565 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
18566 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18567 echo $ECHO_N "(cached) $ECHO_C" >&6
18568 else
18569 ac_check_lib_save_LIBS=$LIBS
18570 LIBS="-lncurses $LIBS"
18571 cat >conftest.$ac_ext <<_ACEOF
18572 /* confdefs.h. */
18573 _ACEOF
18574 cat confdefs.h >>conftest.$ac_ext
18575 cat >>conftest.$ac_ext <<_ACEOF
18576 /* end confdefs.h. */
18577
18578 /* Override any GCC internal prototype to avoid an error.
18579 Use char because int might match the return type of a GCC
18580 builtin and then its argument prototype would still apply. */
18581 #ifdef __cplusplus
18582 extern "C"
18583 #endif
18584 char tparm ();
18585 int
18586 main ()
18587 {
18588 return tparm ();
18589 ;
18590 return 0;
18591 }
18592 _ACEOF
18593 rm -f conftest.$ac_objext conftest$ac_exeext
18594 if { (ac_try="$ac_link"
18595 case "(($ac_try" in
18596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18597 *) ac_try_echo=$ac_try;;
18598 esac
18599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18600 (eval "$ac_link") 2>conftest.er1
18601 ac_status=$?
18602 grep -v '^ *+' conftest.er1 >conftest.err
18603 rm -f conftest.er1
18604 cat conftest.err >&5
18605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606 (exit $ac_status); } && {
18607 test -z "$ac_c_werror_flag" ||
18608 test ! -s conftest.err
18609 } && test -s conftest$ac_exeext &&
18610 $as_test_x conftest$ac_exeext; then
18611 ac_cv_lib_ncurses_tparm=yes
18612 else
18613 echo "$as_me: failed program was:" >&5
18614 sed 's/^/| /' conftest.$ac_ext >&5
18615
18616 ac_cv_lib_ncurses_tparm=no
18617 fi
18618
18619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18620 conftest$ac_exeext conftest.$ac_ext
18621 LIBS=$ac_check_lib_save_LIBS
18622 fi
18623 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18624 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
18625 if test $ac_cv_lib_ncurses_tparm = yes; then
18626 cat >>confdefs.h <<_ACEOF
18627 #define HAVE_LIBNCURSES 1
18628 _ACEOF
18629
18630 LIBS="-lncurses $LIBS"
18631
18632 fi
18633
18634
18635 # Do we need the Hesiod library to provide the support routines?
18636 if test "$with_hesiod" = yes ; then
18637 # Don't set $LIBS here -- see comments above.
18638 resolv=no
18639 { echo "$as_me:$LINENO: checking for res_send" >&5
18640 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
18641 if test "${ac_cv_func_res_send+set}" = set; then
18642 echo $ECHO_N "(cached) $ECHO_C" >&6
18643 else
18644 cat >conftest.$ac_ext <<_ACEOF
18645 /* confdefs.h. */
18646 _ACEOF
18647 cat confdefs.h >>conftest.$ac_ext
18648 cat >>conftest.$ac_ext <<_ACEOF
18649 /* end confdefs.h. */
18650 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18652 #define res_send innocuous_res_send
18653
18654 /* System header to define __stub macros and hopefully few prototypes,
18655 which can conflict with char res_send (); below.
18656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18657 <limits.h> exists even on freestanding compilers. */
18658
18659 #ifdef __STDC__
18660 # include <limits.h>
18661 #else
18662 # include <assert.h>
18663 #endif
18664
18665 #undef res_send
18666
18667 /* Override any GCC internal prototype to avoid an error.
18668 Use char because int might match the return type of a GCC
18669 builtin and then its argument prototype would still apply. */
18670 #ifdef __cplusplus
18671 extern "C"
18672 #endif
18673 char res_send ();
18674 /* The GNU C library defines this for functions which it implements
18675 to always fail with ENOSYS. Some functions are actually named
18676 something starting with __ and the normal name is an alias. */
18677 #if defined __stub_res_send || defined __stub___res_send
18678 choke me
18679 #endif
18680
18681 int
18682 main ()
18683 {
18684 return res_send ();
18685 ;
18686 return 0;
18687 }
18688 _ACEOF
18689 rm -f conftest.$ac_objext conftest$ac_exeext
18690 if { (ac_try="$ac_link"
18691 case "(($ac_try" in
18692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18693 *) ac_try_echo=$ac_try;;
18694 esac
18695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18696 (eval "$ac_link") 2>conftest.er1
18697 ac_status=$?
18698 grep -v '^ *+' conftest.er1 >conftest.err
18699 rm -f conftest.er1
18700 cat conftest.err >&5
18701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702 (exit $ac_status); } && {
18703 test -z "$ac_c_werror_flag" ||
18704 test ! -s conftest.err
18705 } && test -s conftest$ac_exeext &&
18706 $as_test_x conftest$ac_exeext; then
18707 ac_cv_func_res_send=yes
18708 else
18709 echo "$as_me: failed program was:" >&5
18710 sed 's/^/| /' conftest.$ac_ext >&5
18711
18712 ac_cv_func_res_send=no
18713 fi
18714
18715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18716 conftest$ac_exeext conftest.$ac_ext
18717 fi
18718 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
18719 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
18720 if test $ac_cv_func_res_send = yes; then
18721 :
18722 else
18723 { echo "$as_me:$LINENO: checking for __res_send" >&5
18724 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
18725 if test "${ac_cv_func___res_send+set}" = set; then
18726 echo $ECHO_N "(cached) $ECHO_C" >&6
18727 else
18728 cat >conftest.$ac_ext <<_ACEOF
18729 /* confdefs.h. */
18730 _ACEOF
18731 cat confdefs.h >>conftest.$ac_ext
18732 cat >>conftest.$ac_ext <<_ACEOF
18733 /* end confdefs.h. */
18734 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
18735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18736 #define __res_send innocuous___res_send
18737
18738 /* System header to define __stub macros and hopefully few prototypes,
18739 which can conflict with char __res_send (); below.
18740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18741 <limits.h> exists even on freestanding compilers. */
18742
18743 #ifdef __STDC__
18744 # include <limits.h>
18745 #else
18746 # include <assert.h>
18747 #endif
18748
18749 #undef __res_send
18750
18751 /* Override any GCC internal prototype to avoid an error.
18752 Use char because int might match the return type of a GCC
18753 builtin and then its argument prototype would still apply. */
18754 #ifdef __cplusplus
18755 extern "C"
18756 #endif
18757 char __res_send ();
18758 /* The GNU C library defines this for functions which it implements
18759 to always fail with ENOSYS. Some functions are actually named
18760 something starting with __ and the normal name is an alias. */
18761 #if defined __stub___res_send || defined __stub_____res_send
18762 choke me
18763 #endif
18764
18765 int
18766 main ()
18767 {
18768 return __res_send ();
18769 ;
18770 return 0;
18771 }
18772 _ACEOF
18773 rm -f conftest.$ac_objext conftest$ac_exeext
18774 if { (ac_try="$ac_link"
18775 case "(($ac_try" in
18776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18777 *) ac_try_echo=$ac_try;;
18778 esac
18779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18780 (eval "$ac_link") 2>conftest.er1
18781 ac_status=$?
18782 grep -v '^ *+' conftest.er1 >conftest.err
18783 rm -f conftest.er1
18784 cat conftest.err >&5
18785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786 (exit $ac_status); } && {
18787 test -z "$ac_c_werror_flag" ||
18788 test ! -s conftest.err
18789 } && test -s conftest$ac_exeext &&
18790 $as_test_x conftest$ac_exeext; then
18791 ac_cv_func___res_send=yes
18792 else
18793 echo "$as_me: failed program was:" >&5
18794 sed 's/^/| /' conftest.$ac_ext >&5
18795
18796 ac_cv_func___res_send=no
18797 fi
18798
18799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18800 conftest$ac_exeext conftest.$ac_ext
18801 fi
18802 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
18803 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
18804 if test $ac_cv_func___res_send = yes; then
18805 :
18806 else
18807 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
18808 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
18809 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18810 echo $ECHO_N "(cached) $ECHO_C" >&6
18811 else
18812 ac_check_lib_save_LIBS=$LIBS
18813 LIBS="-lresolv $LIBS"
18814 cat >conftest.$ac_ext <<_ACEOF
18815 /* confdefs.h. */
18816 _ACEOF
18817 cat confdefs.h >>conftest.$ac_ext
18818 cat >>conftest.$ac_ext <<_ACEOF
18819 /* end confdefs.h. */
18820
18821 /* Override any GCC internal prototype to avoid an error.
18822 Use char because int might match the return type of a GCC
18823 builtin and then its argument prototype would still apply. */
18824 #ifdef __cplusplus
18825 extern "C"
18826 #endif
18827 char res_send ();
18828 int
18829 main ()
18830 {
18831 return res_send ();
18832 ;
18833 return 0;
18834 }
18835 _ACEOF
18836 rm -f conftest.$ac_objext conftest$ac_exeext
18837 if { (ac_try="$ac_link"
18838 case "(($ac_try" in
18839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18840 *) ac_try_echo=$ac_try;;
18841 esac
18842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18843 (eval "$ac_link") 2>conftest.er1
18844 ac_status=$?
18845 grep -v '^ *+' conftest.er1 >conftest.err
18846 rm -f conftest.er1
18847 cat conftest.err >&5
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); } && {
18850 test -z "$ac_c_werror_flag" ||
18851 test ! -s conftest.err
18852 } && test -s conftest$ac_exeext &&
18853 $as_test_x conftest$ac_exeext; then
18854 ac_cv_lib_resolv_res_send=yes
18855 else
18856 echo "$as_me: failed program was:" >&5
18857 sed 's/^/| /' conftest.$ac_ext >&5
18858
18859 ac_cv_lib_resolv_res_send=no
18860 fi
18861
18862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18863 conftest$ac_exeext conftest.$ac_ext
18864 LIBS=$ac_check_lib_save_LIBS
18865 fi
18866 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
18867 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
18868 if test $ac_cv_lib_resolv_res_send = yes; then
18869 resolv=yes
18870 else
18871 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
18872 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
18873 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18874 echo $ECHO_N "(cached) $ECHO_C" >&6
18875 else
18876 ac_check_lib_save_LIBS=$LIBS
18877 LIBS="-lresolv $LIBS"
18878 cat >conftest.$ac_ext <<_ACEOF
18879 /* confdefs.h. */
18880 _ACEOF
18881 cat confdefs.h >>conftest.$ac_ext
18882 cat >>conftest.$ac_ext <<_ACEOF
18883 /* end confdefs.h. */
18884
18885 /* Override any GCC internal prototype to avoid an error.
18886 Use char because int might match the return type of a GCC
18887 builtin and then its argument prototype would still apply. */
18888 #ifdef __cplusplus
18889 extern "C"
18890 #endif
18891 char __res_send ();
18892 int
18893 main ()
18894 {
18895 return __res_send ();
18896 ;
18897 return 0;
18898 }
18899 _ACEOF
18900 rm -f conftest.$ac_objext conftest$ac_exeext
18901 if { (ac_try="$ac_link"
18902 case "(($ac_try" in
18903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18904 *) ac_try_echo=$ac_try;;
18905 esac
18906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18907 (eval "$ac_link") 2>conftest.er1
18908 ac_status=$?
18909 grep -v '^ *+' conftest.er1 >conftest.err
18910 rm -f conftest.er1
18911 cat conftest.err >&5
18912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913 (exit $ac_status); } && {
18914 test -z "$ac_c_werror_flag" ||
18915 test ! -s conftest.err
18916 } && test -s conftest$ac_exeext &&
18917 $as_test_x conftest$ac_exeext; then
18918 ac_cv_lib_resolv___res_send=yes
18919 else
18920 echo "$as_me: failed program was:" >&5
18921 sed 's/^/| /' conftest.$ac_ext >&5
18922
18923 ac_cv_lib_resolv___res_send=no
18924 fi
18925
18926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18927 conftest$ac_exeext conftest.$ac_ext
18928 LIBS=$ac_check_lib_save_LIBS
18929 fi
18930 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
18931 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
18932 if test $ac_cv_lib_resolv___res_send = yes; then
18933 resolv=yes
18934 fi
18935
18936 fi
18937
18938 fi
18939
18940 fi
18941
18942 if test "$resolv" = yes ; then
18943 RESOLVLIB=-lresolv
18944
18945 cat >>confdefs.h <<\_ACEOF
18946 #define HAVE_LIBRESOLV 1
18947 _ACEOF
18948
18949 else
18950 RESOLVLIB=
18951 fi
18952 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
18953 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
18954 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18955 echo $ECHO_N "(cached) $ECHO_C" >&6
18956 else
18957 cat >conftest.$ac_ext <<_ACEOF
18958 /* confdefs.h. */
18959 _ACEOF
18960 cat confdefs.h >>conftest.$ac_ext
18961 cat >>conftest.$ac_ext <<_ACEOF
18962 /* end confdefs.h. */
18963 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18965 #define hes_getmailhost innocuous_hes_getmailhost
18966
18967 /* System header to define __stub macros and hopefully few prototypes,
18968 which can conflict with char hes_getmailhost (); below.
18969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18970 <limits.h> exists even on freestanding compilers. */
18971
18972 #ifdef __STDC__
18973 # include <limits.h>
18974 #else
18975 # include <assert.h>
18976 #endif
18977
18978 #undef hes_getmailhost
18979
18980 /* Override any GCC internal prototype to avoid an error.
18981 Use char because int might match the return type of a GCC
18982 builtin and then its argument prototype would still apply. */
18983 #ifdef __cplusplus
18984 extern "C"
18985 #endif
18986 char hes_getmailhost ();
18987 /* The GNU C library defines this for functions which it implements
18988 to always fail with ENOSYS. Some functions are actually named
18989 something starting with __ and the normal name is an alias. */
18990 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
18991 choke me
18992 #endif
18993
18994 int
18995 main ()
18996 {
18997 return hes_getmailhost ();
18998 ;
18999 return 0;
19000 }
19001 _ACEOF
19002 rm -f conftest.$ac_objext conftest$ac_exeext
19003 if { (ac_try="$ac_link"
19004 case "(($ac_try" in
19005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19006 *) ac_try_echo=$ac_try;;
19007 esac
19008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19009 (eval "$ac_link") 2>conftest.er1
19010 ac_status=$?
19011 grep -v '^ *+' conftest.er1 >conftest.err
19012 rm -f conftest.er1
19013 cat conftest.err >&5
19014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015 (exit $ac_status); } && {
19016 test -z "$ac_c_werror_flag" ||
19017 test ! -s conftest.err
19018 } && test -s conftest$ac_exeext &&
19019 $as_test_x conftest$ac_exeext; then
19020 ac_cv_func_hes_getmailhost=yes
19021 else
19022 echo "$as_me: failed program was:" >&5
19023 sed 's/^/| /' conftest.$ac_ext >&5
19024
19025 ac_cv_func_hes_getmailhost=no
19026 fi
19027
19028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19029 conftest$ac_exeext conftest.$ac_ext
19030 fi
19031 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
19032 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19033 if test $ac_cv_func_hes_getmailhost = yes; then
19034 :
19035 else
19036 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
19037 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
19038 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19039 echo $ECHO_N "(cached) $ECHO_C" >&6
19040 else
19041 ac_check_lib_save_LIBS=$LIBS
19042 LIBS="-lhesiod $RESOLVLIB $LIBS"
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
19050 /* Override any GCC internal prototype to avoid an error.
19051 Use char because int might match the return type of a GCC
19052 builtin and then its argument prototype would still apply. */
19053 #ifdef __cplusplus
19054 extern "C"
19055 #endif
19056 char hes_getmailhost ();
19057 int
19058 main ()
19059 {
19060 return hes_getmailhost ();
19061 ;
19062 return 0;
19063 }
19064 _ACEOF
19065 rm -f conftest.$ac_objext conftest$ac_exeext
19066 if { (ac_try="$ac_link"
19067 case "(($ac_try" in
19068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19069 *) ac_try_echo=$ac_try;;
19070 esac
19071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19072 (eval "$ac_link") 2>conftest.er1
19073 ac_status=$?
19074 grep -v '^ *+' conftest.er1 >conftest.err
19075 rm -f conftest.er1
19076 cat conftest.err >&5
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); } && {
19079 test -z "$ac_c_werror_flag" ||
19080 test ! -s conftest.err
19081 } && test -s conftest$ac_exeext &&
19082 $as_test_x conftest$ac_exeext; then
19083 ac_cv_lib_hesiod_hes_getmailhost=yes
19084 else
19085 echo "$as_me: failed program was:" >&5
19086 sed 's/^/| /' conftest.$ac_ext >&5
19087
19088 ac_cv_lib_hesiod_hes_getmailhost=no
19089 fi
19090
19091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19092 conftest$ac_exeext conftest.$ac_ext
19093 LIBS=$ac_check_lib_save_LIBS
19094 fi
19095 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19096 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19097 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19098
19099 cat >>confdefs.h <<\_ACEOF
19100 #define HAVE_LIBHESIOD 1
19101 _ACEOF
19102
19103 else
19104 :
19105 fi
19106
19107 fi
19108
19109 fi
19110
19111 # These tell us which Kerberos-related libraries to use.
19112 if test "${with_kerberos+set}" = set; then
19113
19114 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
19115 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
19116 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19117 echo $ECHO_N "(cached) $ECHO_C" >&6
19118 else
19119 ac_check_lib_save_LIBS=$LIBS
19120 LIBS="-lcom_err $LIBS"
19121 cat >conftest.$ac_ext <<_ACEOF
19122 /* confdefs.h. */
19123 _ACEOF
19124 cat confdefs.h >>conftest.$ac_ext
19125 cat >>conftest.$ac_ext <<_ACEOF
19126 /* end confdefs.h. */
19127
19128 /* Override any GCC internal prototype to avoid an error.
19129 Use char because int might match the return type of a GCC
19130 builtin and then its argument prototype would still apply. */
19131 #ifdef __cplusplus
19132 extern "C"
19133 #endif
19134 char com_err ();
19135 int
19136 main ()
19137 {
19138 return com_err ();
19139 ;
19140 return 0;
19141 }
19142 _ACEOF
19143 rm -f conftest.$ac_objext conftest$ac_exeext
19144 if { (ac_try="$ac_link"
19145 case "(($ac_try" in
19146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19147 *) ac_try_echo=$ac_try;;
19148 esac
19149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19150 (eval "$ac_link") 2>conftest.er1
19151 ac_status=$?
19152 grep -v '^ *+' conftest.er1 >conftest.err
19153 rm -f conftest.er1
19154 cat conftest.err >&5
19155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19156 (exit $ac_status); } && {
19157 test -z "$ac_c_werror_flag" ||
19158 test ! -s conftest.err
19159 } && test -s conftest$ac_exeext &&
19160 $as_test_x conftest$ac_exeext; then
19161 ac_cv_lib_com_err_com_err=yes
19162 else
19163 echo "$as_me: failed program was:" >&5
19164 sed 's/^/| /' conftest.$ac_ext >&5
19165
19166 ac_cv_lib_com_err_com_err=no
19167 fi
19168
19169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19170 conftest$ac_exeext conftest.$ac_ext
19171 LIBS=$ac_check_lib_save_LIBS
19172 fi
19173 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
19174 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19175 if test $ac_cv_lib_com_err_com_err = yes; then
19176 cat >>confdefs.h <<_ACEOF
19177 #define HAVE_LIBCOM_ERR 1
19178 _ACEOF
19179
19180 LIBS="-lcom_err $LIBS"
19181
19182 fi
19183
19184
19185 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19186 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
19187 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19188 echo $ECHO_N "(cached) $ECHO_C" >&6
19189 else
19190 ac_check_lib_save_LIBS=$LIBS
19191 LIBS="-lk5crypto $LIBS"
19192 cat >conftest.$ac_ext <<_ACEOF
19193 /* confdefs.h. */
19194 _ACEOF
19195 cat confdefs.h >>conftest.$ac_ext
19196 cat >>conftest.$ac_ext <<_ACEOF
19197 /* end confdefs.h. */
19198
19199 /* Override any GCC internal prototype to avoid an error.
19200 Use char because int might match the return type of a GCC
19201 builtin and then its argument prototype would still apply. */
19202 #ifdef __cplusplus
19203 extern "C"
19204 #endif
19205 char mit_des_cbc_encrypt ();
19206 int
19207 main ()
19208 {
19209 return mit_des_cbc_encrypt ();
19210 ;
19211 return 0;
19212 }
19213 _ACEOF
19214 rm -f conftest.$ac_objext conftest$ac_exeext
19215 if { (ac_try="$ac_link"
19216 case "(($ac_try" in
19217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19218 *) ac_try_echo=$ac_try;;
19219 esac
19220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19221 (eval "$ac_link") 2>conftest.er1
19222 ac_status=$?
19223 grep -v '^ *+' conftest.er1 >conftest.err
19224 rm -f conftest.er1
19225 cat conftest.err >&5
19226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227 (exit $ac_status); } && {
19228 test -z "$ac_c_werror_flag" ||
19229 test ! -s conftest.err
19230 } && test -s conftest$ac_exeext &&
19231 $as_test_x conftest$ac_exeext; then
19232 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19233 else
19234 echo "$as_me: failed program was:" >&5
19235 sed 's/^/| /' conftest.$ac_ext >&5
19236
19237 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19238 fi
19239
19240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19241 conftest$ac_exeext conftest.$ac_ext
19242 LIBS=$ac_check_lib_save_LIBS
19243 fi
19244 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19245 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19246 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19247 cat >>confdefs.h <<_ACEOF
19248 #define HAVE_LIBK5CRYPTO 1
19249 _ACEOF
19250
19251 LIBS="-lk5crypto $LIBS"
19252
19253 fi
19254
19255
19256 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19257 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
19258 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19259 echo $ECHO_N "(cached) $ECHO_C" >&6
19260 else
19261 ac_check_lib_save_LIBS=$LIBS
19262 LIBS="-lcrypto $LIBS"
19263 cat >conftest.$ac_ext <<_ACEOF
19264 /* confdefs.h. */
19265 _ACEOF
19266 cat confdefs.h >>conftest.$ac_ext
19267 cat >>conftest.$ac_ext <<_ACEOF
19268 /* end confdefs.h. */
19269
19270 /* Override any GCC internal prototype to avoid an error.
19271 Use char because int might match the return type of a GCC
19272 builtin and then its argument prototype would still apply. */
19273 #ifdef __cplusplus
19274 extern "C"
19275 #endif
19276 char mit_des_cbc_encrypt ();
19277 int
19278 main ()
19279 {
19280 return mit_des_cbc_encrypt ();
19281 ;
19282 return 0;
19283 }
19284 _ACEOF
19285 rm -f conftest.$ac_objext conftest$ac_exeext
19286 if { (ac_try="$ac_link"
19287 case "(($ac_try" in
19288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19289 *) ac_try_echo=$ac_try;;
19290 esac
19291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19292 (eval "$ac_link") 2>conftest.er1
19293 ac_status=$?
19294 grep -v '^ *+' conftest.er1 >conftest.err
19295 rm -f conftest.er1
19296 cat conftest.err >&5
19297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298 (exit $ac_status); } && {
19299 test -z "$ac_c_werror_flag" ||
19300 test ! -s conftest.err
19301 } && test -s conftest$ac_exeext &&
19302 $as_test_x conftest$ac_exeext; then
19303 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19304 else
19305 echo "$as_me: failed program was:" >&5
19306 sed 's/^/| /' conftest.$ac_ext >&5
19307
19308 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19309 fi
19310
19311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19312 conftest$ac_exeext conftest.$ac_ext
19313 LIBS=$ac_check_lib_save_LIBS
19314 fi
19315 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19316 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19317 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19318 cat >>confdefs.h <<_ACEOF
19319 #define HAVE_LIBCRYPTO 1
19320 _ACEOF
19321
19322 LIBS="-lcrypto $LIBS"
19323
19324 fi
19325
19326
19327 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19328 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
19329 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19330 echo $ECHO_N "(cached) $ECHO_C" >&6
19331 else
19332 ac_check_lib_save_LIBS=$LIBS
19333 LIBS="-lkrb5 $LIBS"
19334 cat >conftest.$ac_ext <<_ACEOF
19335 /* confdefs.h. */
19336 _ACEOF
19337 cat confdefs.h >>conftest.$ac_ext
19338 cat >>conftest.$ac_ext <<_ACEOF
19339 /* end confdefs.h. */
19340
19341 /* Override any GCC internal prototype to avoid an error.
19342 Use char because int might match the return type of a GCC
19343 builtin and then its argument prototype would still apply. */
19344 #ifdef __cplusplus
19345 extern "C"
19346 #endif
19347 char krb5_init_context ();
19348 int
19349 main ()
19350 {
19351 return krb5_init_context ();
19352 ;
19353 return 0;
19354 }
19355 _ACEOF
19356 rm -f conftest.$ac_objext conftest$ac_exeext
19357 if { (ac_try="$ac_link"
19358 case "(($ac_try" in
19359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19360 *) ac_try_echo=$ac_try;;
19361 esac
19362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19363 (eval "$ac_link") 2>conftest.er1
19364 ac_status=$?
19365 grep -v '^ *+' conftest.er1 >conftest.err
19366 rm -f conftest.er1
19367 cat conftest.err >&5
19368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369 (exit $ac_status); } && {
19370 test -z "$ac_c_werror_flag" ||
19371 test ! -s conftest.err
19372 } && test -s conftest$ac_exeext &&
19373 $as_test_x conftest$ac_exeext; then
19374 ac_cv_lib_krb5_krb5_init_context=yes
19375 else
19376 echo "$as_me: failed program was:" >&5
19377 sed 's/^/| /' conftest.$ac_ext >&5
19378
19379 ac_cv_lib_krb5_krb5_init_context=no
19380 fi
19381
19382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19383 conftest$ac_exeext conftest.$ac_ext
19384 LIBS=$ac_check_lib_save_LIBS
19385 fi
19386 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19387 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
19388 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19389 cat >>confdefs.h <<_ACEOF
19390 #define HAVE_LIBKRB5 1
19391 _ACEOF
19392
19393 LIBS="-lkrb5 $LIBS"
19394
19395 fi
19396
19397 if test "${with_kerberos5+set}" != set; then
19398
19399 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19400 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
19401 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19402 echo $ECHO_N "(cached) $ECHO_C" >&6
19403 else
19404 ac_check_lib_save_LIBS=$LIBS
19405 LIBS="-ldes425 $LIBS"
19406 cat >conftest.$ac_ext <<_ACEOF
19407 /* confdefs.h. */
19408 _ACEOF
19409 cat confdefs.h >>conftest.$ac_ext
19410 cat >>conftest.$ac_ext <<_ACEOF
19411 /* end confdefs.h. */
19412
19413 /* Override any GCC internal prototype to avoid an error.
19414 Use char because int might match the return type of a GCC
19415 builtin and then its argument prototype would still apply. */
19416 #ifdef __cplusplus
19417 extern "C"
19418 #endif
19419 char des_cbc_encrypt ();
19420 int
19421 main ()
19422 {
19423 return des_cbc_encrypt ();
19424 ;
19425 return 0;
19426 }
19427 _ACEOF
19428 rm -f conftest.$ac_objext conftest$ac_exeext
19429 if { (ac_try="$ac_link"
19430 case "(($ac_try" in
19431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19432 *) ac_try_echo=$ac_try;;
19433 esac
19434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19435 (eval "$ac_link") 2>conftest.er1
19436 ac_status=$?
19437 grep -v '^ *+' conftest.er1 >conftest.err
19438 rm -f conftest.er1
19439 cat conftest.err >&5
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); } && {
19442 test -z "$ac_c_werror_flag" ||
19443 test ! -s conftest.err
19444 } && test -s conftest$ac_exeext &&
19445 $as_test_x conftest$ac_exeext; then
19446 ac_cv_lib_des425_des_cbc_encrypt=yes
19447 else
19448 echo "$as_me: failed program was:" >&5
19449 sed 's/^/| /' conftest.$ac_ext >&5
19450
19451 ac_cv_lib_des425_des_cbc_encrypt=no
19452 fi
19453
19454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19455 conftest$ac_exeext conftest.$ac_ext
19456 LIBS=$ac_check_lib_save_LIBS
19457 fi
19458 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19459 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
19460 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19461 cat >>confdefs.h <<_ACEOF
19462 #define HAVE_LIBDES425 1
19463 _ACEOF
19464
19465 LIBS="-ldes425 $LIBS"
19466
19467 else
19468
19469 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19470 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
19471 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19472 echo $ECHO_N "(cached) $ECHO_C" >&6
19473 else
19474 ac_check_lib_save_LIBS=$LIBS
19475 LIBS="-ldes $LIBS"
19476 cat >conftest.$ac_ext <<_ACEOF
19477 /* confdefs.h. */
19478 _ACEOF
19479 cat confdefs.h >>conftest.$ac_ext
19480 cat >>conftest.$ac_ext <<_ACEOF
19481 /* end confdefs.h. */
19482
19483 /* Override any GCC internal prototype to avoid an error.
19484 Use char because int might match the return type of a GCC
19485 builtin and then its argument prototype would still apply. */
19486 #ifdef __cplusplus
19487 extern "C"
19488 #endif
19489 char des_cbc_encrypt ();
19490 int
19491 main ()
19492 {
19493 return des_cbc_encrypt ();
19494 ;
19495 return 0;
19496 }
19497 _ACEOF
19498 rm -f conftest.$ac_objext conftest$ac_exeext
19499 if { (ac_try="$ac_link"
19500 case "(($ac_try" in
19501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19502 *) ac_try_echo=$ac_try;;
19503 esac
19504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19505 (eval "$ac_link") 2>conftest.er1
19506 ac_status=$?
19507 grep -v '^ *+' conftest.er1 >conftest.err
19508 rm -f conftest.er1
19509 cat conftest.err >&5
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); } && {
19512 test -z "$ac_c_werror_flag" ||
19513 test ! -s conftest.err
19514 } && test -s conftest$ac_exeext &&
19515 $as_test_x conftest$ac_exeext; then
19516 ac_cv_lib_des_des_cbc_encrypt=yes
19517 else
19518 echo "$as_me: failed program was:" >&5
19519 sed 's/^/| /' conftest.$ac_ext >&5
19520
19521 ac_cv_lib_des_des_cbc_encrypt=no
19522 fi
19523
19524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19525 conftest$ac_exeext conftest.$ac_ext
19526 LIBS=$ac_check_lib_save_LIBS
19527 fi
19528 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19529 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
19530 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19531 cat >>confdefs.h <<_ACEOF
19532 #define HAVE_LIBDES 1
19533 _ACEOF
19534
19535 LIBS="-ldes $LIBS"
19536
19537 fi
19538
19539 fi
19540
19541
19542 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19543 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
19544 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19545 echo $ECHO_N "(cached) $ECHO_C" >&6
19546 else
19547 ac_check_lib_save_LIBS=$LIBS
19548 LIBS="-lkrb4 $LIBS"
19549 cat >conftest.$ac_ext <<_ACEOF
19550 /* confdefs.h. */
19551 _ACEOF
19552 cat confdefs.h >>conftest.$ac_ext
19553 cat >>conftest.$ac_ext <<_ACEOF
19554 /* end confdefs.h. */
19555
19556 /* Override any GCC internal prototype to avoid an error.
19557 Use char because int might match the return type of a GCC
19558 builtin and then its argument prototype would still apply. */
19559 #ifdef __cplusplus
19560 extern "C"
19561 #endif
19562 char krb_get_cred ();
19563 int
19564 main ()
19565 {
19566 return krb_get_cred ();
19567 ;
19568 return 0;
19569 }
19570 _ACEOF
19571 rm -f conftest.$ac_objext conftest$ac_exeext
19572 if { (ac_try="$ac_link"
19573 case "(($ac_try" in
19574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19575 *) ac_try_echo=$ac_try;;
19576 esac
19577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19578 (eval "$ac_link") 2>conftest.er1
19579 ac_status=$?
19580 grep -v '^ *+' conftest.er1 >conftest.err
19581 rm -f conftest.er1
19582 cat conftest.err >&5
19583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584 (exit $ac_status); } && {
19585 test -z "$ac_c_werror_flag" ||
19586 test ! -s conftest.err
19587 } && test -s conftest$ac_exeext &&
19588 $as_test_x conftest$ac_exeext; then
19589 ac_cv_lib_krb4_krb_get_cred=yes
19590 else
19591 echo "$as_me: failed program was:" >&5
19592 sed 's/^/| /' conftest.$ac_ext >&5
19593
19594 ac_cv_lib_krb4_krb_get_cred=no
19595 fi
19596
19597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19598 conftest$ac_exeext conftest.$ac_ext
19599 LIBS=$ac_check_lib_save_LIBS
19600 fi
19601 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19602 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
19603 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19604 cat >>confdefs.h <<_ACEOF
19605 #define HAVE_LIBKRB4 1
19606 _ACEOF
19607
19608 LIBS="-lkrb4 $LIBS"
19609
19610 else
19611
19612 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19613 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
19614 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19615 echo $ECHO_N "(cached) $ECHO_C" >&6
19616 else
19617 ac_check_lib_save_LIBS=$LIBS
19618 LIBS="-lkrb $LIBS"
19619 cat >conftest.$ac_ext <<_ACEOF
19620 /* confdefs.h. */
19621 _ACEOF
19622 cat confdefs.h >>conftest.$ac_ext
19623 cat >>conftest.$ac_ext <<_ACEOF
19624 /* end confdefs.h. */
19625
19626 /* Override any GCC internal prototype to avoid an error.
19627 Use char because int might match the return type of a GCC
19628 builtin and then its argument prototype would still apply. */
19629 #ifdef __cplusplus
19630 extern "C"
19631 #endif
19632 char krb_get_cred ();
19633 int
19634 main ()
19635 {
19636 return krb_get_cred ();
19637 ;
19638 return 0;
19639 }
19640 _ACEOF
19641 rm -f conftest.$ac_objext conftest$ac_exeext
19642 if { (ac_try="$ac_link"
19643 case "(($ac_try" in
19644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19645 *) ac_try_echo=$ac_try;;
19646 esac
19647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19648 (eval "$ac_link") 2>conftest.er1
19649 ac_status=$?
19650 grep -v '^ *+' conftest.er1 >conftest.err
19651 rm -f conftest.er1
19652 cat conftest.err >&5
19653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654 (exit $ac_status); } && {
19655 test -z "$ac_c_werror_flag" ||
19656 test ! -s conftest.err
19657 } && test -s conftest$ac_exeext &&
19658 $as_test_x conftest$ac_exeext; then
19659 ac_cv_lib_krb_krb_get_cred=yes
19660 else
19661 echo "$as_me: failed program was:" >&5
19662 sed 's/^/| /' conftest.$ac_ext >&5
19663
19664 ac_cv_lib_krb_krb_get_cred=no
19665 fi
19666
19667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19668 conftest$ac_exeext conftest.$ac_ext
19669 LIBS=$ac_check_lib_save_LIBS
19670 fi
19671 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
19672 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
19673 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19674 cat >>confdefs.h <<_ACEOF
19675 #define HAVE_LIBKRB 1
19676 _ACEOF
19677
19678 LIBS="-lkrb $LIBS"
19679
19680 fi
19681
19682 fi
19683
19684 fi
19685
19686 if test "${with_kerberos5+set}" = set; then
19687
19688 for ac_header in krb5.h
19689 do
19690 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19692 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19695 echo $ECHO_N "(cached) $ECHO_C" >&6
19696 fi
19697 ac_res=`eval echo '${'$as_ac_Header'}'`
19698 { echo "$as_me:$LINENO: result: $ac_res" >&5
19699 echo "${ECHO_T}$ac_res" >&6; }
19700 else
19701 # Is the header compilable?
19702 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19703 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19704 cat >conftest.$ac_ext <<_ACEOF
19705 /* confdefs.h. */
19706 _ACEOF
19707 cat confdefs.h >>conftest.$ac_ext
19708 cat >>conftest.$ac_ext <<_ACEOF
19709 /* end confdefs.h. */
19710 $ac_includes_default
19711 #include <$ac_header>
19712 _ACEOF
19713 rm -f conftest.$ac_objext
19714 if { (ac_try="$ac_compile"
19715 case "(($ac_try" in
19716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19717 *) ac_try_echo=$ac_try;;
19718 esac
19719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19720 (eval "$ac_compile") 2>conftest.er1
19721 ac_status=$?
19722 grep -v '^ *+' conftest.er1 >conftest.err
19723 rm -f conftest.er1
19724 cat conftest.err >&5
19725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726 (exit $ac_status); } && {
19727 test -z "$ac_c_werror_flag" ||
19728 test ! -s conftest.err
19729 } && test -s conftest.$ac_objext; then
19730 ac_header_compiler=yes
19731 else
19732 echo "$as_me: failed program was:" >&5
19733 sed 's/^/| /' conftest.$ac_ext >&5
19734
19735 ac_header_compiler=no
19736 fi
19737
19738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19739 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19740 echo "${ECHO_T}$ac_header_compiler" >&6; }
19741
19742 # Is the header present?
19743 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19744 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19745 cat >conftest.$ac_ext <<_ACEOF
19746 /* confdefs.h. */
19747 _ACEOF
19748 cat confdefs.h >>conftest.$ac_ext
19749 cat >>conftest.$ac_ext <<_ACEOF
19750 /* end confdefs.h. */
19751 #include <$ac_header>
19752 _ACEOF
19753 if { (ac_try="$ac_cpp conftest.$ac_ext"
19754 case "(($ac_try" in
19755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19756 *) ac_try_echo=$ac_try;;
19757 esac
19758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19759 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19760 ac_status=$?
19761 grep -v '^ *+' conftest.er1 >conftest.err
19762 rm -f conftest.er1
19763 cat conftest.err >&5
19764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765 (exit $ac_status); } >/dev/null && {
19766 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19767 test ! -s conftest.err
19768 }; then
19769 ac_header_preproc=yes
19770 else
19771 echo "$as_me: failed program was:" >&5
19772 sed 's/^/| /' conftest.$ac_ext >&5
19773
19774 ac_header_preproc=no
19775 fi
19776
19777 rm -f conftest.err conftest.$ac_ext
19778 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19779 echo "${ECHO_T}$ac_header_preproc" >&6; }
19780
19781 # So? What about this header?
19782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19783 yes:no: )
19784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19788 ac_header_preproc=yes
19789 ;;
19790 no:yes:* )
19791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19794 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19798 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19803
19804 ;;
19805 esac
19806 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19809 echo $ECHO_N "(cached) $ECHO_C" >&6
19810 else
19811 eval "$as_ac_Header=\$ac_header_preproc"
19812 fi
19813 ac_res=`eval echo '${'$as_ac_Header'}'`
19814 { echo "$as_me:$LINENO: result: $ac_res" >&5
19815 echo "${ECHO_T}$ac_res" >&6; }
19816
19817 fi
19818 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19819 cat >>confdefs.h <<_ACEOF
19820 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19821 _ACEOF
19822
19823 fi
19824
19825 done
19826
19827 else
19828
19829 for ac_header in des.h
19830 do
19831 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19833 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19836 echo $ECHO_N "(cached) $ECHO_C" >&6
19837 fi
19838 ac_res=`eval echo '${'$as_ac_Header'}'`
19839 { echo "$as_me:$LINENO: result: $ac_res" >&5
19840 echo "${ECHO_T}$ac_res" >&6; }
19841 else
19842 # Is the header compilable?
19843 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19844 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19845 cat >conftest.$ac_ext <<_ACEOF
19846 /* confdefs.h. */
19847 _ACEOF
19848 cat confdefs.h >>conftest.$ac_ext
19849 cat >>conftest.$ac_ext <<_ACEOF
19850 /* end confdefs.h. */
19851 $ac_includes_default
19852 #include <$ac_header>
19853 _ACEOF
19854 rm -f conftest.$ac_objext
19855 if { (ac_try="$ac_compile"
19856 case "(($ac_try" in
19857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19858 *) ac_try_echo=$ac_try;;
19859 esac
19860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19861 (eval "$ac_compile") 2>conftest.er1
19862 ac_status=$?
19863 grep -v '^ *+' conftest.er1 >conftest.err
19864 rm -f conftest.er1
19865 cat conftest.err >&5
19866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); } && {
19868 test -z "$ac_c_werror_flag" ||
19869 test ! -s conftest.err
19870 } && test -s conftest.$ac_objext; then
19871 ac_header_compiler=yes
19872 else
19873 echo "$as_me: failed program was:" >&5
19874 sed 's/^/| /' conftest.$ac_ext >&5
19875
19876 ac_header_compiler=no
19877 fi
19878
19879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19880 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19881 echo "${ECHO_T}$ac_header_compiler" >&6; }
19882
19883 # Is the header present?
19884 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19885 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19886 cat >conftest.$ac_ext <<_ACEOF
19887 /* confdefs.h. */
19888 _ACEOF
19889 cat confdefs.h >>conftest.$ac_ext
19890 cat >>conftest.$ac_ext <<_ACEOF
19891 /* end confdefs.h. */
19892 #include <$ac_header>
19893 _ACEOF
19894 if { (ac_try="$ac_cpp conftest.$ac_ext"
19895 case "(($ac_try" in
19896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19897 *) ac_try_echo=$ac_try;;
19898 esac
19899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19900 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19901 ac_status=$?
19902 grep -v '^ *+' conftest.er1 >conftest.err
19903 rm -f conftest.er1
19904 cat conftest.err >&5
19905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906 (exit $ac_status); } >/dev/null && {
19907 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19908 test ! -s conftest.err
19909 }; then
19910 ac_header_preproc=yes
19911 else
19912 echo "$as_me: failed program was:" >&5
19913 sed 's/^/| /' conftest.$ac_ext >&5
19914
19915 ac_header_preproc=no
19916 fi
19917
19918 rm -f conftest.err conftest.$ac_ext
19919 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19920 echo "${ECHO_T}$ac_header_preproc" >&6; }
19921
19922 # So? What about this header?
19923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19924 yes:no: )
19925 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19926 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19928 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19929 ac_header_preproc=yes
19930 ;;
19931 no:yes:* )
19932 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19933 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19934 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19935 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19936 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19937 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19938 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19939 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19941 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19942 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19943 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19944
19945 ;;
19946 esac
19947 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19950 echo $ECHO_N "(cached) $ECHO_C" >&6
19951 else
19952 eval "$as_ac_Header=\$ac_header_preproc"
19953 fi
19954 ac_res=`eval echo '${'$as_ac_Header'}'`
19955 { echo "$as_me:$LINENO: result: $ac_res" >&5
19956 echo "${ECHO_T}$ac_res" >&6; }
19957
19958 fi
19959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19960 cat >>confdefs.h <<_ACEOF
19961 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19962 _ACEOF
19963
19964 else
19965
19966 for ac_header in kerberosIV/des.h
19967 do
19968 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19970 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19973 echo $ECHO_N "(cached) $ECHO_C" >&6
19974 fi
19975 ac_res=`eval echo '${'$as_ac_Header'}'`
19976 { echo "$as_me:$LINENO: result: $ac_res" >&5
19977 echo "${ECHO_T}$ac_res" >&6; }
19978 else
19979 # Is the header compilable?
19980 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19981 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19982 cat >conftest.$ac_ext <<_ACEOF
19983 /* confdefs.h. */
19984 _ACEOF
19985 cat confdefs.h >>conftest.$ac_ext
19986 cat >>conftest.$ac_ext <<_ACEOF
19987 /* end confdefs.h. */
19988 $ac_includes_default
19989 #include <$ac_header>
19990 _ACEOF
19991 rm -f conftest.$ac_objext
19992 if { (ac_try="$ac_compile"
19993 case "(($ac_try" in
19994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19995 *) ac_try_echo=$ac_try;;
19996 esac
19997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19998 (eval "$ac_compile") 2>conftest.er1
19999 ac_status=$?
20000 grep -v '^ *+' conftest.er1 >conftest.err
20001 rm -f conftest.er1
20002 cat conftest.err >&5
20003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004 (exit $ac_status); } && {
20005 test -z "$ac_c_werror_flag" ||
20006 test ! -s conftest.err
20007 } && test -s conftest.$ac_objext; then
20008 ac_header_compiler=yes
20009 else
20010 echo "$as_me: failed program was:" >&5
20011 sed 's/^/| /' conftest.$ac_ext >&5
20012
20013 ac_header_compiler=no
20014 fi
20015
20016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20017 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20018 echo "${ECHO_T}$ac_header_compiler" >&6; }
20019
20020 # Is the header present?
20021 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20022 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20023 cat >conftest.$ac_ext <<_ACEOF
20024 /* confdefs.h. */
20025 _ACEOF
20026 cat confdefs.h >>conftest.$ac_ext
20027 cat >>conftest.$ac_ext <<_ACEOF
20028 /* end confdefs.h. */
20029 #include <$ac_header>
20030 _ACEOF
20031 if { (ac_try="$ac_cpp conftest.$ac_ext"
20032 case "(($ac_try" in
20033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20034 *) ac_try_echo=$ac_try;;
20035 esac
20036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20037 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20038 ac_status=$?
20039 grep -v '^ *+' conftest.er1 >conftest.err
20040 rm -f conftest.er1
20041 cat conftest.err >&5
20042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043 (exit $ac_status); } >/dev/null && {
20044 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20045 test ! -s conftest.err
20046 }; then
20047 ac_header_preproc=yes
20048 else
20049 echo "$as_me: failed program was:" >&5
20050 sed 's/^/| /' conftest.$ac_ext >&5
20051
20052 ac_header_preproc=no
20053 fi
20054
20055 rm -f conftest.err conftest.$ac_ext
20056 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20057 echo "${ECHO_T}$ac_header_preproc" >&6; }
20058
20059 # So? What about this header?
20060 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20061 yes:no: )
20062 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20063 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20065 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20066 ac_header_preproc=yes
20067 ;;
20068 no:yes:* )
20069 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20070 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20071 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20072 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20073 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20074 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20075 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20076 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20078 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20079 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20080 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20081
20082 ;;
20083 esac
20084 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20087 echo $ECHO_N "(cached) $ECHO_C" >&6
20088 else
20089 eval "$as_ac_Header=\$ac_header_preproc"
20090 fi
20091 ac_res=`eval echo '${'$as_ac_Header'}'`
20092 { echo "$as_me:$LINENO: result: $ac_res" >&5
20093 echo "${ECHO_T}$ac_res" >&6; }
20094
20095 fi
20096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20097 cat >>confdefs.h <<_ACEOF
20098 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20099 _ACEOF
20100
20101 else
20102
20103 for ac_header in kerberos/des.h
20104 do
20105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20107 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20110 echo $ECHO_N "(cached) $ECHO_C" >&6
20111 fi
20112 ac_res=`eval echo '${'$as_ac_Header'}'`
20113 { echo "$as_me:$LINENO: result: $ac_res" >&5
20114 echo "${ECHO_T}$ac_res" >&6; }
20115 else
20116 # Is the header compilable?
20117 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20118 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20119 cat >conftest.$ac_ext <<_ACEOF
20120 /* confdefs.h. */
20121 _ACEOF
20122 cat confdefs.h >>conftest.$ac_ext
20123 cat >>conftest.$ac_ext <<_ACEOF
20124 /* end confdefs.h. */
20125 $ac_includes_default
20126 #include <$ac_header>
20127 _ACEOF
20128 rm -f conftest.$ac_objext
20129 if { (ac_try="$ac_compile"
20130 case "(($ac_try" in
20131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20132 *) ac_try_echo=$ac_try;;
20133 esac
20134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20135 (eval "$ac_compile") 2>conftest.er1
20136 ac_status=$?
20137 grep -v '^ *+' conftest.er1 >conftest.err
20138 rm -f conftest.er1
20139 cat conftest.err >&5
20140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141 (exit $ac_status); } && {
20142 test -z "$ac_c_werror_flag" ||
20143 test ! -s conftest.err
20144 } && test -s conftest.$ac_objext; then
20145 ac_header_compiler=yes
20146 else
20147 echo "$as_me: failed program was:" >&5
20148 sed 's/^/| /' conftest.$ac_ext >&5
20149
20150 ac_header_compiler=no
20151 fi
20152
20153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20154 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20155 echo "${ECHO_T}$ac_header_compiler" >&6; }
20156
20157 # Is the header present?
20158 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20159 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20160 cat >conftest.$ac_ext <<_ACEOF
20161 /* confdefs.h. */
20162 _ACEOF
20163 cat confdefs.h >>conftest.$ac_ext
20164 cat >>conftest.$ac_ext <<_ACEOF
20165 /* end confdefs.h. */
20166 #include <$ac_header>
20167 _ACEOF
20168 if { (ac_try="$ac_cpp conftest.$ac_ext"
20169 case "(($ac_try" in
20170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20171 *) ac_try_echo=$ac_try;;
20172 esac
20173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20174 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20175 ac_status=$?
20176 grep -v '^ *+' conftest.er1 >conftest.err
20177 rm -f conftest.er1
20178 cat conftest.err >&5
20179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180 (exit $ac_status); } >/dev/null && {
20181 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20182 test ! -s conftest.err
20183 }; then
20184 ac_header_preproc=yes
20185 else
20186 echo "$as_me: failed program was:" >&5
20187 sed 's/^/| /' conftest.$ac_ext >&5
20188
20189 ac_header_preproc=no
20190 fi
20191
20192 rm -f conftest.err conftest.$ac_ext
20193 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20194 echo "${ECHO_T}$ac_header_preproc" >&6; }
20195
20196 # So? What about this header?
20197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20198 yes:no: )
20199 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20200 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20202 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20203 ac_header_preproc=yes
20204 ;;
20205 no:yes:* )
20206 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20208 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20209 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20210 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20211 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20212 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20213 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20216 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20217 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20218
20219 ;;
20220 esac
20221 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20224 echo $ECHO_N "(cached) $ECHO_C" >&6
20225 else
20226 eval "$as_ac_Header=\$ac_header_preproc"
20227 fi
20228 ac_res=`eval echo '${'$as_ac_Header'}'`
20229 { echo "$as_me:$LINENO: result: $ac_res" >&5
20230 echo "${ECHO_T}$ac_res" >&6; }
20231
20232 fi
20233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20234 cat >>confdefs.h <<_ACEOF
20235 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20236 _ACEOF
20237
20238 fi
20239
20240 done
20241
20242 fi
20243
20244 done
20245
20246 fi
20247
20248 done
20249
20250
20251 for ac_header in krb.h
20252 do
20253 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20255 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20258 echo $ECHO_N "(cached) $ECHO_C" >&6
20259 fi
20260 ac_res=`eval echo '${'$as_ac_Header'}'`
20261 { echo "$as_me:$LINENO: result: $ac_res" >&5
20262 echo "${ECHO_T}$ac_res" >&6; }
20263 else
20264 # Is the header compilable?
20265 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20267 cat >conftest.$ac_ext <<_ACEOF
20268 /* confdefs.h. */
20269 _ACEOF
20270 cat confdefs.h >>conftest.$ac_ext
20271 cat >>conftest.$ac_ext <<_ACEOF
20272 /* end confdefs.h. */
20273 $ac_includes_default
20274 #include <$ac_header>
20275 _ACEOF
20276 rm -f conftest.$ac_objext
20277 if { (ac_try="$ac_compile"
20278 case "(($ac_try" in
20279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20280 *) ac_try_echo=$ac_try;;
20281 esac
20282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20283 (eval "$ac_compile") 2>conftest.er1
20284 ac_status=$?
20285 grep -v '^ *+' conftest.er1 >conftest.err
20286 rm -f conftest.er1
20287 cat conftest.err >&5
20288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20289 (exit $ac_status); } && {
20290 test -z "$ac_c_werror_flag" ||
20291 test ! -s conftest.err
20292 } && test -s conftest.$ac_objext; then
20293 ac_header_compiler=yes
20294 else
20295 echo "$as_me: failed program was:" >&5
20296 sed 's/^/| /' conftest.$ac_ext >&5
20297
20298 ac_header_compiler=no
20299 fi
20300
20301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20302 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20303 echo "${ECHO_T}$ac_header_compiler" >&6; }
20304
20305 # Is the header present?
20306 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20307 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20308 cat >conftest.$ac_ext <<_ACEOF
20309 /* confdefs.h. */
20310 _ACEOF
20311 cat confdefs.h >>conftest.$ac_ext
20312 cat >>conftest.$ac_ext <<_ACEOF
20313 /* end confdefs.h. */
20314 #include <$ac_header>
20315 _ACEOF
20316 if { (ac_try="$ac_cpp conftest.$ac_ext"
20317 case "(($ac_try" in
20318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20319 *) ac_try_echo=$ac_try;;
20320 esac
20321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20323 ac_status=$?
20324 grep -v '^ *+' conftest.er1 >conftest.err
20325 rm -f conftest.er1
20326 cat conftest.err >&5
20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328 (exit $ac_status); } >/dev/null && {
20329 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20330 test ! -s conftest.err
20331 }; then
20332 ac_header_preproc=yes
20333 else
20334 echo "$as_me: failed program was:" >&5
20335 sed 's/^/| /' conftest.$ac_ext >&5
20336
20337 ac_header_preproc=no
20338 fi
20339
20340 rm -f conftest.err conftest.$ac_ext
20341 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20342 echo "${ECHO_T}$ac_header_preproc" >&6; }
20343
20344 # So? What about this header?
20345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20346 yes:no: )
20347 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20348 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20350 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20351 ac_header_preproc=yes
20352 ;;
20353 no:yes:* )
20354 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20355 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20356 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20357 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20358 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20359 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20360 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20361 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20363 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20364 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20365 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20366
20367 ;;
20368 esac
20369 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20372 echo $ECHO_N "(cached) $ECHO_C" >&6
20373 else
20374 eval "$as_ac_Header=\$ac_header_preproc"
20375 fi
20376 ac_res=`eval echo '${'$as_ac_Header'}'`
20377 { echo "$as_me:$LINENO: result: $ac_res" >&5
20378 echo "${ECHO_T}$ac_res" >&6; }
20379
20380 fi
20381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20382 cat >>confdefs.h <<_ACEOF
20383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20384 _ACEOF
20385
20386 else
20387
20388 for ac_header in kerberosIV/krb.h
20389 do
20390 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20391 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20392 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20395 echo $ECHO_N "(cached) $ECHO_C" >&6
20396 fi
20397 ac_res=`eval echo '${'$as_ac_Header'}'`
20398 { echo "$as_me:$LINENO: result: $ac_res" >&5
20399 echo "${ECHO_T}$ac_res" >&6; }
20400 else
20401 # Is the header compilable?
20402 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20403 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20404 cat >conftest.$ac_ext <<_ACEOF
20405 /* confdefs.h. */
20406 _ACEOF
20407 cat confdefs.h >>conftest.$ac_ext
20408 cat >>conftest.$ac_ext <<_ACEOF
20409 /* end confdefs.h. */
20410 $ac_includes_default
20411 #include <$ac_header>
20412 _ACEOF
20413 rm -f conftest.$ac_objext
20414 if { (ac_try="$ac_compile"
20415 case "(($ac_try" in
20416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20417 *) ac_try_echo=$ac_try;;
20418 esac
20419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20420 (eval "$ac_compile") 2>conftest.er1
20421 ac_status=$?
20422 grep -v '^ *+' conftest.er1 >conftest.err
20423 rm -f conftest.er1
20424 cat conftest.err >&5
20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); } && {
20427 test -z "$ac_c_werror_flag" ||
20428 test ! -s conftest.err
20429 } && test -s conftest.$ac_objext; then
20430 ac_header_compiler=yes
20431 else
20432 echo "$as_me: failed program was:" >&5
20433 sed 's/^/| /' conftest.$ac_ext >&5
20434
20435 ac_header_compiler=no
20436 fi
20437
20438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20439 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20440 echo "${ECHO_T}$ac_header_compiler" >&6; }
20441
20442 # Is the header present?
20443 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20444 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20445 cat >conftest.$ac_ext <<_ACEOF
20446 /* confdefs.h. */
20447 _ACEOF
20448 cat confdefs.h >>conftest.$ac_ext
20449 cat >>conftest.$ac_ext <<_ACEOF
20450 /* end confdefs.h. */
20451 #include <$ac_header>
20452 _ACEOF
20453 if { (ac_try="$ac_cpp conftest.$ac_ext"
20454 case "(($ac_try" in
20455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20456 *) ac_try_echo=$ac_try;;
20457 esac
20458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20460 ac_status=$?
20461 grep -v '^ *+' conftest.er1 >conftest.err
20462 rm -f conftest.er1
20463 cat conftest.err >&5
20464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465 (exit $ac_status); } >/dev/null && {
20466 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20467 test ! -s conftest.err
20468 }; then
20469 ac_header_preproc=yes
20470 else
20471 echo "$as_me: failed program was:" >&5
20472 sed 's/^/| /' conftest.$ac_ext >&5
20473
20474 ac_header_preproc=no
20475 fi
20476
20477 rm -f conftest.err conftest.$ac_ext
20478 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20479 echo "${ECHO_T}$ac_header_preproc" >&6; }
20480
20481 # So? What about this header?
20482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20483 yes:no: )
20484 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20485 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20487 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20488 ac_header_preproc=yes
20489 ;;
20490 no:yes:* )
20491 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20492 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20493 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20494 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20495 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20496 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20497 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20498 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20500 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20501 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20502 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20503
20504 ;;
20505 esac
20506 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20509 echo $ECHO_N "(cached) $ECHO_C" >&6
20510 else
20511 eval "$as_ac_Header=\$ac_header_preproc"
20512 fi
20513 ac_res=`eval echo '${'$as_ac_Header'}'`
20514 { echo "$as_me:$LINENO: result: $ac_res" >&5
20515 echo "${ECHO_T}$ac_res" >&6; }
20516
20517 fi
20518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20519 cat >>confdefs.h <<_ACEOF
20520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20521 _ACEOF
20522
20523 else
20524
20525 for ac_header in kerberos/krb.h
20526 do
20527 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20529 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20531 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20532 echo $ECHO_N "(cached) $ECHO_C" >&6
20533 fi
20534 ac_res=`eval echo '${'$as_ac_Header'}'`
20535 { echo "$as_me:$LINENO: result: $ac_res" >&5
20536 echo "${ECHO_T}$ac_res" >&6; }
20537 else
20538 # Is the header compilable?
20539 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20540 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20541 cat >conftest.$ac_ext <<_ACEOF
20542 /* confdefs.h. */
20543 _ACEOF
20544 cat confdefs.h >>conftest.$ac_ext
20545 cat >>conftest.$ac_ext <<_ACEOF
20546 /* end confdefs.h. */
20547 $ac_includes_default
20548 #include <$ac_header>
20549 _ACEOF
20550 rm -f conftest.$ac_objext
20551 if { (ac_try="$ac_compile"
20552 case "(($ac_try" in
20553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20554 *) ac_try_echo=$ac_try;;
20555 esac
20556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20557 (eval "$ac_compile") 2>conftest.er1
20558 ac_status=$?
20559 grep -v '^ *+' conftest.er1 >conftest.err
20560 rm -f conftest.er1
20561 cat conftest.err >&5
20562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563 (exit $ac_status); } && {
20564 test -z "$ac_c_werror_flag" ||
20565 test ! -s conftest.err
20566 } && test -s conftest.$ac_objext; then
20567 ac_header_compiler=yes
20568 else
20569 echo "$as_me: failed program was:" >&5
20570 sed 's/^/| /' conftest.$ac_ext >&5
20571
20572 ac_header_compiler=no
20573 fi
20574
20575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20576 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20577 echo "${ECHO_T}$ac_header_compiler" >&6; }
20578
20579 # Is the header present?
20580 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20581 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20582 cat >conftest.$ac_ext <<_ACEOF
20583 /* confdefs.h. */
20584 _ACEOF
20585 cat confdefs.h >>conftest.$ac_ext
20586 cat >>conftest.$ac_ext <<_ACEOF
20587 /* end confdefs.h. */
20588 #include <$ac_header>
20589 _ACEOF
20590 if { (ac_try="$ac_cpp conftest.$ac_ext"
20591 case "(($ac_try" in
20592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20593 *) ac_try_echo=$ac_try;;
20594 esac
20595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20597 ac_status=$?
20598 grep -v '^ *+' conftest.er1 >conftest.err
20599 rm -f conftest.er1
20600 cat conftest.err >&5
20601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602 (exit $ac_status); } >/dev/null && {
20603 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20604 test ! -s conftest.err
20605 }; then
20606 ac_header_preproc=yes
20607 else
20608 echo "$as_me: failed program was:" >&5
20609 sed 's/^/| /' conftest.$ac_ext >&5
20610
20611 ac_header_preproc=no
20612 fi
20613
20614 rm -f conftest.err conftest.$ac_ext
20615 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20616 echo "${ECHO_T}$ac_header_preproc" >&6; }
20617
20618 # So? What about this header?
20619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20620 yes:no: )
20621 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20622 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20624 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20625 ac_header_preproc=yes
20626 ;;
20627 no:yes:* )
20628 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20629 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20630 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20631 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20632 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20633 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20634 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20635 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20637 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20638 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20639 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20640
20641 ;;
20642 esac
20643 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20646 echo $ECHO_N "(cached) $ECHO_C" >&6
20647 else
20648 eval "$as_ac_Header=\$ac_header_preproc"
20649 fi
20650 ac_res=`eval echo '${'$as_ac_Header'}'`
20651 { echo "$as_me:$LINENO: result: $ac_res" >&5
20652 echo "${ECHO_T}$ac_res" >&6; }
20653
20654 fi
20655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20656 cat >>confdefs.h <<_ACEOF
20657 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20658 _ACEOF
20659
20660 fi
20661
20662 done
20663
20664 fi
20665
20666 done
20667
20668 fi
20669
20670 done
20671
20672 fi
20673
20674 for ac_header in com_err.h
20675 do
20676 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20678 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20681 echo $ECHO_N "(cached) $ECHO_C" >&6
20682 fi
20683 ac_res=`eval echo '${'$as_ac_Header'}'`
20684 { echo "$as_me:$LINENO: result: $ac_res" >&5
20685 echo "${ECHO_T}$ac_res" >&6; }
20686 else
20687 # Is the header compilable?
20688 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20689 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20690 cat >conftest.$ac_ext <<_ACEOF
20691 /* confdefs.h. */
20692 _ACEOF
20693 cat confdefs.h >>conftest.$ac_ext
20694 cat >>conftest.$ac_ext <<_ACEOF
20695 /* end confdefs.h. */
20696 $ac_includes_default
20697 #include <$ac_header>
20698 _ACEOF
20699 rm -f conftest.$ac_objext
20700 if { (ac_try="$ac_compile"
20701 case "(($ac_try" in
20702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20703 *) ac_try_echo=$ac_try;;
20704 esac
20705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20706 (eval "$ac_compile") 2>conftest.er1
20707 ac_status=$?
20708 grep -v '^ *+' conftest.er1 >conftest.err
20709 rm -f conftest.er1
20710 cat conftest.err >&5
20711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712 (exit $ac_status); } && {
20713 test -z "$ac_c_werror_flag" ||
20714 test ! -s conftest.err
20715 } && test -s conftest.$ac_objext; then
20716 ac_header_compiler=yes
20717 else
20718 echo "$as_me: failed program was:" >&5
20719 sed 's/^/| /' conftest.$ac_ext >&5
20720
20721 ac_header_compiler=no
20722 fi
20723
20724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20725 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20726 echo "${ECHO_T}$ac_header_compiler" >&6; }
20727
20728 # Is the header present?
20729 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20730 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20731 cat >conftest.$ac_ext <<_ACEOF
20732 /* confdefs.h. */
20733 _ACEOF
20734 cat confdefs.h >>conftest.$ac_ext
20735 cat >>conftest.$ac_ext <<_ACEOF
20736 /* end confdefs.h. */
20737 #include <$ac_header>
20738 _ACEOF
20739 if { (ac_try="$ac_cpp conftest.$ac_ext"
20740 case "(($ac_try" in
20741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20742 *) ac_try_echo=$ac_try;;
20743 esac
20744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20745 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20746 ac_status=$?
20747 grep -v '^ *+' conftest.er1 >conftest.err
20748 rm -f conftest.er1
20749 cat conftest.err >&5
20750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751 (exit $ac_status); } >/dev/null && {
20752 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20753 test ! -s conftest.err
20754 }; then
20755 ac_header_preproc=yes
20756 else
20757 echo "$as_me: failed program was:" >&5
20758 sed 's/^/| /' conftest.$ac_ext >&5
20759
20760 ac_header_preproc=no
20761 fi
20762
20763 rm -f conftest.err conftest.$ac_ext
20764 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20765 echo "${ECHO_T}$ac_header_preproc" >&6; }
20766
20767 # So? What about this header?
20768 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20769 yes:no: )
20770 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20771 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20773 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20774 ac_header_preproc=yes
20775 ;;
20776 no:yes:* )
20777 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20778 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20779 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20780 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20781 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20782 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20783 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20784 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20785 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20786 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20787 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20788 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20789
20790 ;;
20791 esac
20792 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20795 echo $ECHO_N "(cached) $ECHO_C" >&6
20796 else
20797 eval "$as_ac_Header=\$ac_header_preproc"
20798 fi
20799 ac_res=`eval echo '${'$as_ac_Header'}'`
20800 { echo "$as_me:$LINENO: result: $ac_res" >&5
20801 echo "${ECHO_T}$ac_res" >&6; }
20802
20803 fi
20804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20805 cat >>confdefs.h <<_ACEOF
20806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20807 _ACEOF
20808
20809 fi
20810
20811 done
20812
20813 fi
20814
20815 # Solaris requires -lintl if you want strerror (which calls dgettext)
20816 # to return localized messages.
20817
20818 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20819 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
20820 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20821 echo $ECHO_N "(cached) $ECHO_C" >&6
20822 else
20823 ac_check_lib_save_LIBS=$LIBS
20824 LIBS="-lintl $LIBS"
20825 cat >conftest.$ac_ext <<_ACEOF
20826 /* confdefs.h. */
20827 _ACEOF
20828 cat confdefs.h >>conftest.$ac_ext
20829 cat >>conftest.$ac_ext <<_ACEOF
20830 /* end confdefs.h. */
20831
20832 /* Override any GCC internal prototype to avoid an error.
20833 Use char because int might match the return type of a GCC
20834 builtin and then its argument prototype would still apply. */
20835 #ifdef __cplusplus
20836 extern "C"
20837 #endif
20838 char dgettext ();
20839 int
20840 main ()
20841 {
20842 return dgettext ();
20843 ;
20844 return 0;
20845 }
20846 _ACEOF
20847 rm -f conftest.$ac_objext conftest$ac_exeext
20848 if { (ac_try="$ac_link"
20849 case "(($ac_try" in
20850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20851 *) ac_try_echo=$ac_try;;
20852 esac
20853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20854 (eval "$ac_link") 2>conftest.er1
20855 ac_status=$?
20856 grep -v '^ *+' conftest.er1 >conftest.err
20857 rm -f conftest.er1
20858 cat conftest.err >&5
20859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860 (exit $ac_status); } && {
20861 test -z "$ac_c_werror_flag" ||
20862 test ! -s conftest.err
20863 } && test -s conftest$ac_exeext &&
20864 $as_test_x conftest$ac_exeext; then
20865 ac_cv_lib_intl_dgettext=yes
20866 else
20867 echo "$as_me: failed program was:" >&5
20868 sed 's/^/| /' conftest.$ac_ext >&5
20869
20870 ac_cv_lib_intl_dgettext=no
20871 fi
20872
20873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20874 conftest$ac_exeext conftest.$ac_ext
20875 LIBS=$ac_check_lib_save_LIBS
20876 fi
20877 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20878 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
20879 if test $ac_cv_lib_intl_dgettext = yes; then
20880 cat >>confdefs.h <<_ACEOF
20881 #define HAVE_LIBINTL 1
20882 _ACEOF
20883
20884 LIBS="-lintl $LIBS"
20885
20886 fi
20887
20888
20889 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
20890 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
20891 if test "${emacs_cv_localtime_cache+set}" = set; then
20892 echo $ECHO_N "(cached) $ECHO_C" >&6
20893 else
20894 if test x$ac_cv_func_tzset = xyes; then
20895 if test "$cross_compiling" = yes; then
20896 # If we have tzset, assume the worst when cross-compiling.
20897 emacs_cv_localtime_cache=yes
20898 else
20899 cat >conftest.$ac_ext <<_ACEOF
20900 /* confdefs.h. */
20901 _ACEOF
20902 cat confdefs.h >>conftest.$ac_ext
20903 cat >>conftest.$ac_ext <<_ACEOF
20904 /* end confdefs.h. */
20905 #include <time.h>
20906 extern char **environ;
20907 unset_TZ ()
20908 {
20909 char **from, **to;
20910 for (to = from = environ; (*to = *from); from++)
20911 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20912 to++;
20913 }
20914 char TZ_GMT0[] = "TZ=GMT0";
20915 char TZ_PST8[] = "TZ=PST8";
20916 main()
20917 {
20918 time_t now = time ((time_t *) 0);
20919 int hour_GMT0, hour_unset;
20920 if (putenv (TZ_GMT0) != 0)
20921 exit (1);
20922 hour_GMT0 = localtime (&now)->tm_hour;
20923 unset_TZ ();
20924 hour_unset = localtime (&now)->tm_hour;
20925 if (putenv (TZ_PST8) != 0)
20926 exit (1);
20927 if (localtime (&now)->tm_hour == hour_GMT0)
20928 exit (1);
20929 unset_TZ ();
20930 if (localtime (&now)->tm_hour != hour_unset)
20931 exit (1);
20932 exit (0);
20933 }
20934 _ACEOF
20935 rm -f conftest$ac_exeext
20936 if { (ac_try="$ac_link"
20937 case "(($ac_try" in
20938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20939 *) ac_try_echo=$ac_try;;
20940 esac
20941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20942 (eval "$ac_link") 2>&5
20943 ac_status=$?
20944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20946 { (case "(($ac_try" in
20947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20948 *) ac_try_echo=$ac_try;;
20949 esac
20950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20951 (eval "$ac_try") 2>&5
20952 ac_status=$?
20953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20954 (exit $ac_status); }; }; then
20955 emacs_cv_localtime_cache=no
20956 else
20957 echo "$as_me: program exited with status $ac_status" >&5
20958 echo "$as_me: failed program was:" >&5
20959 sed 's/^/| /' conftest.$ac_ext >&5
20960
20961 ( exit $ac_status )
20962 emacs_cv_localtime_cache=yes
20963 fi
20964 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20965 fi
20966
20967
20968 else
20969 # If we lack tzset, report that localtime does not cache TZ,
20970 # since we can't invalidate the cache if we don't have tzset.
20971 emacs_cv_localtime_cache=no
20972 fi
20973 fi
20974 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
20975 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
20976 if test $emacs_cv_localtime_cache = yes; then
20977
20978 cat >>confdefs.h <<\_ACEOF
20979 #define LOCALTIME_CACHE 1
20980 _ACEOF
20981
20982 fi
20983
20984 if test "x$HAVE_TIMEVAL" = xyes; then
20985
20986 for ac_func in gettimeofday
20987 do
20988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20989 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20991 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20992 echo $ECHO_N "(cached) $ECHO_C" >&6
20993 else
20994 cat >conftest.$ac_ext <<_ACEOF
20995 /* confdefs.h. */
20996 _ACEOF
20997 cat confdefs.h >>conftest.$ac_ext
20998 cat >>conftest.$ac_ext <<_ACEOF
20999 /* end confdefs.h. */
21000 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21002 #define $ac_func innocuous_$ac_func
21003
21004 /* System header to define __stub macros and hopefully few prototypes,
21005 which can conflict with char $ac_func (); below.
21006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21007 <limits.h> exists even on freestanding compilers. */
21008
21009 #ifdef __STDC__
21010 # include <limits.h>
21011 #else
21012 # include <assert.h>
21013 #endif
21014
21015 #undef $ac_func
21016
21017 /* Override any GCC internal prototype to avoid an error.
21018 Use char because int might match the return type of a GCC
21019 builtin and then its argument prototype would still apply. */
21020 #ifdef __cplusplus
21021 extern "C"
21022 #endif
21023 char $ac_func ();
21024 /* The GNU C library defines this for functions which it implements
21025 to always fail with ENOSYS. Some functions are actually named
21026 something starting with __ and the normal name is an alias. */
21027 #if defined __stub_$ac_func || defined __stub___$ac_func
21028 choke me
21029 #endif
21030
21031 int
21032 main ()
21033 {
21034 return $ac_func ();
21035 ;
21036 return 0;
21037 }
21038 _ACEOF
21039 rm -f conftest.$ac_objext conftest$ac_exeext
21040 if { (ac_try="$ac_link"
21041 case "(($ac_try" in
21042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21043 *) ac_try_echo=$ac_try;;
21044 esac
21045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21046 (eval "$ac_link") 2>conftest.er1
21047 ac_status=$?
21048 grep -v '^ *+' conftest.er1 >conftest.err
21049 rm -f conftest.er1
21050 cat conftest.err >&5
21051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052 (exit $ac_status); } && {
21053 test -z "$ac_c_werror_flag" ||
21054 test ! -s conftest.err
21055 } && test -s conftest$ac_exeext &&
21056 $as_test_x conftest$ac_exeext; then
21057 eval "$as_ac_var=yes"
21058 else
21059 echo "$as_me: failed program was:" >&5
21060 sed 's/^/| /' conftest.$ac_ext >&5
21061
21062 eval "$as_ac_var=no"
21063 fi
21064
21065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21066 conftest$ac_exeext conftest.$ac_ext
21067 fi
21068 ac_res=`eval echo '${'$as_ac_var'}'`
21069 { echo "$as_me:$LINENO: result: $ac_res" >&5
21070 echo "${ECHO_T}$ac_res" >&6; }
21071 if test `eval echo '${'$as_ac_var'}'` = yes; then
21072 cat >>confdefs.h <<_ACEOF
21073 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21074 _ACEOF
21075
21076 fi
21077 done
21078
21079 if test $ac_cv_func_gettimeofday = yes; then
21080 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
21081 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
21082 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21083 echo $ECHO_N "(cached) $ECHO_C" >&6
21084 else
21085 cat >conftest.$ac_ext <<_ACEOF
21086 /* confdefs.h. */
21087 _ACEOF
21088 cat confdefs.h >>conftest.$ac_ext
21089 cat >>conftest.$ac_ext <<_ACEOF
21090 /* end confdefs.h. */
21091
21092 #ifdef TIME_WITH_SYS_TIME
21093 #include <sys/time.h>
21094 #include <time.h>
21095 #else
21096 #ifdef HAVE_SYS_TIME_H
21097 #include <sys/time.h>
21098 #else
21099 #include <time.h>
21100 #endif
21101 #endif
21102 int
21103 main ()
21104 {
21105 struct timeval time;
21106 gettimeofday (&time, 0);
21107 ;
21108 return 0;
21109 }
21110 _ACEOF
21111 rm -f conftest.$ac_objext
21112 if { (ac_try="$ac_compile"
21113 case "(($ac_try" in
21114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21115 *) ac_try_echo=$ac_try;;
21116 esac
21117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21118 (eval "$ac_compile") 2>conftest.er1
21119 ac_status=$?
21120 grep -v '^ *+' conftest.er1 >conftest.err
21121 rm -f conftest.er1
21122 cat conftest.err >&5
21123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124 (exit $ac_status); } && {
21125 test -z "$ac_c_werror_flag" ||
21126 test ! -s conftest.err
21127 } && test -s conftest.$ac_objext; then
21128 emacs_cv_gettimeofday_two_arguments=yes
21129 else
21130 echo "$as_me: failed program was:" >&5
21131 sed 's/^/| /' conftest.$ac_ext >&5
21132
21133 emacs_cv_gettimeofday_two_arguments=no
21134 fi
21135
21136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21137 fi
21138 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21139 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21140 if test $emacs_cv_gettimeofday_two_arguments = no; then
21141
21142 cat >>confdefs.h <<\_ACEOF
21143 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21144 _ACEOF
21145
21146 fi
21147 fi
21148 fi
21149
21150 ok_so_far=yes
21151 { echo "$as_me:$LINENO: checking for socket" >&5
21152 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
21153 if test "${ac_cv_func_socket+set}" = set; then
21154 echo $ECHO_N "(cached) $ECHO_C" >&6
21155 else
21156 cat >conftest.$ac_ext <<_ACEOF
21157 /* confdefs.h. */
21158 _ACEOF
21159 cat confdefs.h >>conftest.$ac_ext
21160 cat >>conftest.$ac_ext <<_ACEOF
21161 /* end confdefs.h. */
21162 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21164 #define socket innocuous_socket
21165
21166 /* System header to define __stub macros and hopefully few prototypes,
21167 which can conflict with char socket (); below.
21168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21169 <limits.h> exists even on freestanding compilers. */
21170
21171 #ifdef __STDC__
21172 # include <limits.h>
21173 #else
21174 # include <assert.h>
21175 #endif
21176
21177 #undef socket
21178
21179 /* Override any GCC internal prototype to avoid an error.
21180 Use char because int might match the return type of a GCC
21181 builtin and then its argument prototype would still apply. */
21182 #ifdef __cplusplus
21183 extern "C"
21184 #endif
21185 char socket ();
21186 /* The GNU C library defines this for functions which it implements
21187 to always fail with ENOSYS. Some functions are actually named
21188 something starting with __ and the normal name is an alias. */
21189 #if defined __stub_socket || defined __stub___socket
21190 choke me
21191 #endif
21192
21193 int
21194 main ()
21195 {
21196 return socket ();
21197 ;
21198 return 0;
21199 }
21200 _ACEOF
21201 rm -f conftest.$ac_objext conftest$ac_exeext
21202 if { (ac_try="$ac_link"
21203 case "(($ac_try" in
21204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21205 *) ac_try_echo=$ac_try;;
21206 esac
21207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21208 (eval "$ac_link") 2>conftest.er1
21209 ac_status=$?
21210 grep -v '^ *+' conftest.er1 >conftest.err
21211 rm -f conftest.er1
21212 cat conftest.err >&5
21213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214 (exit $ac_status); } && {
21215 test -z "$ac_c_werror_flag" ||
21216 test ! -s conftest.err
21217 } && test -s conftest$ac_exeext &&
21218 $as_test_x conftest$ac_exeext; then
21219 ac_cv_func_socket=yes
21220 else
21221 echo "$as_me: failed program was:" >&5
21222 sed 's/^/| /' conftest.$ac_ext >&5
21223
21224 ac_cv_func_socket=no
21225 fi
21226
21227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21228 conftest$ac_exeext conftest.$ac_ext
21229 fi
21230 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21231 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21232 if test $ac_cv_func_socket = yes; then
21233 :
21234 else
21235 ok_so_far=no
21236 fi
21237
21238 if test $ok_so_far = yes; then
21239 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21240 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21241 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21242 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21243 echo $ECHO_N "(cached) $ECHO_C" >&6
21244 fi
21245 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21246 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21247 else
21248 # Is the header compilable?
21249 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21250 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
21251 cat >conftest.$ac_ext <<_ACEOF
21252 /* confdefs.h. */
21253 _ACEOF
21254 cat confdefs.h >>conftest.$ac_ext
21255 cat >>conftest.$ac_ext <<_ACEOF
21256 /* end confdefs.h. */
21257 $ac_includes_default
21258 #include <netinet/in.h>
21259 _ACEOF
21260 rm -f conftest.$ac_objext
21261 if { (ac_try="$ac_compile"
21262 case "(($ac_try" in
21263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21264 *) ac_try_echo=$ac_try;;
21265 esac
21266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21267 (eval "$ac_compile") 2>conftest.er1
21268 ac_status=$?
21269 grep -v '^ *+' conftest.er1 >conftest.err
21270 rm -f conftest.er1
21271 cat conftest.err >&5
21272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21273 (exit $ac_status); } && {
21274 test -z "$ac_c_werror_flag" ||
21275 test ! -s conftest.err
21276 } && test -s conftest.$ac_objext; then
21277 ac_header_compiler=yes
21278 else
21279 echo "$as_me: failed program was:" >&5
21280 sed 's/^/| /' conftest.$ac_ext >&5
21281
21282 ac_header_compiler=no
21283 fi
21284
21285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21286 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21287 echo "${ECHO_T}$ac_header_compiler" >&6; }
21288
21289 # Is the header present?
21290 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21291 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
21292 cat >conftest.$ac_ext <<_ACEOF
21293 /* confdefs.h. */
21294 _ACEOF
21295 cat confdefs.h >>conftest.$ac_ext
21296 cat >>conftest.$ac_ext <<_ACEOF
21297 /* end confdefs.h. */
21298 #include <netinet/in.h>
21299 _ACEOF
21300 if { (ac_try="$ac_cpp conftest.$ac_ext"
21301 case "(($ac_try" in
21302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21303 *) ac_try_echo=$ac_try;;
21304 esac
21305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21306 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21307 ac_status=$?
21308 grep -v '^ *+' conftest.er1 >conftest.err
21309 rm -f conftest.er1
21310 cat conftest.err >&5
21311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312 (exit $ac_status); } >/dev/null && {
21313 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21314 test ! -s conftest.err
21315 }; then
21316 ac_header_preproc=yes
21317 else
21318 echo "$as_me: failed program was:" >&5
21319 sed 's/^/| /' conftest.$ac_ext >&5
21320
21321 ac_header_preproc=no
21322 fi
21323
21324 rm -f conftest.err conftest.$ac_ext
21325 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21326 echo "${ECHO_T}$ac_header_preproc" >&6; }
21327
21328 # So? What about this header?
21329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21330 yes:no: )
21331 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21332 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21333 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21334 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21335 ac_header_preproc=yes
21336 ;;
21337 no:yes:* )
21338 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21339 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21340 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21341 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21342 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21343 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21344 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21345 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21346 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21347 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21348 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21349 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21350
21351 ;;
21352 esac
21353 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21354 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21355 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21356 echo $ECHO_N "(cached) $ECHO_C" >&6
21357 else
21358 ac_cv_header_netinet_in_h=$ac_header_preproc
21359 fi
21360 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21361 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21362
21363 fi
21364 if test $ac_cv_header_netinet_in_h = yes; then
21365 :
21366 else
21367 ok_so_far=no
21368 fi
21369
21370
21371 fi
21372 if test $ok_so_far = yes; then
21373 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21374 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21375 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
21376 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21377 echo $ECHO_N "(cached) $ECHO_C" >&6
21378 fi
21379 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21380 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21381 else
21382 # Is the header compilable?
21383 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21384 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
21385 cat >conftest.$ac_ext <<_ACEOF
21386 /* confdefs.h. */
21387 _ACEOF
21388 cat confdefs.h >>conftest.$ac_ext
21389 cat >>conftest.$ac_ext <<_ACEOF
21390 /* end confdefs.h. */
21391 $ac_includes_default
21392 #include <arpa/inet.h>
21393 _ACEOF
21394 rm -f conftest.$ac_objext
21395 if { (ac_try="$ac_compile"
21396 case "(($ac_try" in
21397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21398 *) ac_try_echo=$ac_try;;
21399 esac
21400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21401 (eval "$ac_compile") 2>conftest.er1
21402 ac_status=$?
21403 grep -v '^ *+' conftest.er1 >conftest.err
21404 rm -f conftest.er1
21405 cat conftest.err >&5
21406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21407 (exit $ac_status); } && {
21408 test -z "$ac_c_werror_flag" ||
21409 test ! -s conftest.err
21410 } && test -s conftest.$ac_objext; then
21411 ac_header_compiler=yes
21412 else
21413 echo "$as_me: failed program was:" >&5
21414 sed 's/^/| /' conftest.$ac_ext >&5
21415
21416 ac_header_compiler=no
21417 fi
21418
21419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21420 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21421 echo "${ECHO_T}$ac_header_compiler" >&6; }
21422
21423 # Is the header present?
21424 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21425 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
21426 cat >conftest.$ac_ext <<_ACEOF
21427 /* confdefs.h. */
21428 _ACEOF
21429 cat confdefs.h >>conftest.$ac_ext
21430 cat >>conftest.$ac_ext <<_ACEOF
21431 /* end confdefs.h. */
21432 #include <arpa/inet.h>
21433 _ACEOF
21434 if { (ac_try="$ac_cpp conftest.$ac_ext"
21435 case "(($ac_try" in
21436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21437 *) ac_try_echo=$ac_try;;
21438 esac
21439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21440 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21441 ac_status=$?
21442 grep -v '^ *+' conftest.er1 >conftest.err
21443 rm -f conftest.er1
21444 cat conftest.err >&5
21445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446 (exit $ac_status); } >/dev/null && {
21447 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21448 test ! -s conftest.err
21449 }; then
21450 ac_header_preproc=yes
21451 else
21452 echo "$as_me: failed program was:" >&5
21453 sed 's/^/| /' conftest.$ac_ext >&5
21454
21455 ac_header_preproc=no
21456 fi
21457
21458 rm -f conftest.err conftest.$ac_ext
21459 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21460 echo "${ECHO_T}$ac_header_preproc" >&6; }
21461
21462 # So? What about this header?
21463 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21464 yes:no: )
21465 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21466 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21467 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21468 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21469 ac_header_preproc=yes
21470 ;;
21471 no:yes:* )
21472 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21473 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21474 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21475 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21476 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21477 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21478 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21479 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21480 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21481 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21482 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21483 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21484
21485 ;;
21486 esac
21487 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21488 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
21489 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21490 echo $ECHO_N "(cached) $ECHO_C" >&6
21491 else
21492 ac_cv_header_arpa_inet_h=$ac_header_preproc
21493 fi
21494 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21495 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21496
21497 fi
21498 if test $ac_cv_header_arpa_inet_h = yes; then
21499 :
21500 else
21501 ok_so_far=no
21502 fi
21503
21504
21505 fi
21506 if test $ok_so_far = yes; then
21507
21508 cat >>confdefs.h <<\_ACEOF
21509 #define HAVE_INET_SOCKETS 1
21510 _ACEOF
21511
21512 fi
21513
21514
21515 for ac_header in sys/ioctl.h
21516 do
21517 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21519 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21522 echo $ECHO_N "(cached) $ECHO_C" >&6
21523 fi
21524 ac_res=`eval echo '${'$as_ac_Header'}'`
21525 { echo "$as_me:$LINENO: result: $ac_res" >&5
21526 echo "${ECHO_T}$ac_res" >&6; }
21527 else
21528 # Is the header compilable?
21529 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21530 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21531 cat >conftest.$ac_ext <<_ACEOF
21532 /* confdefs.h. */
21533 _ACEOF
21534 cat confdefs.h >>conftest.$ac_ext
21535 cat >>conftest.$ac_ext <<_ACEOF
21536 /* end confdefs.h. */
21537 $ac_includes_default
21538 #include <$ac_header>
21539 _ACEOF
21540 rm -f conftest.$ac_objext
21541 if { (ac_try="$ac_compile"
21542 case "(($ac_try" in
21543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21544 *) ac_try_echo=$ac_try;;
21545 esac
21546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21547 (eval "$ac_compile") 2>conftest.er1
21548 ac_status=$?
21549 grep -v '^ *+' conftest.er1 >conftest.err
21550 rm -f conftest.er1
21551 cat conftest.err >&5
21552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21553 (exit $ac_status); } && {
21554 test -z "$ac_c_werror_flag" ||
21555 test ! -s conftest.err
21556 } && test -s conftest.$ac_objext; then
21557 ac_header_compiler=yes
21558 else
21559 echo "$as_me: failed program was:" >&5
21560 sed 's/^/| /' conftest.$ac_ext >&5
21561
21562 ac_header_compiler=no
21563 fi
21564
21565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21566 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21567 echo "${ECHO_T}$ac_header_compiler" >&6; }
21568
21569 # Is the header present?
21570 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21571 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21572 cat >conftest.$ac_ext <<_ACEOF
21573 /* confdefs.h. */
21574 _ACEOF
21575 cat confdefs.h >>conftest.$ac_ext
21576 cat >>conftest.$ac_ext <<_ACEOF
21577 /* end confdefs.h. */
21578 #include <$ac_header>
21579 _ACEOF
21580 if { (ac_try="$ac_cpp conftest.$ac_ext"
21581 case "(($ac_try" in
21582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21583 *) ac_try_echo=$ac_try;;
21584 esac
21585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21587 ac_status=$?
21588 grep -v '^ *+' conftest.er1 >conftest.err
21589 rm -f conftest.er1
21590 cat conftest.err >&5
21591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21592 (exit $ac_status); } >/dev/null && {
21593 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21594 test ! -s conftest.err
21595 }; then
21596 ac_header_preproc=yes
21597 else
21598 echo "$as_me: failed program was:" >&5
21599 sed 's/^/| /' conftest.$ac_ext >&5
21600
21601 ac_header_preproc=no
21602 fi
21603
21604 rm -f conftest.err conftest.$ac_ext
21605 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21606 echo "${ECHO_T}$ac_header_preproc" >&6; }
21607
21608 # So? What about this header?
21609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21610 yes:no: )
21611 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21612 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21614 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21615 ac_header_preproc=yes
21616 ;;
21617 no:yes:* )
21618 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21619 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21620 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21621 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21622 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21623 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21624 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21625 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21627 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21628 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21629 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21630
21631 ;;
21632 esac
21633 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21636 echo $ECHO_N "(cached) $ECHO_C" >&6
21637 else
21638 eval "$as_ac_Header=\$ac_header_preproc"
21639 fi
21640 ac_res=`eval echo '${'$as_ac_Header'}'`
21641 { echo "$as_me:$LINENO: result: $ac_res" >&5
21642 echo "${ECHO_T}$ac_res" >&6; }
21643
21644 fi
21645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21646 cat >>confdefs.h <<_ACEOF
21647 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21648 _ACEOF
21649
21650 fi
21651
21652 done
21653
21654
21655 if test -f /usr/lpp/X11/bin/smt.exp; then
21656
21657 cat >>confdefs.h <<\_ACEOF
21658 #define HAVE_AIX_SMT_EXP 1
21659 _ACEOF
21660
21661 fi
21662
21663 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21664 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
21665 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
21666 { echo "$as_me:$LINENO: result: yes" >&5
21667 echo "${ECHO_T}yes" >&6; }
21668
21669 cat >>confdefs.h <<\_ACEOF
21670 #define HAVE_DEV_PTMX 1
21671 _ACEOF
21672
21673 else
21674 { echo "$as_me:$LINENO: result: no" >&5
21675 echo "${ECHO_T}no" >&6; }
21676 fi
21677
21678 { echo "$as_me:$LINENO: checking for pid_t" >&5
21679 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
21680 if test "${ac_cv_type_pid_t+set}" = set; then
21681 echo $ECHO_N "(cached) $ECHO_C" >&6
21682 else
21683 cat >conftest.$ac_ext <<_ACEOF
21684 /* confdefs.h. */
21685 _ACEOF
21686 cat confdefs.h >>conftest.$ac_ext
21687 cat >>conftest.$ac_ext <<_ACEOF
21688 /* end confdefs.h. */
21689 $ac_includes_default
21690 typedef pid_t ac__type_new_;
21691 int
21692 main ()
21693 {
21694 if ((ac__type_new_ *) 0)
21695 return 0;
21696 if (sizeof (ac__type_new_))
21697 return 0;
21698 ;
21699 return 0;
21700 }
21701 _ACEOF
21702 rm -f conftest.$ac_objext
21703 if { (ac_try="$ac_compile"
21704 case "(($ac_try" in
21705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21706 *) ac_try_echo=$ac_try;;
21707 esac
21708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21709 (eval "$ac_compile") 2>conftest.er1
21710 ac_status=$?
21711 grep -v '^ *+' conftest.er1 >conftest.err
21712 rm -f conftest.er1
21713 cat conftest.err >&5
21714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715 (exit $ac_status); } && {
21716 test -z "$ac_c_werror_flag" ||
21717 test ! -s conftest.err
21718 } && test -s conftest.$ac_objext; then
21719 ac_cv_type_pid_t=yes
21720 else
21721 echo "$as_me: failed program was:" >&5
21722 sed 's/^/| /' conftest.$ac_ext >&5
21723
21724 ac_cv_type_pid_t=no
21725 fi
21726
21727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21728 fi
21729 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21730 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
21731 if test $ac_cv_type_pid_t = yes; then
21732 :
21733 else
21734
21735 cat >>confdefs.h <<_ACEOF
21736 #define pid_t int
21737 _ACEOF
21738
21739 fi
21740
21741
21742 for ac_header in vfork.h
21743 do
21744 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21746 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21749 echo $ECHO_N "(cached) $ECHO_C" >&6
21750 fi
21751 ac_res=`eval echo '${'$as_ac_Header'}'`
21752 { echo "$as_me:$LINENO: result: $ac_res" >&5
21753 echo "${ECHO_T}$ac_res" >&6; }
21754 else
21755 # Is the header compilable?
21756 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21757 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21758 cat >conftest.$ac_ext <<_ACEOF
21759 /* confdefs.h. */
21760 _ACEOF
21761 cat confdefs.h >>conftest.$ac_ext
21762 cat >>conftest.$ac_ext <<_ACEOF
21763 /* end confdefs.h. */
21764 $ac_includes_default
21765 #include <$ac_header>
21766 _ACEOF
21767 rm -f conftest.$ac_objext
21768 if { (ac_try="$ac_compile"
21769 case "(($ac_try" in
21770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21771 *) ac_try_echo=$ac_try;;
21772 esac
21773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21774 (eval "$ac_compile") 2>conftest.er1
21775 ac_status=$?
21776 grep -v '^ *+' conftest.er1 >conftest.err
21777 rm -f conftest.er1
21778 cat conftest.err >&5
21779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21780 (exit $ac_status); } && {
21781 test -z "$ac_c_werror_flag" ||
21782 test ! -s conftest.err
21783 } && test -s conftest.$ac_objext; then
21784 ac_header_compiler=yes
21785 else
21786 echo "$as_me: failed program was:" >&5
21787 sed 's/^/| /' conftest.$ac_ext >&5
21788
21789 ac_header_compiler=no
21790 fi
21791
21792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21793 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21794 echo "${ECHO_T}$ac_header_compiler" >&6; }
21795
21796 # Is the header present?
21797 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21798 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21799 cat >conftest.$ac_ext <<_ACEOF
21800 /* confdefs.h. */
21801 _ACEOF
21802 cat confdefs.h >>conftest.$ac_ext
21803 cat >>conftest.$ac_ext <<_ACEOF
21804 /* end confdefs.h. */
21805 #include <$ac_header>
21806 _ACEOF
21807 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
21820 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21821 test ! -s conftest.err
21822 }; then
21823 ac_header_preproc=yes
21824 else
21825 echo "$as_me: failed program was:" >&5
21826 sed 's/^/| /' conftest.$ac_ext >&5
21827
21828 ac_header_preproc=no
21829 fi
21830
21831 rm -f conftest.err conftest.$ac_ext
21832 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21833 echo "${ECHO_T}$ac_header_preproc" >&6; }
21834
21835 # So? What about this header?
21836 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21837 yes:no: )
21838 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21839 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21841 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21842 ac_header_preproc=yes
21843 ;;
21844 no:yes:* )
21845 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21846 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21847 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21848 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21849 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21850 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21851 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21852 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21854 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21855 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21856 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21857
21858 ;;
21859 esac
21860 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21863 echo $ECHO_N "(cached) $ECHO_C" >&6
21864 else
21865 eval "$as_ac_Header=\$ac_header_preproc"
21866 fi
21867 ac_res=`eval echo '${'$as_ac_Header'}'`
21868 { echo "$as_me:$LINENO: result: $ac_res" >&5
21869 echo "${ECHO_T}$ac_res" >&6; }
21870
21871 fi
21872 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21873 cat >>confdefs.h <<_ACEOF
21874 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21875 _ACEOF
21876
21877 fi
21878
21879 done
21880
21881
21882
21883 for ac_func in fork vfork
21884 do
21885 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21886 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21887 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21888 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21889 echo $ECHO_N "(cached) $ECHO_C" >&6
21890 else
21891 cat >conftest.$ac_ext <<_ACEOF
21892 /* confdefs.h. */
21893 _ACEOF
21894 cat confdefs.h >>conftest.$ac_ext
21895 cat >>conftest.$ac_ext <<_ACEOF
21896 /* end confdefs.h. */
21897 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21899 #define $ac_func innocuous_$ac_func
21900
21901 /* System header to define __stub macros and hopefully few prototypes,
21902 which can conflict with char $ac_func (); below.
21903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21904 <limits.h> exists even on freestanding compilers. */
21905
21906 #ifdef __STDC__
21907 # include <limits.h>
21908 #else
21909 # include <assert.h>
21910 #endif
21911
21912 #undef $ac_func
21913
21914 /* Override any GCC internal prototype to avoid an error.
21915 Use char because int might match the return type of a GCC
21916 builtin and then its argument prototype would still apply. */
21917 #ifdef __cplusplus
21918 extern "C"
21919 #endif
21920 char $ac_func ();
21921 /* The GNU C library defines this for functions which it implements
21922 to always fail with ENOSYS. Some functions are actually named
21923 something starting with __ and the normal name is an alias. */
21924 #if defined __stub_$ac_func || defined __stub___$ac_func
21925 choke me
21926 #endif
21927
21928 int
21929 main ()
21930 {
21931 return $ac_func ();
21932 ;
21933 return 0;
21934 }
21935 _ACEOF
21936 rm -f conftest.$ac_objext conftest$ac_exeext
21937 if { (ac_try="$ac_link"
21938 case "(($ac_try" in
21939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21940 *) ac_try_echo=$ac_try;;
21941 esac
21942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21943 (eval "$ac_link") 2>conftest.er1
21944 ac_status=$?
21945 grep -v '^ *+' conftest.er1 >conftest.err
21946 rm -f conftest.er1
21947 cat conftest.err >&5
21948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21949 (exit $ac_status); } && {
21950 test -z "$ac_c_werror_flag" ||
21951 test ! -s conftest.err
21952 } && test -s conftest$ac_exeext &&
21953 $as_test_x conftest$ac_exeext; then
21954 eval "$as_ac_var=yes"
21955 else
21956 echo "$as_me: failed program was:" >&5
21957 sed 's/^/| /' conftest.$ac_ext >&5
21958
21959 eval "$as_ac_var=no"
21960 fi
21961
21962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21963 conftest$ac_exeext conftest.$ac_ext
21964 fi
21965 ac_res=`eval echo '${'$as_ac_var'}'`
21966 { echo "$as_me:$LINENO: result: $ac_res" >&5
21967 echo "${ECHO_T}$ac_res" >&6; }
21968 if test `eval echo '${'$as_ac_var'}'` = yes; then
21969 cat >>confdefs.h <<_ACEOF
21970 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21971 _ACEOF
21972
21973 fi
21974 done
21975
21976 if test "x$ac_cv_func_fork" = xyes; then
21977 { echo "$as_me:$LINENO: checking for working fork" >&5
21978 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
21979 if test "${ac_cv_func_fork_works+set}" = set; then
21980 echo $ECHO_N "(cached) $ECHO_C" >&6
21981 else
21982 if test "$cross_compiling" = yes; then
21983 ac_cv_func_fork_works=cross
21984 else
21985 cat >conftest.$ac_ext <<_ACEOF
21986 /* confdefs.h. */
21987 _ACEOF
21988 cat confdefs.h >>conftest.$ac_ext
21989 cat >>conftest.$ac_ext <<_ACEOF
21990 /* end confdefs.h. */
21991 $ac_includes_default
21992 int
21993 main ()
21994 {
21995
21996 /* By Ruediger Kuhlmann. */
21997 return fork () < 0;
21998
21999 ;
22000 return 0;
22001 }
22002 _ACEOF
22003 rm -f conftest$ac_exeext
22004 if { (ac_try="$ac_link"
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_link") 2>&5
22011 ac_status=$?
22012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22014 { (case "(($ac_try" in
22015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22016 *) ac_try_echo=$ac_try;;
22017 esac
22018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22019 (eval "$ac_try") 2>&5
22020 ac_status=$?
22021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022 (exit $ac_status); }; }; then
22023 ac_cv_func_fork_works=yes
22024 else
22025 echo "$as_me: program exited with status $ac_status" >&5
22026 echo "$as_me: failed program was:" >&5
22027 sed 's/^/| /' conftest.$ac_ext >&5
22028
22029 ( exit $ac_status )
22030 ac_cv_func_fork_works=no
22031 fi
22032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22033 fi
22034
22035
22036 fi
22037 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22038 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22039
22040 else
22041 ac_cv_func_fork_works=$ac_cv_func_fork
22042 fi
22043 if test "x$ac_cv_func_fork_works" = xcross; then
22044 case $host in
22045 *-*-amigaos* | *-*-msdosdjgpp*)
22046 # Override, as these systems have only a dummy fork() stub
22047 ac_cv_func_fork_works=no
22048 ;;
22049 *)
22050 ac_cv_func_fork_works=yes
22051 ;;
22052 esac
22053 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22054 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22055 fi
22056 ac_cv_func_vfork_works=$ac_cv_func_vfork
22057 if test "x$ac_cv_func_vfork" = xyes; then
22058 { echo "$as_me:$LINENO: checking for working vfork" >&5
22059 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
22060 if test "${ac_cv_func_vfork_works+set}" = set; then
22061 echo $ECHO_N "(cached) $ECHO_C" >&6
22062 else
22063 if test "$cross_compiling" = yes; then
22064 ac_cv_func_vfork_works=cross
22065 else
22066 cat >conftest.$ac_ext <<_ACEOF
22067 /* confdefs.h. */
22068 _ACEOF
22069 cat confdefs.h >>conftest.$ac_ext
22070 cat >>conftest.$ac_ext <<_ACEOF
22071 /* end confdefs.h. */
22072 /* Thanks to Paul Eggert for this test. */
22073 $ac_includes_default
22074 #include <sys/wait.h>
22075 #ifdef HAVE_VFORK_H
22076 # include <vfork.h>
22077 #endif
22078 /* On some sparc systems, changes by the child to local and incoming
22079 argument registers are propagated back to the parent. The compiler
22080 is told about this with #include <vfork.h>, but some compilers
22081 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22082 static variable whose address is put into a register that is
22083 clobbered by the vfork. */
22084 static void
22085 #ifdef __cplusplus
22086 sparc_address_test (int arg)
22087 # else
22088 sparc_address_test (arg) int arg;
22089 #endif
22090 {
22091 static pid_t child;
22092 if (!child) {
22093 child = vfork ();
22094 if (child < 0) {
22095 perror ("vfork");
22096 _exit(2);
22097 }
22098 if (!child) {
22099 arg = getpid();
22100 write(-1, "", 0);
22101 _exit (arg);
22102 }
22103 }
22104 }
22105
22106 int
22107 main ()
22108 {
22109 pid_t parent = getpid ();
22110 pid_t child;
22111
22112 sparc_address_test (0);
22113
22114 child = vfork ();
22115
22116 if (child == 0) {
22117 /* Here is another test for sparc vfork register problems. This
22118 test uses lots of local variables, at least as many local
22119 variables as main has allocated so far including compiler
22120 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22121 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22122 reuse the register of parent for one of the local variables,
22123 since it will think that parent can't possibly be used any more
22124 in this routine. Assigning to the local variable will thus
22125 munge parent in the parent process. */
22126 pid_t
22127 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22128 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22129 /* Convince the compiler that p..p7 are live; otherwise, it might
22130 use the same hardware register for all 8 local variables. */
22131 if (p != p1 || p != p2 || p != p3 || p != p4
22132 || p != p5 || p != p6 || p != p7)
22133 _exit(1);
22134
22135 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22136 from child file descriptors. If the child closes a descriptor
22137 before it execs or exits, this munges the parent's descriptor
22138 as well. Test for this by closing stdout in the child. */
22139 _exit(close(fileno(stdout)) != 0);
22140 } else {
22141 int status;
22142 struct stat st;
22143
22144 while (wait(&status) != child)
22145 ;
22146 return (
22147 /* Was there some problem with vforking? */
22148 child < 0
22149
22150 /* Did the child fail? (This shouldn't happen.) */
22151 || status
22152
22153 /* Did the vfork/compiler bug occur? */
22154 || parent != getpid()
22155
22156 /* Did the file descriptor bug occur? */
22157 || fstat(fileno(stdout), &st) != 0
22158 );
22159 }
22160 }
22161 _ACEOF
22162 rm -f conftest$ac_exeext
22163 if { (ac_try="$ac_link"
22164 case "(($ac_try" in
22165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22166 *) ac_try_echo=$ac_try;;
22167 esac
22168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22169 (eval "$ac_link") 2>&5
22170 ac_status=$?
22171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22173 { (case "(($ac_try" in
22174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22175 *) ac_try_echo=$ac_try;;
22176 esac
22177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22178 (eval "$ac_try") 2>&5
22179 ac_status=$?
22180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22181 (exit $ac_status); }; }; then
22182 ac_cv_func_vfork_works=yes
22183 else
22184 echo "$as_me: program exited with status $ac_status" >&5
22185 echo "$as_me: failed program was:" >&5
22186 sed 's/^/| /' conftest.$ac_ext >&5
22187
22188 ( exit $ac_status )
22189 ac_cv_func_vfork_works=no
22190 fi
22191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22192 fi
22193
22194
22195 fi
22196 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22197 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22198
22199 fi;
22200 if test "x$ac_cv_func_fork_works" = xcross; then
22201 ac_cv_func_vfork_works=$ac_cv_func_vfork
22202 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22203 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22204 fi
22205
22206 if test "x$ac_cv_func_vfork_works" = xyes; then
22207
22208 cat >>confdefs.h <<\_ACEOF
22209 #define HAVE_WORKING_VFORK 1
22210 _ACEOF
22211
22212 else
22213
22214 cat >>confdefs.h <<\_ACEOF
22215 #define vfork fork
22216 _ACEOF
22217
22218 fi
22219 if test "x$ac_cv_func_fork_works" = xyes; then
22220
22221 cat >>confdefs.h <<\_ACEOF
22222 #define HAVE_WORKING_FORK 1
22223 _ACEOF
22224
22225 fi
22226
22227
22228 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22229 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22230 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22231 echo $ECHO_N "(cached) $ECHO_C" >&6
22232 else
22233 cat >conftest.$ac_ext <<_ACEOF
22234 /* confdefs.h. */
22235 _ACEOF
22236 cat confdefs.h >>conftest.$ac_ext
22237 cat >>conftest.$ac_ext <<_ACEOF
22238 /* end confdefs.h. */
22239 #include <langinfo.h>
22240 int
22241 main ()
22242 {
22243 char* cs = nl_langinfo(CODESET);
22244 ;
22245 return 0;
22246 }
22247 _ACEOF
22248 rm -f conftest.$ac_objext conftest$ac_exeext
22249 if { (ac_try="$ac_link"
22250 case "(($ac_try" in
22251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22252 *) ac_try_echo=$ac_try;;
22253 esac
22254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22255 (eval "$ac_link") 2>conftest.er1
22256 ac_status=$?
22257 grep -v '^ *+' conftest.er1 >conftest.err
22258 rm -f conftest.er1
22259 cat conftest.err >&5
22260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261 (exit $ac_status); } && {
22262 test -z "$ac_c_werror_flag" ||
22263 test ! -s conftest.err
22264 } && test -s conftest$ac_exeext &&
22265 $as_test_x conftest$ac_exeext; then
22266 emacs_cv_langinfo_codeset=yes
22267 else
22268 echo "$as_me: failed program was:" >&5
22269 sed 's/^/| /' conftest.$ac_ext >&5
22270
22271 emacs_cv_langinfo_codeset=no
22272 fi
22273
22274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22275 conftest$ac_exeext conftest.$ac_ext
22276
22277 fi
22278 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22279 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22280 if test $emacs_cv_langinfo_codeset = yes; then
22281
22282 cat >>confdefs.h <<\_ACEOF
22283 #define HAVE_LANGINFO_CODESET 1
22284 _ACEOF
22285
22286 fi
22287
22288 { echo "$as_me:$LINENO: checking for size_t" >&5
22289 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22290 if test "${ac_cv_type_size_t+set}" = set; then
22291 echo $ECHO_N "(cached) $ECHO_C" >&6
22292 else
22293 cat >conftest.$ac_ext <<_ACEOF
22294 /* confdefs.h. */
22295 _ACEOF
22296 cat confdefs.h >>conftest.$ac_ext
22297 cat >>conftest.$ac_ext <<_ACEOF
22298 /* end confdefs.h. */
22299 $ac_includes_default
22300 typedef size_t ac__type_new_;
22301 int
22302 main ()
22303 {
22304 if ((ac__type_new_ *) 0)
22305 return 0;
22306 if (sizeof (ac__type_new_))
22307 return 0;
22308 ;
22309 return 0;
22310 }
22311 _ACEOF
22312 rm -f conftest.$ac_objext
22313 if { (ac_try="$ac_compile"
22314 case "(($ac_try" in
22315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22316 *) ac_try_echo=$ac_try;;
22317 esac
22318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22319 (eval "$ac_compile") 2>conftest.er1
22320 ac_status=$?
22321 grep -v '^ *+' conftest.er1 >conftest.err
22322 rm -f conftest.er1
22323 cat conftest.err >&5
22324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22325 (exit $ac_status); } && {
22326 test -z "$ac_c_werror_flag" ||
22327 test ! -s conftest.err
22328 } && test -s conftest.$ac_objext; then
22329 ac_cv_type_size_t=yes
22330 else
22331 echo "$as_me: failed program was:" >&5
22332 sed 's/^/| /' conftest.$ac_ext >&5
22333
22334 ac_cv_type_size_t=no
22335 fi
22336
22337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22338 fi
22339 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22340 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22341 if test $ac_cv_type_size_t = yes; then
22342
22343 cat >>confdefs.h <<_ACEOF
22344 #define HAVE_SIZE_T 1
22345 _ACEOF
22346
22347
22348 fi
22349
22350
22351 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
22352 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
22353 if test "${ac_cv_type_mbstate_t+set}" = set; then
22354 echo $ECHO_N "(cached) $ECHO_C" >&6
22355 else
22356 cat >conftest.$ac_ext <<_ACEOF
22357 /* confdefs.h. */
22358 _ACEOF
22359 cat confdefs.h >>conftest.$ac_ext
22360 cat >>conftest.$ac_ext <<_ACEOF
22361 /* end confdefs.h. */
22362 $ac_includes_default
22363 # include <wchar.h>
22364 int
22365 main ()
22366 {
22367 mbstate_t x; return sizeof x;
22368 ;
22369 return 0;
22370 }
22371 _ACEOF
22372 rm -f conftest.$ac_objext
22373 if { (ac_try="$ac_compile"
22374 case "(($ac_try" in
22375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22376 *) ac_try_echo=$ac_try;;
22377 esac
22378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22379 (eval "$ac_compile") 2>conftest.er1
22380 ac_status=$?
22381 grep -v '^ *+' conftest.er1 >conftest.err
22382 rm -f conftest.er1
22383 cat conftest.err >&5
22384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22385 (exit $ac_status); } && {
22386 test -z "$ac_c_werror_flag" ||
22387 test ! -s conftest.err
22388 } && test -s conftest.$ac_objext; then
22389 ac_cv_type_mbstate_t=yes
22390 else
22391 echo "$as_me: failed program was:" >&5
22392 sed 's/^/| /' conftest.$ac_ext >&5
22393
22394 ac_cv_type_mbstate_t=no
22395 fi
22396
22397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22398 fi
22399 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22400 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
22401 if test $ac_cv_type_mbstate_t = yes; then
22402
22403 cat >>confdefs.h <<\_ACEOF
22404 #define HAVE_MBSTATE_T 1
22405 _ACEOF
22406
22407 else
22408
22409 cat >>confdefs.h <<\_ACEOF
22410 #define mbstate_t int
22411 _ACEOF
22412
22413 fi
22414
22415 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22416 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
22417 if test "${emacs_cv_c_restrict+set}" = set; then
22418 echo $ECHO_N "(cached) $ECHO_C" >&6
22419 else
22420 cat >conftest.$ac_ext <<_ACEOF
22421 /* confdefs.h. */
22422 _ACEOF
22423 cat confdefs.h >>conftest.$ac_ext
22424 cat >>conftest.$ac_ext <<_ACEOF
22425 /* end confdefs.h. */
22426 void fred (int *restrict x);
22427 int
22428 main ()
22429 {
22430
22431 ;
22432 return 0;
22433 }
22434 _ACEOF
22435 rm -f conftest.$ac_objext
22436 if { (ac_try="$ac_compile"
22437 case "(($ac_try" in
22438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22439 *) ac_try_echo=$ac_try;;
22440 esac
22441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22442 (eval "$ac_compile") 2>conftest.er1
22443 ac_status=$?
22444 grep -v '^ *+' conftest.er1 >conftest.err
22445 rm -f conftest.er1
22446 cat conftest.err >&5
22447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22448 (exit $ac_status); } && {
22449 test -z "$ac_c_werror_flag" ||
22450 test ! -s conftest.err
22451 } && test -s conftest.$ac_objext; then
22452 emacs_cv_c_restrict=yes
22453 else
22454 echo "$as_me: failed program was:" >&5
22455 sed 's/^/| /' conftest.$ac_ext >&5
22456
22457 cat >conftest.$ac_ext <<_ACEOF
22458 /* confdefs.h. */
22459 _ACEOF
22460 cat confdefs.h >>conftest.$ac_ext
22461 cat >>conftest.$ac_ext <<_ACEOF
22462 /* end confdefs.h. */
22463 void fred (int *__restrict x);
22464 int
22465 main ()
22466 {
22467
22468 ;
22469 return 0;
22470 }
22471 _ACEOF
22472 rm -f conftest.$ac_objext
22473 if { (ac_try="$ac_compile"
22474 case "(($ac_try" in
22475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22476 *) ac_try_echo=$ac_try;;
22477 esac
22478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22479 (eval "$ac_compile") 2>conftest.er1
22480 ac_status=$?
22481 grep -v '^ *+' conftest.er1 >conftest.err
22482 rm -f conftest.er1
22483 cat conftest.err >&5
22484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22485 (exit $ac_status); } && {
22486 test -z "$ac_c_werror_flag" ||
22487 test ! -s conftest.err
22488 } && test -s conftest.$ac_objext; then
22489 emacs_cv_c_restrict=__restrict
22490 else
22491 echo "$as_me: failed program was:" >&5
22492 sed 's/^/| /' conftest.$ac_ext >&5
22493
22494 emacs_cv_c_restrict=no
22495 fi
22496
22497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22498 fi
22499
22500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22501 fi
22502 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22503 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
22504 case "$emacs_cv_c_restrict" in
22505 yes) emacs_restrict=restrict;;
22506 no) emacs_restrict="";;
22507 *) emacs_restrict="$emacs_cv_c_restrict";;
22508 esac
22509 if test "$emacs_restrict" != __restrict; then
22510
22511 cat >>confdefs.h <<_ACEOF
22512 #define __restrict $emacs_restrict
22513 _ACEOF
22514
22515 fi
22516
22517 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22518 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
22519 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22520 echo $ECHO_N "(cached) $ECHO_C" >&6
22521 else
22522 cat >conftest.$ac_ext <<_ACEOF
22523 /* confdefs.h. */
22524 _ACEOF
22525 cat confdefs.h >>conftest.$ac_ext
22526 cat >>conftest.$ac_ext <<_ACEOF
22527 /* end confdefs.h. */
22528 void fred (int x[__restrict]);
22529 int
22530 main ()
22531 {
22532
22533 ;
22534 return 0;
22535 }
22536 _ACEOF
22537 rm -f conftest.$ac_objext
22538 if { (ac_try="$ac_compile"
22539 case "(($ac_try" in
22540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22541 *) ac_try_echo=$ac_try;;
22542 esac
22543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22544 (eval "$ac_compile") 2>conftest.er1
22545 ac_status=$?
22546 grep -v '^ *+' conftest.er1 >conftest.err
22547 rm -f conftest.er1
22548 cat conftest.err >&5
22549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22550 (exit $ac_status); } && {
22551 test -z "$ac_c_werror_flag" ||
22552 test ! -s conftest.err
22553 } && test -s conftest.$ac_objext; then
22554 emacs_cv_c_restrict_arr=yes
22555 else
22556 echo "$as_me: failed program was:" >&5
22557 sed 's/^/| /' conftest.$ac_ext >&5
22558
22559 emacs_cv_c_restrict_arr=no
22560 fi
22561
22562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22563 fi
22564 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22565 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
22566 if test "$emacs_cv_c_restrict_arr" = yes; then
22567
22568 cat >>confdefs.h <<\_ACEOF
22569 #define __restrict_arr __restrict
22570 _ACEOF
22571
22572 fi
22573
22574
22575
22576 # Set up the CFLAGS for real compilation, so we can substitute it.
22577 CFLAGS="$REAL_CFLAGS"
22578 CPPFLAGS="$REAL_CPPFLAGS"
22579
22580 #### Find out which version of Emacs this is.
22581 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22582 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22583 if test x"${version}" = x; then
22584 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22585 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22586 { (exit 1); exit 1; }; }
22587 fi
22588
22589 ### Specify what sort of things we'll be editing into Makefile and config.h.
22590 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22591
22592
22593
22594
22595
22596
22597
22598
22599
22600
22601
22602
22603
22604
22605
22606
22607
22608
22609
22610
22611
22612
22613
22614
22615
22616
22617
22618
22619
22620
22621
22622
22623
22624
22625
22626 cat >>confdefs.h <<_ACEOF
22627 #define EMACS_CONFIGURATION "${canonical}"
22628 _ACEOF
22629
22630
22631 cat >>confdefs.h <<_ACEOF
22632 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22633 _ACEOF
22634
22635
22636 cat >>confdefs.h <<_ACEOF
22637 #define config_machfile "${machfile}"
22638 _ACEOF
22639
22640
22641 cat >>confdefs.h <<_ACEOF
22642 #define config_opsysfile "${opsysfile}"
22643 _ACEOF
22644
22645
22646 cat >>confdefs.h <<_ACEOF
22647 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22648 _ACEOF
22649
22650
22651 cat >>confdefs.h <<_ACEOF
22652 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22653 _ACEOF
22654
22655
22656 cat >>confdefs.h <<_ACEOF
22657 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22658 _ACEOF
22659
22660
22661 cat >>confdefs.h <<_ACEOF
22662 #define UNEXEC_SRC ${UNEXEC_SRC}
22663 _ACEOF
22664
22665
22666 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22667
22668 cat >>confdefs.h <<\_ACEOF
22669 #define HAVE_X_WINDOWS 1
22670 _ACEOF
22671
22672 fi
22673 if test "${USE_X_TOOLKIT}" != "none" ; then
22674
22675 cat >>confdefs.h <<\_ACEOF
22676 #define USE_X_TOOLKIT 1
22677 _ACEOF
22678
22679 fi
22680 if test "${HAVE_X11}" = "yes" ; then
22681
22682 cat >>confdefs.h <<\_ACEOF
22683 #define HAVE_X11 1
22684 _ACEOF
22685
22686 fi
22687 if test "${HAVE_XFREE386}" = "yes" ; then
22688
22689 cat >>confdefs.h <<\_ACEOF
22690 #define HAVE_XFREE386 1
22691 _ACEOF
22692
22693 fi
22694 if test "${HAVE_MENUS}" = "yes" ; then
22695
22696 cat >>confdefs.h <<\_ACEOF
22697 #define HAVE_MENUS 1
22698 _ACEOF
22699
22700 fi
22701 if test "${GNU_MALLOC}" = "yes" ; then
22702
22703 cat >>confdefs.h <<\_ACEOF
22704 #define GNU_MALLOC 1
22705 _ACEOF
22706
22707 fi
22708 if test "${REL_ALLOC}" = "yes" ; then
22709
22710 cat >>confdefs.h <<\_ACEOF
22711 #define REL_ALLOC 1
22712 _ACEOF
22713
22714 fi
22715
22716
22717
22718
22719
22720 #### Report on what we decided to do.
22721 #### Report GTK as a toolkit, even if it doesn't use Xt.
22722 #### It makes printing result more understandable as using GTK sets
22723 #### toolkit_scroll_bars to yes by default.
22724 if test "${HAVE_GTK}" = "yes"; then
22725 USE_X_TOOLKIT=GTK
22726 fi
22727
22728 echo "
22729 Configured for \`${canonical}'.
22730
22731 Where should the build process find the source code? ${srcdir}
22732 What operating system and machine description files should Emacs use?
22733 \`${opsysfile}' and \`${machfile}'
22734 What compiler should emacs be built with? ${CC} ${CFLAGS}
22735 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22736 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22737 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22738 What window system should Emacs use? ${window_system}
22739 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22740
22741 if test -n "${x_includes}"; then
22742 echo " Where do we find X Windows header files? ${x_includes}"
22743 else
22744 echo " Where do we find X Windows header files? Standard dirs"
22745 fi
22746 if test -n "${x_libraries}"; then
22747 echo " Where do we find X Windows libraries? ${x_libraries}"
22748 else
22749 echo " Where do we find X Windows libraries? Standard dirs"
22750 fi
22751
22752 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22753 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22754 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22755 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22756 echo " Does Emacs use -lungif? ${HAVE_GIF}"
22757 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22758 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22759 echo
22760
22761 if test $USE_XASSERTS = yes; then
22762 echo " Compiling with asserts turned on."
22763 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
22764 echo
22765 fi
22766
22767
22768
22769 # Remove any trailing slashes in these variables.
22770 test "${prefix}" != NONE &&
22771 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22772 test "${exec_prefix}" != NONE &&
22773 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22774
22775 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22776 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22777 ## from Makefile.c can correctly provide the arg `-traditional' to the
22778 ## C preprocessor.
22779
22780 cat >conftest.$ac_ext <<_ACEOF
22781 /* confdefs.h. */
22782 _ACEOF
22783 cat confdefs.h >>conftest.$ac_ext
22784 cat >>conftest.$ac_ext <<_ACEOF
22785 /* end confdefs.h. */
22786 yes..yes
22787 _ACEOF
22788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22789 $EGREP "yes..yes" >/dev/null 2>&1; then
22790 CPP_NEED_TRADITIONAL=no
22791 else
22792 CPP_NEED_TRADITIONAL=yes
22793 fi
22794 rm -f conftest*
22795
22796
22797 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"
22798
22799 ac_config_commands="$ac_config_commands default"
22800
22801 cat >confcache <<\_ACEOF
22802 # This file is a shell script that caches the results of configure
22803 # tests run on this system so they can be shared between configure
22804 # scripts and configure runs, see configure's option --config-cache.
22805 # It is not useful on other systems. If it contains results you don't
22806 # want to keep, you may remove or edit it.
22807 #
22808 # config.status only pays attention to the cache file if you give it
22809 # the --recheck option to rerun configure.
22810 #
22811 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22812 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22813 # following values.
22814
22815 _ACEOF
22816
22817 # The following way of writing the cache mishandles newlines in values,
22818 # but we know of no workaround that is simple, portable, and efficient.
22819 # So, we kill variables containing newlines.
22820 # Ultrix sh set writes to stderr and can't be redirected directly,
22821 # and sets the high bit in the cache file unless we assign to the vars.
22822 (
22823 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22824 eval ac_val=\$$ac_var
22825 case $ac_val in #(
22826 *${as_nl}*)
22827 case $ac_var in #(
22828 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22829 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22830 esac
22831 case $ac_var in #(
22832 _ | IFS | as_nl) ;; #(
22833 *) $as_unset $ac_var ;;
22834 esac ;;
22835 esac
22836 done
22837
22838 (set) 2>&1 |
22839 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22840 *${as_nl}ac_space=\ *)
22841 # `set' does not quote correctly, so add quotes (double-quote
22842 # substitution turns \\\\ into \\, and sed turns \\ into \).
22843 sed -n \
22844 "s/'/'\\\\''/g;
22845 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22846 ;; #(
22847 *)
22848 # `set' quotes correctly as required by POSIX, so do not add quotes.
22849 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22850 ;;
22851 esac |
22852 sort
22853 ) |
22854 sed '
22855 /^ac_cv_env_/b end
22856 t clear
22857 :clear
22858 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22859 t end
22860 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22861 :end' >>confcache
22862 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22863 if test -w "$cache_file"; then
22864 test "x$cache_file" != "x/dev/null" &&
22865 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22866 echo "$as_me: updating cache $cache_file" >&6;}
22867 cat confcache >$cache_file
22868 else
22869 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22870 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22871 fi
22872 fi
22873 rm -f confcache
22874
22875 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22876 # Let make expand exec_prefix.
22877 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22878
22879 DEFS=-DHAVE_CONFIG_H
22880
22881 ac_libobjs=
22882 ac_ltlibobjs=
22883 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22884 # 1. Remove the extension, and $U if already installed.
22885 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22886 ac_i=`echo "$ac_i" | sed "$ac_script"`
22887 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22888 # will be set to the directory where LIBOBJS objects are built.
22889 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22890 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22891 done
22892 LIBOBJS=$ac_libobjs
22893
22894 LTLIBOBJS=$ac_ltlibobjs
22895
22896
22897
22898 : ${CONFIG_STATUS=./config.status}
22899 ac_clean_files_save=$ac_clean_files
22900 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22901 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22902 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22903 cat >$CONFIG_STATUS <<_ACEOF
22904 #! $SHELL
22905 # Generated by $as_me.
22906 # Run this file to recreate the current configuration.
22907 # Compiler output produced by configure, useful for debugging
22908 # configure, is in config.log if it exists.
22909
22910 debug=false
22911 ac_cs_recheck=false
22912 ac_cs_silent=false
22913 SHELL=\${CONFIG_SHELL-$SHELL}
22914 _ACEOF
22915
22916 cat >>$CONFIG_STATUS <<\_ACEOF
22917 ## --------------------- ##
22918 ## M4sh Initialization. ##
22919 ## --------------------- ##
22920
22921 # Be more Bourne compatible
22922 DUALCASE=1; export DUALCASE # for MKS sh
22923 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22924 emulate sh
22925 NULLCMD=:
22926 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22927 # is contrary to our usage. Disable this feature.
22928 alias -g '${1+"$@"}'='"$@"'
22929 setopt NO_GLOB_SUBST
22930 else
22931 case `(set -o) 2>/dev/null` in
22932 *posix*) set -o posix ;;
22933 esac
22934
22935 fi
22936
22937
22938
22939
22940 # PATH needs CR
22941 # Avoid depending upon Character Ranges.
22942 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22943 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22944 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22945 as_cr_digits='0123456789'
22946 as_cr_alnum=$as_cr_Letters$as_cr_digits
22947
22948 # The user is always right.
22949 if test "${PATH_SEPARATOR+set}" != set; then
22950 echo "#! /bin/sh" >conf$$.sh
22951 echo "exit 0" >>conf$$.sh
22952 chmod +x conf$$.sh
22953 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22954 PATH_SEPARATOR=';'
22955 else
22956 PATH_SEPARATOR=:
22957 fi
22958 rm -f conf$$.sh
22959 fi
22960
22961 # Support unset when possible.
22962 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22963 as_unset=unset
22964 else
22965 as_unset=false
22966 fi
22967
22968
22969 # IFS
22970 # We need space, tab and new line, in precisely that order. Quoting is
22971 # there to prevent editors from complaining about space-tab.
22972 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22973 # splitting by setting IFS to empty value.)
22974 as_nl='
22975 '
22976 IFS=" "" $as_nl"
22977
22978 # Find who we are. Look in the path if we contain no directory separator.
22979 case $0 in
22980 *[\\/]* ) as_myself=$0 ;;
22981 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22982 for as_dir in $PATH
22983 do
22984 IFS=$as_save_IFS
22985 test -z "$as_dir" && as_dir=.
22986 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22987 done
22988 IFS=$as_save_IFS
22989
22990 ;;
22991 esac
22992 # We did not find ourselves, most probably we were run as `sh COMMAND'
22993 # in which case we are not to be found in the path.
22994 if test "x$as_myself" = x; then
22995 as_myself=$0
22996 fi
22997 if test ! -f "$as_myself"; then
22998 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22999 { (exit 1); exit 1; }
23000 fi
23001
23002 # Work around bugs in pre-3.0 UWIN ksh.
23003 for as_var in ENV MAIL MAILPATH
23004 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23005 done
23006 PS1='$ '
23007 PS2='> '
23008 PS4='+ '
23009
23010 # NLS nuisances.
23011 for as_var in \
23012 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23013 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23014 LC_TELEPHONE LC_TIME
23015 do
23016 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23017 eval $as_var=C; export $as_var
23018 else
23019 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23020 fi
23021 done
23022
23023 # Required to use basename.
23024 if expr a : '\(a\)' >/dev/null 2>&1 &&
23025 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23026 as_expr=expr
23027 else
23028 as_expr=false
23029 fi
23030
23031 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23032 as_basename=basename
23033 else
23034 as_basename=false
23035 fi
23036
23037
23038 # Name of the executable.
23039 as_me=`$as_basename -- "$0" ||
23040 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23041 X"$0" : 'X\(//\)$' \| \
23042 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23043 echo X/"$0" |
23044 sed '/^.*\/\([^/][^/]*\)\/*$/{
23045 s//\1/
23046 q
23047 }
23048 /^X\/\(\/\/\)$/{
23049 s//\1/
23050 q
23051 }
23052 /^X\/\(\/\).*/{
23053 s//\1/
23054 q
23055 }
23056 s/.*/./; q'`
23057
23058 # CDPATH.
23059 $as_unset CDPATH
23060
23061
23062
23063 as_lineno_1=$LINENO
23064 as_lineno_2=$LINENO
23065 test "x$as_lineno_1" != "x$as_lineno_2" &&
23066 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23067
23068 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23069 # uniformly replaced by the line number. The first 'sed' inserts a
23070 # line-number line after each line using $LINENO; the second 'sed'
23071 # does the real work. The second script uses 'N' to pair each
23072 # line-number line with the line containing $LINENO, and appends
23073 # trailing '-' during substitution so that $LINENO is not a special
23074 # case at line end.
23075 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23076 # scripts with optimization help from Paolo Bonzini. Blame Lee
23077 # E. McMahon (1931-1989) for sed's syntax. :-)
23078 sed -n '
23079 p
23080 /[$]LINENO/=
23081 ' <$as_myself |
23082 sed '
23083 s/[$]LINENO.*/&-/
23084 t lineno
23085 b
23086 :lineno
23087 N
23088 :loop
23089 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23090 t loop
23091 s/-\n.*//
23092 ' >$as_me.lineno &&
23093 chmod +x "$as_me.lineno" ||
23094 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23095 { (exit 1); exit 1; }; }
23096
23097 # Don't try to exec as it changes $[0], causing all sort of problems
23098 # (the dirname of $[0] is not the place where we might find the
23099 # original and so on. Autoconf is especially sensitive to this).
23100 . "./$as_me.lineno"
23101 # Exit status is that of the last command.
23102 exit
23103 }
23104
23105
23106 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23107 as_dirname=dirname
23108 else
23109 as_dirname=false
23110 fi
23111
23112 ECHO_C= ECHO_N= ECHO_T=
23113 case `echo -n x` in
23114 -n*)
23115 case `echo 'x\c'` in
23116 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23117 *) ECHO_C='\c';;
23118 esac;;
23119 *)
23120 ECHO_N='-n';;
23121 esac
23122
23123 if expr a : '\(a\)' >/dev/null 2>&1 &&
23124 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23125 as_expr=expr
23126 else
23127 as_expr=false
23128 fi
23129
23130 rm -f conf$$ conf$$.exe conf$$.file
23131 if test -d conf$$.dir; then
23132 rm -f conf$$.dir/conf$$.file
23133 else
23134 rm -f conf$$.dir
23135 mkdir conf$$.dir
23136 fi
23137 echo >conf$$.file
23138 if ln -s conf$$.file conf$$ 2>/dev/null; then
23139 as_ln_s='ln -s'
23140 # ... but there are two gotchas:
23141 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23142 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23143 # In both cases, we have to default to `cp -p'.
23144 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23145 as_ln_s='cp -p'
23146 elif ln conf$$.file conf$$ 2>/dev/null; then
23147 as_ln_s=ln
23148 else
23149 as_ln_s='cp -p'
23150 fi
23151 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23152 rmdir conf$$.dir 2>/dev/null
23153
23154 if mkdir -p . 2>/dev/null; then
23155 as_mkdir_p=:
23156 else
23157 test -d ./-p && rmdir ./-p
23158 as_mkdir_p=false
23159 fi
23160
23161 if test -x / >/dev/null 2>&1; then
23162 as_test_x='test -x'
23163 else
23164 if ls -dL / >/dev/null 2>&1; then
23165 as_ls_L_option=L
23166 else
23167 as_ls_L_option=
23168 fi
23169 as_test_x='
23170 eval sh -c '\''
23171 if test -d "$1"; then
23172 test -d "$1/.";
23173 else
23174 case $1 in
23175 -*)set "./$1";;
23176 esac;
23177 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23178 ???[sx]*):;;*)false;;esac;fi
23179 '\'' sh
23180 '
23181 fi
23182 as_executable_p=$as_test_x
23183
23184 # Sed expression to map a string onto a valid CPP name.
23185 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23186
23187 # Sed expression to map a string onto a valid variable name.
23188 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23189
23190
23191 exec 6>&1
23192
23193 # Save the log message, to keep $[0] and so on meaningful, and to
23194 # report actual input values of CONFIG_FILES etc. instead of their
23195 # values after options handling.
23196 ac_log="
23197 This file was extended by $as_me, which was
23198 generated by GNU Autoconf 2.61. Invocation command line was
23199
23200 CONFIG_FILES = $CONFIG_FILES
23201 CONFIG_HEADERS = $CONFIG_HEADERS
23202 CONFIG_LINKS = $CONFIG_LINKS
23203 CONFIG_COMMANDS = $CONFIG_COMMANDS
23204 $ $0 $@
23205
23206 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23207 "
23208
23209 _ACEOF
23210
23211 cat >>$CONFIG_STATUS <<_ACEOF
23212 # Files that config.status was made for.
23213 config_files="$ac_config_files"
23214 config_headers="$ac_config_headers"
23215 config_commands="$ac_config_commands"
23216
23217 _ACEOF
23218
23219 cat >>$CONFIG_STATUS <<\_ACEOF
23220 ac_cs_usage="\
23221 \`$as_me' instantiates files from templates according to the
23222 current configuration.
23223
23224 Usage: $0 [OPTIONS] [FILE]...
23225
23226 -h, --help print this help, then exit
23227 -V, --version print version number and configuration settings, then exit
23228 -q, --quiet do not print progress messages
23229 -d, --debug don't remove temporary files
23230 --recheck update $as_me by reconfiguring in the same conditions
23231 --file=FILE[:TEMPLATE]
23232 instantiate the configuration file FILE
23233 --header=FILE[:TEMPLATE]
23234 instantiate the configuration header FILE
23235
23236 Configuration files:
23237 $config_files
23238
23239 Configuration headers:
23240 $config_headers
23241
23242 Configuration commands:
23243 $config_commands
23244
23245 Report bugs to <bug-autoconf@gnu.org>."
23246
23247 _ACEOF
23248 cat >>$CONFIG_STATUS <<_ACEOF
23249 ac_cs_version="\\
23250 config.status
23251 configured by $0, generated by GNU Autoconf 2.61,
23252 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23253
23254 Copyright (C) 2006 Free Software Foundation, Inc.
23255 This config.status script is free software; the Free Software Foundation
23256 gives unlimited permission to copy, distribute and modify it."
23257
23258 ac_pwd='$ac_pwd'
23259 srcdir='$srcdir'
23260 INSTALL='$INSTALL'
23261 _ACEOF
23262
23263 cat >>$CONFIG_STATUS <<\_ACEOF
23264 # If no file are specified by the user, then we need to provide default
23265 # value. By we need to know if files were specified by the user.
23266 ac_need_defaults=:
23267 while test $# != 0
23268 do
23269 case $1 in
23270 --*=*)
23271 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23272 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23273 ac_shift=:
23274 ;;
23275 *)
23276 ac_option=$1
23277 ac_optarg=$2
23278 ac_shift=shift
23279 ;;
23280 esac
23281
23282 case $ac_option in
23283 # Handling of the options.
23284 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23285 ac_cs_recheck=: ;;
23286 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23287 echo "$ac_cs_version"; exit ;;
23288 --debug | --debu | --deb | --de | --d | -d )
23289 debug=: ;;
23290 --file | --fil | --fi | --f )
23291 $ac_shift
23292 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23293 ac_need_defaults=false;;
23294 --header | --heade | --head | --hea )
23295 $ac_shift
23296 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23297 ac_need_defaults=false;;
23298 --he | --h)
23299 # Conflict between --help and --header
23300 { echo "$as_me: error: ambiguous option: $1
23301 Try \`$0 --help' for more information." >&2
23302 { (exit 1); exit 1; }; };;
23303 --help | --hel | -h )
23304 echo "$ac_cs_usage"; exit ;;
23305 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23306 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23307 ac_cs_silent=: ;;
23308
23309 # This is an error.
23310 -*) { echo "$as_me: error: unrecognized option: $1
23311 Try \`$0 --help' for more information." >&2
23312 { (exit 1); exit 1; }; } ;;
23313
23314 *) ac_config_targets="$ac_config_targets $1"
23315 ac_need_defaults=false ;;
23316
23317 esac
23318 shift
23319 done
23320
23321 ac_configure_extra_args=
23322
23323 if $ac_cs_silent; then
23324 exec 6>/dev/null
23325 ac_configure_extra_args="$ac_configure_extra_args --silent"
23326 fi
23327
23328 _ACEOF
23329 cat >>$CONFIG_STATUS <<_ACEOF
23330 if \$ac_cs_recheck; then
23331 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23332 CONFIG_SHELL=$SHELL
23333 export CONFIG_SHELL
23334 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23335 fi
23336
23337 _ACEOF
23338 cat >>$CONFIG_STATUS <<\_ACEOF
23339 exec 5>>config.log
23340 {
23341 echo
23342 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23343 ## Running $as_me. ##
23344 _ASBOX
23345 echo "$ac_log"
23346 } >&5
23347
23348 _ACEOF
23349 cat >>$CONFIG_STATUS <<_ACEOF
23350 #
23351 # INIT-COMMANDS
23352 #
23353 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23354
23355 _ACEOF
23356
23357 cat >>$CONFIG_STATUS <<\_ACEOF
23358
23359 # Handling of arguments.
23360 for ac_config_target in $ac_config_targets
23361 do
23362 case $ac_config_target in
23363 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23364 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23365 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23366 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23367 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23368 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23369 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23370 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23371 "lispref/Makefile") CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
23372 "lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
23373 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23374 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23375
23376 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23377 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23378 { (exit 1); exit 1; }; };;
23379 esac
23380 done
23381
23382
23383 # If the user did not use the arguments to specify the items to instantiate,
23384 # then the envvar interface is used. Set only those that are not.
23385 # We use the long form for the default assignment because of an extremely
23386 # bizarre bug on SunOS 4.1.3.
23387 if $ac_need_defaults; then
23388 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23389 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23390 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23391 fi
23392
23393 # Have a temporary directory for convenience. Make it in the build tree
23394 # simply because there is no reason against having it here, and in addition,
23395 # creating and moving files from /tmp can sometimes cause problems.
23396 # Hook for its removal unless debugging.
23397 # Note that there is a small window in which the directory will not be cleaned:
23398 # after its creation but before its name has been assigned to `$tmp'.
23399 $debug ||
23400 {
23401 tmp=
23402 trap 'exit_status=$?
23403 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23404 ' 0
23405 trap '{ (exit 1); exit 1; }' 1 2 13 15
23406 }
23407 # Create a (secure) tmp directory for tmp files.
23408
23409 {
23410 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23411 test -n "$tmp" && test -d "$tmp"
23412 } ||
23413 {
23414 tmp=./conf$$-$RANDOM
23415 (umask 077 && mkdir "$tmp")
23416 } ||
23417 {
23418 echo "$me: cannot create a temporary directory in ." >&2
23419 { (exit 1); exit 1; }
23420 }
23421
23422 #
23423 # Set up the sed scripts for CONFIG_FILES section.
23424 #
23425
23426 # No need to generate the scripts if there are no CONFIG_FILES.
23427 # This happens for instance when ./config.status config.h
23428 if test -n "$CONFIG_FILES"; then
23429
23430 _ACEOF
23431
23432
23433
23434 ac_delim='%!_!# '
23435 for ac_last_try in false false false false false :; do
23436 cat >conf$$subs.sed <<_ACEOF
23437 SHELL!$SHELL$ac_delim
23438 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23439 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23440 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23441 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23442 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23443 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23444 exec_prefix!$exec_prefix$ac_delim
23445 prefix!$prefix$ac_delim
23446 program_transform_name!$program_transform_name$ac_delim
23447 bindir!$bindir$ac_delim
23448 sbindir!$sbindir$ac_delim
23449 libexecdir!$libexecdir$ac_delim
23450 datarootdir!$datarootdir$ac_delim
23451 datadir!$datadir$ac_delim
23452 sysconfdir!$sysconfdir$ac_delim
23453 sharedstatedir!$sharedstatedir$ac_delim
23454 localstatedir!$localstatedir$ac_delim
23455 includedir!$includedir$ac_delim
23456 oldincludedir!$oldincludedir$ac_delim
23457 docdir!$docdir$ac_delim
23458 infodir!$infodir$ac_delim
23459 htmldir!$htmldir$ac_delim
23460 dvidir!$dvidir$ac_delim
23461 pdfdir!$pdfdir$ac_delim
23462 psdir!$psdir$ac_delim
23463 libdir!$libdir$ac_delim
23464 localedir!$localedir$ac_delim
23465 mandir!$mandir$ac_delim
23466 DEFS!$DEFS$ac_delim
23467 ECHO_C!$ECHO_C$ac_delim
23468 ECHO_N!$ECHO_N$ac_delim
23469 ECHO_T!$ECHO_T$ac_delim
23470 LIBS!$LIBS$ac_delim
23471 build_alias!$build_alias$ac_delim
23472 host_alias!$host_alias$ac_delim
23473 target_alias!$target_alias$ac_delim
23474 MAINT!$MAINT$ac_delim
23475 build!$build$ac_delim
23476 build_cpu!$build_cpu$ac_delim
23477 build_vendor!$build_vendor$ac_delim
23478 build_os!$build_os$ac_delim
23479 host!$host$ac_delim
23480 host_cpu!$host_cpu$ac_delim
23481 host_vendor!$host_vendor$ac_delim
23482 host_os!$host_os$ac_delim
23483 CC!$CC$ac_delim
23484 CFLAGS!$CFLAGS$ac_delim
23485 LDFLAGS!$LDFLAGS$ac_delim
23486 CPPFLAGS!$CPPFLAGS$ac_delim
23487 ac_ct_CC!$ac_ct_CC$ac_delim
23488 EXEEXT!$EXEEXT$ac_delim
23489 OBJEXT!$OBJEXT$ac_delim
23490 CPP!$CPP$ac_delim
23491 GREP!$GREP$ac_delim
23492 EGREP!$EGREP$ac_delim
23493 LN_S!$LN_S$ac_delim
23494 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23495 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23496 INSTALL_DATA!$INSTALL_DATA$ac_delim
23497 RANLIB!$RANLIB$ac_delim
23498 INSTALL_INFO!$INSTALL_INFO$ac_delim
23499 GZIP_PROG!$GZIP_PROG$ac_delim
23500 LIBSOUND!$LIBSOUND$ac_delim
23501 PKG_CONFIG!$PKG_CONFIG$ac_delim
23502 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
23503 ALSA_LIBS!$ALSA_LIBS$ac_delim
23504 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
23505 SET_MAKE!$SET_MAKE$ac_delim
23506 XMKMF!$XMKMF$ac_delim
23507 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
23508 GTK_LIBS!$GTK_LIBS$ac_delim
23509 ALLOCA!$ALLOCA$ac_delim
23510 liblockfile!$liblockfile$ac_delim
23511 LIBOBJS!$LIBOBJS$ac_delim
23512 NEED_SETGID!$NEED_SETGID$ac_delim
23513 KMEM_GROUP!$KMEM_GROUP$ac_delim
23514 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
23515 GETOPT_H!$GETOPT_H$ac_delim
23516 GETOPTOBJS!$GETOPTOBJS$ac_delim
23517 version!$version$ac_delim
23518 configuration!$configuration$ac_delim
23519 canonical!$canonical$ac_delim
23520 srcdir!$srcdir$ac_delim
23521 lispdir!$lispdir$ac_delim
23522 locallisppath!$locallisppath$ac_delim
23523 lisppath!$lisppath$ac_delim
23524 x_default_search_path!$x_default_search_path$ac_delim
23525 etcdir!$etcdir$ac_delim
23526 archlibdir!$archlibdir$ac_delim
23527 bitmapdir!$bitmapdir$ac_delim
23528 gamedir!$gamedir$ac_delim
23529 gameuser!$gameuser$ac_delim
23530 c_switch_system!$c_switch_system$ac_delim
23531 c_switch_machine!$c_switch_machine$ac_delim
23532 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
23533 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
23534 _ACEOF
23535
23536 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23537 break
23538 elif $ac_last_try; then
23539 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23540 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23541 { (exit 1); exit 1; }; }
23542 else
23543 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23544 fi
23545 done
23546
23547 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23548 if test -n "$ac_eof"; then
23549 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23550 ac_eof=`expr $ac_eof + 1`
23551 fi
23552
23553 cat >>$CONFIG_STATUS <<_ACEOF
23554 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23555 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23556 _ACEOF
23557 sed '
23558 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23559 s/^/s,@/; s/!/@,|#_!!_#|/
23560 :n
23561 t n
23562 s/'"$ac_delim"'$/,g/; t
23563 s/$/\\/; p
23564 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23565 ' >>$CONFIG_STATUS <conf$$subs.sed
23566 rm -f conf$$subs.sed
23567 cat >>$CONFIG_STATUS <<_ACEOF
23568 CEOF$ac_eof
23569 _ACEOF
23570
23571
23572 ac_delim='%!_!# '
23573 for ac_last_try in false false false false false :; do
23574 cat >conf$$subs.sed <<_ACEOF
23575 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
23576 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
23577 machfile!$machfile$ac_delim
23578 opsysfile!$opsysfile$ac_delim
23579 carbon_appdir!$carbon_appdir$ac_delim
23580 LTLIBOBJS!$LTLIBOBJS$ac_delim
23581 _ACEOF
23582
23583 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
23584 break
23585 elif $ac_last_try; then
23586 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23587 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23588 { (exit 1); exit 1; }; }
23589 else
23590 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23591 fi
23592 done
23593
23594 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23595 if test -n "$ac_eof"; then
23596 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23597 ac_eof=`expr $ac_eof + 1`
23598 fi
23599
23600 cat >>$CONFIG_STATUS <<_ACEOF
23601 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23602 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23603 _ACEOF
23604 sed '
23605 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23606 s/^/s,@/; s/!/@,|#_!!_#|/
23607 :n
23608 t n
23609 s/'"$ac_delim"'$/,g/; t
23610 s/$/\\/; p
23611 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23612 ' >>$CONFIG_STATUS <conf$$subs.sed
23613 rm -f conf$$subs.sed
23614 cat >>$CONFIG_STATUS <<_ACEOF
23615 :end
23616 s/|#_!!_#|//g
23617 CEOF$ac_eof
23618 _ACEOF
23619
23620
23621 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23622 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23623 # trailing colons and then remove the whole line if VPATH becomes empty
23624 # (actually we leave an empty line to preserve line numbers).
23625 if test "x$srcdir" = x.; then
23626 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23627 s/:*\$(srcdir):*/:/
23628 s/:*\${srcdir}:*/:/
23629 s/:*@srcdir@:*/:/
23630 s/^\([^=]*=[ ]*\):*/\1/
23631 s/:*$//
23632 s/^[^=]*=[ ]*$//
23633 }'
23634 fi
23635
23636 cat >>$CONFIG_STATUS <<\_ACEOF
23637 fi # test -n "$CONFIG_FILES"
23638
23639
23640 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23641 do
23642 case $ac_tag in
23643 :[FHLC]) ac_mode=$ac_tag; continue;;
23644 esac
23645 case $ac_mode$ac_tag in
23646 :[FHL]*:*);;
23647 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23648 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23649 { (exit 1); exit 1; }; };;
23650 :[FH]-) ac_tag=-:-;;
23651 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23652 esac
23653 ac_save_IFS=$IFS
23654 IFS=:
23655 set x $ac_tag
23656 IFS=$ac_save_IFS
23657 shift
23658 ac_file=$1
23659 shift
23660
23661 case $ac_mode in
23662 :L) ac_source=$1;;
23663 :[FH])
23664 ac_file_inputs=
23665 for ac_f
23666 do
23667 case $ac_f in
23668 -) ac_f="$tmp/stdin";;
23669 *) # Look for the file first in the build tree, then in the source tree
23670 # (if the path is not absolute). The absolute path cannot be DOS-style,
23671 # because $ac_f cannot contain `:'.
23672 test -f "$ac_f" ||
23673 case $ac_f in
23674 [\\/$]*) false;;
23675 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23676 esac ||
23677 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23678 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23679 { (exit 1); exit 1; }; };;
23680 esac
23681 ac_file_inputs="$ac_file_inputs $ac_f"
23682 done
23683
23684 # Let's still pretend it is `configure' which instantiates (i.e., don't
23685 # use $as_me), people would be surprised to read:
23686 # /* config.h. Generated by config.status. */
23687 configure_input="Generated from "`IFS=:
23688 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23689 if test x"$ac_file" != x-; then
23690 configure_input="$ac_file. $configure_input"
23691 { echo "$as_me:$LINENO: creating $ac_file" >&5
23692 echo "$as_me: creating $ac_file" >&6;}
23693 fi
23694
23695 case $ac_tag in
23696 *:-:* | *:-) cat >"$tmp/stdin";;
23697 esac
23698 ;;
23699 esac
23700
23701 ac_dir=`$as_dirname -- "$ac_file" ||
23702 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23703 X"$ac_file" : 'X\(//\)[^/]' \| \
23704 X"$ac_file" : 'X\(//\)$' \| \
23705 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23706 echo X"$ac_file" |
23707 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23708 s//\1/
23709 q
23710 }
23711 /^X\(\/\/\)[^/].*/{
23712 s//\1/
23713 q
23714 }
23715 /^X\(\/\/\)$/{
23716 s//\1/
23717 q
23718 }
23719 /^X\(\/\).*/{
23720 s//\1/
23721 q
23722 }
23723 s/.*/./; q'`
23724 { as_dir="$ac_dir"
23725 case $as_dir in #(
23726 -*) as_dir=./$as_dir;;
23727 esac
23728 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23729 as_dirs=
23730 while :; do
23731 case $as_dir in #(
23732 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23733 *) as_qdir=$as_dir;;
23734 esac
23735 as_dirs="'$as_qdir' $as_dirs"
23736 as_dir=`$as_dirname -- "$as_dir" ||
23737 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23738 X"$as_dir" : 'X\(//\)[^/]' \| \
23739 X"$as_dir" : 'X\(//\)$' \| \
23740 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23741 echo X"$as_dir" |
23742 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23743 s//\1/
23744 q
23745 }
23746 /^X\(\/\/\)[^/].*/{
23747 s//\1/
23748 q
23749 }
23750 /^X\(\/\/\)$/{
23751 s//\1/
23752 q
23753 }
23754 /^X\(\/\).*/{
23755 s//\1/
23756 q
23757 }
23758 s/.*/./; q'`
23759 test -d "$as_dir" && break
23760 done
23761 test -z "$as_dirs" || eval "mkdir $as_dirs"
23762 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23763 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23764 { (exit 1); exit 1; }; }; }
23765 ac_builddir=.
23766
23767 case "$ac_dir" in
23768 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23769 *)
23770 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23771 # A ".." for each directory in $ac_dir_suffix.
23772 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23773 case $ac_top_builddir_sub in
23774 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23775 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23776 esac ;;
23777 esac
23778 ac_abs_top_builddir=$ac_pwd
23779 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23780 # for backward compatibility:
23781 ac_top_builddir=$ac_top_build_prefix
23782
23783 case $srcdir in
23784 .) # We are building in place.
23785 ac_srcdir=.
23786 ac_top_srcdir=$ac_top_builddir_sub
23787 ac_abs_top_srcdir=$ac_pwd ;;
23788 [\\/]* | ?:[\\/]* ) # Absolute name.
23789 ac_srcdir=$srcdir$ac_dir_suffix;
23790 ac_top_srcdir=$srcdir
23791 ac_abs_top_srcdir=$srcdir ;;
23792 *) # Relative name.
23793 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23794 ac_top_srcdir=$ac_top_build_prefix$srcdir
23795 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23796 esac
23797 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23798
23799
23800 case $ac_mode in
23801 :F)
23802 #
23803 # CONFIG_FILE
23804 #
23805
23806 case $INSTALL in
23807 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23808 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23809 esac
23810 _ACEOF
23811
23812 cat >>$CONFIG_STATUS <<\_ACEOF
23813 # If the template does not know about datarootdir, expand it.
23814 # FIXME: This hack should be removed a few years after 2.60.
23815 ac_datarootdir_hack=; ac_datarootdir_seen=
23816
23817 case `sed -n '/datarootdir/ {
23818 p
23819 q
23820 }
23821 /@datadir@/p
23822 /@docdir@/p
23823 /@infodir@/p
23824 /@localedir@/p
23825 /@mandir@/p
23826 ' $ac_file_inputs` in
23827 *datarootdir*) ac_datarootdir_seen=yes;;
23828 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23829 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23830 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23831 _ACEOF
23832 cat >>$CONFIG_STATUS <<_ACEOF
23833 ac_datarootdir_hack='
23834 s&@datadir@&$datadir&g
23835 s&@docdir@&$docdir&g
23836 s&@infodir@&$infodir&g
23837 s&@localedir@&$localedir&g
23838 s&@mandir@&$mandir&g
23839 s&\\\${datarootdir}&$datarootdir&g' ;;
23840 esac
23841 _ACEOF
23842
23843 # Neutralize VPATH when `$srcdir' = `.'.
23844 # Shell code in configure.ac might set extrasub.
23845 # FIXME: do we really want to maintain this feature?
23846 cat >>$CONFIG_STATUS <<_ACEOF
23847 sed "$ac_vpsub
23848 $extrasub
23849 _ACEOF
23850 cat >>$CONFIG_STATUS <<\_ACEOF
23851 :t
23852 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23853 s&@configure_input@&$configure_input&;t t
23854 s&@top_builddir@&$ac_top_builddir_sub&;t t
23855 s&@srcdir@&$ac_srcdir&;t t
23856 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23857 s&@top_srcdir@&$ac_top_srcdir&;t t
23858 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23859 s&@builddir@&$ac_builddir&;t t
23860 s&@abs_builddir@&$ac_abs_builddir&;t t
23861 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23862 s&@INSTALL@&$ac_INSTALL&;t t
23863 $ac_datarootdir_hack
23864 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23865
23866 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23867 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23868 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23869 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23870 which seems to be undefined. Please make sure it is defined." >&5
23871 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23872 which seems to be undefined. Please make sure it is defined." >&2;}
23873
23874 rm -f "$tmp/stdin"
23875 case $ac_file in
23876 -) cat "$tmp/out"; rm -f "$tmp/out";;
23877 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23878 esac
23879 ;;
23880 :H)
23881 #
23882 # CONFIG_HEADER
23883 #
23884 _ACEOF
23885
23886 # Transform confdefs.h into a sed script `conftest.defines', that
23887 # substitutes the proper values into config.h.in to produce config.h.
23888 rm -f conftest.defines conftest.tail
23889 # First, append a space to every undef/define line, to ease matching.
23890 echo 's/$/ /' >conftest.defines
23891 # Then, protect against being on the right side of a sed subst, or in
23892 # an unquoted here document, in config.status. If some macros were
23893 # called several times there might be several #defines for the same
23894 # symbol, which is useless. But do not sort them, since the last
23895 # AC_DEFINE must be honored.
23896 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23897 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23898 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23899 # PARAMS is the parameter list in the macro definition--in most cases, it's
23900 # just an empty string.
23901 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23902 ac_dB='\\)[ (].*,\\1define\\2'
23903 ac_dC=' '
23904 ac_dD=' ,'
23905
23906 uniq confdefs.h |
23907 sed -n '
23908 t rset
23909 :rset
23910 s/^[ ]*#[ ]*define[ ][ ]*//
23911 t ok
23912 d
23913 :ok
23914 s/[\\&,]/\\&/g
23915 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23916 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23917 ' >>conftest.defines
23918
23919 # Remove the space that was appended to ease matching.
23920 # Then replace #undef with comments. This is necessary, for
23921 # example, in the case of _POSIX_SOURCE, which is predefined and required
23922 # on some systems where configure will not decide to define it.
23923 # (The regexp can be short, since the line contains either #define or #undef.)
23924 echo 's/ $//
23925 s,^[ #]*u.*,/* & */,' >>conftest.defines
23926
23927 # Break up conftest.defines:
23928 ac_max_sed_lines=50
23929
23930 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23931 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23932 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23933 # et cetera.
23934 ac_in='$ac_file_inputs'
23935 ac_out='"$tmp/out1"'
23936 ac_nxt='"$tmp/out2"'
23937
23938 while :
23939 do
23940 # Write a here document:
23941 cat >>$CONFIG_STATUS <<_ACEOF
23942 # First, check the format of the line:
23943 cat >"\$tmp/defines.sed" <<\\CEOF
23944 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23945 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23946 b
23947 :def
23948 _ACEOF
23949 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23950 echo 'CEOF
23951 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23952 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23953 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23954 grep . conftest.tail >/dev/null || break
23955 rm -f conftest.defines
23956 mv conftest.tail conftest.defines
23957 done
23958 rm -f conftest.defines conftest.tail
23959
23960 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23961 cat >>$CONFIG_STATUS <<\_ACEOF
23962 if test x"$ac_file" != x-; then
23963 echo "/* $configure_input */" >"$tmp/config.h"
23964 cat "$ac_result" >>"$tmp/config.h"
23965 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23966 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23967 echo "$as_me: $ac_file is unchanged" >&6;}
23968 else
23969 rm -f $ac_file
23970 mv "$tmp/config.h" $ac_file
23971 fi
23972 else
23973 echo "/* $configure_input */"
23974 cat "$ac_result"
23975 fi
23976 rm -f "$tmp/out12"
23977 ;;
23978
23979 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23980 echo "$as_me: executing $ac_file commands" >&6;}
23981 ;;
23982 esac
23983
23984
23985 case $ac_file$ac_mode in
23986 "default":C)
23987
23988 ### Make the necessary directories, if they don't exist.
23989 for dir in etc lisp ; do
23990 test -d ${dir} || mkdir ${dir}
23991 done
23992
23993 # Build src/Makefile from ${srcdir}/src/Makefile.c
23994 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
23995 # This must be done after src/config.h is built, since we rely on that file.
23996
23997 # Now get this: Some word that is part of the ${srcdir} directory name
23998 # or the ${configuration} value might, just might, happen to be an
23999 # identifier like `sun4' or `i386' or something, and be predefined by
24000 # the C preprocessor to some helpful value like 1, or maybe the empty
24001 # string. Needless to say consequent macro substitutions are less
24002 # than conducive to the makefile finding the correct directory.
24003 undefs="`echo $top_srcdir $configuration $canonical |
24004 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24005 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24006 `"
24007
24008 echo creating src/epaths.h
24009 ${MAKE-make} epaths-force
24010
24011 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24012 # `..' to `. .' unless invoked with -traditional
24013
24014 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24015 CPPFLAGS="$CPPFLAGS -traditional"
24016 fi
24017
24018 echo creating lib-src/Makefile
24019 ( cd lib-src
24020 rm -f junk.c junk1.c junk2.c
24021 sed -e '/start of cpp stuff/q' \
24022 < Makefile.c > junk1.c
24023 sed -e '1,/start of cpp stuff/d'\
24024 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24025 < Makefile.c > junk.c
24026 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24027 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24028 cat junk1.c junk2.c > Makefile.new
24029 rm -f junk.c junk1.c junk2.c
24030 chmod 444 Makefile.new
24031 mv -f Makefile.new Makefile
24032 )
24033
24034 echo creating src/Makefile
24035 ( cd src
24036 rm -f junk.c junk1.c junk2.c
24037 sed -e '/start of cpp stuff/q' \
24038 < Makefile.c > junk1.c
24039 sed -e '1,/start of cpp stuff/d'\
24040 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24041 < Makefile.c > junk.c
24042 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24043 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24044 cat junk1.c junk2.c > Makefile.new
24045 rm -f junk.c junk1.c junk2.c
24046 chmod 444 Makefile.new
24047 mv -f Makefile.new Makefile
24048 )
24049
24050 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24051 echo creating src/.gdbinit
24052 echo source $srcdir/src/.gdbinit > src/.gdbinit
24053 fi
24054
24055 # This is how we know whether to re-run configure in certain cases.
24056 touch src/config.stamp
24057
24058 ;;
24059
24060 esac
24061 done # for ac_tag
24062
24063
24064 { (exit 0); exit 0; }
24065 _ACEOF
24066 chmod +x $CONFIG_STATUS
24067 ac_clean_files=$ac_clean_files_save
24068
24069
24070 # configure is writing to config.log, and then calls config.status.
24071 # config.status does its own redirection, appending to config.log.
24072 # Unfortunately, on DOS this fails, as config.log is still kept open
24073 # by configure, so config.status won't be able to write to it; its
24074 # output is simply discarded. So we exec the FD to /dev/null,
24075 # effectively closing config.log, so it can be properly (re)opened and
24076 # appended to by config.status. When coming back to configure, we
24077 # need to make the FD available again.
24078 if test "$no_create" != yes; then
24079 ac_cs_success=:
24080 ac_config_status_args=
24081 test "$silent" = yes &&
24082 ac_config_status_args="$ac_config_status_args --quiet"
24083 exec 5>/dev/null
24084 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24085 exec 5>>config.log
24086 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24087 # would make configure fail if this is the last instruction.
24088 $ac_cs_success || { (exit 1); exit 1; }
24089 fi
24090
24091