]> code.delx.au - gnu-emacs/blob - configure
(bootstrap-gmake): Pass XMFLAGS="$(XMFLAGS)" command-line argument to sub-Make
[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 powerpc-apple-netbsd*) machine=macppc ;;
2228 mips-*-netbsd*) machine=pmax ;;
2229 mipsel-*-netbsd*) machine=pmax ;;
2230 mipseb-*-netbsd*) machine=pmax ;;
2231 ns32k-*-netbsd*) machine=ns32000 ;;
2232 powerpc-*-netbsd*) machine=macppc ;;
2233 sparc*-*-netbsd*) machine=sparc ;;
2234 vax-*-netbsd*) machine=vax ;;
2235 arm-*-netbsd*) machine=arm ;;
2236 esac
2237 ;;
2238
2239 ## OpenBSD ports
2240 *-*-openbsd* )
2241 opsys=openbsd
2242 case "${canonical}" in
2243 alpha*-*-openbsd*) machine=alpha ;;
2244 i386-*-openbsd*) machine=intel386 ;;
2245 x86_64-*-openbsd*) machine=amdx86-64 ;;
2246 m68k-*-openbsd*) machine=hp9000s300 ;;
2247 mipsel-*-openbsd*) machine=pmax ;;
2248 ns32k-*-openbsd*) machine=ns32000 ;;
2249 sparc-*-openbsd*) machine=sparc ;;
2250 vax-*-openbsd*) machine=vax ;;
2251 esac
2252 ;;
2253
2254 ## LynxOS ports
2255 *-*-lynxos* )
2256 opsys=lynxos
2257 case "${canonical}" in
2258 i[3456]86-*-lynxos*) machine=intel386 ;;
2259 powerpc-*-lynxos*) machine=powerpc ;;
2260 esac
2261 ;;
2262
2263 ## Acorn RISCiX:
2264 arm-acorn-riscix1.1* )
2265 machine=acorn opsys=riscix1-1
2266 ;;
2267 arm-acorn-riscix1.2* | arm-acorn-riscix )
2268 ## This name is riscix12 instead of riscix1.2
2269 ## to avoid a file name conflict on MSDOS.
2270 machine=acorn opsys=riscix12
2271 ;;
2272
2273 ## BSDI ports
2274 *-*-bsdi* )
2275 opsys=bsdi
2276 case "${canonical}" in
2277 i[345]86-*-bsdi*) machine=intel386 ;;
2278 sparc-*-bsdi*) machine=sparc ;;
2279 powerpc-*-bsdi*) machine=macppc ;;
2280 esac
2281 case "${canonical}" in
2282 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2283 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2284 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2285 *-*-bsdi3* ) opsys=bsdos3 ;;
2286 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2287 esac
2288 ;;
2289
2290 ## Alliant machines
2291 ## Strictly speaking, we need the version of the alliant operating
2292 ## system to choose the right machine file, but currently the
2293 ## configuration name doesn't tell us enough to choose the right
2294 ## one; we need to give alliants their own operating system name to
2295 ## do this right. When someone cares, they can help us.
2296 fx80-alliant-* )
2297 machine=alliant4 opsys=bsd4-2
2298 ;;
2299 i860-alliant-* )
2300 machine=alliant-2800 opsys=bsd4-3
2301 ;;
2302
2303 ## Alpha (DEC) machines.
2304 alpha*-dec-osf* )
2305 machine=alpha opsys=osf1
2306 # This is needed to find X11R6.1 libraries for certain tests.
2307 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2308 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2309 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2310 # due to non-traditional preprocessing with the current compiler
2311 # defaults. OSF 4 can also have that compiler version, and there
2312 # seems always to have been a usable /usr/bin/cpp.
2313 NON_GNU_CPP=/usr/bin/cpp
2314 case "${canonical}" in
2315 alpha*-dec-osf[5-9]*)
2316 opsys=osf5-0 ;;
2317 esac
2318 ;;
2319
2320 alpha*-*-linux-gnu* )
2321 machine=alpha opsys=gnu-linux
2322 ;;
2323
2324 arm*-*-linux-gnu* )
2325 machine=arm opsys=gnu-linux
2326 ;;
2327
2328 ## Altos 3068
2329 m68*-altos-sysv* )
2330 machine=altos opsys=usg5-2
2331 ;;
2332
2333 ## Amdahl UTS
2334 580-amdahl-sysv* )
2335 machine=amdahl opsys=usg5-2-2
2336 ;;
2337
2338 ## Apollo, Domain/OS
2339 m68*-apollo-* )
2340 machine=apollo opsys=bsd4-3
2341 ;;
2342
2343 ## AT&T 3b2, 3b5, 3b15, 3b20
2344 we32k-att-sysv* )
2345 machine=att3b opsys=usg5-2-2
2346 ;;
2347
2348 ## AT&T 3b1 - The Mighty Unix PC!
2349 m68*-att-sysv* )
2350 machine=7300 opsys=usg5-2-2
2351 ;;
2352
2353 ## Bull dpx20
2354 rs6000-bull-bosx* )
2355 machine=ibmrs6000 opsys=aix3-2
2356 ;;
2357
2358 ## Bull dpx2
2359 m68*-bull-sysv3* )
2360 machine=dpx2 opsys=usg5-3
2361 ;;
2362
2363 ## Bull sps7
2364 m68*-bull-sysv2* )
2365 machine=sps7 opsys=usg5-2
2366 ;;
2367
2368 ## CCI 5/32, 6/32 -- see "Tahoe".
2369
2370 ## Celerity
2371 ## I don't know what configuration name to use for this; config.sub
2372 ## doesn't seem to know anything about it. Hey, Celerity users, get
2373 ## in touch with us!
2374 celerity-celerity-bsd* )
2375 machine=celerity opsys=bsd4-2
2376 ;;
2377
2378 ## Clipper
2379 ## What operating systems does this chip run that Emacs has been
2380 ## tested on?
2381 clipper-* )
2382 machine=clipper
2383 ## We'll use the catch-all code at the bottom to guess the
2384 ## operating system.
2385 ;;
2386
2387 ## Compaq Nonstop
2388 mips-compaq-nonstopux* )
2389 machine=nonstopux opsys=nonstopux
2390 ;;
2391
2392 ## Convex
2393 *-convex-bsd* | *-convex-convexos* )
2394 machine=convex opsys=bsd4-3
2395 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2396 NON_GNU_CPP="cc -E -P"
2397 ;;
2398
2399 ## Cubix QBx/386
2400 i[3456]86-cubix-sysv* )
2401 machine=intel386 opsys=usg5-3
2402 ;;
2403
2404 ## Cydra 5
2405 cydra*-cydrome-sysv* )
2406 machine=cydra5 opsys=usg5-3
2407 ;;
2408
2409 ## Data General AViiON Machines
2410 ## DG changed naming conventions with the release of 5.4.4.10, they
2411 ## dropped the initial 5.4 but left the intervening R. Because of the
2412 ## R this shouldn't conflict with older versions of the OS (which I
2413 ## think were named like dgux4.*). In addition, DG new AViiONs series
2414 ## uses either Motorola M88k or Intel Pentium CPUs.
2415 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
2416 machine=aviion opsys=dgux4
2417 ;;
2418 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
2419 ## This name is dgux5-4-3 instead of dgux5-4r3
2420 ## to avoid a file name conflict on MSDOS.
2421 machine=aviion opsys=dgux5-4-3
2422 ;;
2423 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
2424 machine=aviion opsys=dgux5-4r2
2425 ;;
2426 m88k-dg-dgux* )
2427 machine=aviion opsys=dgux
2428 ;;
2429
2430 ## Data General AViiON Intel (x86) Machines
2431 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2432 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2433 i[345]86-dg-dguxR4* )
2434 machine=aviion-intel opsys=dgux4
2435 ;;
2436
2437 ## DECstations
2438 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2439 machine=pmax opsys=bsd4-2
2440 ;;
2441 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2442 machine=pmax opsys=bsd4-3
2443 ;;
2444 mips-dec-ultrix* )
2445 machine=pmax opsys=ultrix4-3
2446 ;;
2447 mips-dec-osf* )
2448 machine=pmax opsys=osf1
2449 ;;
2450 mips-dec-mach_bsd4.3* )
2451 machine=pmax opsys=mach-bsd4-3
2452 ;;
2453
2454 ## Motorola Delta machines
2455 m68k-motorola-sysv* | m68000-motorola-sysv* )
2456 machine=delta opsys=usg5-3
2457 if test -z "`type gnucc | grep 'not found'`"
2458 then
2459 if test -s /etc/167config
2460 then CC="gnucc -m68040"
2461 else CC="gnucc -m68881"
2462 fi
2463 else
2464 if test -z "`type gcc | grep 'not found'`"
2465 then CC=gcc
2466 else CC=cc
2467 fi
2468 fi
2469 ;;
2470 m88k-motorola-sysv4* )
2471 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2472 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2473 # I hope there are not other 4.0 versions for this machine
2474 # which really need usg5-4 instead.
2475 machine=delta88k opsys=usg5-4-2
2476 ;;
2477 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2478 machine=delta88k opsys=usg5-3
2479 ;;
2480
2481 ## Dual machines
2482 m68*-dual-sysv* )
2483 machine=dual opsys=usg5-2
2484 ;;
2485 m68*-dual-uniplus* )
2486 machine=dual opsys=unipl5-2
2487 ;;
2488
2489 ## Elxsi 6400
2490 elxsi-elxsi-sysv* )
2491 machine=elxsi opsys=usg5-2
2492 ;;
2493
2494 ## Encore machines
2495 ns16k-encore-bsd* )
2496 machine=ns16000 opsys=umax
2497 ;;
2498
2499 ## The GEC 63 - apparently, this port isn't really finished yet.
2500 # I'm sure we finished off the last of the machines, though. -- fx
2501
2502 ## Gould Power Node and NP1
2503 pn-gould-bsd4.2* )
2504 machine=gould opsys=bsd4-2
2505 ;;
2506 pn-gould-bsd4.3* )
2507 machine=gould opsys=bsd4-3
2508 ;;
2509 np1-gould-bsd* )
2510 machine=gould-np1 opsys=bsd4-3
2511 ;;
2512
2513 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2514 ## as far as Emacs is concerned).
2515 m88k-harris-cxux* )
2516 # Build needs to be different on 7.0 and later releases
2517 case "`uname -r`" in
2518 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2519 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2520 esac
2521 NON_GNU_CPP="/lib/cpp"
2522 ;;
2523 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2524 m68k-harris-cxux* )
2525 machine=nh3000 opsys=cxux
2526 ;;
2527 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2528 powerpc-harris-powerunix )
2529 machine=nh6000 opsys=powerunix
2530 NON_GNU_CPP="cc -Xo -E -P"
2531 ;;
2532 ## SR2001/SR2201 running HI-UX/MPP
2533 hppa1.1-hitachi-hiuxmpp* )
2534 machine=sr2k opsys=hiuxmpp
2535 ;;
2536 hppa1.1-hitachi-hiuxwe2* )
2537 machine=sr2k opsys=hiuxwe2
2538 ;;
2539 ## Honeywell XPS100
2540 xps*-honeywell-sysv* )
2541 machine=xps100 opsys=usg5-2
2542 ;;
2543
2544 ## HP 9000 series 200 or 300
2545 m68*-hp-bsd* )
2546 machine=hp9000s300 opsys=bsd4-3
2547 ;;
2548 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2549 m68*-hp-hpux* )
2550 case "`uname -r`" in
2551 ## Someone's system reports A.B8.05 for this.
2552 ## I wonder what other possibilities there are.
2553 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2554 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2555 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2556 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2557 *) machine=hp9000s300 opsys=hpux ;;
2558 esac
2559 ;;
2560
2561 ## HP 9000 series 700 and 800, running HP/UX
2562 hppa*-hp-hpux7* )
2563 machine=hp800 opsys=hpux
2564 ;;
2565 hppa*-hp-hpux8* )
2566 machine=hp800 opsys=hpux8
2567 ;;
2568 hppa*-hp-hpux9shr* )
2569 machine=hp800 opsys=hpux9shr
2570 ;;
2571 hppa*-hp-hpux9* )
2572 machine=hp800 opsys=hpux9
2573 ;;
2574 hppa*-hp-hpux10.2* )
2575 machine=hp800 opsys=hpux10-20
2576 ;;
2577 hppa*-hp-hpux10* )
2578 machine=hp800 opsys=hpux10
2579 ;;
2580 hppa*-hp-hpux1[1-9]* )
2581 machine=hp800 opsys=hpux11
2582 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2583 ;;
2584
2585 hppa*-*-linux-gnu* )
2586 machine=hp800 opsys=gnu-linux
2587 ;;
2588
2589 ## HP 9000 series 700 and 800, running HP/UX
2590 hppa*-hp-hpux* )
2591 ## Cross-compilation? Nah!
2592 case "`uname -r`" in
2593 ## Someone's system reports A.B8.05 for this.
2594 ## I wonder what other possibilities there are.
2595 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2596 *.08.* ) machine=hp800 opsys=hpux8 ;;
2597 *.09.* ) machine=hp800 opsys=hpux9 ;;
2598 *) machine=hp800 opsys=hpux10 ;;
2599 esac
2600 ;;
2601 hppa*-*-nextstep* )
2602 machine=hp800 opsys=nextstep
2603 ;;
2604
2605 ## Orion machines
2606 orion-orion-bsd* )
2607 machine=orion opsys=bsd4-2
2608 ;;
2609 clipper-orion-bsd* )
2610 machine=orion105 opsys=bsd4-2
2611 ;;
2612
2613 ## IBM machines
2614 i[3456]86-ibm-aix1.1* )
2615 machine=ibmps2-aix opsys=usg5-2-2
2616 ;;
2617 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2618 machine=ibmps2-aix opsys=usg5-3
2619 ;;
2620 i370-ibm-aix*)
2621 machine=ibm370aix opsys=usg5-3
2622 ;;
2623 s390-*-linux-gnu* )
2624 machine=ibms390 opsys=gnu-linux
2625 ;;
2626 s390x-*-linux-gnu* )
2627 machine=ibms390x opsys=gnu-linux
2628 ;;
2629 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2630 machine=ibmrs6000 opsys=aix3-1
2631 ;;
2632 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2633 machine=ibmrs6000 opsys=aix3-2-5
2634 ;;
2635 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2636 machine=ibmrs6000 opsys=aix4-1
2637 ;;
2638 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2639 machine=ibmrs6000 opsys=aix4-2
2640 ;;
2641 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2642 machine=ibmrs6000 opsys=aix4-2
2643 ;;
2644 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2645 machine=ibmrs6000 opsys=aix4
2646 ;;
2647 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2648 machine=ibmrs6000 opsys=aix4-1
2649 ;;
2650 rs6000-ibm-aix* | powerpc-ibm-aix* )
2651 machine=ibmrs6000 opsys=aix3-2
2652 ;;
2653 romp-ibm-bsd4.3* )
2654 machine=ibmrt opsys=bsd4-3
2655 ;;
2656 romp-ibm-bsd4.2* )
2657 machine=ibmrt opsys=bsd4-2
2658 ;;
2659 romp-ibm-aos4.3* )
2660 machine=ibmrt opsys=bsd4-3
2661 ;;
2662 romp-ibm-aos4.2* )
2663 machine=ibmrt opsys=bsd4-2
2664 ;;
2665 romp-ibm-aos* )
2666 machine=ibmrt opsys=bsd4-3
2667 ;;
2668 romp-ibm-bsd* )
2669 machine=ibmrt opsys=bsd4-3
2670 ;;
2671 romp-ibm-aix* )
2672 machine=ibmrt-aix opsys=usg5-2-2
2673 ;;
2674
2675 ## Integrated Solutions `Optimum V'
2676 m68*-isi-bsd4.2* )
2677 machine=isi-ov opsys=bsd4-2
2678 ;;
2679 m68*-isi-bsd4.3* )
2680 machine=isi-ov opsys=bsd4-3
2681 ;;
2682
2683 ## Intel 386 machines where we do care about the manufacturer
2684 i[3456]86-intsys-sysv* )
2685 machine=is386 opsys=usg5-2-2
2686 ;;
2687
2688 ## Prime EXL
2689 i[3456]86-prime-sysv* )
2690 machine=i386 opsys=usg5-3
2691 ;;
2692
2693 ## Sequent Symmetry running Dynix
2694 i[3456]86-sequent-bsd* )
2695 machine=symmetry opsys=bsd4-3
2696 ;;
2697
2698 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2699 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2700 machine=sequent-ptx opsys=ptx4
2701 NON_GNU_CPP=/lib/cpp
2702 ;;
2703
2704 ## Sequent Symmetry running DYNIX/ptx
2705 ## Use the old cpp rather than the newer ANSI one.
2706 i[3456]86-sequent-ptx* )
2707 machine=sequent-ptx opsys=ptx
2708 NON_GNU_CPP="/lib/cpp"
2709 ;;
2710
2711 ## ncr machine running svr4.3.
2712 i[3456]86-ncr-sysv4.3 )
2713 machine=ncr386 opsys=usg5-4-3
2714 ;;
2715
2716 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2717 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2718 i[3456]86-ncr-sysv* )
2719 machine=ncr386 opsys=usg5-4-2
2720 ;;
2721
2722 ## Intel Paragon OSF/1
2723 i860-intel-osf1* )
2724 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2725 ;;
2726
2727 ## Intel 860
2728 i860-*-sysv4* )
2729 machine=i860 opsys=usg5-4
2730 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2731 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2732 ;;
2733
2734 ## Macintosh PowerPC
2735 powerpc*-*-linux-gnu* )
2736 machine=macppc opsys=gnu-linux
2737 ;;
2738
2739 ## Masscomp machines
2740 m68*-masscomp-rtu* )
2741 machine=masscomp opsys=rtu
2742 ;;
2743
2744 ## Megatest machines
2745 m68*-megatest-bsd* )
2746 machine=mega68 opsys=bsd4-2
2747 ;;
2748
2749 ## Workstations sold by MIPS
2750 ## This is not necessarily all workstations using the MIPS processor -
2751 ## Irises are produced by SGI, and DECstations by DEC.
2752
2753 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2754 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2755 ## it gives for choosing between the alternatives seems to be "Use
2756 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2757 ## the BSD world." I'll assume that these are instructions for
2758 ## handling two odd situations, and that every other situation
2759 ## should use mips.h and usg5-2-2, they being listed first.
2760 mips-mips-usg* )
2761 machine=mips4
2762 ## Fall through to the general code at the bottom to decide on the OS.
2763 ;;
2764 mips-mips-riscos4* )
2765 machine=mips4 opsys=bsd4-3
2766 NON_GNU_CC="cc -systype bsd43"
2767 NON_GNU_CPP="cc -systype bsd43 -E"
2768 ;;
2769 mips-mips-riscos5* )
2770 machine=mips4 opsys=riscos5
2771 NON_GNU_CC="cc -systype bsd43"
2772 NON_GNU_CPP="cc -systype bsd43 -E"
2773 ;;
2774 mips-mips-bsd* )
2775 machine=mips opsys=bsd4-3
2776 ;;
2777 mips-mips-* )
2778 machine=mips opsys=usg5-2-2
2779 ;;
2780
2781 ## NeXT
2782 m68*-next-* | m68k-*-nextstep* )
2783 machine=m68k opsys=nextstep
2784 ;;
2785
2786 ## The complete machine from National Semiconductor
2787 ns32k-ns-genix* )
2788 machine=ns32000 opsys=usg5-2
2789 ;;
2790
2791 ## NCR machines
2792 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2793 machine=tower32 opsys=usg5-2-2
2794 ;;
2795 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2796 machine=tower32v3 opsys=usg5-3
2797 ;;
2798
2799 ## NEC EWS4800
2800 mips-nec-sysv4*)
2801 machine=ews4800 opsys=ux4800
2802 ;;
2803
2804 ## Nixdorf Targon 31
2805 m68*-nixdorf-sysv* )
2806 machine=targon31 opsys=usg5-2-2
2807 ;;
2808
2809 ## Nu (TI or LMI)
2810 m68*-nu-sysv* )
2811 machine=nu opsys=usg5-2
2812 ;;
2813
2814 ## Plexus
2815 m68*-plexus-sysv* )
2816 machine=plexus opsys=usg5-2
2817 ;;
2818
2819 ## Pyramid machines
2820 ## I don't really have any idea what sort of processor the Pyramid has,
2821 ## so I'm assuming it is its own architecture.
2822 pyramid-pyramid-bsd* )
2823 machine=pyramid opsys=bsd4-2
2824 ;;
2825
2826 ## Sequent Balance
2827 ns32k-sequent-bsd4.2* )
2828 machine=sequent opsys=bsd4-2
2829 ;;
2830 ns32k-sequent-bsd4.3* )
2831 machine=sequent opsys=bsd4-3
2832 ;;
2833
2834 ## Siemens Nixdorf
2835 mips-siemens-sysv* | mips-sni-sysv*)
2836 machine=mips-siemens opsys=usg5-4
2837 NON_GNU_CC=/usr/ccs/bin/cc
2838 NON_GNU_CPP=/usr/ccs/lib/cpp
2839 ;;
2840
2841 ## Silicon Graphics machines
2842 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2843 m68*-sgi-iris3.5* )
2844 machine=irist opsys=iris3-5
2845 ;;
2846 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2847 machine=irist opsys=iris3-6
2848 ;;
2849 ## Iris 4D
2850 mips-sgi-irix3* )
2851 machine=iris4d opsys=irix3-3
2852 ;;
2853 mips-sgi-irix4* )
2854 machine=iris4d opsys=irix4-0
2855 ;;
2856 mips-sgi-irix6.5 )
2857 machine=iris4d opsys=irix6-5
2858 # Without defining _LANGUAGE_C, things get masked out in the headers
2859 # so that, for instance, grepping for `free' in stdlib.h fails and
2860 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2861 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2862 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2863 ;;
2864 mips-sgi-irix6* )
2865 machine=iris4d opsys=irix6-0
2866 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2867 # but presumably it does no harm.
2868 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2869 # -32 probably isn't necessary in later v.6s -- anyone know which?
2870 NON_GCC_TEST_OPTIONS=-32
2871 ;;
2872 mips-sgi-irix5.[01]* )
2873 machine=iris4d opsys=irix5-0
2874 ;;
2875 mips-sgi-irix5* | mips-sgi-irix* )
2876 machine=iris4d opsys=irix5-2
2877 ;;
2878
2879 ## SONY machines
2880 m68*-sony-bsd4.2* )
2881 machine=news opsys=bsd4-2
2882 ;;
2883 m68*-sony-bsd4.3* )
2884 machine=news opsys=bsd4-3
2885 ;;
2886 m68*-sony-newsos3* | m68*-sony-news3*)
2887 machine=news opsys=bsd4-3
2888 ;;
2889 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2890 machine=news-risc opsys=bsd4-3
2891 ;;
2892 mips-sony-newsos6* )
2893 machine=news-r6 opsys=newsos6
2894 ;;
2895 mips-sony-news* )
2896 machine=news-risc opsys=newsos5
2897 ;;
2898
2899 ## Stride
2900 m68*-stride-sysv* )
2901 machine=stride opsys=usg5-2
2902 ;;
2903
2904 ## Suns
2905 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2906 machine=sparc opsys=gnu-linux
2907 ;;
2908
2909 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2910 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2911 | rs6000-*-solaris2*)
2912 case "${canonical}" in
2913 m68*-sunos1* ) machine=sun1 ;;
2914 m68*-sunos2* ) machine=sun2 ;;
2915 m68* ) machine=sun3 ;;
2916 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2917 i[3456]86-*-* ) machine=intel386 ;;
2918 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2919 powerpcle* ) machine=powerpcle ;;
2920 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2921 sparc* ) machine=sparc ;;
2922 * ) unported=yes ;;
2923 esac
2924 case "${canonical}" in
2925 ## The Sun386 didn't get past 4.0.
2926 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2927 *-sunos4.0* ) opsys=sunos4-0 ;;
2928 *-sunos4.1.[3-9]*noshare )
2929 ## This name is sunos413 instead of sunos4-1-3
2930 ## to avoid a file name conflict on MSDOS.
2931 opsys=sunos413
2932 NON_GNU_CPP=/usr/lib/cpp
2933 NON_GCC_TEST_OPTIONS=-Bstatic
2934 GCC_TEST_OPTIONS=-static
2935 ;;
2936 *-sunos4.1.[3-9]* | *-sunos4shr*)
2937 opsys=sunos4shr
2938 NON_GNU_CPP=/usr/lib/cpp
2939 ;;
2940 *-sunos4* | *-sunos )
2941 opsys=sunos4-1
2942 NON_GCC_TEST_OPTIONS=-Bstatic
2943 GCC_TEST_OPTIONS=-static
2944 ;;
2945 *-sunos5.3* | *-solaris2.3* )
2946 opsys=sol2-3
2947 NON_GNU_CPP=/usr/ccs/lib/cpp
2948 ;;
2949 *-sunos5.4* | *-solaris2.4* )
2950 opsys=sol2-4
2951 NON_GNU_CPP=/usr/ccs/lib/cpp
2952 RANLIB="ar -ts"
2953 ;;
2954 *-sunos5.5* | *-solaris2.5* )
2955 opsys=sol2-5
2956 NON_GNU_CPP=/usr/ccs/lib/cpp
2957 RANLIB="ar -ts"
2958 ;;
2959 *-sunos5.6* | *-solaris2.6* )
2960 opsys=sol2-6
2961 NON_GNU_CPP=/usr/ccs/lib/cpp
2962 RANLIB="ar -ts"
2963 ;;
2964 *-sunos5* | *-solaris* )
2965 opsys=sol2-6
2966 NON_GNU_CPP=/usr/ccs/lib/cpp
2967 ;;
2968 * ) opsys=bsd4-2 ;;
2969 esac
2970 ## Watch out for a compiler that we know will not work.
2971 case "${canonical}" in
2972 *-solaris* | *-sunos5* )
2973 if [ "x$CC" = x/usr/ucb/cc ]; then
2974 ## /usr/ucb/cc doesn't work;
2975 ## we should find some other compiler that does work.
2976 unset CC
2977 fi
2978 ;;
2979 *) ;;
2980 esac
2981 ;;
2982 sparc-*-nextstep* )
2983 machine=sparc opsys=nextstep
2984 ;;
2985
2986 ## Tadpole 68k
2987 m68*-tadpole-sysv* )
2988 machine=tad68k opsys=usg5-3
2989 ;;
2990
2991 ## Tahoe machines
2992 tahoe-tahoe-bsd4.2* )
2993 machine=tahoe opsys=bsd4-2
2994 ;;
2995 tahoe-tahoe-bsd4.3* )
2996 machine=tahoe opsys=bsd4-3
2997 ;;
2998
2999 ## Tandem Integrity S2
3000 mips-tandem-sysv* )
3001 machine=tandem-s2 opsys=usg5-3
3002 ;;
3003
3004 ## Tektronix XD88
3005 m88k-tektronix-sysv3* )
3006 machine=tekxd88 opsys=usg5-3
3007 ;;
3008
3009 ## Tektronix 16000 box (6130?)
3010 ns16k-tektronix-bsd* )
3011 machine=ns16000 opsys=bsd4-2
3012 ;;
3013 ## Tektronix 4300
3014 ## src/m/tek4300.h hints that this is a m68k machine.
3015 m68*-tektronix-bsd* )
3016 machine=tek4300 opsys=bsd4-3
3017 ;;
3018
3019 ## Titan P2 or P3
3020 ## We seem to have lost the machine-description file titan.h!
3021 titan-titan-sysv* )
3022 machine=titan opsys=usg5-3
3023 ;;
3024
3025 ## Ustation E30 (SS5E)
3026 m68*-unisys-uniplus* )
3027 machine=ustation opsystem=unipl5-2
3028 ;;
3029
3030 ## Vaxen.
3031 vax-dec-* )
3032 machine=vax
3033 case "${canonical}" in
3034 *-bsd4.1* ) opsys=bsd4-1 ;;
3035 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
3036 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
3037 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
3038 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
3039 *-vms* ) opsys=vms ;;
3040 * ) unported=yes
3041 esac
3042 ;;
3043
3044 ## Whitechapel MG1
3045 ns16k-whitechapel-* )
3046 machine=mg1
3047 ## We don't know what sort of OS runs on these; we'll let the
3048 ## operating system guessing code below try.
3049 ;;
3050
3051 ## Wicat
3052 m68*-wicat-sysv* )
3053 machine=wicat opsys=usg5-2
3054 ;;
3055
3056 ## IA-64
3057 ia64*-*-linux* )
3058 machine=ia64 opsys=gnu-linux
3059 ;;
3060
3061 ## Intel 386 machines where we don't care about the manufacturer
3062 i[3456]86-*-* )
3063 machine=intel386
3064 case "${canonical}" in
3065 *-cygwin ) opsys=cygwin ;;
3066 *-darwin* ) opsys=darwin
3067 CPP="${CC-cc} -E -no-cpp-precomp"
3068 ;;
3069 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
3070 *-isc2.2* ) opsys=isc2-2 ;;
3071 *-isc4.0* ) opsys=isc4-0 ;;
3072 *-isc4.* ) opsys=isc4-1
3073 GCC_TEST_OPTIONS=-posix
3074 NON_GCC_TEST_OPTIONS=-Xp
3075 ;;
3076 *-isc* ) opsys=isc3-0 ;;
3077 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
3078 *-esix* ) opsys=esix ;;
3079 *-xenix* ) opsys=xenix ;;
3080 *-linux-gnu* ) opsys=gnu-linux ;;
3081 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
3082 *-sco3.2v5* ) opsys=sco5
3083 NON_GNU_CPP=/lib/cpp
3084 # Prevent -belf from being passed to $CPP.
3085 # /lib/cpp does not accept it.
3086 OVERRIDE_CPPFLAGS=" "
3087 ;;
3088 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3089 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3090 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3091 *-386bsd* ) opsys=386bsd ;;
3092 *-nextstep* ) opsys=nextstep ;;
3093 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3094 esac
3095 ;;
3096
3097 ## m68k Linux-based GNU system
3098 m68k-*-linux-gnu* )
3099 machine=m68k opsys=gnu-linux
3100 ;;
3101
3102 ## Mips Linux-based GNU system
3103 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
3104 machine=mips opsys=gnu-linux
3105 ;;
3106
3107 ## UXP/DS
3108 sparc-fujitsu-sysv4* )
3109 machine=sparc opsys=uxpds
3110 NON_GNU_CPP=/usr/ccs/lib/cpp
3111 RANLIB="ar -ts"
3112 ;;
3113
3114 ## UXP/V
3115 f301-fujitsu-uxpv4.1)
3116 machine=f301 opsys=uxpv
3117 ;;
3118
3119 ## Darwin / Mac OS X
3120 powerpc-apple-darwin* )
3121 machine=powermac opsys=darwin
3122 # Define CPP as follows to make autoconf work correctly.
3123 CPP="${CC-cc} -E -no-cpp-precomp"
3124 # Use fink packages if available.
3125 if test -d /sw/include && test -d /sw/lib; then
3126 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
3127 CPP="${CPP} ${GCC_TEST_OPTIONS}"
3128 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
3129 fi
3130 ;;
3131
3132 ## AMD x86-64 Linux-based GNU system
3133 x86_64-*-linux-gnu* )
3134 machine=amdx86-64 opsys=gnu-linux
3135 ;;
3136
3137 * )
3138 unported=yes
3139 ;;
3140 esac
3141
3142 ### If the code above didn't choose an operating system, just choose
3143 ### an operating system based on the configuration name. You really
3144 ### only want to use this when you have no idea what the right
3145 ### operating system is; if you know what operating systems a machine
3146 ### runs, it's cleaner to make it explicit in the case statement
3147 ### above.
3148 if test x"${opsys}" = x; then
3149 case "${canonical}" in
3150 *-gnu* ) opsys=gnu ;;
3151 *-bsd4.[01] ) opsys=bsd4-1 ;;
3152 *-bsd4.2 ) opsys=bsd4-2 ;;
3153 *-bsd4.3 ) opsys=bsd4-3 ;;
3154 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
3155 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
3156 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
3157 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
3158 *-sysv4.2uw* ) opsys=unixware ;;
3159 *-sysv5uw* ) opsys=unixware ;;
3160 *-sysv5OpenUNIX* ) opsys=unixware ;;
3161 *-sysv4.1* | *-sysvr4.1* )
3162 NON_GNU_CPP=/usr/lib/cpp
3163 opsys=usg5-4 ;;
3164 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3165 if [ x$NON_GNU_CPP = x ]; then
3166 if [ -f /usr/ccs/lib/cpp ]; then
3167 NON_GNU_CPP=/usr/ccs/lib/cpp
3168 else
3169 NON_GNU_CPP=/lib/cpp
3170 fi
3171 fi
3172 opsys=usg5-4-2 ;;
3173 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3174 * )
3175 unported=yes
3176 ;;
3177 esac
3178 fi
3179
3180
3181
3182 if test $unported = yes; then
3183 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3184 Check \`etc/MACHINES' for recognized configuration names." >&5
3185 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3186 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3187 { (exit 1); exit 1; }; }
3188 fi
3189
3190 machfile="m/${machine}.h"
3191 opsysfile="s/${opsys}.h"
3192
3193
3194 #### Choose a compiler.
3195 test -n "$CC" && cc_specified=yes
3196
3197 # Save the value of CFLAGS that the user specified.
3198 SPECIFIED_CFLAGS="$CFLAGS"
3199
3200 case ${with_gcc} in
3201 "yes" ) CC="gcc" GCC=yes ;;
3202 "no" ) : ${CC=cc} ;;
3203 * )
3204 esac
3205 ac_ext=c
3206 ac_cpp='$CPP $CPPFLAGS'
3207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3210 if test -n "$ac_tool_prefix"; then
3211 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3212 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3215 if test "${ac_cv_prog_CC+set}" = set; then
3216 echo $ECHO_N "(cached) $ECHO_C" >&6
3217 else
3218 if test -n "$CC"; then
3219 ac_cv_prog_CC="$CC" # Let the user override the test.
3220 else
3221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222 for as_dir in $PATH
3223 do
3224 IFS=$as_save_IFS
3225 test -z "$as_dir" && as_dir=.
3226 for ac_exec_ext in '' $ac_executable_extensions; do
3227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3228 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3230 break 2
3231 fi
3232 done
3233 done
3234 IFS=$as_save_IFS
3235
3236 fi
3237 fi
3238 CC=$ac_cv_prog_CC
3239 if test -n "$CC"; then
3240 { echo "$as_me:$LINENO: result: $CC" >&5
3241 echo "${ECHO_T}$CC" >&6; }
3242 else
3243 { echo "$as_me:$LINENO: result: no" >&5
3244 echo "${ECHO_T}no" >&6; }
3245 fi
3246
3247
3248 fi
3249 if test -z "$ac_cv_prog_CC"; then
3250 ac_ct_CC=$CC
3251 # Extract the first word of "gcc", so it can be a program name with args.
3252 set dummy gcc; ac_word=$2
3253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3255 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3256 echo $ECHO_N "(cached) $ECHO_C" >&6
3257 else
3258 if test -n "$ac_ct_CC"; then
3259 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3260 else
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262 for as_dir in $PATH
3263 do
3264 IFS=$as_save_IFS
3265 test -z "$as_dir" && as_dir=.
3266 for ac_exec_ext in '' $ac_executable_extensions; do
3267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3268 ac_cv_prog_ac_ct_CC="gcc"
3269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3270 break 2
3271 fi
3272 done
3273 done
3274 IFS=$as_save_IFS
3275
3276 fi
3277 fi
3278 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3279 if test -n "$ac_ct_CC"; then
3280 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3281 echo "${ECHO_T}$ac_ct_CC" >&6; }
3282 else
3283 { echo "$as_me:$LINENO: result: no" >&5
3284 echo "${ECHO_T}no" >&6; }
3285 fi
3286
3287 if test "x$ac_ct_CC" = x; then
3288 CC=""
3289 else
3290 case $cross_compiling:$ac_tool_warned in
3291 yes:)
3292 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3293 whose name does not start with the host triplet. If you think this
3294 configuration is useful to you, please write to autoconf@gnu.org." >&5
3295 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3296 whose name does not start with the host triplet. If you think this
3297 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3298 ac_tool_warned=yes ;;
3299 esac
3300 CC=$ac_ct_CC
3301 fi
3302 else
3303 CC="$ac_cv_prog_CC"
3304 fi
3305
3306 if test -z "$CC"; then
3307 if test -n "$ac_tool_prefix"; then
3308 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3309 set dummy ${ac_tool_prefix}cc; ac_word=$2
3310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3312 if test "${ac_cv_prog_CC+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3314 else
3315 if test -n "$CC"; then
3316 ac_cv_prog_CC="$CC" # Let the user override the test.
3317 else
3318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319 for as_dir in $PATH
3320 do
3321 IFS=$as_save_IFS
3322 test -z "$as_dir" && as_dir=.
3323 for ac_exec_ext in '' $ac_executable_extensions; do
3324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3325 ac_cv_prog_CC="${ac_tool_prefix}cc"
3326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3327 break 2
3328 fi
3329 done
3330 done
3331 IFS=$as_save_IFS
3332
3333 fi
3334 fi
3335 CC=$ac_cv_prog_CC
3336 if test -n "$CC"; then
3337 { echo "$as_me:$LINENO: result: $CC" >&5
3338 echo "${ECHO_T}$CC" >&6; }
3339 else
3340 { echo "$as_me:$LINENO: result: no" >&5
3341 echo "${ECHO_T}no" >&6; }
3342 fi
3343
3344
3345 fi
3346 fi
3347 if test -z "$CC"; then
3348 # Extract the first word of "cc", so it can be a program name with args.
3349 set dummy cc; ac_word=$2
3350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3352 if test "${ac_cv_prog_CC+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
3354 else
3355 if test -n "$CC"; then
3356 ac_cv_prog_CC="$CC" # Let the user override the test.
3357 else
3358 ac_prog_rejected=no
3359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3360 for as_dir in $PATH
3361 do
3362 IFS=$as_save_IFS
3363 test -z "$as_dir" && as_dir=.
3364 for ac_exec_ext in '' $ac_executable_extensions; do
3365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3366 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3367 ac_prog_rejected=yes
3368 continue
3369 fi
3370 ac_cv_prog_CC="cc"
3371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3372 break 2
3373 fi
3374 done
3375 done
3376 IFS=$as_save_IFS
3377
3378 if test $ac_prog_rejected = yes; then
3379 # We found a bogon in the path, so make sure we never use it.
3380 set dummy $ac_cv_prog_CC
3381 shift
3382 if test $# != 0; then
3383 # We chose a different compiler from the bogus one.
3384 # However, it has the same basename, so the bogon will be chosen
3385 # first if we set CC to just the basename; use the full file name.
3386 shift
3387 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3388 fi
3389 fi
3390 fi
3391 fi
3392 CC=$ac_cv_prog_CC
3393 if test -n "$CC"; then
3394 { echo "$as_me:$LINENO: result: $CC" >&5
3395 echo "${ECHO_T}$CC" >&6; }
3396 else
3397 { echo "$as_me:$LINENO: result: no" >&5
3398 echo "${ECHO_T}no" >&6; }
3399 fi
3400
3401
3402 fi
3403 if test -z "$CC"; then
3404 if test -n "$ac_tool_prefix"; then
3405 for ac_prog in cl.exe
3406 do
3407 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3408 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3411 if test "${ac_cv_prog_CC+set}" = set; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3413 else
3414 if test -n "$CC"; then
3415 ac_cv_prog_CC="$CC" # Let the user override the test.
3416 else
3417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418 for as_dir in $PATH
3419 do
3420 IFS=$as_save_IFS
3421 test -z "$as_dir" && as_dir=.
3422 for ac_exec_ext in '' $ac_executable_extensions; do
3423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3424 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3426 break 2
3427 fi
3428 done
3429 done
3430 IFS=$as_save_IFS
3431
3432 fi
3433 fi
3434 CC=$ac_cv_prog_CC
3435 if test -n "$CC"; then
3436 { echo "$as_me:$LINENO: result: $CC" >&5
3437 echo "${ECHO_T}$CC" >&6; }
3438 else
3439 { echo "$as_me:$LINENO: result: no" >&5
3440 echo "${ECHO_T}no" >&6; }
3441 fi
3442
3443
3444 test -n "$CC" && break
3445 done
3446 fi
3447 if test -z "$CC"; then
3448 ac_ct_CC=$CC
3449 for ac_prog in cl.exe
3450 do
3451 # Extract the first word of "$ac_prog", so it can be a program name with args.
3452 set dummy $ac_prog; ac_word=$2
3453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3455 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3456 echo $ECHO_N "(cached) $ECHO_C" >&6
3457 else
3458 if test -n "$ac_ct_CC"; then
3459 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3460 else
3461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3462 for as_dir in $PATH
3463 do
3464 IFS=$as_save_IFS
3465 test -z "$as_dir" && as_dir=.
3466 for ac_exec_ext in '' $ac_executable_extensions; do
3467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3468 ac_cv_prog_ac_ct_CC="$ac_prog"
3469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3470 break 2
3471 fi
3472 done
3473 done
3474 IFS=$as_save_IFS
3475
3476 fi
3477 fi
3478 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3479 if test -n "$ac_ct_CC"; then
3480 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3481 echo "${ECHO_T}$ac_ct_CC" >&6; }
3482 else
3483 { echo "$as_me:$LINENO: result: no" >&5
3484 echo "${ECHO_T}no" >&6; }
3485 fi
3486
3487
3488 test -n "$ac_ct_CC" && break
3489 done
3490
3491 if test "x$ac_ct_CC" = x; then
3492 CC=""
3493 else
3494 case $cross_compiling:$ac_tool_warned in
3495 yes:)
3496 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3497 whose name does not start with the host triplet. If you think this
3498 configuration is useful to you, please write to autoconf@gnu.org." >&5
3499 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3500 whose name does not start with the host triplet. If you think this
3501 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3502 ac_tool_warned=yes ;;
3503 esac
3504 CC=$ac_ct_CC
3505 fi
3506 fi
3507
3508 fi
3509
3510
3511 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3512 See \`config.log' for more details." >&5
3513 echo "$as_me: error: no acceptable C compiler found in \$PATH
3514 See \`config.log' for more details." >&2;}
3515 { (exit 1); exit 1; }; }
3516
3517 # Provide some information about the compiler.
3518 echo "$as_me:$LINENO: checking for C compiler version" >&5
3519 ac_compiler=`set X $ac_compile; echo $2`
3520 { (ac_try="$ac_compiler --version >&5"
3521 case "(($ac_try" in
3522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523 *) ac_try_echo=$ac_try;;
3524 esac
3525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3526 (eval "$ac_compiler --version >&5") 2>&5
3527 ac_status=$?
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); }
3530 { (ac_try="$ac_compiler -v >&5"
3531 case "(($ac_try" in
3532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533 *) ac_try_echo=$ac_try;;
3534 esac
3535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3536 (eval "$ac_compiler -v >&5") 2>&5
3537 ac_status=$?
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); }
3540 { (ac_try="$ac_compiler -V >&5"
3541 case "(($ac_try" in
3542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543 *) ac_try_echo=$ac_try;;
3544 esac
3545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3546 (eval "$ac_compiler -V >&5") 2>&5
3547 ac_status=$?
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); }
3550
3551 cat >conftest.$ac_ext <<_ACEOF
3552 /* confdefs.h. */
3553 _ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h. */
3557
3558 int
3559 main ()
3560 {
3561
3562 ;
3563 return 0;
3564 }
3565 _ACEOF
3566 ac_clean_files_save=$ac_clean_files
3567 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3568 # Try to create an executable without -o first, disregard a.out.
3569 # It will help us diagnose broken compilers, and finding out an intuition
3570 # of exeext.
3571 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3572 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3573 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3574 #
3575 # List of possible output files, starting from the most likely.
3576 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3577 # only as a last resort. b.out is created by i960 compilers.
3578 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3579 #
3580 # The IRIX 6 linker writes into existing files which may not be
3581 # executable, retaining their permissions. Remove them first so a
3582 # subsequent execution test works.
3583 ac_rmfiles=
3584 for ac_file in $ac_files
3585 do
3586 case $ac_file in
3587 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3588 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3589 esac
3590 done
3591 rm -f $ac_rmfiles
3592
3593 if { (ac_try="$ac_link_default"
3594 case "(($ac_try" in
3595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596 *) ac_try_echo=$ac_try;;
3597 esac
3598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3599 (eval "$ac_link_default") 2>&5
3600 ac_status=$?
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); }; then
3603 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3604 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3605 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3606 # so that the user can short-circuit this test for compilers unknown to
3607 # Autoconf.
3608 for ac_file in $ac_files ''
3609 do
3610 test -f "$ac_file" || continue
3611 case $ac_file in
3612 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3613 ;;
3614 [ab].out )
3615 # We found the default executable, but exeext='' is most
3616 # certainly right.
3617 break;;
3618 *.* )
3619 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3620 then :; else
3621 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3622 fi
3623 # We set ac_cv_exeext here because the later test for it is not
3624 # safe: cross compilers may not add the suffix if given an `-o'
3625 # argument, so we may need to know it at that point already.
3626 # Even if this section looks crufty: it has the advantage of
3627 # actually working.
3628 break;;
3629 * )
3630 break;;
3631 esac
3632 done
3633 test "$ac_cv_exeext" = no && ac_cv_exeext=
3634
3635 else
3636 ac_file=''
3637 fi
3638
3639 { echo "$as_me:$LINENO: result: $ac_file" >&5
3640 echo "${ECHO_T}$ac_file" >&6; }
3641 if test -z "$ac_file"; then
3642 echo "$as_me: failed program was:" >&5
3643 sed 's/^/| /' conftest.$ac_ext >&5
3644
3645 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3646 See \`config.log' for more details." >&5
3647 echo "$as_me: error: C compiler cannot create executables
3648 See \`config.log' for more details." >&2;}
3649 { (exit 77); exit 77; }; }
3650 fi
3651
3652 ac_exeext=$ac_cv_exeext
3653
3654 # Check that the compiler produces executables we can run. If not, either
3655 # the compiler is broken, or we cross compile.
3656 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3657 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3658 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3659 # If not cross compiling, check that we can run a simple program.
3660 if test "$cross_compiling" != yes; then
3661 if { ac_try='./$ac_file'
3662 { (case "(($ac_try" in
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3665 esac
3666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3667 (eval "$ac_try") 2>&5
3668 ac_status=$?
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); }; }; then
3671 cross_compiling=no
3672 else
3673 if test "$cross_compiling" = maybe; then
3674 cross_compiling=yes
3675 else
3676 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3677 If you meant to cross compile, use \`--host'.
3678 See \`config.log' for more details." >&5
3679 echo "$as_me: error: cannot run C compiled programs.
3680 If you meant to cross compile, use \`--host'.
3681 See \`config.log' for more details." >&2;}
3682 { (exit 1); exit 1; }; }
3683 fi
3684 fi
3685 fi
3686 { echo "$as_me:$LINENO: result: yes" >&5
3687 echo "${ECHO_T}yes" >&6; }
3688
3689 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3690 ac_clean_files=$ac_clean_files_save
3691 # Check that the compiler produces executables we can run. If not, either
3692 # the compiler is broken, or we cross compile.
3693 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3694 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3695 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3696 echo "${ECHO_T}$cross_compiling" >&6; }
3697
3698 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3699 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3700 if { (ac_try="$ac_link"
3701 case "(($ac_try" in
3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703 *) ac_try_echo=$ac_try;;
3704 esac
3705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3706 (eval "$ac_link") 2>&5
3707 ac_status=$?
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); }; then
3710 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3711 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3712 # work properly (i.e., refer to `conftest.exe'), while it won't with
3713 # `rm'.
3714 for ac_file in conftest.exe conftest conftest.*; do
3715 test -f "$ac_file" || continue
3716 case $ac_file in
3717 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3718 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3719 break;;
3720 * ) break;;
3721 esac
3722 done
3723 else
3724 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3725 See \`config.log' for more details." >&5
3726 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3727 See \`config.log' for more details." >&2;}
3728 { (exit 1); exit 1; }; }
3729 fi
3730
3731 rm -f conftest$ac_cv_exeext
3732 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3733 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3734
3735 rm -f conftest.$ac_ext
3736 EXEEXT=$ac_cv_exeext
3737 ac_exeext=$EXEEXT
3738 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3739 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3740 if test "${ac_cv_objext+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3742 else
3743 cat >conftest.$ac_ext <<_ACEOF
3744 /* confdefs.h. */
3745 _ACEOF
3746 cat confdefs.h >>conftest.$ac_ext
3747 cat >>conftest.$ac_ext <<_ACEOF
3748 /* end confdefs.h. */
3749
3750 int
3751 main ()
3752 {
3753
3754 ;
3755 return 0;
3756 }
3757 _ACEOF
3758 rm -f conftest.o conftest.obj
3759 if { (ac_try="$ac_compile"
3760 case "(($ac_try" in
3761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3762 *) ac_try_echo=$ac_try;;
3763 esac
3764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3765 (eval "$ac_compile") 2>&5
3766 ac_status=$?
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); }; then
3769 for ac_file in conftest.o conftest.obj conftest.*; do
3770 test -f "$ac_file" || continue;
3771 case $ac_file in
3772 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3773 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3774 break;;
3775 esac
3776 done
3777 else
3778 echo "$as_me: failed program was:" >&5
3779 sed 's/^/| /' conftest.$ac_ext >&5
3780
3781 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3782 See \`config.log' for more details." >&5
3783 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3784 See \`config.log' for more details." >&2;}
3785 { (exit 1); exit 1; }; }
3786 fi
3787
3788 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3789 fi
3790 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3791 echo "${ECHO_T}$ac_cv_objext" >&6; }
3792 OBJEXT=$ac_cv_objext
3793 ac_objext=$OBJEXT
3794 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3795 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3796 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3797 echo $ECHO_N "(cached) $ECHO_C" >&6
3798 else
3799 cat >conftest.$ac_ext <<_ACEOF
3800 /* confdefs.h. */
3801 _ACEOF
3802 cat confdefs.h >>conftest.$ac_ext
3803 cat >>conftest.$ac_ext <<_ACEOF
3804 /* end confdefs.h. */
3805
3806 int
3807 main ()
3808 {
3809 #ifndef __GNUC__
3810 choke me
3811 #endif
3812
3813 ;
3814 return 0;
3815 }
3816 _ACEOF
3817 rm -f conftest.$ac_objext
3818 if { (ac_try="$ac_compile"
3819 case "(($ac_try" in
3820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821 *) ac_try_echo=$ac_try;;
3822 esac
3823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3824 (eval "$ac_compile") 2>conftest.er1
3825 ac_status=$?
3826 grep -v '^ *+' conftest.er1 >conftest.err
3827 rm -f conftest.er1
3828 cat conftest.err >&5
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); } && {
3831 test -z "$ac_c_werror_flag" ||
3832 test ! -s conftest.err
3833 } && test -s conftest.$ac_objext; then
3834 ac_compiler_gnu=yes
3835 else
3836 echo "$as_me: failed program was:" >&5
3837 sed 's/^/| /' conftest.$ac_ext >&5
3838
3839 ac_compiler_gnu=no
3840 fi
3841
3842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3843 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3844
3845 fi
3846 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3847 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3848 GCC=`test $ac_compiler_gnu = yes && echo yes`
3849 ac_test_CFLAGS=${CFLAGS+set}
3850 ac_save_CFLAGS=$CFLAGS
3851 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3852 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3853 if test "${ac_cv_prog_cc_g+set}" = set; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3855 else
3856 ac_save_c_werror_flag=$ac_c_werror_flag
3857 ac_c_werror_flag=yes
3858 ac_cv_prog_cc_g=no
3859 CFLAGS="-g"
3860 cat >conftest.$ac_ext <<_ACEOF
3861 /* confdefs.h. */
3862 _ACEOF
3863 cat confdefs.h >>conftest.$ac_ext
3864 cat >>conftest.$ac_ext <<_ACEOF
3865 /* end confdefs.h. */
3866
3867 int
3868 main ()
3869 {
3870
3871 ;
3872 return 0;
3873 }
3874 _ACEOF
3875 rm -f conftest.$ac_objext
3876 if { (ac_try="$ac_compile"
3877 case "(($ac_try" in
3878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879 *) ac_try_echo=$ac_try;;
3880 esac
3881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3882 (eval "$ac_compile") 2>conftest.er1
3883 ac_status=$?
3884 grep -v '^ *+' conftest.er1 >conftest.err
3885 rm -f conftest.er1
3886 cat conftest.err >&5
3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 (exit $ac_status); } && {
3889 test -z "$ac_c_werror_flag" ||
3890 test ! -s conftest.err
3891 } && test -s conftest.$ac_objext; then
3892 ac_cv_prog_cc_g=yes
3893 else
3894 echo "$as_me: failed program was:" >&5
3895 sed 's/^/| /' conftest.$ac_ext >&5
3896
3897 CFLAGS=""
3898 cat >conftest.$ac_ext <<_ACEOF
3899 /* confdefs.h. */
3900 _ACEOF
3901 cat confdefs.h >>conftest.$ac_ext
3902 cat >>conftest.$ac_ext <<_ACEOF
3903 /* end confdefs.h. */
3904
3905 int
3906 main ()
3907 {
3908
3909 ;
3910 return 0;
3911 }
3912 _ACEOF
3913 rm -f conftest.$ac_objext
3914 if { (ac_try="$ac_compile"
3915 case "(($ac_try" in
3916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3917 *) ac_try_echo=$ac_try;;
3918 esac
3919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3920 (eval "$ac_compile") 2>conftest.er1
3921 ac_status=$?
3922 grep -v '^ *+' conftest.er1 >conftest.err
3923 rm -f conftest.er1
3924 cat conftest.err >&5
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); } && {
3927 test -z "$ac_c_werror_flag" ||
3928 test ! -s conftest.err
3929 } && test -s conftest.$ac_objext; then
3930 :
3931 else
3932 echo "$as_me: failed program was:" >&5
3933 sed 's/^/| /' conftest.$ac_ext >&5
3934
3935 ac_c_werror_flag=$ac_save_c_werror_flag
3936 CFLAGS="-g"
3937 cat >conftest.$ac_ext <<_ACEOF
3938 /* confdefs.h. */
3939 _ACEOF
3940 cat confdefs.h >>conftest.$ac_ext
3941 cat >>conftest.$ac_ext <<_ACEOF
3942 /* end confdefs.h. */
3943
3944 int
3945 main ()
3946 {
3947
3948 ;
3949 return 0;
3950 }
3951 _ACEOF
3952 rm -f conftest.$ac_objext
3953 if { (ac_try="$ac_compile"
3954 case "(($ac_try" in
3955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956 *) ac_try_echo=$ac_try;;
3957 esac
3958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3959 (eval "$ac_compile") 2>conftest.er1
3960 ac_status=$?
3961 grep -v '^ *+' conftest.er1 >conftest.err
3962 rm -f conftest.er1
3963 cat conftest.err >&5
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); } && {
3966 test -z "$ac_c_werror_flag" ||
3967 test ! -s conftest.err
3968 } && test -s conftest.$ac_objext; then
3969 ac_cv_prog_cc_g=yes
3970 else
3971 echo "$as_me: failed program was:" >&5
3972 sed 's/^/| /' conftest.$ac_ext >&5
3973
3974
3975 fi
3976
3977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3978 fi
3979
3980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3981 fi
3982
3983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3984 ac_c_werror_flag=$ac_save_c_werror_flag
3985 fi
3986 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3987 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3988 if test "$ac_test_CFLAGS" = set; then
3989 CFLAGS=$ac_save_CFLAGS
3990 elif test $ac_cv_prog_cc_g = yes; then
3991 if test "$GCC" = yes; then
3992 CFLAGS="-g -O2"
3993 else
3994 CFLAGS="-g"
3995 fi
3996 else
3997 if test "$GCC" = yes; then
3998 CFLAGS="-O2"
3999 else
4000 CFLAGS=
4001 fi
4002 fi
4003 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4004 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4005 if test "${ac_cv_prog_cc_c89+set}" = set; then
4006 echo $ECHO_N "(cached) $ECHO_C" >&6
4007 else
4008 ac_cv_prog_cc_c89=no
4009 ac_save_CC=$CC
4010 cat >conftest.$ac_ext <<_ACEOF
4011 /* confdefs.h. */
4012 _ACEOF
4013 cat confdefs.h >>conftest.$ac_ext
4014 cat >>conftest.$ac_ext <<_ACEOF
4015 /* end confdefs.h. */
4016 #include <stdarg.h>
4017 #include <stdio.h>
4018 #include <sys/types.h>
4019 #include <sys/stat.h>
4020 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4021 struct buf { int x; };
4022 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4023 static char *e (p, i)
4024 char **p;
4025 int i;
4026 {
4027 return p[i];
4028 }
4029 static char *f (char * (*g) (char **, int), char **p, ...)
4030 {
4031 char *s;
4032 va_list v;
4033 va_start (v,p);
4034 s = g (p, va_arg (v,int));
4035 va_end (v);
4036 return s;
4037 }
4038
4039 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4040 function prototypes and stuff, but not '\xHH' hex character constants.
4041 These don't provoke an error unfortunately, instead are silently treated
4042 as 'x'. The following induces an error, until -std is added to get
4043 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4044 array size at least. It's necessary to write '\x00'==0 to get something
4045 that's true only with -std. */
4046 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4047
4048 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4049 inside strings and character constants. */
4050 #define FOO(x) 'x'
4051 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4052
4053 int test (int i, double x);
4054 struct s1 {int (*f) (int a);};
4055 struct s2 {int (*f) (double a);};
4056 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4057 int argc;
4058 char **argv;
4059 int
4060 main ()
4061 {
4062 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4063 ;
4064 return 0;
4065 }
4066 _ACEOF
4067 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4068 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4069 do
4070 CC="$ac_save_CC $ac_arg"
4071 rm -f conftest.$ac_objext
4072 if { (ac_try="$ac_compile"
4073 case "(($ac_try" in
4074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075 *) ac_try_echo=$ac_try;;
4076 esac
4077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4078 (eval "$ac_compile") 2>conftest.er1
4079 ac_status=$?
4080 grep -v '^ *+' conftest.er1 >conftest.err
4081 rm -f conftest.er1
4082 cat conftest.err >&5
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); } && {
4085 test -z "$ac_c_werror_flag" ||
4086 test ! -s conftest.err
4087 } && test -s conftest.$ac_objext; then
4088 ac_cv_prog_cc_c89=$ac_arg
4089 else
4090 echo "$as_me: failed program was:" >&5
4091 sed 's/^/| /' conftest.$ac_ext >&5
4092
4093
4094 fi
4095
4096 rm -f core conftest.err conftest.$ac_objext
4097 test "x$ac_cv_prog_cc_c89" != "xno" && break
4098 done
4099 rm -f conftest.$ac_ext
4100 CC=$ac_save_CC
4101
4102 fi
4103 # AC_CACHE_VAL
4104 case "x$ac_cv_prog_cc_c89" in
4105 x)
4106 { echo "$as_me:$LINENO: result: none needed" >&5
4107 echo "${ECHO_T}none needed" >&6; } ;;
4108 xno)
4109 { echo "$as_me:$LINENO: result: unsupported" >&5
4110 echo "${ECHO_T}unsupported" >&6; } ;;
4111 *)
4112 CC="$CC $ac_cv_prog_cc_c89"
4113 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4114 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4115 esac
4116
4117
4118 ac_ext=c
4119 ac_cpp='$CPP $CPPFLAGS'
4120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4123
4124
4125 # On Suns, sometimes $CPP names a directory.
4126 if test -n "$CPP" && test -d "$CPP"; then
4127 CPP=
4128 fi
4129
4130 #### Some systems specify a CPP to use unless we are using GCC.
4131 #### Now that we know whether we are using GCC, we can decide whether
4132 #### to use that one.
4133 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4134 then
4135 CPP="$NON_GNU_CPP"
4136 fi
4137
4138 #### Some systems specify a CC to use unless we are using GCC.
4139 #### Now that we know whether we are using GCC, we can decide whether
4140 #### to use that one.
4141 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4142 test x$cc_specified != xyes
4143 then
4144 CC="$NON_GNU_CC"
4145 fi
4146
4147 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4148 then
4149 CC="$CC $GCC_TEST_OPTIONS"
4150 fi
4151
4152 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4153 then
4154 CC="$CC $NON_GCC_TEST_OPTIONS"
4155 fi
4156
4157
4158 ac_ext=c
4159 ac_cpp='$CPP $CPPFLAGS'
4160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4163 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4164 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4165 # On Suns, sometimes $CPP names a directory.
4166 if test -n "$CPP" && test -d "$CPP"; then
4167 CPP=
4168 fi
4169 if test -z "$CPP"; then
4170 if test "${ac_cv_prog_CPP+set}" = set; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4172 else
4173 # Double quotes because CPP needs to be expanded
4174 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4175 do
4176 ac_preproc_ok=false
4177 for ac_c_preproc_warn_flag in '' yes
4178 do
4179 # Use a header file that comes with gcc, so configuring glibc
4180 # with a fresh cross-compiler works.
4181 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4182 # <limits.h> exists even on freestanding compilers.
4183 # On the NeXT, cc -E runs the code through the compiler's parser,
4184 # not just through cpp. "Syntax error" is here to catch this case.
4185 cat >conftest.$ac_ext <<_ACEOF
4186 /* confdefs.h. */
4187 _ACEOF
4188 cat confdefs.h >>conftest.$ac_ext
4189 cat >>conftest.$ac_ext <<_ACEOF
4190 /* end confdefs.h. */
4191 #ifdef __STDC__
4192 # include <limits.h>
4193 #else
4194 # include <assert.h>
4195 #endif
4196 Syntax error
4197 _ACEOF
4198 if { (ac_try="$ac_cpp conftest.$ac_ext"
4199 case "(($ac_try" in
4200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201 *) ac_try_echo=$ac_try;;
4202 esac
4203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4205 ac_status=$?
4206 grep -v '^ *+' conftest.er1 >conftest.err
4207 rm -f conftest.er1
4208 cat conftest.err >&5
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); } >/dev/null && {
4211 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4212 test ! -s conftest.err
4213 }; then
4214 :
4215 else
4216 echo "$as_me: failed program was:" >&5
4217 sed 's/^/| /' conftest.$ac_ext >&5
4218
4219 # Broken: fails on valid input.
4220 continue
4221 fi
4222
4223 rm -f conftest.err conftest.$ac_ext
4224
4225 # OK, works on sane cases. Now check whether nonexistent headers
4226 # can be detected and how.
4227 cat >conftest.$ac_ext <<_ACEOF
4228 /* confdefs.h. */
4229 _ACEOF
4230 cat confdefs.h >>conftest.$ac_ext
4231 cat >>conftest.$ac_ext <<_ACEOF
4232 /* end confdefs.h. */
4233 #include <ac_nonexistent.h>
4234 _ACEOF
4235 if { (ac_try="$ac_cpp conftest.$ac_ext"
4236 case "(($ac_try" in
4237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238 *) ac_try_echo=$ac_try;;
4239 esac
4240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4242 ac_status=$?
4243 grep -v '^ *+' conftest.er1 >conftest.err
4244 rm -f conftest.er1
4245 cat conftest.err >&5
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); } >/dev/null && {
4248 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4249 test ! -s conftest.err
4250 }; then
4251 # Broken: success on invalid input.
4252 continue
4253 else
4254 echo "$as_me: failed program was:" >&5
4255 sed 's/^/| /' conftest.$ac_ext >&5
4256
4257 # Passes both tests.
4258 ac_preproc_ok=:
4259 break
4260 fi
4261
4262 rm -f conftest.err conftest.$ac_ext
4263
4264 done
4265 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4266 rm -f conftest.err conftest.$ac_ext
4267 if $ac_preproc_ok; then
4268 break
4269 fi
4270
4271 done
4272 ac_cv_prog_CPP=$CPP
4273
4274 fi
4275 CPP=$ac_cv_prog_CPP
4276 else
4277 ac_cv_prog_CPP=$CPP
4278 fi
4279 { echo "$as_me:$LINENO: result: $CPP" >&5
4280 echo "${ECHO_T}$CPP" >&6; }
4281 ac_preproc_ok=false
4282 for ac_c_preproc_warn_flag in '' yes
4283 do
4284 # Use a header file that comes with gcc, so configuring glibc
4285 # with a fresh cross-compiler works.
4286 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4287 # <limits.h> exists even on freestanding compilers.
4288 # On the NeXT, cc -E runs the code through the compiler's parser,
4289 # not just through cpp. "Syntax error" is here to catch this case.
4290 cat >conftest.$ac_ext <<_ACEOF
4291 /* confdefs.h. */
4292 _ACEOF
4293 cat confdefs.h >>conftest.$ac_ext
4294 cat >>conftest.$ac_ext <<_ACEOF
4295 /* end confdefs.h. */
4296 #ifdef __STDC__
4297 # include <limits.h>
4298 #else
4299 # include <assert.h>
4300 #endif
4301 Syntax error
4302 _ACEOF
4303 if { (ac_try="$ac_cpp conftest.$ac_ext"
4304 case "(($ac_try" in
4305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4306 *) ac_try_echo=$ac_try;;
4307 esac
4308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4309 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4310 ac_status=$?
4311 grep -v '^ *+' conftest.er1 >conftest.err
4312 rm -f conftest.er1
4313 cat conftest.err >&5
4314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315 (exit $ac_status); } >/dev/null && {
4316 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4317 test ! -s conftest.err
4318 }; then
4319 :
4320 else
4321 echo "$as_me: failed program was:" >&5
4322 sed 's/^/| /' conftest.$ac_ext >&5
4323
4324 # Broken: fails on valid input.
4325 continue
4326 fi
4327
4328 rm -f conftest.err conftest.$ac_ext
4329
4330 # OK, works on sane cases. Now check whether nonexistent headers
4331 # can be detected and how.
4332 cat >conftest.$ac_ext <<_ACEOF
4333 /* confdefs.h. */
4334 _ACEOF
4335 cat confdefs.h >>conftest.$ac_ext
4336 cat >>conftest.$ac_ext <<_ACEOF
4337 /* end confdefs.h. */
4338 #include <ac_nonexistent.h>
4339 _ACEOF
4340 if { (ac_try="$ac_cpp conftest.$ac_ext"
4341 case "(($ac_try" in
4342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4343 *) ac_try_echo=$ac_try;;
4344 esac
4345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4346 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4347 ac_status=$?
4348 grep -v '^ *+' conftest.er1 >conftest.err
4349 rm -f conftest.er1
4350 cat conftest.err >&5
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); } >/dev/null && {
4353 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4354 test ! -s conftest.err
4355 }; then
4356 # Broken: success on invalid input.
4357 continue
4358 else
4359 echo "$as_me: failed program was:" >&5
4360 sed 's/^/| /' conftest.$ac_ext >&5
4361
4362 # Passes both tests.
4363 ac_preproc_ok=:
4364 break
4365 fi
4366
4367 rm -f conftest.err conftest.$ac_ext
4368
4369 done
4370 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4371 rm -f conftest.err conftest.$ac_ext
4372 if $ac_preproc_ok; then
4373 :
4374 else
4375 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4376 See \`config.log' for more details." >&5
4377 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4378 See \`config.log' for more details." >&2;}
4379 { (exit 1); exit 1; }; }
4380 fi
4381
4382 ac_ext=c
4383 ac_cpp='$CPP $CPPFLAGS'
4384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4387
4388
4389 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4390 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4391 if test "${ac_cv_path_GREP+set}" = set; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
4393 else
4394 # Extract the first word of "grep ggrep" to use in msg output
4395 if test -z "$GREP"; then
4396 set dummy grep ggrep; ac_prog_name=$2
4397 if test "${ac_cv_path_GREP+set}" = set; then
4398 echo $ECHO_N "(cached) $ECHO_C" >&6
4399 else
4400 ac_path_GREP_found=false
4401 # Loop through the user's path and test for each of PROGNAME-LIST
4402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4404 do
4405 IFS=$as_save_IFS
4406 test -z "$as_dir" && as_dir=.
4407 for ac_prog in grep ggrep; do
4408 for ac_exec_ext in '' $ac_executable_extensions; do
4409 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4410 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4411 # Check for GNU ac_path_GREP and select it if it is found.
4412 # Check for GNU $ac_path_GREP
4413 case `"$ac_path_GREP" --version 2>&1` in
4414 *GNU*)
4415 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4416 *)
4417 ac_count=0
4418 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4419 while :
4420 do
4421 cat "conftest.in" "conftest.in" >"conftest.tmp"
4422 mv "conftest.tmp" "conftest.in"
4423 cp "conftest.in" "conftest.nl"
4424 echo 'GREP' >> "conftest.nl"
4425 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4426 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4427 ac_count=`expr $ac_count + 1`
4428 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4429 # Best one so far, save it but keep looking for a better one
4430 ac_cv_path_GREP="$ac_path_GREP"
4431 ac_path_GREP_max=$ac_count
4432 fi
4433 # 10*(2^10) chars as input seems more than enough
4434 test $ac_count -gt 10 && break
4435 done
4436 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4437 esac
4438
4439
4440 $ac_path_GREP_found && break 3
4441 done
4442 done
4443
4444 done
4445 IFS=$as_save_IFS
4446
4447
4448 fi
4449
4450 GREP="$ac_cv_path_GREP"
4451 if test -z "$GREP"; then
4452 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4453 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4454 { (exit 1); exit 1; }; }
4455 fi
4456
4457 else
4458 ac_cv_path_GREP=$GREP
4459 fi
4460
4461
4462 fi
4463 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4464 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4465 GREP="$ac_cv_path_GREP"
4466
4467
4468 { echo "$as_me:$LINENO: checking for egrep" >&5
4469 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4470 if test "${ac_cv_path_EGREP+set}" = set; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
4472 else
4473 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4474 then ac_cv_path_EGREP="$GREP -E"
4475 else
4476 # Extract the first word of "egrep" to use in msg output
4477 if test -z "$EGREP"; then
4478 set dummy egrep; ac_prog_name=$2
4479 if test "${ac_cv_path_EGREP+set}" = set; then
4480 echo $ECHO_N "(cached) $ECHO_C" >&6
4481 else
4482 ac_path_EGREP_found=false
4483 # Loop through the user's path and test for each of PROGNAME-LIST
4484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4486 do
4487 IFS=$as_save_IFS
4488 test -z "$as_dir" && as_dir=.
4489 for ac_prog in egrep; do
4490 for ac_exec_ext in '' $ac_executable_extensions; do
4491 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4492 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4493 # Check for GNU ac_path_EGREP and select it if it is found.
4494 # Check for GNU $ac_path_EGREP
4495 case `"$ac_path_EGREP" --version 2>&1` in
4496 *GNU*)
4497 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4498 *)
4499 ac_count=0
4500 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4501 while :
4502 do
4503 cat "conftest.in" "conftest.in" >"conftest.tmp"
4504 mv "conftest.tmp" "conftest.in"
4505 cp "conftest.in" "conftest.nl"
4506 echo 'EGREP' >> "conftest.nl"
4507 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4508 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4509 ac_count=`expr $ac_count + 1`
4510 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4511 # Best one so far, save it but keep looking for a better one
4512 ac_cv_path_EGREP="$ac_path_EGREP"
4513 ac_path_EGREP_max=$ac_count
4514 fi
4515 # 10*(2^10) chars as input seems more than enough
4516 test $ac_count -gt 10 && break
4517 done
4518 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4519 esac
4520
4521
4522 $ac_path_EGREP_found && break 3
4523 done
4524 done
4525
4526 done
4527 IFS=$as_save_IFS
4528
4529
4530 fi
4531
4532 EGREP="$ac_cv_path_EGREP"
4533 if test -z "$EGREP"; then
4534 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4535 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4536 { (exit 1); exit 1; }; }
4537 fi
4538
4539 else
4540 ac_cv_path_EGREP=$EGREP
4541 fi
4542
4543
4544 fi
4545 fi
4546 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4547 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4548 EGREP="$ac_cv_path_EGREP"
4549
4550
4551
4552 { echo "$as_me:$LINENO: checking for AIX" >&5
4553 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4554 cat >conftest.$ac_ext <<_ACEOF
4555 /* confdefs.h. */
4556 _ACEOF
4557 cat confdefs.h >>conftest.$ac_ext
4558 cat >>conftest.$ac_ext <<_ACEOF
4559 /* end confdefs.h. */
4560 #ifdef _AIX
4561 yes
4562 #endif
4563
4564 _ACEOF
4565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4566 $EGREP "yes" >/dev/null 2>&1; then
4567 { echo "$as_me:$LINENO: result: yes" >&5
4568 echo "${ECHO_T}yes" >&6; }
4569 cat >>confdefs.h <<\_ACEOF
4570 #define _ALL_SOURCE 1
4571 _ACEOF
4572
4573 else
4574 { echo "$as_me:$LINENO: result: no" >&5
4575 echo "${ECHO_T}no" >&6; }
4576 fi
4577 rm -f conftest*
4578
4579
4580
4581 cat >>confdefs.h <<\_ACEOF
4582 #define _GNU_SOURCE 1
4583 _ACEOF
4584
4585
4586
4587 ### Use -Wno-pointer-sign if the compiler supports it
4588 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4589 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4590 SAVE_CFLAGS="$CFLAGS"
4591 CFLAGS="$CFLAGS -Wno-pointer-sign"
4592 cat >conftest.$ac_ext <<_ACEOF
4593 /* confdefs.h. */
4594 _ACEOF
4595 cat confdefs.h >>conftest.$ac_ext
4596 cat >>conftest.$ac_ext <<_ACEOF
4597 /* end confdefs.h. */
4598
4599 int
4600 main ()
4601 {
4602
4603 ;
4604 return 0;
4605 }
4606 _ACEOF
4607 rm -f conftest.$ac_objext
4608 if { (ac_try="$ac_compile"
4609 case "(($ac_try" in
4610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611 *) ac_try_echo=$ac_try;;
4612 esac
4613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4614 (eval "$ac_compile") 2>conftest.er1
4615 ac_status=$?
4616 grep -v '^ *+' conftest.er1 >conftest.err
4617 rm -f conftest.er1
4618 cat conftest.err >&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); } && {
4621 test -z "$ac_c_werror_flag" ||
4622 test ! -s conftest.err
4623 } && test -s conftest.$ac_objext; then
4624 has_option=yes
4625 else
4626 echo "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.$ac_ext >&5
4628
4629 has_option=no
4630 fi
4631
4632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4633 if test $has_option = yes; then
4634 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4635 fi
4636 { echo "$as_me:$LINENO: result: $has_option" >&5
4637 echo "${ECHO_T}$has_option" >&6; }
4638 CFLAGS="$SAVE_CFLAGS"
4639 unset has_option
4640 unset SAVE_CFLAGS
4641
4642 #### Some other nice autoconf tests.
4643
4644 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4645 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4646 LN_S=$as_ln_s
4647 if test "$LN_S" = "ln -s"; then
4648 { echo "$as_me:$LINENO: result: yes" >&5
4649 echo "${ECHO_T}yes" >&6; }
4650 else
4651 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4652 echo "${ECHO_T}no, using $LN_S" >&6; }
4653 fi
4654
4655 ac_ext=c
4656 ac_cpp='$CPP $CPPFLAGS'
4657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4660 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4661 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4662 # On Suns, sometimes $CPP names a directory.
4663 if test -n "$CPP" && test -d "$CPP"; then
4664 CPP=
4665 fi
4666 if test -z "$CPP"; then
4667 if test "${ac_cv_prog_CPP+set}" = set; then
4668 echo $ECHO_N "(cached) $ECHO_C" >&6
4669 else
4670 # Double quotes because CPP needs to be expanded
4671 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4672 do
4673 ac_preproc_ok=false
4674 for ac_c_preproc_warn_flag in '' yes
4675 do
4676 # Use a header file that comes with gcc, so configuring glibc
4677 # with a fresh cross-compiler works.
4678 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4679 # <limits.h> exists even on freestanding compilers.
4680 # On the NeXT, cc -E runs the code through the compiler's parser,
4681 # not just through cpp. "Syntax error" is here to catch this case.
4682 cat >conftest.$ac_ext <<_ACEOF
4683 /* confdefs.h. */
4684 _ACEOF
4685 cat confdefs.h >>conftest.$ac_ext
4686 cat >>conftest.$ac_ext <<_ACEOF
4687 /* end confdefs.h. */
4688 #ifdef __STDC__
4689 # include <limits.h>
4690 #else
4691 # include <assert.h>
4692 #endif
4693 Syntax error
4694 _ACEOF
4695 if { (ac_try="$ac_cpp conftest.$ac_ext"
4696 case "(($ac_try" in
4697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4698 *) ac_try_echo=$ac_try;;
4699 esac
4700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4702 ac_status=$?
4703 grep -v '^ *+' conftest.er1 >conftest.err
4704 rm -f conftest.er1
4705 cat conftest.err >&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); } >/dev/null && {
4708 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4709 test ! -s conftest.err
4710 }; then
4711 :
4712 else
4713 echo "$as_me: failed program was:" >&5
4714 sed 's/^/| /' conftest.$ac_ext >&5
4715
4716 # Broken: fails on valid input.
4717 continue
4718 fi
4719
4720 rm -f conftest.err conftest.$ac_ext
4721
4722 # OK, works on sane cases. Now check whether nonexistent headers
4723 # can be detected and how.
4724 cat >conftest.$ac_ext <<_ACEOF
4725 /* confdefs.h. */
4726 _ACEOF
4727 cat confdefs.h >>conftest.$ac_ext
4728 cat >>conftest.$ac_ext <<_ACEOF
4729 /* end confdefs.h. */
4730 #include <ac_nonexistent.h>
4731 _ACEOF
4732 if { (ac_try="$ac_cpp conftest.$ac_ext"
4733 case "(($ac_try" in
4734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4735 *) ac_try_echo=$ac_try;;
4736 esac
4737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4739 ac_status=$?
4740 grep -v '^ *+' conftest.er1 >conftest.err
4741 rm -f conftest.er1
4742 cat conftest.err >&5
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); } >/dev/null && {
4745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4746 test ! -s conftest.err
4747 }; then
4748 # Broken: success on invalid input.
4749 continue
4750 else
4751 echo "$as_me: failed program was:" >&5
4752 sed 's/^/| /' conftest.$ac_ext >&5
4753
4754 # Passes both tests.
4755 ac_preproc_ok=:
4756 break
4757 fi
4758
4759 rm -f conftest.err conftest.$ac_ext
4760
4761 done
4762 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4763 rm -f conftest.err conftest.$ac_ext
4764 if $ac_preproc_ok; then
4765 break
4766 fi
4767
4768 done
4769 ac_cv_prog_CPP=$CPP
4770
4771 fi
4772 CPP=$ac_cv_prog_CPP
4773 else
4774 ac_cv_prog_CPP=$CPP
4775 fi
4776 { echo "$as_me:$LINENO: result: $CPP" >&5
4777 echo "${ECHO_T}$CPP" >&6; }
4778 ac_preproc_ok=false
4779 for ac_c_preproc_warn_flag in '' yes
4780 do
4781 # Use a header file that comes with gcc, so configuring glibc
4782 # with a fresh cross-compiler works.
4783 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4784 # <limits.h> exists even on freestanding compilers.
4785 # On the NeXT, cc -E runs the code through the compiler's parser,
4786 # not just through cpp. "Syntax error" is here to catch this case.
4787 cat >conftest.$ac_ext <<_ACEOF
4788 /* confdefs.h. */
4789 _ACEOF
4790 cat confdefs.h >>conftest.$ac_ext
4791 cat >>conftest.$ac_ext <<_ACEOF
4792 /* end confdefs.h. */
4793 #ifdef __STDC__
4794 # include <limits.h>
4795 #else
4796 # include <assert.h>
4797 #endif
4798 Syntax error
4799 _ACEOF
4800 if { (ac_try="$ac_cpp conftest.$ac_ext"
4801 case "(($ac_try" in
4802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4803 *) ac_try_echo=$ac_try;;
4804 esac
4805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4807 ac_status=$?
4808 grep -v '^ *+' conftest.er1 >conftest.err
4809 rm -f conftest.er1
4810 cat conftest.err >&5
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); } >/dev/null && {
4813 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4814 test ! -s conftest.err
4815 }; then
4816 :
4817 else
4818 echo "$as_me: failed program was:" >&5
4819 sed 's/^/| /' conftest.$ac_ext >&5
4820
4821 # Broken: fails on valid input.
4822 continue
4823 fi
4824
4825 rm -f conftest.err conftest.$ac_ext
4826
4827 # OK, works on sane cases. Now check whether nonexistent headers
4828 # can be detected and how.
4829 cat >conftest.$ac_ext <<_ACEOF
4830 /* confdefs.h. */
4831 _ACEOF
4832 cat confdefs.h >>conftest.$ac_ext
4833 cat >>conftest.$ac_ext <<_ACEOF
4834 /* end confdefs.h. */
4835 #include <ac_nonexistent.h>
4836 _ACEOF
4837 if { (ac_try="$ac_cpp conftest.$ac_ext"
4838 case "(($ac_try" in
4839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4840 *) ac_try_echo=$ac_try;;
4841 esac
4842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4844 ac_status=$?
4845 grep -v '^ *+' conftest.er1 >conftest.err
4846 rm -f conftest.er1
4847 cat conftest.err >&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); } >/dev/null && {
4850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4851 test ! -s conftest.err
4852 }; then
4853 # Broken: success on invalid input.
4854 continue
4855 else
4856 echo "$as_me: failed program was:" >&5
4857 sed 's/^/| /' conftest.$ac_ext >&5
4858
4859 # Passes both tests.
4860 ac_preproc_ok=:
4861 break
4862 fi
4863
4864 rm -f conftest.err conftest.$ac_ext
4865
4866 done
4867 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4868 rm -f conftest.err conftest.$ac_ext
4869 if $ac_preproc_ok; then
4870 :
4871 else
4872 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4873 See \`config.log' for more details." >&5
4874 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4875 See \`config.log' for more details." >&2;}
4876 { (exit 1); exit 1; }; }
4877 fi
4878
4879 ac_ext=c
4880 ac_cpp='$CPP $CPPFLAGS'
4881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4884
4885 # Find a good install program. We prefer a C program (faster),
4886 # so one script is as good as another. But avoid the broken or
4887 # incompatible versions:
4888 # SysV /etc/install, /usr/sbin/install
4889 # SunOS /usr/etc/install
4890 # IRIX /sbin/install
4891 # AIX /bin/install
4892 # AmigaOS /C/install, which installs bootblocks on floppy discs
4893 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4894 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4895 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4896 # OS/2's system install, which has a completely different semantic
4897 # ./install, which can be erroneously created by make from ./install.sh.
4898 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4899 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4900 if test -z "$INSTALL"; then
4901 if test "${ac_cv_path_install+set}" = set; then
4902 echo $ECHO_N "(cached) $ECHO_C" >&6
4903 else
4904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905 for as_dir in $PATH
4906 do
4907 IFS=$as_save_IFS
4908 test -z "$as_dir" && as_dir=.
4909 # Account for people who put trailing slashes in PATH elements.
4910 case $as_dir/ in
4911 ./ | .// | /cC/* | \
4912 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4913 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4914 /usr/ucb/* ) ;;
4915 *)
4916 # OSF1 and SCO ODT 3.0 have their own names for install.
4917 # Don't use installbsd from OSF since it installs stuff as root
4918 # by default.
4919 for ac_prog in ginstall scoinst install; do
4920 for ac_exec_ext in '' $ac_executable_extensions; do
4921 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4922 if test $ac_prog = install &&
4923 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4924 # AIX install. It has an incompatible calling convention.
4925 :
4926 elif test $ac_prog = install &&
4927 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4928 # program-specific install script used by HP pwplus--don't use.
4929 :
4930 else
4931 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4932 break 3
4933 fi
4934 fi
4935 done
4936 done
4937 ;;
4938 esac
4939 done
4940 IFS=$as_save_IFS
4941
4942
4943 fi
4944 if test "${ac_cv_path_install+set}" = set; then
4945 INSTALL=$ac_cv_path_install
4946 else
4947 # As a last resort, use the slow shell script. Don't cache a
4948 # value for INSTALL within a source directory, because that will
4949 # break other packages using the cache if that directory is
4950 # removed, or if the value is a relative name.
4951 INSTALL=$ac_install_sh
4952 fi
4953 fi
4954 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4955 echo "${ECHO_T}$INSTALL" >&6; }
4956
4957 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4958 # It thinks the first close brace ends the variable substitution.
4959 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4960
4961 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4962
4963 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4964
4965 if test "x$RANLIB" = x; then
4966 if test -n "$ac_tool_prefix"; then
4967 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4968 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4971 if test "${ac_cv_prog_RANLIB+set}" = set; then
4972 echo $ECHO_N "(cached) $ECHO_C" >&6
4973 else
4974 if test -n "$RANLIB"; then
4975 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4976 else
4977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978 for as_dir in $PATH
4979 do
4980 IFS=$as_save_IFS
4981 test -z "$as_dir" && as_dir=.
4982 for ac_exec_ext in '' $ac_executable_extensions; do
4983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4984 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4986 break 2
4987 fi
4988 done
4989 done
4990 IFS=$as_save_IFS
4991
4992 fi
4993 fi
4994 RANLIB=$ac_cv_prog_RANLIB
4995 if test -n "$RANLIB"; then
4996 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4997 echo "${ECHO_T}$RANLIB" >&6; }
4998 else
4999 { echo "$as_me:$LINENO: result: no" >&5
5000 echo "${ECHO_T}no" >&6; }
5001 fi
5002
5003
5004 fi
5005 if test -z "$ac_cv_prog_RANLIB"; then
5006 ac_ct_RANLIB=$RANLIB
5007 # Extract the first word of "ranlib", so it can be a program name with args.
5008 set dummy ranlib; ac_word=$2
5009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5011 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5012 echo $ECHO_N "(cached) $ECHO_C" >&6
5013 else
5014 if test -n "$ac_ct_RANLIB"; then
5015 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5016 else
5017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018 for as_dir in $PATH
5019 do
5020 IFS=$as_save_IFS
5021 test -z "$as_dir" && as_dir=.
5022 for ac_exec_ext in '' $ac_executable_extensions; do
5023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5024 ac_cv_prog_ac_ct_RANLIB="ranlib"
5025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5026 break 2
5027 fi
5028 done
5029 done
5030 IFS=$as_save_IFS
5031
5032 fi
5033 fi
5034 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5035 if test -n "$ac_ct_RANLIB"; then
5036 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5037 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5038 else
5039 { echo "$as_me:$LINENO: result: no" >&5
5040 echo "${ECHO_T}no" >&6; }
5041 fi
5042
5043 if test "x$ac_ct_RANLIB" = x; then
5044 RANLIB=":"
5045 else
5046 case $cross_compiling:$ac_tool_warned in
5047 yes:)
5048 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5049 whose name does not start with the host triplet. If you think this
5050 configuration is useful to you, please write to autoconf@gnu.org." >&5
5051 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5052 whose name does not start with the host triplet. If you think this
5053 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5054 ac_tool_warned=yes ;;
5055 esac
5056 RANLIB=$ac_ct_RANLIB
5057 fi
5058 else
5059 RANLIB="$ac_cv_prog_RANLIB"
5060 fi
5061
5062 fi
5063 # Extract the first word of "install-info", so it can be a program name with args.
5064 set dummy install-info; ac_word=$2
5065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5067 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5068 echo $ECHO_N "(cached) $ECHO_C" >&6
5069 else
5070 case $INSTALL_INFO in
5071 [\\/]* | ?:[\\/]*)
5072 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5073 ;;
5074 *)
5075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076 for as_dir in $PATH
5077 do
5078 IFS=$as_save_IFS
5079 test -z "$as_dir" && as_dir=.
5080 for ac_exec_ext in '' $ac_executable_extensions; do
5081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5082 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5084 break 2
5085 fi
5086 done
5087 done
5088 IFS=$as_save_IFS
5089
5090 ;;
5091 esac
5092 fi
5093 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5094 if test -n "$INSTALL_INFO"; then
5095 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5096 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5097 else
5098 { echo "$as_me:$LINENO: result: no" >&5
5099 echo "${ECHO_T}no" >&6; }
5100 fi
5101
5102
5103 # Extract the first word of "install-info", so it can be a program name with args.
5104 set dummy install-info; ac_word=$2
5105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5107 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5108 echo $ECHO_N "(cached) $ECHO_C" >&6
5109 else
5110 case $INSTALL_INFO in
5111 [\\/]* | ?:[\\/]*)
5112 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5113 ;;
5114 *)
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 for as_dir in /usr/sbin
5117 do
5118 IFS=$as_save_IFS
5119 test -z "$as_dir" && as_dir=.
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5122 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5124 break 2
5125 fi
5126 done
5127 done
5128 IFS=$as_save_IFS
5129
5130 ;;
5131 esac
5132 fi
5133 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5134 if test -n "$INSTALL_INFO"; then
5135 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5136 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5137 else
5138 { echo "$as_me:$LINENO: result: no" >&5
5139 echo "${ECHO_T}no" >&6; }
5140 fi
5141
5142
5143 # Extract the first word of "install-info", so it can be a program name with args.
5144 set dummy install-info; ac_word=$2
5145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5147 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5148 echo $ECHO_N "(cached) $ECHO_C" >&6
5149 else
5150 case $INSTALL_INFO in
5151 [\\/]* | ?:[\\/]*)
5152 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5153 ;;
5154 *)
5155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156 for as_dir in /sbin
5157 do
5158 IFS=$as_save_IFS
5159 test -z "$as_dir" && as_dir=.
5160 for ac_exec_ext in '' $ac_executable_extensions; do
5161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5162 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5164 break 2
5165 fi
5166 done
5167 done
5168 IFS=$as_save_IFS
5169
5170 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5171 ;;
5172 esac
5173 fi
5174 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5175 if test -n "$INSTALL_INFO"; then
5176 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5177 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5178 else
5179 { echo "$as_me:$LINENO: result: no" >&5
5180 echo "${ECHO_T}no" >&6; }
5181 fi
5182
5183
5184 # Extract the first word of "gzip", so it can be a program name with args.
5185 set dummy gzip; ac_word=$2
5186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5188 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5189 echo $ECHO_N "(cached) $ECHO_C" >&6
5190 else
5191 case $GZIP_PROG in
5192 [\\/]* | ?:[\\/]*)
5193 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5194 ;;
5195 *)
5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197 for as_dir in $PATH
5198 do
5199 IFS=$as_save_IFS
5200 test -z "$as_dir" && as_dir=.
5201 for ac_exec_ext in '' $ac_executable_extensions; do
5202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5203 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5205 break 2
5206 fi
5207 done
5208 done
5209 IFS=$as_save_IFS
5210
5211 ;;
5212 esac
5213 fi
5214 GZIP_PROG=$ac_cv_path_GZIP_PROG
5215 if test -n "$GZIP_PROG"; then
5216 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5217 echo "${ECHO_T}$GZIP_PROG" >&6; }
5218 else
5219 { echo "$as_me:$LINENO: result: no" >&5
5220 echo "${ECHO_T}no" >&6; }
5221 fi
5222
5223
5224
5225
5226 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5227 then
5228 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5229 fi
5230
5231 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5232 then
5233 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5234 fi
5235
5236
5237 late_LDFLAGS=$LDFLAGS
5238 if test "$GCC" = yes; then
5239 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5240 else
5241 LDFLAGS="$LDFLAGS -znocombreloc"
5242 fi
5243
5244 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5245 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5246 cat >conftest.$ac_ext <<_ACEOF
5247 main(){return 0;}
5248 _ACEOF
5249 rm -f conftest.$ac_objext conftest$ac_exeext
5250 if { (ac_try="$ac_link"
5251 case "(($ac_try" in
5252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5253 *) ac_try_echo=$ac_try;;
5254 esac
5255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5256 (eval "$ac_link") 2>conftest.er1
5257 ac_status=$?
5258 grep -v '^ *+' conftest.er1 >conftest.err
5259 rm -f conftest.er1
5260 cat conftest.err >&5
5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262 (exit $ac_status); } && {
5263 test -z "$ac_c_werror_flag" ||
5264 test ! -s conftest.err
5265 } && test -s conftest$ac_exeext &&
5266 $as_test_x conftest$ac_exeext; then
5267 { echo "$as_me:$LINENO: result: yes" >&5
5268 echo "${ECHO_T}yes" >&6; }
5269 else
5270 echo "$as_me: failed program was:" >&5
5271 sed 's/^/| /' conftest.$ac_ext >&5
5272
5273 LDFLAGS=$late_LDFLAGS
5274 { echo "$as_me:$LINENO: result: no" >&5
5275 echo "${ECHO_T}no" >&6; }
5276 fi
5277
5278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5279 conftest$ac_exeext conftest.$ac_ext
5280
5281 #### Extract some information from the operating system and machine files.
5282
5283 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5284 - which libraries the lib-src programs will want, and
5285 - whether the GNU malloc routines are usable..." >&5
5286 echo "$as_me: checking the machine- and system-dependent files to find out
5287 - which libraries the lib-src programs will want, and
5288 - whether the GNU malloc routines are usable..." >&6;}
5289
5290 ### First figure out CFLAGS (which we use for running the compiler here)
5291 ### and REAL_CFLAGS (which we use for real compilation).
5292 ### The two are the same except on a few systems, where they are made
5293 ### different to work around various lossages. For example,
5294 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5295 ### as implying static linking.
5296
5297 ### If the CFLAGS env var is specified, we use that value
5298 ### instead of the default.
5299
5300 ### It's not important that this name contain the PID; you can't run
5301 ### two configures in the same directory and have anything work
5302 ### anyway.
5303 tempcname="conftest.c"
5304
5305 echo '
5306 #include "'${srcdir}'/src/'${opsysfile}'"
5307 #include "'${srcdir}'/src/'${machfile}'"
5308 #ifndef LIBS_MACHINE
5309 #define LIBS_MACHINE
5310 #endif
5311 #ifndef LIBS_SYSTEM
5312 #define LIBS_SYSTEM
5313 #endif
5314 #ifndef C_SWITCH_SYSTEM
5315 #define C_SWITCH_SYSTEM
5316 #endif
5317 #ifndef C_SWITCH_MACHINE
5318 #define C_SWITCH_MACHINE
5319 #endif
5320 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5321 configure___ c_switch_system=C_SWITCH_SYSTEM
5322 configure___ c_switch_machine=C_SWITCH_MACHINE
5323
5324 #ifndef LIB_X11_LIB
5325 #define LIB_X11_LIB -lX11
5326 #endif
5327
5328 #ifndef LIBX11_MACHINE
5329 #define LIBX11_MACHINE
5330 #endif
5331
5332 #ifndef LIBX11_SYSTEM
5333 #define LIBX11_SYSTEM
5334 #endif
5335 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5336
5337 #ifdef UNEXEC
5338 configure___ unexec=UNEXEC
5339 #else
5340 configure___ unexec=unexec.o
5341 #endif
5342
5343 #ifdef SYSTEM_MALLOC
5344 configure___ system_malloc=yes
5345 #else
5346 configure___ system_malloc=no
5347 #endif
5348
5349 #ifdef USE_MMAP_FOR_BUFFERS
5350 configure___ use_mmap_for_buffers=yes
5351 #else
5352 configure___ use_mmap_for_buffers=no
5353 #endif
5354
5355 #ifndef C_DEBUG_SWITCH
5356 #define C_DEBUG_SWITCH -g
5357 #endif
5358
5359 #ifndef C_OPTIMIZE_SWITCH
5360 #ifdef __GNUC__
5361 #define C_OPTIMIZE_SWITCH -O2
5362 #else
5363 #define C_OPTIMIZE_SWITCH -O
5364 #endif
5365 #endif
5366
5367 #ifndef C_WARNINGS_SWITCH
5368 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5369 #endif
5370
5371 #ifndef LD_SWITCH_MACHINE
5372 #define LD_SWITCH_MACHINE
5373 #endif
5374
5375 #ifndef LD_SWITCH_SYSTEM
5376 #define LD_SWITCH_SYSTEM
5377 #endif
5378
5379 #ifndef LD_SWITCH_X_SITE_AUX
5380 #define LD_SWITCH_X_SITE_AUX
5381 #endif
5382
5383 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5384 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5385
5386 #ifdef THIS_IS_CONFIGURE
5387
5388 /* Get the CFLAGS for tests in configure. */
5389 #ifdef __GNUC__
5390 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5391 #else
5392 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5393 #endif
5394
5395 #else /* not THIS_IS_CONFIGURE */
5396
5397 /* Get the CFLAGS for real compilation. */
5398 #ifdef __GNUC__
5399 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5400 #else
5401 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5402 #endif
5403
5404 #endif /* not THIS_IS_CONFIGURE */
5405 ' > ${tempcname}
5406
5407 # The value of CPP is a quoted variable reference, so we need to do this
5408 # to get its actual value...
5409 CPP=`eval "echo $CPP"`
5410 eval `${CPP} -Isrc ${tempcname} \
5411 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5412 if test "x$SPECIFIED_CFLAGS" = x; then
5413 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5414 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5415 else
5416 REAL_CFLAGS="$CFLAGS"
5417 fi
5418 rm ${tempcname}
5419
5420 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5421
5422 ### Make sure subsequent tests use flags consistent with the build flags.
5423
5424 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5425 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5426 else
5427 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5428 fi
5429
5430
5431
5432 # Check whether --enable-largefile was given.
5433 if test "${enable_largefile+set}" = set; then
5434 enableval=$enable_largefile;
5435 fi
5436
5437 if test "$enable_largefile" != no; then
5438
5439 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5440 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5441 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5442 echo $ECHO_N "(cached) $ECHO_C" >&6
5443 else
5444 ac_cv_sys_largefile_CC=no
5445 if test "$GCC" != yes; then
5446 ac_save_CC=$CC
5447 while :; do
5448 # IRIX 6.2 and later do not support large files by default,
5449 # so use the C compiler's -n32 option if that helps.
5450 cat >conftest.$ac_ext <<_ACEOF
5451 /* confdefs.h. */
5452 _ACEOF
5453 cat confdefs.h >>conftest.$ac_ext
5454 cat >>conftest.$ac_ext <<_ACEOF
5455 /* end confdefs.h. */
5456 #include <sys/types.h>
5457 /* Check that off_t can represent 2**63 - 1 correctly.
5458 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5459 since some C++ compilers masquerading as C compilers
5460 incorrectly reject 9223372036854775807. */
5461 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5462 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5463 && LARGE_OFF_T % 2147483647 == 1)
5464 ? 1 : -1];
5465 int
5466 main ()
5467 {
5468
5469 ;
5470 return 0;
5471 }
5472 _ACEOF
5473 rm -f conftest.$ac_objext
5474 if { (ac_try="$ac_compile"
5475 case "(($ac_try" in
5476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5477 *) ac_try_echo=$ac_try;;
5478 esac
5479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5480 (eval "$ac_compile") 2>conftest.er1
5481 ac_status=$?
5482 grep -v '^ *+' conftest.er1 >conftest.err
5483 rm -f conftest.er1
5484 cat conftest.err >&5
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); } && {
5487 test -z "$ac_c_werror_flag" ||
5488 test ! -s conftest.err
5489 } && test -s conftest.$ac_objext; then
5490 break
5491 else
5492 echo "$as_me: failed program was:" >&5
5493 sed 's/^/| /' conftest.$ac_ext >&5
5494
5495
5496 fi
5497
5498 rm -f core conftest.err conftest.$ac_objext
5499 CC="$CC -n32"
5500 rm -f conftest.$ac_objext
5501 if { (ac_try="$ac_compile"
5502 case "(($ac_try" in
5503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5504 *) ac_try_echo=$ac_try;;
5505 esac
5506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5507 (eval "$ac_compile") 2>conftest.er1
5508 ac_status=$?
5509 grep -v '^ *+' conftest.er1 >conftest.err
5510 rm -f conftest.er1
5511 cat conftest.err >&5
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); } && {
5514 test -z "$ac_c_werror_flag" ||
5515 test ! -s conftest.err
5516 } && test -s conftest.$ac_objext; then
5517 ac_cv_sys_largefile_CC=' -n32'; break
5518 else
5519 echo "$as_me: failed program was:" >&5
5520 sed 's/^/| /' conftest.$ac_ext >&5
5521
5522
5523 fi
5524
5525 rm -f core conftest.err conftest.$ac_objext
5526 break
5527 done
5528 CC=$ac_save_CC
5529 rm -f conftest.$ac_ext
5530 fi
5531 fi
5532 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5533 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5534 if test "$ac_cv_sys_largefile_CC" != no; then
5535 CC=$CC$ac_cv_sys_largefile_CC
5536 fi
5537
5538 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5539 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5540 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5541 echo $ECHO_N "(cached) $ECHO_C" >&6
5542 else
5543 while :; do
5544 cat >conftest.$ac_ext <<_ACEOF
5545 /* confdefs.h. */
5546 _ACEOF
5547 cat confdefs.h >>conftest.$ac_ext
5548 cat >>conftest.$ac_ext <<_ACEOF
5549 /* end confdefs.h. */
5550 #include <sys/types.h>
5551 /* Check that off_t can represent 2**63 - 1 correctly.
5552 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5553 since some C++ compilers masquerading as C compilers
5554 incorrectly reject 9223372036854775807. */
5555 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5556 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5557 && LARGE_OFF_T % 2147483647 == 1)
5558 ? 1 : -1];
5559 int
5560 main ()
5561 {
5562
5563 ;
5564 return 0;
5565 }
5566 _ACEOF
5567 rm -f conftest.$ac_objext
5568 if { (ac_try="$ac_compile"
5569 case "(($ac_try" in
5570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5571 *) ac_try_echo=$ac_try;;
5572 esac
5573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5574 (eval "$ac_compile") 2>conftest.er1
5575 ac_status=$?
5576 grep -v '^ *+' conftest.er1 >conftest.err
5577 rm -f conftest.er1
5578 cat conftest.err >&5
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); } && {
5581 test -z "$ac_c_werror_flag" ||
5582 test ! -s conftest.err
5583 } && test -s conftest.$ac_objext; then
5584 ac_cv_sys_file_offset_bits=no; break
5585 else
5586 echo "$as_me: failed program was:" >&5
5587 sed 's/^/| /' conftest.$ac_ext >&5
5588
5589
5590 fi
5591
5592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5593 cat >conftest.$ac_ext <<_ACEOF
5594 /* confdefs.h. */
5595 _ACEOF
5596 cat confdefs.h >>conftest.$ac_ext
5597 cat >>conftest.$ac_ext <<_ACEOF
5598 /* end confdefs.h. */
5599 #define _FILE_OFFSET_BITS 64
5600 #include <sys/types.h>
5601 /* Check that off_t can represent 2**63 - 1 correctly.
5602 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5603 since some C++ compilers masquerading as C compilers
5604 incorrectly reject 9223372036854775807. */
5605 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5606 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5607 && LARGE_OFF_T % 2147483647 == 1)
5608 ? 1 : -1];
5609 int
5610 main ()
5611 {
5612
5613 ;
5614 return 0;
5615 }
5616 _ACEOF
5617 rm -f conftest.$ac_objext
5618 if { (ac_try="$ac_compile"
5619 case "(($ac_try" in
5620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5621 *) ac_try_echo=$ac_try;;
5622 esac
5623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5624 (eval "$ac_compile") 2>conftest.er1
5625 ac_status=$?
5626 grep -v '^ *+' conftest.er1 >conftest.err
5627 rm -f conftest.er1
5628 cat conftest.err >&5
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); } && {
5631 test -z "$ac_c_werror_flag" ||
5632 test ! -s conftest.err
5633 } && test -s conftest.$ac_objext; then
5634 ac_cv_sys_file_offset_bits=64; break
5635 else
5636 echo "$as_me: failed program was:" >&5
5637 sed 's/^/| /' conftest.$ac_ext >&5
5638
5639
5640 fi
5641
5642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5643 ac_cv_sys_file_offset_bits=unknown
5644 break
5645 done
5646 fi
5647 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5648 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5649 case $ac_cv_sys_file_offset_bits in #(
5650 no | unknown) ;;
5651 *)
5652 cat >>confdefs.h <<_ACEOF
5653 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5654 _ACEOF
5655 ;;
5656 esac
5657 rm -f conftest*
5658 if test $ac_cv_sys_file_offset_bits = unknown; then
5659 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5660 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5661 if test "${ac_cv_sys_large_files+set}" = set; then
5662 echo $ECHO_N "(cached) $ECHO_C" >&6
5663 else
5664 while :; do
5665 cat >conftest.$ac_ext <<_ACEOF
5666 /* confdefs.h. */
5667 _ACEOF
5668 cat confdefs.h >>conftest.$ac_ext
5669 cat >>conftest.$ac_ext <<_ACEOF
5670 /* end confdefs.h. */
5671 #include <sys/types.h>
5672 /* Check that off_t can represent 2**63 - 1 correctly.
5673 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5674 since some C++ compilers masquerading as C compilers
5675 incorrectly reject 9223372036854775807. */
5676 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5677 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5678 && LARGE_OFF_T % 2147483647 == 1)
5679 ? 1 : -1];
5680 int
5681 main ()
5682 {
5683
5684 ;
5685 return 0;
5686 }
5687 _ACEOF
5688 rm -f conftest.$ac_objext
5689 if { (ac_try="$ac_compile"
5690 case "(($ac_try" in
5691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5692 *) ac_try_echo=$ac_try;;
5693 esac
5694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5695 (eval "$ac_compile") 2>conftest.er1
5696 ac_status=$?
5697 grep -v '^ *+' conftest.er1 >conftest.err
5698 rm -f conftest.er1
5699 cat conftest.err >&5
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); } && {
5702 test -z "$ac_c_werror_flag" ||
5703 test ! -s conftest.err
5704 } && test -s conftest.$ac_objext; then
5705 ac_cv_sys_large_files=no; break
5706 else
5707 echo "$as_me: failed program was:" >&5
5708 sed 's/^/| /' conftest.$ac_ext >&5
5709
5710
5711 fi
5712
5713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5714 cat >conftest.$ac_ext <<_ACEOF
5715 /* confdefs.h. */
5716 _ACEOF
5717 cat confdefs.h >>conftest.$ac_ext
5718 cat >>conftest.$ac_ext <<_ACEOF
5719 /* end confdefs.h. */
5720 #define _LARGE_FILES 1
5721 #include <sys/types.h>
5722 /* Check that off_t can represent 2**63 - 1 correctly.
5723 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5724 since some C++ compilers masquerading as C compilers
5725 incorrectly reject 9223372036854775807. */
5726 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5727 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5728 && LARGE_OFF_T % 2147483647 == 1)
5729 ? 1 : -1];
5730 int
5731 main ()
5732 {
5733
5734 ;
5735 return 0;
5736 }
5737 _ACEOF
5738 rm -f conftest.$ac_objext
5739 if { (ac_try="$ac_compile"
5740 case "(($ac_try" in
5741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5742 *) ac_try_echo=$ac_try;;
5743 esac
5744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5745 (eval "$ac_compile") 2>conftest.er1
5746 ac_status=$?
5747 grep -v '^ *+' conftest.er1 >conftest.err
5748 rm -f conftest.er1
5749 cat conftest.err >&5
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); } && {
5752 test -z "$ac_c_werror_flag" ||
5753 test ! -s conftest.err
5754 } && test -s conftest.$ac_objext; then
5755 ac_cv_sys_large_files=1; break
5756 else
5757 echo "$as_me: failed program was:" >&5
5758 sed 's/^/| /' conftest.$ac_ext >&5
5759
5760
5761 fi
5762
5763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5764 ac_cv_sys_large_files=unknown
5765 break
5766 done
5767 fi
5768 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5769 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5770 case $ac_cv_sys_large_files in #(
5771 no | unknown) ;;
5772 *)
5773 cat >>confdefs.h <<_ACEOF
5774 #define _LARGE_FILES $ac_cv_sys_large_files
5775 _ACEOF
5776 ;;
5777 esac
5778 rm -f conftest*
5779 fi
5780 fi
5781
5782
5783
5784 ### The standard library on x86-64 GNU/Linux distributions can
5785 ### be located in either /usr/lib64 or /usr/lib.
5786 case "${canonical}" in
5787 x86_64-*-linux-gnu* )
5788 if test -d /usr/lib64; then
5789
5790 cat >>confdefs.h <<\_ACEOF
5791 #define HAVE_X86_64_LIB64_DIR 1
5792 _ACEOF
5793
5794 fi
5795 esac
5796
5797
5798
5799
5800 if test "${with_sound}" != "no"; then
5801 # Sound support for GNU/Linux and the free BSDs.
5802 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5803 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5804 if test "${ac_cv_header_stdc+set}" = set; then
5805 echo $ECHO_N "(cached) $ECHO_C" >&6
5806 else
5807 cat >conftest.$ac_ext <<_ACEOF
5808 /* confdefs.h. */
5809 _ACEOF
5810 cat confdefs.h >>conftest.$ac_ext
5811 cat >>conftest.$ac_ext <<_ACEOF
5812 /* end confdefs.h. */
5813 #include <stdlib.h>
5814 #include <stdarg.h>
5815 #include <string.h>
5816 #include <float.h>
5817
5818 int
5819 main ()
5820 {
5821
5822 ;
5823 return 0;
5824 }
5825 _ACEOF
5826 rm -f conftest.$ac_objext
5827 if { (ac_try="$ac_compile"
5828 case "(($ac_try" in
5829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5830 *) ac_try_echo=$ac_try;;
5831 esac
5832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5833 (eval "$ac_compile") 2>conftest.er1
5834 ac_status=$?
5835 grep -v '^ *+' conftest.er1 >conftest.err
5836 rm -f conftest.er1
5837 cat conftest.err >&5
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); } && {
5840 test -z "$ac_c_werror_flag" ||
5841 test ! -s conftest.err
5842 } && test -s conftest.$ac_objext; then
5843 ac_cv_header_stdc=yes
5844 else
5845 echo "$as_me: failed program was:" >&5
5846 sed 's/^/| /' conftest.$ac_ext >&5
5847
5848 ac_cv_header_stdc=no
5849 fi
5850
5851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5852
5853 if test $ac_cv_header_stdc = yes; then
5854 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5855 cat >conftest.$ac_ext <<_ACEOF
5856 /* confdefs.h. */
5857 _ACEOF
5858 cat confdefs.h >>conftest.$ac_ext
5859 cat >>conftest.$ac_ext <<_ACEOF
5860 /* end confdefs.h. */
5861 #include <string.h>
5862
5863 _ACEOF
5864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5865 $EGREP "memchr" >/dev/null 2>&1; then
5866 :
5867 else
5868 ac_cv_header_stdc=no
5869 fi
5870 rm -f conftest*
5871
5872 fi
5873
5874 if test $ac_cv_header_stdc = yes; then
5875 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5876 cat >conftest.$ac_ext <<_ACEOF
5877 /* confdefs.h. */
5878 _ACEOF
5879 cat confdefs.h >>conftest.$ac_ext
5880 cat >>conftest.$ac_ext <<_ACEOF
5881 /* end confdefs.h. */
5882 #include <stdlib.h>
5883
5884 _ACEOF
5885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5886 $EGREP "free" >/dev/null 2>&1; then
5887 :
5888 else
5889 ac_cv_header_stdc=no
5890 fi
5891 rm -f conftest*
5892
5893 fi
5894
5895 if test $ac_cv_header_stdc = yes; then
5896 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5897 if test "$cross_compiling" = yes; then
5898 :
5899 else
5900 cat >conftest.$ac_ext <<_ACEOF
5901 /* confdefs.h. */
5902 _ACEOF
5903 cat confdefs.h >>conftest.$ac_ext
5904 cat >>conftest.$ac_ext <<_ACEOF
5905 /* end confdefs.h. */
5906 #include <ctype.h>
5907 #include <stdlib.h>
5908 #if ((' ' & 0x0FF) == 0x020)
5909 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5910 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5911 #else
5912 # define ISLOWER(c) \
5913 (('a' <= (c) && (c) <= 'i') \
5914 || ('j' <= (c) && (c) <= 'r') \
5915 || ('s' <= (c) && (c) <= 'z'))
5916 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5917 #endif
5918
5919 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5920 int
5921 main ()
5922 {
5923 int i;
5924 for (i = 0; i < 256; i++)
5925 if (XOR (islower (i), ISLOWER (i))
5926 || toupper (i) != TOUPPER (i))
5927 return 2;
5928 return 0;
5929 }
5930 _ACEOF
5931 rm -f conftest$ac_exeext
5932 if { (ac_try="$ac_link"
5933 case "(($ac_try" in
5934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5935 *) ac_try_echo=$ac_try;;
5936 esac
5937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5938 (eval "$ac_link") 2>&5
5939 ac_status=$?
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5942 { (case "(($ac_try" in
5943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5944 *) ac_try_echo=$ac_try;;
5945 esac
5946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5947 (eval "$ac_try") 2>&5
5948 ac_status=$?
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); }; }; then
5951 :
5952 else
5953 echo "$as_me: program exited with status $ac_status" >&5
5954 echo "$as_me: failed program was:" >&5
5955 sed 's/^/| /' conftest.$ac_ext >&5
5956
5957 ( exit $ac_status )
5958 ac_cv_header_stdc=no
5959 fi
5960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5961 fi
5962
5963
5964 fi
5965 fi
5966 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5967 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5968 if test $ac_cv_header_stdc = yes; then
5969
5970 cat >>confdefs.h <<\_ACEOF
5971 #define STDC_HEADERS 1
5972 _ACEOF
5973
5974 fi
5975
5976 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5987 inttypes.h stdint.h unistd.h
5988 do
5989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5990 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5994 else
5995 cat >conftest.$ac_ext <<_ACEOF
5996 /* confdefs.h. */
5997 _ACEOF
5998 cat confdefs.h >>conftest.$ac_ext
5999 cat >>conftest.$ac_ext <<_ACEOF
6000 /* end confdefs.h. */
6001 $ac_includes_default
6002
6003 #include <$ac_header>
6004 _ACEOF
6005 rm -f conftest.$ac_objext
6006 if { (ac_try="$ac_compile"
6007 case "(($ac_try" in
6008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6009 *) ac_try_echo=$ac_try;;
6010 esac
6011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6012 (eval "$ac_compile") 2>conftest.er1
6013 ac_status=$?
6014 grep -v '^ *+' conftest.er1 >conftest.err
6015 rm -f conftest.er1
6016 cat conftest.err >&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } && {
6019 test -z "$ac_c_werror_flag" ||
6020 test ! -s conftest.err
6021 } && test -s conftest.$ac_objext; then
6022 eval "$as_ac_Header=yes"
6023 else
6024 echo "$as_me: failed program was:" >&5
6025 sed 's/^/| /' conftest.$ac_ext >&5
6026
6027 eval "$as_ac_Header=no"
6028 fi
6029
6030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6031 fi
6032 ac_res=`eval echo '${'$as_ac_Header'}'`
6033 { echo "$as_me:$LINENO: result: $ac_res" >&5
6034 echo "${ECHO_T}$ac_res" >&6; }
6035 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6036 cat >>confdefs.h <<_ACEOF
6037 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6038 _ACEOF
6039
6040 fi
6041
6042 done
6043
6044
6045
6046
6047
6048 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6049 do
6050 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
6056 fi
6057 ac_res=`eval echo '${'$as_ac_Header'}'`
6058 { echo "$as_me:$LINENO: result: $ac_res" >&5
6059 echo "${ECHO_T}$ac_res" >&6; }
6060 else
6061 # Is the header compilable?
6062 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6063 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6064 cat >conftest.$ac_ext <<_ACEOF
6065 /* confdefs.h. */
6066 _ACEOF
6067 cat confdefs.h >>conftest.$ac_ext
6068 cat >>conftest.$ac_ext <<_ACEOF
6069 /* end confdefs.h. */
6070 $ac_includes_default
6071 #include <$ac_header>
6072 _ACEOF
6073 rm -f conftest.$ac_objext
6074 if { (ac_try="$ac_compile"
6075 case "(($ac_try" in
6076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6077 *) ac_try_echo=$ac_try;;
6078 esac
6079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6080 (eval "$ac_compile") 2>conftest.er1
6081 ac_status=$?
6082 grep -v '^ *+' conftest.er1 >conftest.err
6083 rm -f conftest.er1
6084 cat conftest.err >&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); } && {
6087 test -z "$ac_c_werror_flag" ||
6088 test ! -s conftest.err
6089 } && test -s conftest.$ac_objext; then
6090 ac_header_compiler=yes
6091 else
6092 echo "$as_me: failed program was:" >&5
6093 sed 's/^/| /' conftest.$ac_ext >&5
6094
6095 ac_header_compiler=no
6096 fi
6097
6098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6099 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6100 echo "${ECHO_T}$ac_header_compiler" >&6; }
6101
6102 # Is the header present?
6103 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6104 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6105 cat >conftest.$ac_ext <<_ACEOF
6106 /* confdefs.h. */
6107 _ACEOF
6108 cat confdefs.h >>conftest.$ac_ext
6109 cat >>conftest.$ac_ext <<_ACEOF
6110 /* end confdefs.h. */
6111 #include <$ac_header>
6112 _ACEOF
6113 if { (ac_try="$ac_cpp conftest.$ac_ext"
6114 case "(($ac_try" in
6115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6116 *) ac_try_echo=$ac_try;;
6117 esac
6118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6119 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6120 ac_status=$?
6121 grep -v '^ *+' conftest.er1 >conftest.err
6122 rm -f conftest.er1
6123 cat conftest.err >&5
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); } >/dev/null && {
6126 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6127 test ! -s conftest.err
6128 }; then
6129 ac_header_preproc=yes
6130 else
6131 echo "$as_me: failed program was:" >&5
6132 sed 's/^/| /' conftest.$ac_ext >&5
6133
6134 ac_header_preproc=no
6135 fi
6136
6137 rm -f conftest.err conftest.$ac_ext
6138 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6139 echo "${ECHO_T}$ac_header_preproc" >&6; }
6140
6141 # So? What about this header?
6142 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6143 yes:no: )
6144 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6145 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6147 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6148 ac_header_preproc=yes
6149 ;;
6150 no:yes:* )
6151 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6152 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6153 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6154 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6155 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6156 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6157 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6158 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6160 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6161 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6162 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6163
6164 ;;
6165 esac
6166 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6168 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6169 echo $ECHO_N "(cached) $ECHO_C" >&6
6170 else
6171 eval "$as_ac_Header=\$ac_header_preproc"
6172 fi
6173 ac_res=`eval echo '${'$as_ac_Header'}'`
6174 { echo "$as_me:$LINENO: result: $ac_res" >&5
6175 echo "${ECHO_T}$ac_res" >&6; }
6176
6177 fi
6178 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6179 cat >>confdefs.h <<_ACEOF
6180 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6181 _ACEOF
6182
6183 fi
6184
6185 done
6186
6187 # Emulation library used on NetBSD.
6188 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6189 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6190 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6191 echo $ECHO_N "(cached) $ECHO_C" >&6
6192 else
6193 ac_check_lib_save_LIBS=$LIBS
6194 LIBS="-lossaudio $LIBS"
6195 cat >conftest.$ac_ext <<_ACEOF
6196 /* confdefs.h. */
6197 _ACEOF
6198 cat confdefs.h >>conftest.$ac_ext
6199 cat >>conftest.$ac_ext <<_ACEOF
6200 /* end confdefs.h. */
6201
6202 /* Override any GCC internal prototype to avoid an error.
6203 Use char because int might match the return type of a GCC
6204 builtin and then its argument prototype would still apply. */
6205 #ifdef __cplusplus
6206 extern "C"
6207 #endif
6208 char _oss_ioctl ();
6209 int
6210 main ()
6211 {
6212 return _oss_ioctl ();
6213 ;
6214 return 0;
6215 }
6216 _ACEOF
6217 rm -f conftest.$ac_objext conftest$ac_exeext
6218 if { (ac_try="$ac_link"
6219 case "(($ac_try" in
6220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6221 *) ac_try_echo=$ac_try;;
6222 esac
6223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6224 (eval "$ac_link") 2>conftest.er1
6225 ac_status=$?
6226 grep -v '^ *+' conftest.er1 >conftest.err
6227 rm -f conftest.er1
6228 cat conftest.err >&5
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); } && {
6231 test -z "$ac_c_werror_flag" ||
6232 test ! -s conftest.err
6233 } && test -s conftest$ac_exeext &&
6234 $as_test_x conftest$ac_exeext; then
6235 ac_cv_lib_ossaudio__oss_ioctl=yes
6236 else
6237 echo "$as_me: failed program was:" >&5
6238 sed 's/^/| /' conftest.$ac_ext >&5
6239
6240 ac_cv_lib_ossaudio__oss_ioctl=no
6241 fi
6242
6243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6244 conftest$ac_exeext conftest.$ac_ext
6245 LIBS=$ac_check_lib_save_LIBS
6246 fi
6247 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6248 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6249 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6250 LIBSOUND=-lossaudio
6251 else
6252 LIBSOUND=
6253 fi
6254
6255
6256
6257 ALSA_REQUIRED=1.0.0
6258 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6259 if test "X${with_pkg_config_prog}" != X; then
6260 PKG_CONFIG="${with_pkg_config_prog}"
6261 fi
6262
6263 succeeded=no
6264
6265 if test -z "$PKG_CONFIG"; then
6266 # Extract the first word of "pkg-config", so it can be a program name with args.
6267 set dummy pkg-config; ac_word=$2
6268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6270 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6271 echo $ECHO_N "(cached) $ECHO_C" >&6
6272 else
6273 case $PKG_CONFIG in
6274 [\\/]* | ?:[\\/]*)
6275 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6276 ;;
6277 *)
6278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6279 for as_dir in $PATH
6280 do
6281 IFS=$as_save_IFS
6282 test -z "$as_dir" && as_dir=.
6283 for ac_exec_ext in '' $ac_executable_extensions; do
6284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6285 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6287 break 2
6288 fi
6289 done
6290 done
6291 IFS=$as_save_IFS
6292
6293 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6294 ;;
6295 esac
6296 fi
6297 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6298 if test -n "$PKG_CONFIG"; then
6299 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6300 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6301 else
6302 { echo "$as_me:$LINENO: result: no" >&5
6303 echo "${ECHO_T}no" >&6; }
6304 fi
6305
6306
6307 fi
6308
6309 if test "$PKG_CONFIG" = "no" ; then
6310 HAVE_ALSA=no
6311 else
6312 PKG_CONFIG_MIN_VERSION=0.9.0
6313 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6314 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6315 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6316
6317 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6318 { echo "$as_me:$LINENO: result: yes" >&5
6319 echo "${ECHO_T}yes" >&6; }
6320 succeeded=yes
6321
6322 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6323 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6324 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"`
6325 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6326 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6327
6328 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6329 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6330 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"`
6331 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6332 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6333 else
6334 { echo "$as_me:$LINENO: result: no" >&5
6335 echo "${ECHO_T}no" >&6; }
6336 ALSA_CFLAGS=""
6337 ALSA_LIBS=""
6338 ## If we have a custom action on failure, don't print errors, but
6339 ## do set a variable so people can do so.
6340 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6341
6342 fi
6343
6344
6345
6346 else
6347 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6348 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6349 fi
6350 fi
6351
6352 if test $succeeded = yes; then
6353 HAVE_ALSA=yes
6354 else
6355 HAVE_ALSA=no
6356 fi
6357
6358 if test $HAVE_ALSA = yes; then
6359 SAVE_CFLAGS="$CFLAGS"
6360 SAVE_LDFLAGS="$LDFLAGS"
6361 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6362 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6363 cat >conftest.$ac_ext <<_ACEOF
6364 /* confdefs.h. */
6365 _ACEOF
6366 cat confdefs.h >>conftest.$ac_ext
6367 cat >>conftest.$ac_ext <<_ACEOF
6368 /* end confdefs.h. */
6369 #include <asoundlib.h>
6370 int
6371 main ()
6372 {
6373 snd_lib_error_set_handler (0);
6374 ;
6375 return 0;
6376 }
6377 _ACEOF
6378 rm -f conftest.$ac_objext
6379 if { (ac_try="$ac_compile"
6380 case "(($ac_try" in
6381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6382 *) ac_try_echo=$ac_try;;
6383 esac
6384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6385 (eval "$ac_compile") 2>conftest.er1
6386 ac_status=$?
6387 grep -v '^ *+' conftest.er1 >conftest.err
6388 rm -f conftest.er1
6389 cat conftest.err >&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); } && {
6392 test -z "$ac_c_werror_flag" ||
6393 test ! -s conftest.err
6394 } && test -s conftest.$ac_objext; then
6395 emacs_alsa_normal=yes
6396 else
6397 echo "$as_me: failed program was:" >&5
6398 sed 's/^/| /' conftest.$ac_ext >&5
6399
6400 emacs_alsa_normal=no
6401 fi
6402
6403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6404 if test "$emacs_alsa_normal" != yes; then
6405 cat >conftest.$ac_ext <<_ACEOF
6406 /* confdefs.h. */
6407 _ACEOF
6408 cat confdefs.h >>conftest.$ac_ext
6409 cat >>conftest.$ac_ext <<_ACEOF
6410 /* end confdefs.h. */
6411 #include <alsa/asoundlib.h>
6412 int
6413 main ()
6414 {
6415 snd_lib_error_set_handler (0);
6416 ;
6417 return 0;
6418 }
6419 _ACEOF
6420 rm -f conftest.$ac_objext
6421 if { (ac_try="$ac_compile"
6422 case "(($ac_try" in
6423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6424 *) ac_try_echo=$ac_try;;
6425 esac
6426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6427 (eval "$ac_compile") 2>conftest.er1
6428 ac_status=$?
6429 grep -v '^ *+' conftest.er1 >conftest.err
6430 rm -f conftest.er1
6431 cat conftest.err >&5
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); } && {
6434 test -z "$ac_c_werror_flag" ||
6435 test ! -s conftest.err
6436 } && test -s conftest.$ac_objext; then
6437 emacs_alsa_subdir=yes
6438 else
6439 echo "$as_me: failed program was:" >&5
6440 sed 's/^/| /' conftest.$ac_ext >&5
6441
6442 emacs_alsa_subdir=no
6443 fi
6444
6445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6446 if test "$emacs_alsa_subdir" != yes; then
6447 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6448 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6449 { (exit 1); exit 1; }; }
6450 fi
6451 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6452 fi
6453
6454 CFLAGS="$SAVE_CFLAGS"
6455 LDFLAGS="$SAVE_LDFLAGS"
6456 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6457 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6458
6459 cat >>confdefs.h <<\_ACEOF
6460 #define HAVE_ALSA 1
6461 _ACEOF
6462
6463
6464 fi
6465
6466 fi
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6494 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6495 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6496 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6497 sys/utsname.h pwd.h
6498 do
6499 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6501 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6504 echo $ECHO_N "(cached) $ECHO_C" >&6
6505 fi
6506 ac_res=`eval echo '${'$as_ac_Header'}'`
6507 { echo "$as_me:$LINENO: result: $ac_res" >&5
6508 echo "${ECHO_T}$ac_res" >&6; }
6509 else
6510 # Is the header compilable?
6511 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6512 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6513 cat >conftest.$ac_ext <<_ACEOF
6514 /* confdefs.h. */
6515 _ACEOF
6516 cat confdefs.h >>conftest.$ac_ext
6517 cat >>conftest.$ac_ext <<_ACEOF
6518 /* end confdefs.h. */
6519 $ac_includes_default
6520 #include <$ac_header>
6521 _ACEOF
6522 rm -f conftest.$ac_objext
6523 if { (ac_try="$ac_compile"
6524 case "(($ac_try" in
6525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6526 *) ac_try_echo=$ac_try;;
6527 esac
6528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6529 (eval "$ac_compile") 2>conftest.er1
6530 ac_status=$?
6531 grep -v '^ *+' conftest.er1 >conftest.err
6532 rm -f conftest.er1
6533 cat conftest.err >&5
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); } && {
6536 test -z "$ac_c_werror_flag" ||
6537 test ! -s conftest.err
6538 } && test -s conftest.$ac_objext; then
6539 ac_header_compiler=yes
6540 else
6541 echo "$as_me: failed program was:" >&5
6542 sed 's/^/| /' conftest.$ac_ext >&5
6543
6544 ac_header_compiler=no
6545 fi
6546
6547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6548 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6549 echo "${ECHO_T}$ac_header_compiler" >&6; }
6550
6551 # Is the header present?
6552 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6553 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6554 cat >conftest.$ac_ext <<_ACEOF
6555 /* confdefs.h. */
6556 _ACEOF
6557 cat confdefs.h >>conftest.$ac_ext
6558 cat >>conftest.$ac_ext <<_ACEOF
6559 /* end confdefs.h. */
6560 #include <$ac_header>
6561 _ACEOF
6562 if { (ac_try="$ac_cpp conftest.$ac_ext"
6563 case "(($ac_try" in
6564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6565 *) ac_try_echo=$ac_try;;
6566 esac
6567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6569 ac_status=$?
6570 grep -v '^ *+' conftest.er1 >conftest.err
6571 rm -f conftest.er1
6572 cat conftest.err >&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); } >/dev/null && {
6575 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6576 test ! -s conftest.err
6577 }; then
6578 ac_header_preproc=yes
6579 else
6580 echo "$as_me: failed program was:" >&5
6581 sed 's/^/| /' conftest.$ac_ext >&5
6582
6583 ac_header_preproc=no
6584 fi
6585
6586 rm -f conftest.err conftest.$ac_ext
6587 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6588 echo "${ECHO_T}$ac_header_preproc" >&6; }
6589
6590 # So? What about this header?
6591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6592 yes:no: )
6593 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6594 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6596 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6597 ac_header_preproc=yes
6598 ;;
6599 no:yes:* )
6600 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6601 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6602 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6603 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6604 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6605 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6606 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6607 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6609 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6610 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6611 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6612
6613 ;;
6614 esac
6615 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6618 echo $ECHO_N "(cached) $ECHO_C" >&6
6619 else
6620 eval "$as_ac_Header=\$ac_header_preproc"
6621 fi
6622 ac_res=`eval echo '${'$as_ac_Header'}'`
6623 { echo "$as_me:$LINENO: result: $ac_res" >&5
6624 echo "${ECHO_T}$ac_res" >&6; }
6625
6626 fi
6627 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6628 cat >>confdefs.h <<_ACEOF
6629 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6630 _ACEOF
6631
6632 fi
6633
6634 done
6635
6636
6637 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6638 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6639 cat >conftest.$ac_ext <<_ACEOF
6640 /* confdefs.h. */
6641 _ACEOF
6642 cat confdefs.h >>conftest.$ac_ext
6643 cat >>conftest.$ac_ext <<_ACEOF
6644 /* end confdefs.h. */
6645 #include <sys/personality.h>
6646 int
6647 main ()
6648 {
6649 personality (PER_LINUX32)
6650 ;
6651 return 0;
6652 }
6653 _ACEOF
6654 rm -f conftest.$ac_objext
6655 if { (ac_try="$ac_compile"
6656 case "(($ac_try" in
6657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6658 *) ac_try_echo=$ac_try;;
6659 esac
6660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6661 (eval "$ac_compile") 2>conftest.er1
6662 ac_status=$?
6663 grep -v '^ *+' conftest.er1 >conftest.err
6664 rm -f conftest.er1
6665 cat conftest.err >&5
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); } && {
6668 test -z "$ac_c_werror_flag" ||
6669 test ! -s conftest.err
6670 } && test -s conftest.$ac_objext; then
6671 emacs_cv_personality_linux32=yes
6672 else
6673 echo "$as_me: failed program was:" >&5
6674 sed 's/^/| /' conftest.$ac_ext >&5
6675
6676 emacs_cv_personality_linux32=no
6677 fi
6678
6679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6680 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6681 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6682
6683 if test $emacs_cv_personality_linux32 = yes; then
6684
6685 cat >>confdefs.h <<\_ACEOF
6686 #define HAVE_PERSONALITY_LINUX32 1
6687 _ACEOF
6688
6689 fi
6690
6691
6692 for ac_header in term.h
6693 do
6694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6695 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6698 echo $ECHO_N "(cached) $ECHO_C" >&6
6699 else
6700 cat >conftest.$ac_ext <<_ACEOF
6701 /* confdefs.h. */
6702 _ACEOF
6703 cat confdefs.h >>conftest.$ac_ext
6704 cat >>conftest.$ac_ext <<_ACEOF
6705 /* end confdefs.h. */
6706 #include <$ac_header>
6707 _ACEOF
6708 if { (ac_try="$ac_cpp conftest.$ac_ext"
6709 case "(($ac_try" in
6710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6711 *) ac_try_echo=$ac_try;;
6712 esac
6713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6715 ac_status=$?
6716 grep -v '^ *+' conftest.er1 >conftest.err
6717 rm -f conftest.er1
6718 cat conftest.err >&5
6719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720 (exit $ac_status); } >/dev/null && {
6721 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6722 test ! -s conftest.err
6723 }; then
6724 eval "$as_ac_Header=yes"
6725 else
6726 echo "$as_me: failed program was:" >&5
6727 sed 's/^/| /' conftest.$ac_ext >&5
6728
6729 eval "$as_ac_Header=no"
6730 fi
6731
6732 rm -f conftest.err conftest.$ac_ext
6733 fi
6734 ac_res=`eval echo '${'$as_ac_Header'}'`
6735 { echo "$as_me:$LINENO: result: $ac_res" >&5
6736 echo "${ECHO_T}$ac_res" >&6; }
6737 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6738 cat >>confdefs.h <<_ACEOF
6739 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6740 _ACEOF
6741
6742 fi
6743
6744 done
6745
6746 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6747 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6748 if test "${ac_cv_header_stdc+set}" = set; then
6749 echo $ECHO_N "(cached) $ECHO_C" >&6
6750 else
6751 cat >conftest.$ac_ext <<_ACEOF
6752 /* confdefs.h. */
6753 _ACEOF
6754 cat confdefs.h >>conftest.$ac_ext
6755 cat >>conftest.$ac_ext <<_ACEOF
6756 /* end confdefs.h. */
6757 #include <stdlib.h>
6758 #include <stdarg.h>
6759 #include <string.h>
6760 #include <float.h>
6761
6762 int
6763 main ()
6764 {
6765
6766 ;
6767 return 0;
6768 }
6769 _ACEOF
6770 rm -f conftest.$ac_objext
6771 if { (ac_try="$ac_compile"
6772 case "(($ac_try" in
6773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6774 *) ac_try_echo=$ac_try;;
6775 esac
6776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6777 (eval "$ac_compile") 2>conftest.er1
6778 ac_status=$?
6779 grep -v '^ *+' conftest.er1 >conftest.err
6780 rm -f conftest.er1
6781 cat conftest.err >&5
6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); } && {
6784 test -z "$ac_c_werror_flag" ||
6785 test ! -s conftest.err
6786 } && test -s conftest.$ac_objext; then
6787 ac_cv_header_stdc=yes
6788 else
6789 echo "$as_me: failed program was:" >&5
6790 sed 's/^/| /' conftest.$ac_ext >&5
6791
6792 ac_cv_header_stdc=no
6793 fi
6794
6795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6796
6797 if test $ac_cv_header_stdc = yes; then
6798 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6799 cat >conftest.$ac_ext <<_ACEOF
6800 /* confdefs.h. */
6801 _ACEOF
6802 cat confdefs.h >>conftest.$ac_ext
6803 cat >>conftest.$ac_ext <<_ACEOF
6804 /* end confdefs.h. */
6805 #include <string.h>
6806
6807 _ACEOF
6808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6809 $EGREP "memchr" >/dev/null 2>&1; then
6810 :
6811 else
6812 ac_cv_header_stdc=no
6813 fi
6814 rm -f conftest*
6815
6816 fi
6817
6818 if test $ac_cv_header_stdc = yes; then
6819 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6820 cat >conftest.$ac_ext <<_ACEOF
6821 /* confdefs.h. */
6822 _ACEOF
6823 cat confdefs.h >>conftest.$ac_ext
6824 cat >>conftest.$ac_ext <<_ACEOF
6825 /* end confdefs.h. */
6826 #include <stdlib.h>
6827
6828 _ACEOF
6829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6830 $EGREP "free" >/dev/null 2>&1; then
6831 :
6832 else
6833 ac_cv_header_stdc=no
6834 fi
6835 rm -f conftest*
6836
6837 fi
6838
6839 if test $ac_cv_header_stdc = yes; then
6840 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6841 if test "$cross_compiling" = yes; then
6842 :
6843 else
6844 cat >conftest.$ac_ext <<_ACEOF
6845 /* confdefs.h. */
6846 _ACEOF
6847 cat confdefs.h >>conftest.$ac_ext
6848 cat >>conftest.$ac_ext <<_ACEOF
6849 /* end confdefs.h. */
6850 #include <ctype.h>
6851 #include <stdlib.h>
6852 #if ((' ' & 0x0FF) == 0x020)
6853 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6854 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6855 #else
6856 # define ISLOWER(c) \
6857 (('a' <= (c) && (c) <= 'i') \
6858 || ('j' <= (c) && (c) <= 'r') \
6859 || ('s' <= (c) && (c) <= 'z'))
6860 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6861 #endif
6862
6863 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6864 int
6865 main ()
6866 {
6867 int i;
6868 for (i = 0; i < 256; i++)
6869 if (XOR (islower (i), ISLOWER (i))
6870 || toupper (i) != TOUPPER (i))
6871 return 2;
6872 return 0;
6873 }
6874 _ACEOF
6875 rm -f conftest$ac_exeext
6876 if { (ac_try="$ac_link"
6877 case "(($ac_try" in
6878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6879 *) ac_try_echo=$ac_try;;
6880 esac
6881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6882 (eval "$ac_link") 2>&5
6883 ac_status=$?
6884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6886 { (case "(($ac_try" in
6887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6888 *) ac_try_echo=$ac_try;;
6889 esac
6890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6891 (eval "$ac_try") 2>&5
6892 ac_status=$?
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); }; }; then
6895 :
6896 else
6897 echo "$as_me: program exited with status $ac_status" >&5
6898 echo "$as_me: failed program was:" >&5
6899 sed 's/^/| /' conftest.$ac_ext >&5
6900
6901 ( exit $ac_status )
6902 ac_cv_header_stdc=no
6903 fi
6904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6905 fi
6906
6907
6908 fi
6909 fi
6910 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6911 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6912 if test $ac_cv_header_stdc = yes; then
6913
6914 cat >>confdefs.h <<\_ACEOF
6915 #define STDC_HEADERS 1
6916 _ACEOF
6917
6918 fi
6919
6920 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6921 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6922 if test "${ac_cv_header_time+set}" = set; then
6923 echo $ECHO_N "(cached) $ECHO_C" >&6
6924 else
6925 cat >conftest.$ac_ext <<_ACEOF
6926 /* confdefs.h. */
6927 _ACEOF
6928 cat confdefs.h >>conftest.$ac_ext
6929 cat >>conftest.$ac_ext <<_ACEOF
6930 /* end confdefs.h. */
6931 #include <sys/types.h>
6932 #include <sys/time.h>
6933 #include <time.h>
6934
6935 int
6936 main ()
6937 {
6938 if ((struct tm *) 0)
6939 return 0;
6940 ;
6941 return 0;
6942 }
6943 _ACEOF
6944 rm -f conftest.$ac_objext
6945 if { (ac_try="$ac_compile"
6946 case "(($ac_try" in
6947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6948 *) ac_try_echo=$ac_try;;
6949 esac
6950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6951 (eval "$ac_compile") 2>conftest.er1
6952 ac_status=$?
6953 grep -v '^ *+' conftest.er1 >conftest.err
6954 rm -f conftest.er1
6955 cat conftest.err >&5
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); } && {
6958 test -z "$ac_c_werror_flag" ||
6959 test ! -s conftest.err
6960 } && test -s conftest.$ac_objext; then
6961 ac_cv_header_time=yes
6962 else
6963 echo "$as_me: failed program was:" >&5
6964 sed 's/^/| /' conftest.$ac_ext >&5
6965
6966 ac_cv_header_time=no
6967 fi
6968
6969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6970 fi
6971 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6972 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6973 if test $ac_cv_header_time = yes; then
6974
6975 cat >>confdefs.h <<\_ACEOF
6976 #define TIME_WITH_SYS_TIME 1
6977 _ACEOF
6978
6979 fi
6980
6981 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6982 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6983 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6984 echo $ECHO_N "(cached) $ECHO_C" >&6
6985 else
6986 cat >conftest.$ac_ext <<_ACEOF
6987 /* confdefs.h. */
6988 _ACEOF
6989 cat confdefs.h >>conftest.$ac_ext
6990 cat >>conftest.$ac_ext <<_ACEOF
6991 /* end confdefs.h. */
6992 $ac_includes_default
6993 int
6994 main ()
6995 {
6996 #ifndef sys_siglist
6997 (void) sys_siglist;
6998 #endif
6999
7000 ;
7001 return 0;
7002 }
7003 _ACEOF
7004 rm -f conftest.$ac_objext
7005 if { (ac_try="$ac_compile"
7006 case "(($ac_try" in
7007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7008 *) ac_try_echo=$ac_try;;
7009 esac
7010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7011 (eval "$ac_compile") 2>conftest.er1
7012 ac_status=$?
7013 grep -v '^ *+' conftest.er1 >conftest.err
7014 rm -f conftest.er1
7015 cat conftest.err >&5
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); } && {
7018 test -z "$ac_c_werror_flag" ||
7019 test ! -s conftest.err
7020 } && test -s conftest.$ac_objext; then
7021 ac_cv_have_decl_sys_siglist=yes
7022 else
7023 echo "$as_me: failed program was:" >&5
7024 sed 's/^/| /' conftest.$ac_ext >&5
7025
7026 ac_cv_have_decl_sys_siglist=no
7027 fi
7028
7029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7030 fi
7031 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7032 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7033 if test $ac_cv_have_decl_sys_siglist = yes; then
7034
7035 cat >>confdefs.h <<_ACEOF
7036 #define HAVE_DECL_SYS_SIGLIST 1
7037 _ACEOF
7038
7039
7040 else
7041 cat >>confdefs.h <<_ACEOF
7042 #define HAVE_DECL_SYS_SIGLIST 0
7043 _ACEOF
7044
7045
7046 fi
7047
7048
7049 if test $ac_cv_have_decl_sys_siglist != yes; then
7050 # For Tru64, at least:
7051 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7052 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7053 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7054 echo $ECHO_N "(cached) $ECHO_C" >&6
7055 else
7056 cat >conftest.$ac_ext <<_ACEOF
7057 /* confdefs.h. */
7058 _ACEOF
7059 cat confdefs.h >>conftest.$ac_ext
7060 cat >>conftest.$ac_ext <<_ACEOF
7061 /* end confdefs.h. */
7062 $ac_includes_default
7063 int
7064 main ()
7065 {
7066 #ifndef __sys_siglist
7067 (void) __sys_siglist;
7068 #endif
7069
7070 ;
7071 return 0;
7072 }
7073 _ACEOF
7074 rm -f conftest.$ac_objext
7075 if { (ac_try="$ac_compile"
7076 case "(($ac_try" in
7077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7078 *) ac_try_echo=$ac_try;;
7079 esac
7080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7081 (eval "$ac_compile") 2>conftest.er1
7082 ac_status=$?
7083 grep -v '^ *+' conftest.er1 >conftest.err
7084 rm -f conftest.er1
7085 cat conftest.err >&5
7086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087 (exit $ac_status); } && {
7088 test -z "$ac_c_werror_flag" ||
7089 test ! -s conftest.err
7090 } && test -s conftest.$ac_objext; then
7091 ac_cv_have_decl___sys_siglist=yes
7092 else
7093 echo "$as_me: failed program was:" >&5
7094 sed 's/^/| /' conftest.$ac_ext >&5
7095
7096 ac_cv_have_decl___sys_siglist=no
7097 fi
7098
7099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7100 fi
7101 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7102 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7103 if test $ac_cv_have_decl___sys_siglist = yes; then
7104
7105 cat >>confdefs.h <<_ACEOF
7106 #define HAVE_DECL___SYS_SIGLIST 1
7107 _ACEOF
7108
7109
7110 else
7111 cat >>confdefs.h <<_ACEOF
7112 #define HAVE_DECL___SYS_SIGLIST 0
7113 _ACEOF
7114
7115
7116 fi
7117
7118
7119 if test $ac_cv_have_decl___sys_siglist = yes; then
7120
7121 cat >>confdefs.h <<\_ACEOF
7122 #define sys_siglist __sys_siglist
7123 _ACEOF
7124
7125 fi
7126 fi
7127 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7128 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7129 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7130 echo $ECHO_N "(cached) $ECHO_C" >&6
7131 else
7132 cat >conftest.$ac_ext <<_ACEOF
7133 /* confdefs.h. */
7134 _ACEOF
7135 cat confdefs.h >>conftest.$ac_ext
7136 cat >>conftest.$ac_ext <<_ACEOF
7137 /* end confdefs.h. */
7138 #include <sys/types.h>
7139 #include <sys/wait.h>
7140 #ifndef WEXITSTATUS
7141 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7142 #endif
7143 #ifndef WIFEXITED
7144 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7145 #endif
7146
7147 int
7148 main ()
7149 {
7150 int s;
7151 wait (&s);
7152 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7153 ;
7154 return 0;
7155 }
7156 _ACEOF
7157 rm -f conftest.$ac_objext
7158 if { (ac_try="$ac_compile"
7159 case "(($ac_try" in
7160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7161 *) ac_try_echo=$ac_try;;
7162 esac
7163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7164 (eval "$ac_compile") 2>conftest.er1
7165 ac_status=$?
7166 grep -v '^ *+' conftest.er1 >conftest.err
7167 rm -f conftest.er1
7168 cat conftest.err >&5
7169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); } && {
7171 test -z "$ac_c_werror_flag" ||
7172 test ! -s conftest.err
7173 } && test -s conftest.$ac_objext; then
7174 ac_cv_header_sys_wait_h=yes
7175 else
7176 echo "$as_me: failed program was:" >&5
7177 sed 's/^/| /' conftest.$ac_ext >&5
7178
7179 ac_cv_header_sys_wait_h=no
7180 fi
7181
7182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7183 fi
7184 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7185 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7186 if test $ac_cv_header_sys_wait_h = yes; then
7187
7188 cat >>confdefs.h <<\_ACEOF
7189 #define HAVE_SYS_WAIT_H 1
7190 _ACEOF
7191
7192 fi
7193
7194
7195 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7196 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7197 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7198 echo $ECHO_N "(cached) $ECHO_C" >&6
7199 else
7200 cat >conftest.$ac_ext <<_ACEOF
7201 /* confdefs.h. */
7202 _ACEOF
7203 cat confdefs.h >>conftest.$ac_ext
7204 cat >>conftest.$ac_ext <<_ACEOF
7205 /* end confdefs.h. */
7206 #ifdef TIME_WITH_SYS_TIME
7207 #include <sys/time.h>
7208 #include <time.h>
7209 #else
7210 #ifdef HAVE_SYS_TIME_H
7211 #include <sys/time.h>
7212 #else
7213 #include <time.h>
7214 #endif
7215 #endif
7216 #ifdef HAVE_UTIME_H
7217 #include <utime.h>
7218 #endif
7219 int
7220 main ()
7221 {
7222 static struct utimbuf x; x.actime = x.modtime;
7223 ;
7224 return 0;
7225 }
7226 _ACEOF
7227 rm -f conftest.$ac_objext
7228 if { (ac_try="$ac_compile"
7229 case "(($ac_try" in
7230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7231 *) ac_try_echo=$ac_try;;
7232 esac
7233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7234 (eval "$ac_compile") 2>conftest.er1
7235 ac_status=$?
7236 grep -v '^ *+' conftest.er1 >conftest.err
7237 rm -f conftest.er1
7238 cat conftest.err >&5
7239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240 (exit $ac_status); } && {
7241 test -z "$ac_c_werror_flag" ||
7242 test ! -s conftest.err
7243 } && test -s conftest.$ac_objext; then
7244 emacs_cv_struct_utimbuf=yes
7245 else
7246 echo "$as_me: failed program was:" >&5
7247 sed 's/^/| /' conftest.$ac_ext >&5
7248
7249 emacs_cv_struct_utimbuf=no
7250 fi
7251
7252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7253 fi
7254 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7255 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7256 if test $emacs_cv_struct_utimbuf = yes; then
7257
7258 cat >>confdefs.h <<\_ACEOF
7259 #define HAVE_STRUCT_UTIMBUF 1
7260 _ACEOF
7261
7262 fi
7263
7264 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7265 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7266 if test "${ac_cv_type_signal+set}" = set; then
7267 echo $ECHO_N "(cached) $ECHO_C" >&6
7268 else
7269 cat >conftest.$ac_ext <<_ACEOF
7270 /* confdefs.h. */
7271 _ACEOF
7272 cat confdefs.h >>conftest.$ac_ext
7273 cat >>conftest.$ac_ext <<_ACEOF
7274 /* end confdefs.h. */
7275 #include <sys/types.h>
7276 #include <signal.h>
7277
7278 int
7279 main ()
7280 {
7281 return *(signal (0, 0)) (0) == 1;
7282 ;
7283 return 0;
7284 }
7285 _ACEOF
7286 rm -f conftest.$ac_objext
7287 if { (ac_try="$ac_compile"
7288 case "(($ac_try" in
7289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7290 *) ac_try_echo=$ac_try;;
7291 esac
7292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7293 (eval "$ac_compile") 2>conftest.er1
7294 ac_status=$?
7295 grep -v '^ *+' conftest.er1 >conftest.err
7296 rm -f conftest.er1
7297 cat conftest.err >&5
7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); } && {
7300 test -z "$ac_c_werror_flag" ||
7301 test ! -s conftest.err
7302 } && test -s conftest.$ac_objext; then
7303 ac_cv_type_signal=int
7304 else
7305 echo "$as_me: failed program was:" >&5
7306 sed 's/^/| /' conftest.$ac_ext >&5
7307
7308 ac_cv_type_signal=void
7309 fi
7310
7311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7312 fi
7313 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7314 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7315
7316 cat >>confdefs.h <<_ACEOF
7317 #define RETSIGTYPE $ac_cv_type_signal
7318 _ACEOF
7319
7320
7321
7322 { echo "$as_me:$LINENO: checking for speed_t" >&5
7323 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7324 if test "${emacs_cv_speed_t+set}" = set; then
7325 echo $ECHO_N "(cached) $ECHO_C" >&6
7326 else
7327 cat >conftest.$ac_ext <<_ACEOF
7328 /* confdefs.h. */
7329 _ACEOF
7330 cat confdefs.h >>conftest.$ac_ext
7331 cat >>conftest.$ac_ext <<_ACEOF
7332 /* end confdefs.h. */
7333 #include <termios.h>
7334 int
7335 main ()
7336 {
7337 speed_t x = 1;
7338 ;
7339 return 0;
7340 }
7341 _ACEOF
7342 rm -f conftest.$ac_objext
7343 if { (ac_try="$ac_compile"
7344 case "(($ac_try" in
7345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7346 *) ac_try_echo=$ac_try;;
7347 esac
7348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7349 (eval "$ac_compile") 2>conftest.er1
7350 ac_status=$?
7351 grep -v '^ *+' conftest.er1 >conftest.err
7352 rm -f conftest.er1
7353 cat conftest.err >&5
7354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355 (exit $ac_status); } && {
7356 test -z "$ac_c_werror_flag" ||
7357 test ! -s conftest.err
7358 } && test -s conftest.$ac_objext; then
7359 emacs_cv_speed_t=yes
7360 else
7361 echo "$as_me: failed program was:" >&5
7362 sed 's/^/| /' conftest.$ac_ext >&5
7363
7364 emacs_cv_speed_t=no
7365 fi
7366
7367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7368 fi
7369 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7370 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7371 if test $emacs_cv_speed_t = yes; then
7372
7373 cat >>confdefs.h <<\_ACEOF
7374 #define HAVE_SPEED_T 1
7375 _ACEOF
7376
7377 fi
7378
7379 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7380 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7381 if test "${emacs_cv_struct_timeval+set}" = set; then
7382 echo $ECHO_N "(cached) $ECHO_C" >&6
7383 else
7384 cat >conftest.$ac_ext <<_ACEOF
7385 /* confdefs.h. */
7386 _ACEOF
7387 cat confdefs.h >>conftest.$ac_ext
7388 cat >>conftest.$ac_ext <<_ACEOF
7389 /* end confdefs.h. */
7390 #ifdef TIME_WITH_SYS_TIME
7391 #include <sys/time.h>
7392 #include <time.h>
7393 #else
7394 #ifdef HAVE_SYS_TIME_H
7395 #include <sys/time.h>
7396 #else
7397 #include <time.h>
7398 #endif
7399 #endif
7400 int
7401 main ()
7402 {
7403 static struct timeval x; x.tv_sec = x.tv_usec;
7404 ;
7405 return 0;
7406 }
7407 _ACEOF
7408 rm -f conftest.$ac_objext
7409 if { (ac_try="$ac_compile"
7410 case "(($ac_try" in
7411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7412 *) ac_try_echo=$ac_try;;
7413 esac
7414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7415 (eval "$ac_compile") 2>conftest.er1
7416 ac_status=$?
7417 grep -v '^ *+' conftest.er1 >conftest.err
7418 rm -f conftest.er1
7419 cat conftest.err >&5
7420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421 (exit $ac_status); } && {
7422 test -z "$ac_c_werror_flag" ||
7423 test ! -s conftest.err
7424 } && test -s conftest.$ac_objext; then
7425 emacs_cv_struct_timeval=yes
7426 else
7427 echo "$as_me: failed program was:" >&5
7428 sed 's/^/| /' conftest.$ac_ext >&5
7429
7430 emacs_cv_struct_timeval=no
7431 fi
7432
7433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7434 fi
7435 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7436 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7437 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7438 if test $emacs_cv_struct_timeval = yes; then
7439
7440 cat >>confdefs.h <<\_ACEOF
7441 #define HAVE_TIMEVAL 1
7442 _ACEOF
7443
7444 fi
7445
7446 { echo "$as_me:$LINENO: checking for struct exception" >&5
7447 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7448 if test "${emacs_cv_struct_exception+set}" = set; then
7449 echo $ECHO_N "(cached) $ECHO_C" >&6
7450 else
7451 cat >conftest.$ac_ext <<_ACEOF
7452 /* confdefs.h. */
7453 _ACEOF
7454 cat confdefs.h >>conftest.$ac_ext
7455 cat >>conftest.$ac_ext <<_ACEOF
7456 /* end confdefs.h. */
7457 #include <math.h>
7458 int
7459 main ()
7460 {
7461 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7462 ;
7463 return 0;
7464 }
7465 _ACEOF
7466 rm -f conftest.$ac_objext
7467 if { (ac_try="$ac_compile"
7468 case "(($ac_try" in
7469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7470 *) ac_try_echo=$ac_try;;
7471 esac
7472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7473 (eval "$ac_compile") 2>conftest.er1
7474 ac_status=$?
7475 grep -v '^ *+' conftest.er1 >conftest.err
7476 rm -f conftest.er1
7477 cat conftest.err >&5
7478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479 (exit $ac_status); } && {
7480 test -z "$ac_c_werror_flag" ||
7481 test ! -s conftest.err
7482 } && test -s conftest.$ac_objext; then
7483 emacs_cv_struct_exception=yes
7484 else
7485 echo "$as_me: failed program was:" >&5
7486 sed 's/^/| /' conftest.$ac_ext >&5
7487
7488 emacs_cv_struct_exception=no
7489 fi
7490
7491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7492 fi
7493 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7494 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7495 HAVE_EXCEPTION=$emacs_cv_struct_exception
7496 if test $emacs_cv_struct_exception != yes; then
7497
7498 cat >>confdefs.h <<\_ACEOF
7499 #define NO_MATHERR 1
7500 _ACEOF
7501
7502 fi
7503
7504
7505 for ac_header in sys/socket.h
7506 do
7507 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7509 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7512 echo $ECHO_N "(cached) $ECHO_C" >&6
7513 fi
7514 ac_res=`eval echo '${'$as_ac_Header'}'`
7515 { echo "$as_me:$LINENO: result: $ac_res" >&5
7516 echo "${ECHO_T}$ac_res" >&6; }
7517 else
7518 # Is the header compilable?
7519 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7520 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7521 cat >conftest.$ac_ext <<_ACEOF
7522 /* confdefs.h. */
7523 _ACEOF
7524 cat confdefs.h >>conftest.$ac_ext
7525 cat >>conftest.$ac_ext <<_ACEOF
7526 /* end confdefs.h. */
7527 $ac_includes_default
7528 #include <$ac_header>
7529 _ACEOF
7530 rm -f conftest.$ac_objext
7531 if { (ac_try="$ac_compile"
7532 case "(($ac_try" in
7533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7534 *) ac_try_echo=$ac_try;;
7535 esac
7536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7537 (eval "$ac_compile") 2>conftest.er1
7538 ac_status=$?
7539 grep -v '^ *+' conftest.er1 >conftest.err
7540 rm -f conftest.er1
7541 cat conftest.err >&5
7542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543 (exit $ac_status); } && {
7544 test -z "$ac_c_werror_flag" ||
7545 test ! -s conftest.err
7546 } && test -s conftest.$ac_objext; then
7547 ac_header_compiler=yes
7548 else
7549 echo "$as_me: failed program was:" >&5
7550 sed 's/^/| /' conftest.$ac_ext >&5
7551
7552 ac_header_compiler=no
7553 fi
7554
7555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7556 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7557 echo "${ECHO_T}$ac_header_compiler" >&6; }
7558
7559 # Is the header present?
7560 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7561 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7562 cat >conftest.$ac_ext <<_ACEOF
7563 /* confdefs.h. */
7564 _ACEOF
7565 cat confdefs.h >>conftest.$ac_ext
7566 cat >>conftest.$ac_ext <<_ACEOF
7567 /* end confdefs.h. */
7568 #include <$ac_header>
7569 _ACEOF
7570 if { (ac_try="$ac_cpp conftest.$ac_ext"
7571 case "(($ac_try" in
7572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7573 *) ac_try_echo=$ac_try;;
7574 esac
7575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7576 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7577 ac_status=$?
7578 grep -v '^ *+' conftest.er1 >conftest.err
7579 rm -f conftest.er1
7580 cat conftest.err >&5
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); } >/dev/null && {
7583 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7584 test ! -s conftest.err
7585 }; then
7586 ac_header_preproc=yes
7587 else
7588 echo "$as_me: failed program was:" >&5
7589 sed 's/^/| /' conftest.$ac_ext >&5
7590
7591 ac_header_preproc=no
7592 fi
7593
7594 rm -f conftest.err conftest.$ac_ext
7595 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7596 echo "${ECHO_T}$ac_header_preproc" >&6; }
7597
7598 # So? What about this header?
7599 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7600 yes:no: )
7601 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7602 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7604 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7605 ac_header_preproc=yes
7606 ;;
7607 no:yes:* )
7608 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7609 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7610 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7611 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7612 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7613 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7614 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7615 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7617 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7618 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7619 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7620
7621 ;;
7622 esac
7623 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7626 echo $ECHO_N "(cached) $ECHO_C" >&6
7627 else
7628 eval "$as_ac_Header=\$ac_header_preproc"
7629 fi
7630 ac_res=`eval echo '${'$as_ac_Header'}'`
7631 { echo "$as_me:$LINENO: result: $ac_res" >&5
7632 echo "${ECHO_T}$ac_res" >&6; }
7633
7634 fi
7635 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7636 cat >>confdefs.h <<_ACEOF
7637 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7638 _ACEOF
7639
7640 fi
7641
7642 done
7643
7644
7645 for ac_header in net/if.h
7646 do
7647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7651 echo $ECHO_N "(cached) $ECHO_C" >&6
7652 else
7653 cat >conftest.$ac_ext <<_ACEOF
7654 /* confdefs.h. */
7655 _ACEOF
7656 cat confdefs.h >>conftest.$ac_ext
7657 cat >>conftest.$ac_ext <<_ACEOF
7658 /* end confdefs.h. */
7659 $ac_includes_default
7660 #if HAVE_SYS_SOCKET_H
7661 #include <sys/socket.h>
7662 #endif
7663
7664 #include <$ac_header>
7665 _ACEOF
7666 rm -f conftest.$ac_objext
7667 if { (ac_try="$ac_compile"
7668 case "(($ac_try" in
7669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7670 *) ac_try_echo=$ac_try;;
7671 esac
7672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7673 (eval "$ac_compile") 2>conftest.er1
7674 ac_status=$?
7675 grep -v '^ *+' conftest.er1 >conftest.err
7676 rm -f conftest.er1
7677 cat conftest.err >&5
7678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679 (exit $ac_status); } && {
7680 test -z "$ac_c_werror_flag" ||
7681 test ! -s conftest.err
7682 } && test -s conftest.$ac_objext; then
7683 eval "$as_ac_Header=yes"
7684 else
7685 echo "$as_me: failed program was:" >&5
7686 sed 's/^/| /' conftest.$ac_ext >&5
7687
7688 eval "$as_ac_Header=no"
7689 fi
7690
7691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7692 fi
7693 ac_res=`eval echo '${'$as_ac_Header'}'`
7694 { echo "$as_me:$LINENO: result: $ac_res" >&5
7695 echo "${ECHO_T}$ac_res" >&6; }
7696 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7697 cat >>confdefs.h <<_ACEOF
7698 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7699 _ACEOF
7700
7701 fi
7702
7703 done
7704
7705
7706 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7707 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7708 if test "${ac_cv_struct_tm+set}" = set; then
7709 echo $ECHO_N "(cached) $ECHO_C" >&6
7710 else
7711 cat >conftest.$ac_ext <<_ACEOF
7712 /* confdefs.h. */
7713 _ACEOF
7714 cat confdefs.h >>conftest.$ac_ext
7715 cat >>conftest.$ac_ext <<_ACEOF
7716 /* end confdefs.h. */
7717 #include <sys/types.h>
7718 #include <time.h>
7719
7720 int
7721 main ()
7722 {
7723 struct tm tm;
7724 int *p = &tm.tm_sec;
7725 return !p;
7726 ;
7727 return 0;
7728 }
7729 _ACEOF
7730 rm -f conftest.$ac_objext
7731 if { (ac_try="$ac_compile"
7732 case "(($ac_try" in
7733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7734 *) ac_try_echo=$ac_try;;
7735 esac
7736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7737 (eval "$ac_compile") 2>conftest.er1
7738 ac_status=$?
7739 grep -v '^ *+' conftest.er1 >conftest.err
7740 rm -f conftest.er1
7741 cat conftest.err >&5
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); } && {
7744 test -z "$ac_c_werror_flag" ||
7745 test ! -s conftest.err
7746 } && test -s conftest.$ac_objext; then
7747 ac_cv_struct_tm=time.h
7748 else
7749 echo "$as_me: failed program was:" >&5
7750 sed 's/^/| /' conftest.$ac_ext >&5
7751
7752 ac_cv_struct_tm=sys/time.h
7753 fi
7754
7755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7756 fi
7757 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7758 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7759 if test $ac_cv_struct_tm = sys/time.h; then
7760
7761 cat >>confdefs.h <<\_ACEOF
7762 #define TM_IN_SYS_TIME 1
7763 _ACEOF
7764
7765 fi
7766
7767 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7768 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7769 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7770 echo $ECHO_N "(cached) $ECHO_C" >&6
7771 else
7772 cat >conftest.$ac_ext <<_ACEOF
7773 /* confdefs.h. */
7774 _ACEOF
7775 cat confdefs.h >>conftest.$ac_ext
7776 cat >>conftest.$ac_ext <<_ACEOF
7777 /* end confdefs.h. */
7778 #include <sys/types.h>
7779 #include <$ac_cv_struct_tm>
7780
7781
7782 int
7783 main ()
7784 {
7785 static struct tm ac_aggr;
7786 if (ac_aggr.tm_zone)
7787 return 0;
7788 ;
7789 return 0;
7790 }
7791 _ACEOF
7792 rm -f conftest.$ac_objext
7793 if { (ac_try="$ac_compile"
7794 case "(($ac_try" in
7795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7796 *) ac_try_echo=$ac_try;;
7797 esac
7798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7799 (eval "$ac_compile") 2>conftest.er1
7800 ac_status=$?
7801 grep -v '^ *+' conftest.er1 >conftest.err
7802 rm -f conftest.er1
7803 cat conftest.err >&5
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); } && {
7806 test -z "$ac_c_werror_flag" ||
7807 test ! -s conftest.err
7808 } && test -s conftest.$ac_objext; then
7809 ac_cv_member_struct_tm_tm_zone=yes
7810 else
7811 echo "$as_me: failed program was:" >&5
7812 sed 's/^/| /' conftest.$ac_ext >&5
7813
7814 cat >conftest.$ac_ext <<_ACEOF
7815 /* confdefs.h. */
7816 _ACEOF
7817 cat confdefs.h >>conftest.$ac_ext
7818 cat >>conftest.$ac_ext <<_ACEOF
7819 /* end confdefs.h. */
7820 #include <sys/types.h>
7821 #include <$ac_cv_struct_tm>
7822
7823
7824 int
7825 main ()
7826 {
7827 static struct tm ac_aggr;
7828 if (sizeof ac_aggr.tm_zone)
7829 return 0;
7830 ;
7831 return 0;
7832 }
7833 _ACEOF
7834 rm -f conftest.$ac_objext
7835 if { (ac_try="$ac_compile"
7836 case "(($ac_try" in
7837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7838 *) ac_try_echo=$ac_try;;
7839 esac
7840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7841 (eval "$ac_compile") 2>conftest.er1
7842 ac_status=$?
7843 grep -v '^ *+' conftest.er1 >conftest.err
7844 rm -f conftest.er1
7845 cat conftest.err >&5
7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847 (exit $ac_status); } && {
7848 test -z "$ac_c_werror_flag" ||
7849 test ! -s conftest.err
7850 } && test -s conftest.$ac_objext; then
7851 ac_cv_member_struct_tm_tm_zone=yes
7852 else
7853 echo "$as_me: failed program was:" >&5
7854 sed 's/^/| /' conftest.$ac_ext >&5
7855
7856 ac_cv_member_struct_tm_tm_zone=no
7857 fi
7858
7859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7860 fi
7861
7862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7863 fi
7864 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7865 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7866 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7867
7868 cat >>confdefs.h <<_ACEOF
7869 #define HAVE_STRUCT_TM_TM_ZONE 1
7870 _ACEOF
7871
7872
7873 fi
7874
7875 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7876
7877 cat >>confdefs.h <<\_ACEOF
7878 #define HAVE_TM_ZONE 1
7879 _ACEOF
7880
7881 else
7882 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7883 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7884 if test "${ac_cv_have_decl_tzname+set}" = set; then
7885 echo $ECHO_N "(cached) $ECHO_C" >&6
7886 else
7887 cat >conftest.$ac_ext <<_ACEOF
7888 /* confdefs.h. */
7889 _ACEOF
7890 cat confdefs.h >>conftest.$ac_ext
7891 cat >>conftest.$ac_ext <<_ACEOF
7892 /* end confdefs.h. */
7893 #include <time.h>
7894
7895 int
7896 main ()
7897 {
7898 #ifndef tzname
7899 (void) tzname;
7900 #endif
7901
7902 ;
7903 return 0;
7904 }
7905 _ACEOF
7906 rm -f conftest.$ac_objext
7907 if { (ac_try="$ac_compile"
7908 case "(($ac_try" in
7909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7910 *) ac_try_echo=$ac_try;;
7911 esac
7912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7913 (eval "$ac_compile") 2>conftest.er1
7914 ac_status=$?
7915 grep -v '^ *+' conftest.er1 >conftest.err
7916 rm -f conftest.er1
7917 cat conftest.err >&5
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); } && {
7920 test -z "$ac_c_werror_flag" ||
7921 test ! -s conftest.err
7922 } && test -s conftest.$ac_objext; then
7923 ac_cv_have_decl_tzname=yes
7924 else
7925 echo "$as_me: failed program was:" >&5
7926 sed 's/^/| /' conftest.$ac_ext >&5
7927
7928 ac_cv_have_decl_tzname=no
7929 fi
7930
7931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7932 fi
7933 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7934 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7935 if test $ac_cv_have_decl_tzname = yes; then
7936
7937 cat >>confdefs.h <<_ACEOF
7938 #define HAVE_DECL_TZNAME 1
7939 _ACEOF
7940
7941
7942 else
7943 cat >>confdefs.h <<_ACEOF
7944 #define HAVE_DECL_TZNAME 0
7945 _ACEOF
7946
7947
7948 fi
7949
7950
7951 { echo "$as_me:$LINENO: checking for tzname" >&5
7952 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7953 if test "${ac_cv_var_tzname+set}" = set; then
7954 echo $ECHO_N "(cached) $ECHO_C" >&6
7955 else
7956 cat >conftest.$ac_ext <<_ACEOF
7957 /* confdefs.h. */
7958 _ACEOF
7959 cat confdefs.h >>conftest.$ac_ext
7960 cat >>conftest.$ac_ext <<_ACEOF
7961 /* end confdefs.h. */
7962 #include <time.h>
7963 #if !HAVE_DECL_TZNAME
7964 extern char *tzname[];
7965 #endif
7966
7967 int
7968 main ()
7969 {
7970 return tzname[0][0];
7971 ;
7972 return 0;
7973 }
7974 _ACEOF
7975 rm -f conftest.$ac_objext conftest$ac_exeext
7976 if { (ac_try="$ac_link"
7977 case "(($ac_try" in
7978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7979 *) ac_try_echo=$ac_try;;
7980 esac
7981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7982 (eval "$ac_link") 2>conftest.er1
7983 ac_status=$?
7984 grep -v '^ *+' conftest.er1 >conftest.err
7985 rm -f conftest.er1
7986 cat conftest.err >&5
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 (exit $ac_status); } && {
7989 test -z "$ac_c_werror_flag" ||
7990 test ! -s conftest.err
7991 } && test -s conftest$ac_exeext &&
7992 $as_test_x conftest$ac_exeext; then
7993 ac_cv_var_tzname=yes
7994 else
7995 echo "$as_me: failed program was:" >&5
7996 sed 's/^/| /' conftest.$ac_ext >&5
7997
7998 ac_cv_var_tzname=no
7999 fi
8000
8001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8002 conftest$ac_exeext conftest.$ac_ext
8003 fi
8004 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8005 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8006 if test $ac_cv_var_tzname = yes; then
8007
8008 cat >>confdefs.h <<\_ACEOF
8009 #define HAVE_TZNAME 1
8010 _ACEOF
8011
8012 fi
8013 fi
8014
8015 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8016 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8017 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8018 echo $ECHO_N "(cached) $ECHO_C" >&6
8019 else
8020 cat >conftest.$ac_ext <<_ACEOF
8021 /* confdefs.h. */
8022 _ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h. */
8026 #include <time.h>
8027
8028 int
8029 main ()
8030 {
8031 static struct tm ac_aggr;
8032 if (ac_aggr.tm_gmtoff)
8033 return 0;
8034 ;
8035 return 0;
8036 }
8037 _ACEOF
8038 rm -f conftest.$ac_objext
8039 if { (ac_try="$ac_compile"
8040 case "(($ac_try" in
8041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8042 *) ac_try_echo=$ac_try;;
8043 esac
8044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8045 (eval "$ac_compile") 2>conftest.er1
8046 ac_status=$?
8047 grep -v '^ *+' conftest.er1 >conftest.err
8048 rm -f conftest.er1
8049 cat conftest.err >&5
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); } && {
8052 test -z "$ac_c_werror_flag" ||
8053 test ! -s conftest.err
8054 } && test -s conftest.$ac_objext; then
8055 ac_cv_member_struct_tm_tm_gmtoff=yes
8056 else
8057 echo "$as_me: failed program was:" >&5
8058 sed 's/^/| /' conftest.$ac_ext >&5
8059
8060 cat >conftest.$ac_ext <<_ACEOF
8061 /* confdefs.h. */
8062 _ACEOF
8063 cat confdefs.h >>conftest.$ac_ext
8064 cat >>conftest.$ac_ext <<_ACEOF
8065 /* end confdefs.h. */
8066 #include <time.h>
8067
8068 int
8069 main ()
8070 {
8071 static struct tm ac_aggr;
8072 if (sizeof ac_aggr.tm_gmtoff)
8073 return 0;
8074 ;
8075 return 0;
8076 }
8077 _ACEOF
8078 rm -f conftest.$ac_objext
8079 if { (ac_try="$ac_compile"
8080 case "(($ac_try" in
8081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8082 *) ac_try_echo=$ac_try;;
8083 esac
8084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8085 (eval "$ac_compile") 2>conftest.er1
8086 ac_status=$?
8087 grep -v '^ *+' conftest.er1 >conftest.err
8088 rm -f conftest.er1
8089 cat conftest.err >&5
8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); } && {
8092 test -z "$ac_c_werror_flag" ||
8093 test ! -s conftest.err
8094 } && test -s conftest.$ac_objext; then
8095 ac_cv_member_struct_tm_tm_gmtoff=yes
8096 else
8097 echo "$as_me: failed program was:" >&5
8098 sed 's/^/| /' conftest.$ac_ext >&5
8099
8100 ac_cv_member_struct_tm_tm_gmtoff=no
8101 fi
8102
8103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8104 fi
8105
8106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8107 fi
8108 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8109 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8110 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8111
8112 cat >>confdefs.h <<\_ACEOF
8113 #define HAVE_TM_GMTOFF 1
8114 _ACEOF
8115
8116 fi
8117
8118 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8119 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8120 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8121 echo $ECHO_N "(cached) $ECHO_C" >&6
8122 else
8123 cat >conftest.$ac_ext <<_ACEOF
8124 /* confdefs.h. */
8125 _ACEOF
8126 cat confdefs.h >>conftest.$ac_ext
8127 cat >>conftest.$ac_ext <<_ACEOF
8128 /* end confdefs.h. */
8129 $ac_includes_default
8130 #if HAVE_SYS_SOCKET_H
8131 #include <sys/socket.h>
8132 #endif
8133 #if HAVE_NET_IF_H
8134 #include <net/if.h>
8135 #endif
8136
8137 int
8138 main ()
8139 {
8140 static struct ifreq ac_aggr;
8141 if (ac_aggr.ifr_flags)
8142 return 0;
8143 ;
8144 return 0;
8145 }
8146 _ACEOF
8147 rm -f conftest.$ac_objext
8148 if { (ac_try="$ac_compile"
8149 case "(($ac_try" in
8150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8151 *) ac_try_echo=$ac_try;;
8152 esac
8153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8154 (eval "$ac_compile") 2>conftest.er1
8155 ac_status=$?
8156 grep -v '^ *+' conftest.er1 >conftest.err
8157 rm -f conftest.er1
8158 cat conftest.err >&5
8159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160 (exit $ac_status); } && {
8161 test -z "$ac_c_werror_flag" ||
8162 test ! -s conftest.err
8163 } && test -s conftest.$ac_objext; then
8164 ac_cv_member_struct_ifreq_ifr_flags=yes
8165 else
8166 echo "$as_me: failed program was:" >&5
8167 sed 's/^/| /' conftest.$ac_ext >&5
8168
8169 cat >conftest.$ac_ext <<_ACEOF
8170 /* confdefs.h. */
8171 _ACEOF
8172 cat confdefs.h >>conftest.$ac_ext
8173 cat >>conftest.$ac_ext <<_ACEOF
8174 /* end confdefs.h. */
8175 $ac_includes_default
8176 #if HAVE_SYS_SOCKET_H
8177 #include <sys/socket.h>
8178 #endif
8179 #if HAVE_NET_IF_H
8180 #include <net/if.h>
8181 #endif
8182
8183 int
8184 main ()
8185 {
8186 static struct ifreq ac_aggr;
8187 if (sizeof ac_aggr.ifr_flags)
8188 return 0;
8189 ;
8190 return 0;
8191 }
8192 _ACEOF
8193 rm -f conftest.$ac_objext
8194 if { (ac_try="$ac_compile"
8195 case "(($ac_try" in
8196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8197 *) ac_try_echo=$ac_try;;
8198 esac
8199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8200 (eval "$ac_compile") 2>conftest.er1
8201 ac_status=$?
8202 grep -v '^ *+' conftest.er1 >conftest.err
8203 rm -f conftest.er1
8204 cat conftest.err >&5
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); } && {
8207 test -z "$ac_c_werror_flag" ||
8208 test ! -s conftest.err
8209 } && test -s conftest.$ac_objext; then
8210 ac_cv_member_struct_ifreq_ifr_flags=yes
8211 else
8212 echo "$as_me: failed program was:" >&5
8213 sed 's/^/| /' conftest.$ac_ext >&5
8214
8215 ac_cv_member_struct_ifreq_ifr_flags=no
8216 fi
8217
8218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8219 fi
8220
8221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8222 fi
8223 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8224 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8225 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8226
8227 cat >>confdefs.h <<_ACEOF
8228 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8229 _ACEOF
8230
8231
8232 fi
8233 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8234 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8235 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8236 echo $ECHO_N "(cached) $ECHO_C" >&6
8237 else
8238 cat >conftest.$ac_ext <<_ACEOF
8239 /* confdefs.h. */
8240 _ACEOF
8241 cat confdefs.h >>conftest.$ac_ext
8242 cat >>conftest.$ac_ext <<_ACEOF
8243 /* end confdefs.h. */
8244 $ac_includes_default
8245 #if HAVE_SYS_SOCKET_H
8246 #include <sys/socket.h>
8247 #endif
8248 #if HAVE_NET_IF_H
8249 #include <net/if.h>
8250 #endif
8251
8252 int
8253 main ()
8254 {
8255 static struct ifreq ac_aggr;
8256 if (ac_aggr.ifr_hwaddr)
8257 return 0;
8258 ;
8259 return 0;
8260 }
8261 _ACEOF
8262 rm -f conftest.$ac_objext
8263 if { (ac_try="$ac_compile"
8264 case "(($ac_try" in
8265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8266 *) ac_try_echo=$ac_try;;
8267 esac
8268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8269 (eval "$ac_compile") 2>conftest.er1
8270 ac_status=$?
8271 grep -v '^ *+' conftest.er1 >conftest.err
8272 rm -f conftest.er1
8273 cat conftest.err >&5
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); } && {
8276 test -z "$ac_c_werror_flag" ||
8277 test ! -s conftest.err
8278 } && test -s conftest.$ac_objext; then
8279 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8280 else
8281 echo "$as_me: failed program was:" >&5
8282 sed 's/^/| /' conftest.$ac_ext >&5
8283
8284 cat >conftest.$ac_ext <<_ACEOF
8285 /* confdefs.h. */
8286 _ACEOF
8287 cat confdefs.h >>conftest.$ac_ext
8288 cat >>conftest.$ac_ext <<_ACEOF
8289 /* end confdefs.h. */
8290 $ac_includes_default
8291 #if HAVE_SYS_SOCKET_H
8292 #include <sys/socket.h>
8293 #endif
8294 #if HAVE_NET_IF_H
8295 #include <net/if.h>
8296 #endif
8297
8298 int
8299 main ()
8300 {
8301 static struct ifreq ac_aggr;
8302 if (sizeof ac_aggr.ifr_hwaddr)
8303 return 0;
8304 ;
8305 return 0;
8306 }
8307 _ACEOF
8308 rm -f conftest.$ac_objext
8309 if { (ac_try="$ac_compile"
8310 case "(($ac_try" in
8311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8312 *) ac_try_echo=$ac_try;;
8313 esac
8314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8315 (eval "$ac_compile") 2>conftest.er1
8316 ac_status=$?
8317 grep -v '^ *+' conftest.er1 >conftest.err
8318 rm -f conftest.er1
8319 cat conftest.err >&5
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); } && {
8322 test -z "$ac_c_werror_flag" ||
8323 test ! -s conftest.err
8324 } && test -s conftest.$ac_objext; then
8325 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8326 else
8327 echo "$as_me: failed program was:" >&5
8328 sed 's/^/| /' conftest.$ac_ext >&5
8329
8330 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8331 fi
8332
8333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8334 fi
8335
8336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8337 fi
8338 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8339 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8340 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8341
8342 cat >>confdefs.h <<_ACEOF
8343 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8344 _ACEOF
8345
8346
8347 fi
8348 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8349 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8350 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8351 echo $ECHO_N "(cached) $ECHO_C" >&6
8352 else
8353 cat >conftest.$ac_ext <<_ACEOF
8354 /* confdefs.h. */
8355 _ACEOF
8356 cat confdefs.h >>conftest.$ac_ext
8357 cat >>conftest.$ac_ext <<_ACEOF
8358 /* end confdefs.h. */
8359 $ac_includes_default
8360 #if HAVE_SYS_SOCKET_H
8361 #include <sys/socket.h>
8362 #endif
8363 #if HAVE_NET_IF_H
8364 #include <net/if.h>
8365 #endif
8366
8367 int
8368 main ()
8369 {
8370 static struct ifreq ac_aggr;
8371 if (ac_aggr.ifr_netmask)
8372 return 0;
8373 ;
8374 return 0;
8375 }
8376 _ACEOF
8377 rm -f conftest.$ac_objext
8378 if { (ac_try="$ac_compile"
8379 case "(($ac_try" in
8380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8381 *) ac_try_echo=$ac_try;;
8382 esac
8383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8384 (eval "$ac_compile") 2>conftest.er1
8385 ac_status=$?
8386 grep -v '^ *+' conftest.er1 >conftest.err
8387 rm -f conftest.er1
8388 cat conftest.err >&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); } && {
8391 test -z "$ac_c_werror_flag" ||
8392 test ! -s conftest.err
8393 } && test -s conftest.$ac_objext; then
8394 ac_cv_member_struct_ifreq_ifr_netmask=yes
8395 else
8396 echo "$as_me: failed program was:" >&5
8397 sed 's/^/| /' conftest.$ac_ext >&5
8398
8399 cat >conftest.$ac_ext <<_ACEOF
8400 /* confdefs.h. */
8401 _ACEOF
8402 cat confdefs.h >>conftest.$ac_ext
8403 cat >>conftest.$ac_ext <<_ACEOF
8404 /* end confdefs.h. */
8405 $ac_includes_default
8406 #if HAVE_SYS_SOCKET_H
8407 #include <sys/socket.h>
8408 #endif
8409 #if HAVE_NET_IF_H
8410 #include <net/if.h>
8411 #endif
8412
8413 int
8414 main ()
8415 {
8416 static struct ifreq ac_aggr;
8417 if (sizeof ac_aggr.ifr_netmask)
8418 return 0;
8419 ;
8420 return 0;
8421 }
8422 _ACEOF
8423 rm -f conftest.$ac_objext
8424 if { (ac_try="$ac_compile"
8425 case "(($ac_try" in
8426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8427 *) ac_try_echo=$ac_try;;
8428 esac
8429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8430 (eval "$ac_compile") 2>conftest.er1
8431 ac_status=$?
8432 grep -v '^ *+' conftest.er1 >conftest.err
8433 rm -f conftest.er1
8434 cat conftest.err >&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); } && {
8437 test -z "$ac_c_werror_flag" ||
8438 test ! -s conftest.err
8439 } && test -s conftest.$ac_objext; then
8440 ac_cv_member_struct_ifreq_ifr_netmask=yes
8441 else
8442 echo "$as_me: failed program was:" >&5
8443 sed 's/^/| /' conftest.$ac_ext >&5
8444
8445 ac_cv_member_struct_ifreq_ifr_netmask=no
8446 fi
8447
8448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8449 fi
8450
8451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8452 fi
8453 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8454 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8455 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8456
8457 cat >>confdefs.h <<_ACEOF
8458 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8459 _ACEOF
8460
8461
8462 fi
8463 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8464 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8465 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8466 echo $ECHO_N "(cached) $ECHO_C" >&6
8467 else
8468 cat >conftest.$ac_ext <<_ACEOF
8469 /* confdefs.h. */
8470 _ACEOF
8471 cat confdefs.h >>conftest.$ac_ext
8472 cat >>conftest.$ac_ext <<_ACEOF
8473 /* end confdefs.h. */
8474 $ac_includes_default
8475 #if HAVE_SYS_SOCKET_H
8476 #include <sys/socket.h>
8477 #endif
8478 #if HAVE_NET_IF_H
8479 #include <net/if.h>
8480 #endif
8481
8482 int
8483 main ()
8484 {
8485 static struct ifreq ac_aggr;
8486 if (ac_aggr.ifr_broadaddr)
8487 return 0;
8488 ;
8489 return 0;
8490 }
8491 _ACEOF
8492 rm -f conftest.$ac_objext
8493 if { (ac_try="$ac_compile"
8494 case "(($ac_try" in
8495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8496 *) ac_try_echo=$ac_try;;
8497 esac
8498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8499 (eval "$ac_compile") 2>conftest.er1
8500 ac_status=$?
8501 grep -v '^ *+' conftest.er1 >conftest.err
8502 rm -f conftest.er1
8503 cat conftest.err >&5
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); } && {
8506 test -z "$ac_c_werror_flag" ||
8507 test ! -s conftest.err
8508 } && test -s conftest.$ac_objext; then
8509 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8510 else
8511 echo "$as_me: failed program was:" >&5
8512 sed 's/^/| /' conftest.$ac_ext >&5
8513
8514 cat >conftest.$ac_ext <<_ACEOF
8515 /* confdefs.h. */
8516 _ACEOF
8517 cat confdefs.h >>conftest.$ac_ext
8518 cat >>conftest.$ac_ext <<_ACEOF
8519 /* end confdefs.h. */
8520 $ac_includes_default
8521 #if HAVE_SYS_SOCKET_H
8522 #include <sys/socket.h>
8523 #endif
8524 #if HAVE_NET_IF_H
8525 #include <net/if.h>
8526 #endif
8527
8528 int
8529 main ()
8530 {
8531 static struct ifreq ac_aggr;
8532 if (sizeof ac_aggr.ifr_broadaddr)
8533 return 0;
8534 ;
8535 return 0;
8536 }
8537 _ACEOF
8538 rm -f conftest.$ac_objext
8539 if { (ac_try="$ac_compile"
8540 case "(($ac_try" in
8541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8542 *) ac_try_echo=$ac_try;;
8543 esac
8544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8545 (eval "$ac_compile") 2>conftest.er1
8546 ac_status=$?
8547 grep -v '^ *+' conftest.er1 >conftest.err
8548 rm -f conftest.er1
8549 cat conftest.err >&5
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); } && {
8552 test -z "$ac_c_werror_flag" ||
8553 test ! -s conftest.err
8554 } && test -s conftest.$ac_objext; then
8555 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8556 else
8557 echo "$as_me: failed program was:" >&5
8558 sed 's/^/| /' conftest.$ac_ext >&5
8559
8560 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8561 fi
8562
8563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8564 fi
8565
8566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8567 fi
8568 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8569 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8570 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8571
8572 cat >>confdefs.h <<_ACEOF
8573 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8574 _ACEOF
8575
8576
8577 fi
8578 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8579 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8580 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8581 echo $ECHO_N "(cached) $ECHO_C" >&6
8582 else
8583 cat >conftest.$ac_ext <<_ACEOF
8584 /* confdefs.h. */
8585 _ACEOF
8586 cat confdefs.h >>conftest.$ac_ext
8587 cat >>conftest.$ac_ext <<_ACEOF
8588 /* end confdefs.h. */
8589 $ac_includes_default
8590 #if HAVE_SYS_SOCKET_H
8591 #include <sys/socket.h>
8592 #endif
8593 #if HAVE_NET_IF_H
8594 #include <net/if.h>
8595 #endif
8596
8597 int
8598 main ()
8599 {
8600 static struct ifreq ac_aggr;
8601 if (ac_aggr.ifr_addr)
8602 return 0;
8603 ;
8604 return 0;
8605 }
8606 _ACEOF
8607 rm -f conftest.$ac_objext
8608 if { (ac_try="$ac_compile"
8609 case "(($ac_try" in
8610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8611 *) ac_try_echo=$ac_try;;
8612 esac
8613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8614 (eval "$ac_compile") 2>conftest.er1
8615 ac_status=$?
8616 grep -v '^ *+' conftest.er1 >conftest.err
8617 rm -f conftest.er1
8618 cat conftest.err >&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); } && {
8621 test -z "$ac_c_werror_flag" ||
8622 test ! -s conftest.err
8623 } && test -s conftest.$ac_objext; then
8624 ac_cv_member_struct_ifreq_ifr_addr=yes
8625 else
8626 echo "$as_me: failed program was:" >&5
8627 sed 's/^/| /' conftest.$ac_ext >&5
8628
8629 cat >conftest.$ac_ext <<_ACEOF
8630 /* confdefs.h. */
8631 _ACEOF
8632 cat confdefs.h >>conftest.$ac_ext
8633 cat >>conftest.$ac_ext <<_ACEOF
8634 /* end confdefs.h. */
8635 $ac_includes_default
8636 #if HAVE_SYS_SOCKET_H
8637 #include <sys/socket.h>
8638 #endif
8639 #if HAVE_NET_IF_H
8640 #include <net/if.h>
8641 #endif
8642
8643 int
8644 main ()
8645 {
8646 static struct ifreq ac_aggr;
8647 if (sizeof ac_aggr.ifr_addr)
8648 return 0;
8649 ;
8650 return 0;
8651 }
8652 _ACEOF
8653 rm -f conftest.$ac_objext
8654 if { (ac_try="$ac_compile"
8655 case "(($ac_try" in
8656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8657 *) ac_try_echo=$ac_try;;
8658 esac
8659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8660 (eval "$ac_compile") 2>conftest.er1
8661 ac_status=$?
8662 grep -v '^ *+' conftest.er1 >conftest.err
8663 rm -f conftest.er1
8664 cat conftest.err >&5
8665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666 (exit $ac_status); } && {
8667 test -z "$ac_c_werror_flag" ||
8668 test ! -s conftest.err
8669 } && test -s conftest.$ac_objext; then
8670 ac_cv_member_struct_ifreq_ifr_addr=yes
8671 else
8672 echo "$as_me: failed program was:" >&5
8673 sed 's/^/| /' conftest.$ac_ext >&5
8674
8675 ac_cv_member_struct_ifreq_ifr_addr=no
8676 fi
8677
8678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8679 fi
8680
8681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8682 fi
8683 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8684 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8685 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8686
8687 cat >>confdefs.h <<_ACEOF
8688 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8689 _ACEOF
8690
8691
8692 fi
8693
8694
8695
8696 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8697 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8698 if test "$ac_cv_prog_cc_c89" != no; then
8699 { echo "$as_me:$LINENO: result: yes" >&5
8700 echo "${ECHO_T}yes" >&6; }
8701
8702 cat >>confdefs.h <<\_ACEOF
8703 #define PROTOTYPES 1
8704 _ACEOF
8705
8706
8707 cat >>confdefs.h <<\_ACEOF
8708 #define __PROTOTYPES 1
8709 _ACEOF
8710
8711 else
8712 { echo "$as_me:$LINENO: result: no" >&5
8713 echo "${ECHO_T}no" >&6; }
8714 fi
8715
8716 { echo "$as_me:$LINENO: checking for working volatile" >&5
8717 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8718 if test "${ac_cv_c_volatile+set}" = set; then
8719 echo $ECHO_N "(cached) $ECHO_C" >&6
8720 else
8721 cat >conftest.$ac_ext <<_ACEOF
8722 /* confdefs.h. */
8723 _ACEOF
8724 cat confdefs.h >>conftest.$ac_ext
8725 cat >>conftest.$ac_ext <<_ACEOF
8726 /* end confdefs.h. */
8727
8728 int
8729 main ()
8730 {
8731
8732 volatile int x;
8733 int * volatile y = (int *) 0;
8734 return !x && !y;
8735 ;
8736 return 0;
8737 }
8738 _ACEOF
8739 rm -f conftest.$ac_objext
8740 if { (ac_try="$ac_compile"
8741 case "(($ac_try" in
8742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8743 *) ac_try_echo=$ac_try;;
8744 esac
8745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8746 (eval "$ac_compile") 2>conftest.er1
8747 ac_status=$?
8748 grep -v '^ *+' conftest.er1 >conftest.err
8749 rm -f conftest.er1
8750 cat conftest.err >&5
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); } && {
8753 test -z "$ac_c_werror_flag" ||
8754 test ! -s conftest.err
8755 } && test -s conftest.$ac_objext; then
8756 ac_cv_c_volatile=yes
8757 else
8758 echo "$as_me: failed program was:" >&5
8759 sed 's/^/| /' conftest.$ac_ext >&5
8760
8761 ac_cv_c_volatile=no
8762 fi
8763
8764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8765 fi
8766 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8767 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8768 if test $ac_cv_c_volatile = no; then
8769
8770 cat >>confdefs.h <<\_ACEOF
8771 #define volatile
8772 _ACEOF
8773
8774 fi
8775
8776 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8777 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8778 if test "${ac_cv_c_const+set}" = set; then
8779 echo $ECHO_N "(cached) $ECHO_C" >&6
8780 else
8781 cat >conftest.$ac_ext <<_ACEOF
8782 /* confdefs.h. */
8783 _ACEOF
8784 cat confdefs.h >>conftest.$ac_ext
8785 cat >>conftest.$ac_ext <<_ACEOF
8786 /* end confdefs.h. */
8787
8788 int
8789 main ()
8790 {
8791 /* FIXME: Include the comments suggested by Paul. */
8792 #ifndef __cplusplus
8793 /* Ultrix mips cc rejects this. */
8794 typedef int charset[2];
8795 const charset cs;
8796 /* SunOS 4.1.1 cc rejects this. */
8797 char const *const *pcpcc;
8798 char **ppc;
8799 /* NEC SVR4.0.2 mips cc rejects this. */
8800 struct point {int x, y;};
8801 static struct point const zero = {0,0};
8802 /* AIX XL C 1.02.0.0 rejects this.
8803 It does not let you subtract one const X* pointer from another in
8804 an arm of an if-expression whose if-part is not a constant
8805 expression */
8806 const char *g = "string";
8807 pcpcc = &g + (g ? g-g : 0);
8808 /* HPUX 7.0 cc rejects these. */
8809 ++pcpcc;
8810 ppc = (char**) pcpcc;
8811 pcpcc = (char const *const *) ppc;
8812 { /* SCO 3.2v4 cc rejects this. */
8813 char *t;
8814 char const *s = 0 ? (char *) 0 : (char const *) 0;
8815
8816 *t++ = 0;
8817 if (s) return 0;
8818 }
8819 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8820 int x[] = {25, 17};
8821 const int *foo = &x[0];
8822 ++foo;
8823 }
8824 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8825 typedef const int *iptr;
8826 iptr p = 0;
8827 ++p;
8828 }
8829 { /* AIX XL C 1.02.0.0 rejects this saying
8830 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8831 struct s { int j; const int *ap[3]; };
8832 struct s *b; b->j = 5;
8833 }
8834 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8835 const int foo = 10;
8836 if (!foo) return 0;
8837 }
8838 return !cs[0] && !zero.x;
8839 #endif
8840
8841 ;
8842 return 0;
8843 }
8844 _ACEOF
8845 rm -f conftest.$ac_objext
8846 if { (ac_try="$ac_compile"
8847 case "(($ac_try" in
8848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8849 *) ac_try_echo=$ac_try;;
8850 esac
8851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8852 (eval "$ac_compile") 2>conftest.er1
8853 ac_status=$?
8854 grep -v '^ *+' conftest.er1 >conftest.err
8855 rm -f conftest.er1
8856 cat conftest.err >&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); } && {
8859 test -z "$ac_c_werror_flag" ||
8860 test ! -s conftest.err
8861 } && test -s conftest.$ac_objext; then
8862 ac_cv_c_const=yes
8863 else
8864 echo "$as_me: failed program was:" >&5
8865 sed 's/^/| /' conftest.$ac_ext >&5
8866
8867 ac_cv_c_const=no
8868 fi
8869
8870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8871 fi
8872 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8873 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8874 if test $ac_cv_c_const = no; then
8875
8876 cat >>confdefs.h <<\_ACEOF
8877 #define const
8878 _ACEOF
8879
8880 fi
8881
8882 { echo "$as_me:$LINENO: checking for void * support" >&5
8883 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8884 if test "${emacs_cv_void_star+set}" = set; then
8885 echo $ECHO_N "(cached) $ECHO_C" >&6
8886 else
8887 cat >conftest.$ac_ext <<_ACEOF
8888 /* confdefs.h. */
8889 _ACEOF
8890 cat confdefs.h >>conftest.$ac_ext
8891 cat >>conftest.$ac_ext <<_ACEOF
8892 /* end confdefs.h. */
8893
8894 int
8895 main ()
8896 {
8897 void * foo;
8898 ;
8899 return 0;
8900 }
8901 _ACEOF
8902 rm -f conftest.$ac_objext
8903 if { (ac_try="$ac_compile"
8904 case "(($ac_try" in
8905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8906 *) ac_try_echo=$ac_try;;
8907 esac
8908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8909 (eval "$ac_compile") 2>conftest.er1
8910 ac_status=$?
8911 grep -v '^ *+' conftest.er1 >conftest.err
8912 rm -f conftest.er1
8913 cat conftest.err >&5
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); } && {
8916 test -z "$ac_c_werror_flag" ||
8917 test ! -s conftest.err
8918 } && test -s conftest.$ac_objext; then
8919 emacs_cv_void_star=yes
8920 else
8921 echo "$as_me: failed program was:" >&5
8922 sed 's/^/| /' conftest.$ac_ext >&5
8923
8924 emacs_cv_void_star=no
8925 fi
8926
8927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8928 fi
8929 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8930 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8931 if test $emacs_cv_void_star = yes; then
8932 cat >>confdefs.h <<\_ACEOF
8933 #define POINTER_TYPE void
8934 _ACEOF
8935
8936 else
8937 cat >>confdefs.h <<\_ACEOF
8938 #define POINTER_TYPE char
8939 _ACEOF
8940
8941 fi
8942
8943
8944
8945
8946
8947 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8948 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8949 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8950 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8951 echo $ECHO_N "(cached) $ECHO_C" >&6
8952 else
8953 cat >conftest.make <<\_ACEOF
8954 SHELL = /bin/sh
8955 all:
8956 @echo '@@@%%%=$(MAKE)=@@@%%%'
8957 _ACEOF
8958 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8959 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8960 *@@@%%%=?*=@@@%%%*)
8961 eval ac_cv_prog_make_${ac_make}_set=yes;;
8962 *)
8963 eval ac_cv_prog_make_${ac_make}_set=no;;
8964 esac
8965 rm -f conftest.make
8966 fi
8967 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8968 { echo "$as_me:$LINENO: result: yes" >&5
8969 echo "${ECHO_T}yes" >&6; }
8970 SET_MAKE=
8971 else
8972 { echo "$as_me:$LINENO: result: no" >&5
8973 echo "${ECHO_T}no" >&6; }
8974 SET_MAKE="MAKE=${MAKE-make}"
8975 fi
8976
8977
8978 { echo "$as_me:$LINENO: checking for long file names" >&5
8979 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8980 if test "${ac_cv_sys_long_file_names+set}" = set; then
8981 echo $ECHO_N "(cached) $ECHO_C" >&6
8982 else
8983 ac_cv_sys_long_file_names=yes
8984 # Test for long file names in all the places we know might matter:
8985 # . the current directory, where building will happen
8986 # $prefix/lib where we will be installing things
8987 # $exec_prefix/lib likewise
8988 # $TMPDIR if set, where it might want to write temporary files
8989 # /tmp where it might want to write temporary files
8990 # /var/tmp likewise
8991 # /usr/tmp likewise
8992 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8993 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8994 # in the usual case where exec_prefix is '${prefix}'.
8995 case $ac_dir in #(
8996 . | /* | ?:[\\/]*) ;; #(
8997 *) continue;;
8998 esac
8999 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9000 ac_xdir=$ac_dir/cf$$
9001 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9002 ac_tf1=$ac_xdir/conftest9012345
9003 ac_tf2=$ac_xdir/conftest9012346
9004 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9005 ac_cv_sys_long_file_names=no
9006 rm -f -r "$ac_xdir" 2>/dev/null
9007 test $ac_cv_sys_long_file_names = no && break
9008 done
9009 fi
9010 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9011 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9012 if test $ac_cv_sys_long_file_names = yes; then
9013
9014 cat >>confdefs.h <<\_ACEOF
9015 #define HAVE_LONG_FILE_NAMES 1
9016 _ACEOF
9017
9018 fi
9019
9020
9021 #### Choose a window system.
9022
9023 { echo "$as_me:$LINENO: checking for X" >&5
9024 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9025
9026
9027 # Check whether --with-x was given.
9028 if test "${with_x+set}" = set; then
9029 withval=$with_x;
9030 fi
9031
9032 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9033 if test "x$with_x" = xno; then
9034 # The user explicitly disabled X.
9035 have_x=disabled
9036 else
9037 case $x_includes,$x_libraries in #(
9038 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9039 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9040 { (exit 1); exit 1; }; };; #(
9041 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9042 echo $ECHO_N "(cached) $ECHO_C" >&6
9043 else
9044 # One or both of the vars are not set, and there is no cached value.
9045 ac_x_includes=no ac_x_libraries=no
9046 rm -f -r conftest.dir
9047 if mkdir conftest.dir; then
9048 cd conftest.dir
9049 cat >Imakefile <<'_ACEOF'
9050 incroot:
9051 @echo incroot='${INCROOT}'
9052 usrlibdir:
9053 @echo usrlibdir='${USRLIBDIR}'
9054 libdir:
9055 @echo libdir='${LIBDIR}'
9056 _ACEOF
9057 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9058 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9059 for ac_var in incroot usrlibdir libdir; do
9060 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9061 done
9062 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9063 for ac_extension in a so sl; do
9064 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9065 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9066 ac_im_usrlibdir=$ac_im_libdir; break
9067 fi
9068 done
9069 # Screen out bogus values from the imake configuration. They are
9070 # bogus both because they are the default anyway, and because
9071 # using them would break gcc on systems where it needs fixed includes.
9072 case $ac_im_incroot in
9073 /usr/include) ac_x_includes= ;;
9074 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9075 esac
9076 case $ac_im_usrlibdir in
9077 /usr/lib | /lib) ;;
9078 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9079 esac
9080 fi
9081 cd ..
9082 rm -f -r conftest.dir
9083 fi
9084
9085 # Standard set of common directories for X headers.
9086 # Check X11 before X11Rn because it is often a symlink to the current release.
9087 ac_x_header_dirs='
9088 /usr/X11/include
9089 /usr/X11R6/include
9090 /usr/X11R5/include
9091 /usr/X11R4/include
9092
9093 /usr/include/X11
9094 /usr/include/X11R6
9095 /usr/include/X11R5
9096 /usr/include/X11R4
9097
9098 /usr/local/X11/include
9099 /usr/local/X11R6/include
9100 /usr/local/X11R5/include
9101 /usr/local/X11R4/include
9102
9103 /usr/local/include/X11
9104 /usr/local/include/X11R6
9105 /usr/local/include/X11R5
9106 /usr/local/include/X11R4
9107
9108 /usr/X386/include
9109 /usr/x386/include
9110 /usr/XFree86/include/X11
9111
9112 /usr/include
9113 /usr/local/include
9114 /usr/unsupported/include
9115 /usr/athena/include
9116 /usr/local/x11r5/include
9117 /usr/lpp/Xamples/include
9118
9119 /usr/openwin/include
9120 /usr/openwin/share/include'
9121
9122 if test "$ac_x_includes" = no; then
9123 # Guess where to find include files, by looking for Xlib.h.
9124 # First, try using that file with no special directory specified.
9125 cat >conftest.$ac_ext <<_ACEOF
9126 /* confdefs.h. */
9127 _ACEOF
9128 cat confdefs.h >>conftest.$ac_ext
9129 cat >>conftest.$ac_ext <<_ACEOF
9130 /* end confdefs.h. */
9131 #include <X11/Xlib.h>
9132 _ACEOF
9133 if { (ac_try="$ac_cpp conftest.$ac_ext"
9134 case "(($ac_try" in
9135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9136 *) ac_try_echo=$ac_try;;
9137 esac
9138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9139 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9140 ac_status=$?
9141 grep -v '^ *+' conftest.er1 >conftest.err
9142 rm -f conftest.er1
9143 cat conftest.err >&5
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); } >/dev/null && {
9146 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9147 test ! -s conftest.err
9148 }; then
9149 # We can compile using X headers with no special include directory.
9150 ac_x_includes=
9151 else
9152 echo "$as_me: failed program was:" >&5
9153 sed 's/^/| /' conftest.$ac_ext >&5
9154
9155 for ac_dir in $ac_x_header_dirs; do
9156 if test -r "$ac_dir/X11/Xlib.h"; then
9157 ac_x_includes=$ac_dir
9158 break
9159 fi
9160 done
9161 fi
9162
9163 rm -f conftest.err conftest.$ac_ext
9164 fi # $ac_x_includes = no
9165
9166 if test "$ac_x_libraries" = no; then
9167 # Check for the libraries.
9168 # See if we find them without any special options.
9169 # Don't add to $LIBS permanently.
9170 ac_save_LIBS=$LIBS
9171 LIBS="-lX11 $LIBS"
9172 cat >conftest.$ac_ext <<_ACEOF
9173 /* confdefs.h. */
9174 _ACEOF
9175 cat confdefs.h >>conftest.$ac_ext
9176 cat >>conftest.$ac_ext <<_ACEOF
9177 /* end confdefs.h. */
9178 #include <X11/Xlib.h>
9179 int
9180 main ()
9181 {
9182 XrmInitialize ()
9183 ;
9184 return 0;
9185 }
9186 _ACEOF
9187 rm -f conftest.$ac_objext conftest$ac_exeext
9188 if { (ac_try="$ac_link"
9189 case "(($ac_try" in
9190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9191 *) ac_try_echo=$ac_try;;
9192 esac
9193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9194 (eval "$ac_link") 2>conftest.er1
9195 ac_status=$?
9196 grep -v '^ *+' conftest.er1 >conftest.err
9197 rm -f conftest.er1
9198 cat conftest.err >&5
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); } && {
9201 test -z "$ac_c_werror_flag" ||
9202 test ! -s conftest.err
9203 } && test -s conftest$ac_exeext &&
9204 $as_test_x conftest$ac_exeext; then
9205 LIBS=$ac_save_LIBS
9206 # We can link X programs with no special library path.
9207 ac_x_libraries=
9208 else
9209 echo "$as_me: failed program was:" >&5
9210 sed 's/^/| /' conftest.$ac_ext >&5
9211
9212 LIBS=$ac_save_LIBS
9213 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9214 do
9215 # Don't even attempt the hair of trying to link an X program!
9216 for ac_extension in a so sl; do
9217 if test -r "$ac_dir/libX11.$ac_extension"; then
9218 ac_x_libraries=$ac_dir
9219 break 2
9220 fi
9221 done
9222 done
9223 fi
9224
9225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9226 conftest$ac_exeext conftest.$ac_ext
9227 fi # $ac_x_libraries = no
9228
9229 case $ac_x_includes,$ac_x_libraries in #(
9230 no,* | *,no | *\'*)
9231 # Didn't find X, or a directory has "'" in its name.
9232 ac_cv_have_x="have_x=no";; #(
9233 *)
9234 # Record where we found X for the cache.
9235 ac_cv_have_x="have_x=yes\
9236 ac_x_includes='$ac_x_includes'\
9237 ac_x_libraries='$ac_x_libraries'"
9238 esac
9239 fi
9240 ;; #(
9241 *) have_x=yes;;
9242 esac
9243 eval "$ac_cv_have_x"
9244 fi # $with_x != no
9245
9246 if test "$have_x" != yes; then
9247 { echo "$as_me:$LINENO: result: $have_x" >&5
9248 echo "${ECHO_T}$have_x" >&6; }
9249 no_x=yes
9250 else
9251 # If each of the values was on the command line, it overrides each guess.
9252 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9253 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9254 # Update the cache value to reflect the command line values.
9255 ac_cv_have_x="have_x=yes\
9256 ac_x_includes='$x_includes'\
9257 ac_x_libraries='$x_libraries'"
9258 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9259 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9260 fi
9261
9262 if test "$no_x" = yes; then
9263 window_system=none
9264 else
9265 window_system=x11
9266 fi
9267
9268 if test "${x_libraries}" != NONE; then
9269 if test -n "${x_libraries}"; then
9270 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9271 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9272 fi
9273 x_default_search_path=""
9274 x_search_path=${x_libraries}
9275 if test -z "${x_search_path}"; then
9276 x_search_path=/usr/lib
9277 fi
9278 for x_library in `echo ${x_search_path}: | \
9279 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9280 x_search_path="\
9281 ${x_library}/X11/%L/%T/%N%C%S:\
9282 ${x_library}/X11/%l/%T/%N%C%S:\
9283 ${x_library}/X11/%T/%N%C%S:\
9284 ${x_library}/X11/%L/%T/%N%S:\
9285 ${x_library}/X11/%l/%T/%N%S:\
9286 ${x_library}/X11/%T/%N%S"
9287 if test x"${x_default_search_path}" = x; then
9288 x_default_search_path=${x_search_path}
9289 else
9290 x_default_search_path="${x_search_path}:${x_default_search_path}"
9291 fi
9292 done
9293 fi
9294 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9295 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9296 fi
9297
9298 if test x"${x_includes}" = x; then
9299 bitmapdir=/usr/include/X11/bitmaps
9300 else
9301 # accumulate include directories that have X11 bitmap subdirectories
9302 bmd_acc="dummyval"
9303 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9304 if test -d "${bmd}/X11/bitmaps"; then
9305 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9306 fi
9307 if test -d "${bmd}/bitmaps"; then
9308 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9309 fi
9310 done
9311 if test ${bmd_acc} != "dummyval"; then
9312 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9313 fi
9314 fi
9315
9316 HAVE_CARBON=no
9317 if test "${with_carbon}" != no; then
9318 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9319 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9320 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9321 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9322 echo $ECHO_N "(cached) $ECHO_C" >&6
9323 fi
9324 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9325 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9326 else
9327 # Is the header compilable?
9328 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9329 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9330 cat >conftest.$ac_ext <<_ACEOF
9331 /* confdefs.h. */
9332 _ACEOF
9333 cat confdefs.h >>conftest.$ac_ext
9334 cat >>conftest.$ac_ext <<_ACEOF
9335 /* end confdefs.h. */
9336 $ac_includes_default
9337 #include <Carbon/Carbon.h>
9338 _ACEOF
9339 rm -f conftest.$ac_objext
9340 if { (ac_try="$ac_compile"
9341 case "(($ac_try" in
9342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9343 *) ac_try_echo=$ac_try;;
9344 esac
9345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9346 (eval "$ac_compile") 2>conftest.er1
9347 ac_status=$?
9348 grep -v '^ *+' conftest.er1 >conftest.err
9349 rm -f conftest.er1
9350 cat conftest.err >&5
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); } && {
9353 test -z "$ac_c_werror_flag" ||
9354 test ! -s conftest.err
9355 } && test -s conftest.$ac_objext; then
9356 ac_header_compiler=yes
9357 else
9358 echo "$as_me: failed program was:" >&5
9359 sed 's/^/| /' conftest.$ac_ext >&5
9360
9361 ac_header_compiler=no
9362 fi
9363
9364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9365 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9366 echo "${ECHO_T}$ac_header_compiler" >&6; }
9367
9368 # Is the header present?
9369 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9370 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9371 cat >conftest.$ac_ext <<_ACEOF
9372 /* confdefs.h. */
9373 _ACEOF
9374 cat confdefs.h >>conftest.$ac_ext
9375 cat >>conftest.$ac_ext <<_ACEOF
9376 /* end confdefs.h. */
9377 #include <Carbon/Carbon.h>
9378 _ACEOF
9379 if { (ac_try="$ac_cpp conftest.$ac_ext"
9380 case "(($ac_try" in
9381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9382 *) ac_try_echo=$ac_try;;
9383 esac
9384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9386 ac_status=$?
9387 grep -v '^ *+' conftest.er1 >conftest.err
9388 rm -f conftest.er1
9389 cat conftest.err >&5
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); } >/dev/null && {
9392 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9393 test ! -s conftest.err
9394 }; then
9395 ac_header_preproc=yes
9396 else
9397 echo "$as_me: failed program was:" >&5
9398 sed 's/^/| /' conftest.$ac_ext >&5
9399
9400 ac_header_preproc=no
9401 fi
9402
9403 rm -f conftest.err conftest.$ac_ext
9404 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9405 echo "${ECHO_T}$ac_header_preproc" >&6; }
9406
9407 # So? What about this header?
9408 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9409 yes:no: )
9410 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9411 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9412 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9413 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9414 ac_header_preproc=yes
9415 ;;
9416 no:yes:* )
9417 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9418 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9419 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9420 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9421 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9422 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9423 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9424 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9425 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9426 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9427 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9428 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9429
9430 ;;
9431 esac
9432 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9433 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9434 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9435 echo $ECHO_N "(cached) $ECHO_C" >&6
9436 else
9437 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9438 fi
9439 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9440 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9441
9442 fi
9443 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9444 HAVE_CARBON=yes
9445 fi
9446
9447
9448 fi
9449 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9450 if test "${with_carbon+set}" != set \
9451 && test "${carbon_appdir_x+set}" != set; then
9452 for var in with_x with_x_toolkit with_gtk with_xim \
9453 with_xpm with_jpeg with_tiff with_gif with_png; do
9454 if eval test \"\${$var+set}\" = set; then
9455 HAVE_CARBON=no
9456 break
9457 fi
9458 done
9459 fi
9460 fi
9461 if test "${HAVE_CARBON}" = yes; then
9462 window_system=mac
9463 fi
9464
9465 case "${window_system}" in
9466 x11 )
9467 HAVE_X_WINDOWS=yes
9468 HAVE_X11=yes
9469 case "${with_x_toolkit}" in
9470 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9471 motif ) USE_X_TOOLKIT=MOTIF ;;
9472 gtk ) with_gtk=yes
9473 USE_X_TOOLKIT=none ;;
9474 no ) USE_X_TOOLKIT=none ;;
9475 * ) USE_X_TOOLKIT=maybe ;;
9476 esac
9477 ;;
9478 mac | none )
9479 HAVE_X_WINDOWS=no
9480 HAVE_X11=no
9481 USE_X_TOOLKIT=none
9482 ;;
9483 esac
9484
9485 ### If we're using X11, we should use the X menu package.
9486 HAVE_MENUS=no
9487 case ${HAVE_X11} in
9488 yes ) HAVE_MENUS=yes ;;
9489 esac
9490
9491 if test "${opsys}" = "hpux9"; then
9492 case "${x_libraries}" in
9493 *X11R4* )
9494 opsysfile="s/hpux9-x11r4.h"
9495 ;;
9496 esac
9497 fi
9498
9499 if test "${opsys}" = "hpux9shr"; then
9500 case "${x_libraries}" in
9501 *X11R4* )
9502 opsysfile="s/hpux9shxr4.h"
9503 ;;
9504 esac
9505 fi
9506
9507 ### Compute the unexec source name from the object name.
9508 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9509
9510 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9511 # Assume not, until told otherwise.
9512 GNU_MALLOC=yes
9513 doug_lea_malloc=yes
9514 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9515 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9516 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9517 echo $ECHO_N "(cached) $ECHO_C" >&6
9518 else
9519 cat >conftest.$ac_ext <<_ACEOF
9520 /* confdefs.h. */
9521 _ACEOF
9522 cat confdefs.h >>conftest.$ac_ext
9523 cat >>conftest.$ac_ext <<_ACEOF
9524 /* end confdefs.h. */
9525 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9526 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9527 #define malloc_get_state innocuous_malloc_get_state
9528
9529 /* System header to define __stub macros and hopefully few prototypes,
9530 which can conflict with char malloc_get_state (); below.
9531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9532 <limits.h> exists even on freestanding compilers. */
9533
9534 #ifdef __STDC__
9535 # include <limits.h>
9536 #else
9537 # include <assert.h>
9538 #endif
9539
9540 #undef malloc_get_state
9541
9542 /* Override any GCC internal prototype to avoid an error.
9543 Use char because int might match the return type of a GCC
9544 builtin and then its argument prototype would still apply. */
9545 #ifdef __cplusplus
9546 extern "C"
9547 #endif
9548 char malloc_get_state ();
9549 /* The GNU C library defines this for functions which it implements
9550 to always fail with ENOSYS. Some functions are actually named
9551 something starting with __ and the normal name is an alias. */
9552 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9553 choke me
9554 #endif
9555
9556 int
9557 main ()
9558 {
9559 return malloc_get_state ();
9560 ;
9561 return 0;
9562 }
9563 _ACEOF
9564 rm -f conftest.$ac_objext conftest$ac_exeext
9565 if { (ac_try="$ac_link"
9566 case "(($ac_try" in
9567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9568 *) ac_try_echo=$ac_try;;
9569 esac
9570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9571 (eval "$ac_link") 2>conftest.er1
9572 ac_status=$?
9573 grep -v '^ *+' conftest.er1 >conftest.err
9574 rm -f conftest.er1
9575 cat conftest.err >&5
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); } && {
9578 test -z "$ac_c_werror_flag" ||
9579 test ! -s conftest.err
9580 } && test -s conftest$ac_exeext &&
9581 $as_test_x conftest$ac_exeext; then
9582 ac_cv_func_malloc_get_state=yes
9583 else
9584 echo "$as_me: failed program was:" >&5
9585 sed 's/^/| /' conftest.$ac_ext >&5
9586
9587 ac_cv_func_malloc_get_state=no
9588 fi
9589
9590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9591 conftest$ac_exeext conftest.$ac_ext
9592 fi
9593 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9594 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9595 if test $ac_cv_func_malloc_get_state = yes; then
9596 :
9597 else
9598 doug_lea_malloc=no
9599 fi
9600
9601 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9602 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9603 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9604 echo $ECHO_N "(cached) $ECHO_C" >&6
9605 else
9606 cat >conftest.$ac_ext <<_ACEOF
9607 /* confdefs.h. */
9608 _ACEOF
9609 cat confdefs.h >>conftest.$ac_ext
9610 cat >>conftest.$ac_ext <<_ACEOF
9611 /* end confdefs.h. */
9612 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9614 #define malloc_set_state innocuous_malloc_set_state
9615
9616 /* System header to define __stub macros and hopefully few prototypes,
9617 which can conflict with char malloc_set_state (); below.
9618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9619 <limits.h> exists even on freestanding compilers. */
9620
9621 #ifdef __STDC__
9622 # include <limits.h>
9623 #else
9624 # include <assert.h>
9625 #endif
9626
9627 #undef malloc_set_state
9628
9629 /* Override any GCC internal prototype to avoid an error.
9630 Use char because int might match the return type of a GCC
9631 builtin and then its argument prototype would still apply. */
9632 #ifdef __cplusplus
9633 extern "C"
9634 #endif
9635 char malloc_set_state ();
9636 /* The GNU C library defines this for functions which it implements
9637 to always fail with ENOSYS. Some functions are actually named
9638 something starting with __ and the normal name is an alias. */
9639 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9640 choke me
9641 #endif
9642
9643 int
9644 main ()
9645 {
9646 return malloc_set_state ();
9647 ;
9648 return 0;
9649 }
9650 _ACEOF
9651 rm -f conftest.$ac_objext conftest$ac_exeext
9652 if { (ac_try="$ac_link"
9653 case "(($ac_try" in
9654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9655 *) ac_try_echo=$ac_try;;
9656 esac
9657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9658 (eval "$ac_link") 2>conftest.er1
9659 ac_status=$?
9660 grep -v '^ *+' conftest.er1 >conftest.err
9661 rm -f conftest.er1
9662 cat conftest.err >&5
9663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664 (exit $ac_status); } && {
9665 test -z "$ac_c_werror_flag" ||
9666 test ! -s conftest.err
9667 } && test -s conftest$ac_exeext &&
9668 $as_test_x conftest$ac_exeext; then
9669 ac_cv_func_malloc_set_state=yes
9670 else
9671 echo "$as_me: failed program was:" >&5
9672 sed 's/^/| /' conftest.$ac_ext >&5
9673
9674 ac_cv_func_malloc_set_state=no
9675 fi
9676
9677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9678 conftest$ac_exeext conftest.$ac_ext
9679 fi
9680 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9681 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9682 if test $ac_cv_func_malloc_set_state = yes; then
9683 :
9684 else
9685 doug_lea_malloc=no
9686 fi
9687
9688 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9689 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9690 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9691 echo $ECHO_N "(cached) $ECHO_C" >&6
9692 else
9693 cat >conftest.$ac_ext <<_ACEOF
9694 /* confdefs.h. */
9695 _ACEOF
9696 cat confdefs.h >>conftest.$ac_ext
9697 cat >>conftest.$ac_ext <<_ACEOF
9698 /* end confdefs.h. */
9699 extern void (* __after_morecore_hook)();
9700 int
9701 main ()
9702 {
9703 __after_morecore_hook = 0
9704 ;
9705 return 0;
9706 }
9707 _ACEOF
9708 rm -f conftest.$ac_objext conftest$ac_exeext
9709 if { (ac_try="$ac_link"
9710 case "(($ac_try" in
9711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9712 *) ac_try_echo=$ac_try;;
9713 esac
9714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9715 (eval "$ac_link") 2>conftest.er1
9716 ac_status=$?
9717 grep -v '^ *+' conftest.er1 >conftest.err
9718 rm -f conftest.er1
9719 cat conftest.err >&5
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); } && {
9722 test -z "$ac_c_werror_flag" ||
9723 test ! -s conftest.err
9724 } && test -s conftest$ac_exeext &&
9725 $as_test_x conftest$ac_exeext; then
9726 emacs_cv_var___after_morecore_hook=yes
9727 else
9728 echo "$as_me: failed program was:" >&5
9729 sed 's/^/| /' conftest.$ac_ext >&5
9730
9731 emacs_cv_var___after_morecore_hook=no
9732 fi
9733
9734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9735 conftest$ac_exeext conftest.$ac_ext
9736 fi
9737 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9738 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9739 if test $emacs_cv_var___after_morecore_hook = no; then
9740 doug_lea_malloc=no
9741 fi
9742 if test "${system_malloc}" = "yes"; then
9743 GNU_MALLOC=no
9744 GNU_MALLOC_reason="
9745 (The GNU allocators don't work with this system configuration.)"
9746 fi
9747 if test "$doug_lea_malloc" = "yes" ; then
9748 if test "$GNU_MALLOC" = yes ; then
9749 GNU_MALLOC_reason="
9750 (Using Doug Lea's new malloc from the GNU C Library.)"
9751 fi
9752
9753 cat >>confdefs.h <<\_ACEOF
9754 #define DOUG_LEA_MALLOC 1
9755 _ACEOF
9756
9757 fi
9758
9759 if test x"${REL_ALLOC}" = x; then
9760 REL_ALLOC=${GNU_MALLOC}
9761 fi
9762
9763
9764
9765
9766 for ac_header in stdlib.h unistd.h
9767 do
9768 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9770 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9773 echo $ECHO_N "(cached) $ECHO_C" >&6
9774 fi
9775 ac_res=`eval echo '${'$as_ac_Header'}'`
9776 { echo "$as_me:$LINENO: result: $ac_res" >&5
9777 echo "${ECHO_T}$ac_res" >&6; }
9778 else
9779 # Is the header compilable?
9780 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9781 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9782 cat >conftest.$ac_ext <<_ACEOF
9783 /* confdefs.h. */
9784 _ACEOF
9785 cat confdefs.h >>conftest.$ac_ext
9786 cat >>conftest.$ac_ext <<_ACEOF
9787 /* end confdefs.h. */
9788 $ac_includes_default
9789 #include <$ac_header>
9790 _ACEOF
9791 rm -f conftest.$ac_objext
9792 if { (ac_try="$ac_compile"
9793 case "(($ac_try" in
9794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9795 *) ac_try_echo=$ac_try;;
9796 esac
9797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9798 (eval "$ac_compile") 2>conftest.er1
9799 ac_status=$?
9800 grep -v '^ *+' conftest.er1 >conftest.err
9801 rm -f conftest.er1
9802 cat conftest.err >&5
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); } && {
9805 test -z "$ac_c_werror_flag" ||
9806 test ! -s conftest.err
9807 } && test -s conftest.$ac_objext; then
9808 ac_header_compiler=yes
9809 else
9810 echo "$as_me: failed program was:" >&5
9811 sed 's/^/| /' conftest.$ac_ext >&5
9812
9813 ac_header_compiler=no
9814 fi
9815
9816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9817 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9818 echo "${ECHO_T}$ac_header_compiler" >&6; }
9819
9820 # Is the header present?
9821 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9822 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9823 cat >conftest.$ac_ext <<_ACEOF
9824 /* confdefs.h. */
9825 _ACEOF
9826 cat confdefs.h >>conftest.$ac_ext
9827 cat >>conftest.$ac_ext <<_ACEOF
9828 /* end confdefs.h. */
9829 #include <$ac_header>
9830 _ACEOF
9831 if { (ac_try="$ac_cpp conftest.$ac_ext"
9832 case "(($ac_try" in
9833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834 *) ac_try_echo=$ac_try;;
9835 esac
9836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9838 ac_status=$?
9839 grep -v '^ *+' conftest.er1 >conftest.err
9840 rm -f conftest.er1
9841 cat conftest.err >&5
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); } >/dev/null && {
9844 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9845 test ! -s conftest.err
9846 }; then
9847 ac_header_preproc=yes
9848 else
9849 echo "$as_me: failed program was:" >&5
9850 sed 's/^/| /' conftest.$ac_ext >&5
9851
9852 ac_header_preproc=no
9853 fi
9854
9855 rm -f conftest.err conftest.$ac_ext
9856 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9857 echo "${ECHO_T}$ac_header_preproc" >&6; }
9858
9859 # So? What about this header?
9860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9861 yes:no: )
9862 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9863 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9865 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9866 ac_header_preproc=yes
9867 ;;
9868 no:yes:* )
9869 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9870 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9871 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9872 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9873 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9874 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9875 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9876 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9879 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9880 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9881
9882 ;;
9883 esac
9884 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9886 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9887 echo $ECHO_N "(cached) $ECHO_C" >&6
9888 else
9889 eval "$as_ac_Header=\$ac_header_preproc"
9890 fi
9891 ac_res=`eval echo '${'$as_ac_Header'}'`
9892 { echo "$as_me:$LINENO: result: $ac_res" >&5
9893 echo "${ECHO_T}$ac_res" >&6; }
9894
9895 fi
9896 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9897 cat >>confdefs.h <<_ACEOF
9898 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9899 _ACEOF
9900
9901 fi
9902
9903 done
9904
9905
9906 for ac_func in getpagesize
9907 do
9908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9909 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9911 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9912 echo $ECHO_N "(cached) $ECHO_C" >&6
9913 else
9914 cat >conftest.$ac_ext <<_ACEOF
9915 /* confdefs.h. */
9916 _ACEOF
9917 cat confdefs.h >>conftest.$ac_ext
9918 cat >>conftest.$ac_ext <<_ACEOF
9919 /* end confdefs.h. */
9920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9922 #define $ac_func innocuous_$ac_func
9923
9924 /* System header to define __stub macros and hopefully few prototypes,
9925 which can conflict with char $ac_func (); below.
9926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9927 <limits.h> exists even on freestanding compilers. */
9928
9929 #ifdef __STDC__
9930 # include <limits.h>
9931 #else
9932 # include <assert.h>
9933 #endif
9934
9935 #undef $ac_func
9936
9937 /* Override any GCC internal prototype to avoid an error.
9938 Use char because int might match the return type of a GCC
9939 builtin and then its argument prototype would still apply. */
9940 #ifdef __cplusplus
9941 extern "C"
9942 #endif
9943 char $ac_func ();
9944 /* The GNU C library defines this for functions which it implements
9945 to always fail with ENOSYS. Some functions are actually named
9946 something starting with __ and the normal name is an alias. */
9947 #if defined __stub_$ac_func || defined __stub___$ac_func
9948 choke me
9949 #endif
9950
9951 int
9952 main ()
9953 {
9954 return $ac_func ();
9955 ;
9956 return 0;
9957 }
9958 _ACEOF
9959 rm -f conftest.$ac_objext conftest$ac_exeext
9960 if { (ac_try="$ac_link"
9961 case "(($ac_try" in
9962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9963 *) ac_try_echo=$ac_try;;
9964 esac
9965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9966 (eval "$ac_link") 2>conftest.er1
9967 ac_status=$?
9968 grep -v '^ *+' conftest.er1 >conftest.err
9969 rm -f conftest.er1
9970 cat conftest.err >&5
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); } && {
9973 test -z "$ac_c_werror_flag" ||
9974 test ! -s conftest.err
9975 } && test -s conftest$ac_exeext &&
9976 $as_test_x conftest$ac_exeext; then
9977 eval "$as_ac_var=yes"
9978 else
9979 echo "$as_me: failed program was:" >&5
9980 sed 's/^/| /' conftest.$ac_ext >&5
9981
9982 eval "$as_ac_var=no"
9983 fi
9984
9985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9986 conftest$ac_exeext conftest.$ac_ext
9987 fi
9988 ac_res=`eval echo '${'$as_ac_var'}'`
9989 { echo "$as_me:$LINENO: result: $ac_res" >&5
9990 echo "${ECHO_T}$ac_res" >&6; }
9991 if test `eval echo '${'$as_ac_var'}'` = yes; then
9992 cat >>confdefs.h <<_ACEOF
9993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9994 _ACEOF
9995
9996 fi
9997 done
9998
9999 { echo "$as_me:$LINENO: checking for working mmap" >&5
10000 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10001 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10002 echo $ECHO_N "(cached) $ECHO_C" >&6
10003 else
10004 if test "$cross_compiling" = yes; then
10005 ac_cv_func_mmap_fixed_mapped=no
10006 else
10007 cat >conftest.$ac_ext <<_ACEOF
10008 /* confdefs.h. */
10009 _ACEOF
10010 cat confdefs.h >>conftest.$ac_ext
10011 cat >>conftest.$ac_ext <<_ACEOF
10012 /* end confdefs.h. */
10013 $ac_includes_default
10014 /* malloc might have been renamed as rpl_malloc. */
10015 #undef malloc
10016
10017 /* Thanks to Mike Haertel and Jim Avera for this test.
10018 Here is a matrix of mmap possibilities:
10019 mmap private not fixed
10020 mmap private fixed at somewhere currently unmapped
10021 mmap private fixed at somewhere already mapped
10022 mmap shared not fixed
10023 mmap shared fixed at somewhere currently unmapped
10024 mmap shared fixed at somewhere already mapped
10025 For private mappings, we should verify that changes cannot be read()
10026 back from the file, nor mmap's back from the file at a different
10027 address. (There have been systems where private was not correctly
10028 implemented like the infamous i386 svr4.0, and systems where the
10029 VM page cache was not coherent with the file system buffer cache
10030 like early versions of FreeBSD and possibly contemporary NetBSD.)
10031 For shared mappings, we should conversely verify that changes get
10032 propagated back to all the places they're supposed to be.
10033
10034 Grep wants private fixed already mapped.
10035 The main things grep needs to know about mmap are:
10036 * does it exist and is it safe to write into the mmap'd area
10037 * how to use it (BSD variants) */
10038
10039 #include <fcntl.h>
10040 #include <sys/mman.h>
10041
10042 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10043 char *malloc ();
10044 #endif
10045
10046 /* This mess was copied from the GNU getpagesize.h. */
10047 #ifndef HAVE_GETPAGESIZE
10048 /* Assume that all systems that can run configure have sys/param.h. */
10049 # ifndef HAVE_SYS_PARAM_H
10050 # define HAVE_SYS_PARAM_H 1
10051 # endif
10052
10053 # ifdef _SC_PAGESIZE
10054 # define getpagesize() sysconf(_SC_PAGESIZE)
10055 # else /* no _SC_PAGESIZE */
10056 # ifdef HAVE_SYS_PARAM_H
10057 # include <sys/param.h>
10058 # ifdef EXEC_PAGESIZE
10059 # define getpagesize() EXEC_PAGESIZE
10060 # else /* no EXEC_PAGESIZE */
10061 # ifdef NBPG
10062 # define getpagesize() NBPG * CLSIZE
10063 # ifndef CLSIZE
10064 # define CLSIZE 1
10065 # endif /* no CLSIZE */
10066 # else /* no NBPG */
10067 # ifdef NBPC
10068 # define getpagesize() NBPC
10069 # else /* no NBPC */
10070 # ifdef PAGESIZE
10071 # define getpagesize() PAGESIZE
10072 # endif /* PAGESIZE */
10073 # endif /* no NBPC */
10074 # endif /* no NBPG */
10075 # endif /* no EXEC_PAGESIZE */
10076 # else /* no HAVE_SYS_PARAM_H */
10077 # define getpagesize() 8192 /* punt totally */
10078 # endif /* no HAVE_SYS_PARAM_H */
10079 # endif /* no _SC_PAGESIZE */
10080
10081 #endif /* no HAVE_GETPAGESIZE */
10082
10083 int
10084 main ()
10085 {
10086 char *data, *data2, *data3;
10087 int i, pagesize;
10088 int fd;
10089
10090 pagesize = getpagesize ();
10091
10092 /* First, make a file with some known garbage in it. */
10093 data = (char *) malloc (pagesize);
10094 if (!data)
10095 return 1;
10096 for (i = 0; i < pagesize; ++i)
10097 *(data + i) = rand ();
10098 umask (0);
10099 fd = creat ("conftest.mmap", 0600);
10100 if (fd < 0)
10101 return 1;
10102 if (write (fd, data, pagesize) != pagesize)
10103 return 1;
10104 close (fd);
10105
10106 /* Next, try to mmap the file at a fixed address which already has
10107 something else allocated at it. If we can, also make sure that
10108 we see the same garbage. */
10109 fd = open ("conftest.mmap", O_RDWR);
10110 if (fd < 0)
10111 return 1;
10112 data2 = (char *) malloc (2 * pagesize);
10113 if (!data2)
10114 return 1;
10115 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10116 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10117 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10118 return 1;
10119 for (i = 0; i < pagesize; ++i)
10120 if (*(data + i) != *(data2 + i))
10121 return 1;
10122
10123 /* Finally, make sure that changes to the mapped area do not
10124 percolate back to the file as seen by read(). (This is a bug on
10125 some variants of i386 svr4.0.) */
10126 for (i = 0; i < pagesize; ++i)
10127 *(data2 + i) = *(data2 + i) + 1;
10128 data3 = (char *) malloc (pagesize);
10129 if (!data3)
10130 return 1;
10131 if (read (fd, data3, pagesize) != pagesize)
10132 return 1;
10133 for (i = 0; i < pagesize; ++i)
10134 if (*(data + i) != *(data3 + i))
10135 return 1;
10136 close (fd);
10137 return 0;
10138 }
10139 _ACEOF
10140 rm -f conftest$ac_exeext
10141 if { (ac_try="$ac_link"
10142 case "(($ac_try" in
10143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10144 *) ac_try_echo=$ac_try;;
10145 esac
10146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10147 (eval "$ac_link") 2>&5
10148 ac_status=$?
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10151 { (case "(($ac_try" in
10152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10153 *) ac_try_echo=$ac_try;;
10154 esac
10155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10156 (eval "$ac_try") 2>&5
10157 ac_status=$?
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); }; }; then
10160 ac_cv_func_mmap_fixed_mapped=yes
10161 else
10162 echo "$as_me: program exited with status $ac_status" >&5
10163 echo "$as_me: failed program was:" >&5
10164 sed 's/^/| /' conftest.$ac_ext >&5
10165
10166 ( exit $ac_status )
10167 ac_cv_func_mmap_fixed_mapped=no
10168 fi
10169 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10170 fi
10171
10172
10173 fi
10174 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10175 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10176 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10177
10178 cat >>confdefs.h <<\_ACEOF
10179 #define HAVE_MMAP 1
10180 _ACEOF
10181
10182 fi
10183 rm -f conftest.mmap
10184
10185 if test $use_mmap_for_buffers = yes; then
10186 REL_ALLOC=no
10187 fi
10188
10189 LIBS="$libsrc_libs $LIBS"
10190
10191
10192 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10193 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10194 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10195 echo $ECHO_N "(cached) $ECHO_C" >&6
10196 else
10197 ac_check_lib_save_LIBS=$LIBS
10198 LIBS="-ldnet $LIBS"
10199 cat >conftest.$ac_ext <<_ACEOF
10200 /* confdefs.h. */
10201 _ACEOF
10202 cat confdefs.h >>conftest.$ac_ext
10203 cat >>conftest.$ac_ext <<_ACEOF
10204 /* end confdefs.h. */
10205
10206 /* Override any GCC internal prototype to avoid an error.
10207 Use char because int might match the return type of a GCC
10208 builtin and then its argument prototype would still apply. */
10209 #ifdef __cplusplus
10210 extern "C"
10211 #endif
10212 char dnet_ntoa ();
10213 int
10214 main ()
10215 {
10216 return dnet_ntoa ();
10217 ;
10218 return 0;
10219 }
10220 _ACEOF
10221 rm -f conftest.$ac_objext conftest$ac_exeext
10222 if { (ac_try="$ac_link"
10223 case "(($ac_try" in
10224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10225 *) ac_try_echo=$ac_try;;
10226 esac
10227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10228 (eval "$ac_link") 2>conftest.er1
10229 ac_status=$?
10230 grep -v '^ *+' conftest.er1 >conftest.err
10231 rm -f conftest.er1
10232 cat conftest.err >&5
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); } && {
10235 test -z "$ac_c_werror_flag" ||
10236 test ! -s conftest.err
10237 } && test -s conftest$ac_exeext &&
10238 $as_test_x conftest$ac_exeext; then
10239 ac_cv_lib_dnet_dnet_ntoa=yes
10240 else
10241 echo "$as_me: failed program was:" >&5
10242 sed 's/^/| /' conftest.$ac_ext >&5
10243
10244 ac_cv_lib_dnet_dnet_ntoa=no
10245 fi
10246
10247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10248 conftest$ac_exeext conftest.$ac_ext
10249 LIBS=$ac_check_lib_save_LIBS
10250 fi
10251 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10252 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10253 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10254 cat >>confdefs.h <<_ACEOF
10255 #define HAVE_LIBDNET 1
10256 _ACEOF
10257
10258 LIBS="-ldnet $LIBS"
10259
10260 fi
10261
10262
10263 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10264 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10265 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10266 echo $ECHO_N "(cached) $ECHO_C" >&6
10267 else
10268 ac_check_lib_save_LIBS=$LIBS
10269 LIBS="-lXbsd $LIBS"
10270 cat >conftest.$ac_ext <<_ACEOF
10271 /* confdefs.h. */
10272 _ACEOF
10273 cat confdefs.h >>conftest.$ac_ext
10274 cat >>conftest.$ac_ext <<_ACEOF
10275 /* end confdefs.h. */
10276
10277
10278 int
10279 main ()
10280 {
10281 return main ();
10282 ;
10283 return 0;
10284 }
10285 _ACEOF
10286 rm -f conftest.$ac_objext conftest$ac_exeext
10287 if { (ac_try="$ac_link"
10288 case "(($ac_try" in
10289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10290 *) ac_try_echo=$ac_try;;
10291 esac
10292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10293 (eval "$ac_link") 2>conftest.er1
10294 ac_status=$?
10295 grep -v '^ *+' conftest.er1 >conftest.err
10296 rm -f conftest.er1
10297 cat conftest.err >&5
10298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299 (exit $ac_status); } && {
10300 test -z "$ac_c_werror_flag" ||
10301 test ! -s conftest.err
10302 } && test -s conftest$ac_exeext &&
10303 $as_test_x conftest$ac_exeext; then
10304 ac_cv_lib_Xbsd_main=yes
10305 else
10306 echo "$as_me: failed program was:" >&5
10307 sed 's/^/| /' conftest.$ac_ext >&5
10308
10309 ac_cv_lib_Xbsd_main=no
10310 fi
10311
10312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10313 conftest$ac_exeext conftest.$ac_ext
10314 LIBS=$ac_check_lib_save_LIBS
10315 fi
10316 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10317 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10318 if test $ac_cv_lib_Xbsd_main = yes; then
10319 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10320 fi
10321
10322
10323
10324 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10325 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10326 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10327 echo $ECHO_N "(cached) $ECHO_C" >&6
10328 else
10329 ac_check_lib_save_LIBS=$LIBS
10330 LIBS="-lpthreads $LIBS"
10331 cat >conftest.$ac_ext <<_ACEOF
10332 /* confdefs.h. */
10333 _ACEOF
10334 cat confdefs.h >>conftest.$ac_ext
10335 cat >>conftest.$ac_ext <<_ACEOF
10336 /* end confdefs.h. */
10337
10338 /* Override any GCC internal prototype to avoid an error.
10339 Use char because int might match the return type of a GCC
10340 builtin and then its argument prototype would still apply. */
10341 #ifdef __cplusplus
10342 extern "C"
10343 #endif
10344 char cma_open ();
10345 int
10346 main ()
10347 {
10348 return cma_open ();
10349 ;
10350 return 0;
10351 }
10352 _ACEOF
10353 rm -f conftest.$ac_objext conftest$ac_exeext
10354 if { (ac_try="$ac_link"
10355 case "(($ac_try" in
10356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10357 *) ac_try_echo=$ac_try;;
10358 esac
10359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10360 (eval "$ac_link") 2>conftest.er1
10361 ac_status=$?
10362 grep -v '^ *+' conftest.er1 >conftest.err
10363 rm -f conftest.er1
10364 cat conftest.err >&5
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); } && {
10367 test -z "$ac_c_werror_flag" ||
10368 test ! -s conftest.err
10369 } && test -s conftest$ac_exeext &&
10370 $as_test_x conftest$ac_exeext; then
10371 ac_cv_lib_pthreads_cma_open=yes
10372 else
10373 echo "$as_me: failed program was:" >&5
10374 sed 's/^/| /' conftest.$ac_ext >&5
10375
10376 ac_cv_lib_pthreads_cma_open=no
10377 fi
10378
10379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10380 conftest$ac_exeext conftest.$ac_ext
10381 LIBS=$ac_check_lib_save_LIBS
10382 fi
10383 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10384 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10385 if test $ac_cv_lib_pthreads_cma_open = yes; then
10386 cat >>confdefs.h <<_ACEOF
10387 #define HAVE_LIBPTHREADS 1
10388 _ACEOF
10389
10390 LIBS="-lpthreads $LIBS"
10391
10392 fi
10393
10394
10395 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10396 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10397 if test -d /usr/X386/include; then
10398 HAVE_XFREE386=yes
10399 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10400 else
10401 HAVE_XFREE386=no
10402 fi
10403 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10404 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10405
10406
10407 case ${host_os} in
10408 aix*)
10409 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10410 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10411 if test "${gdb_cv_bigtoc+set}" = set; then
10412 echo $ECHO_N "(cached) $ECHO_C" >&6
10413 else
10414
10415 case $GCC in
10416 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10417 *) gdb_cv_bigtoc=-bbigtoc ;;
10418 esac
10419
10420 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10421 cat >conftest.$ac_ext <<_ACEOF
10422 /* confdefs.h. */
10423 _ACEOF
10424 cat confdefs.h >>conftest.$ac_ext
10425 cat >>conftest.$ac_ext <<_ACEOF
10426 /* end confdefs.h. */
10427
10428 int
10429 main ()
10430 {
10431 int i;
10432 ;
10433 return 0;
10434 }
10435 _ACEOF
10436 rm -f conftest.$ac_objext conftest$ac_exeext
10437 if { (ac_try="$ac_link"
10438 case "(($ac_try" in
10439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10440 *) ac_try_echo=$ac_try;;
10441 esac
10442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10443 (eval "$ac_link") 2>conftest.er1
10444 ac_status=$?
10445 grep -v '^ *+' conftest.er1 >conftest.err
10446 rm -f conftest.er1
10447 cat conftest.err >&5
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); } && {
10450 test -z "$ac_c_werror_flag" ||
10451 test ! -s conftest.err
10452 } && test -s conftest$ac_exeext &&
10453 $as_test_x conftest$ac_exeext; then
10454 :
10455 else
10456 echo "$as_me: failed program was:" >&5
10457 sed 's/^/| /' conftest.$ac_ext >&5
10458
10459 gdb_cv_bigtoc=
10460 fi
10461
10462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10463 conftest$ac_exeext conftest.$ac_ext
10464
10465 fi
10466 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10467 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10468 ;;
10469 esac
10470
10471 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10472 # used for the tests that follow. We set them back to REAL_CFLAGS and
10473 # REAL_CPPFLAGS later on.
10474
10475 REAL_CPPFLAGS="$CPPFLAGS"
10476
10477 if test "${HAVE_X11}" = "yes"; then
10478 DEFS="$C_SWITCH_X_SITE $DEFS"
10479 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10480 LIBS="$LIBX $LIBS"
10481 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10482 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10483
10484 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10485 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10486 # but it's more convenient here to set LD_RUN_PATH
10487 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10488 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10489 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10490 export LD_RUN_PATH
10491 fi
10492
10493 if test "${opsys}" = "gnu-linux"; then
10494 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10495 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10496 cat >conftest.$ac_ext <<_ACEOF
10497 /* confdefs.h. */
10498 _ACEOF
10499 cat confdefs.h >>conftest.$ac_ext
10500 cat >>conftest.$ac_ext <<_ACEOF
10501 /* end confdefs.h. */
10502
10503 int
10504 main ()
10505 {
10506 XOpenDisplay ("foo");
10507 ;
10508 return 0;
10509 }
10510 _ACEOF
10511 rm -f conftest.$ac_objext conftest$ac_exeext
10512 if { (ac_try="$ac_link"
10513 case "(($ac_try" in
10514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10515 *) ac_try_echo=$ac_try;;
10516 esac
10517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10518 (eval "$ac_link") 2>conftest.er1
10519 ac_status=$?
10520 grep -v '^ *+' conftest.er1 >conftest.err
10521 rm -f conftest.er1
10522 cat conftest.err >&5
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); } && {
10525 test -z "$ac_c_werror_flag" ||
10526 test ! -s conftest.err
10527 } && test -s conftest$ac_exeext &&
10528 $as_test_x conftest$ac_exeext; then
10529 xlinux_first_failure=no
10530 else
10531 echo "$as_me: failed program was:" >&5
10532 sed 's/^/| /' conftest.$ac_ext >&5
10533
10534 xlinux_first_failure=yes
10535 fi
10536
10537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10538 conftest$ac_exeext conftest.$ac_ext
10539 if test "${xlinux_first_failure}" = "yes"; then
10540 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10541 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10542 OLD_CPPFLAGS="$CPPFLAGS"
10543 OLD_LIBS="$LIBS"
10544 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10545 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10546 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10547 LIBS="$LIBS -b i486-linuxaout"
10548 cat >conftest.$ac_ext <<_ACEOF
10549 /* confdefs.h. */
10550 _ACEOF
10551 cat confdefs.h >>conftest.$ac_ext
10552 cat >>conftest.$ac_ext <<_ACEOF
10553 /* end confdefs.h. */
10554
10555 int
10556 main ()
10557 {
10558 XOpenDisplay ("foo");
10559 ;
10560 return 0;
10561 }
10562 _ACEOF
10563 rm -f conftest.$ac_objext conftest$ac_exeext
10564 if { (ac_try="$ac_link"
10565 case "(($ac_try" in
10566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10567 *) ac_try_echo=$ac_try;;
10568 esac
10569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10570 (eval "$ac_link") 2>conftest.er1
10571 ac_status=$?
10572 grep -v '^ *+' conftest.er1 >conftest.err
10573 rm -f conftest.er1
10574 cat conftest.err >&5
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); } && {
10577 test -z "$ac_c_werror_flag" ||
10578 test ! -s conftest.err
10579 } && test -s conftest$ac_exeext &&
10580 $as_test_x conftest$ac_exeext; then
10581 xlinux_second_failure=no
10582 else
10583 echo "$as_me: failed program was:" >&5
10584 sed 's/^/| /' conftest.$ac_ext >&5
10585
10586 xlinux_second_failure=yes
10587 fi
10588
10589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10590 conftest$ac_exeext conftest.$ac_ext
10591 if test "${xlinux_second_failure}" = "yes"; then
10592 # If we get the same failure with -b, there is no use adding -b.
10593 # So take it out. This plays safe.
10594 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10595 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10596 CPPFLAGS="$OLD_CPPFLAGS"
10597 LIBS="$OLD_LIBS"
10598 { echo "$as_me:$LINENO: result: no" >&5
10599 echo "${ECHO_T}no" >&6; }
10600 else
10601 { echo "$as_me:$LINENO: result: yes" >&5
10602 echo "${ECHO_T}yes" >&6; }
10603 fi
10604 else
10605 { echo "$as_me:$LINENO: result: no" >&5
10606 echo "${ECHO_T}no" >&6; }
10607 fi
10608 fi
10609
10610 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10611 # header files included from there.
10612 { echo "$as_me:$LINENO: checking for Xkb" >&5
10613 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10614 cat >conftest.$ac_ext <<_ACEOF
10615 /* confdefs.h. */
10616 _ACEOF
10617 cat confdefs.h >>conftest.$ac_ext
10618 cat >>conftest.$ac_ext <<_ACEOF
10619 /* end confdefs.h. */
10620 #include <X11/Xlib.h>
10621 #include <X11/XKBlib.h>
10622 int
10623 main ()
10624 {
10625 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10626 ;
10627 return 0;
10628 }
10629 _ACEOF
10630 rm -f conftest.$ac_objext conftest$ac_exeext
10631 if { (ac_try="$ac_link"
10632 case "(($ac_try" in
10633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10634 *) ac_try_echo=$ac_try;;
10635 esac
10636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10637 (eval "$ac_link") 2>conftest.er1
10638 ac_status=$?
10639 grep -v '^ *+' conftest.er1 >conftest.err
10640 rm -f conftest.er1
10641 cat conftest.err >&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); } && {
10644 test -z "$ac_c_werror_flag" ||
10645 test ! -s conftest.err
10646 } && test -s conftest$ac_exeext &&
10647 $as_test_x conftest$ac_exeext; then
10648 emacs_xkb=yes
10649 else
10650 echo "$as_me: failed program was:" >&5
10651 sed 's/^/| /' conftest.$ac_ext >&5
10652
10653 emacs_xkb=no
10654 fi
10655
10656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10657 conftest$ac_exeext conftest.$ac_ext
10658 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10659 echo "${ECHO_T}$emacs_xkb" >&6; }
10660 if test $emacs_xkb = yes; then
10661
10662 cat >>confdefs.h <<\_ACEOF
10663 #define HAVE_XKBGETKEYBOARD 1
10664 _ACEOF
10665
10666 fi
10667
10668
10669
10670
10671
10672 for ac_func in XrmSetDatabase XScreenResourceString \
10673 XScreenNumberOfScreen XSetWMProtocols
10674 do
10675 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10676 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10677 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10678 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10679 echo $ECHO_N "(cached) $ECHO_C" >&6
10680 else
10681 cat >conftest.$ac_ext <<_ACEOF
10682 /* confdefs.h. */
10683 _ACEOF
10684 cat confdefs.h >>conftest.$ac_ext
10685 cat >>conftest.$ac_ext <<_ACEOF
10686 /* end confdefs.h. */
10687 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10689 #define $ac_func innocuous_$ac_func
10690
10691 /* System header to define __stub macros and hopefully few prototypes,
10692 which can conflict with char $ac_func (); below.
10693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10694 <limits.h> exists even on freestanding compilers. */
10695
10696 #ifdef __STDC__
10697 # include <limits.h>
10698 #else
10699 # include <assert.h>
10700 #endif
10701
10702 #undef $ac_func
10703
10704 /* Override any GCC internal prototype to avoid an error.
10705 Use char because int might match the return type of a GCC
10706 builtin and then its argument prototype would still apply. */
10707 #ifdef __cplusplus
10708 extern "C"
10709 #endif
10710 char $ac_func ();
10711 /* The GNU C library defines this for functions which it implements
10712 to always fail with ENOSYS. Some functions are actually named
10713 something starting with __ and the normal name is an alias. */
10714 #if defined __stub_$ac_func || defined __stub___$ac_func
10715 choke me
10716 #endif
10717
10718 int
10719 main ()
10720 {
10721 return $ac_func ();
10722 ;
10723 return 0;
10724 }
10725 _ACEOF
10726 rm -f conftest.$ac_objext conftest$ac_exeext
10727 if { (ac_try="$ac_link"
10728 case "(($ac_try" in
10729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10730 *) ac_try_echo=$ac_try;;
10731 esac
10732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10733 (eval "$ac_link") 2>conftest.er1
10734 ac_status=$?
10735 grep -v '^ *+' conftest.er1 >conftest.err
10736 rm -f conftest.er1
10737 cat conftest.err >&5
10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739 (exit $ac_status); } && {
10740 test -z "$ac_c_werror_flag" ||
10741 test ! -s conftest.err
10742 } && test -s conftest$ac_exeext &&
10743 $as_test_x conftest$ac_exeext; then
10744 eval "$as_ac_var=yes"
10745 else
10746 echo "$as_me: failed program was:" >&5
10747 sed 's/^/| /' conftest.$ac_ext >&5
10748
10749 eval "$as_ac_var=no"
10750 fi
10751
10752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10753 conftest$ac_exeext conftest.$ac_ext
10754 fi
10755 ac_res=`eval echo '${'$as_ac_var'}'`
10756 { echo "$as_me:$LINENO: result: $ac_res" >&5
10757 echo "${ECHO_T}$ac_res" >&6; }
10758 if test `eval echo '${'$as_ac_var'}'` = yes; then
10759 cat >>confdefs.h <<_ACEOF
10760 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10761 _ACEOF
10762
10763 fi
10764 done
10765
10766 fi
10767
10768 if test "${window_system}" = "x11"; then
10769 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10770 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10771 if test "${emacs_cv_x11_version_6+set}" = set; then
10772 echo $ECHO_N "(cached) $ECHO_C" >&6
10773 else
10774 cat >conftest.$ac_ext <<_ACEOF
10775 /* confdefs.h. */
10776 _ACEOF
10777 cat confdefs.h >>conftest.$ac_ext
10778 cat >>conftest.$ac_ext <<_ACEOF
10779 /* end confdefs.h. */
10780 #include <X11/Xlib.h>
10781 int
10782 main ()
10783 {
10784 #if XlibSpecificationRelease < 6
10785 fail;
10786 #endif
10787
10788 ;
10789 return 0;
10790 }
10791 _ACEOF
10792 rm -f conftest.$ac_objext conftest$ac_exeext
10793 if { (ac_try="$ac_link"
10794 case "(($ac_try" in
10795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10796 *) ac_try_echo=$ac_try;;
10797 esac
10798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10799 (eval "$ac_link") 2>conftest.er1
10800 ac_status=$?
10801 grep -v '^ *+' conftest.er1 >conftest.err
10802 rm -f conftest.er1
10803 cat conftest.err >&5
10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); } && {
10806 test -z "$ac_c_werror_flag" ||
10807 test ! -s conftest.err
10808 } && test -s conftest$ac_exeext &&
10809 $as_test_x conftest$ac_exeext; then
10810 emacs_cv_x11_version_6=yes
10811 else
10812 echo "$as_me: failed program was:" >&5
10813 sed 's/^/| /' conftest.$ac_ext >&5
10814
10815 emacs_cv_x11_version_6=no
10816 fi
10817
10818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10819 conftest$ac_exeext conftest.$ac_ext
10820 fi
10821
10822 if test $emacs_cv_x11_version_6 = yes; then
10823 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10824 echo "${ECHO_T}6 or newer" >&6; }
10825
10826 cat >>confdefs.h <<\_ACEOF
10827 #define HAVE_X11R6 1
10828 _ACEOF
10829
10830 else
10831 { echo "$as_me:$LINENO: result: before 6" >&5
10832 echo "${ECHO_T}before 6" >&6; }
10833 fi
10834 fi
10835
10836 if test "${window_system}" = "x11"; then
10837 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10838 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10839 if test "${emacs_cv_x11_version_5+set}" = set; then
10840 echo $ECHO_N "(cached) $ECHO_C" >&6
10841 else
10842 cat >conftest.$ac_ext <<_ACEOF
10843 /* confdefs.h. */
10844 _ACEOF
10845 cat confdefs.h >>conftest.$ac_ext
10846 cat >>conftest.$ac_ext <<_ACEOF
10847 /* end confdefs.h. */
10848 #include <X11/Xlib.h>
10849 int
10850 main ()
10851 {
10852 #if XlibSpecificationRelease < 5
10853 fail;
10854 #endif
10855
10856 ;
10857 return 0;
10858 }
10859 _ACEOF
10860 rm -f conftest.$ac_objext conftest$ac_exeext
10861 if { (ac_try="$ac_link"
10862 case "(($ac_try" in
10863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10864 *) ac_try_echo=$ac_try;;
10865 esac
10866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10867 (eval "$ac_link") 2>conftest.er1
10868 ac_status=$?
10869 grep -v '^ *+' conftest.er1 >conftest.err
10870 rm -f conftest.er1
10871 cat conftest.err >&5
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); } && {
10874 test -z "$ac_c_werror_flag" ||
10875 test ! -s conftest.err
10876 } && test -s conftest$ac_exeext &&
10877 $as_test_x conftest$ac_exeext; then
10878 emacs_cv_x11_version_5=yes
10879 else
10880 echo "$as_me: failed program was:" >&5
10881 sed 's/^/| /' conftest.$ac_ext >&5
10882
10883 emacs_cv_x11_version_5=no
10884 fi
10885
10886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10887 conftest$ac_exeext conftest.$ac_ext
10888 fi
10889
10890 if test $emacs_cv_x11_version_5 = yes; then
10891 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10892 echo "${ECHO_T}5 or newer" >&6; }
10893 HAVE_X11R5=yes
10894
10895 cat >>confdefs.h <<\_ACEOF
10896 #define HAVE_X11R5 1
10897 _ACEOF
10898
10899 else
10900 HAVE_X11R5=no
10901 { echo "$as_me:$LINENO: result: before 5" >&5
10902 echo "${ECHO_T}before 5" >&6; }
10903 fi
10904 fi
10905
10906 HAVE_GTK=no
10907 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10908 USE_X_TOOLKIT=none
10909 fi
10910 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10911 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10912 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10913 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10914 { (exit 1); exit 1; }; };
10915 fi
10916 GLIB_REQUIRED=2.4
10917 GTK_REQUIRED=2.4
10918 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10919
10920 if test "X${with_pkg_config_prog}" != X; then
10921 PKG_CONFIG="${with_pkg_config_prog}"
10922 fi
10923
10924 succeeded=no
10925
10926 if test -z "$PKG_CONFIG"; then
10927 # Extract the first word of "pkg-config", so it can be a program name with args.
10928 set dummy pkg-config; ac_word=$2
10929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10931 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10932 echo $ECHO_N "(cached) $ECHO_C" >&6
10933 else
10934 case $PKG_CONFIG in
10935 [\\/]* | ?:[\\/]*)
10936 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10937 ;;
10938 *)
10939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10940 for as_dir in $PATH
10941 do
10942 IFS=$as_save_IFS
10943 test -z "$as_dir" && as_dir=.
10944 for ac_exec_ext in '' $ac_executable_extensions; do
10945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10948 break 2
10949 fi
10950 done
10951 done
10952 IFS=$as_save_IFS
10953
10954 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10955 ;;
10956 esac
10957 fi
10958 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10959 if test -n "$PKG_CONFIG"; then
10960 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10961 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10962 else
10963 { echo "$as_me:$LINENO: result: no" >&5
10964 echo "${ECHO_T}no" >&6; }
10965 fi
10966
10967
10968 fi
10969
10970 if test "$PKG_CONFIG" = "no" ; then
10971 { { echo "$as_me:$LINENO: error:
10972 *** 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
10973 echo "$as_me: error:
10974 *** 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;}
10975 { (exit 1); exit 1; }; }
10976 else
10977 PKG_CONFIG_MIN_VERSION=0.9.0
10978 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10979 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10980 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10981
10982 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10983 { echo "$as_me:$LINENO: result: yes" >&5
10984 echo "${ECHO_T}yes" >&6; }
10985 succeeded=yes
10986
10987 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10988 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10989 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10990 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10991 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10992
10993 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10994 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10995 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
10996 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10997 echo "${ECHO_T}$GTK_LIBS" >&6; }
10998 else
10999 { echo "$as_me:$LINENO: result: no" >&5
11000 echo "${ECHO_T}no" >&6; }
11001 GTK_CFLAGS=""
11002 GTK_LIBS=""
11003 ## If we have a custom action on failure, don't print errors, but
11004 ## do set a variable so people can do so.
11005 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11006 echo $GTK_PKG_ERRORS
11007 fi
11008
11009
11010
11011 else
11012 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11013 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11014 fi
11015 fi
11016
11017 if test $succeeded = yes; then
11018 :
11019 else
11020 { { 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
11021 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;}
11022 { (exit 1); exit 1; }; }
11023 fi
11024
11025
11026
11027 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11028 CFLAGS="$CFLAGS $GTK_CFLAGS"
11029 LIBS="$GTK_LIBS $LIBS"
11030 GTK_COMPILES=no
11031
11032 for ac_func in gtk_main
11033 do
11034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11035 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11037 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11038 echo $ECHO_N "(cached) $ECHO_C" >&6
11039 else
11040 cat >conftest.$ac_ext <<_ACEOF
11041 /* confdefs.h. */
11042 _ACEOF
11043 cat confdefs.h >>conftest.$ac_ext
11044 cat >>conftest.$ac_ext <<_ACEOF
11045 /* end confdefs.h. */
11046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11048 #define $ac_func innocuous_$ac_func
11049
11050 /* System header to define __stub macros and hopefully few prototypes,
11051 which can conflict with char $ac_func (); below.
11052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11053 <limits.h> exists even on freestanding compilers. */
11054
11055 #ifdef __STDC__
11056 # include <limits.h>
11057 #else
11058 # include <assert.h>
11059 #endif
11060
11061 #undef $ac_func
11062
11063 /* Override any GCC internal prototype to avoid an error.
11064 Use char because int might match the return type of a GCC
11065 builtin and then its argument prototype would still apply. */
11066 #ifdef __cplusplus
11067 extern "C"
11068 #endif
11069 char $ac_func ();
11070 /* The GNU C library defines this for functions which it implements
11071 to always fail with ENOSYS. Some functions are actually named
11072 something starting with __ and the normal name is an alias. */
11073 #if defined __stub_$ac_func || defined __stub___$ac_func
11074 choke me
11075 #endif
11076
11077 int
11078 main ()
11079 {
11080 return $ac_func ();
11081 ;
11082 return 0;
11083 }
11084 _ACEOF
11085 rm -f conftest.$ac_objext conftest$ac_exeext
11086 if { (ac_try="$ac_link"
11087 case "(($ac_try" in
11088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11089 *) ac_try_echo=$ac_try;;
11090 esac
11091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11092 (eval "$ac_link") 2>conftest.er1
11093 ac_status=$?
11094 grep -v '^ *+' conftest.er1 >conftest.err
11095 rm -f conftest.er1
11096 cat conftest.err >&5
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); } && {
11099 test -z "$ac_c_werror_flag" ||
11100 test ! -s conftest.err
11101 } && test -s conftest$ac_exeext &&
11102 $as_test_x conftest$ac_exeext; then
11103 eval "$as_ac_var=yes"
11104 else
11105 echo "$as_me: failed program was:" >&5
11106 sed 's/^/| /' conftest.$ac_ext >&5
11107
11108 eval "$as_ac_var=no"
11109 fi
11110
11111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11112 conftest$ac_exeext conftest.$ac_ext
11113 fi
11114 ac_res=`eval echo '${'$as_ac_var'}'`
11115 { echo "$as_me:$LINENO: result: $ac_res" >&5
11116 echo "${ECHO_T}$ac_res" >&6; }
11117 if test `eval echo '${'$as_ac_var'}'` = yes; then
11118 cat >>confdefs.h <<_ACEOF
11119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11120 _ACEOF
11121 GTK_COMPILES=yes
11122 fi
11123 done
11124
11125 if test "${GTK_COMPILES}" != "yes"; then
11126 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11127 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11128 { (exit 1); exit 1; }; };
11129 fi
11130
11131 HAVE_GTK=yes
11132
11133 cat >>confdefs.h <<\_ACEOF
11134 #define HAVE_GTK 1
11135 _ACEOF
11136
11137 USE_X_TOOLKIT=none
11138
11139 if test "$with_toolkit_scroll_bars" != no; then
11140 with_toolkit_scroll_bars=yes
11141 fi
11142
11143 HAVE_GTK_MULTIDISPLAY=no
11144
11145 for ac_func in gdk_display_open
11146 do
11147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11148 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11150 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11151 echo $ECHO_N "(cached) $ECHO_C" >&6
11152 else
11153 cat >conftest.$ac_ext <<_ACEOF
11154 /* confdefs.h. */
11155 _ACEOF
11156 cat confdefs.h >>conftest.$ac_ext
11157 cat >>conftest.$ac_ext <<_ACEOF
11158 /* end confdefs.h. */
11159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11161 #define $ac_func innocuous_$ac_func
11162
11163 /* System header to define __stub macros and hopefully few prototypes,
11164 which can conflict with char $ac_func (); below.
11165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11166 <limits.h> exists even on freestanding compilers. */
11167
11168 #ifdef __STDC__
11169 # include <limits.h>
11170 #else
11171 # include <assert.h>
11172 #endif
11173
11174 #undef $ac_func
11175
11176 /* Override any GCC internal prototype to avoid an error.
11177 Use char because int might match the return type of a GCC
11178 builtin and then its argument prototype would still apply. */
11179 #ifdef __cplusplus
11180 extern "C"
11181 #endif
11182 char $ac_func ();
11183 /* The GNU C library defines this for functions which it implements
11184 to always fail with ENOSYS. Some functions are actually named
11185 something starting with __ and the normal name is an alias. */
11186 #if defined __stub_$ac_func || defined __stub___$ac_func
11187 choke me
11188 #endif
11189
11190 int
11191 main ()
11192 {
11193 return $ac_func ();
11194 ;
11195 return 0;
11196 }
11197 _ACEOF
11198 rm -f conftest.$ac_objext conftest$ac_exeext
11199 if { (ac_try="$ac_link"
11200 case "(($ac_try" in
11201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11202 *) ac_try_echo=$ac_try;;
11203 esac
11204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11205 (eval "$ac_link") 2>conftest.er1
11206 ac_status=$?
11207 grep -v '^ *+' conftest.er1 >conftest.err
11208 rm -f conftest.er1
11209 cat conftest.err >&5
11210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11211 (exit $ac_status); } && {
11212 test -z "$ac_c_werror_flag" ||
11213 test ! -s conftest.err
11214 } && test -s conftest$ac_exeext &&
11215 $as_test_x conftest$ac_exeext; then
11216 eval "$as_ac_var=yes"
11217 else
11218 echo "$as_me: failed program was:" >&5
11219 sed 's/^/| /' conftest.$ac_ext >&5
11220
11221 eval "$as_ac_var=no"
11222 fi
11223
11224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11225 conftest$ac_exeext conftest.$ac_ext
11226 fi
11227 ac_res=`eval echo '${'$as_ac_var'}'`
11228 { echo "$as_me:$LINENO: result: $ac_res" >&5
11229 echo "${ECHO_T}$ac_res" >&6; }
11230 if test `eval echo '${'$as_ac_var'}'` = yes; then
11231 cat >>confdefs.h <<_ACEOF
11232 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11233 _ACEOF
11234 HAVE_GTK_MULTIDISPLAY=yes
11235 fi
11236 done
11237
11238 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11239
11240 cat >>confdefs.h <<\_ACEOF
11241 #define HAVE_GTK_MULTIDISPLAY 1
11242 _ACEOF
11243
11244 fi
11245 HAVE_GTK_FILE_SELECTION=no
11246
11247 for ac_func in gtk_file_selection_new
11248 do
11249 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11250 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11251 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11252 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11253 echo $ECHO_N "(cached) $ECHO_C" >&6
11254 else
11255 cat >conftest.$ac_ext <<_ACEOF
11256 /* confdefs.h. */
11257 _ACEOF
11258 cat confdefs.h >>conftest.$ac_ext
11259 cat >>conftest.$ac_ext <<_ACEOF
11260 /* end confdefs.h. */
11261 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11263 #define $ac_func innocuous_$ac_func
11264
11265 /* System header to define __stub macros and hopefully few prototypes,
11266 which can conflict with char $ac_func (); below.
11267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11268 <limits.h> exists even on freestanding compilers. */
11269
11270 #ifdef __STDC__
11271 # include <limits.h>
11272 #else
11273 # include <assert.h>
11274 #endif
11275
11276 #undef $ac_func
11277
11278 /* Override any GCC internal prototype to avoid an error.
11279 Use char because int might match the return type of a GCC
11280 builtin and then its argument prototype would still apply. */
11281 #ifdef __cplusplus
11282 extern "C"
11283 #endif
11284 char $ac_func ();
11285 /* The GNU C library defines this for functions which it implements
11286 to always fail with ENOSYS. Some functions are actually named
11287 something starting with __ and the normal name is an alias. */
11288 #if defined __stub_$ac_func || defined __stub___$ac_func
11289 choke me
11290 #endif
11291
11292 int
11293 main ()
11294 {
11295 return $ac_func ();
11296 ;
11297 return 0;
11298 }
11299 _ACEOF
11300 rm -f conftest.$ac_objext conftest$ac_exeext
11301 if { (ac_try="$ac_link"
11302 case "(($ac_try" in
11303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11304 *) ac_try_echo=$ac_try;;
11305 esac
11306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11307 (eval "$ac_link") 2>conftest.er1
11308 ac_status=$?
11309 grep -v '^ *+' conftest.er1 >conftest.err
11310 rm -f conftest.er1
11311 cat conftest.err >&5
11312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313 (exit $ac_status); } && {
11314 test -z "$ac_c_werror_flag" ||
11315 test ! -s conftest.err
11316 } && test -s conftest$ac_exeext &&
11317 $as_test_x conftest$ac_exeext; then
11318 eval "$as_ac_var=yes"
11319 else
11320 echo "$as_me: failed program was:" >&5
11321 sed 's/^/| /' conftest.$ac_ext >&5
11322
11323 eval "$as_ac_var=no"
11324 fi
11325
11326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11327 conftest$ac_exeext conftest.$ac_ext
11328 fi
11329 ac_res=`eval echo '${'$as_ac_var'}'`
11330 { echo "$as_me:$LINENO: result: $ac_res" >&5
11331 echo "${ECHO_T}$ac_res" >&6; }
11332 if test `eval echo '${'$as_ac_var'}'` = yes; then
11333 cat >>confdefs.h <<_ACEOF
11334 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11335 _ACEOF
11336 HAVE_GTK_FILE_SELECTION=yes
11337 fi
11338 done
11339
11340
11341 HAVE_GTK_FILE_CHOOSER=no
11342
11343 for ac_func in gtk_file_chooser_dialog_new
11344 do
11345 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11346 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11348 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11349 echo $ECHO_N "(cached) $ECHO_C" >&6
11350 else
11351 cat >conftest.$ac_ext <<_ACEOF
11352 /* confdefs.h. */
11353 _ACEOF
11354 cat confdefs.h >>conftest.$ac_ext
11355 cat >>conftest.$ac_ext <<_ACEOF
11356 /* end confdefs.h. */
11357 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11359 #define $ac_func innocuous_$ac_func
11360
11361 /* System header to define __stub macros and hopefully few prototypes,
11362 which can conflict with char $ac_func (); below.
11363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11364 <limits.h> exists even on freestanding compilers. */
11365
11366 #ifdef __STDC__
11367 # include <limits.h>
11368 #else
11369 # include <assert.h>
11370 #endif
11371
11372 #undef $ac_func
11373
11374 /* Override any GCC internal prototype to avoid an error.
11375 Use char because int might match the return type of a GCC
11376 builtin and then its argument prototype would still apply. */
11377 #ifdef __cplusplus
11378 extern "C"
11379 #endif
11380 char $ac_func ();
11381 /* The GNU C library defines this for functions which it implements
11382 to always fail with ENOSYS. Some functions are actually named
11383 something starting with __ and the normal name is an alias. */
11384 #if defined __stub_$ac_func || defined __stub___$ac_func
11385 choke me
11386 #endif
11387
11388 int
11389 main ()
11390 {
11391 return $ac_func ();
11392 ;
11393 return 0;
11394 }
11395 _ACEOF
11396 rm -f conftest.$ac_objext conftest$ac_exeext
11397 if { (ac_try="$ac_link"
11398 case "(($ac_try" in
11399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11400 *) ac_try_echo=$ac_try;;
11401 esac
11402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11403 (eval "$ac_link") 2>conftest.er1
11404 ac_status=$?
11405 grep -v '^ *+' conftest.er1 >conftest.err
11406 rm -f conftest.er1
11407 cat conftest.err >&5
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); } && {
11410 test -z "$ac_c_werror_flag" ||
11411 test ! -s conftest.err
11412 } && test -s conftest$ac_exeext &&
11413 $as_test_x conftest$ac_exeext; then
11414 eval "$as_ac_var=yes"
11415 else
11416 echo "$as_me: failed program was:" >&5
11417 sed 's/^/| /' conftest.$ac_ext >&5
11418
11419 eval "$as_ac_var=no"
11420 fi
11421
11422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11423 conftest$ac_exeext conftest.$ac_ext
11424 fi
11425 ac_res=`eval echo '${'$as_ac_var'}'`
11426 { echo "$as_me:$LINENO: result: $ac_res" >&5
11427 echo "${ECHO_T}$ac_res" >&6; }
11428 if test `eval echo '${'$as_ac_var'}'` = yes; then
11429 cat >>confdefs.h <<_ACEOF
11430 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11431 _ACEOF
11432 HAVE_GTK_FILE_CHOOSER=yes
11433 fi
11434 done
11435
11436
11437 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11438 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11439
11440 cat >>confdefs.h <<\_ACEOF
11441 #define HAVE_GTK_FILE_BOTH 1
11442 _ACEOF
11443
11444 fi
11445
11446 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11447 HAVE_GTK_AND_PTHREAD=no
11448
11449 for ac_header in pthread.h
11450 do
11451 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11453 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11456 echo $ECHO_N "(cached) $ECHO_C" >&6
11457 fi
11458 ac_res=`eval echo '${'$as_ac_Header'}'`
11459 { echo "$as_me:$LINENO: result: $ac_res" >&5
11460 echo "${ECHO_T}$ac_res" >&6; }
11461 else
11462 # Is the header compilable?
11463 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11464 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11465 cat >conftest.$ac_ext <<_ACEOF
11466 /* confdefs.h. */
11467 _ACEOF
11468 cat confdefs.h >>conftest.$ac_ext
11469 cat >>conftest.$ac_ext <<_ACEOF
11470 /* end confdefs.h. */
11471 $ac_includes_default
11472 #include <$ac_header>
11473 _ACEOF
11474 rm -f conftest.$ac_objext
11475 if { (ac_try="$ac_compile"
11476 case "(($ac_try" in
11477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11478 *) ac_try_echo=$ac_try;;
11479 esac
11480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11481 (eval "$ac_compile") 2>conftest.er1
11482 ac_status=$?
11483 grep -v '^ *+' conftest.er1 >conftest.err
11484 rm -f conftest.er1
11485 cat conftest.err >&5
11486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487 (exit $ac_status); } && {
11488 test -z "$ac_c_werror_flag" ||
11489 test ! -s conftest.err
11490 } && test -s conftest.$ac_objext; then
11491 ac_header_compiler=yes
11492 else
11493 echo "$as_me: failed program was:" >&5
11494 sed 's/^/| /' conftest.$ac_ext >&5
11495
11496 ac_header_compiler=no
11497 fi
11498
11499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11500 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11501 echo "${ECHO_T}$ac_header_compiler" >&6; }
11502
11503 # Is the header present?
11504 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11505 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11506 cat >conftest.$ac_ext <<_ACEOF
11507 /* confdefs.h. */
11508 _ACEOF
11509 cat confdefs.h >>conftest.$ac_ext
11510 cat >>conftest.$ac_ext <<_ACEOF
11511 /* end confdefs.h. */
11512 #include <$ac_header>
11513 _ACEOF
11514 if { (ac_try="$ac_cpp conftest.$ac_ext"
11515 case "(($ac_try" in
11516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11517 *) ac_try_echo=$ac_try;;
11518 esac
11519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11520 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11521 ac_status=$?
11522 grep -v '^ *+' conftest.er1 >conftest.err
11523 rm -f conftest.er1
11524 cat conftest.err >&5
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); } >/dev/null && {
11527 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11528 test ! -s conftest.err
11529 }; then
11530 ac_header_preproc=yes
11531 else
11532 echo "$as_me: failed program was:" >&5
11533 sed 's/^/| /' conftest.$ac_ext >&5
11534
11535 ac_header_preproc=no
11536 fi
11537
11538 rm -f conftest.err conftest.$ac_ext
11539 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11540 echo "${ECHO_T}$ac_header_preproc" >&6; }
11541
11542 # So? What about this header?
11543 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11544 yes:no: )
11545 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11546 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11548 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11549 ac_header_preproc=yes
11550 ;;
11551 no:yes:* )
11552 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11553 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11554 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11555 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11556 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11557 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11558 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11559 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11562 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11563 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11564
11565 ;;
11566 esac
11567 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11570 echo $ECHO_N "(cached) $ECHO_C" >&6
11571 else
11572 eval "$as_ac_Header=\$ac_header_preproc"
11573 fi
11574 ac_res=`eval echo '${'$as_ac_Header'}'`
11575 { echo "$as_me:$LINENO: result: $ac_res" >&5
11576 echo "${ECHO_T}$ac_res" >&6; }
11577
11578 fi
11579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11580 cat >>confdefs.h <<_ACEOF
11581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11582 _ACEOF
11583
11584 fi
11585
11586 done
11587
11588 if test "$ac_cv_header_pthread_h"; then
11589 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11590 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11591 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11592 echo $ECHO_N "(cached) $ECHO_C" >&6
11593 else
11594 ac_check_lib_save_LIBS=$LIBS
11595 LIBS="-lpthread $LIBS"
11596 cat >conftest.$ac_ext <<_ACEOF
11597 /* confdefs.h. */
11598 _ACEOF
11599 cat confdefs.h >>conftest.$ac_ext
11600 cat >>conftest.$ac_ext <<_ACEOF
11601 /* end confdefs.h. */
11602
11603 /* Override any GCC internal prototype to avoid an error.
11604 Use char because int might match the return type of a GCC
11605 builtin and then its argument prototype would still apply. */
11606 #ifdef __cplusplus
11607 extern "C"
11608 #endif
11609 char pthread_self ();
11610 int
11611 main ()
11612 {
11613 return pthread_self ();
11614 ;
11615 return 0;
11616 }
11617 _ACEOF
11618 rm -f conftest.$ac_objext conftest$ac_exeext
11619 if { (ac_try="$ac_link"
11620 case "(($ac_try" in
11621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11622 *) ac_try_echo=$ac_try;;
11623 esac
11624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11625 (eval "$ac_link") 2>conftest.er1
11626 ac_status=$?
11627 grep -v '^ *+' conftest.er1 >conftest.err
11628 rm -f conftest.er1
11629 cat conftest.err >&5
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); } && {
11632 test -z "$ac_c_werror_flag" ||
11633 test ! -s conftest.err
11634 } && test -s conftest$ac_exeext &&
11635 $as_test_x conftest$ac_exeext; then
11636 ac_cv_lib_pthread_pthread_self=yes
11637 else
11638 echo "$as_me: failed program was:" >&5
11639 sed 's/^/| /' conftest.$ac_ext >&5
11640
11641 ac_cv_lib_pthread_pthread_self=no
11642 fi
11643
11644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11645 conftest$ac_exeext conftest.$ac_ext
11646 LIBS=$ac_check_lib_save_LIBS
11647 fi
11648 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11649 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11650 if test $ac_cv_lib_pthread_pthread_self = yes; then
11651 HAVE_GTK_AND_PTHREAD=yes
11652 fi
11653
11654 fi
11655 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11656 GTK_LIBS="$GTK_LIBS -lpthread"
11657
11658 cat >>confdefs.h <<\_ACEOF
11659 #define HAVE_GTK_AND_PTHREAD 1
11660 _ACEOF
11661
11662 fi
11663 fi
11664 fi
11665
11666 if test x"${USE_X_TOOLKIT}" = xmaybe; then
11667 if test x"${HAVE_X11R5}" = xyes; then
11668 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11669 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
11670 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11671 echo $ECHO_N "(cached) $ECHO_C" >&6
11672 else
11673 cat >conftest.$ac_ext <<_ACEOF
11674 /* confdefs.h. */
11675 _ACEOF
11676 cat confdefs.h >>conftest.$ac_ext
11677 cat >>conftest.$ac_ext <<_ACEOF
11678 /* end confdefs.h. */
11679
11680 #include <X11/Intrinsic.h>
11681 #include <X11/Xaw/Simple.h>
11682 int
11683 main ()
11684 {
11685
11686 ;
11687 return 0;
11688 }
11689 _ACEOF
11690 rm -f conftest.$ac_objext conftest$ac_exeext
11691 if { (ac_try="$ac_link"
11692 case "(($ac_try" in
11693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11694 *) ac_try_echo=$ac_try;;
11695 esac
11696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11697 (eval "$ac_link") 2>conftest.er1
11698 ac_status=$?
11699 grep -v '^ *+' conftest.er1 >conftest.err
11700 rm -f conftest.er1
11701 cat conftest.err >&5
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); } && {
11704 test -z "$ac_c_werror_flag" ||
11705 test ! -s conftest.err
11706 } && test -s conftest$ac_exeext &&
11707 $as_test_x conftest$ac_exeext; then
11708 emacs_cv_x11_version_5_with_xaw=yes
11709 else
11710 echo "$as_me: failed program was:" >&5
11711 sed 's/^/| /' conftest.$ac_ext >&5
11712
11713 emacs_cv_x11_version_5_with_xaw=no
11714 fi
11715
11716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11717 conftest$ac_exeext conftest.$ac_ext
11718 fi
11719
11720 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11721 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11722 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
11723 USE_X_TOOLKIT=LUCID
11724 else
11725 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11726 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
11727 USE_X_TOOLKIT=none
11728 fi
11729 else
11730 USE_X_TOOLKIT=none
11731 fi
11732 fi
11733
11734 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11735
11736 if test "${USE_X_TOOLKIT}" != "none"; then
11737 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11738 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11739 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11740 echo $ECHO_N "(cached) $ECHO_C" >&6
11741 else
11742 cat >conftest.$ac_ext <<_ACEOF
11743 /* confdefs.h. */
11744 _ACEOF
11745 cat confdefs.h >>conftest.$ac_ext
11746 cat >>conftest.$ac_ext <<_ACEOF
11747 /* end confdefs.h. */
11748 #include <X11/Intrinsic.h>
11749 int
11750 main ()
11751 {
11752 #if XtSpecificationRelease < 6
11753 fail;
11754 #endif
11755
11756 ;
11757 return 0;
11758 }
11759 _ACEOF
11760 rm -f conftest.$ac_objext conftest$ac_exeext
11761 if { (ac_try="$ac_link"
11762 case "(($ac_try" in
11763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11764 *) ac_try_echo=$ac_try;;
11765 esac
11766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11767 (eval "$ac_link") 2>conftest.er1
11768 ac_status=$?
11769 grep -v '^ *+' conftest.er1 >conftest.err
11770 rm -f conftest.er1
11771 cat conftest.err >&5
11772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773 (exit $ac_status); } && {
11774 test -z "$ac_c_werror_flag" ||
11775 test ! -s conftest.err
11776 } && test -s conftest$ac_exeext &&
11777 $as_test_x conftest$ac_exeext; then
11778 emacs_cv_x11_toolkit_version_6=yes
11779 else
11780 echo "$as_me: failed program was:" >&5
11781 sed 's/^/| /' conftest.$ac_ext >&5
11782
11783 emacs_cv_x11_toolkit_version_6=no
11784 fi
11785
11786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11787 conftest$ac_exeext conftest.$ac_ext
11788 fi
11789
11790 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11791 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11792 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11793 echo "${ECHO_T}6 or newer" >&6; }
11794
11795 cat >>confdefs.h <<\_ACEOF
11796 #define HAVE_X11XTR6 1
11797 _ACEOF
11798
11799 else
11800 { echo "$as_me:$LINENO: result: before 6" >&5
11801 echo "${ECHO_T}before 6" >&6; }
11802 fi
11803
11804 OLDLIBS="$LIBS"
11805 if test x$HAVE_X11XTR6 = xyes; then
11806 LIBS="-lXt -lSM -lICE $LIBS"
11807 else
11808 LIBS="-lXt $LIBS"
11809 fi
11810
11811 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11812 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11813 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11814 echo $ECHO_N "(cached) $ECHO_C" >&6
11815 else
11816 ac_check_lib_save_LIBS=$LIBS
11817 LIBS="-lXmu $LIBS"
11818 cat >conftest.$ac_ext <<_ACEOF
11819 /* confdefs.h. */
11820 _ACEOF
11821 cat confdefs.h >>conftest.$ac_ext
11822 cat >>conftest.$ac_ext <<_ACEOF
11823 /* end confdefs.h. */
11824
11825 /* Override any GCC internal prototype to avoid an error.
11826 Use char because int might match the return type of a GCC
11827 builtin and then its argument prototype would still apply. */
11828 #ifdef __cplusplus
11829 extern "C"
11830 #endif
11831 char XmuConvertStandardSelection ();
11832 int
11833 main ()
11834 {
11835 return XmuConvertStandardSelection ();
11836 ;
11837 return 0;
11838 }
11839 _ACEOF
11840 rm -f conftest.$ac_objext conftest$ac_exeext
11841 if { (ac_try="$ac_link"
11842 case "(($ac_try" in
11843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11844 *) ac_try_echo=$ac_try;;
11845 esac
11846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11847 (eval "$ac_link") 2>conftest.er1
11848 ac_status=$?
11849 grep -v '^ *+' conftest.er1 >conftest.err
11850 rm -f conftest.er1
11851 cat conftest.err >&5
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); } && {
11854 test -z "$ac_c_werror_flag" ||
11855 test ! -s conftest.err
11856 } && test -s conftest$ac_exeext &&
11857 $as_test_x conftest$ac_exeext; then
11858 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11859 else
11860 echo "$as_me: failed program was:" >&5
11861 sed 's/^/| /' conftest.$ac_ext >&5
11862
11863 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11864 fi
11865
11866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11867 conftest$ac_exeext conftest.$ac_ext
11868 LIBS=$ac_check_lib_save_LIBS
11869 fi
11870 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11871 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11872 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11873 cat >>confdefs.h <<_ACEOF
11874 #define HAVE_LIBXMU 1
11875 _ACEOF
11876
11877 LIBS="-lXmu $LIBS"
11878
11879 fi
11880
11881 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11882 fi
11883
11884 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11885 if test "${HAVE_X11}" = "yes"; then
11886 if test "${USE_X_TOOLKIT}" != "none"; then
11887
11888 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11889 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
11890 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11891 echo $ECHO_N "(cached) $ECHO_C" >&6
11892 else
11893 ac_check_lib_save_LIBS=$LIBS
11894 LIBS="-lXext $LIBS"
11895 cat >conftest.$ac_ext <<_ACEOF
11896 /* confdefs.h. */
11897 _ACEOF
11898 cat confdefs.h >>conftest.$ac_ext
11899 cat >>conftest.$ac_ext <<_ACEOF
11900 /* end confdefs.h. */
11901
11902 /* Override any GCC internal prototype to avoid an error.
11903 Use char because int might match the return type of a GCC
11904 builtin and then its argument prototype would still apply. */
11905 #ifdef __cplusplus
11906 extern "C"
11907 #endif
11908 char XShapeQueryExtension ();
11909 int
11910 main ()
11911 {
11912 return XShapeQueryExtension ();
11913 ;
11914 return 0;
11915 }
11916 _ACEOF
11917 rm -f conftest.$ac_objext conftest$ac_exeext
11918 if { (ac_try="$ac_link"
11919 case "(($ac_try" in
11920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11921 *) ac_try_echo=$ac_try;;
11922 esac
11923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11924 (eval "$ac_link") 2>conftest.er1
11925 ac_status=$?
11926 grep -v '^ *+' conftest.er1 >conftest.err
11927 rm -f conftest.er1
11928 cat conftest.err >&5
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); } && {
11931 test -z "$ac_c_werror_flag" ||
11932 test ! -s conftest.err
11933 } && test -s conftest$ac_exeext &&
11934 $as_test_x conftest$ac_exeext; then
11935 ac_cv_lib_Xext_XShapeQueryExtension=yes
11936 else
11937 echo "$as_me: failed program was:" >&5
11938 sed 's/^/| /' conftest.$ac_ext >&5
11939
11940 ac_cv_lib_Xext_XShapeQueryExtension=no
11941 fi
11942
11943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11944 conftest$ac_exeext conftest.$ac_ext
11945 LIBS=$ac_check_lib_save_LIBS
11946 fi
11947 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11948 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11949 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11950 cat >>confdefs.h <<_ACEOF
11951 #define HAVE_LIBXEXT 1
11952 _ACEOF
11953
11954 LIBS="-lXext $LIBS"
11955
11956 fi
11957
11958 fi
11959 fi
11960
11961 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11962 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11963 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
11964 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11965 echo $ECHO_N "(cached) $ECHO_C" >&6
11966 else
11967 cat >conftest.$ac_ext <<_ACEOF
11968 /* confdefs.h. */
11969 _ACEOF
11970 cat confdefs.h >>conftest.$ac_ext
11971 cat >>conftest.$ac_ext <<_ACEOF
11972 /* end confdefs.h. */
11973 #include <Xm/Xm.h>
11974 int
11975 main ()
11976 {
11977 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11978 int x = 5;
11979 #else
11980 Motif version prior to 2.1.
11981 #endif
11982 ;
11983 return 0;
11984 }
11985 _ACEOF
11986 rm -f conftest.$ac_objext
11987 if { (ac_try="$ac_compile"
11988 case "(($ac_try" in
11989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11990 *) ac_try_echo=$ac_try;;
11991 esac
11992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11993 (eval "$ac_compile") 2>conftest.er1
11994 ac_status=$?
11995 grep -v '^ *+' conftest.er1 >conftest.err
11996 rm -f conftest.er1
11997 cat conftest.err >&5
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); } && {
12000 test -z "$ac_c_werror_flag" ||
12001 test ! -s conftest.err
12002 } && test -s conftest.$ac_objext; then
12003 emacs_cv_motif_version_2_1=yes
12004 else
12005 echo "$as_me: failed program was:" >&5
12006 sed 's/^/| /' conftest.$ac_ext >&5
12007
12008 emacs_cv_motif_version_2_1=no
12009 fi
12010
12011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12012 fi
12013 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12014 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12015 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12016 if test $emacs_cv_motif_version_2_1 = yes; then
12017 HAVE_LIBXP=no
12018
12019 cat >>confdefs.h <<\_ACEOF
12020 #define HAVE_MOTIF_2_1 1
12021 _ACEOF
12022
12023 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12024 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12025 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12026 echo $ECHO_N "(cached) $ECHO_C" >&6
12027 else
12028 ac_check_lib_save_LIBS=$LIBS
12029 LIBS="-lXp $LIBS"
12030 cat >conftest.$ac_ext <<_ACEOF
12031 /* confdefs.h. */
12032 _ACEOF
12033 cat confdefs.h >>conftest.$ac_ext
12034 cat >>conftest.$ac_ext <<_ACEOF
12035 /* end confdefs.h. */
12036
12037 /* Override any GCC internal prototype to avoid an error.
12038 Use char because int might match the return type of a GCC
12039 builtin and then its argument prototype would still apply. */
12040 #ifdef __cplusplus
12041 extern "C"
12042 #endif
12043 char XpCreateContext ();
12044 int
12045 main ()
12046 {
12047 return XpCreateContext ();
12048 ;
12049 return 0;
12050 }
12051 _ACEOF
12052 rm -f conftest.$ac_objext conftest$ac_exeext
12053 if { (ac_try="$ac_link"
12054 case "(($ac_try" in
12055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12056 *) ac_try_echo=$ac_try;;
12057 esac
12058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12059 (eval "$ac_link") 2>conftest.er1
12060 ac_status=$?
12061 grep -v '^ *+' conftest.er1 >conftest.err
12062 rm -f conftest.er1
12063 cat conftest.err >&5
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); } && {
12066 test -z "$ac_c_werror_flag" ||
12067 test ! -s conftest.err
12068 } && test -s conftest$ac_exeext &&
12069 $as_test_x conftest$ac_exeext; then
12070 ac_cv_lib_Xp_XpCreateContext=yes
12071 else
12072 echo "$as_me: failed program was:" >&5
12073 sed 's/^/| /' conftest.$ac_ext >&5
12074
12075 ac_cv_lib_Xp_XpCreateContext=no
12076 fi
12077
12078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12079 conftest$ac_exeext conftest.$ac_ext
12080 LIBS=$ac_check_lib_save_LIBS
12081 fi
12082 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12083 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12084 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12085 HAVE_LIBXP=yes
12086 fi
12087
12088 if test ${HAVE_LIBXP} = yes; then
12089
12090 cat >>confdefs.h <<\_ACEOF
12091 #define HAVE_LIBXP 1
12092 _ACEOF
12093
12094 fi
12095 else
12096 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12097 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12098 if test "${emacs_cv_lesstif+set}" = set; then
12099 echo $ECHO_N "(cached) $ECHO_C" >&6
12100 else
12101 # We put this in CFLAGS temporarily to precede other -I options
12102 # that might be in CFLAGS temporarily.
12103 # We put this in CPPFLAGS where it precedes the other -I options.
12104 OLD_CPPFLAGS=$CPPFLAGS
12105 OLD_CFLAGS=$CFLAGS
12106 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12107 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12108 cat >conftest.$ac_ext <<_ACEOF
12109 /* confdefs.h. */
12110 _ACEOF
12111 cat confdefs.h >>conftest.$ac_ext
12112 cat >>conftest.$ac_ext <<_ACEOF
12113 /* end confdefs.h. */
12114 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12115 int
12116 main ()
12117 {
12118 int x = 5;
12119 ;
12120 return 0;
12121 }
12122 _ACEOF
12123 rm -f conftest.$ac_objext
12124 if { (ac_try="$ac_compile"
12125 case "(($ac_try" in
12126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12127 *) ac_try_echo=$ac_try;;
12128 esac
12129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12130 (eval "$ac_compile") 2>conftest.er1
12131 ac_status=$?
12132 grep -v '^ *+' conftest.er1 >conftest.err
12133 rm -f conftest.er1
12134 cat conftest.err >&5
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); } && {
12137 test -z "$ac_c_werror_flag" ||
12138 test ! -s conftest.err
12139 } && test -s conftest.$ac_objext; then
12140 emacs_cv_lesstif=yes
12141 else
12142 echo "$as_me: failed program was:" >&5
12143 sed 's/^/| /' conftest.$ac_ext >&5
12144
12145 emacs_cv_lesstif=no
12146 fi
12147
12148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12149 fi
12150 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12151 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12152 if test $emacs_cv_lesstif = yes; then
12153 # Make sure this -I option remains in CPPFLAGS after it is set
12154 # back to REAL_CPPFLAGS.
12155 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12156 # have those other -I options anyway. Ultimately, having this
12157 # directory ultimately in CPPFLAGS will be enough.
12158 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12159 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12160 else
12161 CFLAGS=$OLD_CFLAGS
12162 CPPFLAGS=$OLD_CPPFLAGS
12163 fi
12164 fi
12165 fi
12166
12167 ### Is -lXaw3d available?
12168 HAVE_XAW3D=no
12169 if test "${HAVE_X11}" = "yes"; then
12170 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12171 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12172 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12173 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12174 echo $ECHO_N "(cached) $ECHO_C" >&6
12175 else
12176 cat >conftest.$ac_ext <<_ACEOF
12177 /* confdefs.h. */
12178 _ACEOF
12179 cat confdefs.h >>conftest.$ac_ext
12180 cat >>conftest.$ac_ext <<_ACEOF
12181 /* end confdefs.h. */
12182 #include <X11/Xaw3d/Scrollbar.h>
12183 _ACEOF
12184 if { (ac_try="$ac_cpp conftest.$ac_ext"
12185 case "(($ac_try" in
12186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12187 *) ac_try_echo=$ac_try;;
12188 esac
12189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12191 ac_status=$?
12192 grep -v '^ *+' conftest.er1 >conftest.err
12193 rm -f conftest.er1
12194 cat conftest.err >&5
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); } >/dev/null && {
12197 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12198 test ! -s conftest.err
12199 }; then
12200 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
12201 else
12202 echo "$as_me: failed program was:" >&5
12203 sed 's/^/| /' conftest.$ac_ext >&5
12204
12205 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
12206 fi
12207
12208 rm -f conftest.err conftest.$ac_ext
12209 fi
12210 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12211 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12212 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12213 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12214 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12215 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12216 echo $ECHO_N "(cached) $ECHO_C" >&6
12217 else
12218 ac_check_lib_save_LIBS=$LIBS
12219 LIBS="-lXaw3d $LIBS"
12220 cat >conftest.$ac_ext <<_ACEOF
12221 /* confdefs.h. */
12222 _ACEOF
12223 cat confdefs.h >>conftest.$ac_ext
12224 cat >>conftest.$ac_ext <<_ACEOF
12225 /* end confdefs.h. */
12226
12227 /* Override any GCC internal prototype to avoid an error.
12228 Use char because int might match the return type of a GCC
12229 builtin and then its argument prototype would still apply. */
12230 #ifdef __cplusplus
12231 extern "C"
12232 #endif
12233 char XawScrollbarSetThumb ();
12234 int
12235 main ()
12236 {
12237 return XawScrollbarSetThumb ();
12238 ;
12239 return 0;
12240 }
12241 _ACEOF
12242 rm -f conftest.$ac_objext conftest$ac_exeext
12243 if { (ac_try="$ac_link"
12244 case "(($ac_try" in
12245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12246 *) ac_try_echo=$ac_try;;
12247 esac
12248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12249 (eval "$ac_link") 2>conftest.er1
12250 ac_status=$?
12251 grep -v '^ *+' conftest.er1 >conftest.err
12252 rm -f conftest.er1
12253 cat conftest.err >&5
12254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255 (exit $ac_status); } && {
12256 test -z "$ac_c_werror_flag" ||
12257 test ! -s conftest.err
12258 } && test -s conftest$ac_exeext &&
12259 $as_test_x conftest$ac_exeext; then
12260 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12261 else
12262 echo "$as_me: failed program was:" >&5
12263 sed 's/^/| /' conftest.$ac_ext >&5
12264
12265 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12266 fi
12267
12268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12269 conftest$ac_exeext conftest.$ac_ext
12270 LIBS=$ac_check_lib_save_LIBS
12271 fi
12272 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12273 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12274 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12275 HAVE_XAW3D=yes
12276 fi
12277
12278 fi
12279
12280
12281 if test "${HAVE_XAW3D}" = "yes"; then
12282
12283 cat >>confdefs.h <<\_ACEOF
12284 #define HAVE_XAW3D 1
12285 _ACEOF
12286
12287 fi
12288 fi
12289 fi
12290
12291
12292
12293 USE_TOOLKIT_SCROLL_BARS=no
12294 if test "${with_toolkit_scroll_bars}" != "no"; then
12295 if test "${USE_X_TOOLKIT}" != "none"; then
12296 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12297 cat >>confdefs.h <<\_ACEOF
12298 #define USE_TOOLKIT_SCROLL_BARS 1
12299 _ACEOF
12300
12301 HAVE_XAW3D=no
12302 USE_TOOLKIT_SCROLL_BARS=yes
12303 elif test "${HAVE_XAW3D}" = "yes"; then
12304 cat >>confdefs.h <<\_ACEOF
12305 #define USE_TOOLKIT_SCROLL_BARS 1
12306 _ACEOF
12307
12308 USE_TOOLKIT_SCROLL_BARS=yes
12309 fi
12310 elif test "${HAVE_GTK}" = "yes"; then
12311 cat >>confdefs.h <<\_ACEOF
12312 #define USE_TOOLKIT_SCROLL_BARS 1
12313 _ACEOF
12314
12315 USE_TOOLKIT_SCROLL_BARS=yes
12316 elif test "${HAVE_CARBON}" = "yes"; then
12317 cat >>confdefs.h <<\_ACEOF
12318 #define USE_TOOLKIT_SCROLL_BARS 1
12319 _ACEOF
12320
12321 USE_TOOLKIT_SCROLL_BARS=yes
12322 fi
12323 fi
12324
12325 cat >conftest.$ac_ext <<_ACEOF
12326 /* confdefs.h. */
12327 _ACEOF
12328 cat confdefs.h >>conftest.$ac_ext
12329 cat >>conftest.$ac_ext <<_ACEOF
12330 /* end confdefs.h. */
12331
12332 #include <X11/Xlib.h>
12333 #include <X11/Xresource.h>
12334 int
12335 main ()
12336 {
12337 XIMProc callback;
12338 ;
12339 return 0;
12340 }
12341 _ACEOF
12342 rm -f conftest.$ac_objext
12343 if { (ac_try="$ac_compile"
12344 case "(($ac_try" in
12345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12346 *) ac_try_echo=$ac_try;;
12347 esac
12348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12349 (eval "$ac_compile") 2>conftest.er1
12350 ac_status=$?
12351 grep -v '^ *+' conftest.er1 >conftest.err
12352 rm -f conftest.er1
12353 cat conftest.err >&5
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); } && {
12356 test -z "$ac_c_werror_flag" ||
12357 test ! -s conftest.err
12358 } && test -s conftest.$ac_objext; then
12359 HAVE_XIM=yes
12360
12361 cat >>confdefs.h <<\_ACEOF
12362 #define HAVE_XIM 1
12363 _ACEOF
12364
12365 else
12366 echo "$as_me: failed program was:" >&5
12367 sed 's/^/| /' conftest.$ac_ext >&5
12368
12369 HAVE_XIM=no
12370 fi
12371
12372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12373
12374
12375 if test "${with_xim}" != "no"; then
12376
12377 cat >>confdefs.h <<\_ACEOF
12378 #define USE_XIM 1
12379 _ACEOF
12380
12381 fi
12382
12383
12384 if test "${HAVE_XIM}" != "no"; then
12385 late_CFLAGS=$CFLAGS
12386 if test "$GCC" = yes; then
12387 CFLAGS="$CFLAGS --pedantic-errors"
12388 fi
12389 cat >conftest.$ac_ext <<_ACEOF
12390 /* confdefs.h. */
12391 _ACEOF
12392 cat confdefs.h >>conftest.$ac_ext
12393 cat >>conftest.$ac_ext <<_ACEOF
12394 /* end confdefs.h. */
12395
12396 #include <X11/Xlib.h>
12397 #include <X11/Xresource.h>
12398 int
12399 main ()
12400 {
12401 Display *display;
12402 XrmDatabase db;
12403 char *res_name;
12404 char *res_class;
12405 XIMProc callback;
12406 XPointer *client_data;
12407 #ifndef __GNUC__
12408 /* If we're not using GCC, it's probably not XFree86, and this is
12409 probably right, but we can't use something like --pedantic-errors. */
12410 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12411 char*, XIMProc, XPointer*);
12412 #endif
12413 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12414 client_data);
12415 ;
12416 return 0;
12417 }
12418 _ACEOF
12419 rm -f conftest.$ac_objext
12420 if { (ac_try="$ac_compile"
12421 case "(($ac_try" in
12422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12423 *) ac_try_echo=$ac_try;;
12424 esac
12425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12426 (eval "$ac_compile") 2>conftest.er1
12427 ac_status=$?
12428 grep -v '^ *+' conftest.er1 >conftest.err
12429 rm -f conftest.er1
12430 cat conftest.err >&5
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); } && {
12433 test -z "$ac_c_werror_flag" ||
12434 test ! -s conftest.err
12435 } && test -s conftest.$ac_objext; then
12436 emacs_cv_arg6_star=yes
12437 else
12438 echo "$as_me: failed program was:" >&5
12439 sed 's/^/| /' conftest.$ac_ext >&5
12440
12441
12442 fi
12443
12444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12445
12446 if test "$emacs_cv_arg6_star" = yes; then
12447 cat >>confdefs.h <<\_ACEOF
12448 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12449 _ACEOF
12450
12451 else
12452 cat >>confdefs.h <<\_ACEOF
12453 #define XRegisterIMInstantiateCallback_arg6 XPointer
12454 _ACEOF
12455
12456 fi
12457 CFLAGS=$late_CFLAGS
12458 fi
12459
12460 ### Use -lXpm if available, unless `--with-xpm=no'.
12461 HAVE_XPM=no
12462 if test "${HAVE_X11}" = "yes"; then
12463 if test "${with_xpm}" != "no"; then
12464 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12465 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12466 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12467 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12468 echo $ECHO_N "(cached) $ECHO_C" >&6
12469 fi
12470 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12471 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12472 else
12473 # Is the header compilable?
12474 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12475 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
12476 cat >conftest.$ac_ext <<_ACEOF
12477 /* confdefs.h. */
12478 _ACEOF
12479 cat confdefs.h >>conftest.$ac_ext
12480 cat >>conftest.$ac_ext <<_ACEOF
12481 /* end confdefs.h. */
12482 $ac_includes_default
12483 #include <X11/xpm.h>
12484 _ACEOF
12485 rm -f conftest.$ac_objext
12486 if { (ac_try="$ac_compile"
12487 case "(($ac_try" in
12488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12489 *) ac_try_echo=$ac_try;;
12490 esac
12491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12492 (eval "$ac_compile") 2>conftest.er1
12493 ac_status=$?
12494 grep -v '^ *+' conftest.er1 >conftest.err
12495 rm -f conftest.er1
12496 cat conftest.err >&5
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); } && {
12499 test -z "$ac_c_werror_flag" ||
12500 test ! -s conftest.err
12501 } && test -s conftest.$ac_objext; then
12502 ac_header_compiler=yes
12503 else
12504 echo "$as_me: failed program was:" >&5
12505 sed 's/^/| /' conftest.$ac_ext >&5
12506
12507 ac_header_compiler=no
12508 fi
12509
12510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12511 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12512 echo "${ECHO_T}$ac_header_compiler" >&6; }
12513
12514 # Is the header present?
12515 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12516 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12517 cat >conftest.$ac_ext <<_ACEOF
12518 /* confdefs.h. */
12519 _ACEOF
12520 cat confdefs.h >>conftest.$ac_ext
12521 cat >>conftest.$ac_ext <<_ACEOF
12522 /* end confdefs.h. */
12523 #include <X11/xpm.h>
12524 _ACEOF
12525 if { (ac_try="$ac_cpp conftest.$ac_ext"
12526 case "(($ac_try" in
12527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12528 *) ac_try_echo=$ac_try;;
12529 esac
12530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12532 ac_status=$?
12533 grep -v '^ *+' conftest.er1 >conftest.err
12534 rm -f conftest.er1
12535 cat conftest.err >&5
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); } >/dev/null && {
12538 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12539 test ! -s conftest.err
12540 }; then
12541 ac_header_preproc=yes
12542 else
12543 echo "$as_me: failed program was:" >&5
12544 sed 's/^/| /' conftest.$ac_ext >&5
12545
12546 ac_header_preproc=no
12547 fi
12548
12549 rm -f conftest.err conftest.$ac_ext
12550 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12551 echo "${ECHO_T}$ac_header_preproc" >&6; }
12552
12553 # So? What about this header?
12554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12555 yes:no: )
12556 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12557 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12558 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12559 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12560 ac_header_preproc=yes
12561 ;;
12562 no:yes:* )
12563 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12564 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12565 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12566 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12567 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12568 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12569 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12570 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12571 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12572 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12573 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12574 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12575
12576 ;;
12577 esac
12578 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12579 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12580 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12581 echo $ECHO_N "(cached) $ECHO_C" >&6
12582 else
12583 ac_cv_header_X11_xpm_h=$ac_header_preproc
12584 fi
12585 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12586 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12587
12588 fi
12589 if test $ac_cv_header_X11_xpm_h = yes; then
12590 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12591 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
12592 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12593 echo $ECHO_N "(cached) $ECHO_C" >&6
12594 else
12595 ac_check_lib_save_LIBS=$LIBS
12596 LIBS="-lXpm -lX11 $LIBS"
12597 cat >conftest.$ac_ext <<_ACEOF
12598 /* confdefs.h. */
12599 _ACEOF
12600 cat confdefs.h >>conftest.$ac_ext
12601 cat >>conftest.$ac_ext <<_ACEOF
12602 /* end confdefs.h. */
12603
12604 /* Override any GCC internal prototype to avoid an error.
12605 Use char because int might match the return type of a GCC
12606 builtin and then its argument prototype would still apply. */
12607 #ifdef __cplusplus
12608 extern "C"
12609 #endif
12610 char XpmReadFileToPixmap ();
12611 int
12612 main ()
12613 {
12614 return XpmReadFileToPixmap ();
12615 ;
12616 return 0;
12617 }
12618 _ACEOF
12619 rm -f conftest.$ac_objext conftest$ac_exeext
12620 if { (ac_try="$ac_link"
12621 case "(($ac_try" in
12622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12623 *) ac_try_echo=$ac_try;;
12624 esac
12625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12626 (eval "$ac_link") 2>conftest.er1
12627 ac_status=$?
12628 grep -v '^ *+' conftest.er1 >conftest.err
12629 rm -f conftest.er1
12630 cat conftest.err >&5
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); } && {
12633 test -z "$ac_c_werror_flag" ||
12634 test ! -s conftest.err
12635 } && test -s conftest$ac_exeext &&
12636 $as_test_x conftest$ac_exeext; then
12637 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12638 else
12639 echo "$as_me: failed program was:" >&5
12640 sed 's/^/| /' conftest.$ac_ext >&5
12641
12642 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12643 fi
12644
12645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12646 conftest$ac_exeext conftest.$ac_ext
12647 LIBS=$ac_check_lib_save_LIBS
12648 fi
12649 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12650 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12651 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
12652 HAVE_XPM=yes
12653 fi
12654
12655 fi
12656
12657
12658 if test "${HAVE_XPM}" = "yes"; then
12659 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
12660 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
12661 cat >conftest.$ac_ext <<_ACEOF
12662 /* confdefs.h. */
12663 _ACEOF
12664 cat confdefs.h >>conftest.$ac_ext
12665 cat >>conftest.$ac_ext <<_ACEOF
12666 /* end confdefs.h. */
12667 #include "X11/xpm.h"
12668 #ifndef XpmReturnAllocPixels
12669 no_return_alloc_pixels
12670 #endif
12671
12672 _ACEOF
12673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12674 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
12675 HAVE_XPM=no
12676 else
12677 HAVE_XPM=yes
12678 fi
12679 rm -f conftest*
12680
12681
12682 if test "${HAVE_XPM}" = "yes"; then
12683 { echo "$as_me:$LINENO: result: yes" >&5
12684 echo "${ECHO_T}yes" >&6; }
12685 else
12686 { echo "$as_me:$LINENO: result: no" >&5
12687 echo "${ECHO_T}no" >&6; }
12688 fi
12689 fi
12690 fi
12691
12692 if test "${HAVE_XPM}" = "yes"; then
12693
12694 cat >>confdefs.h <<\_ACEOF
12695 #define HAVE_XPM 1
12696 _ACEOF
12697
12698 fi
12699 fi
12700
12701 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12702 HAVE_JPEG=no
12703 if test "${HAVE_X11}" = "yes"; then
12704 if test "${with_jpeg}" != "no"; then
12705 if test "${ac_cv_header_jerror_h+set}" = set; then
12706 { echo "$as_me:$LINENO: checking for jerror.h" >&5
12707 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
12708 if test "${ac_cv_header_jerror_h+set}" = set; then
12709 echo $ECHO_N "(cached) $ECHO_C" >&6
12710 fi
12711 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12712 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
12713 else
12714 # Is the header compilable?
12715 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
12716 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
12717 cat >conftest.$ac_ext <<_ACEOF
12718 /* confdefs.h. */
12719 _ACEOF
12720 cat confdefs.h >>conftest.$ac_ext
12721 cat >>conftest.$ac_ext <<_ACEOF
12722 /* end confdefs.h. */
12723 $ac_includes_default
12724 #include <jerror.h>
12725 _ACEOF
12726 rm -f conftest.$ac_objext
12727 if { (ac_try="$ac_compile"
12728 case "(($ac_try" in
12729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12730 *) ac_try_echo=$ac_try;;
12731 esac
12732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12733 (eval "$ac_compile") 2>conftest.er1
12734 ac_status=$?
12735 grep -v '^ *+' conftest.er1 >conftest.err
12736 rm -f conftest.er1
12737 cat conftest.err >&5
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); } && {
12740 test -z "$ac_c_werror_flag" ||
12741 test ! -s conftest.err
12742 } && test -s conftest.$ac_objext; then
12743 ac_header_compiler=yes
12744 else
12745 echo "$as_me: failed program was:" >&5
12746 sed 's/^/| /' conftest.$ac_ext >&5
12747
12748 ac_header_compiler=no
12749 fi
12750
12751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12752 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12753 echo "${ECHO_T}$ac_header_compiler" >&6; }
12754
12755 # Is the header present?
12756 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
12757 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
12758 cat >conftest.$ac_ext <<_ACEOF
12759 /* confdefs.h. */
12760 _ACEOF
12761 cat confdefs.h >>conftest.$ac_ext
12762 cat >>conftest.$ac_ext <<_ACEOF
12763 /* end confdefs.h. */
12764 #include <jerror.h>
12765 _ACEOF
12766 if { (ac_try="$ac_cpp conftest.$ac_ext"
12767 case "(($ac_try" in
12768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12769 *) ac_try_echo=$ac_try;;
12770 esac
12771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12773 ac_status=$?
12774 grep -v '^ *+' conftest.er1 >conftest.err
12775 rm -f conftest.er1
12776 cat conftest.err >&5
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); } >/dev/null && {
12779 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12780 test ! -s conftest.err
12781 }; then
12782 ac_header_preproc=yes
12783 else
12784 echo "$as_me: failed program was:" >&5
12785 sed 's/^/| /' conftest.$ac_ext >&5
12786
12787 ac_header_preproc=no
12788 fi
12789
12790 rm -f conftest.err conftest.$ac_ext
12791 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12792 echo "${ECHO_T}$ac_header_preproc" >&6; }
12793
12794 # So? What about this header?
12795 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12796 yes:no: )
12797 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
12798 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12799 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
12800 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
12801 ac_header_preproc=yes
12802 ;;
12803 no:yes:* )
12804 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
12805 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
12806 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
12807 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
12808 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
12809 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
12810 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
12811 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
12812 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
12813 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
12814 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
12815 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
12816
12817 ;;
12818 esac
12819 { echo "$as_me:$LINENO: checking for jerror.h" >&5
12820 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
12821 if test "${ac_cv_header_jerror_h+set}" = set; then
12822 echo $ECHO_N "(cached) $ECHO_C" >&6
12823 else
12824 ac_cv_header_jerror_h=$ac_header_preproc
12825 fi
12826 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12827 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
12828
12829 fi
12830 if test $ac_cv_header_jerror_h = yes; then
12831 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
12832 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
12833 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
12834 echo $ECHO_N "(cached) $ECHO_C" >&6
12835 else
12836 ac_check_lib_save_LIBS=$LIBS
12837 LIBS="-ljpeg $LIBS"
12838 cat >conftest.$ac_ext <<_ACEOF
12839 /* confdefs.h. */
12840 _ACEOF
12841 cat confdefs.h >>conftest.$ac_ext
12842 cat >>conftest.$ac_ext <<_ACEOF
12843 /* end confdefs.h. */
12844
12845 /* Override any GCC internal prototype to avoid an error.
12846 Use char because int might match the return type of a GCC
12847 builtin and then its argument prototype would still apply. */
12848 #ifdef __cplusplus
12849 extern "C"
12850 #endif
12851 char jpeg_destroy_compress ();
12852 int
12853 main ()
12854 {
12855 return jpeg_destroy_compress ();
12856 ;
12857 return 0;
12858 }
12859 _ACEOF
12860 rm -f conftest.$ac_objext conftest$ac_exeext
12861 if { (ac_try="$ac_link"
12862 case "(($ac_try" in
12863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12864 *) ac_try_echo=$ac_try;;
12865 esac
12866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12867 (eval "$ac_link") 2>conftest.er1
12868 ac_status=$?
12869 grep -v '^ *+' conftest.er1 >conftest.err
12870 rm -f conftest.er1
12871 cat conftest.err >&5
12872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873 (exit $ac_status); } && {
12874 test -z "$ac_c_werror_flag" ||
12875 test ! -s conftest.err
12876 } && test -s conftest$ac_exeext &&
12877 $as_test_x conftest$ac_exeext; then
12878 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12879 else
12880 echo "$as_me: failed program was:" >&5
12881 sed 's/^/| /' conftest.$ac_ext >&5
12882
12883 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12884 fi
12885
12886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12887 conftest$ac_exeext conftest.$ac_ext
12888 LIBS=$ac_check_lib_save_LIBS
12889 fi
12890 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12891 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12892 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
12893 HAVE_JPEG=yes
12894 fi
12895
12896 fi
12897
12898
12899 fi
12900
12901
12902 if test "${HAVE_JPEG}" = "yes"; then
12903 cat >>confdefs.h <<\_ACEOF
12904 #define HAVE_JPEG 1
12905 _ACEOF
12906
12907 cat >conftest.$ac_ext <<_ACEOF
12908 /* confdefs.h. */
12909 _ACEOF
12910 cat confdefs.h >>conftest.$ac_ext
12911 cat >>conftest.$ac_ext <<_ACEOF
12912 /* end confdefs.h. */
12913 #include <jpeglib.h>
12914 version=JPEG_LIB_VERSION
12915
12916 _ACEOF
12917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12918 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
12919 cat >>confdefs.h <<\_ACEOF
12920 #define HAVE_JPEG 1
12921 _ACEOF
12922
12923 else
12924 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
12925 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12926 HAVE_JPEG=no
12927 fi
12928 rm -f conftest*
12929
12930 fi
12931 fi
12932
12933 ### Use -lpng if available, unless `--with-png=no'.
12934 HAVE_PNG=no
12935 if test "${HAVE_X11}" = "yes"; then
12936 if test "${with_png}" != "no"; then
12937 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12938 # in /usr/include/libpng.
12939
12940
12941 for ac_header in png.h libpng/png.h
12942 do
12943 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12945 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12948 echo $ECHO_N "(cached) $ECHO_C" >&6
12949 fi
12950 ac_res=`eval echo '${'$as_ac_Header'}'`
12951 { echo "$as_me:$LINENO: result: $ac_res" >&5
12952 echo "${ECHO_T}$ac_res" >&6; }
12953 else
12954 # Is the header compilable?
12955 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12956 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12957 cat >conftest.$ac_ext <<_ACEOF
12958 /* confdefs.h. */
12959 _ACEOF
12960 cat confdefs.h >>conftest.$ac_ext
12961 cat >>conftest.$ac_ext <<_ACEOF
12962 /* end confdefs.h. */
12963 $ac_includes_default
12964 #include <$ac_header>
12965 _ACEOF
12966 rm -f conftest.$ac_objext
12967 if { (ac_try="$ac_compile"
12968 case "(($ac_try" in
12969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12970 *) ac_try_echo=$ac_try;;
12971 esac
12972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12973 (eval "$ac_compile") 2>conftest.er1
12974 ac_status=$?
12975 grep -v '^ *+' conftest.er1 >conftest.err
12976 rm -f conftest.er1
12977 cat conftest.err >&5
12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); } && {
12980 test -z "$ac_c_werror_flag" ||
12981 test ! -s conftest.err
12982 } && test -s conftest.$ac_objext; then
12983 ac_header_compiler=yes
12984 else
12985 echo "$as_me: failed program was:" >&5
12986 sed 's/^/| /' conftest.$ac_ext >&5
12987
12988 ac_header_compiler=no
12989 fi
12990
12991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12992 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12993 echo "${ECHO_T}$ac_header_compiler" >&6; }
12994
12995 # Is the header present?
12996 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12997 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12998 cat >conftest.$ac_ext <<_ACEOF
12999 /* confdefs.h. */
13000 _ACEOF
13001 cat confdefs.h >>conftest.$ac_ext
13002 cat >>conftest.$ac_ext <<_ACEOF
13003 /* end confdefs.h. */
13004 #include <$ac_header>
13005 _ACEOF
13006 if { (ac_try="$ac_cpp conftest.$ac_ext"
13007 case "(($ac_try" in
13008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13009 *) ac_try_echo=$ac_try;;
13010 esac
13011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13012 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13013 ac_status=$?
13014 grep -v '^ *+' conftest.er1 >conftest.err
13015 rm -f conftest.er1
13016 cat conftest.err >&5
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); } >/dev/null && {
13019 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13020 test ! -s conftest.err
13021 }; then
13022 ac_header_preproc=yes
13023 else
13024 echo "$as_me: failed program was:" >&5
13025 sed 's/^/| /' conftest.$ac_ext >&5
13026
13027 ac_header_preproc=no
13028 fi
13029
13030 rm -f conftest.err conftest.$ac_ext
13031 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13032 echo "${ECHO_T}$ac_header_preproc" >&6; }
13033
13034 # So? What about this header?
13035 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13036 yes:no: )
13037 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13038 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13040 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13041 ac_header_preproc=yes
13042 ;;
13043 no:yes:* )
13044 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13045 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13046 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13047 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13048 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13049 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13050 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13051 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13053 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13054 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13055 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13056
13057 ;;
13058 esac
13059 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13062 echo $ECHO_N "(cached) $ECHO_C" >&6
13063 else
13064 eval "$as_ac_Header=\$ac_header_preproc"
13065 fi
13066 ac_res=`eval echo '${'$as_ac_Header'}'`
13067 { echo "$as_me:$LINENO: result: $ac_res" >&5
13068 echo "${ECHO_T}$ac_res" >&6; }
13069
13070 fi
13071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13072 cat >>confdefs.h <<_ACEOF
13073 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13074 _ACEOF
13075
13076 fi
13077
13078 done
13079
13080 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13081 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13082 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13083 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13084 echo $ECHO_N "(cached) $ECHO_C" >&6
13085 else
13086 ac_check_lib_save_LIBS=$LIBS
13087 LIBS="-lpng -lz -lm $LIBS"
13088 cat >conftest.$ac_ext <<_ACEOF
13089 /* confdefs.h. */
13090 _ACEOF
13091 cat confdefs.h >>conftest.$ac_ext
13092 cat >>conftest.$ac_ext <<_ACEOF
13093 /* end confdefs.h. */
13094
13095 /* Override any GCC internal prototype to avoid an error.
13096 Use char because int might match the return type of a GCC
13097 builtin and then its argument prototype would still apply. */
13098 #ifdef __cplusplus
13099 extern "C"
13100 #endif
13101 char png_get_channels ();
13102 int
13103 main ()
13104 {
13105 return png_get_channels ();
13106 ;
13107 return 0;
13108 }
13109 _ACEOF
13110 rm -f conftest.$ac_objext conftest$ac_exeext
13111 if { (ac_try="$ac_link"
13112 case "(($ac_try" in
13113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13114 *) ac_try_echo=$ac_try;;
13115 esac
13116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13117 (eval "$ac_link") 2>conftest.er1
13118 ac_status=$?
13119 grep -v '^ *+' conftest.er1 >conftest.err
13120 rm -f conftest.er1
13121 cat conftest.err >&5
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); } && {
13124 test -z "$ac_c_werror_flag" ||
13125 test ! -s conftest.err
13126 } && test -s conftest$ac_exeext &&
13127 $as_test_x conftest$ac_exeext; then
13128 ac_cv_lib_png_png_get_channels=yes
13129 else
13130 echo "$as_me: failed program was:" >&5
13131 sed 's/^/| /' conftest.$ac_ext >&5
13132
13133 ac_cv_lib_png_png_get_channels=no
13134 fi
13135
13136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13137 conftest$ac_exeext conftest.$ac_ext
13138 LIBS=$ac_check_lib_save_LIBS
13139 fi
13140 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13141 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13142 if test $ac_cv_lib_png_png_get_channels = yes; then
13143 HAVE_PNG=yes
13144 fi
13145
13146 fi
13147 fi
13148
13149 if test "${HAVE_PNG}" = "yes"; then
13150
13151 cat >>confdefs.h <<\_ACEOF
13152 #define HAVE_PNG 1
13153 _ACEOF
13154
13155 fi
13156 fi
13157
13158 ### Use -ltiff if available, unless `--with-tiff=no'.
13159 HAVE_TIFF=no
13160 if test "${HAVE_X11}" = "yes"; then
13161 if test "${with_tiff}" != "no"; then
13162 if test "${ac_cv_header_tiffio_h+set}" = set; then
13163 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13164 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13165 if test "${ac_cv_header_tiffio_h+set}" = set; then
13166 echo $ECHO_N "(cached) $ECHO_C" >&6
13167 fi
13168 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13169 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13170 else
13171 # Is the header compilable?
13172 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13173 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13174 cat >conftest.$ac_ext <<_ACEOF
13175 /* confdefs.h. */
13176 _ACEOF
13177 cat confdefs.h >>conftest.$ac_ext
13178 cat >>conftest.$ac_ext <<_ACEOF
13179 /* end confdefs.h. */
13180 $ac_includes_default
13181 #include <tiffio.h>
13182 _ACEOF
13183 rm -f conftest.$ac_objext
13184 if { (ac_try="$ac_compile"
13185 case "(($ac_try" in
13186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13187 *) ac_try_echo=$ac_try;;
13188 esac
13189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13190 (eval "$ac_compile") 2>conftest.er1
13191 ac_status=$?
13192 grep -v '^ *+' conftest.er1 >conftest.err
13193 rm -f conftest.er1
13194 cat conftest.err >&5
13195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196 (exit $ac_status); } && {
13197 test -z "$ac_c_werror_flag" ||
13198 test ! -s conftest.err
13199 } && test -s conftest.$ac_objext; then
13200 ac_header_compiler=yes
13201 else
13202 echo "$as_me: failed program was:" >&5
13203 sed 's/^/| /' conftest.$ac_ext >&5
13204
13205 ac_header_compiler=no
13206 fi
13207
13208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13209 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13210 echo "${ECHO_T}$ac_header_compiler" >&6; }
13211
13212 # Is the header present?
13213 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13214 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13215 cat >conftest.$ac_ext <<_ACEOF
13216 /* confdefs.h. */
13217 _ACEOF
13218 cat confdefs.h >>conftest.$ac_ext
13219 cat >>conftest.$ac_ext <<_ACEOF
13220 /* end confdefs.h. */
13221 #include <tiffio.h>
13222 _ACEOF
13223 if { (ac_try="$ac_cpp conftest.$ac_ext"
13224 case "(($ac_try" in
13225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13226 *) ac_try_echo=$ac_try;;
13227 esac
13228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13229 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13230 ac_status=$?
13231 grep -v '^ *+' conftest.er1 >conftest.err
13232 rm -f conftest.er1
13233 cat conftest.err >&5
13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); } >/dev/null && {
13236 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13237 test ! -s conftest.err
13238 }; then
13239 ac_header_preproc=yes
13240 else
13241 echo "$as_me: failed program was:" >&5
13242 sed 's/^/| /' conftest.$ac_ext >&5
13243
13244 ac_header_preproc=no
13245 fi
13246
13247 rm -f conftest.err conftest.$ac_ext
13248 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13249 echo "${ECHO_T}$ac_header_preproc" >&6; }
13250
13251 # So? What about this header?
13252 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13253 yes:no: )
13254 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13255 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13256 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13257 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13258 ac_header_preproc=yes
13259 ;;
13260 no:yes:* )
13261 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13262 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13263 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13264 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13265 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13266 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13267 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13268 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13269 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13270 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13271 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13272 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13273
13274 ;;
13275 esac
13276 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13277 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13278 if test "${ac_cv_header_tiffio_h+set}" = set; then
13279 echo $ECHO_N "(cached) $ECHO_C" >&6
13280 else
13281 ac_cv_header_tiffio_h=$ac_header_preproc
13282 fi
13283 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13284 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13285
13286 fi
13287 if test $ac_cv_header_tiffio_h = yes; then
13288 tifflibs="-lz -lm"
13289 # At least one tiff package requires the jpeg library.
13290 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13291 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13292 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13293 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13294 echo $ECHO_N "(cached) $ECHO_C" >&6
13295 else
13296 ac_check_lib_save_LIBS=$LIBS
13297 LIBS="-ltiff $tifflibs $LIBS"
13298 cat >conftest.$ac_ext <<_ACEOF
13299 /* confdefs.h. */
13300 _ACEOF
13301 cat confdefs.h >>conftest.$ac_ext
13302 cat >>conftest.$ac_ext <<_ACEOF
13303 /* end confdefs.h. */
13304
13305 /* Override any GCC internal prototype to avoid an error.
13306 Use char because int might match the return type of a GCC
13307 builtin and then its argument prototype would still apply. */
13308 #ifdef __cplusplus
13309 extern "C"
13310 #endif
13311 char TIFFGetVersion ();
13312 int
13313 main ()
13314 {
13315 return TIFFGetVersion ();
13316 ;
13317 return 0;
13318 }
13319 _ACEOF
13320 rm -f conftest.$ac_objext conftest$ac_exeext
13321 if { (ac_try="$ac_link"
13322 case "(($ac_try" in
13323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13324 *) ac_try_echo=$ac_try;;
13325 esac
13326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13327 (eval "$ac_link") 2>conftest.er1
13328 ac_status=$?
13329 grep -v '^ *+' conftest.er1 >conftest.err
13330 rm -f conftest.er1
13331 cat conftest.err >&5
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); } && {
13334 test -z "$ac_c_werror_flag" ||
13335 test ! -s conftest.err
13336 } && test -s conftest$ac_exeext &&
13337 $as_test_x conftest$ac_exeext; then
13338 ac_cv_lib_tiff_TIFFGetVersion=yes
13339 else
13340 echo "$as_me: failed program was:" >&5
13341 sed 's/^/| /' conftest.$ac_ext >&5
13342
13343 ac_cv_lib_tiff_TIFFGetVersion=no
13344 fi
13345
13346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13347 conftest$ac_exeext conftest.$ac_ext
13348 LIBS=$ac_check_lib_save_LIBS
13349 fi
13350 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13351 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13352 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13353 HAVE_TIFF=yes
13354 fi
13355
13356 fi
13357
13358
13359 fi
13360
13361 if test "${HAVE_TIFF}" = "yes"; then
13362
13363 cat >>confdefs.h <<\_ACEOF
13364 #define HAVE_TIFF 1
13365 _ACEOF
13366
13367 fi
13368 fi
13369
13370 ### Use -lgif if available, unless `--with-gif=no'.
13371 HAVE_GIF=no
13372 if test "${HAVE_X11}" = "yes"; then
13373 if test "${with_gif}" != "no"; then
13374 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13375 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13376 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13377 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13378 echo $ECHO_N "(cached) $ECHO_C" >&6
13379 fi
13380 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13381 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13382 else
13383 # Is the header compilable?
13384 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13385 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13386 cat >conftest.$ac_ext <<_ACEOF
13387 /* confdefs.h. */
13388 _ACEOF
13389 cat confdefs.h >>conftest.$ac_ext
13390 cat >>conftest.$ac_ext <<_ACEOF
13391 /* end confdefs.h. */
13392 $ac_includes_default
13393 #include <gif_lib.h>
13394 _ACEOF
13395 rm -f conftest.$ac_objext
13396 if { (ac_try="$ac_compile"
13397 case "(($ac_try" in
13398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13399 *) ac_try_echo=$ac_try;;
13400 esac
13401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13402 (eval "$ac_compile") 2>conftest.er1
13403 ac_status=$?
13404 grep -v '^ *+' conftest.er1 >conftest.err
13405 rm -f conftest.er1
13406 cat conftest.err >&5
13407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408 (exit $ac_status); } && {
13409 test -z "$ac_c_werror_flag" ||
13410 test ! -s conftest.err
13411 } && test -s conftest.$ac_objext; then
13412 ac_header_compiler=yes
13413 else
13414 echo "$as_me: failed program was:" >&5
13415 sed 's/^/| /' conftest.$ac_ext >&5
13416
13417 ac_header_compiler=no
13418 fi
13419
13420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13421 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13422 echo "${ECHO_T}$ac_header_compiler" >&6; }
13423
13424 # Is the header present?
13425 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13426 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13427 cat >conftest.$ac_ext <<_ACEOF
13428 /* confdefs.h. */
13429 _ACEOF
13430 cat confdefs.h >>conftest.$ac_ext
13431 cat >>conftest.$ac_ext <<_ACEOF
13432 /* end confdefs.h. */
13433 #include <gif_lib.h>
13434 _ACEOF
13435 if { (ac_try="$ac_cpp conftest.$ac_ext"
13436 case "(($ac_try" in
13437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13438 *) ac_try_echo=$ac_try;;
13439 esac
13440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13442 ac_status=$?
13443 grep -v '^ *+' conftest.er1 >conftest.err
13444 rm -f conftest.er1
13445 cat conftest.err >&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); } >/dev/null && {
13448 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13449 test ! -s conftest.err
13450 }; then
13451 ac_header_preproc=yes
13452 else
13453 echo "$as_me: failed program was:" >&5
13454 sed 's/^/| /' conftest.$ac_ext >&5
13455
13456 ac_header_preproc=no
13457 fi
13458
13459 rm -f conftest.err conftest.$ac_ext
13460 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13461 echo "${ECHO_T}$ac_header_preproc" >&6; }
13462
13463 # So? What about this header?
13464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13465 yes:no: )
13466 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13467 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13468 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13469 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13470 ac_header_preproc=yes
13471 ;;
13472 no:yes:* )
13473 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13474 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13475 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13476 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13477 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13478 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13479 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13480 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13481 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13482 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13483 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13484 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13485
13486 ;;
13487 esac
13488 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13489 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13490 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13491 echo $ECHO_N "(cached) $ECHO_C" >&6
13492 else
13493 ac_cv_header_gif_lib_h=$ac_header_preproc
13494 fi
13495 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13496 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13497
13498 fi
13499 if test $ac_cv_header_gif_lib_h = yes; then
13500 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13501 # Earlier versions can crash Emacs.
13502 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13503 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
13504 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13505 echo $ECHO_N "(cached) $ECHO_C" >&6
13506 else
13507 ac_check_lib_save_LIBS=$LIBS
13508 LIBS="-lungif $LIBS"
13509 cat >conftest.$ac_ext <<_ACEOF
13510 /* confdefs.h. */
13511 _ACEOF
13512 cat confdefs.h >>conftest.$ac_ext
13513 cat >>conftest.$ac_ext <<_ACEOF
13514 /* end confdefs.h. */
13515
13516 /* Override any GCC internal prototype to avoid an error.
13517 Use char because int might match the return type of a GCC
13518 builtin and then its argument prototype would still apply. */
13519 #ifdef __cplusplus
13520 extern "C"
13521 #endif
13522 char EGifPutExtensionLast ();
13523 int
13524 main ()
13525 {
13526 return EGifPutExtensionLast ();
13527 ;
13528 return 0;
13529 }
13530 _ACEOF
13531 rm -f conftest.$ac_objext conftest$ac_exeext
13532 if { (ac_try="$ac_link"
13533 case "(($ac_try" in
13534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13535 *) ac_try_echo=$ac_try;;
13536 esac
13537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13538 (eval "$ac_link") 2>conftest.er1
13539 ac_status=$?
13540 grep -v '^ *+' conftest.er1 >conftest.err
13541 rm -f conftest.er1
13542 cat conftest.err >&5
13543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544 (exit $ac_status); } && {
13545 test -z "$ac_c_werror_flag" ||
13546 test ! -s conftest.err
13547 } && test -s conftest$ac_exeext &&
13548 $as_test_x conftest$ac_exeext; then
13549 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13550 else
13551 echo "$as_me: failed program was:" >&5
13552 sed 's/^/| /' conftest.$ac_ext >&5
13553
13554 ac_cv_lib_ungif_EGifPutExtensionLast=no
13555 fi
13556
13557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13558 conftest$ac_exeext conftest.$ac_ext
13559 LIBS=$ac_check_lib_save_LIBS
13560 fi
13561 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13562 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13563 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13564 HAVE_GIF=yes
13565 fi
13566
13567 fi
13568
13569
13570 fi
13571
13572 if test "${HAVE_GIF}" = "yes"; then
13573
13574 cat >>confdefs.h <<\_ACEOF
13575 #define HAVE_GIF 1
13576 _ACEOF
13577
13578 fi
13579 fi
13580
13581 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13582 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13583 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13584 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13585 echo $ECHO_N "(cached) $ECHO_C" >&6
13586 fi
13587 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13588 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13589 else
13590 # Is the header compilable?
13591 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13592 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
13593 cat >conftest.$ac_ext <<_ACEOF
13594 /* confdefs.h. */
13595 _ACEOF
13596 cat confdefs.h >>conftest.$ac_ext
13597 cat >>conftest.$ac_ext <<_ACEOF
13598 /* end confdefs.h. */
13599 $ac_includes_default
13600 #include <malloc/malloc.h>
13601 _ACEOF
13602 rm -f conftest.$ac_objext
13603 if { (ac_try="$ac_compile"
13604 case "(($ac_try" in
13605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13606 *) ac_try_echo=$ac_try;;
13607 esac
13608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13609 (eval "$ac_compile") 2>conftest.er1
13610 ac_status=$?
13611 grep -v '^ *+' conftest.er1 >conftest.err
13612 rm -f conftest.er1
13613 cat conftest.err >&5
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); } && {
13616 test -z "$ac_c_werror_flag" ||
13617 test ! -s conftest.err
13618 } && test -s conftest.$ac_objext; then
13619 ac_header_compiler=yes
13620 else
13621 echo "$as_me: failed program was:" >&5
13622 sed 's/^/| /' conftest.$ac_ext >&5
13623
13624 ac_header_compiler=no
13625 fi
13626
13627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13628 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13629 echo "${ECHO_T}$ac_header_compiler" >&6; }
13630
13631 # Is the header present?
13632 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13633 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
13634 cat >conftest.$ac_ext <<_ACEOF
13635 /* confdefs.h. */
13636 _ACEOF
13637 cat confdefs.h >>conftest.$ac_ext
13638 cat >>conftest.$ac_ext <<_ACEOF
13639 /* end confdefs.h. */
13640 #include <malloc/malloc.h>
13641 _ACEOF
13642 if { (ac_try="$ac_cpp conftest.$ac_ext"
13643 case "(($ac_try" in
13644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13645 *) ac_try_echo=$ac_try;;
13646 esac
13647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13649 ac_status=$?
13650 grep -v '^ *+' conftest.er1 >conftest.err
13651 rm -f conftest.er1
13652 cat conftest.err >&5
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); } >/dev/null && {
13655 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13656 test ! -s conftest.err
13657 }; then
13658 ac_header_preproc=yes
13659 else
13660 echo "$as_me: failed program was:" >&5
13661 sed 's/^/| /' conftest.$ac_ext >&5
13662
13663 ac_header_preproc=no
13664 fi
13665
13666 rm -f conftest.err conftest.$ac_ext
13667 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13668 echo "${ECHO_T}$ac_header_preproc" >&6; }
13669
13670 # So? What about this header?
13671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13672 yes:no: )
13673 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13674 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13675 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
13676 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
13677 ac_header_preproc=yes
13678 ;;
13679 no:yes:* )
13680 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13681 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13682 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13683 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13684 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13685 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13686 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13687 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13688 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
13689 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
13690 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13691 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13692
13693 ;;
13694 esac
13695 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13696 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13697 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13698 echo $ECHO_N "(cached) $ECHO_C" >&6
13699 else
13700 ac_cv_header_malloc_malloc_h=$ac_header_preproc
13701 fi
13702 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13703 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13704
13705 fi
13706 if test $ac_cv_header_malloc_malloc_h = yes; then
13707
13708 cat >>confdefs.h <<\_ACEOF
13709 #define HAVE_MALLOC_MALLOC_H 1
13710 _ACEOF
13711
13712 fi
13713
13714
13715
13716 ### Use Mac OS X Carbon API to implement GUI.
13717 if test "${HAVE_CARBON}" = "yes"; then
13718
13719 cat >>confdefs.h <<\_ACEOF
13720 #define HAVE_CARBON 1
13721 _ACEOF
13722
13723 ## Specify the install directory
13724 carbon_appdir=
13725 if test "${carbon_appdir_x}" != ""; then
13726 case ${carbon_appdir_x} in
13727 y | ye | yes) carbon_appdir=/Applications ;;
13728 * ) carbon_appdir=${carbon_appdir_x} ;;
13729 esac
13730 fi
13731 # We also have mouse menus.
13732 HAVE_MENUS=yes
13733 fi
13734
13735 ### Use session management (-lSM -lICE) if available
13736 HAVE_X_SM=no
13737 if test "${HAVE_X11}" = "yes"; then
13738 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13739 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13740 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
13741 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13742 echo $ECHO_N "(cached) $ECHO_C" >&6
13743 fi
13744 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13745 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
13746 else
13747 # Is the header compilable?
13748 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
13749 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
13750 cat >conftest.$ac_ext <<_ACEOF
13751 /* confdefs.h. */
13752 _ACEOF
13753 cat confdefs.h >>conftest.$ac_ext
13754 cat >>conftest.$ac_ext <<_ACEOF
13755 /* end confdefs.h. */
13756 $ac_includes_default
13757 #include <X11/SM/SMlib.h>
13758 _ACEOF
13759 rm -f conftest.$ac_objext
13760 if { (ac_try="$ac_compile"
13761 case "(($ac_try" in
13762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13763 *) ac_try_echo=$ac_try;;
13764 esac
13765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13766 (eval "$ac_compile") 2>conftest.er1
13767 ac_status=$?
13768 grep -v '^ *+' conftest.er1 >conftest.err
13769 rm -f conftest.er1
13770 cat conftest.err >&5
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); } && {
13773 test -z "$ac_c_werror_flag" ||
13774 test ! -s conftest.err
13775 } && test -s conftest.$ac_objext; then
13776 ac_header_compiler=yes
13777 else
13778 echo "$as_me: failed program was:" >&5
13779 sed 's/^/| /' conftest.$ac_ext >&5
13780
13781 ac_header_compiler=no
13782 fi
13783
13784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13785 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13786 echo "${ECHO_T}$ac_header_compiler" >&6; }
13787
13788 # Is the header present?
13789 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
13790 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
13791 cat >conftest.$ac_ext <<_ACEOF
13792 /* confdefs.h. */
13793 _ACEOF
13794 cat confdefs.h >>conftest.$ac_ext
13795 cat >>conftest.$ac_ext <<_ACEOF
13796 /* end confdefs.h. */
13797 #include <X11/SM/SMlib.h>
13798 _ACEOF
13799 if { (ac_try="$ac_cpp conftest.$ac_ext"
13800 case "(($ac_try" in
13801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13802 *) ac_try_echo=$ac_try;;
13803 esac
13804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13806 ac_status=$?
13807 grep -v '^ *+' conftest.er1 >conftest.err
13808 rm -f conftest.er1
13809 cat conftest.err >&5
13810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811 (exit $ac_status); } >/dev/null && {
13812 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13813 test ! -s conftest.err
13814 }; then
13815 ac_header_preproc=yes
13816 else
13817 echo "$as_me: failed program was:" >&5
13818 sed 's/^/| /' conftest.$ac_ext >&5
13819
13820 ac_header_preproc=no
13821 fi
13822
13823 rm -f conftest.err conftest.$ac_ext
13824 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13825 echo "${ECHO_T}$ac_header_preproc" >&6; }
13826
13827 # So? What about this header?
13828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13829 yes:no: )
13830 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13831 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13832 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
13833 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
13834 ac_header_preproc=yes
13835 ;;
13836 no:yes:* )
13837 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
13838 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
13839 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
13840 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
13841 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
13842 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
13843 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
13844 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13845 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
13846 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
13847 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
13848 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
13849
13850 ;;
13851 esac
13852 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13853 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
13854 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13855 echo $ECHO_N "(cached) $ECHO_C" >&6
13856 else
13857 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
13858 fi
13859 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13860 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
13861
13862 fi
13863 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
13864 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
13865 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
13866 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
13867 echo $ECHO_N "(cached) $ECHO_C" >&6
13868 else
13869 ac_check_lib_save_LIBS=$LIBS
13870 LIBS="-lSM -lICE $LIBS"
13871 cat >conftest.$ac_ext <<_ACEOF
13872 /* confdefs.h. */
13873 _ACEOF
13874 cat confdefs.h >>conftest.$ac_ext
13875 cat >>conftest.$ac_ext <<_ACEOF
13876 /* end confdefs.h. */
13877
13878 /* Override any GCC internal prototype to avoid an error.
13879 Use char because int might match the return type of a GCC
13880 builtin and then its argument prototype would still apply. */
13881 #ifdef __cplusplus
13882 extern "C"
13883 #endif
13884 char SmcOpenConnection ();
13885 int
13886 main ()
13887 {
13888 return SmcOpenConnection ();
13889 ;
13890 return 0;
13891 }
13892 _ACEOF
13893 rm -f conftest.$ac_objext conftest$ac_exeext
13894 if { (ac_try="$ac_link"
13895 case "(($ac_try" in
13896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13897 *) ac_try_echo=$ac_try;;
13898 esac
13899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13900 (eval "$ac_link") 2>conftest.er1
13901 ac_status=$?
13902 grep -v '^ *+' conftest.er1 >conftest.err
13903 rm -f conftest.er1
13904 cat conftest.err >&5
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); } && {
13907 test -z "$ac_c_werror_flag" ||
13908 test ! -s conftest.err
13909 } && test -s conftest$ac_exeext &&
13910 $as_test_x conftest$ac_exeext; then
13911 ac_cv_lib_SM_SmcOpenConnection=yes
13912 else
13913 echo "$as_me: failed program was:" >&5
13914 sed 's/^/| /' conftest.$ac_ext >&5
13915
13916 ac_cv_lib_SM_SmcOpenConnection=no
13917 fi
13918
13919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13920 conftest$ac_exeext conftest.$ac_ext
13921 LIBS=$ac_check_lib_save_LIBS
13922 fi
13923 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13924 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13925 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
13926 HAVE_X_SM=yes
13927 fi
13928
13929 fi
13930
13931
13932
13933 if test "${HAVE_X_SM}" = "yes"; then
13934
13935 cat >>confdefs.h <<\_ACEOF
13936 #define HAVE_X_SM 1
13937 _ACEOF
13938
13939 case "$LIBS" in
13940 *-lSM*) ;;
13941 *) LIBS="-lSM -lICE $LIBS" ;;
13942 esac
13943 fi
13944 fi
13945
13946 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13947 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
13948 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
13949 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
13950 echo $ECHO_N "(cached) $ECHO_C" >&6
13951 else
13952 cat >conftest.$ac_ext <<_ACEOF
13953 /* confdefs.h. */
13954 _ACEOF
13955 cat confdefs.h >>conftest.$ac_ext
13956 cat >>conftest.$ac_ext <<_ACEOF
13957 /* end confdefs.h. */
13958 #include <netdb.h>
13959 int
13960 main ()
13961 {
13962 return h_errno;
13963 ;
13964 return 0;
13965 }
13966 _ACEOF
13967 rm -f conftest.$ac_objext conftest$ac_exeext
13968 if { (ac_try="$ac_link"
13969 case "(($ac_try" in
13970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13971 *) ac_try_echo=$ac_try;;
13972 esac
13973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13974 (eval "$ac_link") 2>conftest.er1
13975 ac_status=$?
13976 grep -v '^ *+' conftest.er1 >conftest.err
13977 rm -f conftest.er1
13978 cat conftest.err >&5
13979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980 (exit $ac_status); } && {
13981 test -z "$ac_c_werror_flag" ||
13982 test ! -s conftest.err
13983 } && test -s conftest$ac_exeext &&
13984 $as_test_x conftest$ac_exeext; then
13985 emacs_cv_netdb_declares_h_errno=yes
13986 else
13987 echo "$as_me: failed program was:" >&5
13988 sed 's/^/| /' conftest.$ac_ext >&5
13989
13990 emacs_cv_netdb_declares_h_errno=no
13991 fi
13992
13993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13994 conftest$ac_exeext conftest.$ac_ext
13995 fi
13996 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
13997 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
13998 if test $emacs_cv_netdb_declares_h_errno = yes; then
13999
14000 cat >>confdefs.h <<\_ACEOF
14001 #define HAVE_H_ERRNO 1
14002 _ACEOF
14003
14004 fi
14005
14006 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14007 # for constant arguments. Useless!
14008 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14009 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14010 if test "${ac_cv_working_alloca_h+set}" = set; then
14011 echo $ECHO_N "(cached) $ECHO_C" >&6
14012 else
14013 cat >conftest.$ac_ext <<_ACEOF
14014 /* confdefs.h. */
14015 _ACEOF
14016 cat confdefs.h >>conftest.$ac_ext
14017 cat >>conftest.$ac_ext <<_ACEOF
14018 /* end confdefs.h. */
14019 #include <alloca.h>
14020 int
14021 main ()
14022 {
14023 char *p = (char *) alloca (2 * sizeof (int));
14024 if (p) return 0;
14025 ;
14026 return 0;
14027 }
14028 _ACEOF
14029 rm -f conftest.$ac_objext conftest$ac_exeext
14030 if { (ac_try="$ac_link"
14031 case "(($ac_try" in
14032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14033 *) ac_try_echo=$ac_try;;
14034 esac
14035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14036 (eval "$ac_link") 2>conftest.er1
14037 ac_status=$?
14038 grep -v '^ *+' conftest.er1 >conftest.err
14039 rm -f conftest.er1
14040 cat conftest.err >&5
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); } && {
14043 test -z "$ac_c_werror_flag" ||
14044 test ! -s conftest.err
14045 } && test -s conftest$ac_exeext &&
14046 $as_test_x conftest$ac_exeext; then
14047 ac_cv_working_alloca_h=yes
14048 else
14049 echo "$as_me: failed program was:" >&5
14050 sed 's/^/| /' conftest.$ac_ext >&5
14051
14052 ac_cv_working_alloca_h=no
14053 fi
14054
14055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14056 conftest$ac_exeext conftest.$ac_ext
14057 fi
14058 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14059 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14060 if test $ac_cv_working_alloca_h = yes; then
14061
14062 cat >>confdefs.h <<\_ACEOF
14063 #define HAVE_ALLOCA_H 1
14064 _ACEOF
14065
14066 fi
14067
14068 { echo "$as_me:$LINENO: checking for alloca" >&5
14069 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14070 if test "${ac_cv_func_alloca_works+set}" = set; then
14071 echo $ECHO_N "(cached) $ECHO_C" >&6
14072 else
14073 cat >conftest.$ac_ext <<_ACEOF
14074 /* confdefs.h. */
14075 _ACEOF
14076 cat confdefs.h >>conftest.$ac_ext
14077 cat >>conftest.$ac_ext <<_ACEOF
14078 /* end confdefs.h. */
14079 #ifdef __GNUC__
14080 # define alloca __builtin_alloca
14081 #else
14082 # ifdef _MSC_VER
14083 # include <malloc.h>
14084 # define alloca _alloca
14085 # else
14086 # ifdef HAVE_ALLOCA_H
14087 # include <alloca.h>
14088 # else
14089 # ifdef _AIX
14090 #pragma alloca
14091 # else
14092 # ifndef alloca /* predefined by HP cc +Olibcalls */
14093 char *alloca ();
14094 # endif
14095 # endif
14096 # endif
14097 # endif
14098 #endif
14099
14100 int
14101 main ()
14102 {
14103 char *p = (char *) alloca (1);
14104 if (p) return 0;
14105 ;
14106 return 0;
14107 }
14108 _ACEOF
14109 rm -f conftest.$ac_objext conftest$ac_exeext
14110 if { (ac_try="$ac_link"
14111 case "(($ac_try" in
14112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14113 *) ac_try_echo=$ac_try;;
14114 esac
14115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14116 (eval "$ac_link") 2>conftest.er1
14117 ac_status=$?
14118 grep -v '^ *+' conftest.er1 >conftest.err
14119 rm -f conftest.er1
14120 cat conftest.err >&5
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); } && {
14123 test -z "$ac_c_werror_flag" ||
14124 test ! -s conftest.err
14125 } && test -s conftest$ac_exeext &&
14126 $as_test_x conftest$ac_exeext; then
14127 ac_cv_func_alloca_works=yes
14128 else
14129 echo "$as_me: failed program was:" >&5
14130 sed 's/^/| /' conftest.$ac_ext >&5
14131
14132 ac_cv_func_alloca_works=no
14133 fi
14134
14135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14136 conftest$ac_exeext conftest.$ac_ext
14137 fi
14138 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14139 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14140
14141 if test $ac_cv_func_alloca_works = yes; then
14142
14143 cat >>confdefs.h <<\_ACEOF
14144 #define HAVE_ALLOCA 1
14145 _ACEOF
14146
14147 else
14148 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14149 # that cause trouble. Some versions do not even contain alloca or
14150 # contain a buggy version. If you still want to use their alloca,
14151 # use ar to extract alloca.o from them instead of compiling alloca.c.
14152
14153 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14154
14155 cat >>confdefs.h <<\_ACEOF
14156 #define C_ALLOCA 1
14157 _ACEOF
14158
14159
14160 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14161 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
14162 if test "${ac_cv_os_cray+set}" = set; then
14163 echo $ECHO_N "(cached) $ECHO_C" >&6
14164 else
14165 cat >conftest.$ac_ext <<_ACEOF
14166 /* confdefs.h. */
14167 _ACEOF
14168 cat confdefs.h >>conftest.$ac_ext
14169 cat >>conftest.$ac_ext <<_ACEOF
14170 /* end confdefs.h. */
14171 #if defined CRAY && ! defined CRAY2
14172 webecray
14173 #else
14174 wenotbecray
14175 #endif
14176
14177 _ACEOF
14178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14179 $EGREP "webecray" >/dev/null 2>&1; then
14180 ac_cv_os_cray=yes
14181 else
14182 ac_cv_os_cray=no
14183 fi
14184 rm -f conftest*
14185
14186 fi
14187 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14188 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14189 if test $ac_cv_os_cray = yes; then
14190 for ac_func in _getb67 GETB67 getb67; do
14191 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14192 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14193 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14194 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14195 echo $ECHO_N "(cached) $ECHO_C" >&6
14196 else
14197 cat >conftest.$ac_ext <<_ACEOF
14198 /* confdefs.h. */
14199 _ACEOF
14200 cat confdefs.h >>conftest.$ac_ext
14201 cat >>conftest.$ac_ext <<_ACEOF
14202 /* end confdefs.h. */
14203 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14205 #define $ac_func innocuous_$ac_func
14206
14207 /* System header to define __stub macros and hopefully few prototypes,
14208 which can conflict with char $ac_func (); below.
14209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14210 <limits.h> exists even on freestanding compilers. */
14211
14212 #ifdef __STDC__
14213 # include <limits.h>
14214 #else
14215 # include <assert.h>
14216 #endif
14217
14218 #undef $ac_func
14219
14220 /* Override any GCC internal prototype to avoid an error.
14221 Use char because int might match the return type of a GCC
14222 builtin and then its argument prototype would still apply. */
14223 #ifdef __cplusplus
14224 extern "C"
14225 #endif
14226 char $ac_func ();
14227 /* The GNU C library defines this for functions which it implements
14228 to always fail with ENOSYS. Some functions are actually named
14229 something starting with __ and the normal name is an alias. */
14230 #if defined __stub_$ac_func || defined __stub___$ac_func
14231 choke me
14232 #endif
14233
14234 int
14235 main ()
14236 {
14237 return $ac_func ();
14238 ;
14239 return 0;
14240 }
14241 _ACEOF
14242 rm -f conftest.$ac_objext conftest$ac_exeext
14243 if { (ac_try="$ac_link"
14244 case "(($ac_try" in
14245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14246 *) ac_try_echo=$ac_try;;
14247 esac
14248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14249 (eval "$ac_link") 2>conftest.er1
14250 ac_status=$?
14251 grep -v '^ *+' conftest.er1 >conftest.err
14252 rm -f conftest.er1
14253 cat conftest.err >&5
14254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255 (exit $ac_status); } && {
14256 test -z "$ac_c_werror_flag" ||
14257 test ! -s conftest.err
14258 } && test -s conftest$ac_exeext &&
14259 $as_test_x conftest$ac_exeext; then
14260 eval "$as_ac_var=yes"
14261 else
14262 echo "$as_me: failed program was:" >&5
14263 sed 's/^/| /' conftest.$ac_ext >&5
14264
14265 eval "$as_ac_var=no"
14266 fi
14267
14268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14269 conftest$ac_exeext conftest.$ac_ext
14270 fi
14271 ac_res=`eval echo '${'$as_ac_var'}'`
14272 { echo "$as_me:$LINENO: result: $ac_res" >&5
14273 echo "${ECHO_T}$ac_res" >&6; }
14274 if test `eval echo '${'$as_ac_var'}'` = yes; then
14275
14276 cat >>confdefs.h <<_ACEOF
14277 #define CRAY_STACKSEG_END $ac_func
14278 _ACEOF
14279
14280 break
14281 fi
14282
14283 done
14284 fi
14285
14286 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14287 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
14288 if test "${ac_cv_c_stack_direction+set}" = set; then
14289 echo $ECHO_N "(cached) $ECHO_C" >&6
14290 else
14291 if test "$cross_compiling" = yes; then
14292 ac_cv_c_stack_direction=0
14293 else
14294 cat >conftest.$ac_ext <<_ACEOF
14295 /* confdefs.h. */
14296 _ACEOF
14297 cat confdefs.h >>conftest.$ac_ext
14298 cat >>conftest.$ac_ext <<_ACEOF
14299 /* end confdefs.h. */
14300 $ac_includes_default
14301 int
14302 find_stack_direction ()
14303 {
14304 static char *addr = 0;
14305 auto char dummy;
14306 if (addr == 0)
14307 {
14308 addr = &dummy;
14309 return find_stack_direction ();
14310 }
14311 else
14312 return (&dummy > addr) ? 1 : -1;
14313 }
14314
14315 int
14316 main ()
14317 {
14318 return find_stack_direction () < 0;
14319 }
14320 _ACEOF
14321 rm -f conftest$ac_exeext
14322 if { (ac_try="$ac_link"
14323 case "(($ac_try" in
14324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14325 *) ac_try_echo=$ac_try;;
14326 esac
14327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14328 (eval "$ac_link") 2>&5
14329 ac_status=$?
14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14332 { (case "(($ac_try" in
14333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14334 *) ac_try_echo=$ac_try;;
14335 esac
14336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14337 (eval "$ac_try") 2>&5
14338 ac_status=$?
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); }; }; then
14341 ac_cv_c_stack_direction=1
14342 else
14343 echo "$as_me: program exited with status $ac_status" >&5
14344 echo "$as_me: failed program was:" >&5
14345 sed 's/^/| /' conftest.$ac_ext >&5
14346
14347 ( exit $ac_status )
14348 ac_cv_c_stack_direction=-1
14349 fi
14350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14351 fi
14352
14353
14354 fi
14355 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14356 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14357
14358 cat >>confdefs.h <<_ACEOF
14359 #define STACK_DIRECTION $ac_cv_c_stack_direction
14360 _ACEOF
14361
14362
14363 fi
14364
14365
14366 # fmod, logb, and frexp are found in -lm on most systems.
14367 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14368
14369 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
14370 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
14371 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14372 echo $ECHO_N "(cached) $ECHO_C" >&6
14373 else
14374 ac_check_lib_save_LIBS=$LIBS
14375 LIBS="-lm $LIBS"
14376 cat >conftest.$ac_ext <<_ACEOF
14377 /* confdefs.h. */
14378 _ACEOF
14379 cat confdefs.h >>conftest.$ac_ext
14380 cat >>conftest.$ac_ext <<_ACEOF
14381 /* end confdefs.h. */
14382
14383 /* Override any GCC internal prototype to avoid an error.
14384 Use char because int might match the return type of a GCC
14385 builtin and then its argument prototype would still apply. */
14386 #ifdef __cplusplus
14387 extern "C"
14388 #endif
14389 char sqrt ();
14390 int
14391 main ()
14392 {
14393 return sqrt ();
14394 ;
14395 return 0;
14396 }
14397 _ACEOF
14398 rm -f conftest.$ac_objext conftest$ac_exeext
14399 if { (ac_try="$ac_link"
14400 case "(($ac_try" in
14401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14402 *) ac_try_echo=$ac_try;;
14403 esac
14404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14405 (eval "$ac_link") 2>conftest.er1
14406 ac_status=$?
14407 grep -v '^ *+' conftest.er1 >conftest.err
14408 rm -f conftest.er1
14409 cat conftest.err >&5
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); } && {
14412 test -z "$ac_c_werror_flag" ||
14413 test ! -s conftest.err
14414 } && test -s conftest$ac_exeext &&
14415 $as_test_x conftest$ac_exeext; then
14416 ac_cv_lib_m_sqrt=yes
14417 else
14418 echo "$as_me: failed program was:" >&5
14419 sed 's/^/| /' conftest.$ac_ext >&5
14420
14421 ac_cv_lib_m_sqrt=no
14422 fi
14423
14424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14425 conftest$ac_exeext conftest.$ac_ext
14426 LIBS=$ac_check_lib_save_LIBS
14427 fi
14428 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
14429 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
14430 if test $ac_cv_lib_m_sqrt = yes; then
14431 cat >>confdefs.h <<_ACEOF
14432 #define HAVE_LIBM 1
14433 _ACEOF
14434
14435 LIBS="-lm $LIBS"
14436
14437 fi
14438
14439
14440 # Check for mail-locking functions in a "mail" library. Probably this should
14441 # have the same check as for liblockfile below.
14442
14443 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
14444 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
14445 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14446 echo $ECHO_N "(cached) $ECHO_C" >&6
14447 else
14448 ac_check_lib_save_LIBS=$LIBS
14449 LIBS="-lmail $LIBS"
14450 cat >conftest.$ac_ext <<_ACEOF
14451 /* confdefs.h. */
14452 _ACEOF
14453 cat confdefs.h >>conftest.$ac_ext
14454 cat >>conftest.$ac_ext <<_ACEOF
14455 /* end confdefs.h. */
14456
14457 /* Override any GCC internal prototype to avoid an error.
14458 Use char because int might match the return type of a GCC
14459 builtin and then its argument prototype would still apply. */
14460 #ifdef __cplusplus
14461 extern "C"
14462 #endif
14463 char maillock ();
14464 int
14465 main ()
14466 {
14467 return maillock ();
14468 ;
14469 return 0;
14470 }
14471 _ACEOF
14472 rm -f conftest.$ac_objext conftest$ac_exeext
14473 if { (ac_try="$ac_link"
14474 case "(($ac_try" in
14475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14476 *) ac_try_echo=$ac_try;;
14477 esac
14478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14479 (eval "$ac_link") 2>conftest.er1
14480 ac_status=$?
14481 grep -v '^ *+' conftest.er1 >conftest.err
14482 rm -f conftest.er1
14483 cat conftest.err >&5
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); } && {
14486 test -z "$ac_c_werror_flag" ||
14487 test ! -s conftest.err
14488 } && test -s conftest$ac_exeext &&
14489 $as_test_x conftest$ac_exeext; then
14490 ac_cv_lib_mail_maillock=yes
14491 else
14492 echo "$as_me: failed program was:" >&5
14493 sed 's/^/| /' conftest.$ac_ext >&5
14494
14495 ac_cv_lib_mail_maillock=no
14496 fi
14497
14498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14499 conftest$ac_exeext conftest.$ac_ext
14500 LIBS=$ac_check_lib_save_LIBS
14501 fi
14502 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
14503 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
14504 if test $ac_cv_lib_mail_maillock = yes; then
14505 cat >>confdefs.h <<_ACEOF
14506 #define HAVE_LIBMAIL 1
14507 _ACEOF
14508
14509 LIBS="-lmail $LIBS"
14510
14511 fi
14512
14513
14514 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
14515 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
14516 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14517 echo $ECHO_N "(cached) $ECHO_C" >&6
14518 else
14519 ac_check_lib_save_LIBS=$LIBS
14520 LIBS="-llockfile $LIBS"
14521 cat >conftest.$ac_ext <<_ACEOF
14522 /* confdefs.h. */
14523 _ACEOF
14524 cat confdefs.h >>conftest.$ac_ext
14525 cat >>conftest.$ac_ext <<_ACEOF
14526 /* end confdefs.h. */
14527
14528 /* Override any GCC internal prototype to avoid an error.
14529 Use char because int might match the return type of a GCC
14530 builtin and then its argument prototype would still apply. */
14531 #ifdef __cplusplus
14532 extern "C"
14533 #endif
14534 char maillock ();
14535 int
14536 main ()
14537 {
14538 return maillock ();
14539 ;
14540 return 0;
14541 }
14542 _ACEOF
14543 rm -f conftest.$ac_objext conftest$ac_exeext
14544 if { (ac_try="$ac_link"
14545 case "(($ac_try" in
14546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14547 *) ac_try_echo=$ac_try;;
14548 esac
14549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14550 (eval "$ac_link") 2>conftest.er1
14551 ac_status=$?
14552 grep -v '^ *+' conftest.er1 >conftest.err
14553 rm -f conftest.er1
14554 cat conftest.err >&5
14555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556 (exit $ac_status); } && {
14557 test -z "$ac_c_werror_flag" ||
14558 test ! -s conftest.err
14559 } && test -s conftest$ac_exeext &&
14560 $as_test_x conftest$ac_exeext; then
14561 ac_cv_lib_lockfile_maillock=yes
14562 else
14563 echo "$as_me: failed program was:" >&5
14564 sed 's/^/| /' conftest.$ac_ext >&5
14565
14566 ac_cv_lib_lockfile_maillock=no
14567 fi
14568
14569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14570 conftest$ac_exeext conftest.$ac_ext
14571 LIBS=$ac_check_lib_save_LIBS
14572 fi
14573 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14574 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
14575 if test $ac_cv_lib_lockfile_maillock = yes; then
14576 cat >>confdefs.h <<_ACEOF
14577 #define HAVE_LIBLOCKFILE 1
14578 _ACEOF
14579
14580 LIBS="-llockfile $LIBS"
14581
14582 fi
14583
14584 # If we have the shared liblockfile, assume we must use it for mail
14585 # locking (e.g. Debian). If we couldn't link against liblockfile
14586 # (no liblockfile.a installed), ensure that we don't need to.
14587 if test "$ac_cv_lib_lockfile_maillock" = no; then
14588 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14589 set dummy liblockfile.so; ac_word=$2
14590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14592 if test "${ac_cv_prog_liblockfile+set}" = set; then
14593 echo $ECHO_N "(cached) $ECHO_C" >&6
14594 else
14595 if test -n "$liblockfile"; then
14596 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14597 else
14598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14599 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14600 for as_dir in $as_dummy
14601 do
14602 IFS=$as_save_IFS
14603 test -z "$as_dir" && as_dir=.
14604 for ac_exec_ext in '' $ac_executable_extensions; do
14605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14606 ac_cv_prog_liblockfile="yes"
14607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14608 break 2
14609 fi
14610 done
14611 done
14612 IFS=$as_save_IFS
14613
14614 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14615 fi
14616 fi
14617 liblockfile=$ac_cv_prog_liblockfile
14618 if test -n "$liblockfile"; then
14619 { echo "$as_me:$LINENO: result: $liblockfile" >&5
14620 echo "${ECHO_T}$liblockfile" >&6; }
14621 else
14622 { echo "$as_me:$LINENO: result: no" >&5
14623 echo "${ECHO_T}no" >&6; }
14624 fi
14625
14626
14627 if test $ac_cv_prog_liblockfile = yes; then
14628 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
14629 This probably means that movemail could lose mail.
14630 There may be a \`development' package to install containing liblockfile." >&5
14631 echo "$as_me: error: Shared liblockfile found but can't link against it.
14632 This probably means that movemail could lose mail.
14633 There may be a \`development' package to install containing liblockfile." >&2;}
14634 { (exit 1); exit 1; }; }
14635 else :
14636 fi
14637 fi
14638
14639 for ac_func in touchlock
14640 do
14641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14642 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14644 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14645 echo $ECHO_N "(cached) $ECHO_C" >&6
14646 else
14647 cat >conftest.$ac_ext <<_ACEOF
14648 /* confdefs.h. */
14649 _ACEOF
14650 cat confdefs.h >>conftest.$ac_ext
14651 cat >>conftest.$ac_ext <<_ACEOF
14652 /* end confdefs.h. */
14653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14655 #define $ac_func innocuous_$ac_func
14656
14657 /* System header to define __stub macros and hopefully few prototypes,
14658 which can conflict with char $ac_func (); below.
14659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14660 <limits.h> exists even on freestanding compilers. */
14661
14662 #ifdef __STDC__
14663 # include <limits.h>
14664 #else
14665 # include <assert.h>
14666 #endif
14667
14668 #undef $ac_func
14669
14670 /* Override any GCC internal prototype to avoid an error.
14671 Use char because int might match the return type of a GCC
14672 builtin and then its argument prototype would still apply. */
14673 #ifdef __cplusplus
14674 extern "C"
14675 #endif
14676 char $ac_func ();
14677 /* The GNU C library defines this for functions which it implements
14678 to always fail with ENOSYS. Some functions are actually named
14679 something starting with __ and the normal name is an alias. */
14680 #if defined __stub_$ac_func || defined __stub___$ac_func
14681 choke me
14682 #endif
14683
14684 int
14685 main ()
14686 {
14687 return $ac_func ();
14688 ;
14689 return 0;
14690 }
14691 _ACEOF
14692 rm -f conftest.$ac_objext conftest$ac_exeext
14693 if { (ac_try="$ac_link"
14694 case "(($ac_try" in
14695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14696 *) ac_try_echo=$ac_try;;
14697 esac
14698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14699 (eval "$ac_link") 2>conftest.er1
14700 ac_status=$?
14701 grep -v '^ *+' conftest.er1 >conftest.err
14702 rm -f conftest.er1
14703 cat conftest.err >&5
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); } && {
14706 test -z "$ac_c_werror_flag" ||
14707 test ! -s conftest.err
14708 } && test -s conftest$ac_exeext &&
14709 $as_test_x conftest$ac_exeext; then
14710 eval "$as_ac_var=yes"
14711 else
14712 echo "$as_me: failed program was:" >&5
14713 sed 's/^/| /' conftest.$ac_ext >&5
14714
14715 eval "$as_ac_var=no"
14716 fi
14717
14718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14719 conftest$ac_exeext conftest.$ac_ext
14720 fi
14721 ac_res=`eval echo '${'$as_ac_var'}'`
14722 { echo "$as_me:$LINENO: result: $ac_res" >&5
14723 echo "${ECHO_T}$ac_res" >&6; }
14724 if test `eval echo '${'$as_ac_var'}'` = yes; then
14725 cat >>confdefs.h <<_ACEOF
14726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14727 _ACEOF
14728
14729 fi
14730 done
14731
14732
14733 for ac_header in maillock.h
14734 do
14735 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14737 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14740 echo $ECHO_N "(cached) $ECHO_C" >&6
14741 fi
14742 ac_res=`eval echo '${'$as_ac_Header'}'`
14743 { echo "$as_me:$LINENO: result: $ac_res" >&5
14744 echo "${ECHO_T}$ac_res" >&6; }
14745 else
14746 # Is the header compilable?
14747 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14748 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14749 cat >conftest.$ac_ext <<_ACEOF
14750 /* confdefs.h. */
14751 _ACEOF
14752 cat confdefs.h >>conftest.$ac_ext
14753 cat >>conftest.$ac_ext <<_ACEOF
14754 /* end confdefs.h. */
14755 $ac_includes_default
14756 #include <$ac_header>
14757 _ACEOF
14758 rm -f conftest.$ac_objext
14759 if { (ac_try="$ac_compile"
14760 case "(($ac_try" in
14761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14762 *) ac_try_echo=$ac_try;;
14763 esac
14764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14765 (eval "$ac_compile") 2>conftest.er1
14766 ac_status=$?
14767 grep -v '^ *+' conftest.er1 >conftest.err
14768 rm -f conftest.er1
14769 cat conftest.err >&5
14770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 (exit $ac_status); } && {
14772 test -z "$ac_c_werror_flag" ||
14773 test ! -s conftest.err
14774 } && test -s conftest.$ac_objext; then
14775 ac_header_compiler=yes
14776 else
14777 echo "$as_me: failed program was:" >&5
14778 sed 's/^/| /' conftest.$ac_ext >&5
14779
14780 ac_header_compiler=no
14781 fi
14782
14783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14784 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14785 echo "${ECHO_T}$ac_header_compiler" >&6; }
14786
14787 # Is the header present?
14788 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14789 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14790 cat >conftest.$ac_ext <<_ACEOF
14791 /* confdefs.h. */
14792 _ACEOF
14793 cat confdefs.h >>conftest.$ac_ext
14794 cat >>conftest.$ac_ext <<_ACEOF
14795 /* end confdefs.h. */
14796 #include <$ac_header>
14797 _ACEOF
14798 if { (ac_try="$ac_cpp conftest.$ac_ext"
14799 case "(($ac_try" in
14800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14801 *) ac_try_echo=$ac_try;;
14802 esac
14803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14805 ac_status=$?
14806 grep -v '^ *+' conftest.er1 >conftest.err
14807 rm -f conftest.er1
14808 cat conftest.err >&5
14809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810 (exit $ac_status); } >/dev/null && {
14811 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14812 test ! -s conftest.err
14813 }; then
14814 ac_header_preproc=yes
14815 else
14816 echo "$as_me: failed program was:" >&5
14817 sed 's/^/| /' conftest.$ac_ext >&5
14818
14819 ac_header_preproc=no
14820 fi
14821
14822 rm -f conftest.err conftest.$ac_ext
14823 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14824 echo "${ECHO_T}$ac_header_preproc" >&6; }
14825
14826 # So? What about this header?
14827 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14828 yes:no: )
14829 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14830 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14832 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14833 ac_header_preproc=yes
14834 ;;
14835 no:yes:* )
14836 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14837 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14838 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14839 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14840 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14841 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14842 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14843 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14845 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14846 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14847 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14848
14849 ;;
14850 esac
14851 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14854 echo $ECHO_N "(cached) $ECHO_C" >&6
14855 else
14856 eval "$as_ac_Header=\$ac_header_preproc"
14857 fi
14858 ac_res=`eval echo '${'$as_ac_Header'}'`
14859 { echo "$as_me:$LINENO: result: $ac_res" >&5
14860 echo "${ECHO_T}$ac_res" >&6; }
14861
14862 fi
14863 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14864 cat >>confdefs.h <<_ACEOF
14865 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14866 _ACEOF
14867
14868 fi
14869
14870 done
14871
14872
14873
14874
14875
14876
14877
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 for ac_func in gethostname getdomainname dup2 \
14943 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
14944 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
14945 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
14946 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14947 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
14948 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14949 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
14950 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
14951 do
14952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14953 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14955 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14956 echo $ECHO_N "(cached) $ECHO_C" >&6
14957 else
14958 cat >conftest.$ac_ext <<_ACEOF
14959 /* confdefs.h. */
14960 _ACEOF
14961 cat confdefs.h >>conftest.$ac_ext
14962 cat >>conftest.$ac_ext <<_ACEOF
14963 /* end confdefs.h. */
14964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14966 #define $ac_func innocuous_$ac_func
14967
14968 /* System header to define __stub macros and hopefully few prototypes,
14969 which can conflict with char $ac_func (); below.
14970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14971 <limits.h> exists even on freestanding compilers. */
14972
14973 #ifdef __STDC__
14974 # include <limits.h>
14975 #else
14976 # include <assert.h>
14977 #endif
14978
14979 #undef $ac_func
14980
14981 /* Override any GCC internal prototype to avoid an error.
14982 Use char because int might match the return type of a GCC
14983 builtin and then its argument prototype would still apply. */
14984 #ifdef __cplusplus
14985 extern "C"
14986 #endif
14987 char $ac_func ();
14988 /* The GNU C library defines this for functions which it implements
14989 to always fail with ENOSYS. Some functions are actually named
14990 something starting with __ and the normal name is an alias. */
14991 #if defined __stub_$ac_func || defined __stub___$ac_func
14992 choke me
14993 #endif
14994
14995 int
14996 main ()
14997 {
14998 return $ac_func ();
14999 ;
15000 return 0;
15001 }
15002 _ACEOF
15003 rm -f conftest.$ac_objext conftest$ac_exeext
15004 if { (ac_try="$ac_link"
15005 case "(($ac_try" in
15006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15007 *) ac_try_echo=$ac_try;;
15008 esac
15009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15010 (eval "$ac_link") 2>conftest.er1
15011 ac_status=$?
15012 grep -v '^ *+' conftest.er1 >conftest.err
15013 rm -f conftest.er1
15014 cat conftest.err >&5
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); } && {
15017 test -z "$ac_c_werror_flag" ||
15018 test ! -s conftest.err
15019 } && test -s conftest$ac_exeext &&
15020 $as_test_x conftest$ac_exeext; then
15021 eval "$as_ac_var=yes"
15022 else
15023 echo "$as_me: failed program was:" >&5
15024 sed 's/^/| /' conftest.$ac_ext >&5
15025
15026 eval "$as_ac_var=no"
15027 fi
15028
15029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15030 conftest$ac_exeext conftest.$ac_ext
15031 fi
15032 ac_res=`eval echo '${'$as_ac_var'}'`
15033 { echo "$as_me:$LINENO: result: $ac_res" >&5
15034 echo "${ECHO_T}$ac_res" >&6; }
15035 if test `eval echo '${'$as_ac_var'}'` = yes; then
15036 cat >>confdefs.h <<_ACEOF
15037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15038 _ACEOF
15039
15040 fi
15041 done
15042
15043
15044
15045 for ac_header in sys/un.h
15046 do
15047 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15049 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15052 echo $ECHO_N "(cached) $ECHO_C" >&6
15053 fi
15054 ac_res=`eval echo '${'$as_ac_Header'}'`
15055 { echo "$as_me:$LINENO: result: $ac_res" >&5
15056 echo "${ECHO_T}$ac_res" >&6; }
15057 else
15058 # Is the header compilable?
15059 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15060 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15061 cat >conftest.$ac_ext <<_ACEOF
15062 /* confdefs.h. */
15063 _ACEOF
15064 cat confdefs.h >>conftest.$ac_ext
15065 cat >>conftest.$ac_ext <<_ACEOF
15066 /* end confdefs.h. */
15067 $ac_includes_default
15068 #include <$ac_header>
15069 _ACEOF
15070 rm -f conftest.$ac_objext
15071 if { (ac_try="$ac_compile"
15072 case "(($ac_try" in
15073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15074 *) ac_try_echo=$ac_try;;
15075 esac
15076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15077 (eval "$ac_compile") 2>conftest.er1
15078 ac_status=$?
15079 grep -v '^ *+' conftest.er1 >conftest.err
15080 rm -f conftest.er1
15081 cat conftest.err >&5
15082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083 (exit $ac_status); } && {
15084 test -z "$ac_c_werror_flag" ||
15085 test ! -s conftest.err
15086 } && test -s conftest.$ac_objext; then
15087 ac_header_compiler=yes
15088 else
15089 echo "$as_me: failed program was:" >&5
15090 sed 's/^/| /' conftest.$ac_ext >&5
15091
15092 ac_header_compiler=no
15093 fi
15094
15095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15096 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15097 echo "${ECHO_T}$ac_header_compiler" >&6; }
15098
15099 # Is the header present?
15100 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15101 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15102 cat >conftest.$ac_ext <<_ACEOF
15103 /* confdefs.h. */
15104 _ACEOF
15105 cat confdefs.h >>conftest.$ac_ext
15106 cat >>conftest.$ac_ext <<_ACEOF
15107 /* end confdefs.h. */
15108 #include <$ac_header>
15109 _ACEOF
15110 if { (ac_try="$ac_cpp conftest.$ac_ext"
15111 case "(($ac_try" in
15112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15113 *) ac_try_echo=$ac_try;;
15114 esac
15115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15116 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15117 ac_status=$?
15118 grep -v '^ *+' conftest.er1 >conftest.err
15119 rm -f conftest.er1
15120 cat conftest.err >&5
15121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122 (exit $ac_status); } >/dev/null && {
15123 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15124 test ! -s conftest.err
15125 }; then
15126 ac_header_preproc=yes
15127 else
15128 echo "$as_me: failed program was:" >&5
15129 sed 's/^/| /' conftest.$ac_ext >&5
15130
15131 ac_header_preproc=no
15132 fi
15133
15134 rm -f conftest.err conftest.$ac_ext
15135 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15136 echo "${ECHO_T}$ac_header_preproc" >&6; }
15137
15138 # So? What about this header?
15139 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15140 yes:no: )
15141 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15142 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15144 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15145 ac_header_preproc=yes
15146 ;;
15147 no:yes:* )
15148 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15149 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15150 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15151 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15152 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15153 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15154 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15155 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15157 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15158 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15159 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15160
15161 ;;
15162 esac
15163 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15165 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15166 echo $ECHO_N "(cached) $ECHO_C" >&6
15167 else
15168 eval "$as_ac_Header=\$ac_header_preproc"
15169 fi
15170 ac_res=`eval echo '${'$as_ac_Header'}'`
15171 { echo "$as_me:$LINENO: result: $ac_res" >&5
15172 echo "${ECHO_T}$ac_res" >&6; }
15173
15174 fi
15175 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15176 cat >>confdefs.h <<_ACEOF
15177 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15178 _ACEOF
15179
15180 fi
15181
15182 done
15183
15184
15185
15186
15187
15188
15189 for ac_header in $ac_header_list
15190 do
15191 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15193 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15196 echo $ECHO_N "(cached) $ECHO_C" >&6
15197 fi
15198 ac_res=`eval echo '${'$as_ac_Header'}'`
15199 { echo "$as_me:$LINENO: result: $ac_res" >&5
15200 echo "${ECHO_T}$ac_res" >&6; }
15201 else
15202 # Is the header compilable?
15203 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15204 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15205 cat >conftest.$ac_ext <<_ACEOF
15206 /* confdefs.h. */
15207 _ACEOF
15208 cat confdefs.h >>conftest.$ac_ext
15209 cat >>conftest.$ac_ext <<_ACEOF
15210 /* end confdefs.h. */
15211 $ac_includes_default
15212 #include <$ac_header>
15213 _ACEOF
15214 rm -f conftest.$ac_objext
15215 if { (ac_try="$ac_compile"
15216 case "(($ac_try" in
15217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15218 *) ac_try_echo=$ac_try;;
15219 esac
15220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15221 (eval "$ac_compile") 2>conftest.er1
15222 ac_status=$?
15223 grep -v '^ *+' conftest.er1 >conftest.err
15224 rm -f conftest.er1
15225 cat conftest.err >&5
15226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227 (exit $ac_status); } && {
15228 test -z "$ac_c_werror_flag" ||
15229 test ! -s conftest.err
15230 } && test -s conftest.$ac_objext; then
15231 ac_header_compiler=yes
15232 else
15233 echo "$as_me: failed program was:" >&5
15234 sed 's/^/| /' conftest.$ac_ext >&5
15235
15236 ac_header_compiler=no
15237 fi
15238
15239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15240 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15241 echo "${ECHO_T}$ac_header_compiler" >&6; }
15242
15243 # Is the header present?
15244 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15245 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15246 cat >conftest.$ac_ext <<_ACEOF
15247 /* confdefs.h. */
15248 _ACEOF
15249 cat confdefs.h >>conftest.$ac_ext
15250 cat >>conftest.$ac_ext <<_ACEOF
15251 /* end confdefs.h. */
15252 #include <$ac_header>
15253 _ACEOF
15254 if { (ac_try="$ac_cpp conftest.$ac_ext"
15255 case "(($ac_try" in
15256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15257 *) ac_try_echo=$ac_try;;
15258 esac
15259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15261 ac_status=$?
15262 grep -v '^ *+' conftest.er1 >conftest.err
15263 rm -f conftest.er1
15264 cat conftest.err >&5
15265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); } >/dev/null && {
15267 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15268 test ! -s conftest.err
15269 }; then
15270 ac_header_preproc=yes
15271 else
15272 echo "$as_me: failed program was:" >&5
15273 sed 's/^/| /' conftest.$ac_ext >&5
15274
15275 ac_header_preproc=no
15276 fi
15277
15278 rm -f conftest.err conftest.$ac_ext
15279 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15280 echo "${ECHO_T}$ac_header_preproc" >&6; }
15281
15282 # So? What about this header?
15283 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15284 yes:no: )
15285 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15286 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15287 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15288 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15289 ac_header_preproc=yes
15290 ;;
15291 no:yes:* )
15292 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15293 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15294 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15295 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15296 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15297 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15298 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15299 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15300 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15301 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15302 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15303 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15304
15305 ;;
15306 esac
15307 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15310 echo $ECHO_N "(cached) $ECHO_C" >&6
15311 else
15312 eval "$as_ac_Header=\$ac_header_preproc"
15313 fi
15314 ac_res=`eval echo '${'$as_ac_Header'}'`
15315 { echo "$as_me:$LINENO: result: $ac_res" >&5
15316 echo "${ECHO_T}$ac_res" >&6; }
15317
15318 fi
15319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15320 cat >>confdefs.h <<_ACEOF
15321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15322 _ACEOF
15323
15324 fi
15325
15326 done
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336 for ac_func in $ac_func_list
15337 do
15338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15339 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15341 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15342 echo $ECHO_N "(cached) $ECHO_C" >&6
15343 else
15344 cat >conftest.$ac_ext <<_ACEOF
15345 /* confdefs.h. */
15346 _ACEOF
15347 cat confdefs.h >>conftest.$ac_ext
15348 cat >>conftest.$ac_ext <<_ACEOF
15349 /* end confdefs.h. */
15350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15352 #define $ac_func innocuous_$ac_func
15353
15354 /* System header to define __stub macros and hopefully few prototypes,
15355 which can conflict with char $ac_func (); below.
15356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15357 <limits.h> exists even on freestanding compilers. */
15358
15359 #ifdef __STDC__
15360 # include <limits.h>
15361 #else
15362 # include <assert.h>
15363 #endif
15364
15365 #undef $ac_func
15366
15367 /* Override any GCC internal prototype to avoid an error.
15368 Use char because int might match the return type of a GCC
15369 builtin and then its argument prototype would still apply. */
15370 #ifdef __cplusplus
15371 extern "C"
15372 #endif
15373 char $ac_func ();
15374 /* The GNU C library defines this for functions which it implements
15375 to always fail with ENOSYS. Some functions are actually named
15376 something starting with __ and the normal name is an alias. */
15377 #if defined __stub_$ac_func || defined __stub___$ac_func
15378 choke me
15379 #endif
15380
15381 int
15382 main ()
15383 {
15384 return $ac_func ();
15385 ;
15386 return 0;
15387 }
15388 _ACEOF
15389 rm -f conftest.$ac_objext conftest$ac_exeext
15390 if { (ac_try="$ac_link"
15391 case "(($ac_try" in
15392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15393 *) ac_try_echo=$ac_try;;
15394 esac
15395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15396 (eval "$ac_link") 2>conftest.er1
15397 ac_status=$?
15398 grep -v '^ *+' conftest.er1 >conftest.err
15399 rm -f conftest.er1
15400 cat conftest.err >&5
15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 (exit $ac_status); } && {
15403 test -z "$ac_c_werror_flag" ||
15404 test ! -s conftest.err
15405 } && test -s conftest$ac_exeext &&
15406 $as_test_x conftest$ac_exeext; then
15407 eval "$as_ac_var=yes"
15408 else
15409 echo "$as_me: failed program was:" >&5
15410 sed 's/^/| /' conftest.$ac_ext >&5
15411
15412 eval "$as_ac_var=no"
15413 fi
15414
15415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15416 conftest$ac_exeext conftest.$ac_ext
15417 fi
15418 ac_res=`eval echo '${'$as_ac_var'}'`
15419 { echo "$as_me:$LINENO: result: $ac_res" >&5
15420 echo "${ECHO_T}$ac_res" >&6; }
15421 if test `eval echo '${'$as_ac_var'}'` = yes; then
15422 cat >>confdefs.h <<_ACEOF
15423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15424 _ACEOF
15425
15426 fi
15427 done
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445 { echo "$as_me:$LINENO: checking for working mktime" >&5
15446 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
15447 if test "${ac_cv_func_working_mktime+set}" = set; then
15448 echo $ECHO_N "(cached) $ECHO_C" >&6
15449 else
15450 if test "$cross_compiling" = yes; then
15451 ac_cv_func_working_mktime=no
15452 else
15453 cat >conftest.$ac_ext <<_ACEOF
15454 /* confdefs.h. */
15455 _ACEOF
15456 cat confdefs.h >>conftest.$ac_ext
15457 cat >>conftest.$ac_ext <<_ACEOF
15458 /* end confdefs.h. */
15459 /* Test program from Paul Eggert and Tony Leneis. */
15460 #ifdef TIME_WITH_SYS_TIME
15461 # include <sys/time.h>
15462 # include <time.h>
15463 #else
15464 # ifdef HAVE_SYS_TIME_H
15465 # include <sys/time.h>
15466 # else
15467 # include <time.h>
15468 # endif
15469 #endif
15470
15471 #include <stdlib.h>
15472
15473 #ifdef HAVE_UNISTD_H
15474 # include <unistd.h>
15475 #endif
15476
15477 #ifndef HAVE_ALARM
15478 # define alarm(X) /* empty */
15479 #endif
15480
15481 /* Work around redefinition to rpl_putenv by other config tests. */
15482 #undef putenv
15483
15484 static time_t time_t_max;
15485 static time_t time_t_min;
15486
15487 /* Values we'll use to set the TZ environment variable. */
15488 static char *tz_strings[] = {
15489 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15490 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15491 };
15492 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15493
15494 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15495 Based on a problem report from Andreas Jaeger. */
15496 static int
15497 spring_forward_gap ()
15498 {
15499 /* glibc (up to about 1998-10-07) failed this test. */
15500 struct tm tm;
15501
15502 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15503 instead of "TZ=America/Vancouver" in order to detect the bug even
15504 on systems that don't support the Olson extension, or don't have the
15505 full zoneinfo tables installed. */
15506 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15507
15508 tm.tm_year = 98;
15509 tm.tm_mon = 3;
15510 tm.tm_mday = 5;
15511 tm.tm_hour = 2;
15512 tm.tm_min = 0;
15513 tm.tm_sec = 0;
15514 tm.tm_isdst = -1;
15515 return mktime (&tm) != (time_t) -1;
15516 }
15517
15518 static int
15519 mktime_test1 (now)
15520 time_t now;
15521 {
15522 struct tm *lt;
15523 return ! (lt = localtime (&now)) || mktime (lt) == now;
15524 }
15525
15526 static int
15527 mktime_test (now)
15528 time_t now;
15529 {
15530 return (mktime_test1 (now)
15531 && mktime_test1 ((time_t) (time_t_max - now))
15532 && mktime_test1 ((time_t) (time_t_min + now)));
15533 }
15534
15535 static int
15536 irix_6_4_bug ()
15537 {
15538 /* Based on code from Ariel Faigon. */
15539 struct tm tm;
15540 tm.tm_year = 96;
15541 tm.tm_mon = 3;
15542 tm.tm_mday = 0;
15543 tm.tm_hour = 0;
15544 tm.tm_min = 0;
15545 tm.tm_sec = 0;
15546 tm.tm_isdst = -1;
15547 mktime (&tm);
15548 return tm.tm_mon == 2 && tm.tm_mday == 31;
15549 }
15550
15551 static int
15552 bigtime_test (j)
15553 int j;
15554 {
15555 struct tm tm;
15556 time_t now;
15557 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15558 now = mktime (&tm);
15559 if (now != (time_t) -1)
15560 {
15561 struct tm *lt = localtime (&now);
15562 if (! (lt
15563 && lt->tm_year == tm.tm_year
15564 && lt->tm_mon == tm.tm_mon
15565 && lt->tm_mday == tm.tm_mday
15566 && lt->tm_hour == tm.tm_hour
15567 && lt->tm_min == tm.tm_min
15568 && lt->tm_sec == tm.tm_sec
15569 && lt->tm_yday == tm.tm_yday
15570 && lt->tm_wday == tm.tm_wday
15571 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15572 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15573 return 0;
15574 }
15575 return 1;
15576 }
15577
15578 static int
15579 year_2050_test ()
15580 {
15581 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15582 ignoring leap seconds. */
15583 unsigned long int answer = 2527315200UL;
15584
15585 struct tm tm;
15586 time_t t;
15587 tm.tm_year = 2050 - 1900;
15588 tm.tm_mon = 2 - 1;
15589 tm.tm_mday = 1;
15590 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15591 tm.tm_isdst = -1;
15592
15593 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15594 instead of "TZ=America/Vancouver" in order to detect the bug even
15595 on systems that don't support the Olson extension, or don't have the
15596 full zoneinfo tables installed. */
15597 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15598
15599 t = mktime (&tm);
15600
15601 /* Check that the result is either a failure, or close enough
15602 to the correct answer that we can assume the discrepancy is
15603 due to leap seconds. */
15604 return (t == (time_t) -1
15605 || (0 < t && answer - 120 <= t && t <= answer + 120));
15606 }
15607
15608 int
15609 main ()
15610 {
15611 time_t t, delta;
15612 int i, j;
15613
15614 /* This test makes some buggy mktime implementations loop.
15615 Give up after 60 seconds; a mktime slower than that
15616 isn't worth using anyway. */
15617 alarm (60);
15618
15619 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15620 continue;
15621 time_t_max--;
15622 if ((time_t) -1 < 0)
15623 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15624 continue;
15625 delta = time_t_max / 997; /* a suitable prime number */
15626 for (i = 0; i < N_STRINGS; i++)
15627 {
15628 if (tz_strings[i])
15629 putenv (tz_strings[i]);
15630
15631 for (t = 0; t <= time_t_max - delta; t += delta)
15632 if (! mktime_test (t))
15633 return 1;
15634 if (! (mktime_test ((time_t) 1)
15635 && mktime_test ((time_t) (60 * 60))
15636 && mktime_test ((time_t) (60 * 60 * 24))))
15637 return 1;
15638
15639 for (j = 1; 0 < j; j *= 2)
15640 if (! bigtime_test (j))
15641 return 1;
15642 if (! bigtime_test (j - 1))
15643 return 1;
15644 }
15645 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
15646 }
15647 _ACEOF
15648 rm -f conftest$ac_exeext
15649 if { (ac_try="$ac_link"
15650 case "(($ac_try" in
15651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15652 *) ac_try_echo=$ac_try;;
15653 esac
15654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15655 (eval "$ac_link") 2>&5
15656 ac_status=$?
15657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15659 { (case "(($ac_try" in
15660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15661 *) ac_try_echo=$ac_try;;
15662 esac
15663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15664 (eval "$ac_try") 2>&5
15665 ac_status=$?
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); }; }; then
15668 ac_cv_func_working_mktime=yes
15669 else
15670 echo "$as_me: program exited with status $ac_status" >&5
15671 echo "$as_me: failed program was:" >&5
15672 sed 's/^/| /' conftest.$ac_ext >&5
15673
15674 ( exit $ac_status )
15675 ac_cv_func_working_mktime=no
15676 fi
15677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15678 fi
15679
15680
15681 fi
15682 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15683 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
15684 if test $ac_cv_func_working_mktime = no; then
15685 case " $LIBOBJS " in
15686 *" mktime.$ac_objext "* ) ;;
15687 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
15688 ;;
15689 esac
15690
15691 fi
15692
15693 if test "$ac_cv_func_working_mktime" = no; then
15694
15695 cat >>confdefs.h <<\_ACEOF
15696 #define BROKEN_MKTIME 1
15697 _ACEOF
15698
15699 fi
15700
15701 ac_have_func=no # yes means we've found a way to get the load average.
15702
15703 # Make sure getloadavg.c is where it belongs, at configure-time.
15704 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
15705 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
15706 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
15707 { (exit 1); exit 1; }; }
15708
15709 ac_save_LIBS=$LIBS
15710
15711 # Check for getloadavg, but be sure not to touch the cache variable.
15712 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
15713 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
15714 if test "${ac_cv_func_getloadavg+set}" = set; then
15715 echo $ECHO_N "(cached) $ECHO_C" >&6
15716 else
15717 cat >conftest.$ac_ext <<_ACEOF
15718 /* confdefs.h. */
15719 _ACEOF
15720 cat confdefs.h >>conftest.$ac_ext
15721 cat >>conftest.$ac_ext <<_ACEOF
15722 /* end confdefs.h. */
15723 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
15724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15725 #define getloadavg innocuous_getloadavg
15726
15727 /* System header to define __stub macros and hopefully few prototypes,
15728 which can conflict with char getloadavg (); below.
15729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15730 <limits.h> exists even on freestanding compilers. */
15731
15732 #ifdef __STDC__
15733 # include <limits.h>
15734 #else
15735 # include <assert.h>
15736 #endif
15737
15738 #undef getloadavg
15739
15740 /* Override any GCC internal prototype to avoid an error.
15741 Use char because int might match the return type of a GCC
15742 builtin and then its argument prototype would still apply. */
15743 #ifdef __cplusplus
15744 extern "C"
15745 #endif
15746 char getloadavg ();
15747 /* The GNU C library defines this for functions which it implements
15748 to always fail with ENOSYS. Some functions are actually named
15749 something starting with __ and the normal name is an alias. */
15750 #if defined __stub_getloadavg || defined __stub___getloadavg
15751 choke me
15752 #endif
15753
15754 int
15755 main ()
15756 {
15757 return getloadavg ();
15758 ;
15759 return 0;
15760 }
15761 _ACEOF
15762 rm -f conftest.$ac_objext conftest$ac_exeext
15763 if { (ac_try="$ac_link"
15764 case "(($ac_try" in
15765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15766 *) ac_try_echo=$ac_try;;
15767 esac
15768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15769 (eval "$ac_link") 2>conftest.er1
15770 ac_status=$?
15771 grep -v '^ *+' conftest.er1 >conftest.err
15772 rm -f conftest.er1
15773 cat conftest.err >&5
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); } && {
15776 test -z "$ac_c_werror_flag" ||
15777 test ! -s conftest.err
15778 } && test -s conftest$ac_exeext &&
15779 $as_test_x conftest$ac_exeext; then
15780 ac_cv_func_getloadavg=yes
15781 else
15782 echo "$as_me: failed program was:" >&5
15783 sed 's/^/| /' conftest.$ac_ext >&5
15784
15785 ac_cv_func_getloadavg=no
15786 fi
15787
15788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15789 conftest$ac_exeext conftest.$ac_ext
15790 fi
15791 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
15792 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
15793 if test $ac_cv_func_getloadavg = yes; then
15794 exit 0
15795 else
15796 exit 1
15797 fi
15798 ) && ac_have_func=yes
15799
15800 # On HPUX9, an unprivileged user can get load averages through this function.
15801
15802 for ac_func in pstat_getdynamic
15803 do
15804 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15805 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15806 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15807 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15808 echo $ECHO_N "(cached) $ECHO_C" >&6
15809 else
15810 cat >conftest.$ac_ext <<_ACEOF
15811 /* confdefs.h. */
15812 _ACEOF
15813 cat confdefs.h >>conftest.$ac_ext
15814 cat >>conftest.$ac_ext <<_ACEOF
15815 /* end confdefs.h. */
15816 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15818 #define $ac_func innocuous_$ac_func
15819
15820 /* System header to define __stub macros and hopefully few prototypes,
15821 which can conflict with char $ac_func (); below.
15822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15823 <limits.h> exists even on freestanding compilers. */
15824
15825 #ifdef __STDC__
15826 # include <limits.h>
15827 #else
15828 # include <assert.h>
15829 #endif
15830
15831 #undef $ac_func
15832
15833 /* Override any GCC internal prototype to avoid an error.
15834 Use char because int might match the return type of a GCC
15835 builtin and then its argument prototype would still apply. */
15836 #ifdef __cplusplus
15837 extern "C"
15838 #endif
15839 char $ac_func ();
15840 /* The GNU C library defines this for functions which it implements
15841 to always fail with ENOSYS. Some functions are actually named
15842 something starting with __ and the normal name is an alias. */
15843 #if defined __stub_$ac_func || defined __stub___$ac_func
15844 choke me
15845 #endif
15846
15847 int
15848 main ()
15849 {
15850 return $ac_func ();
15851 ;
15852 return 0;
15853 }
15854 _ACEOF
15855 rm -f conftest.$ac_objext conftest$ac_exeext
15856 if { (ac_try="$ac_link"
15857 case "(($ac_try" in
15858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15859 *) ac_try_echo=$ac_try;;
15860 esac
15861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15862 (eval "$ac_link") 2>conftest.er1
15863 ac_status=$?
15864 grep -v '^ *+' conftest.er1 >conftest.err
15865 rm -f conftest.er1
15866 cat conftest.err >&5
15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); } && {
15869 test -z "$ac_c_werror_flag" ||
15870 test ! -s conftest.err
15871 } && test -s conftest$ac_exeext &&
15872 $as_test_x conftest$ac_exeext; then
15873 eval "$as_ac_var=yes"
15874 else
15875 echo "$as_me: failed program was:" >&5
15876 sed 's/^/| /' conftest.$ac_ext >&5
15877
15878 eval "$as_ac_var=no"
15879 fi
15880
15881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15882 conftest$ac_exeext conftest.$ac_ext
15883 fi
15884 ac_res=`eval echo '${'$as_ac_var'}'`
15885 { echo "$as_me:$LINENO: result: $ac_res" >&5
15886 echo "${ECHO_T}$ac_res" >&6; }
15887 if test `eval echo '${'$as_ac_var'}'` = yes; then
15888 cat >>confdefs.h <<_ACEOF
15889 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15890 _ACEOF
15891
15892 fi
15893 done
15894
15895
15896 # Solaris has libkstat which does not require root.
15897
15898 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
15899 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
15900 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
15901 echo $ECHO_N "(cached) $ECHO_C" >&6
15902 else
15903 ac_check_lib_save_LIBS=$LIBS
15904 LIBS="-lkstat $LIBS"
15905 cat >conftest.$ac_ext <<_ACEOF
15906 /* confdefs.h. */
15907 _ACEOF
15908 cat confdefs.h >>conftest.$ac_ext
15909 cat >>conftest.$ac_ext <<_ACEOF
15910 /* end confdefs.h. */
15911
15912 /* Override any GCC internal prototype to avoid an error.
15913 Use char because int might match the return type of a GCC
15914 builtin and then its argument prototype would still apply. */
15915 #ifdef __cplusplus
15916 extern "C"
15917 #endif
15918 char kstat_open ();
15919 int
15920 main ()
15921 {
15922 return kstat_open ();
15923 ;
15924 return 0;
15925 }
15926 _ACEOF
15927 rm -f conftest.$ac_objext conftest$ac_exeext
15928 if { (ac_try="$ac_link"
15929 case "(($ac_try" in
15930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15931 *) ac_try_echo=$ac_try;;
15932 esac
15933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15934 (eval "$ac_link") 2>conftest.er1
15935 ac_status=$?
15936 grep -v '^ *+' conftest.er1 >conftest.err
15937 rm -f conftest.er1
15938 cat conftest.err >&5
15939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940 (exit $ac_status); } && {
15941 test -z "$ac_c_werror_flag" ||
15942 test ! -s conftest.err
15943 } && test -s conftest$ac_exeext &&
15944 $as_test_x conftest$ac_exeext; then
15945 ac_cv_lib_kstat_kstat_open=yes
15946 else
15947 echo "$as_me: failed program was:" >&5
15948 sed 's/^/| /' conftest.$ac_ext >&5
15949
15950 ac_cv_lib_kstat_kstat_open=no
15951 fi
15952
15953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15954 conftest$ac_exeext conftest.$ac_ext
15955 LIBS=$ac_check_lib_save_LIBS
15956 fi
15957 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
15958 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
15959 if test $ac_cv_lib_kstat_kstat_open = yes; then
15960 cat >>confdefs.h <<_ACEOF
15961 #define HAVE_LIBKSTAT 1
15962 _ACEOF
15963
15964 LIBS="-lkstat $LIBS"
15965
15966 fi
15967
15968 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
15969
15970 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15971 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15972 # to get the right answer into the cache.
15973 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
15974 if test $ac_have_func = no; then
15975 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
15976 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
15977 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15978 echo $ECHO_N "(cached) $ECHO_C" >&6
15979 else
15980 ac_check_lib_save_LIBS=$LIBS
15981 LIBS="-lelf $LIBS"
15982 cat >conftest.$ac_ext <<_ACEOF
15983 /* confdefs.h. */
15984 _ACEOF
15985 cat confdefs.h >>conftest.$ac_ext
15986 cat >>conftest.$ac_ext <<_ACEOF
15987 /* end confdefs.h. */
15988
15989 /* Override any GCC internal prototype to avoid an error.
15990 Use char because int might match the return type of a GCC
15991 builtin and then its argument prototype would still apply. */
15992 #ifdef __cplusplus
15993 extern "C"
15994 #endif
15995 char elf_begin ();
15996 int
15997 main ()
15998 {
15999 return elf_begin ();
16000 ;
16001 return 0;
16002 }
16003 _ACEOF
16004 rm -f conftest.$ac_objext conftest$ac_exeext
16005 if { (ac_try="$ac_link"
16006 case "(($ac_try" in
16007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16008 *) ac_try_echo=$ac_try;;
16009 esac
16010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16011 (eval "$ac_link") 2>conftest.er1
16012 ac_status=$?
16013 grep -v '^ *+' conftest.er1 >conftest.err
16014 rm -f conftest.er1
16015 cat conftest.err >&5
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); } && {
16018 test -z "$ac_c_werror_flag" ||
16019 test ! -s conftest.err
16020 } && test -s conftest$ac_exeext &&
16021 $as_test_x conftest$ac_exeext; then
16022 ac_cv_lib_elf_elf_begin=yes
16023 else
16024 echo "$as_me: failed program was:" >&5
16025 sed 's/^/| /' conftest.$ac_ext >&5
16026
16027 ac_cv_lib_elf_elf_begin=no
16028 fi
16029
16030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16031 conftest$ac_exeext conftest.$ac_ext
16032 LIBS=$ac_check_lib_save_LIBS
16033 fi
16034 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
16035 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16036 if test $ac_cv_lib_elf_elf_begin = yes; then
16037 LIBS="-lelf $LIBS"
16038 fi
16039
16040 fi
16041 if test $ac_have_func = no; then
16042 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
16043 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
16044 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16045 echo $ECHO_N "(cached) $ECHO_C" >&6
16046 else
16047 ac_check_lib_save_LIBS=$LIBS
16048 LIBS="-lkvm $LIBS"
16049 cat >conftest.$ac_ext <<_ACEOF
16050 /* confdefs.h. */
16051 _ACEOF
16052 cat confdefs.h >>conftest.$ac_ext
16053 cat >>conftest.$ac_ext <<_ACEOF
16054 /* end confdefs.h. */
16055
16056 /* Override any GCC internal prototype to avoid an error.
16057 Use char because int might match the return type of a GCC
16058 builtin and then its argument prototype would still apply. */
16059 #ifdef __cplusplus
16060 extern "C"
16061 #endif
16062 char kvm_open ();
16063 int
16064 main ()
16065 {
16066 return kvm_open ();
16067 ;
16068 return 0;
16069 }
16070 _ACEOF
16071 rm -f conftest.$ac_objext conftest$ac_exeext
16072 if { (ac_try="$ac_link"
16073 case "(($ac_try" in
16074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16075 *) ac_try_echo=$ac_try;;
16076 esac
16077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16078 (eval "$ac_link") 2>conftest.er1
16079 ac_status=$?
16080 grep -v '^ *+' conftest.er1 >conftest.err
16081 rm -f conftest.er1
16082 cat conftest.err >&5
16083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084 (exit $ac_status); } && {
16085 test -z "$ac_c_werror_flag" ||
16086 test ! -s conftest.err
16087 } && test -s conftest$ac_exeext &&
16088 $as_test_x conftest$ac_exeext; then
16089 ac_cv_lib_kvm_kvm_open=yes
16090 else
16091 echo "$as_me: failed program was:" >&5
16092 sed 's/^/| /' conftest.$ac_ext >&5
16093
16094 ac_cv_lib_kvm_kvm_open=no
16095 fi
16096
16097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16098 conftest$ac_exeext conftest.$ac_ext
16099 LIBS=$ac_check_lib_save_LIBS
16100 fi
16101 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
16102 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16103 if test $ac_cv_lib_kvm_kvm_open = yes; then
16104 LIBS="-lkvm $LIBS"
16105 fi
16106
16107 # Check for the 4.4BSD definition of getloadavg.
16108 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
16109 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
16110 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16111 echo $ECHO_N "(cached) $ECHO_C" >&6
16112 else
16113 ac_check_lib_save_LIBS=$LIBS
16114 LIBS="-lutil $LIBS"
16115 cat >conftest.$ac_ext <<_ACEOF
16116 /* confdefs.h. */
16117 _ACEOF
16118 cat confdefs.h >>conftest.$ac_ext
16119 cat >>conftest.$ac_ext <<_ACEOF
16120 /* end confdefs.h. */
16121
16122 /* Override any GCC internal prototype to avoid an error.
16123 Use char because int might match the return type of a GCC
16124 builtin and then its argument prototype would still apply. */
16125 #ifdef __cplusplus
16126 extern "C"
16127 #endif
16128 char getloadavg ();
16129 int
16130 main ()
16131 {
16132 return getloadavg ();
16133 ;
16134 return 0;
16135 }
16136 _ACEOF
16137 rm -f conftest.$ac_objext conftest$ac_exeext
16138 if { (ac_try="$ac_link"
16139 case "(($ac_try" in
16140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16141 *) ac_try_echo=$ac_try;;
16142 esac
16143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16144 (eval "$ac_link") 2>conftest.er1
16145 ac_status=$?
16146 grep -v '^ *+' conftest.er1 >conftest.err
16147 rm -f conftest.er1
16148 cat conftest.err >&5
16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); } && {
16151 test -z "$ac_c_werror_flag" ||
16152 test ! -s conftest.err
16153 } && test -s conftest$ac_exeext &&
16154 $as_test_x conftest$ac_exeext; then
16155 ac_cv_lib_util_getloadavg=yes
16156 else
16157 echo "$as_me: failed program was:" >&5
16158 sed 's/^/| /' conftest.$ac_ext >&5
16159
16160 ac_cv_lib_util_getloadavg=no
16161 fi
16162
16163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16164 conftest$ac_exeext conftest.$ac_ext
16165 LIBS=$ac_check_lib_save_LIBS
16166 fi
16167 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
16168 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16169 if test $ac_cv_lib_util_getloadavg = yes; then
16170 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16171 fi
16172
16173 fi
16174
16175 if test $ac_have_func = no; then
16176 # There is a commonly available library for RS/6000 AIX.
16177 # Since it is not a standard part of AIX, it might be installed locally.
16178 ac_getloadavg_LIBS=$LIBS
16179 LIBS="-L/usr/local/lib $LIBS"
16180 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
16181 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
16182 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16183 echo $ECHO_N "(cached) $ECHO_C" >&6
16184 else
16185 ac_check_lib_save_LIBS=$LIBS
16186 LIBS="-lgetloadavg $LIBS"
16187 cat >conftest.$ac_ext <<_ACEOF
16188 /* confdefs.h. */
16189 _ACEOF
16190 cat confdefs.h >>conftest.$ac_ext
16191 cat >>conftest.$ac_ext <<_ACEOF
16192 /* end confdefs.h. */
16193
16194 /* Override any GCC internal prototype to avoid an error.
16195 Use char because int might match the return type of a GCC
16196 builtin and then its argument prototype would still apply. */
16197 #ifdef __cplusplus
16198 extern "C"
16199 #endif
16200 char getloadavg ();
16201 int
16202 main ()
16203 {
16204 return getloadavg ();
16205 ;
16206 return 0;
16207 }
16208 _ACEOF
16209 rm -f conftest.$ac_objext conftest$ac_exeext
16210 if { (ac_try="$ac_link"
16211 case "(($ac_try" in
16212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16213 *) ac_try_echo=$ac_try;;
16214 esac
16215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16216 (eval "$ac_link") 2>conftest.er1
16217 ac_status=$?
16218 grep -v '^ *+' conftest.er1 >conftest.err
16219 rm -f conftest.er1
16220 cat conftest.err >&5
16221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222 (exit $ac_status); } && {
16223 test -z "$ac_c_werror_flag" ||
16224 test ! -s conftest.err
16225 } && test -s conftest$ac_exeext &&
16226 $as_test_x conftest$ac_exeext; then
16227 ac_cv_lib_getloadavg_getloadavg=yes
16228 else
16229 echo "$as_me: failed program was:" >&5
16230 sed 's/^/| /' conftest.$ac_ext >&5
16231
16232 ac_cv_lib_getloadavg_getloadavg=no
16233 fi
16234
16235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16236 conftest$ac_exeext conftest.$ac_ext
16237 LIBS=$ac_check_lib_save_LIBS
16238 fi
16239 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
16240 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16241 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16242 LIBS="-lgetloadavg $LIBS"
16243 else
16244 LIBS=$ac_getloadavg_LIBS
16245 fi
16246
16247 fi
16248
16249 # Make sure it is really in the library, if we think we found it,
16250 # otherwise set up the replacement function.
16251
16252 for ac_func in getloadavg
16253 do
16254 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16255 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16257 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16258 echo $ECHO_N "(cached) $ECHO_C" >&6
16259 else
16260 cat >conftest.$ac_ext <<_ACEOF
16261 /* confdefs.h. */
16262 _ACEOF
16263 cat confdefs.h >>conftest.$ac_ext
16264 cat >>conftest.$ac_ext <<_ACEOF
16265 /* end confdefs.h. */
16266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16268 #define $ac_func innocuous_$ac_func
16269
16270 /* System header to define __stub macros and hopefully few prototypes,
16271 which can conflict with char $ac_func (); below.
16272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16273 <limits.h> exists even on freestanding compilers. */
16274
16275 #ifdef __STDC__
16276 # include <limits.h>
16277 #else
16278 # include <assert.h>
16279 #endif
16280
16281 #undef $ac_func
16282
16283 /* Override any GCC internal prototype to avoid an error.
16284 Use char because int might match the return type of a GCC
16285 builtin and then its argument prototype would still apply. */
16286 #ifdef __cplusplus
16287 extern "C"
16288 #endif
16289 char $ac_func ();
16290 /* The GNU C library defines this for functions which it implements
16291 to always fail with ENOSYS. Some functions are actually named
16292 something starting with __ and the normal name is an alias. */
16293 #if defined __stub_$ac_func || defined __stub___$ac_func
16294 choke me
16295 #endif
16296
16297 int
16298 main ()
16299 {
16300 return $ac_func ();
16301 ;
16302 return 0;
16303 }
16304 _ACEOF
16305 rm -f conftest.$ac_objext conftest$ac_exeext
16306 if { (ac_try="$ac_link"
16307 case "(($ac_try" in
16308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16309 *) ac_try_echo=$ac_try;;
16310 esac
16311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16312 (eval "$ac_link") 2>conftest.er1
16313 ac_status=$?
16314 grep -v '^ *+' conftest.er1 >conftest.err
16315 rm -f conftest.er1
16316 cat conftest.err >&5
16317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318 (exit $ac_status); } && {
16319 test -z "$ac_c_werror_flag" ||
16320 test ! -s conftest.err
16321 } && test -s conftest$ac_exeext &&
16322 $as_test_x conftest$ac_exeext; then
16323 eval "$as_ac_var=yes"
16324 else
16325 echo "$as_me: failed program was:" >&5
16326 sed 's/^/| /' conftest.$ac_ext >&5
16327
16328 eval "$as_ac_var=no"
16329 fi
16330
16331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16332 conftest$ac_exeext conftest.$ac_ext
16333 fi
16334 ac_res=`eval echo '${'$as_ac_var'}'`
16335 { echo "$as_me:$LINENO: result: $ac_res" >&5
16336 echo "${ECHO_T}$ac_res" >&6; }
16337 if test `eval echo '${'$as_ac_var'}'` = yes; then
16338 cat >>confdefs.h <<_ACEOF
16339 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16340 _ACEOF
16341
16342 else
16343 case " $LIBOBJS " in
16344 *" getloadavg.$ac_objext "* ) ;;
16345 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
16346 ;;
16347 esac
16348
16349
16350 cat >>confdefs.h <<\_ACEOF
16351 #define C_GETLOADAVG 1
16352 _ACEOF
16353
16354 # Figure out what our getloadavg.c needs.
16355 ac_have_func=no
16356 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16357 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16358 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
16359 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16360 echo $ECHO_N "(cached) $ECHO_C" >&6
16361 fi
16362 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16363 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16364 else
16365 # Is the header compilable?
16366 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
16367 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
16368 cat >conftest.$ac_ext <<_ACEOF
16369 /* confdefs.h. */
16370 _ACEOF
16371 cat confdefs.h >>conftest.$ac_ext
16372 cat >>conftest.$ac_ext <<_ACEOF
16373 /* end confdefs.h. */
16374 $ac_includes_default
16375 #include <sys/dg_sys_info.h>
16376 _ACEOF
16377 rm -f conftest.$ac_objext
16378 if { (ac_try="$ac_compile"
16379 case "(($ac_try" in
16380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16381 *) ac_try_echo=$ac_try;;
16382 esac
16383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16384 (eval "$ac_compile") 2>conftest.er1
16385 ac_status=$?
16386 grep -v '^ *+' conftest.er1 >conftest.err
16387 rm -f conftest.er1
16388 cat conftest.err >&5
16389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390 (exit $ac_status); } && {
16391 test -z "$ac_c_werror_flag" ||
16392 test ! -s conftest.err
16393 } && test -s conftest.$ac_objext; then
16394 ac_header_compiler=yes
16395 else
16396 echo "$as_me: failed program was:" >&5
16397 sed 's/^/| /' conftest.$ac_ext >&5
16398
16399 ac_header_compiler=no
16400 fi
16401
16402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16403 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16404 echo "${ECHO_T}$ac_header_compiler" >&6; }
16405
16406 # Is the header present?
16407 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
16408 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
16409 cat >conftest.$ac_ext <<_ACEOF
16410 /* confdefs.h. */
16411 _ACEOF
16412 cat confdefs.h >>conftest.$ac_ext
16413 cat >>conftest.$ac_ext <<_ACEOF
16414 /* end confdefs.h. */
16415 #include <sys/dg_sys_info.h>
16416 _ACEOF
16417 if { (ac_try="$ac_cpp conftest.$ac_ext"
16418 case "(($ac_try" in
16419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16420 *) ac_try_echo=$ac_try;;
16421 esac
16422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16423 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16424 ac_status=$?
16425 grep -v '^ *+' conftest.er1 >conftest.err
16426 rm -f conftest.er1
16427 cat conftest.err >&5
16428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429 (exit $ac_status); } >/dev/null && {
16430 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16431 test ! -s conftest.err
16432 }; then
16433 ac_header_preproc=yes
16434 else
16435 echo "$as_me: failed program was:" >&5
16436 sed 's/^/| /' conftest.$ac_ext >&5
16437
16438 ac_header_preproc=no
16439 fi
16440
16441 rm -f conftest.err conftest.$ac_ext
16442 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16443 echo "${ECHO_T}$ac_header_preproc" >&6; }
16444
16445 # So? What about this header?
16446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16447 yes:no: )
16448 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
16449 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16450 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
16451 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
16452 ac_header_preproc=yes
16453 ;;
16454 no:yes:* )
16455 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
16456 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
16457 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
16458 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
16459 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
16460 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
16461 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
16462 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
16463 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
16464 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
16465 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
16466 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
16467
16468 ;;
16469 esac
16470 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16471 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
16472 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16473 echo $ECHO_N "(cached) $ECHO_C" >&6
16474 else
16475 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16476 fi
16477 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16478 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16479
16480 fi
16481 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16482 ac_have_func=yes
16483
16484 cat >>confdefs.h <<\_ACEOF
16485 #define DGUX 1
16486 _ACEOF
16487
16488
16489 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16490 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
16491 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16492 echo $ECHO_N "(cached) $ECHO_C" >&6
16493 else
16494 ac_check_lib_save_LIBS=$LIBS
16495 LIBS="-ldgc $LIBS"
16496 cat >conftest.$ac_ext <<_ACEOF
16497 /* confdefs.h. */
16498 _ACEOF
16499 cat confdefs.h >>conftest.$ac_ext
16500 cat >>conftest.$ac_ext <<_ACEOF
16501 /* end confdefs.h. */
16502
16503 /* Override any GCC internal prototype to avoid an error.
16504 Use char because int might match the return type of a GCC
16505 builtin and then its argument prototype would still apply. */
16506 #ifdef __cplusplus
16507 extern "C"
16508 #endif
16509 char dg_sys_info ();
16510 int
16511 main ()
16512 {
16513 return dg_sys_info ();
16514 ;
16515 return 0;
16516 }
16517 _ACEOF
16518 rm -f conftest.$ac_objext conftest$ac_exeext
16519 if { (ac_try="$ac_link"
16520 case "(($ac_try" in
16521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16522 *) ac_try_echo=$ac_try;;
16523 esac
16524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16525 (eval "$ac_link") 2>conftest.er1
16526 ac_status=$?
16527 grep -v '^ *+' conftest.er1 >conftest.err
16528 rm -f conftest.er1
16529 cat conftest.err >&5
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); } && {
16532 test -z "$ac_c_werror_flag" ||
16533 test ! -s conftest.err
16534 } && test -s conftest$ac_exeext &&
16535 $as_test_x conftest$ac_exeext; then
16536 ac_cv_lib_dgc_dg_sys_info=yes
16537 else
16538 echo "$as_me: failed program was:" >&5
16539 sed 's/^/| /' conftest.$ac_ext >&5
16540
16541 ac_cv_lib_dgc_dg_sys_info=no
16542 fi
16543
16544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16545 conftest$ac_exeext conftest.$ac_ext
16546 LIBS=$ac_check_lib_save_LIBS
16547 fi
16548 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16549 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
16550 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16551 cat >>confdefs.h <<_ACEOF
16552 #define HAVE_LIBDGC 1
16553 _ACEOF
16554
16555 LIBS="-ldgc $LIBS"
16556
16557 fi
16558
16559 fi
16560
16561
16562
16563 if test "${ac_cv_header_locale_h+set}" = set; then
16564 { echo "$as_me:$LINENO: checking for locale.h" >&5
16565 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
16566 if test "${ac_cv_header_locale_h+set}" = set; then
16567 echo $ECHO_N "(cached) $ECHO_C" >&6
16568 fi
16569 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16570 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16571 else
16572 # Is the header compilable?
16573 { echo "$as_me:$LINENO: checking locale.h usability" >&5
16574 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
16575 cat >conftest.$ac_ext <<_ACEOF
16576 /* confdefs.h. */
16577 _ACEOF
16578 cat confdefs.h >>conftest.$ac_ext
16579 cat >>conftest.$ac_ext <<_ACEOF
16580 /* end confdefs.h. */
16581 $ac_includes_default
16582 #include <locale.h>
16583 _ACEOF
16584 rm -f conftest.$ac_objext
16585 if { (ac_try="$ac_compile"
16586 case "(($ac_try" in
16587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16588 *) ac_try_echo=$ac_try;;
16589 esac
16590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16591 (eval "$ac_compile") 2>conftest.er1
16592 ac_status=$?
16593 grep -v '^ *+' conftest.er1 >conftest.err
16594 rm -f conftest.er1
16595 cat conftest.err >&5
16596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597 (exit $ac_status); } && {
16598 test -z "$ac_c_werror_flag" ||
16599 test ! -s conftest.err
16600 } && test -s conftest.$ac_objext; then
16601 ac_header_compiler=yes
16602 else
16603 echo "$as_me: failed program was:" >&5
16604 sed 's/^/| /' conftest.$ac_ext >&5
16605
16606 ac_header_compiler=no
16607 fi
16608
16609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16610 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16611 echo "${ECHO_T}$ac_header_compiler" >&6; }
16612
16613 # Is the header present?
16614 { echo "$as_me:$LINENO: checking locale.h presence" >&5
16615 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
16616 cat >conftest.$ac_ext <<_ACEOF
16617 /* confdefs.h. */
16618 _ACEOF
16619 cat confdefs.h >>conftest.$ac_ext
16620 cat >>conftest.$ac_ext <<_ACEOF
16621 /* end confdefs.h. */
16622 #include <locale.h>
16623 _ACEOF
16624 if { (ac_try="$ac_cpp conftest.$ac_ext"
16625 case "(($ac_try" in
16626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16627 *) ac_try_echo=$ac_try;;
16628 esac
16629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16631 ac_status=$?
16632 grep -v '^ *+' conftest.er1 >conftest.err
16633 rm -f conftest.er1
16634 cat conftest.err >&5
16635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16636 (exit $ac_status); } >/dev/null && {
16637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16638 test ! -s conftest.err
16639 }; then
16640 ac_header_preproc=yes
16641 else
16642 echo "$as_me: failed program was:" >&5
16643 sed 's/^/| /' conftest.$ac_ext >&5
16644
16645 ac_header_preproc=no
16646 fi
16647
16648 rm -f conftest.err conftest.$ac_ext
16649 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16650 echo "${ECHO_T}$ac_header_preproc" >&6; }
16651
16652 # So? What about this header?
16653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16654 yes:no: )
16655 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
16656 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16657 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
16658 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
16659 ac_header_preproc=yes
16660 ;;
16661 no:yes:* )
16662 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
16663 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
16664 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
16665 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
16666 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
16667 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
16668 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
16669 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
16670 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
16671 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
16672 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
16673 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
16674
16675 ;;
16676 esac
16677 { echo "$as_me:$LINENO: checking for locale.h" >&5
16678 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
16679 if test "${ac_cv_header_locale_h+set}" = set; then
16680 echo $ECHO_N "(cached) $ECHO_C" >&6
16681 else
16682 ac_cv_header_locale_h=$ac_header_preproc
16683 fi
16684 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16685 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16686
16687 fi
16688
16689
16690
16691 for ac_func in setlocale
16692 do
16693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16694 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16696 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16697 echo $ECHO_N "(cached) $ECHO_C" >&6
16698 else
16699 cat >conftest.$ac_ext <<_ACEOF
16700 /* confdefs.h. */
16701 _ACEOF
16702 cat confdefs.h >>conftest.$ac_ext
16703 cat >>conftest.$ac_ext <<_ACEOF
16704 /* end confdefs.h. */
16705 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16706 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16707 #define $ac_func innocuous_$ac_func
16708
16709 /* System header to define __stub macros and hopefully few prototypes,
16710 which can conflict with char $ac_func (); below.
16711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16712 <limits.h> exists even on freestanding compilers. */
16713
16714 #ifdef __STDC__
16715 # include <limits.h>
16716 #else
16717 # include <assert.h>
16718 #endif
16719
16720 #undef $ac_func
16721
16722 /* Override any GCC internal prototype to avoid an error.
16723 Use char because int might match the return type of a GCC
16724 builtin and then its argument prototype would still apply. */
16725 #ifdef __cplusplus
16726 extern "C"
16727 #endif
16728 char $ac_func ();
16729 /* The GNU C library defines this for functions which it implements
16730 to always fail with ENOSYS. Some functions are actually named
16731 something starting with __ and the normal name is an alias. */
16732 #if defined __stub_$ac_func || defined __stub___$ac_func
16733 choke me
16734 #endif
16735
16736 int
16737 main ()
16738 {
16739 return $ac_func ();
16740 ;
16741 return 0;
16742 }
16743 _ACEOF
16744 rm -f conftest.$ac_objext conftest$ac_exeext
16745 if { (ac_try="$ac_link"
16746 case "(($ac_try" in
16747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16748 *) ac_try_echo=$ac_try;;
16749 esac
16750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16751 (eval "$ac_link") 2>conftest.er1
16752 ac_status=$?
16753 grep -v '^ *+' conftest.er1 >conftest.err
16754 rm -f conftest.er1
16755 cat conftest.err >&5
16756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757 (exit $ac_status); } && {
16758 test -z "$ac_c_werror_flag" ||
16759 test ! -s conftest.err
16760 } && test -s conftest$ac_exeext &&
16761 $as_test_x conftest$ac_exeext; then
16762 eval "$as_ac_var=yes"
16763 else
16764 echo "$as_me: failed program was:" >&5
16765 sed 's/^/| /' conftest.$ac_ext >&5
16766
16767 eval "$as_ac_var=no"
16768 fi
16769
16770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16771 conftest$ac_exeext conftest.$ac_ext
16772 fi
16773 ac_res=`eval echo '${'$as_ac_var'}'`
16774 { echo "$as_me:$LINENO: result: $ac_res" >&5
16775 echo "${ECHO_T}$ac_res" >&6; }
16776 if test `eval echo '${'$as_ac_var'}'` = yes; then
16777 cat >>confdefs.h <<_ACEOF
16778 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16779 _ACEOF
16780
16781 fi
16782 done
16783
16784
16785 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
16786 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
16787 # Irix 4.0.5F has the header but not the library.
16788 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
16789 ac_have_func=yes
16790
16791 cat >>confdefs.h <<\_ACEOF
16792 #define SVR4 1
16793 _ACEOF
16794
16795 fi
16796
16797 if test $ac_have_func = no; then
16798 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16799 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16800 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
16801 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16802 echo $ECHO_N "(cached) $ECHO_C" >&6
16803 fi
16804 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16805 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
16806 else
16807 # Is the header compilable?
16808 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
16809 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
16810 cat >conftest.$ac_ext <<_ACEOF
16811 /* confdefs.h. */
16812 _ACEOF
16813 cat confdefs.h >>conftest.$ac_ext
16814 cat >>conftest.$ac_ext <<_ACEOF
16815 /* end confdefs.h. */
16816 $ac_includes_default
16817 #include <inq_stats/cpustats.h>
16818 _ACEOF
16819 rm -f conftest.$ac_objext
16820 if { (ac_try="$ac_compile"
16821 case "(($ac_try" in
16822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16823 *) ac_try_echo=$ac_try;;
16824 esac
16825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16826 (eval "$ac_compile") 2>conftest.er1
16827 ac_status=$?
16828 grep -v '^ *+' conftest.er1 >conftest.err
16829 rm -f conftest.er1
16830 cat conftest.err >&5
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); } && {
16833 test -z "$ac_c_werror_flag" ||
16834 test ! -s conftest.err
16835 } && test -s conftest.$ac_objext; then
16836 ac_header_compiler=yes
16837 else
16838 echo "$as_me: failed program was:" >&5
16839 sed 's/^/| /' conftest.$ac_ext >&5
16840
16841 ac_header_compiler=no
16842 fi
16843
16844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16845 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16846 echo "${ECHO_T}$ac_header_compiler" >&6; }
16847
16848 # Is the header present?
16849 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
16850 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
16851 cat >conftest.$ac_ext <<_ACEOF
16852 /* confdefs.h. */
16853 _ACEOF
16854 cat confdefs.h >>conftest.$ac_ext
16855 cat >>conftest.$ac_ext <<_ACEOF
16856 /* end confdefs.h. */
16857 #include <inq_stats/cpustats.h>
16858 _ACEOF
16859 if { (ac_try="$ac_cpp conftest.$ac_ext"
16860 case "(($ac_try" in
16861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16862 *) ac_try_echo=$ac_try;;
16863 esac
16864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16866 ac_status=$?
16867 grep -v '^ *+' conftest.er1 >conftest.err
16868 rm -f conftest.er1
16869 cat conftest.err >&5
16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 (exit $ac_status); } >/dev/null && {
16872 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16873 test ! -s conftest.err
16874 }; then
16875 ac_header_preproc=yes
16876 else
16877 echo "$as_me: failed program was:" >&5
16878 sed 's/^/| /' conftest.$ac_ext >&5
16879
16880 ac_header_preproc=no
16881 fi
16882
16883 rm -f conftest.err conftest.$ac_ext
16884 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16885 echo "${ECHO_T}$ac_header_preproc" >&6; }
16886
16887 # So? What about this header?
16888 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16889 yes:no: )
16890 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16891 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16892 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
16893 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
16894 ac_header_preproc=yes
16895 ;;
16896 no:yes:* )
16897 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
16898 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
16899 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
16900 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
16901 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
16902 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
16903 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16904 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16905 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
16906 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
16907 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
16908 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
16909
16910 ;;
16911 esac
16912 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16913 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
16914 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16915 echo $ECHO_N "(cached) $ECHO_C" >&6
16916 else
16917 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
16918 fi
16919 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16920 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
16921
16922 fi
16923 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16924 ac_have_func=yes
16925
16926 cat >>confdefs.h <<\_ACEOF
16927 #define UMAX 1
16928 _ACEOF
16929
16930
16931 cat >>confdefs.h <<\_ACEOF
16932 #define UMAX4_3 1
16933 _ACEOF
16934
16935 fi
16936
16937
16938 fi
16939
16940 if test $ac_have_func = no; then
16941 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16942 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16943 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
16944 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16945 echo $ECHO_N "(cached) $ECHO_C" >&6
16946 fi
16947 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16948 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
16949 else
16950 # Is the header compilable?
16951 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16952 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
16953 cat >conftest.$ac_ext <<_ACEOF
16954 /* confdefs.h. */
16955 _ACEOF
16956 cat confdefs.h >>conftest.$ac_ext
16957 cat >>conftest.$ac_ext <<_ACEOF
16958 /* end confdefs.h. */
16959 $ac_includes_default
16960 #include <sys/cpustats.h>
16961 _ACEOF
16962 rm -f conftest.$ac_objext
16963 if { (ac_try="$ac_compile"
16964 case "(($ac_try" in
16965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16966 *) ac_try_echo=$ac_try;;
16967 esac
16968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16969 (eval "$ac_compile") 2>conftest.er1
16970 ac_status=$?
16971 grep -v '^ *+' conftest.er1 >conftest.err
16972 rm -f conftest.er1
16973 cat conftest.err >&5
16974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975 (exit $ac_status); } && {
16976 test -z "$ac_c_werror_flag" ||
16977 test ! -s conftest.err
16978 } && test -s conftest.$ac_objext; then
16979 ac_header_compiler=yes
16980 else
16981 echo "$as_me: failed program was:" >&5
16982 sed 's/^/| /' conftest.$ac_ext >&5
16983
16984 ac_header_compiler=no
16985 fi
16986
16987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16988 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16989 echo "${ECHO_T}$ac_header_compiler" >&6; }
16990
16991 # Is the header present?
16992 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16993 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
16994 cat >conftest.$ac_ext <<_ACEOF
16995 /* confdefs.h. */
16996 _ACEOF
16997 cat confdefs.h >>conftest.$ac_ext
16998 cat >>conftest.$ac_ext <<_ACEOF
16999 /* end confdefs.h. */
17000 #include <sys/cpustats.h>
17001 _ACEOF
17002 if { (ac_try="$ac_cpp conftest.$ac_ext"
17003 case "(($ac_try" in
17004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17005 *) ac_try_echo=$ac_try;;
17006 esac
17007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17008 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17009 ac_status=$?
17010 grep -v '^ *+' conftest.er1 >conftest.err
17011 rm -f conftest.er1
17012 cat conftest.err >&5
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); } >/dev/null && {
17015 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17016 test ! -s conftest.err
17017 }; then
17018 ac_header_preproc=yes
17019 else
17020 echo "$as_me: failed program was:" >&5
17021 sed 's/^/| /' conftest.$ac_ext >&5
17022
17023 ac_header_preproc=no
17024 fi
17025
17026 rm -f conftest.err conftest.$ac_ext
17027 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17028 echo "${ECHO_T}$ac_header_preproc" >&6; }
17029
17030 # So? What about this header?
17031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17032 yes:no: )
17033 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17034 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17035 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
17036 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
17037 ac_header_preproc=yes
17038 ;;
17039 no:yes:* )
17040 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
17041 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
17042 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
17043 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
17044 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
17045 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
17046 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17047 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17048 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
17049 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
17050 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
17051 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
17052
17053 ;;
17054 esac
17055 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17056 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17057 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17058 echo $ECHO_N "(cached) $ECHO_C" >&6
17059 else
17060 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17061 fi
17062 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17063 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17064
17065 fi
17066 if test $ac_cv_header_sys_cpustats_h = yes; then
17067 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17068 #define UMAX 1
17069 _ACEOF
17070
17071 fi
17072
17073
17074 fi
17075
17076 if test $ac_have_func = no; then
17077
17078 for ac_header in mach/mach.h
17079 do
17080 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17082 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17085 echo $ECHO_N "(cached) $ECHO_C" >&6
17086 fi
17087 ac_res=`eval echo '${'$as_ac_Header'}'`
17088 { echo "$as_me:$LINENO: result: $ac_res" >&5
17089 echo "${ECHO_T}$ac_res" >&6; }
17090 else
17091 # Is the header compilable?
17092 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17093 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17094 cat >conftest.$ac_ext <<_ACEOF
17095 /* confdefs.h. */
17096 _ACEOF
17097 cat confdefs.h >>conftest.$ac_ext
17098 cat >>conftest.$ac_ext <<_ACEOF
17099 /* end confdefs.h. */
17100 $ac_includes_default
17101 #include <$ac_header>
17102 _ACEOF
17103 rm -f conftest.$ac_objext
17104 if { (ac_try="$ac_compile"
17105 case "(($ac_try" in
17106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17107 *) ac_try_echo=$ac_try;;
17108 esac
17109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17110 (eval "$ac_compile") 2>conftest.er1
17111 ac_status=$?
17112 grep -v '^ *+' conftest.er1 >conftest.err
17113 rm -f conftest.er1
17114 cat conftest.err >&5
17115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116 (exit $ac_status); } && {
17117 test -z "$ac_c_werror_flag" ||
17118 test ! -s conftest.err
17119 } && test -s conftest.$ac_objext; then
17120 ac_header_compiler=yes
17121 else
17122 echo "$as_me: failed program was:" >&5
17123 sed 's/^/| /' conftest.$ac_ext >&5
17124
17125 ac_header_compiler=no
17126 fi
17127
17128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17129 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17130 echo "${ECHO_T}$ac_header_compiler" >&6; }
17131
17132 # Is the header present?
17133 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17134 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17135 cat >conftest.$ac_ext <<_ACEOF
17136 /* confdefs.h. */
17137 _ACEOF
17138 cat confdefs.h >>conftest.$ac_ext
17139 cat >>conftest.$ac_ext <<_ACEOF
17140 /* end confdefs.h. */
17141 #include <$ac_header>
17142 _ACEOF
17143 if { (ac_try="$ac_cpp conftest.$ac_ext"
17144 case "(($ac_try" in
17145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17146 *) ac_try_echo=$ac_try;;
17147 esac
17148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17150 ac_status=$?
17151 grep -v '^ *+' conftest.er1 >conftest.err
17152 rm -f conftest.er1
17153 cat conftest.err >&5
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); } >/dev/null && {
17156 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17157 test ! -s conftest.err
17158 }; then
17159 ac_header_preproc=yes
17160 else
17161 echo "$as_me: failed program was:" >&5
17162 sed 's/^/| /' conftest.$ac_ext >&5
17163
17164 ac_header_preproc=no
17165 fi
17166
17167 rm -f conftest.err conftest.$ac_ext
17168 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17169 echo "${ECHO_T}$ac_header_preproc" >&6; }
17170
17171 # So? What about this header?
17172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17173 yes:no: )
17174 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17175 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17177 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17178 ac_header_preproc=yes
17179 ;;
17180 no:yes:* )
17181 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17182 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17183 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17184 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17185 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17186 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17187 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17188 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17190 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17191 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17192 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17193
17194 ;;
17195 esac
17196 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17199 echo $ECHO_N "(cached) $ECHO_C" >&6
17200 else
17201 eval "$as_ac_Header=\$ac_header_preproc"
17202 fi
17203 ac_res=`eval echo '${'$as_ac_Header'}'`
17204 { echo "$as_me:$LINENO: result: $ac_res" >&5
17205 echo "${ECHO_T}$ac_res" >&6; }
17206
17207 fi
17208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17209 cat >>confdefs.h <<_ACEOF
17210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17211 _ACEOF
17212
17213 fi
17214
17215 done
17216
17217 fi
17218
17219
17220 for ac_header in nlist.h
17221 do
17222 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17224 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17227 echo $ECHO_N "(cached) $ECHO_C" >&6
17228 fi
17229 ac_res=`eval echo '${'$as_ac_Header'}'`
17230 { echo "$as_me:$LINENO: result: $ac_res" >&5
17231 echo "${ECHO_T}$ac_res" >&6; }
17232 else
17233 # Is the header compilable?
17234 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17235 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17236 cat >conftest.$ac_ext <<_ACEOF
17237 /* confdefs.h. */
17238 _ACEOF
17239 cat confdefs.h >>conftest.$ac_ext
17240 cat >>conftest.$ac_ext <<_ACEOF
17241 /* end confdefs.h. */
17242 $ac_includes_default
17243 #include <$ac_header>
17244 _ACEOF
17245 rm -f conftest.$ac_objext
17246 if { (ac_try="$ac_compile"
17247 case "(($ac_try" in
17248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17249 *) ac_try_echo=$ac_try;;
17250 esac
17251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17252 (eval "$ac_compile") 2>conftest.er1
17253 ac_status=$?
17254 grep -v '^ *+' conftest.er1 >conftest.err
17255 rm -f conftest.er1
17256 cat conftest.err >&5
17257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17258 (exit $ac_status); } && {
17259 test -z "$ac_c_werror_flag" ||
17260 test ! -s conftest.err
17261 } && test -s conftest.$ac_objext; then
17262 ac_header_compiler=yes
17263 else
17264 echo "$as_me: failed program was:" >&5
17265 sed 's/^/| /' conftest.$ac_ext >&5
17266
17267 ac_header_compiler=no
17268 fi
17269
17270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17271 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17272 echo "${ECHO_T}$ac_header_compiler" >&6; }
17273
17274 # Is the header present?
17275 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17276 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17277 cat >conftest.$ac_ext <<_ACEOF
17278 /* confdefs.h. */
17279 _ACEOF
17280 cat confdefs.h >>conftest.$ac_ext
17281 cat >>conftest.$ac_ext <<_ACEOF
17282 /* end confdefs.h. */
17283 #include <$ac_header>
17284 _ACEOF
17285 if { (ac_try="$ac_cpp conftest.$ac_ext"
17286 case "(($ac_try" in
17287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17288 *) ac_try_echo=$ac_try;;
17289 esac
17290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17291 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17292 ac_status=$?
17293 grep -v '^ *+' conftest.er1 >conftest.err
17294 rm -f conftest.er1
17295 cat conftest.err >&5
17296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297 (exit $ac_status); } >/dev/null && {
17298 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17299 test ! -s conftest.err
17300 }; then
17301 ac_header_preproc=yes
17302 else
17303 echo "$as_me: failed program was:" >&5
17304 sed 's/^/| /' conftest.$ac_ext >&5
17305
17306 ac_header_preproc=no
17307 fi
17308
17309 rm -f conftest.err conftest.$ac_ext
17310 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17311 echo "${ECHO_T}$ac_header_preproc" >&6; }
17312
17313 # So? What about this header?
17314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17315 yes:no: )
17316 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17317 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17319 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17320 ac_header_preproc=yes
17321 ;;
17322 no:yes:* )
17323 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17324 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17325 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17326 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17327 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17328 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17329 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17330 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17332 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17333 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17334 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17335
17336 ;;
17337 esac
17338 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17341 echo $ECHO_N "(cached) $ECHO_C" >&6
17342 else
17343 eval "$as_ac_Header=\$ac_header_preproc"
17344 fi
17345 ac_res=`eval echo '${'$as_ac_Header'}'`
17346 { echo "$as_me:$LINENO: result: $ac_res" >&5
17347 echo "${ECHO_T}$ac_res" >&6; }
17348
17349 fi
17350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17351 cat >>confdefs.h <<_ACEOF
17352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17353 _ACEOF
17354 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
17355 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
17356 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17357 echo $ECHO_N "(cached) $ECHO_C" >&6
17358 else
17359 cat >conftest.$ac_ext <<_ACEOF
17360 /* confdefs.h. */
17361 _ACEOF
17362 cat confdefs.h >>conftest.$ac_ext
17363 cat >>conftest.$ac_ext <<_ACEOF
17364 /* end confdefs.h. */
17365 #include <nlist.h>
17366
17367 int
17368 main ()
17369 {
17370 static struct nlist ac_aggr;
17371 if (ac_aggr.n_un.n_name)
17372 return 0;
17373 ;
17374 return 0;
17375 }
17376 _ACEOF
17377 rm -f conftest.$ac_objext
17378 if { (ac_try="$ac_compile"
17379 case "(($ac_try" in
17380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17381 *) ac_try_echo=$ac_try;;
17382 esac
17383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17384 (eval "$ac_compile") 2>conftest.er1
17385 ac_status=$?
17386 grep -v '^ *+' conftest.er1 >conftest.err
17387 rm -f conftest.er1
17388 cat conftest.err >&5
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); } && {
17391 test -z "$ac_c_werror_flag" ||
17392 test ! -s conftest.err
17393 } && test -s conftest.$ac_objext; then
17394 ac_cv_member_struct_nlist_n_un_n_name=yes
17395 else
17396 echo "$as_me: failed program was:" >&5
17397 sed 's/^/| /' conftest.$ac_ext >&5
17398
17399 cat >conftest.$ac_ext <<_ACEOF
17400 /* confdefs.h. */
17401 _ACEOF
17402 cat confdefs.h >>conftest.$ac_ext
17403 cat >>conftest.$ac_ext <<_ACEOF
17404 /* end confdefs.h. */
17405 #include <nlist.h>
17406
17407 int
17408 main ()
17409 {
17410 static struct nlist ac_aggr;
17411 if (sizeof ac_aggr.n_un.n_name)
17412 return 0;
17413 ;
17414 return 0;
17415 }
17416 _ACEOF
17417 rm -f conftest.$ac_objext
17418 if { (ac_try="$ac_compile"
17419 case "(($ac_try" in
17420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17421 *) ac_try_echo=$ac_try;;
17422 esac
17423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17424 (eval "$ac_compile") 2>conftest.er1
17425 ac_status=$?
17426 grep -v '^ *+' conftest.er1 >conftest.err
17427 rm -f conftest.er1
17428 cat conftest.err >&5
17429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430 (exit $ac_status); } && {
17431 test -z "$ac_c_werror_flag" ||
17432 test ! -s conftest.err
17433 } && test -s conftest.$ac_objext; then
17434 ac_cv_member_struct_nlist_n_un_n_name=yes
17435 else
17436 echo "$as_me: failed program was:" >&5
17437 sed 's/^/| /' conftest.$ac_ext >&5
17438
17439 ac_cv_member_struct_nlist_n_un_n_name=no
17440 fi
17441
17442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17443 fi
17444
17445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17446 fi
17447 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17448 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
17449 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17450
17451 cat >>confdefs.h <<_ACEOF
17452 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17453 _ACEOF
17454
17455
17456 cat >>confdefs.h <<\_ACEOF
17457 #define NLIST_NAME_UNION 1
17458 _ACEOF
17459
17460 fi
17461
17462
17463 fi
17464
17465 done
17466
17467 fi
17468 done
17469
17470
17471 # Some definitions of getloadavg require that the program be installed setgid.
17472 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17473 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
17474 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17475 echo $ECHO_N "(cached) $ECHO_C" >&6
17476 else
17477 cat >conftest.$ac_ext <<_ACEOF
17478 /* confdefs.h. */
17479 _ACEOF
17480 cat confdefs.h >>conftest.$ac_ext
17481 cat >>conftest.$ac_ext <<_ACEOF
17482 /* end confdefs.h. */
17483 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17484 #ifdef LDAV_PRIVILEGED
17485 Yowza Am I SETGID yet
17486 #endif
17487 _ACEOF
17488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17489 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
17490 ac_cv_func_getloadavg_setgid=yes
17491 else
17492 ac_cv_func_getloadavg_setgid=no
17493 fi
17494 rm -f conftest*
17495
17496 fi
17497 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17498 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
17499 if test $ac_cv_func_getloadavg_setgid = yes; then
17500 NEED_SETGID=true
17501
17502 cat >>confdefs.h <<\_ACEOF
17503 #define GETLOADAVG_PRIVILEGED 1
17504 _ACEOF
17505
17506 else
17507 NEED_SETGID=false
17508 fi
17509
17510 if test $ac_cv_func_getloadavg_setgid = yes; then
17511 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17512 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
17513 if test "${ac_cv_group_kmem+set}" = set; then
17514 echo $ECHO_N "(cached) $ECHO_C" >&6
17515 else
17516 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17517 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17518 # If we got an error (system does not support symlinks), try without -L.
17519 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17520 ac_cv_group_kmem=`echo $ac_ls_output \
17521 | sed -ne 's/[ ][ ]*/ /g;
17522 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17523 / /s/.* //;p;'`
17524
17525 fi
17526 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17527 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
17528 KMEM_GROUP=$ac_cv_group_kmem
17529 fi
17530 if test "x$ac_save_LIBS" = x; then
17531 GETLOADAVG_LIBS=$LIBS
17532 else
17533 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17534 fi
17535 LIBS=$ac_save_LIBS
17536
17537
17538
17539 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17540 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
17541 if test "${ac_cv_sys_largefile_source+set}" = set; then
17542 echo $ECHO_N "(cached) $ECHO_C" >&6
17543 else
17544 while :; do
17545 cat >conftest.$ac_ext <<_ACEOF
17546 /* confdefs.h. */
17547 _ACEOF
17548 cat confdefs.h >>conftest.$ac_ext
17549 cat >>conftest.$ac_ext <<_ACEOF
17550 /* end confdefs.h. */
17551 #include <stdio.h>
17552 int
17553 main ()
17554 {
17555 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17556 ;
17557 return 0;
17558 }
17559 _ACEOF
17560 rm -f conftest.$ac_objext conftest$ac_exeext
17561 if { (ac_try="$ac_link"
17562 case "(($ac_try" in
17563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17564 *) ac_try_echo=$ac_try;;
17565 esac
17566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17567 (eval "$ac_link") 2>conftest.er1
17568 ac_status=$?
17569 grep -v '^ *+' conftest.er1 >conftest.err
17570 rm -f conftest.er1
17571 cat conftest.err >&5
17572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573 (exit $ac_status); } && {
17574 test -z "$ac_c_werror_flag" ||
17575 test ! -s conftest.err
17576 } && test -s conftest$ac_exeext &&
17577 $as_test_x conftest$ac_exeext; then
17578 ac_cv_sys_largefile_source=no; break
17579 else
17580 echo "$as_me: failed program was:" >&5
17581 sed 's/^/| /' conftest.$ac_ext >&5
17582
17583
17584 fi
17585
17586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17587 conftest$ac_exeext conftest.$ac_ext
17588 cat >conftest.$ac_ext <<_ACEOF
17589 /* confdefs.h. */
17590 _ACEOF
17591 cat confdefs.h >>conftest.$ac_ext
17592 cat >>conftest.$ac_ext <<_ACEOF
17593 /* end confdefs.h. */
17594 #define _LARGEFILE_SOURCE 1
17595 #include <stdio.h>
17596 int
17597 main ()
17598 {
17599 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17600 ;
17601 return 0;
17602 }
17603 _ACEOF
17604 rm -f conftest.$ac_objext conftest$ac_exeext
17605 if { (ac_try="$ac_link"
17606 case "(($ac_try" in
17607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17608 *) ac_try_echo=$ac_try;;
17609 esac
17610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17611 (eval "$ac_link") 2>conftest.er1
17612 ac_status=$?
17613 grep -v '^ *+' conftest.er1 >conftest.err
17614 rm -f conftest.er1
17615 cat conftest.err >&5
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); } && {
17618 test -z "$ac_c_werror_flag" ||
17619 test ! -s conftest.err
17620 } && test -s conftest$ac_exeext &&
17621 $as_test_x conftest$ac_exeext; then
17622 ac_cv_sys_largefile_source=1; break
17623 else
17624 echo "$as_me: failed program was:" >&5
17625 sed 's/^/| /' conftest.$ac_ext >&5
17626
17627
17628 fi
17629
17630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17631 conftest$ac_exeext conftest.$ac_ext
17632 ac_cv_sys_largefile_source=unknown
17633 break
17634 done
17635 fi
17636 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17637 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
17638 case $ac_cv_sys_largefile_source in #(
17639 no | unknown) ;;
17640 *)
17641 cat >>confdefs.h <<_ACEOF
17642 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17643 _ACEOF
17644 ;;
17645 esac
17646 rm -f conftest*
17647
17648 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17649 # in glibc 2.1.3, but that breaks too many other things.
17650 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17651 if test $ac_cv_sys_largefile_source != unknown; then
17652
17653 cat >>confdefs.h <<\_ACEOF
17654 #define HAVE_FSEEKO 1
17655 _ACEOF
17656
17657 fi
17658
17659
17660 # Configure getopt.
17661 # getopt.m4 serial 10
17662
17663 # The getopt module assume you want GNU getopt, with getopt_long etc,
17664 # rather than vanilla POSIX getopt. This means your your code should
17665 # always include <getopt.h> for the getopt prototypes.
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677 # Prerequisites of lib/getopt*.
17678
17679
17680
17681
17682 GETOPT_H=
17683
17684 for ac_header in getopt.h
17685 do
17686 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17688 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17691 echo $ECHO_N "(cached) $ECHO_C" >&6
17692 fi
17693 ac_res=`eval echo '${'$as_ac_Header'}'`
17694 { echo "$as_me:$LINENO: result: $ac_res" >&5
17695 echo "${ECHO_T}$ac_res" >&6; }
17696 else
17697 # Is the header compilable?
17698 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17699 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17700 cat >conftest.$ac_ext <<_ACEOF
17701 /* confdefs.h. */
17702 _ACEOF
17703 cat confdefs.h >>conftest.$ac_ext
17704 cat >>conftest.$ac_ext <<_ACEOF
17705 /* end confdefs.h. */
17706 $ac_includes_default
17707 #include <$ac_header>
17708 _ACEOF
17709 rm -f conftest.$ac_objext
17710 if { (ac_try="$ac_compile"
17711 case "(($ac_try" in
17712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17713 *) ac_try_echo=$ac_try;;
17714 esac
17715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17716 (eval "$ac_compile") 2>conftest.er1
17717 ac_status=$?
17718 grep -v '^ *+' conftest.er1 >conftest.err
17719 rm -f conftest.er1
17720 cat conftest.err >&5
17721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722 (exit $ac_status); } && {
17723 test -z "$ac_c_werror_flag" ||
17724 test ! -s conftest.err
17725 } && test -s conftest.$ac_objext; then
17726 ac_header_compiler=yes
17727 else
17728 echo "$as_me: failed program was:" >&5
17729 sed 's/^/| /' conftest.$ac_ext >&5
17730
17731 ac_header_compiler=no
17732 fi
17733
17734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17735 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17736 echo "${ECHO_T}$ac_header_compiler" >&6; }
17737
17738 # Is the header present?
17739 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17740 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17741 cat >conftest.$ac_ext <<_ACEOF
17742 /* confdefs.h. */
17743 _ACEOF
17744 cat confdefs.h >>conftest.$ac_ext
17745 cat >>conftest.$ac_ext <<_ACEOF
17746 /* end confdefs.h. */
17747 #include <$ac_header>
17748 _ACEOF
17749 if { (ac_try="$ac_cpp conftest.$ac_ext"
17750 case "(($ac_try" in
17751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17752 *) ac_try_echo=$ac_try;;
17753 esac
17754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17756 ac_status=$?
17757 grep -v '^ *+' conftest.er1 >conftest.err
17758 rm -f conftest.er1
17759 cat conftest.err >&5
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); } >/dev/null && {
17762 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17763 test ! -s conftest.err
17764 }; then
17765 ac_header_preproc=yes
17766 else
17767 echo "$as_me: failed program was:" >&5
17768 sed 's/^/| /' conftest.$ac_ext >&5
17769
17770 ac_header_preproc=no
17771 fi
17772
17773 rm -f conftest.err conftest.$ac_ext
17774 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17775 echo "${ECHO_T}$ac_header_preproc" >&6; }
17776
17777 # So? What about this header?
17778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17779 yes:no: )
17780 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17781 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17783 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17784 ac_header_preproc=yes
17785 ;;
17786 no:yes:* )
17787 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17788 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17789 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17790 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17791 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17792 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17793 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17794 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17796 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17797 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17798 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17799
17800 ;;
17801 esac
17802 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17805 echo $ECHO_N "(cached) $ECHO_C" >&6
17806 else
17807 eval "$as_ac_Header=\$ac_header_preproc"
17808 fi
17809 ac_res=`eval echo '${'$as_ac_Header'}'`
17810 { echo "$as_me:$LINENO: result: $ac_res" >&5
17811 echo "${ECHO_T}$ac_res" >&6; }
17812
17813 fi
17814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17815 cat >>confdefs.h <<_ACEOF
17816 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17817 _ACEOF
17818
17819 else
17820 GETOPT_H=getopt.h
17821 fi
17822
17823 done
17824
17825 if test -z "$GETOPT_H"; then
17826
17827 for ac_func in getopt_long_only
17828 do
17829 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17830 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17831 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17832 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17833 echo $ECHO_N "(cached) $ECHO_C" >&6
17834 else
17835 cat >conftest.$ac_ext <<_ACEOF
17836 /* confdefs.h. */
17837 _ACEOF
17838 cat confdefs.h >>conftest.$ac_ext
17839 cat >>conftest.$ac_ext <<_ACEOF
17840 /* end confdefs.h. */
17841 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17843 #define $ac_func innocuous_$ac_func
17844
17845 /* System header to define __stub macros and hopefully few prototypes,
17846 which can conflict with char $ac_func (); below.
17847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17848 <limits.h> exists even on freestanding compilers. */
17849
17850 #ifdef __STDC__
17851 # include <limits.h>
17852 #else
17853 # include <assert.h>
17854 #endif
17855
17856 #undef $ac_func
17857
17858 /* Override any GCC internal prototype to avoid an error.
17859 Use char because int might match the return type of a GCC
17860 builtin and then its argument prototype would still apply. */
17861 #ifdef __cplusplus
17862 extern "C"
17863 #endif
17864 char $ac_func ();
17865 /* The GNU C library defines this for functions which it implements
17866 to always fail with ENOSYS. Some functions are actually named
17867 something starting with __ and the normal name is an alias. */
17868 #if defined __stub_$ac_func || defined __stub___$ac_func
17869 choke me
17870 #endif
17871
17872 int
17873 main ()
17874 {
17875 return $ac_func ();
17876 ;
17877 return 0;
17878 }
17879 _ACEOF
17880 rm -f conftest.$ac_objext conftest$ac_exeext
17881 if { (ac_try="$ac_link"
17882 case "(($ac_try" in
17883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17884 *) ac_try_echo=$ac_try;;
17885 esac
17886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17887 (eval "$ac_link") 2>conftest.er1
17888 ac_status=$?
17889 grep -v '^ *+' conftest.er1 >conftest.err
17890 rm -f conftest.er1
17891 cat conftest.err >&5
17892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893 (exit $ac_status); } && {
17894 test -z "$ac_c_werror_flag" ||
17895 test ! -s conftest.err
17896 } && test -s conftest$ac_exeext &&
17897 $as_test_x conftest$ac_exeext; then
17898 eval "$as_ac_var=yes"
17899 else
17900 echo "$as_me: failed program was:" >&5
17901 sed 's/^/| /' conftest.$ac_ext >&5
17902
17903 eval "$as_ac_var=no"
17904 fi
17905
17906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17907 conftest$ac_exeext conftest.$ac_ext
17908 fi
17909 ac_res=`eval echo '${'$as_ac_var'}'`
17910 { echo "$as_me:$LINENO: result: $ac_res" >&5
17911 echo "${ECHO_T}$ac_res" >&6; }
17912 if test `eval echo '${'$as_ac_var'}'` = yes; then
17913 cat >>confdefs.h <<_ACEOF
17914 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17915 _ACEOF
17916
17917 else
17918 GETOPT_H=getopt.h
17919 fi
17920 done
17921
17922 fi
17923
17924 if test -z "$GETOPT_H"; then
17925 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
17926 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
17927 if test "${ac_cv_have_decl_optreset+set}" = set; then
17928 echo $ECHO_N "(cached) $ECHO_C" >&6
17929 else
17930 cat >conftest.$ac_ext <<_ACEOF
17931 /* confdefs.h. */
17932 _ACEOF
17933 cat confdefs.h >>conftest.$ac_ext
17934 cat >>conftest.$ac_ext <<_ACEOF
17935 /* end confdefs.h. */
17936 #include <getopt.h>
17937
17938 int
17939 main ()
17940 {
17941 #ifndef optreset
17942 (void) optreset;
17943 #endif
17944
17945 ;
17946 return 0;
17947 }
17948 _ACEOF
17949 rm -f conftest.$ac_objext
17950 if { (ac_try="$ac_compile"
17951 case "(($ac_try" in
17952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17953 *) ac_try_echo=$ac_try;;
17954 esac
17955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17956 (eval "$ac_compile") 2>conftest.er1
17957 ac_status=$?
17958 grep -v '^ *+' conftest.er1 >conftest.err
17959 rm -f conftest.er1
17960 cat conftest.err >&5
17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962 (exit $ac_status); } && {
17963 test -z "$ac_c_werror_flag" ||
17964 test ! -s conftest.err
17965 } && test -s conftest.$ac_objext; then
17966 ac_cv_have_decl_optreset=yes
17967 else
17968 echo "$as_me: failed program was:" >&5
17969 sed 's/^/| /' conftest.$ac_ext >&5
17970
17971 ac_cv_have_decl_optreset=no
17972 fi
17973
17974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17975 fi
17976 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
17977 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
17978 if test $ac_cv_have_decl_optreset = yes; then
17979 GETOPT_H=getopt.h
17980 fi
17981
17982 fi
17983
17984 if test -z "$GETOPT_H"; then
17985 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
17986 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
17987 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17988 echo $ECHO_N "(cached) $ECHO_C" >&6
17989 else
17990 if test "$cross_compiling" = yes; then
17991 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
17992 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
17993 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
17994 echo $ECHO_N "(cached) $ECHO_C" >&6
17995 else
17996 cat >conftest.$ac_ext <<_ACEOF
17997 /* confdefs.h. */
17998 _ACEOF
17999 cat confdefs.h >>conftest.$ac_ext
18000 cat >>conftest.$ac_ext <<_ACEOF
18001 /* end confdefs.h. */
18002 #include <getopt.h>
18003
18004 int
18005 main ()
18006 {
18007 #ifndef getopt_clip
18008 (void) getopt_clip;
18009 #endif
18010
18011 ;
18012 return 0;
18013 }
18014 _ACEOF
18015 rm -f conftest.$ac_objext
18016 if { (ac_try="$ac_compile"
18017 case "(($ac_try" in
18018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18019 *) ac_try_echo=$ac_try;;
18020 esac
18021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18022 (eval "$ac_compile") 2>conftest.er1
18023 ac_status=$?
18024 grep -v '^ *+' conftest.er1 >conftest.err
18025 rm -f conftest.er1
18026 cat conftest.err >&5
18027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18028 (exit $ac_status); } && {
18029 test -z "$ac_c_werror_flag" ||
18030 test ! -s conftest.err
18031 } && test -s conftest.$ac_objext; then
18032 ac_cv_have_decl_getopt_clip=yes
18033 else
18034 echo "$as_me: failed program was:" >&5
18035 sed 's/^/| /' conftest.$ac_ext >&5
18036
18037 ac_cv_have_decl_getopt_clip=no
18038 fi
18039
18040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18041 fi
18042 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
18043 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18044 if test $ac_cv_have_decl_getopt_clip = yes; then
18045 gl_cv_func_gnu_getopt=no
18046 else
18047 gl_cv_func_gnu_getopt=yes
18048 fi
18049
18050 else
18051 cat >conftest.$ac_ext <<_ACEOF
18052 /* confdefs.h. */
18053 _ACEOF
18054 cat confdefs.h >>conftest.$ac_ext
18055 cat >>conftest.$ac_ext <<_ACEOF
18056 /* end confdefs.h. */
18057 #include <getopt.h>
18058 int
18059 main ()
18060 {
18061
18062 char *myargv[3];
18063 myargv[0] = "conftest";
18064 myargv[1] = "-+";
18065 myargv[2] = 0;
18066 return getopt (2, myargv, "+a") != '?';
18067
18068 ;
18069 return 0;
18070 }
18071 _ACEOF
18072 rm -f conftest$ac_exeext
18073 if { (ac_try="$ac_link"
18074 case "(($ac_try" in
18075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18076 *) ac_try_echo=$ac_try;;
18077 esac
18078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18079 (eval "$ac_link") 2>&5
18080 ac_status=$?
18081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18083 { (case "(($ac_try" in
18084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18085 *) ac_try_echo=$ac_try;;
18086 esac
18087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18088 (eval "$ac_try") 2>&5
18089 ac_status=$?
18090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18091 (exit $ac_status); }; }; then
18092 gl_cv_func_gnu_getopt=yes
18093 else
18094 echo "$as_me: program exited with status $ac_status" >&5
18095 echo "$as_me: failed program was:" >&5
18096 sed 's/^/| /' conftest.$ac_ext >&5
18097
18098 ( exit $ac_status )
18099 gl_cv_func_gnu_getopt=no
18100 fi
18101 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18102 fi
18103
18104
18105 fi
18106 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
18107 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18108 if test "$gl_cv_func_gnu_getopt" = "no"; then
18109 GETOPT_H=getopt.h
18110 fi
18111 fi
18112
18113
18114
18115 if test -n "$GETOPT_H"; then
18116
18117
18118 GETOPT_H=getopt.h
18119
18120 cat >>confdefs.h <<\_ACEOF
18121 #define __GETOPT_PREFIX rpl_
18122 _ACEOF
18123
18124
18125
18126 :
18127 GETOPTOBJS='getopt.o getopt1.o'
18128
18129 fi
18130
18131
18132
18133
18134 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
18135 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
18136 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18137 echo $ECHO_N "(cached) $ECHO_C" >&6
18138 else
18139 # Use it with a single arg.
18140 cat >conftest.$ac_ext <<_ACEOF
18141 /* confdefs.h. */
18142 _ACEOF
18143 cat confdefs.h >>conftest.$ac_ext
18144 cat >>conftest.$ac_ext <<_ACEOF
18145 /* end confdefs.h. */
18146 $ac_includes_default
18147 int
18148 main ()
18149 {
18150 getpgrp (0);
18151 ;
18152 return 0;
18153 }
18154 _ACEOF
18155 rm -f conftest.$ac_objext
18156 if { (ac_try="$ac_compile"
18157 case "(($ac_try" in
18158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18159 *) ac_try_echo=$ac_try;;
18160 esac
18161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18162 (eval "$ac_compile") 2>conftest.er1
18163 ac_status=$?
18164 grep -v '^ *+' conftest.er1 >conftest.err
18165 rm -f conftest.er1
18166 cat conftest.err >&5
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); } && {
18169 test -z "$ac_c_werror_flag" ||
18170 test ! -s conftest.err
18171 } && test -s conftest.$ac_objext; then
18172 ac_cv_func_getpgrp_void=no
18173 else
18174 echo "$as_me: failed program was:" >&5
18175 sed 's/^/| /' conftest.$ac_ext >&5
18176
18177 ac_cv_func_getpgrp_void=yes
18178 fi
18179
18180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18181
18182 fi
18183 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
18184 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18185 if test $ac_cv_func_getpgrp_void = yes; then
18186
18187 cat >>confdefs.h <<\_ACEOF
18188 #define GETPGRP_VOID 1
18189 _ACEOF
18190
18191 fi
18192
18193
18194
18195 for ac_func in strftime
18196 do
18197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18198 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18200 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18201 echo $ECHO_N "(cached) $ECHO_C" >&6
18202 else
18203 cat >conftest.$ac_ext <<_ACEOF
18204 /* confdefs.h. */
18205 _ACEOF
18206 cat confdefs.h >>conftest.$ac_ext
18207 cat >>conftest.$ac_ext <<_ACEOF
18208 /* end confdefs.h. */
18209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18211 #define $ac_func innocuous_$ac_func
18212
18213 /* System header to define __stub macros and hopefully few prototypes,
18214 which can conflict with char $ac_func (); below.
18215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18216 <limits.h> exists even on freestanding compilers. */
18217
18218 #ifdef __STDC__
18219 # include <limits.h>
18220 #else
18221 # include <assert.h>
18222 #endif
18223
18224 #undef $ac_func
18225
18226 /* Override any GCC internal prototype to avoid an error.
18227 Use char because int might match the return type of a GCC
18228 builtin and then its argument prototype would still apply. */
18229 #ifdef __cplusplus
18230 extern "C"
18231 #endif
18232 char $ac_func ();
18233 /* The GNU C library defines this for functions which it implements
18234 to always fail with ENOSYS. Some functions are actually named
18235 something starting with __ and the normal name is an alias. */
18236 #if defined __stub_$ac_func || defined __stub___$ac_func
18237 choke me
18238 #endif
18239
18240 int
18241 main ()
18242 {
18243 return $ac_func ();
18244 ;
18245 return 0;
18246 }
18247 _ACEOF
18248 rm -f conftest.$ac_objext conftest$ac_exeext
18249 if { (ac_try="$ac_link"
18250 case "(($ac_try" in
18251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18252 *) ac_try_echo=$ac_try;;
18253 esac
18254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18255 (eval "$ac_link") 2>conftest.er1
18256 ac_status=$?
18257 grep -v '^ *+' conftest.er1 >conftest.err
18258 rm -f conftest.er1
18259 cat conftest.err >&5
18260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261 (exit $ac_status); } && {
18262 test -z "$ac_c_werror_flag" ||
18263 test ! -s conftest.err
18264 } && test -s conftest$ac_exeext &&
18265 $as_test_x conftest$ac_exeext; then
18266 eval "$as_ac_var=yes"
18267 else
18268 echo "$as_me: failed program was:" >&5
18269 sed 's/^/| /' conftest.$ac_ext >&5
18270
18271 eval "$as_ac_var=no"
18272 fi
18273
18274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18275 conftest$ac_exeext conftest.$ac_ext
18276 fi
18277 ac_res=`eval echo '${'$as_ac_var'}'`
18278 { echo "$as_me:$LINENO: result: $ac_res" >&5
18279 echo "${ECHO_T}$ac_res" >&6; }
18280 if test `eval echo '${'$as_ac_var'}'` = yes; then
18281 cat >>confdefs.h <<_ACEOF
18282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18283 _ACEOF
18284
18285 else
18286 # strftime is in -lintl on SCO UNIX.
18287 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18288 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
18289 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18290 echo $ECHO_N "(cached) $ECHO_C" >&6
18291 else
18292 ac_check_lib_save_LIBS=$LIBS
18293 LIBS="-lintl $LIBS"
18294 cat >conftest.$ac_ext <<_ACEOF
18295 /* confdefs.h. */
18296 _ACEOF
18297 cat confdefs.h >>conftest.$ac_ext
18298 cat >>conftest.$ac_ext <<_ACEOF
18299 /* end confdefs.h. */
18300
18301 /* Override any GCC internal prototype to avoid an error.
18302 Use char because int might match the return type of a GCC
18303 builtin and then its argument prototype would still apply. */
18304 #ifdef __cplusplus
18305 extern "C"
18306 #endif
18307 char strftime ();
18308 int
18309 main ()
18310 {
18311 return strftime ();
18312 ;
18313 return 0;
18314 }
18315 _ACEOF
18316 rm -f conftest.$ac_objext conftest$ac_exeext
18317 if { (ac_try="$ac_link"
18318 case "(($ac_try" in
18319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18320 *) ac_try_echo=$ac_try;;
18321 esac
18322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18323 (eval "$ac_link") 2>conftest.er1
18324 ac_status=$?
18325 grep -v '^ *+' conftest.er1 >conftest.err
18326 rm -f conftest.er1
18327 cat conftest.err >&5
18328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329 (exit $ac_status); } && {
18330 test -z "$ac_c_werror_flag" ||
18331 test ! -s conftest.err
18332 } && test -s conftest$ac_exeext &&
18333 $as_test_x conftest$ac_exeext; then
18334 ac_cv_lib_intl_strftime=yes
18335 else
18336 echo "$as_me: failed program was:" >&5
18337 sed 's/^/| /' conftest.$ac_ext >&5
18338
18339 ac_cv_lib_intl_strftime=no
18340 fi
18341
18342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18343 conftest$ac_exeext conftest.$ac_ext
18344 LIBS=$ac_check_lib_save_LIBS
18345 fi
18346 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18347 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18348 if test $ac_cv_lib_intl_strftime = yes; then
18349 cat >>confdefs.h <<\_ACEOF
18350 #define HAVE_STRFTIME 1
18351 _ACEOF
18352
18353 LIBS="-lintl $LIBS"
18354 fi
18355
18356 fi
18357 done
18358
18359
18360 # UNIX98 PTYs.
18361
18362 for ac_func in grantpt
18363 do
18364 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18365 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18366 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18367 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18368 echo $ECHO_N "(cached) $ECHO_C" >&6
18369 else
18370 cat >conftest.$ac_ext <<_ACEOF
18371 /* confdefs.h. */
18372 _ACEOF
18373 cat confdefs.h >>conftest.$ac_ext
18374 cat >>conftest.$ac_ext <<_ACEOF
18375 /* end confdefs.h. */
18376 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18378 #define $ac_func innocuous_$ac_func
18379
18380 /* System header to define __stub macros and hopefully few prototypes,
18381 which can conflict with char $ac_func (); below.
18382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18383 <limits.h> exists even on freestanding compilers. */
18384
18385 #ifdef __STDC__
18386 # include <limits.h>
18387 #else
18388 # include <assert.h>
18389 #endif
18390
18391 #undef $ac_func
18392
18393 /* Override any GCC internal prototype to avoid an error.
18394 Use char because int might match the return type of a GCC
18395 builtin and then its argument prototype would still apply. */
18396 #ifdef __cplusplus
18397 extern "C"
18398 #endif
18399 char $ac_func ();
18400 /* The GNU C library defines this for functions which it implements
18401 to always fail with ENOSYS. Some functions are actually named
18402 something starting with __ and the normal name is an alias. */
18403 #if defined __stub_$ac_func || defined __stub___$ac_func
18404 choke me
18405 #endif
18406
18407 int
18408 main ()
18409 {
18410 return $ac_func ();
18411 ;
18412 return 0;
18413 }
18414 _ACEOF
18415 rm -f conftest.$ac_objext conftest$ac_exeext
18416 if { (ac_try="$ac_link"
18417 case "(($ac_try" in
18418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18419 *) ac_try_echo=$ac_try;;
18420 esac
18421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18422 (eval "$ac_link") 2>conftest.er1
18423 ac_status=$?
18424 grep -v '^ *+' conftest.er1 >conftest.err
18425 rm -f conftest.er1
18426 cat conftest.err >&5
18427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); } && {
18429 test -z "$ac_c_werror_flag" ||
18430 test ! -s conftest.err
18431 } && test -s conftest$ac_exeext &&
18432 $as_test_x conftest$ac_exeext; then
18433 eval "$as_ac_var=yes"
18434 else
18435 echo "$as_me: failed program was:" >&5
18436 sed 's/^/| /' conftest.$ac_ext >&5
18437
18438 eval "$as_ac_var=no"
18439 fi
18440
18441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18442 conftest$ac_exeext conftest.$ac_ext
18443 fi
18444 ac_res=`eval echo '${'$as_ac_var'}'`
18445 { echo "$as_me:$LINENO: result: $ac_res" >&5
18446 echo "${ECHO_T}$ac_res" >&6; }
18447 if test `eval echo '${'$as_ac_var'}'` = yes; then
18448 cat >>confdefs.h <<_ACEOF
18449 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18450 _ACEOF
18451
18452 fi
18453 done
18454
18455
18456 # PTY-related GNU extensions.
18457
18458 for ac_func in getpt
18459 do
18460 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18461 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18463 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18464 echo $ECHO_N "(cached) $ECHO_C" >&6
18465 else
18466 cat >conftest.$ac_ext <<_ACEOF
18467 /* confdefs.h. */
18468 _ACEOF
18469 cat confdefs.h >>conftest.$ac_ext
18470 cat >>conftest.$ac_ext <<_ACEOF
18471 /* end confdefs.h. */
18472 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18474 #define $ac_func innocuous_$ac_func
18475
18476 /* System header to define __stub macros and hopefully few prototypes,
18477 which can conflict with char $ac_func (); below.
18478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18479 <limits.h> exists even on freestanding compilers. */
18480
18481 #ifdef __STDC__
18482 # include <limits.h>
18483 #else
18484 # include <assert.h>
18485 #endif
18486
18487 #undef $ac_func
18488
18489 /* Override any GCC internal prototype to avoid an error.
18490 Use char because int might match the return type of a GCC
18491 builtin and then its argument prototype would still apply. */
18492 #ifdef __cplusplus
18493 extern "C"
18494 #endif
18495 char $ac_func ();
18496 /* The GNU C library defines this for functions which it implements
18497 to always fail with ENOSYS. Some functions are actually named
18498 something starting with __ and the normal name is an alias. */
18499 #if defined __stub_$ac_func || defined __stub___$ac_func
18500 choke me
18501 #endif
18502
18503 int
18504 main ()
18505 {
18506 return $ac_func ();
18507 ;
18508 return 0;
18509 }
18510 _ACEOF
18511 rm -f conftest.$ac_objext conftest$ac_exeext
18512 if { (ac_try="$ac_link"
18513 case "(($ac_try" in
18514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18515 *) ac_try_echo=$ac_try;;
18516 esac
18517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18518 (eval "$ac_link") 2>conftest.er1
18519 ac_status=$?
18520 grep -v '^ *+' conftest.er1 >conftest.err
18521 rm -f conftest.er1
18522 cat conftest.err >&5
18523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524 (exit $ac_status); } && {
18525 test -z "$ac_c_werror_flag" ||
18526 test ! -s conftest.err
18527 } && test -s conftest$ac_exeext &&
18528 $as_test_x conftest$ac_exeext; then
18529 eval "$as_ac_var=yes"
18530 else
18531 echo "$as_me: failed program was:" >&5
18532 sed 's/^/| /' conftest.$ac_ext >&5
18533
18534 eval "$as_ac_var=no"
18535 fi
18536
18537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18538 conftest$ac_exeext conftest.$ac_ext
18539 fi
18540 ac_res=`eval echo '${'$as_ac_var'}'`
18541 { echo "$as_me:$LINENO: result: $ac_res" >&5
18542 echo "${ECHO_T}$ac_res" >&6; }
18543 if test `eval echo '${'$as_ac_var'}'` = yes; then
18544 cat >>confdefs.h <<_ACEOF
18545 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18546 _ACEOF
18547
18548 fi
18549 done
18550
18551
18552 # Check this now, so that we will NOT find the above functions in ncurses.
18553 # That is because we have not set up to link ncurses in lib-src.
18554 # It's better to believe a function is not available
18555 # than to expect to find it in ncurses.
18556
18557 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18558 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
18559 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18560 echo $ECHO_N "(cached) $ECHO_C" >&6
18561 else
18562 ac_check_lib_save_LIBS=$LIBS
18563 LIBS="-lncurses $LIBS"
18564 cat >conftest.$ac_ext <<_ACEOF
18565 /* confdefs.h. */
18566 _ACEOF
18567 cat confdefs.h >>conftest.$ac_ext
18568 cat >>conftest.$ac_ext <<_ACEOF
18569 /* end confdefs.h. */
18570
18571 /* Override any GCC internal prototype to avoid an error.
18572 Use char because int might match the return type of a GCC
18573 builtin and then its argument prototype would still apply. */
18574 #ifdef __cplusplus
18575 extern "C"
18576 #endif
18577 char tparm ();
18578 int
18579 main ()
18580 {
18581 return tparm ();
18582 ;
18583 return 0;
18584 }
18585 _ACEOF
18586 rm -f conftest.$ac_objext conftest$ac_exeext
18587 if { (ac_try="$ac_link"
18588 case "(($ac_try" in
18589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18590 *) ac_try_echo=$ac_try;;
18591 esac
18592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18593 (eval "$ac_link") 2>conftest.er1
18594 ac_status=$?
18595 grep -v '^ *+' conftest.er1 >conftest.err
18596 rm -f conftest.er1
18597 cat conftest.err >&5
18598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599 (exit $ac_status); } && {
18600 test -z "$ac_c_werror_flag" ||
18601 test ! -s conftest.err
18602 } && test -s conftest$ac_exeext &&
18603 $as_test_x conftest$ac_exeext; then
18604 ac_cv_lib_ncurses_tparm=yes
18605 else
18606 echo "$as_me: failed program was:" >&5
18607 sed 's/^/| /' conftest.$ac_ext >&5
18608
18609 ac_cv_lib_ncurses_tparm=no
18610 fi
18611
18612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18613 conftest$ac_exeext conftest.$ac_ext
18614 LIBS=$ac_check_lib_save_LIBS
18615 fi
18616 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18617 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
18618 if test $ac_cv_lib_ncurses_tparm = yes; then
18619 cat >>confdefs.h <<_ACEOF
18620 #define HAVE_LIBNCURSES 1
18621 _ACEOF
18622
18623 LIBS="-lncurses $LIBS"
18624
18625 fi
18626
18627
18628 # Do we need the Hesiod library to provide the support routines?
18629 if test "$with_hesiod" = yes ; then
18630 # Don't set $LIBS here -- see comments above.
18631 resolv=no
18632 { echo "$as_me:$LINENO: checking for res_send" >&5
18633 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
18634 if test "${ac_cv_func_res_send+set}" = set; then
18635 echo $ECHO_N "(cached) $ECHO_C" >&6
18636 else
18637 cat >conftest.$ac_ext <<_ACEOF
18638 /* confdefs.h. */
18639 _ACEOF
18640 cat confdefs.h >>conftest.$ac_ext
18641 cat >>conftest.$ac_ext <<_ACEOF
18642 /* end confdefs.h. */
18643 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18645 #define res_send innocuous_res_send
18646
18647 /* System header to define __stub macros and hopefully few prototypes,
18648 which can conflict with char res_send (); below.
18649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18650 <limits.h> exists even on freestanding compilers. */
18651
18652 #ifdef __STDC__
18653 # include <limits.h>
18654 #else
18655 # include <assert.h>
18656 #endif
18657
18658 #undef res_send
18659
18660 /* Override any GCC internal prototype to avoid an error.
18661 Use char because int might match the return type of a GCC
18662 builtin and then its argument prototype would still apply. */
18663 #ifdef __cplusplus
18664 extern "C"
18665 #endif
18666 char res_send ();
18667 /* The GNU C library defines this for functions which it implements
18668 to always fail with ENOSYS. Some functions are actually named
18669 something starting with __ and the normal name is an alias. */
18670 #if defined __stub_res_send || defined __stub___res_send
18671 choke me
18672 #endif
18673
18674 int
18675 main ()
18676 {
18677 return res_send ();
18678 ;
18679 return 0;
18680 }
18681 _ACEOF
18682 rm -f conftest.$ac_objext conftest$ac_exeext
18683 if { (ac_try="$ac_link"
18684 case "(($ac_try" in
18685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18686 *) ac_try_echo=$ac_try;;
18687 esac
18688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18689 (eval "$ac_link") 2>conftest.er1
18690 ac_status=$?
18691 grep -v '^ *+' conftest.er1 >conftest.err
18692 rm -f conftest.er1
18693 cat conftest.err >&5
18694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695 (exit $ac_status); } && {
18696 test -z "$ac_c_werror_flag" ||
18697 test ! -s conftest.err
18698 } && test -s conftest$ac_exeext &&
18699 $as_test_x conftest$ac_exeext; then
18700 ac_cv_func_res_send=yes
18701 else
18702 echo "$as_me: failed program was:" >&5
18703 sed 's/^/| /' conftest.$ac_ext >&5
18704
18705 ac_cv_func_res_send=no
18706 fi
18707
18708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18709 conftest$ac_exeext conftest.$ac_ext
18710 fi
18711 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
18712 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
18713 if test $ac_cv_func_res_send = yes; then
18714 :
18715 else
18716 { echo "$as_me:$LINENO: checking for __res_send" >&5
18717 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
18718 if test "${ac_cv_func___res_send+set}" = set; then
18719 echo $ECHO_N "(cached) $ECHO_C" >&6
18720 else
18721 cat >conftest.$ac_ext <<_ACEOF
18722 /* confdefs.h. */
18723 _ACEOF
18724 cat confdefs.h >>conftest.$ac_ext
18725 cat >>conftest.$ac_ext <<_ACEOF
18726 /* end confdefs.h. */
18727 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
18728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18729 #define __res_send innocuous___res_send
18730
18731 /* System header to define __stub macros and hopefully few prototypes,
18732 which can conflict with char __res_send (); below.
18733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18734 <limits.h> exists even on freestanding compilers. */
18735
18736 #ifdef __STDC__
18737 # include <limits.h>
18738 #else
18739 # include <assert.h>
18740 #endif
18741
18742 #undef __res_send
18743
18744 /* Override any GCC internal prototype to avoid an error.
18745 Use char because int might match the return type of a GCC
18746 builtin and then its argument prototype would still apply. */
18747 #ifdef __cplusplus
18748 extern "C"
18749 #endif
18750 char __res_send ();
18751 /* The GNU C library defines this for functions which it implements
18752 to always fail with ENOSYS. Some functions are actually named
18753 something starting with __ and the normal name is an alias. */
18754 #if defined __stub___res_send || defined __stub_____res_send
18755 choke me
18756 #endif
18757
18758 int
18759 main ()
18760 {
18761 return __res_send ();
18762 ;
18763 return 0;
18764 }
18765 _ACEOF
18766 rm -f conftest.$ac_objext conftest$ac_exeext
18767 if { (ac_try="$ac_link"
18768 case "(($ac_try" in
18769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18770 *) ac_try_echo=$ac_try;;
18771 esac
18772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18773 (eval "$ac_link") 2>conftest.er1
18774 ac_status=$?
18775 grep -v '^ *+' conftest.er1 >conftest.err
18776 rm -f conftest.er1
18777 cat conftest.err >&5
18778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779 (exit $ac_status); } && {
18780 test -z "$ac_c_werror_flag" ||
18781 test ! -s conftest.err
18782 } && test -s conftest$ac_exeext &&
18783 $as_test_x conftest$ac_exeext; then
18784 ac_cv_func___res_send=yes
18785 else
18786 echo "$as_me: failed program was:" >&5
18787 sed 's/^/| /' conftest.$ac_ext >&5
18788
18789 ac_cv_func___res_send=no
18790 fi
18791
18792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18793 conftest$ac_exeext conftest.$ac_ext
18794 fi
18795 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
18796 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
18797 if test $ac_cv_func___res_send = yes; then
18798 :
18799 else
18800 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
18801 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
18802 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18803 echo $ECHO_N "(cached) $ECHO_C" >&6
18804 else
18805 ac_check_lib_save_LIBS=$LIBS
18806 LIBS="-lresolv $LIBS"
18807 cat >conftest.$ac_ext <<_ACEOF
18808 /* confdefs.h. */
18809 _ACEOF
18810 cat confdefs.h >>conftest.$ac_ext
18811 cat >>conftest.$ac_ext <<_ACEOF
18812 /* end confdefs.h. */
18813
18814 /* Override any GCC internal prototype to avoid an error.
18815 Use char because int might match the return type of a GCC
18816 builtin and then its argument prototype would still apply. */
18817 #ifdef __cplusplus
18818 extern "C"
18819 #endif
18820 char res_send ();
18821 int
18822 main ()
18823 {
18824 return res_send ();
18825 ;
18826 return 0;
18827 }
18828 _ACEOF
18829 rm -f conftest.$ac_objext conftest$ac_exeext
18830 if { (ac_try="$ac_link"
18831 case "(($ac_try" in
18832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18833 *) ac_try_echo=$ac_try;;
18834 esac
18835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18836 (eval "$ac_link") 2>conftest.er1
18837 ac_status=$?
18838 grep -v '^ *+' conftest.er1 >conftest.err
18839 rm -f conftest.er1
18840 cat conftest.err >&5
18841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18842 (exit $ac_status); } && {
18843 test -z "$ac_c_werror_flag" ||
18844 test ! -s conftest.err
18845 } && test -s conftest$ac_exeext &&
18846 $as_test_x conftest$ac_exeext; then
18847 ac_cv_lib_resolv_res_send=yes
18848 else
18849 echo "$as_me: failed program was:" >&5
18850 sed 's/^/| /' conftest.$ac_ext >&5
18851
18852 ac_cv_lib_resolv_res_send=no
18853 fi
18854
18855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18856 conftest$ac_exeext conftest.$ac_ext
18857 LIBS=$ac_check_lib_save_LIBS
18858 fi
18859 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
18860 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
18861 if test $ac_cv_lib_resolv_res_send = yes; then
18862 resolv=yes
18863 else
18864 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
18865 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
18866 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18867 echo $ECHO_N "(cached) $ECHO_C" >&6
18868 else
18869 ac_check_lib_save_LIBS=$LIBS
18870 LIBS="-lresolv $LIBS"
18871 cat >conftest.$ac_ext <<_ACEOF
18872 /* confdefs.h. */
18873 _ACEOF
18874 cat confdefs.h >>conftest.$ac_ext
18875 cat >>conftest.$ac_ext <<_ACEOF
18876 /* end confdefs.h. */
18877
18878 /* Override any GCC internal prototype to avoid an error.
18879 Use char because int might match the return type of a GCC
18880 builtin and then its argument prototype would still apply. */
18881 #ifdef __cplusplus
18882 extern "C"
18883 #endif
18884 char __res_send ();
18885 int
18886 main ()
18887 {
18888 return __res_send ();
18889 ;
18890 return 0;
18891 }
18892 _ACEOF
18893 rm -f conftest.$ac_objext conftest$ac_exeext
18894 if { (ac_try="$ac_link"
18895 case "(($ac_try" in
18896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18897 *) ac_try_echo=$ac_try;;
18898 esac
18899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18900 (eval "$ac_link") 2>conftest.er1
18901 ac_status=$?
18902 grep -v '^ *+' conftest.er1 >conftest.err
18903 rm -f conftest.er1
18904 cat conftest.err >&5
18905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906 (exit $ac_status); } && {
18907 test -z "$ac_c_werror_flag" ||
18908 test ! -s conftest.err
18909 } && test -s conftest$ac_exeext &&
18910 $as_test_x conftest$ac_exeext; then
18911 ac_cv_lib_resolv___res_send=yes
18912 else
18913 echo "$as_me: failed program was:" >&5
18914 sed 's/^/| /' conftest.$ac_ext >&5
18915
18916 ac_cv_lib_resolv___res_send=no
18917 fi
18918
18919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18920 conftest$ac_exeext conftest.$ac_ext
18921 LIBS=$ac_check_lib_save_LIBS
18922 fi
18923 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
18924 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
18925 if test $ac_cv_lib_resolv___res_send = yes; then
18926 resolv=yes
18927 fi
18928
18929 fi
18930
18931 fi
18932
18933 fi
18934
18935 if test "$resolv" = yes ; then
18936 RESOLVLIB=-lresolv
18937
18938 cat >>confdefs.h <<\_ACEOF
18939 #define HAVE_LIBRESOLV 1
18940 _ACEOF
18941
18942 else
18943 RESOLVLIB=
18944 fi
18945 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
18946 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
18947 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18948 echo $ECHO_N "(cached) $ECHO_C" >&6
18949 else
18950 cat >conftest.$ac_ext <<_ACEOF
18951 /* confdefs.h. */
18952 _ACEOF
18953 cat confdefs.h >>conftest.$ac_ext
18954 cat >>conftest.$ac_ext <<_ACEOF
18955 /* end confdefs.h. */
18956 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18958 #define hes_getmailhost innocuous_hes_getmailhost
18959
18960 /* System header to define __stub macros and hopefully few prototypes,
18961 which can conflict with char hes_getmailhost (); below.
18962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18963 <limits.h> exists even on freestanding compilers. */
18964
18965 #ifdef __STDC__
18966 # include <limits.h>
18967 #else
18968 # include <assert.h>
18969 #endif
18970
18971 #undef hes_getmailhost
18972
18973 /* Override any GCC internal prototype to avoid an error.
18974 Use char because int might match the return type of a GCC
18975 builtin and then its argument prototype would still apply. */
18976 #ifdef __cplusplus
18977 extern "C"
18978 #endif
18979 char hes_getmailhost ();
18980 /* The GNU C library defines this for functions which it implements
18981 to always fail with ENOSYS. Some functions are actually named
18982 something starting with __ and the normal name is an alias. */
18983 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
18984 choke me
18985 #endif
18986
18987 int
18988 main ()
18989 {
18990 return hes_getmailhost ();
18991 ;
18992 return 0;
18993 }
18994 _ACEOF
18995 rm -f conftest.$ac_objext conftest$ac_exeext
18996 if { (ac_try="$ac_link"
18997 case "(($ac_try" in
18998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18999 *) ac_try_echo=$ac_try;;
19000 esac
19001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19002 (eval "$ac_link") 2>conftest.er1
19003 ac_status=$?
19004 grep -v '^ *+' conftest.er1 >conftest.err
19005 rm -f conftest.er1
19006 cat conftest.err >&5
19007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008 (exit $ac_status); } && {
19009 test -z "$ac_c_werror_flag" ||
19010 test ! -s conftest.err
19011 } && test -s conftest$ac_exeext &&
19012 $as_test_x conftest$ac_exeext; then
19013 ac_cv_func_hes_getmailhost=yes
19014 else
19015 echo "$as_me: failed program was:" >&5
19016 sed 's/^/| /' conftest.$ac_ext >&5
19017
19018 ac_cv_func_hes_getmailhost=no
19019 fi
19020
19021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19022 conftest$ac_exeext conftest.$ac_ext
19023 fi
19024 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
19025 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19026 if test $ac_cv_func_hes_getmailhost = yes; then
19027 :
19028 else
19029 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
19030 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
19031 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19032 echo $ECHO_N "(cached) $ECHO_C" >&6
19033 else
19034 ac_check_lib_save_LIBS=$LIBS
19035 LIBS="-lhesiod $RESOLVLIB $LIBS"
19036 cat >conftest.$ac_ext <<_ACEOF
19037 /* confdefs.h. */
19038 _ACEOF
19039 cat confdefs.h >>conftest.$ac_ext
19040 cat >>conftest.$ac_ext <<_ACEOF
19041 /* end confdefs.h. */
19042
19043 /* Override any GCC internal prototype to avoid an error.
19044 Use char because int might match the return type of a GCC
19045 builtin and then its argument prototype would still apply. */
19046 #ifdef __cplusplus
19047 extern "C"
19048 #endif
19049 char hes_getmailhost ();
19050 int
19051 main ()
19052 {
19053 return hes_getmailhost ();
19054 ;
19055 return 0;
19056 }
19057 _ACEOF
19058 rm -f conftest.$ac_objext conftest$ac_exeext
19059 if { (ac_try="$ac_link"
19060 case "(($ac_try" in
19061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19062 *) ac_try_echo=$ac_try;;
19063 esac
19064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19065 (eval "$ac_link") 2>conftest.er1
19066 ac_status=$?
19067 grep -v '^ *+' conftest.er1 >conftest.err
19068 rm -f conftest.er1
19069 cat conftest.err >&5
19070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071 (exit $ac_status); } && {
19072 test -z "$ac_c_werror_flag" ||
19073 test ! -s conftest.err
19074 } && test -s conftest$ac_exeext &&
19075 $as_test_x conftest$ac_exeext; then
19076 ac_cv_lib_hesiod_hes_getmailhost=yes
19077 else
19078 echo "$as_me: failed program was:" >&5
19079 sed 's/^/| /' conftest.$ac_ext >&5
19080
19081 ac_cv_lib_hesiod_hes_getmailhost=no
19082 fi
19083
19084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19085 conftest$ac_exeext conftest.$ac_ext
19086 LIBS=$ac_check_lib_save_LIBS
19087 fi
19088 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19089 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19090 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19091
19092 cat >>confdefs.h <<\_ACEOF
19093 #define HAVE_LIBHESIOD 1
19094 _ACEOF
19095
19096 else
19097 :
19098 fi
19099
19100 fi
19101
19102 fi
19103
19104 # These tell us which Kerberos-related libraries to use.
19105 if test "${with_kerberos+set}" = set; then
19106
19107 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
19108 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
19109 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19110 echo $ECHO_N "(cached) $ECHO_C" >&6
19111 else
19112 ac_check_lib_save_LIBS=$LIBS
19113 LIBS="-lcom_err $LIBS"
19114 cat >conftest.$ac_ext <<_ACEOF
19115 /* confdefs.h. */
19116 _ACEOF
19117 cat confdefs.h >>conftest.$ac_ext
19118 cat >>conftest.$ac_ext <<_ACEOF
19119 /* end confdefs.h. */
19120
19121 /* Override any GCC internal prototype to avoid an error.
19122 Use char because int might match the return type of a GCC
19123 builtin and then its argument prototype would still apply. */
19124 #ifdef __cplusplus
19125 extern "C"
19126 #endif
19127 char com_err ();
19128 int
19129 main ()
19130 {
19131 return com_err ();
19132 ;
19133 return 0;
19134 }
19135 _ACEOF
19136 rm -f conftest.$ac_objext conftest$ac_exeext
19137 if { (ac_try="$ac_link"
19138 case "(($ac_try" in
19139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19140 *) ac_try_echo=$ac_try;;
19141 esac
19142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19143 (eval "$ac_link") 2>conftest.er1
19144 ac_status=$?
19145 grep -v '^ *+' conftest.er1 >conftest.err
19146 rm -f conftest.er1
19147 cat conftest.err >&5
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); } && {
19150 test -z "$ac_c_werror_flag" ||
19151 test ! -s conftest.err
19152 } && test -s conftest$ac_exeext &&
19153 $as_test_x conftest$ac_exeext; then
19154 ac_cv_lib_com_err_com_err=yes
19155 else
19156 echo "$as_me: failed program was:" >&5
19157 sed 's/^/| /' conftest.$ac_ext >&5
19158
19159 ac_cv_lib_com_err_com_err=no
19160 fi
19161
19162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19163 conftest$ac_exeext conftest.$ac_ext
19164 LIBS=$ac_check_lib_save_LIBS
19165 fi
19166 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
19167 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19168 if test $ac_cv_lib_com_err_com_err = yes; then
19169 cat >>confdefs.h <<_ACEOF
19170 #define HAVE_LIBCOM_ERR 1
19171 _ACEOF
19172
19173 LIBS="-lcom_err $LIBS"
19174
19175 fi
19176
19177
19178 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19179 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
19180 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19181 echo $ECHO_N "(cached) $ECHO_C" >&6
19182 else
19183 ac_check_lib_save_LIBS=$LIBS
19184 LIBS="-lk5crypto $LIBS"
19185 cat >conftest.$ac_ext <<_ACEOF
19186 /* confdefs.h. */
19187 _ACEOF
19188 cat confdefs.h >>conftest.$ac_ext
19189 cat >>conftest.$ac_ext <<_ACEOF
19190 /* end confdefs.h. */
19191
19192 /* Override any GCC internal prototype to avoid an error.
19193 Use char because int might match the return type of a GCC
19194 builtin and then its argument prototype would still apply. */
19195 #ifdef __cplusplus
19196 extern "C"
19197 #endif
19198 char mit_des_cbc_encrypt ();
19199 int
19200 main ()
19201 {
19202 return mit_des_cbc_encrypt ();
19203 ;
19204 return 0;
19205 }
19206 _ACEOF
19207 rm -f conftest.$ac_objext conftest$ac_exeext
19208 if { (ac_try="$ac_link"
19209 case "(($ac_try" in
19210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19211 *) ac_try_echo=$ac_try;;
19212 esac
19213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19214 (eval "$ac_link") 2>conftest.er1
19215 ac_status=$?
19216 grep -v '^ *+' conftest.er1 >conftest.err
19217 rm -f conftest.er1
19218 cat conftest.err >&5
19219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220 (exit $ac_status); } && {
19221 test -z "$ac_c_werror_flag" ||
19222 test ! -s conftest.err
19223 } && test -s conftest$ac_exeext &&
19224 $as_test_x conftest$ac_exeext; then
19225 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19226 else
19227 echo "$as_me: failed program was:" >&5
19228 sed 's/^/| /' conftest.$ac_ext >&5
19229
19230 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19231 fi
19232
19233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19234 conftest$ac_exeext conftest.$ac_ext
19235 LIBS=$ac_check_lib_save_LIBS
19236 fi
19237 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19238 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19239 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19240 cat >>confdefs.h <<_ACEOF
19241 #define HAVE_LIBK5CRYPTO 1
19242 _ACEOF
19243
19244 LIBS="-lk5crypto $LIBS"
19245
19246 fi
19247
19248
19249 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19250 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
19251 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19252 echo $ECHO_N "(cached) $ECHO_C" >&6
19253 else
19254 ac_check_lib_save_LIBS=$LIBS
19255 LIBS="-lcrypto $LIBS"
19256 cat >conftest.$ac_ext <<_ACEOF
19257 /* confdefs.h. */
19258 _ACEOF
19259 cat confdefs.h >>conftest.$ac_ext
19260 cat >>conftest.$ac_ext <<_ACEOF
19261 /* end confdefs.h. */
19262
19263 /* Override any GCC internal prototype to avoid an error.
19264 Use char because int might match the return type of a GCC
19265 builtin and then its argument prototype would still apply. */
19266 #ifdef __cplusplus
19267 extern "C"
19268 #endif
19269 char mit_des_cbc_encrypt ();
19270 int
19271 main ()
19272 {
19273 return mit_des_cbc_encrypt ();
19274 ;
19275 return 0;
19276 }
19277 _ACEOF
19278 rm -f conftest.$ac_objext conftest$ac_exeext
19279 if { (ac_try="$ac_link"
19280 case "(($ac_try" in
19281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19282 *) ac_try_echo=$ac_try;;
19283 esac
19284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19285 (eval "$ac_link") 2>conftest.er1
19286 ac_status=$?
19287 grep -v '^ *+' conftest.er1 >conftest.err
19288 rm -f conftest.er1
19289 cat conftest.err >&5
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); } && {
19292 test -z "$ac_c_werror_flag" ||
19293 test ! -s conftest.err
19294 } && test -s conftest$ac_exeext &&
19295 $as_test_x conftest$ac_exeext; then
19296 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19297 else
19298 echo "$as_me: failed program was:" >&5
19299 sed 's/^/| /' conftest.$ac_ext >&5
19300
19301 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19302 fi
19303
19304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19305 conftest$ac_exeext conftest.$ac_ext
19306 LIBS=$ac_check_lib_save_LIBS
19307 fi
19308 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19309 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19310 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19311 cat >>confdefs.h <<_ACEOF
19312 #define HAVE_LIBCRYPTO 1
19313 _ACEOF
19314
19315 LIBS="-lcrypto $LIBS"
19316
19317 fi
19318
19319
19320 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19321 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
19322 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19323 echo $ECHO_N "(cached) $ECHO_C" >&6
19324 else
19325 ac_check_lib_save_LIBS=$LIBS
19326 LIBS="-lkrb5 $LIBS"
19327 cat >conftest.$ac_ext <<_ACEOF
19328 /* confdefs.h. */
19329 _ACEOF
19330 cat confdefs.h >>conftest.$ac_ext
19331 cat >>conftest.$ac_ext <<_ACEOF
19332 /* end confdefs.h. */
19333
19334 /* Override any GCC internal prototype to avoid an error.
19335 Use char because int might match the return type of a GCC
19336 builtin and then its argument prototype would still apply. */
19337 #ifdef __cplusplus
19338 extern "C"
19339 #endif
19340 char krb5_init_context ();
19341 int
19342 main ()
19343 {
19344 return krb5_init_context ();
19345 ;
19346 return 0;
19347 }
19348 _ACEOF
19349 rm -f conftest.$ac_objext conftest$ac_exeext
19350 if { (ac_try="$ac_link"
19351 case "(($ac_try" in
19352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19353 *) ac_try_echo=$ac_try;;
19354 esac
19355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19356 (eval "$ac_link") 2>conftest.er1
19357 ac_status=$?
19358 grep -v '^ *+' conftest.er1 >conftest.err
19359 rm -f conftest.er1
19360 cat conftest.err >&5
19361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362 (exit $ac_status); } && {
19363 test -z "$ac_c_werror_flag" ||
19364 test ! -s conftest.err
19365 } && test -s conftest$ac_exeext &&
19366 $as_test_x conftest$ac_exeext; then
19367 ac_cv_lib_krb5_krb5_init_context=yes
19368 else
19369 echo "$as_me: failed program was:" >&5
19370 sed 's/^/| /' conftest.$ac_ext >&5
19371
19372 ac_cv_lib_krb5_krb5_init_context=no
19373 fi
19374
19375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19376 conftest$ac_exeext conftest.$ac_ext
19377 LIBS=$ac_check_lib_save_LIBS
19378 fi
19379 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19380 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
19381 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19382 cat >>confdefs.h <<_ACEOF
19383 #define HAVE_LIBKRB5 1
19384 _ACEOF
19385
19386 LIBS="-lkrb5 $LIBS"
19387
19388 fi
19389
19390 if test "${with_kerberos5+set}" != set; then
19391
19392 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19393 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
19394 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19395 echo $ECHO_N "(cached) $ECHO_C" >&6
19396 else
19397 ac_check_lib_save_LIBS=$LIBS
19398 LIBS="-ldes425 $LIBS"
19399 cat >conftest.$ac_ext <<_ACEOF
19400 /* confdefs.h. */
19401 _ACEOF
19402 cat confdefs.h >>conftest.$ac_ext
19403 cat >>conftest.$ac_ext <<_ACEOF
19404 /* end confdefs.h. */
19405
19406 /* Override any GCC internal prototype to avoid an error.
19407 Use char because int might match the return type of a GCC
19408 builtin and then its argument prototype would still apply. */
19409 #ifdef __cplusplus
19410 extern "C"
19411 #endif
19412 char des_cbc_encrypt ();
19413 int
19414 main ()
19415 {
19416 return des_cbc_encrypt ();
19417 ;
19418 return 0;
19419 }
19420 _ACEOF
19421 rm -f conftest.$ac_objext conftest$ac_exeext
19422 if { (ac_try="$ac_link"
19423 case "(($ac_try" in
19424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19425 *) ac_try_echo=$ac_try;;
19426 esac
19427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19428 (eval "$ac_link") 2>conftest.er1
19429 ac_status=$?
19430 grep -v '^ *+' conftest.er1 >conftest.err
19431 rm -f conftest.er1
19432 cat conftest.err >&5
19433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434 (exit $ac_status); } && {
19435 test -z "$ac_c_werror_flag" ||
19436 test ! -s conftest.err
19437 } && test -s conftest$ac_exeext &&
19438 $as_test_x conftest$ac_exeext; then
19439 ac_cv_lib_des425_des_cbc_encrypt=yes
19440 else
19441 echo "$as_me: failed program was:" >&5
19442 sed 's/^/| /' conftest.$ac_ext >&5
19443
19444 ac_cv_lib_des425_des_cbc_encrypt=no
19445 fi
19446
19447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19448 conftest$ac_exeext conftest.$ac_ext
19449 LIBS=$ac_check_lib_save_LIBS
19450 fi
19451 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19452 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
19453 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19454 cat >>confdefs.h <<_ACEOF
19455 #define HAVE_LIBDES425 1
19456 _ACEOF
19457
19458 LIBS="-ldes425 $LIBS"
19459
19460 else
19461
19462 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19463 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
19464 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19465 echo $ECHO_N "(cached) $ECHO_C" >&6
19466 else
19467 ac_check_lib_save_LIBS=$LIBS
19468 LIBS="-ldes $LIBS"
19469 cat >conftest.$ac_ext <<_ACEOF
19470 /* confdefs.h. */
19471 _ACEOF
19472 cat confdefs.h >>conftest.$ac_ext
19473 cat >>conftest.$ac_ext <<_ACEOF
19474 /* end confdefs.h. */
19475
19476 /* Override any GCC internal prototype to avoid an error.
19477 Use char because int might match the return type of a GCC
19478 builtin and then its argument prototype would still apply. */
19479 #ifdef __cplusplus
19480 extern "C"
19481 #endif
19482 char des_cbc_encrypt ();
19483 int
19484 main ()
19485 {
19486 return des_cbc_encrypt ();
19487 ;
19488 return 0;
19489 }
19490 _ACEOF
19491 rm -f conftest.$ac_objext conftest$ac_exeext
19492 if { (ac_try="$ac_link"
19493 case "(($ac_try" in
19494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19495 *) ac_try_echo=$ac_try;;
19496 esac
19497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19498 (eval "$ac_link") 2>conftest.er1
19499 ac_status=$?
19500 grep -v '^ *+' conftest.er1 >conftest.err
19501 rm -f conftest.er1
19502 cat conftest.err >&5
19503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 (exit $ac_status); } && {
19505 test -z "$ac_c_werror_flag" ||
19506 test ! -s conftest.err
19507 } && test -s conftest$ac_exeext &&
19508 $as_test_x conftest$ac_exeext; then
19509 ac_cv_lib_des_des_cbc_encrypt=yes
19510 else
19511 echo "$as_me: failed program was:" >&5
19512 sed 's/^/| /' conftest.$ac_ext >&5
19513
19514 ac_cv_lib_des_des_cbc_encrypt=no
19515 fi
19516
19517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19518 conftest$ac_exeext conftest.$ac_ext
19519 LIBS=$ac_check_lib_save_LIBS
19520 fi
19521 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19522 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
19523 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19524 cat >>confdefs.h <<_ACEOF
19525 #define HAVE_LIBDES 1
19526 _ACEOF
19527
19528 LIBS="-ldes $LIBS"
19529
19530 fi
19531
19532 fi
19533
19534
19535 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19536 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
19537 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19538 echo $ECHO_N "(cached) $ECHO_C" >&6
19539 else
19540 ac_check_lib_save_LIBS=$LIBS
19541 LIBS="-lkrb4 $LIBS"
19542 cat >conftest.$ac_ext <<_ACEOF
19543 /* confdefs.h. */
19544 _ACEOF
19545 cat confdefs.h >>conftest.$ac_ext
19546 cat >>conftest.$ac_ext <<_ACEOF
19547 /* end confdefs.h. */
19548
19549 /* Override any GCC internal prototype to avoid an error.
19550 Use char because int might match the return type of a GCC
19551 builtin and then its argument prototype would still apply. */
19552 #ifdef __cplusplus
19553 extern "C"
19554 #endif
19555 char krb_get_cred ();
19556 int
19557 main ()
19558 {
19559 return krb_get_cred ();
19560 ;
19561 return 0;
19562 }
19563 _ACEOF
19564 rm -f conftest.$ac_objext conftest$ac_exeext
19565 if { (ac_try="$ac_link"
19566 case "(($ac_try" in
19567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19568 *) ac_try_echo=$ac_try;;
19569 esac
19570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19571 (eval "$ac_link") 2>conftest.er1
19572 ac_status=$?
19573 grep -v '^ *+' conftest.er1 >conftest.err
19574 rm -f conftest.er1
19575 cat conftest.err >&5
19576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577 (exit $ac_status); } && {
19578 test -z "$ac_c_werror_flag" ||
19579 test ! -s conftest.err
19580 } && test -s conftest$ac_exeext &&
19581 $as_test_x conftest$ac_exeext; then
19582 ac_cv_lib_krb4_krb_get_cred=yes
19583 else
19584 echo "$as_me: failed program was:" >&5
19585 sed 's/^/| /' conftest.$ac_ext >&5
19586
19587 ac_cv_lib_krb4_krb_get_cred=no
19588 fi
19589
19590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19591 conftest$ac_exeext conftest.$ac_ext
19592 LIBS=$ac_check_lib_save_LIBS
19593 fi
19594 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19595 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
19596 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19597 cat >>confdefs.h <<_ACEOF
19598 #define HAVE_LIBKRB4 1
19599 _ACEOF
19600
19601 LIBS="-lkrb4 $LIBS"
19602
19603 else
19604
19605 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19606 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
19607 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19608 echo $ECHO_N "(cached) $ECHO_C" >&6
19609 else
19610 ac_check_lib_save_LIBS=$LIBS
19611 LIBS="-lkrb $LIBS"
19612 cat >conftest.$ac_ext <<_ACEOF
19613 /* confdefs.h. */
19614 _ACEOF
19615 cat confdefs.h >>conftest.$ac_ext
19616 cat >>conftest.$ac_ext <<_ACEOF
19617 /* end confdefs.h. */
19618
19619 /* Override any GCC internal prototype to avoid an error.
19620 Use char because int might match the return type of a GCC
19621 builtin and then its argument prototype would still apply. */
19622 #ifdef __cplusplus
19623 extern "C"
19624 #endif
19625 char krb_get_cred ();
19626 int
19627 main ()
19628 {
19629 return krb_get_cred ();
19630 ;
19631 return 0;
19632 }
19633 _ACEOF
19634 rm -f conftest.$ac_objext conftest$ac_exeext
19635 if { (ac_try="$ac_link"
19636 case "(($ac_try" in
19637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19638 *) ac_try_echo=$ac_try;;
19639 esac
19640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19641 (eval "$ac_link") 2>conftest.er1
19642 ac_status=$?
19643 grep -v '^ *+' conftest.er1 >conftest.err
19644 rm -f conftest.er1
19645 cat conftest.err >&5
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); } && {
19648 test -z "$ac_c_werror_flag" ||
19649 test ! -s conftest.err
19650 } && test -s conftest$ac_exeext &&
19651 $as_test_x conftest$ac_exeext; then
19652 ac_cv_lib_krb_krb_get_cred=yes
19653 else
19654 echo "$as_me: failed program was:" >&5
19655 sed 's/^/| /' conftest.$ac_ext >&5
19656
19657 ac_cv_lib_krb_krb_get_cred=no
19658 fi
19659
19660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19661 conftest$ac_exeext conftest.$ac_ext
19662 LIBS=$ac_check_lib_save_LIBS
19663 fi
19664 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
19665 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
19666 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19667 cat >>confdefs.h <<_ACEOF
19668 #define HAVE_LIBKRB 1
19669 _ACEOF
19670
19671 LIBS="-lkrb $LIBS"
19672
19673 fi
19674
19675 fi
19676
19677 fi
19678
19679 if test "${with_kerberos5+set}" = set; then
19680
19681 for ac_header in krb5.h
19682 do
19683 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19685 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19688 echo $ECHO_N "(cached) $ECHO_C" >&6
19689 fi
19690 ac_res=`eval echo '${'$as_ac_Header'}'`
19691 { echo "$as_me:$LINENO: result: $ac_res" >&5
19692 echo "${ECHO_T}$ac_res" >&6; }
19693 else
19694 # Is the header compilable?
19695 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19696 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19697 cat >conftest.$ac_ext <<_ACEOF
19698 /* confdefs.h. */
19699 _ACEOF
19700 cat confdefs.h >>conftest.$ac_ext
19701 cat >>conftest.$ac_ext <<_ACEOF
19702 /* end confdefs.h. */
19703 $ac_includes_default
19704 #include <$ac_header>
19705 _ACEOF
19706 rm -f conftest.$ac_objext
19707 if { (ac_try="$ac_compile"
19708 case "(($ac_try" in
19709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19710 *) ac_try_echo=$ac_try;;
19711 esac
19712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19713 (eval "$ac_compile") 2>conftest.er1
19714 ac_status=$?
19715 grep -v '^ *+' conftest.er1 >conftest.err
19716 rm -f conftest.er1
19717 cat conftest.err >&5
19718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719 (exit $ac_status); } && {
19720 test -z "$ac_c_werror_flag" ||
19721 test ! -s conftest.err
19722 } && test -s conftest.$ac_objext; then
19723 ac_header_compiler=yes
19724 else
19725 echo "$as_me: failed program was:" >&5
19726 sed 's/^/| /' conftest.$ac_ext >&5
19727
19728 ac_header_compiler=no
19729 fi
19730
19731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19732 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19733 echo "${ECHO_T}$ac_header_compiler" >&6; }
19734
19735 # Is the header present?
19736 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19737 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19738 cat >conftest.$ac_ext <<_ACEOF
19739 /* confdefs.h. */
19740 _ACEOF
19741 cat confdefs.h >>conftest.$ac_ext
19742 cat >>conftest.$ac_ext <<_ACEOF
19743 /* end confdefs.h. */
19744 #include <$ac_header>
19745 _ACEOF
19746 if { (ac_try="$ac_cpp conftest.$ac_ext"
19747 case "(($ac_try" in
19748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19749 *) ac_try_echo=$ac_try;;
19750 esac
19751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19753 ac_status=$?
19754 grep -v '^ *+' conftest.er1 >conftest.err
19755 rm -f conftest.er1
19756 cat conftest.err >&5
19757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758 (exit $ac_status); } >/dev/null && {
19759 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19760 test ! -s conftest.err
19761 }; then
19762 ac_header_preproc=yes
19763 else
19764 echo "$as_me: failed program was:" >&5
19765 sed 's/^/| /' conftest.$ac_ext >&5
19766
19767 ac_header_preproc=no
19768 fi
19769
19770 rm -f conftest.err conftest.$ac_ext
19771 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19772 echo "${ECHO_T}$ac_header_preproc" >&6; }
19773
19774 # So? What about this header?
19775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19776 yes:no: )
19777 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19778 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19780 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19781 ac_header_preproc=yes
19782 ;;
19783 no:yes:* )
19784 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19785 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19786 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19787 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19788 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19789 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19790 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19791 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19793 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19794 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19795 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19796
19797 ;;
19798 esac
19799 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19802 echo $ECHO_N "(cached) $ECHO_C" >&6
19803 else
19804 eval "$as_ac_Header=\$ac_header_preproc"
19805 fi
19806 ac_res=`eval echo '${'$as_ac_Header'}'`
19807 { echo "$as_me:$LINENO: result: $ac_res" >&5
19808 echo "${ECHO_T}$ac_res" >&6; }
19809
19810 fi
19811 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19812 cat >>confdefs.h <<_ACEOF
19813 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19814 _ACEOF
19815
19816 fi
19817
19818 done
19819
19820 else
19821
19822 for ac_header in des.h
19823 do
19824 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19826 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19829 echo $ECHO_N "(cached) $ECHO_C" >&6
19830 fi
19831 ac_res=`eval echo '${'$as_ac_Header'}'`
19832 { echo "$as_me:$LINENO: result: $ac_res" >&5
19833 echo "${ECHO_T}$ac_res" >&6; }
19834 else
19835 # Is the header compilable?
19836 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19837 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19838 cat >conftest.$ac_ext <<_ACEOF
19839 /* confdefs.h. */
19840 _ACEOF
19841 cat confdefs.h >>conftest.$ac_ext
19842 cat >>conftest.$ac_ext <<_ACEOF
19843 /* end confdefs.h. */
19844 $ac_includes_default
19845 #include <$ac_header>
19846 _ACEOF
19847 rm -f conftest.$ac_objext
19848 if { (ac_try="$ac_compile"
19849 case "(($ac_try" in
19850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19851 *) ac_try_echo=$ac_try;;
19852 esac
19853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19854 (eval "$ac_compile") 2>conftest.er1
19855 ac_status=$?
19856 grep -v '^ *+' conftest.er1 >conftest.err
19857 rm -f conftest.er1
19858 cat conftest.err >&5
19859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860 (exit $ac_status); } && {
19861 test -z "$ac_c_werror_flag" ||
19862 test ! -s conftest.err
19863 } && test -s conftest.$ac_objext; then
19864 ac_header_compiler=yes
19865 else
19866 echo "$as_me: failed program was:" >&5
19867 sed 's/^/| /' conftest.$ac_ext >&5
19868
19869 ac_header_compiler=no
19870 fi
19871
19872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19873 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19874 echo "${ECHO_T}$ac_header_compiler" >&6; }
19875
19876 # Is the header present?
19877 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19878 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19879 cat >conftest.$ac_ext <<_ACEOF
19880 /* confdefs.h. */
19881 _ACEOF
19882 cat confdefs.h >>conftest.$ac_ext
19883 cat >>conftest.$ac_ext <<_ACEOF
19884 /* end confdefs.h. */
19885 #include <$ac_header>
19886 _ACEOF
19887 if { (ac_try="$ac_cpp conftest.$ac_ext"
19888 case "(($ac_try" in
19889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19890 *) ac_try_echo=$ac_try;;
19891 esac
19892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19894 ac_status=$?
19895 grep -v '^ *+' conftest.er1 >conftest.err
19896 rm -f conftest.er1
19897 cat conftest.err >&5
19898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899 (exit $ac_status); } >/dev/null && {
19900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19901 test ! -s conftest.err
19902 }; then
19903 ac_header_preproc=yes
19904 else
19905 echo "$as_me: failed program was:" >&5
19906 sed 's/^/| /' conftest.$ac_ext >&5
19907
19908 ac_header_preproc=no
19909 fi
19910
19911 rm -f conftest.err conftest.$ac_ext
19912 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19913 echo "${ECHO_T}$ac_header_preproc" >&6; }
19914
19915 # So? What about this header?
19916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19917 yes:no: )
19918 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19919 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19921 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19922 ac_header_preproc=yes
19923 ;;
19924 no:yes:* )
19925 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19926 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19927 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19928 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19929 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19930 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19931 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19932 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19934 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19935 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19936 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19937
19938 ;;
19939 esac
19940 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19943 echo $ECHO_N "(cached) $ECHO_C" >&6
19944 else
19945 eval "$as_ac_Header=\$ac_header_preproc"
19946 fi
19947 ac_res=`eval echo '${'$as_ac_Header'}'`
19948 { echo "$as_me:$LINENO: result: $ac_res" >&5
19949 echo "${ECHO_T}$ac_res" >&6; }
19950
19951 fi
19952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19953 cat >>confdefs.h <<_ACEOF
19954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19955 _ACEOF
19956
19957 else
19958
19959 for ac_header in kerberosIV/des.h
19960 do
19961 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19963 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19966 echo $ECHO_N "(cached) $ECHO_C" >&6
19967 fi
19968 ac_res=`eval echo '${'$as_ac_Header'}'`
19969 { echo "$as_me:$LINENO: result: $ac_res" >&5
19970 echo "${ECHO_T}$ac_res" >&6; }
19971 else
19972 # Is the header compilable?
19973 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19974 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19975 cat >conftest.$ac_ext <<_ACEOF
19976 /* confdefs.h. */
19977 _ACEOF
19978 cat confdefs.h >>conftest.$ac_ext
19979 cat >>conftest.$ac_ext <<_ACEOF
19980 /* end confdefs.h. */
19981 $ac_includes_default
19982 #include <$ac_header>
19983 _ACEOF
19984 rm -f conftest.$ac_objext
19985 if { (ac_try="$ac_compile"
19986 case "(($ac_try" in
19987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19988 *) ac_try_echo=$ac_try;;
19989 esac
19990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19991 (eval "$ac_compile") 2>conftest.er1
19992 ac_status=$?
19993 grep -v '^ *+' conftest.er1 >conftest.err
19994 rm -f conftest.er1
19995 cat conftest.err >&5
19996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997 (exit $ac_status); } && {
19998 test -z "$ac_c_werror_flag" ||
19999 test ! -s conftest.err
20000 } && test -s conftest.$ac_objext; then
20001 ac_header_compiler=yes
20002 else
20003 echo "$as_me: failed program was:" >&5
20004 sed 's/^/| /' conftest.$ac_ext >&5
20005
20006 ac_header_compiler=no
20007 fi
20008
20009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20010 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20011 echo "${ECHO_T}$ac_header_compiler" >&6; }
20012
20013 # Is the header present?
20014 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20015 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20016 cat >conftest.$ac_ext <<_ACEOF
20017 /* confdefs.h. */
20018 _ACEOF
20019 cat confdefs.h >>conftest.$ac_ext
20020 cat >>conftest.$ac_ext <<_ACEOF
20021 /* end confdefs.h. */
20022 #include <$ac_header>
20023 _ACEOF
20024 if { (ac_try="$ac_cpp conftest.$ac_ext"
20025 case "(($ac_try" in
20026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20027 *) ac_try_echo=$ac_try;;
20028 esac
20029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20031 ac_status=$?
20032 grep -v '^ *+' conftest.er1 >conftest.err
20033 rm -f conftest.er1
20034 cat conftest.err >&5
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); } >/dev/null && {
20037 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20038 test ! -s conftest.err
20039 }; then
20040 ac_header_preproc=yes
20041 else
20042 echo "$as_me: failed program was:" >&5
20043 sed 's/^/| /' conftest.$ac_ext >&5
20044
20045 ac_header_preproc=no
20046 fi
20047
20048 rm -f conftest.err conftest.$ac_ext
20049 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20050 echo "${ECHO_T}$ac_header_preproc" >&6; }
20051
20052 # So? What about this header?
20053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20054 yes:no: )
20055 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20056 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20058 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20059 ac_header_preproc=yes
20060 ;;
20061 no:yes:* )
20062 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20063 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20064 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20065 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20066 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20067 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20068 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20069 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20071 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20072 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20073 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20074
20075 ;;
20076 esac
20077 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20080 echo $ECHO_N "(cached) $ECHO_C" >&6
20081 else
20082 eval "$as_ac_Header=\$ac_header_preproc"
20083 fi
20084 ac_res=`eval echo '${'$as_ac_Header'}'`
20085 { echo "$as_me:$LINENO: result: $ac_res" >&5
20086 echo "${ECHO_T}$ac_res" >&6; }
20087
20088 fi
20089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20090 cat >>confdefs.h <<_ACEOF
20091 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20092 _ACEOF
20093
20094 else
20095
20096 for ac_header in kerberos/des.h
20097 do
20098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20100 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20103 echo $ECHO_N "(cached) $ECHO_C" >&6
20104 fi
20105 ac_res=`eval echo '${'$as_ac_Header'}'`
20106 { echo "$as_me:$LINENO: result: $ac_res" >&5
20107 echo "${ECHO_T}$ac_res" >&6; }
20108 else
20109 # Is the header compilable?
20110 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20112 cat >conftest.$ac_ext <<_ACEOF
20113 /* confdefs.h. */
20114 _ACEOF
20115 cat confdefs.h >>conftest.$ac_ext
20116 cat >>conftest.$ac_ext <<_ACEOF
20117 /* end confdefs.h. */
20118 $ac_includes_default
20119 #include <$ac_header>
20120 _ACEOF
20121 rm -f conftest.$ac_objext
20122 if { (ac_try="$ac_compile"
20123 case "(($ac_try" in
20124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20125 *) ac_try_echo=$ac_try;;
20126 esac
20127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20128 (eval "$ac_compile") 2>conftest.er1
20129 ac_status=$?
20130 grep -v '^ *+' conftest.er1 >conftest.err
20131 rm -f conftest.er1
20132 cat conftest.err >&5
20133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134 (exit $ac_status); } && {
20135 test -z "$ac_c_werror_flag" ||
20136 test ! -s conftest.err
20137 } && test -s conftest.$ac_objext; then
20138 ac_header_compiler=yes
20139 else
20140 echo "$as_me: failed program was:" >&5
20141 sed 's/^/| /' conftest.$ac_ext >&5
20142
20143 ac_header_compiler=no
20144 fi
20145
20146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20147 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20148 echo "${ECHO_T}$ac_header_compiler" >&6; }
20149
20150 # Is the header present?
20151 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20152 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20153 cat >conftest.$ac_ext <<_ACEOF
20154 /* confdefs.h. */
20155 _ACEOF
20156 cat confdefs.h >>conftest.$ac_ext
20157 cat >>conftest.$ac_ext <<_ACEOF
20158 /* end confdefs.h. */
20159 #include <$ac_header>
20160 _ACEOF
20161 if { (ac_try="$ac_cpp conftest.$ac_ext"
20162 case "(($ac_try" in
20163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20164 *) ac_try_echo=$ac_try;;
20165 esac
20166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20167 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20168 ac_status=$?
20169 grep -v '^ *+' conftest.er1 >conftest.err
20170 rm -f conftest.er1
20171 cat conftest.err >&5
20172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173 (exit $ac_status); } >/dev/null && {
20174 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20175 test ! -s conftest.err
20176 }; then
20177 ac_header_preproc=yes
20178 else
20179 echo "$as_me: failed program was:" >&5
20180 sed 's/^/| /' conftest.$ac_ext >&5
20181
20182 ac_header_preproc=no
20183 fi
20184
20185 rm -f conftest.err conftest.$ac_ext
20186 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20187 echo "${ECHO_T}$ac_header_preproc" >&6; }
20188
20189 # So? What about this header?
20190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20191 yes:no: )
20192 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20193 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20195 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20196 ac_header_preproc=yes
20197 ;;
20198 no:yes:* )
20199 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20200 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20201 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20202 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20203 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20204 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20205 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20206 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20208 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20209 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20210 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20211
20212 ;;
20213 esac
20214 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20217 echo $ECHO_N "(cached) $ECHO_C" >&6
20218 else
20219 eval "$as_ac_Header=\$ac_header_preproc"
20220 fi
20221 ac_res=`eval echo '${'$as_ac_Header'}'`
20222 { echo "$as_me:$LINENO: result: $ac_res" >&5
20223 echo "${ECHO_T}$ac_res" >&6; }
20224
20225 fi
20226 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20227 cat >>confdefs.h <<_ACEOF
20228 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20229 _ACEOF
20230
20231 fi
20232
20233 done
20234
20235 fi
20236
20237 done
20238
20239 fi
20240
20241 done
20242
20243
20244 for ac_header in krb.h
20245 do
20246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20248 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20251 echo $ECHO_N "(cached) $ECHO_C" >&6
20252 fi
20253 ac_res=`eval echo '${'$as_ac_Header'}'`
20254 { echo "$as_me:$LINENO: result: $ac_res" >&5
20255 echo "${ECHO_T}$ac_res" >&6; }
20256 else
20257 # Is the header compilable?
20258 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20259 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20260 cat >conftest.$ac_ext <<_ACEOF
20261 /* confdefs.h. */
20262 _ACEOF
20263 cat confdefs.h >>conftest.$ac_ext
20264 cat >>conftest.$ac_ext <<_ACEOF
20265 /* end confdefs.h. */
20266 $ac_includes_default
20267 #include <$ac_header>
20268 _ACEOF
20269 rm -f conftest.$ac_objext
20270 if { (ac_try="$ac_compile"
20271 case "(($ac_try" in
20272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20273 *) ac_try_echo=$ac_try;;
20274 esac
20275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20276 (eval "$ac_compile") 2>conftest.er1
20277 ac_status=$?
20278 grep -v '^ *+' conftest.er1 >conftest.err
20279 rm -f conftest.er1
20280 cat conftest.err >&5
20281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282 (exit $ac_status); } && {
20283 test -z "$ac_c_werror_flag" ||
20284 test ! -s conftest.err
20285 } && test -s conftest.$ac_objext; then
20286 ac_header_compiler=yes
20287 else
20288 echo "$as_me: failed program was:" >&5
20289 sed 's/^/| /' conftest.$ac_ext >&5
20290
20291 ac_header_compiler=no
20292 fi
20293
20294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20295 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20296 echo "${ECHO_T}$ac_header_compiler" >&6; }
20297
20298 # Is the header present?
20299 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20300 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20301 cat >conftest.$ac_ext <<_ACEOF
20302 /* confdefs.h. */
20303 _ACEOF
20304 cat confdefs.h >>conftest.$ac_ext
20305 cat >>conftest.$ac_ext <<_ACEOF
20306 /* end confdefs.h. */
20307 #include <$ac_header>
20308 _ACEOF
20309 if { (ac_try="$ac_cpp conftest.$ac_ext"
20310 case "(($ac_try" in
20311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20312 *) ac_try_echo=$ac_try;;
20313 esac
20314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20315 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20316 ac_status=$?
20317 grep -v '^ *+' conftest.er1 >conftest.err
20318 rm -f conftest.er1
20319 cat conftest.err >&5
20320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321 (exit $ac_status); } >/dev/null && {
20322 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20323 test ! -s conftest.err
20324 }; then
20325 ac_header_preproc=yes
20326 else
20327 echo "$as_me: failed program was:" >&5
20328 sed 's/^/| /' conftest.$ac_ext >&5
20329
20330 ac_header_preproc=no
20331 fi
20332
20333 rm -f conftest.err conftest.$ac_ext
20334 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20335 echo "${ECHO_T}$ac_header_preproc" >&6; }
20336
20337 # So? What about this header?
20338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20339 yes:no: )
20340 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20341 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20343 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20344 ac_header_preproc=yes
20345 ;;
20346 no:yes:* )
20347 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20348 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20349 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20350 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20351 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20352 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20353 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20354 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20357 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20358 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20359
20360 ;;
20361 esac
20362 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20365 echo $ECHO_N "(cached) $ECHO_C" >&6
20366 else
20367 eval "$as_ac_Header=\$ac_header_preproc"
20368 fi
20369 ac_res=`eval echo '${'$as_ac_Header'}'`
20370 { echo "$as_me:$LINENO: result: $ac_res" >&5
20371 echo "${ECHO_T}$ac_res" >&6; }
20372
20373 fi
20374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20375 cat >>confdefs.h <<_ACEOF
20376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20377 _ACEOF
20378
20379 else
20380
20381 for ac_header in kerberosIV/krb.h
20382 do
20383 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20385 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20388 echo $ECHO_N "(cached) $ECHO_C" >&6
20389 fi
20390 ac_res=`eval echo '${'$as_ac_Header'}'`
20391 { echo "$as_me:$LINENO: result: $ac_res" >&5
20392 echo "${ECHO_T}$ac_res" >&6; }
20393 else
20394 # Is the header compilable?
20395 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20396 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20397 cat >conftest.$ac_ext <<_ACEOF
20398 /* confdefs.h. */
20399 _ACEOF
20400 cat confdefs.h >>conftest.$ac_ext
20401 cat >>conftest.$ac_ext <<_ACEOF
20402 /* end confdefs.h. */
20403 $ac_includes_default
20404 #include <$ac_header>
20405 _ACEOF
20406 rm -f conftest.$ac_objext
20407 if { (ac_try="$ac_compile"
20408 case "(($ac_try" in
20409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20410 *) ac_try_echo=$ac_try;;
20411 esac
20412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20413 (eval "$ac_compile") 2>conftest.er1
20414 ac_status=$?
20415 grep -v '^ *+' conftest.er1 >conftest.err
20416 rm -f conftest.er1
20417 cat conftest.err >&5
20418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419 (exit $ac_status); } && {
20420 test -z "$ac_c_werror_flag" ||
20421 test ! -s conftest.err
20422 } && test -s conftest.$ac_objext; then
20423 ac_header_compiler=yes
20424 else
20425 echo "$as_me: failed program was:" >&5
20426 sed 's/^/| /' conftest.$ac_ext >&5
20427
20428 ac_header_compiler=no
20429 fi
20430
20431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20432 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20433 echo "${ECHO_T}$ac_header_compiler" >&6; }
20434
20435 # Is the header present?
20436 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20437 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20438 cat >conftest.$ac_ext <<_ACEOF
20439 /* confdefs.h. */
20440 _ACEOF
20441 cat confdefs.h >>conftest.$ac_ext
20442 cat >>conftest.$ac_ext <<_ACEOF
20443 /* end confdefs.h. */
20444 #include <$ac_header>
20445 _ACEOF
20446 if { (ac_try="$ac_cpp conftest.$ac_ext"
20447 case "(($ac_try" in
20448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20449 *) ac_try_echo=$ac_try;;
20450 esac
20451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20453 ac_status=$?
20454 grep -v '^ *+' conftest.er1 >conftest.err
20455 rm -f conftest.er1
20456 cat conftest.err >&5
20457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); } >/dev/null && {
20459 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20460 test ! -s conftest.err
20461 }; then
20462 ac_header_preproc=yes
20463 else
20464 echo "$as_me: failed program was:" >&5
20465 sed 's/^/| /' conftest.$ac_ext >&5
20466
20467 ac_header_preproc=no
20468 fi
20469
20470 rm -f conftest.err conftest.$ac_ext
20471 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20472 echo "${ECHO_T}$ac_header_preproc" >&6; }
20473
20474 # So? What about this header?
20475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20476 yes:no: )
20477 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20478 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20480 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20481 ac_header_preproc=yes
20482 ;;
20483 no:yes:* )
20484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20485 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20487 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20488 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20489 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20490 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20491 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20494 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20495 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20496
20497 ;;
20498 esac
20499 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20502 echo $ECHO_N "(cached) $ECHO_C" >&6
20503 else
20504 eval "$as_ac_Header=\$ac_header_preproc"
20505 fi
20506 ac_res=`eval echo '${'$as_ac_Header'}'`
20507 { echo "$as_me:$LINENO: result: $ac_res" >&5
20508 echo "${ECHO_T}$ac_res" >&6; }
20509
20510 fi
20511 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20512 cat >>confdefs.h <<_ACEOF
20513 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20514 _ACEOF
20515
20516 else
20517
20518 for ac_header in kerberos/krb.h
20519 do
20520 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20522 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20525 echo $ECHO_N "(cached) $ECHO_C" >&6
20526 fi
20527 ac_res=`eval echo '${'$as_ac_Header'}'`
20528 { echo "$as_me:$LINENO: result: $ac_res" >&5
20529 echo "${ECHO_T}$ac_res" >&6; }
20530 else
20531 # Is the header compilable?
20532 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20533 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20534 cat >conftest.$ac_ext <<_ACEOF
20535 /* confdefs.h. */
20536 _ACEOF
20537 cat confdefs.h >>conftest.$ac_ext
20538 cat >>conftest.$ac_ext <<_ACEOF
20539 /* end confdefs.h. */
20540 $ac_includes_default
20541 #include <$ac_header>
20542 _ACEOF
20543 rm -f conftest.$ac_objext
20544 if { (ac_try="$ac_compile"
20545 case "(($ac_try" in
20546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20547 *) ac_try_echo=$ac_try;;
20548 esac
20549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20550 (eval "$ac_compile") 2>conftest.er1
20551 ac_status=$?
20552 grep -v '^ *+' conftest.er1 >conftest.err
20553 rm -f conftest.er1
20554 cat conftest.err >&5
20555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556 (exit $ac_status); } && {
20557 test -z "$ac_c_werror_flag" ||
20558 test ! -s conftest.err
20559 } && test -s conftest.$ac_objext; then
20560 ac_header_compiler=yes
20561 else
20562 echo "$as_me: failed program was:" >&5
20563 sed 's/^/| /' conftest.$ac_ext >&5
20564
20565 ac_header_compiler=no
20566 fi
20567
20568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20569 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20570 echo "${ECHO_T}$ac_header_compiler" >&6; }
20571
20572 # Is the header present?
20573 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20574 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20575 cat >conftest.$ac_ext <<_ACEOF
20576 /* confdefs.h. */
20577 _ACEOF
20578 cat confdefs.h >>conftest.$ac_ext
20579 cat >>conftest.$ac_ext <<_ACEOF
20580 /* end confdefs.h. */
20581 #include <$ac_header>
20582 _ACEOF
20583 if { (ac_try="$ac_cpp conftest.$ac_ext"
20584 case "(($ac_try" in
20585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20586 *) ac_try_echo=$ac_try;;
20587 esac
20588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20590 ac_status=$?
20591 grep -v '^ *+' conftest.er1 >conftest.err
20592 rm -f conftest.er1
20593 cat conftest.err >&5
20594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20595 (exit $ac_status); } >/dev/null && {
20596 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20597 test ! -s conftest.err
20598 }; then
20599 ac_header_preproc=yes
20600 else
20601 echo "$as_me: failed program was:" >&5
20602 sed 's/^/| /' conftest.$ac_ext >&5
20603
20604 ac_header_preproc=no
20605 fi
20606
20607 rm -f conftest.err conftest.$ac_ext
20608 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20609 echo "${ECHO_T}$ac_header_preproc" >&6; }
20610
20611 # So? What about this header?
20612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20613 yes:no: )
20614 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20615 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20617 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20618 ac_header_preproc=yes
20619 ;;
20620 no:yes:* )
20621 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20622 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20623 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20624 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20625 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20626 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20627 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20628 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20630 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20631 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20632 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20633
20634 ;;
20635 esac
20636 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20639 echo $ECHO_N "(cached) $ECHO_C" >&6
20640 else
20641 eval "$as_ac_Header=\$ac_header_preproc"
20642 fi
20643 ac_res=`eval echo '${'$as_ac_Header'}'`
20644 { echo "$as_me:$LINENO: result: $ac_res" >&5
20645 echo "${ECHO_T}$ac_res" >&6; }
20646
20647 fi
20648 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20649 cat >>confdefs.h <<_ACEOF
20650 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20651 _ACEOF
20652
20653 fi
20654
20655 done
20656
20657 fi
20658
20659 done
20660
20661 fi
20662
20663 done
20664
20665 fi
20666
20667 for ac_header in com_err.h
20668 do
20669 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20671 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20674 echo $ECHO_N "(cached) $ECHO_C" >&6
20675 fi
20676 ac_res=`eval echo '${'$as_ac_Header'}'`
20677 { echo "$as_me:$LINENO: result: $ac_res" >&5
20678 echo "${ECHO_T}$ac_res" >&6; }
20679 else
20680 # Is the header compilable?
20681 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20682 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20683 cat >conftest.$ac_ext <<_ACEOF
20684 /* confdefs.h. */
20685 _ACEOF
20686 cat confdefs.h >>conftest.$ac_ext
20687 cat >>conftest.$ac_ext <<_ACEOF
20688 /* end confdefs.h. */
20689 $ac_includes_default
20690 #include <$ac_header>
20691 _ACEOF
20692 rm -f conftest.$ac_objext
20693 if { (ac_try="$ac_compile"
20694 case "(($ac_try" in
20695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20696 *) ac_try_echo=$ac_try;;
20697 esac
20698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20699 (eval "$ac_compile") 2>conftest.er1
20700 ac_status=$?
20701 grep -v '^ *+' conftest.er1 >conftest.err
20702 rm -f conftest.er1
20703 cat conftest.err >&5
20704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705 (exit $ac_status); } && {
20706 test -z "$ac_c_werror_flag" ||
20707 test ! -s conftest.err
20708 } && test -s conftest.$ac_objext; then
20709 ac_header_compiler=yes
20710 else
20711 echo "$as_me: failed program was:" >&5
20712 sed 's/^/| /' conftest.$ac_ext >&5
20713
20714 ac_header_compiler=no
20715 fi
20716
20717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20718 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20719 echo "${ECHO_T}$ac_header_compiler" >&6; }
20720
20721 # Is the header present?
20722 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20723 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20724 cat >conftest.$ac_ext <<_ACEOF
20725 /* confdefs.h. */
20726 _ACEOF
20727 cat confdefs.h >>conftest.$ac_ext
20728 cat >>conftest.$ac_ext <<_ACEOF
20729 /* end confdefs.h. */
20730 #include <$ac_header>
20731 _ACEOF
20732 if { (ac_try="$ac_cpp conftest.$ac_ext"
20733 case "(($ac_try" in
20734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20735 *) ac_try_echo=$ac_try;;
20736 esac
20737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20739 ac_status=$?
20740 grep -v '^ *+' conftest.er1 >conftest.err
20741 rm -f conftest.er1
20742 cat conftest.err >&5
20743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744 (exit $ac_status); } >/dev/null && {
20745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20746 test ! -s conftest.err
20747 }; then
20748 ac_header_preproc=yes
20749 else
20750 echo "$as_me: failed program was:" >&5
20751 sed 's/^/| /' conftest.$ac_ext >&5
20752
20753 ac_header_preproc=no
20754 fi
20755
20756 rm -f conftest.err conftest.$ac_ext
20757 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20758 echo "${ECHO_T}$ac_header_preproc" >&6; }
20759
20760 # So? What about this header?
20761 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20762 yes:no: )
20763 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20764 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20766 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20767 ac_header_preproc=yes
20768 ;;
20769 no:yes:* )
20770 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20771 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20772 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20773 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20774 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20775 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20776 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20777 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20779 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20780 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20781 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20782
20783 ;;
20784 esac
20785 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20788 echo $ECHO_N "(cached) $ECHO_C" >&6
20789 else
20790 eval "$as_ac_Header=\$ac_header_preproc"
20791 fi
20792 ac_res=`eval echo '${'$as_ac_Header'}'`
20793 { echo "$as_me:$LINENO: result: $ac_res" >&5
20794 echo "${ECHO_T}$ac_res" >&6; }
20795
20796 fi
20797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20798 cat >>confdefs.h <<_ACEOF
20799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20800 _ACEOF
20801
20802 fi
20803
20804 done
20805
20806 fi
20807
20808 # Solaris requires -lintl if you want strerror (which calls dgettext)
20809 # to return localized messages.
20810
20811 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20812 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
20813 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20814 echo $ECHO_N "(cached) $ECHO_C" >&6
20815 else
20816 ac_check_lib_save_LIBS=$LIBS
20817 LIBS="-lintl $LIBS"
20818 cat >conftest.$ac_ext <<_ACEOF
20819 /* confdefs.h. */
20820 _ACEOF
20821 cat confdefs.h >>conftest.$ac_ext
20822 cat >>conftest.$ac_ext <<_ACEOF
20823 /* end confdefs.h. */
20824
20825 /* Override any GCC internal prototype to avoid an error.
20826 Use char because int might match the return type of a GCC
20827 builtin and then its argument prototype would still apply. */
20828 #ifdef __cplusplus
20829 extern "C"
20830 #endif
20831 char dgettext ();
20832 int
20833 main ()
20834 {
20835 return dgettext ();
20836 ;
20837 return 0;
20838 }
20839 _ACEOF
20840 rm -f conftest.$ac_objext conftest$ac_exeext
20841 if { (ac_try="$ac_link"
20842 case "(($ac_try" in
20843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20844 *) ac_try_echo=$ac_try;;
20845 esac
20846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20847 (eval "$ac_link") 2>conftest.er1
20848 ac_status=$?
20849 grep -v '^ *+' conftest.er1 >conftest.err
20850 rm -f conftest.er1
20851 cat conftest.err >&5
20852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853 (exit $ac_status); } && {
20854 test -z "$ac_c_werror_flag" ||
20855 test ! -s conftest.err
20856 } && test -s conftest$ac_exeext &&
20857 $as_test_x conftest$ac_exeext; then
20858 ac_cv_lib_intl_dgettext=yes
20859 else
20860 echo "$as_me: failed program was:" >&5
20861 sed 's/^/| /' conftest.$ac_ext >&5
20862
20863 ac_cv_lib_intl_dgettext=no
20864 fi
20865
20866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20867 conftest$ac_exeext conftest.$ac_ext
20868 LIBS=$ac_check_lib_save_LIBS
20869 fi
20870 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20871 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
20872 if test $ac_cv_lib_intl_dgettext = yes; then
20873 cat >>confdefs.h <<_ACEOF
20874 #define HAVE_LIBINTL 1
20875 _ACEOF
20876
20877 LIBS="-lintl $LIBS"
20878
20879 fi
20880
20881
20882 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
20883 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
20884 if test "${emacs_cv_localtime_cache+set}" = set; then
20885 echo $ECHO_N "(cached) $ECHO_C" >&6
20886 else
20887 if test x$ac_cv_func_tzset = xyes; then
20888 if test "$cross_compiling" = yes; then
20889 # If we have tzset, assume the worst when cross-compiling.
20890 emacs_cv_localtime_cache=yes
20891 else
20892 cat >conftest.$ac_ext <<_ACEOF
20893 /* confdefs.h. */
20894 _ACEOF
20895 cat confdefs.h >>conftest.$ac_ext
20896 cat >>conftest.$ac_ext <<_ACEOF
20897 /* end confdefs.h. */
20898 #include <time.h>
20899 extern char **environ;
20900 unset_TZ ()
20901 {
20902 char **from, **to;
20903 for (to = from = environ; (*to = *from); from++)
20904 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20905 to++;
20906 }
20907 char TZ_GMT0[] = "TZ=GMT0";
20908 char TZ_PST8[] = "TZ=PST8";
20909 main()
20910 {
20911 time_t now = time ((time_t *) 0);
20912 int hour_GMT0, hour_unset;
20913 if (putenv (TZ_GMT0) != 0)
20914 exit (1);
20915 hour_GMT0 = localtime (&now)->tm_hour;
20916 unset_TZ ();
20917 hour_unset = localtime (&now)->tm_hour;
20918 if (putenv (TZ_PST8) != 0)
20919 exit (1);
20920 if (localtime (&now)->tm_hour == hour_GMT0)
20921 exit (1);
20922 unset_TZ ();
20923 if (localtime (&now)->tm_hour != hour_unset)
20924 exit (1);
20925 exit (0);
20926 }
20927 _ACEOF
20928 rm -f conftest$ac_exeext
20929 if { (ac_try="$ac_link"
20930 case "(($ac_try" in
20931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20932 *) ac_try_echo=$ac_try;;
20933 esac
20934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20935 (eval "$ac_link") 2>&5
20936 ac_status=$?
20937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20939 { (case "(($ac_try" in
20940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20941 *) ac_try_echo=$ac_try;;
20942 esac
20943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20944 (eval "$ac_try") 2>&5
20945 ac_status=$?
20946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947 (exit $ac_status); }; }; then
20948 emacs_cv_localtime_cache=no
20949 else
20950 echo "$as_me: program exited with status $ac_status" >&5
20951 echo "$as_me: failed program was:" >&5
20952 sed 's/^/| /' conftest.$ac_ext >&5
20953
20954 ( exit $ac_status )
20955 emacs_cv_localtime_cache=yes
20956 fi
20957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20958 fi
20959
20960
20961 else
20962 # If we lack tzset, report that localtime does not cache TZ,
20963 # since we can't invalidate the cache if we don't have tzset.
20964 emacs_cv_localtime_cache=no
20965 fi
20966 fi
20967 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
20968 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
20969 if test $emacs_cv_localtime_cache = yes; then
20970
20971 cat >>confdefs.h <<\_ACEOF
20972 #define LOCALTIME_CACHE 1
20973 _ACEOF
20974
20975 fi
20976
20977 if test "x$HAVE_TIMEVAL" = xyes; then
20978
20979 for ac_func in gettimeofday
20980 do
20981 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20982 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20983 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20984 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20985 echo $ECHO_N "(cached) $ECHO_C" >&6
20986 else
20987 cat >conftest.$ac_ext <<_ACEOF
20988 /* confdefs.h. */
20989 _ACEOF
20990 cat confdefs.h >>conftest.$ac_ext
20991 cat >>conftest.$ac_ext <<_ACEOF
20992 /* end confdefs.h. */
20993 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20995 #define $ac_func innocuous_$ac_func
20996
20997 /* System header to define __stub macros and hopefully few prototypes,
20998 which can conflict with char $ac_func (); below.
20999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21000 <limits.h> exists even on freestanding compilers. */
21001
21002 #ifdef __STDC__
21003 # include <limits.h>
21004 #else
21005 # include <assert.h>
21006 #endif
21007
21008 #undef $ac_func
21009
21010 /* Override any GCC internal prototype to avoid an error.
21011 Use char because int might match the return type of a GCC
21012 builtin and then its argument prototype would still apply. */
21013 #ifdef __cplusplus
21014 extern "C"
21015 #endif
21016 char $ac_func ();
21017 /* The GNU C library defines this for functions which it implements
21018 to always fail with ENOSYS. Some functions are actually named
21019 something starting with __ and the normal name is an alias. */
21020 #if defined __stub_$ac_func || defined __stub___$ac_func
21021 choke me
21022 #endif
21023
21024 int
21025 main ()
21026 {
21027 return $ac_func ();
21028 ;
21029 return 0;
21030 }
21031 _ACEOF
21032 rm -f conftest.$ac_objext conftest$ac_exeext
21033 if { (ac_try="$ac_link"
21034 case "(($ac_try" in
21035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21036 *) ac_try_echo=$ac_try;;
21037 esac
21038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21039 (eval "$ac_link") 2>conftest.er1
21040 ac_status=$?
21041 grep -v '^ *+' conftest.er1 >conftest.err
21042 rm -f conftest.er1
21043 cat conftest.err >&5
21044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045 (exit $ac_status); } && {
21046 test -z "$ac_c_werror_flag" ||
21047 test ! -s conftest.err
21048 } && test -s conftest$ac_exeext &&
21049 $as_test_x conftest$ac_exeext; then
21050 eval "$as_ac_var=yes"
21051 else
21052 echo "$as_me: failed program was:" >&5
21053 sed 's/^/| /' conftest.$ac_ext >&5
21054
21055 eval "$as_ac_var=no"
21056 fi
21057
21058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21059 conftest$ac_exeext conftest.$ac_ext
21060 fi
21061 ac_res=`eval echo '${'$as_ac_var'}'`
21062 { echo "$as_me:$LINENO: result: $ac_res" >&5
21063 echo "${ECHO_T}$ac_res" >&6; }
21064 if test `eval echo '${'$as_ac_var'}'` = yes; then
21065 cat >>confdefs.h <<_ACEOF
21066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21067 _ACEOF
21068
21069 fi
21070 done
21071
21072 if test $ac_cv_func_gettimeofday = yes; then
21073 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
21074 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
21075 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21076 echo $ECHO_N "(cached) $ECHO_C" >&6
21077 else
21078 cat >conftest.$ac_ext <<_ACEOF
21079 /* confdefs.h. */
21080 _ACEOF
21081 cat confdefs.h >>conftest.$ac_ext
21082 cat >>conftest.$ac_ext <<_ACEOF
21083 /* end confdefs.h. */
21084
21085 #ifdef TIME_WITH_SYS_TIME
21086 #include <sys/time.h>
21087 #include <time.h>
21088 #else
21089 #ifdef HAVE_SYS_TIME_H
21090 #include <sys/time.h>
21091 #else
21092 #include <time.h>
21093 #endif
21094 #endif
21095 int
21096 main ()
21097 {
21098 struct timeval time;
21099 gettimeofday (&time, 0);
21100 ;
21101 return 0;
21102 }
21103 _ACEOF
21104 rm -f conftest.$ac_objext
21105 if { (ac_try="$ac_compile"
21106 case "(($ac_try" in
21107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21108 *) ac_try_echo=$ac_try;;
21109 esac
21110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21111 (eval "$ac_compile") 2>conftest.er1
21112 ac_status=$?
21113 grep -v '^ *+' conftest.er1 >conftest.err
21114 rm -f conftest.er1
21115 cat conftest.err >&5
21116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117 (exit $ac_status); } && {
21118 test -z "$ac_c_werror_flag" ||
21119 test ! -s conftest.err
21120 } && test -s conftest.$ac_objext; then
21121 emacs_cv_gettimeofday_two_arguments=yes
21122 else
21123 echo "$as_me: failed program was:" >&5
21124 sed 's/^/| /' conftest.$ac_ext >&5
21125
21126 emacs_cv_gettimeofday_two_arguments=no
21127 fi
21128
21129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21130 fi
21131 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21132 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21133 if test $emacs_cv_gettimeofday_two_arguments = no; then
21134
21135 cat >>confdefs.h <<\_ACEOF
21136 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21137 _ACEOF
21138
21139 fi
21140 fi
21141 fi
21142
21143 ok_so_far=yes
21144 { echo "$as_me:$LINENO: checking for socket" >&5
21145 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
21146 if test "${ac_cv_func_socket+set}" = set; then
21147 echo $ECHO_N "(cached) $ECHO_C" >&6
21148 else
21149 cat >conftest.$ac_ext <<_ACEOF
21150 /* confdefs.h. */
21151 _ACEOF
21152 cat confdefs.h >>conftest.$ac_ext
21153 cat >>conftest.$ac_ext <<_ACEOF
21154 /* end confdefs.h. */
21155 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21157 #define socket innocuous_socket
21158
21159 /* System header to define __stub macros and hopefully few prototypes,
21160 which can conflict with char socket (); below.
21161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21162 <limits.h> exists even on freestanding compilers. */
21163
21164 #ifdef __STDC__
21165 # include <limits.h>
21166 #else
21167 # include <assert.h>
21168 #endif
21169
21170 #undef socket
21171
21172 /* Override any GCC internal prototype to avoid an error.
21173 Use char because int might match the return type of a GCC
21174 builtin and then its argument prototype would still apply. */
21175 #ifdef __cplusplus
21176 extern "C"
21177 #endif
21178 char socket ();
21179 /* The GNU C library defines this for functions which it implements
21180 to always fail with ENOSYS. Some functions are actually named
21181 something starting with __ and the normal name is an alias. */
21182 #if defined __stub_socket || defined __stub___socket
21183 choke me
21184 #endif
21185
21186 int
21187 main ()
21188 {
21189 return socket ();
21190 ;
21191 return 0;
21192 }
21193 _ACEOF
21194 rm -f conftest.$ac_objext conftest$ac_exeext
21195 if { (ac_try="$ac_link"
21196 case "(($ac_try" in
21197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21198 *) ac_try_echo=$ac_try;;
21199 esac
21200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21201 (eval "$ac_link") 2>conftest.er1
21202 ac_status=$?
21203 grep -v '^ *+' conftest.er1 >conftest.err
21204 rm -f conftest.er1
21205 cat conftest.err >&5
21206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21207 (exit $ac_status); } && {
21208 test -z "$ac_c_werror_flag" ||
21209 test ! -s conftest.err
21210 } && test -s conftest$ac_exeext &&
21211 $as_test_x conftest$ac_exeext; then
21212 ac_cv_func_socket=yes
21213 else
21214 echo "$as_me: failed program was:" >&5
21215 sed 's/^/| /' conftest.$ac_ext >&5
21216
21217 ac_cv_func_socket=no
21218 fi
21219
21220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21221 conftest$ac_exeext conftest.$ac_ext
21222 fi
21223 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21224 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21225 if test $ac_cv_func_socket = yes; then
21226 :
21227 else
21228 ok_so_far=no
21229 fi
21230
21231 if test $ok_so_far = yes; then
21232 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21233 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21234 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21235 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21236 echo $ECHO_N "(cached) $ECHO_C" >&6
21237 fi
21238 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21239 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21240 else
21241 # Is the header compilable?
21242 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21243 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
21244 cat >conftest.$ac_ext <<_ACEOF
21245 /* confdefs.h. */
21246 _ACEOF
21247 cat confdefs.h >>conftest.$ac_ext
21248 cat >>conftest.$ac_ext <<_ACEOF
21249 /* end confdefs.h. */
21250 $ac_includes_default
21251 #include <netinet/in.h>
21252 _ACEOF
21253 rm -f conftest.$ac_objext
21254 if { (ac_try="$ac_compile"
21255 case "(($ac_try" in
21256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21257 *) ac_try_echo=$ac_try;;
21258 esac
21259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21260 (eval "$ac_compile") 2>conftest.er1
21261 ac_status=$?
21262 grep -v '^ *+' conftest.er1 >conftest.err
21263 rm -f conftest.er1
21264 cat conftest.err >&5
21265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266 (exit $ac_status); } && {
21267 test -z "$ac_c_werror_flag" ||
21268 test ! -s conftest.err
21269 } && test -s conftest.$ac_objext; then
21270 ac_header_compiler=yes
21271 else
21272 echo "$as_me: failed program was:" >&5
21273 sed 's/^/| /' conftest.$ac_ext >&5
21274
21275 ac_header_compiler=no
21276 fi
21277
21278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21279 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21280 echo "${ECHO_T}$ac_header_compiler" >&6; }
21281
21282 # Is the header present?
21283 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21284 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
21285 cat >conftest.$ac_ext <<_ACEOF
21286 /* confdefs.h. */
21287 _ACEOF
21288 cat confdefs.h >>conftest.$ac_ext
21289 cat >>conftest.$ac_ext <<_ACEOF
21290 /* end confdefs.h. */
21291 #include <netinet/in.h>
21292 _ACEOF
21293 if { (ac_try="$ac_cpp conftest.$ac_ext"
21294 case "(($ac_try" in
21295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21296 *) ac_try_echo=$ac_try;;
21297 esac
21298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21299 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21300 ac_status=$?
21301 grep -v '^ *+' conftest.er1 >conftest.err
21302 rm -f conftest.er1
21303 cat conftest.err >&5
21304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305 (exit $ac_status); } >/dev/null && {
21306 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21307 test ! -s conftest.err
21308 }; then
21309 ac_header_preproc=yes
21310 else
21311 echo "$as_me: failed program was:" >&5
21312 sed 's/^/| /' conftest.$ac_ext >&5
21313
21314 ac_header_preproc=no
21315 fi
21316
21317 rm -f conftest.err conftest.$ac_ext
21318 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21319 echo "${ECHO_T}$ac_header_preproc" >&6; }
21320
21321 # So? What about this header?
21322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21323 yes:no: )
21324 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21325 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21326 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21327 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21328 ac_header_preproc=yes
21329 ;;
21330 no:yes:* )
21331 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21332 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21333 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21334 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21335 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21336 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21337 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21338 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21339 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21340 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21341 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21342 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21343
21344 ;;
21345 esac
21346 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21347 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21348 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21349 echo $ECHO_N "(cached) $ECHO_C" >&6
21350 else
21351 ac_cv_header_netinet_in_h=$ac_header_preproc
21352 fi
21353 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21354 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21355
21356 fi
21357 if test $ac_cv_header_netinet_in_h = yes; then
21358 :
21359 else
21360 ok_so_far=no
21361 fi
21362
21363
21364 fi
21365 if test $ok_so_far = yes; then
21366 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21367 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21368 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
21369 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21370 echo $ECHO_N "(cached) $ECHO_C" >&6
21371 fi
21372 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21373 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21374 else
21375 # Is the header compilable?
21376 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21377 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
21378 cat >conftest.$ac_ext <<_ACEOF
21379 /* confdefs.h. */
21380 _ACEOF
21381 cat confdefs.h >>conftest.$ac_ext
21382 cat >>conftest.$ac_ext <<_ACEOF
21383 /* end confdefs.h. */
21384 $ac_includes_default
21385 #include <arpa/inet.h>
21386 _ACEOF
21387 rm -f conftest.$ac_objext
21388 if { (ac_try="$ac_compile"
21389 case "(($ac_try" in
21390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21391 *) ac_try_echo=$ac_try;;
21392 esac
21393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21394 (eval "$ac_compile") 2>conftest.er1
21395 ac_status=$?
21396 grep -v '^ *+' conftest.er1 >conftest.err
21397 rm -f conftest.er1
21398 cat conftest.err >&5
21399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400 (exit $ac_status); } && {
21401 test -z "$ac_c_werror_flag" ||
21402 test ! -s conftest.err
21403 } && test -s conftest.$ac_objext; then
21404 ac_header_compiler=yes
21405 else
21406 echo "$as_me: failed program was:" >&5
21407 sed 's/^/| /' conftest.$ac_ext >&5
21408
21409 ac_header_compiler=no
21410 fi
21411
21412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21413 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21414 echo "${ECHO_T}$ac_header_compiler" >&6; }
21415
21416 # Is the header present?
21417 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21418 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
21419 cat >conftest.$ac_ext <<_ACEOF
21420 /* confdefs.h. */
21421 _ACEOF
21422 cat confdefs.h >>conftest.$ac_ext
21423 cat >>conftest.$ac_ext <<_ACEOF
21424 /* end confdefs.h. */
21425 #include <arpa/inet.h>
21426 _ACEOF
21427 if { (ac_try="$ac_cpp conftest.$ac_ext"
21428 case "(($ac_try" in
21429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21430 *) ac_try_echo=$ac_try;;
21431 esac
21432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21434 ac_status=$?
21435 grep -v '^ *+' conftest.er1 >conftest.err
21436 rm -f conftest.er1
21437 cat conftest.err >&5
21438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439 (exit $ac_status); } >/dev/null && {
21440 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21441 test ! -s conftest.err
21442 }; then
21443 ac_header_preproc=yes
21444 else
21445 echo "$as_me: failed program was:" >&5
21446 sed 's/^/| /' conftest.$ac_ext >&5
21447
21448 ac_header_preproc=no
21449 fi
21450
21451 rm -f conftest.err conftest.$ac_ext
21452 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21453 echo "${ECHO_T}$ac_header_preproc" >&6; }
21454
21455 # So? What about this header?
21456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21457 yes:no: )
21458 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21459 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21460 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21461 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21462 ac_header_preproc=yes
21463 ;;
21464 no:yes:* )
21465 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21466 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21467 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21468 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21469 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21470 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21471 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21472 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21473 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21474 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21475 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21476 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21477
21478 ;;
21479 esac
21480 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21481 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
21482 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21483 echo $ECHO_N "(cached) $ECHO_C" >&6
21484 else
21485 ac_cv_header_arpa_inet_h=$ac_header_preproc
21486 fi
21487 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21488 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21489
21490 fi
21491 if test $ac_cv_header_arpa_inet_h = yes; then
21492 :
21493 else
21494 ok_so_far=no
21495 fi
21496
21497
21498 fi
21499 if test $ok_so_far = yes; then
21500
21501 cat >>confdefs.h <<\_ACEOF
21502 #define HAVE_INET_SOCKETS 1
21503 _ACEOF
21504
21505 fi
21506
21507
21508 for ac_header in sys/ioctl.h
21509 do
21510 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21512 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21515 echo $ECHO_N "(cached) $ECHO_C" >&6
21516 fi
21517 ac_res=`eval echo '${'$as_ac_Header'}'`
21518 { echo "$as_me:$LINENO: result: $ac_res" >&5
21519 echo "${ECHO_T}$ac_res" >&6; }
21520 else
21521 # Is the header compilable?
21522 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21523 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21524 cat >conftest.$ac_ext <<_ACEOF
21525 /* confdefs.h. */
21526 _ACEOF
21527 cat confdefs.h >>conftest.$ac_ext
21528 cat >>conftest.$ac_ext <<_ACEOF
21529 /* end confdefs.h. */
21530 $ac_includes_default
21531 #include <$ac_header>
21532 _ACEOF
21533 rm -f conftest.$ac_objext
21534 if { (ac_try="$ac_compile"
21535 case "(($ac_try" in
21536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21537 *) ac_try_echo=$ac_try;;
21538 esac
21539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21540 (eval "$ac_compile") 2>conftest.er1
21541 ac_status=$?
21542 grep -v '^ *+' conftest.er1 >conftest.err
21543 rm -f conftest.er1
21544 cat conftest.err >&5
21545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21546 (exit $ac_status); } && {
21547 test -z "$ac_c_werror_flag" ||
21548 test ! -s conftest.err
21549 } && test -s conftest.$ac_objext; then
21550 ac_header_compiler=yes
21551 else
21552 echo "$as_me: failed program was:" >&5
21553 sed 's/^/| /' conftest.$ac_ext >&5
21554
21555 ac_header_compiler=no
21556 fi
21557
21558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21559 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21560 echo "${ECHO_T}$ac_header_compiler" >&6; }
21561
21562 # Is the header present?
21563 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21564 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21565 cat >conftest.$ac_ext <<_ACEOF
21566 /* confdefs.h. */
21567 _ACEOF
21568 cat confdefs.h >>conftest.$ac_ext
21569 cat >>conftest.$ac_ext <<_ACEOF
21570 /* end confdefs.h. */
21571 #include <$ac_header>
21572 _ACEOF
21573 if { (ac_try="$ac_cpp conftest.$ac_ext"
21574 case "(($ac_try" in
21575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21576 *) ac_try_echo=$ac_try;;
21577 esac
21578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21580 ac_status=$?
21581 grep -v '^ *+' conftest.er1 >conftest.err
21582 rm -f conftest.er1
21583 cat conftest.err >&5
21584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585 (exit $ac_status); } >/dev/null && {
21586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21587 test ! -s conftest.err
21588 }; then
21589 ac_header_preproc=yes
21590 else
21591 echo "$as_me: failed program was:" >&5
21592 sed 's/^/| /' conftest.$ac_ext >&5
21593
21594 ac_header_preproc=no
21595 fi
21596
21597 rm -f conftest.err conftest.$ac_ext
21598 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21599 echo "${ECHO_T}$ac_header_preproc" >&6; }
21600
21601 # So? What about this header?
21602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21603 yes:no: )
21604 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21605 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21607 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21608 ac_header_preproc=yes
21609 ;;
21610 no:yes:* )
21611 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21612 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21613 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21614 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21615 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21616 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21617 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21618 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21620 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21621 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21622 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21623
21624 ;;
21625 esac
21626 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21629 echo $ECHO_N "(cached) $ECHO_C" >&6
21630 else
21631 eval "$as_ac_Header=\$ac_header_preproc"
21632 fi
21633 ac_res=`eval echo '${'$as_ac_Header'}'`
21634 { echo "$as_me:$LINENO: result: $ac_res" >&5
21635 echo "${ECHO_T}$ac_res" >&6; }
21636
21637 fi
21638 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21639 cat >>confdefs.h <<_ACEOF
21640 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21641 _ACEOF
21642
21643 fi
21644
21645 done
21646
21647
21648 if test -f /usr/lpp/X11/bin/smt.exp; then
21649
21650 cat >>confdefs.h <<\_ACEOF
21651 #define HAVE_AIX_SMT_EXP 1
21652 _ACEOF
21653
21654 fi
21655
21656 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21657 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
21658 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
21659 { echo "$as_me:$LINENO: result: yes" >&5
21660 echo "${ECHO_T}yes" >&6; }
21661
21662 cat >>confdefs.h <<\_ACEOF
21663 #define HAVE_DEV_PTMX 1
21664 _ACEOF
21665
21666 else
21667 { echo "$as_me:$LINENO: result: no" >&5
21668 echo "${ECHO_T}no" >&6; }
21669 fi
21670
21671 { echo "$as_me:$LINENO: checking for pid_t" >&5
21672 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
21673 if test "${ac_cv_type_pid_t+set}" = set; then
21674 echo $ECHO_N "(cached) $ECHO_C" >&6
21675 else
21676 cat >conftest.$ac_ext <<_ACEOF
21677 /* confdefs.h. */
21678 _ACEOF
21679 cat confdefs.h >>conftest.$ac_ext
21680 cat >>conftest.$ac_ext <<_ACEOF
21681 /* end confdefs.h. */
21682 $ac_includes_default
21683 typedef pid_t ac__type_new_;
21684 int
21685 main ()
21686 {
21687 if ((ac__type_new_ *) 0)
21688 return 0;
21689 if (sizeof (ac__type_new_))
21690 return 0;
21691 ;
21692 return 0;
21693 }
21694 _ACEOF
21695 rm -f conftest.$ac_objext
21696 if { (ac_try="$ac_compile"
21697 case "(($ac_try" in
21698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21699 *) ac_try_echo=$ac_try;;
21700 esac
21701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21702 (eval "$ac_compile") 2>conftest.er1
21703 ac_status=$?
21704 grep -v '^ *+' conftest.er1 >conftest.err
21705 rm -f conftest.er1
21706 cat conftest.err >&5
21707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21708 (exit $ac_status); } && {
21709 test -z "$ac_c_werror_flag" ||
21710 test ! -s conftest.err
21711 } && test -s conftest.$ac_objext; then
21712 ac_cv_type_pid_t=yes
21713 else
21714 echo "$as_me: failed program was:" >&5
21715 sed 's/^/| /' conftest.$ac_ext >&5
21716
21717 ac_cv_type_pid_t=no
21718 fi
21719
21720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21721 fi
21722 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21723 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
21724 if test $ac_cv_type_pid_t = yes; then
21725 :
21726 else
21727
21728 cat >>confdefs.h <<_ACEOF
21729 #define pid_t int
21730 _ACEOF
21731
21732 fi
21733
21734
21735 for ac_header in vfork.h
21736 do
21737 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21739 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21742 echo $ECHO_N "(cached) $ECHO_C" >&6
21743 fi
21744 ac_res=`eval echo '${'$as_ac_Header'}'`
21745 { echo "$as_me:$LINENO: result: $ac_res" >&5
21746 echo "${ECHO_T}$ac_res" >&6; }
21747 else
21748 # Is the header compilable?
21749 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21750 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21751 cat >conftest.$ac_ext <<_ACEOF
21752 /* confdefs.h. */
21753 _ACEOF
21754 cat confdefs.h >>conftest.$ac_ext
21755 cat >>conftest.$ac_ext <<_ACEOF
21756 /* end confdefs.h. */
21757 $ac_includes_default
21758 #include <$ac_header>
21759 _ACEOF
21760 rm -f conftest.$ac_objext
21761 if { (ac_try="$ac_compile"
21762 case "(($ac_try" in
21763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21764 *) ac_try_echo=$ac_try;;
21765 esac
21766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21767 (eval "$ac_compile") 2>conftest.er1
21768 ac_status=$?
21769 grep -v '^ *+' conftest.er1 >conftest.err
21770 rm -f conftest.er1
21771 cat conftest.err >&5
21772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21773 (exit $ac_status); } && {
21774 test -z "$ac_c_werror_flag" ||
21775 test ! -s conftest.err
21776 } && test -s conftest.$ac_objext; then
21777 ac_header_compiler=yes
21778 else
21779 echo "$as_me: failed program was:" >&5
21780 sed 's/^/| /' conftest.$ac_ext >&5
21781
21782 ac_header_compiler=no
21783 fi
21784
21785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21786 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21787 echo "${ECHO_T}$ac_header_compiler" >&6; }
21788
21789 # Is the header present?
21790 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21791 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21792 cat >conftest.$ac_ext <<_ACEOF
21793 /* confdefs.h. */
21794 _ACEOF
21795 cat confdefs.h >>conftest.$ac_ext
21796 cat >>conftest.$ac_ext <<_ACEOF
21797 /* end confdefs.h. */
21798 #include <$ac_header>
21799 _ACEOF
21800 if { (ac_try="$ac_cpp conftest.$ac_ext"
21801 case "(($ac_try" in
21802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21803 *) ac_try_echo=$ac_try;;
21804 esac
21805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21807 ac_status=$?
21808 grep -v '^ *+' conftest.er1 >conftest.err
21809 rm -f conftest.er1
21810 cat conftest.err >&5
21811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812 (exit $ac_status); } >/dev/null && {
21813 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21814 test ! -s conftest.err
21815 }; then
21816 ac_header_preproc=yes
21817 else
21818 echo "$as_me: failed program was:" >&5
21819 sed 's/^/| /' conftest.$ac_ext >&5
21820
21821 ac_header_preproc=no
21822 fi
21823
21824 rm -f conftest.err conftest.$ac_ext
21825 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21826 echo "${ECHO_T}$ac_header_preproc" >&6; }
21827
21828 # So? What about this header?
21829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21830 yes:no: )
21831 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21832 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21834 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21835 ac_header_preproc=yes
21836 ;;
21837 no:yes:* )
21838 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21839 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21840 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21841 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21842 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21843 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21844 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21845 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21847 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21848 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21849 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21850
21851 ;;
21852 esac
21853 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21856 echo $ECHO_N "(cached) $ECHO_C" >&6
21857 else
21858 eval "$as_ac_Header=\$ac_header_preproc"
21859 fi
21860 ac_res=`eval echo '${'$as_ac_Header'}'`
21861 { echo "$as_me:$LINENO: result: $ac_res" >&5
21862 echo "${ECHO_T}$ac_res" >&6; }
21863
21864 fi
21865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21866 cat >>confdefs.h <<_ACEOF
21867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21868 _ACEOF
21869
21870 fi
21871
21872 done
21873
21874
21875
21876 for ac_func in fork vfork
21877 do
21878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21879 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21881 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21882 echo $ECHO_N "(cached) $ECHO_C" >&6
21883 else
21884 cat >conftest.$ac_ext <<_ACEOF
21885 /* confdefs.h. */
21886 _ACEOF
21887 cat confdefs.h >>conftest.$ac_ext
21888 cat >>conftest.$ac_ext <<_ACEOF
21889 /* end confdefs.h. */
21890 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21892 #define $ac_func innocuous_$ac_func
21893
21894 /* System header to define __stub macros and hopefully few prototypes,
21895 which can conflict with char $ac_func (); below.
21896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21897 <limits.h> exists even on freestanding compilers. */
21898
21899 #ifdef __STDC__
21900 # include <limits.h>
21901 #else
21902 # include <assert.h>
21903 #endif
21904
21905 #undef $ac_func
21906
21907 /* Override any GCC internal prototype to avoid an error.
21908 Use char because int might match the return type of a GCC
21909 builtin and then its argument prototype would still apply. */
21910 #ifdef __cplusplus
21911 extern "C"
21912 #endif
21913 char $ac_func ();
21914 /* The GNU C library defines this for functions which it implements
21915 to always fail with ENOSYS. Some functions are actually named
21916 something starting with __ and the normal name is an alias. */
21917 #if defined __stub_$ac_func || defined __stub___$ac_func
21918 choke me
21919 #endif
21920
21921 int
21922 main ()
21923 {
21924 return $ac_func ();
21925 ;
21926 return 0;
21927 }
21928 _ACEOF
21929 rm -f conftest.$ac_objext conftest$ac_exeext
21930 if { (ac_try="$ac_link"
21931 case "(($ac_try" in
21932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21933 *) ac_try_echo=$ac_try;;
21934 esac
21935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21936 (eval "$ac_link") 2>conftest.er1
21937 ac_status=$?
21938 grep -v '^ *+' conftest.er1 >conftest.err
21939 rm -f conftest.er1
21940 cat conftest.err >&5
21941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21942 (exit $ac_status); } && {
21943 test -z "$ac_c_werror_flag" ||
21944 test ! -s conftest.err
21945 } && test -s conftest$ac_exeext &&
21946 $as_test_x conftest$ac_exeext; then
21947 eval "$as_ac_var=yes"
21948 else
21949 echo "$as_me: failed program was:" >&5
21950 sed 's/^/| /' conftest.$ac_ext >&5
21951
21952 eval "$as_ac_var=no"
21953 fi
21954
21955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21956 conftest$ac_exeext conftest.$ac_ext
21957 fi
21958 ac_res=`eval echo '${'$as_ac_var'}'`
21959 { echo "$as_me:$LINENO: result: $ac_res" >&5
21960 echo "${ECHO_T}$ac_res" >&6; }
21961 if test `eval echo '${'$as_ac_var'}'` = yes; then
21962 cat >>confdefs.h <<_ACEOF
21963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21964 _ACEOF
21965
21966 fi
21967 done
21968
21969 if test "x$ac_cv_func_fork" = xyes; then
21970 { echo "$as_me:$LINENO: checking for working fork" >&5
21971 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
21972 if test "${ac_cv_func_fork_works+set}" = set; then
21973 echo $ECHO_N "(cached) $ECHO_C" >&6
21974 else
21975 if test "$cross_compiling" = yes; then
21976 ac_cv_func_fork_works=cross
21977 else
21978 cat >conftest.$ac_ext <<_ACEOF
21979 /* confdefs.h. */
21980 _ACEOF
21981 cat confdefs.h >>conftest.$ac_ext
21982 cat >>conftest.$ac_ext <<_ACEOF
21983 /* end confdefs.h. */
21984 $ac_includes_default
21985 int
21986 main ()
21987 {
21988
21989 /* By Ruediger Kuhlmann. */
21990 return fork () < 0;
21991
21992 ;
21993 return 0;
21994 }
21995 _ACEOF
21996 rm -f conftest$ac_exeext
21997 if { (ac_try="$ac_link"
21998 case "(($ac_try" in
21999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22000 *) ac_try_echo=$ac_try;;
22001 esac
22002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22003 (eval "$ac_link") 2>&5
22004 ac_status=$?
22005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22007 { (case "(($ac_try" in
22008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22009 *) ac_try_echo=$ac_try;;
22010 esac
22011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22012 (eval "$ac_try") 2>&5
22013 ac_status=$?
22014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015 (exit $ac_status); }; }; then
22016 ac_cv_func_fork_works=yes
22017 else
22018 echo "$as_me: program exited with status $ac_status" >&5
22019 echo "$as_me: failed program was:" >&5
22020 sed 's/^/| /' conftest.$ac_ext >&5
22021
22022 ( exit $ac_status )
22023 ac_cv_func_fork_works=no
22024 fi
22025 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22026 fi
22027
22028
22029 fi
22030 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22031 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22032
22033 else
22034 ac_cv_func_fork_works=$ac_cv_func_fork
22035 fi
22036 if test "x$ac_cv_func_fork_works" = xcross; then
22037 case $host in
22038 *-*-amigaos* | *-*-msdosdjgpp*)
22039 # Override, as these systems have only a dummy fork() stub
22040 ac_cv_func_fork_works=no
22041 ;;
22042 *)
22043 ac_cv_func_fork_works=yes
22044 ;;
22045 esac
22046 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22047 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22048 fi
22049 ac_cv_func_vfork_works=$ac_cv_func_vfork
22050 if test "x$ac_cv_func_vfork" = xyes; then
22051 { echo "$as_me:$LINENO: checking for working vfork" >&5
22052 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
22053 if test "${ac_cv_func_vfork_works+set}" = set; then
22054 echo $ECHO_N "(cached) $ECHO_C" >&6
22055 else
22056 if test "$cross_compiling" = yes; then
22057 ac_cv_func_vfork_works=cross
22058 else
22059 cat >conftest.$ac_ext <<_ACEOF
22060 /* confdefs.h. */
22061 _ACEOF
22062 cat confdefs.h >>conftest.$ac_ext
22063 cat >>conftest.$ac_ext <<_ACEOF
22064 /* end confdefs.h. */
22065 /* Thanks to Paul Eggert for this test. */
22066 $ac_includes_default
22067 #include <sys/wait.h>
22068 #ifdef HAVE_VFORK_H
22069 # include <vfork.h>
22070 #endif
22071 /* On some sparc systems, changes by the child to local and incoming
22072 argument registers are propagated back to the parent. The compiler
22073 is told about this with #include <vfork.h>, but some compilers
22074 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22075 static variable whose address is put into a register that is
22076 clobbered by the vfork. */
22077 static void
22078 #ifdef __cplusplus
22079 sparc_address_test (int arg)
22080 # else
22081 sparc_address_test (arg) int arg;
22082 #endif
22083 {
22084 static pid_t child;
22085 if (!child) {
22086 child = vfork ();
22087 if (child < 0) {
22088 perror ("vfork");
22089 _exit(2);
22090 }
22091 if (!child) {
22092 arg = getpid();
22093 write(-1, "", 0);
22094 _exit (arg);
22095 }
22096 }
22097 }
22098
22099 int
22100 main ()
22101 {
22102 pid_t parent = getpid ();
22103 pid_t child;
22104
22105 sparc_address_test (0);
22106
22107 child = vfork ();
22108
22109 if (child == 0) {
22110 /* Here is another test for sparc vfork register problems. This
22111 test uses lots of local variables, at least as many local
22112 variables as main has allocated so far including compiler
22113 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22114 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22115 reuse the register of parent for one of the local variables,
22116 since it will think that parent can't possibly be used any more
22117 in this routine. Assigning to the local variable will thus
22118 munge parent in the parent process. */
22119 pid_t
22120 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22121 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22122 /* Convince the compiler that p..p7 are live; otherwise, it might
22123 use the same hardware register for all 8 local variables. */
22124 if (p != p1 || p != p2 || p != p3 || p != p4
22125 || p != p5 || p != p6 || p != p7)
22126 _exit(1);
22127
22128 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22129 from child file descriptors. If the child closes a descriptor
22130 before it execs or exits, this munges the parent's descriptor
22131 as well. Test for this by closing stdout in the child. */
22132 _exit(close(fileno(stdout)) != 0);
22133 } else {
22134 int status;
22135 struct stat st;
22136
22137 while (wait(&status) != child)
22138 ;
22139 return (
22140 /* Was there some problem with vforking? */
22141 child < 0
22142
22143 /* Did the child fail? (This shouldn't happen.) */
22144 || status
22145
22146 /* Did the vfork/compiler bug occur? */
22147 || parent != getpid()
22148
22149 /* Did the file descriptor bug occur? */
22150 || fstat(fileno(stdout), &st) != 0
22151 );
22152 }
22153 }
22154 _ACEOF
22155 rm -f conftest$ac_exeext
22156 if { (ac_try="$ac_link"
22157 case "(($ac_try" in
22158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22159 *) ac_try_echo=$ac_try;;
22160 esac
22161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22162 (eval "$ac_link") 2>&5
22163 ac_status=$?
22164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22165 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22166 { (case "(($ac_try" in
22167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22168 *) ac_try_echo=$ac_try;;
22169 esac
22170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22171 (eval "$ac_try") 2>&5
22172 ac_status=$?
22173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174 (exit $ac_status); }; }; then
22175 ac_cv_func_vfork_works=yes
22176 else
22177 echo "$as_me: program exited with status $ac_status" >&5
22178 echo "$as_me: failed program was:" >&5
22179 sed 's/^/| /' conftest.$ac_ext >&5
22180
22181 ( exit $ac_status )
22182 ac_cv_func_vfork_works=no
22183 fi
22184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22185 fi
22186
22187
22188 fi
22189 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22190 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22191
22192 fi;
22193 if test "x$ac_cv_func_fork_works" = xcross; then
22194 ac_cv_func_vfork_works=$ac_cv_func_vfork
22195 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22196 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22197 fi
22198
22199 if test "x$ac_cv_func_vfork_works" = xyes; then
22200
22201 cat >>confdefs.h <<\_ACEOF
22202 #define HAVE_WORKING_VFORK 1
22203 _ACEOF
22204
22205 else
22206
22207 cat >>confdefs.h <<\_ACEOF
22208 #define vfork fork
22209 _ACEOF
22210
22211 fi
22212 if test "x$ac_cv_func_fork_works" = xyes; then
22213
22214 cat >>confdefs.h <<\_ACEOF
22215 #define HAVE_WORKING_FORK 1
22216 _ACEOF
22217
22218 fi
22219
22220
22221 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22222 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22223 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22224 echo $ECHO_N "(cached) $ECHO_C" >&6
22225 else
22226 cat >conftest.$ac_ext <<_ACEOF
22227 /* confdefs.h. */
22228 _ACEOF
22229 cat confdefs.h >>conftest.$ac_ext
22230 cat >>conftest.$ac_ext <<_ACEOF
22231 /* end confdefs.h. */
22232 #include <langinfo.h>
22233 int
22234 main ()
22235 {
22236 char* cs = nl_langinfo(CODESET);
22237 ;
22238 return 0;
22239 }
22240 _ACEOF
22241 rm -f conftest.$ac_objext conftest$ac_exeext
22242 if { (ac_try="$ac_link"
22243 case "(($ac_try" in
22244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22245 *) ac_try_echo=$ac_try;;
22246 esac
22247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22248 (eval "$ac_link") 2>conftest.er1
22249 ac_status=$?
22250 grep -v '^ *+' conftest.er1 >conftest.err
22251 rm -f conftest.er1
22252 cat conftest.err >&5
22253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22254 (exit $ac_status); } && {
22255 test -z "$ac_c_werror_flag" ||
22256 test ! -s conftest.err
22257 } && test -s conftest$ac_exeext &&
22258 $as_test_x conftest$ac_exeext; then
22259 emacs_cv_langinfo_codeset=yes
22260 else
22261 echo "$as_me: failed program was:" >&5
22262 sed 's/^/| /' conftest.$ac_ext >&5
22263
22264 emacs_cv_langinfo_codeset=no
22265 fi
22266
22267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22268 conftest$ac_exeext conftest.$ac_ext
22269
22270 fi
22271 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22272 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22273 if test $emacs_cv_langinfo_codeset = yes; then
22274
22275 cat >>confdefs.h <<\_ACEOF
22276 #define HAVE_LANGINFO_CODESET 1
22277 _ACEOF
22278
22279 fi
22280
22281 { echo "$as_me:$LINENO: checking for size_t" >&5
22282 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22283 if test "${ac_cv_type_size_t+set}" = set; then
22284 echo $ECHO_N "(cached) $ECHO_C" >&6
22285 else
22286 cat >conftest.$ac_ext <<_ACEOF
22287 /* confdefs.h. */
22288 _ACEOF
22289 cat confdefs.h >>conftest.$ac_ext
22290 cat >>conftest.$ac_ext <<_ACEOF
22291 /* end confdefs.h. */
22292 $ac_includes_default
22293 typedef size_t ac__type_new_;
22294 int
22295 main ()
22296 {
22297 if ((ac__type_new_ *) 0)
22298 return 0;
22299 if (sizeof (ac__type_new_))
22300 return 0;
22301 ;
22302 return 0;
22303 }
22304 _ACEOF
22305 rm -f conftest.$ac_objext
22306 if { (ac_try="$ac_compile"
22307 case "(($ac_try" in
22308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22309 *) ac_try_echo=$ac_try;;
22310 esac
22311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22312 (eval "$ac_compile") 2>conftest.er1
22313 ac_status=$?
22314 grep -v '^ *+' conftest.er1 >conftest.err
22315 rm -f conftest.er1
22316 cat conftest.err >&5
22317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22318 (exit $ac_status); } && {
22319 test -z "$ac_c_werror_flag" ||
22320 test ! -s conftest.err
22321 } && test -s conftest.$ac_objext; then
22322 ac_cv_type_size_t=yes
22323 else
22324 echo "$as_me: failed program was:" >&5
22325 sed 's/^/| /' conftest.$ac_ext >&5
22326
22327 ac_cv_type_size_t=no
22328 fi
22329
22330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22331 fi
22332 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22333 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22334 if test $ac_cv_type_size_t = yes; then
22335
22336 cat >>confdefs.h <<_ACEOF
22337 #define HAVE_SIZE_T 1
22338 _ACEOF
22339
22340
22341 fi
22342
22343
22344 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
22345 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
22346 if test "${ac_cv_type_mbstate_t+set}" = set; then
22347 echo $ECHO_N "(cached) $ECHO_C" >&6
22348 else
22349 cat >conftest.$ac_ext <<_ACEOF
22350 /* confdefs.h. */
22351 _ACEOF
22352 cat confdefs.h >>conftest.$ac_ext
22353 cat >>conftest.$ac_ext <<_ACEOF
22354 /* end confdefs.h. */
22355 $ac_includes_default
22356 # include <wchar.h>
22357 int
22358 main ()
22359 {
22360 mbstate_t x; return sizeof x;
22361 ;
22362 return 0;
22363 }
22364 _ACEOF
22365 rm -f conftest.$ac_objext
22366 if { (ac_try="$ac_compile"
22367 case "(($ac_try" in
22368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22369 *) ac_try_echo=$ac_try;;
22370 esac
22371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22372 (eval "$ac_compile") 2>conftest.er1
22373 ac_status=$?
22374 grep -v '^ *+' conftest.er1 >conftest.err
22375 rm -f conftest.er1
22376 cat conftest.err >&5
22377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22378 (exit $ac_status); } && {
22379 test -z "$ac_c_werror_flag" ||
22380 test ! -s conftest.err
22381 } && test -s conftest.$ac_objext; then
22382 ac_cv_type_mbstate_t=yes
22383 else
22384 echo "$as_me: failed program was:" >&5
22385 sed 's/^/| /' conftest.$ac_ext >&5
22386
22387 ac_cv_type_mbstate_t=no
22388 fi
22389
22390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22391 fi
22392 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22393 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
22394 if test $ac_cv_type_mbstate_t = yes; then
22395
22396 cat >>confdefs.h <<\_ACEOF
22397 #define HAVE_MBSTATE_T 1
22398 _ACEOF
22399
22400 else
22401
22402 cat >>confdefs.h <<\_ACEOF
22403 #define mbstate_t int
22404 _ACEOF
22405
22406 fi
22407
22408 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22409 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
22410 if test "${emacs_cv_c_restrict+set}" = set; then
22411 echo $ECHO_N "(cached) $ECHO_C" >&6
22412 else
22413 cat >conftest.$ac_ext <<_ACEOF
22414 /* confdefs.h. */
22415 _ACEOF
22416 cat confdefs.h >>conftest.$ac_ext
22417 cat >>conftest.$ac_ext <<_ACEOF
22418 /* end confdefs.h. */
22419 void fred (int *restrict x);
22420 int
22421 main ()
22422 {
22423
22424 ;
22425 return 0;
22426 }
22427 _ACEOF
22428 rm -f conftest.$ac_objext
22429 if { (ac_try="$ac_compile"
22430 case "(($ac_try" in
22431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22432 *) ac_try_echo=$ac_try;;
22433 esac
22434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22435 (eval "$ac_compile") 2>conftest.er1
22436 ac_status=$?
22437 grep -v '^ *+' conftest.er1 >conftest.err
22438 rm -f conftest.er1
22439 cat conftest.err >&5
22440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22441 (exit $ac_status); } && {
22442 test -z "$ac_c_werror_flag" ||
22443 test ! -s conftest.err
22444 } && test -s conftest.$ac_objext; then
22445 emacs_cv_c_restrict=yes
22446 else
22447 echo "$as_me: failed program was:" >&5
22448 sed 's/^/| /' conftest.$ac_ext >&5
22449
22450 cat >conftest.$ac_ext <<_ACEOF
22451 /* confdefs.h. */
22452 _ACEOF
22453 cat confdefs.h >>conftest.$ac_ext
22454 cat >>conftest.$ac_ext <<_ACEOF
22455 /* end confdefs.h. */
22456 void fred (int *__restrict x);
22457 int
22458 main ()
22459 {
22460
22461 ;
22462 return 0;
22463 }
22464 _ACEOF
22465 rm -f conftest.$ac_objext
22466 if { (ac_try="$ac_compile"
22467 case "(($ac_try" in
22468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22469 *) ac_try_echo=$ac_try;;
22470 esac
22471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22472 (eval "$ac_compile") 2>conftest.er1
22473 ac_status=$?
22474 grep -v '^ *+' conftest.er1 >conftest.err
22475 rm -f conftest.er1
22476 cat conftest.err >&5
22477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478 (exit $ac_status); } && {
22479 test -z "$ac_c_werror_flag" ||
22480 test ! -s conftest.err
22481 } && test -s conftest.$ac_objext; then
22482 emacs_cv_c_restrict=__restrict
22483 else
22484 echo "$as_me: failed program was:" >&5
22485 sed 's/^/| /' conftest.$ac_ext >&5
22486
22487 emacs_cv_c_restrict=no
22488 fi
22489
22490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22491 fi
22492
22493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22494 fi
22495 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22496 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
22497 case "$emacs_cv_c_restrict" in
22498 yes) emacs_restrict=restrict;;
22499 no) emacs_restrict="";;
22500 *) emacs_restrict="$emacs_cv_c_restrict";;
22501 esac
22502 if test "$emacs_restrict" != __restrict; then
22503
22504 cat >>confdefs.h <<_ACEOF
22505 #define __restrict $emacs_restrict
22506 _ACEOF
22507
22508 fi
22509
22510 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22511 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
22512 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22513 echo $ECHO_N "(cached) $ECHO_C" >&6
22514 else
22515 cat >conftest.$ac_ext <<_ACEOF
22516 /* confdefs.h. */
22517 _ACEOF
22518 cat confdefs.h >>conftest.$ac_ext
22519 cat >>conftest.$ac_ext <<_ACEOF
22520 /* end confdefs.h. */
22521 void fred (int x[__restrict]);
22522 int
22523 main ()
22524 {
22525
22526 ;
22527 return 0;
22528 }
22529 _ACEOF
22530 rm -f conftest.$ac_objext
22531 if { (ac_try="$ac_compile"
22532 case "(($ac_try" in
22533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22534 *) ac_try_echo=$ac_try;;
22535 esac
22536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22537 (eval "$ac_compile") 2>conftest.er1
22538 ac_status=$?
22539 grep -v '^ *+' conftest.er1 >conftest.err
22540 rm -f conftest.er1
22541 cat conftest.err >&5
22542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22543 (exit $ac_status); } && {
22544 test -z "$ac_c_werror_flag" ||
22545 test ! -s conftest.err
22546 } && test -s conftest.$ac_objext; then
22547 emacs_cv_c_restrict_arr=yes
22548 else
22549 echo "$as_me: failed program was:" >&5
22550 sed 's/^/| /' conftest.$ac_ext >&5
22551
22552 emacs_cv_c_restrict_arr=no
22553 fi
22554
22555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22556 fi
22557 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22558 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
22559 if test "$emacs_cv_c_restrict_arr" = yes; then
22560
22561 cat >>confdefs.h <<\_ACEOF
22562 #define __restrict_arr __restrict
22563 _ACEOF
22564
22565 fi
22566
22567
22568
22569 # Set up the CFLAGS for real compilation, so we can substitute it.
22570 CFLAGS="$REAL_CFLAGS"
22571 CPPFLAGS="$REAL_CPPFLAGS"
22572
22573 #### Find out which version of Emacs this is.
22574 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22575 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22576 if test x"${version}" = x; then
22577 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22578 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22579 { (exit 1); exit 1; }; }
22580 fi
22581
22582 ### Specify what sort of things we'll be editing into Makefile and config.h.
22583 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22584
22585
22586
22587
22588
22589
22590
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 cat >>confdefs.h <<_ACEOF
22620 #define EMACS_CONFIGURATION "${canonical}"
22621 _ACEOF
22622
22623
22624 cat >>confdefs.h <<_ACEOF
22625 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22626 _ACEOF
22627
22628
22629 cat >>confdefs.h <<_ACEOF
22630 #define config_machfile "${machfile}"
22631 _ACEOF
22632
22633
22634 cat >>confdefs.h <<_ACEOF
22635 #define config_opsysfile "${opsysfile}"
22636 _ACEOF
22637
22638
22639 cat >>confdefs.h <<_ACEOF
22640 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22641 _ACEOF
22642
22643
22644 cat >>confdefs.h <<_ACEOF
22645 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22646 _ACEOF
22647
22648
22649 cat >>confdefs.h <<_ACEOF
22650 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22651 _ACEOF
22652
22653
22654 cat >>confdefs.h <<_ACEOF
22655 #define UNEXEC_SRC ${UNEXEC_SRC}
22656 _ACEOF
22657
22658
22659 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22660
22661 cat >>confdefs.h <<\_ACEOF
22662 #define HAVE_X_WINDOWS 1
22663 _ACEOF
22664
22665 fi
22666 if test "${USE_X_TOOLKIT}" != "none" ; then
22667
22668 cat >>confdefs.h <<\_ACEOF
22669 #define USE_X_TOOLKIT 1
22670 _ACEOF
22671
22672 fi
22673 if test "${HAVE_X11}" = "yes" ; then
22674
22675 cat >>confdefs.h <<\_ACEOF
22676 #define HAVE_X11 1
22677 _ACEOF
22678
22679 fi
22680 if test "${HAVE_XFREE386}" = "yes" ; then
22681
22682 cat >>confdefs.h <<\_ACEOF
22683 #define HAVE_XFREE386 1
22684 _ACEOF
22685
22686 fi
22687 if test "${HAVE_MENUS}" = "yes" ; then
22688
22689 cat >>confdefs.h <<\_ACEOF
22690 #define HAVE_MENUS 1
22691 _ACEOF
22692
22693 fi
22694 if test "${GNU_MALLOC}" = "yes" ; then
22695
22696 cat >>confdefs.h <<\_ACEOF
22697 #define GNU_MALLOC 1
22698 _ACEOF
22699
22700 fi
22701 if test "${REL_ALLOC}" = "yes" ; then
22702
22703 cat >>confdefs.h <<\_ACEOF
22704 #define REL_ALLOC 1
22705 _ACEOF
22706
22707 fi
22708
22709
22710
22711
22712
22713 #### Report on what we decided to do.
22714 #### Report GTK as a toolkit, even if it doesn't use Xt.
22715 #### It makes printing result more understandable as using GTK sets
22716 #### toolkit_scroll_bars to yes by default.
22717 if test "${HAVE_GTK}" = "yes"; then
22718 USE_X_TOOLKIT=GTK
22719 fi
22720
22721 echo "
22722 Configured for \`${canonical}'.
22723
22724 Where should the build process find the source code? ${srcdir}
22725 What operating system and machine description files should Emacs use?
22726 \`${opsysfile}' and \`${machfile}'
22727 What compiler should emacs be built with? ${CC} ${CFLAGS}
22728 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22729 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22730 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22731 What window system should Emacs use? ${window_system}
22732 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22733
22734 if test -n "${x_includes}"; then
22735 echo " Where do we find X Windows header files? ${x_includes}"
22736 else
22737 echo " Where do we find X Windows header files? Standard dirs"
22738 fi
22739 if test -n "${x_libraries}"; then
22740 echo " Where do we find X Windows libraries? ${x_libraries}"
22741 else
22742 echo " Where do we find X Windows libraries? Standard dirs"
22743 fi
22744
22745 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22746 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22747 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22748 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22749 echo " Does Emacs use -lungif? ${HAVE_GIF}"
22750 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22751 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22752 echo
22753
22754 if test $USE_XASSERTS = yes; then
22755 echo " Compiling with asserts turned on."
22756 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
22757 echo
22758 fi
22759
22760
22761
22762 # Remove any trailing slashes in these variables.
22763 test "${prefix}" != NONE &&
22764 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22765 test "${exec_prefix}" != NONE &&
22766 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22767
22768 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22769 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22770 ## from Makefile.c can correctly provide the arg `-traditional' to the
22771 ## C preprocessor.
22772
22773 cat >conftest.$ac_ext <<_ACEOF
22774 /* confdefs.h. */
22775 _ACEOF
22776 cat confdefs.h >>conftest.$ac_ext
22777 cat >>conftest.$ac_ext <<_ACEOF
22778 /* end confdefs.h. */
22779 yes..yes
22780 _ACEOF
22781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22782 $EGREP "yes..yes" >/dev/null 2>&1; then
22783 CPP_NEED_TRADITIONAL=no
22784 else
22785 CPP_NEED_TRADITIONAL=yes
22786 fi
22787 rm -f conftest*
22788
22789
22790 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"
22791
22792 ac_config_commands="$ac_config_commands default"
22793
22794 cat >confcache <<\_ACEOF
22795 # This file is a shell script that caches the results of configure
22796 # tests run on this system so they can be shared between configure
22797 # scripts and configure runs, see configure's option --config-cache.
22798 # It is not useful on other systems. If it contains results you don't
22799 # want to keep, you may remove or edit it.
22800 #
22801 # config.status only pays attention to the cache file if you give it
22802 # the --recheck option to rerun configure.
22803 #
22804 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22805 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22806 # following values.
22807
22808 _ACEOF
22809
22810 # The following way of writing the cache mishandles newlines in values,
22811 # but we know of no workaround that is simple, portable, and efficient.
22812 # So, we kill variables containing newlines.
22813 # Ultrix sh set writes to stderr and can't be redirected directly,
22814 # and sets the high bit in the cache file unless we assign to the vars.
22815 (
22816 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22817 eval ac_val=\$$ac_var
22818 case $ac_val in #(
22819 *${as_nl}*)
22820 case $ac_var in #(
22821 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22822 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22823 esac
22824 case $ac_var in #(
22825 _ | IFS | as_nl) ;; #(
22826 *) $as_unset $ac_var ;;
22827 esac ;;
22828 esac
22829 done
22830
22831 (set) 2>&1 |
22832 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22833 *${as_nl}ac_space=\ *)
22834 # `set' does not quote correctly, so add quotes (double-quote
22835 # substitution turns \\\\ into \\, and sed turns \\ into \).
22836 sed -n \
22837 "s/'/'\\\\''/g;
22838 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22839 ;; #(
22840 *)
22841 # `set' quotes correctly as required by POSIX, so do not add quotes.
22842 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22843 ;;
22844 esac |
22845 sort
22846 ) |
22847 sed '
22848 /^ac_cv_env_/b end
22849 t clear
22850 :clear
22851 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22852 t end
22853 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22854 :end' >>confcache
22855 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22856 if test -w "$cache_file"; then
22857 test "x$cache_file" != "x/dev/null" &&
22858 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22859 echo "$as_me: updating cache $cache_file" >&6;}
22860 cat confcache >$cache_file
22861 else
22862 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22863 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22864 fi
22865 fi
22866 rm -f confcache
22867
22868 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22869 # Let make expand exec_prefix.
22870 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22871
22872 DEFS=-DHAVE_CONFIG_H
22873
22874 ac_libobjs=
22875 ac_ltlibobjs=
22876 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22877 # 1. Remove the extension, and $U if already installed.
22878 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22879 ac_i=`echo "$ac_i" | sed "$ac_script"`
22880 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22881 # will be set to the directory where LIBOBJS objects are built.
22882 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22883 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22884 done
22885 LIBOBJS=$ac_libobjs
22886
22887 LTLIBOBJS=$ac_ltlibobjs
22888
22889
22890
22891 : ${CONFIG_STATUS=./config.status}
22892 ac_clean_files_save=$ac_clean_files
22893 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22894 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22895 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22896 cat >$CONFIG_STATUS <<_ACEOF
22897 #! $SHELL
22898 # Generated by $as_me.
22899 # Run this file to recreate the current configuration.
22900 # Compiler output produced by configure, useful for debugging
22901 # configure, is in config.log if it exists.
22902
22903 debug=false
22904 ac_cs_recheck=false
22905 ac_cs_silent=false
22906 SHELL=\${CONFIG_SHELL-$SHELL}
22907 _ACEOF
22908
22909 cat >>$CONFIG_STATUS <<\_ACEOF
22910 ## --------------------- ##
22911 ## M4sh Initialization. ##
22912 ## --------------------- ##
22913
22914 # Be more Bourne compatible
22915 DUALCASE=1; export DUALCASE # for MKS sh
22916 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22917 emulate sh
22918 NULLCMD=:
22919 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22920 # is contrary to our usage. Disable this feature.
22921 alias -g '${1+"$@"}'='"$@"'
22922 setopt NO_GLOB_SUBST
22923 else
22924 case `(set -o) 2>/dev/null` in
22925 *posix*) set -o posix ;;
22926 esac
22927
22928 fi
22929
22930
22931
22932
22933 # PATH needs CR
22934 # Avoid depending upon Character Ranges.
22935 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22936 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22937 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22938 as_cr_digits='0123456789'
22939 as_cr_alnum=$as_cr_Letters$as_cr_digits
22940
22941 # The user is always right.
22942 if test "${PATH_SEPARATOR+set}" != set; then
22943 echo "#! /bin/sh" >conf$$.sh
22944 echo "exit 0" >>conf$$.sh
22945 chmod +x conf$$.sh
22946 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22947 PATH_SEPARATOR=';'
22948 else
22949 PATH_SEPARATOR=:
22950 fi
22951 rm -f conf$$.sh
22952 fi
22953
22954 # Support unset when possible.
22955 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22956 as_unset=unset
22957 else
22958 as_unset=false
22959 fi
22960
22961
22962 # IFS
22963 # We need space, tab and new line, in precisely that order. Quoting is
22964 # there to prevent editors from complaining about space-tab.
22965 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22966 # splitting by setting IFS to empty value.)
22967 as_nl='
22968 '
22969 IFS=" "" $as_nl"
22970
22971 # Find who we are. Look in the path if we contain no directory separator.
22972 case $0 in
22973 *[\\/]* ) as_myself=$0 ;;
22974 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22975 for as_dir in $PATH
22976 do
22977 IFS=$as_save_IFS
22978 test -z "$as_dir" && as_dir=.
22979 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22980 done
22981 IFS=$as_save_IFS
22982
22983 ;;
22984 esac
22985 # We did not find ourselves, most probably we were run as `sh COMMAND'
22986 # in which case we are not to be found in the path.
22987 if test "x$as_myself" = x; then
22988 as_myself=$0
22989 fi
22990 if test ! -f "$as_myself"; then
22991 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22992 { (exit 1); exit 1; }
22993 fi
22994
22995 # Work around bugs in pre-3.0 UWIN ksh.
22996 for as_var in ENV MAIL MAILPATH
22997 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22998 done
22999 PS1='$ '
23000 PS2='> '
23001 PS4='+ '
23002
23003 # NLS nuisances.
23004 for as_var in \
23005 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23006 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23007 LC_TELEPHONE LC_TIME
23008 do
23009 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23010 eval $as_var=C; export $as_var
23011 else
23012 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23013 fi
23014 done
23015
23016 # Required to use basename.
23017 if expr a : '\(a\)' >/dev/null 2>&1 &&
23018 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23019 as_expr=expr
23020 else
23021 as_expr=false
23022 fi
23023
23024 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23025 as_basename=basename
23026 else
23027 as_basename=false
23028 fi
23029
23030
23031 # Name of the executable.
23032 as_me=`$as_basename -- "$0" ||
23033 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23034 X"$0" : 'X\(//\)$' \| \
23035 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23036 echo X/"$0" |
23037 sed '/^.*\/\([^/][^/]*\)\/*$/{
23038 s//\1/
23039 q
23040 }
23041 /^X\/\(\/\/\)$/{
23042 s//\1/
23043 q
23044 }
23045 /^X\/\(\/\).*/{
23046 s//\1/
23047 q
23048 }
23049 s/.*/./; q'`
23050
23051 # CDPATH.
23052 $as_unset CDPATH
23053
23054
23055
23056 as_lineno_1=$LINENO
23057 as_lineno_2=$LINENO
23058 test "x$as_lineno_1" != "x$as_lineno_2" &&
23059 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23060
23061 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23062 # uniformly replaced by the line number. The first 'sed' inserts a
23063 # line-number line after each line using $LINENO; the second 'sed'
23064 # does the real work. The second script uses 'N' to pair each
23065 # line-number line with the line containing $LINENO, and appends
23066 # trailing '-' during substitution so that $LINENO is not a special
23067 # case at line end.
23068 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23069 # scripts with optimization help from Paolo Bonzini. Blame Lee
23070 # E. McMahon (1931-1989) for sed's syntax. :-)
23071 sed -n '
23072 p
23073 /[$]LINENO/=
23074 ' <$as_myself |
23075 sed '
23076 s/[$]LINENO.*/&-/
23077 t lineno
23078 b
23079 :lineno
23080 N
23081 :loop
23082 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23083 t loop
23084 s/-\n.*//
23085 ' >$as_me.lineno &&
23086 chmod +x "$as_me.lineno" ||
23087 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23088 { (exit 1); exit 1; }; }
23089
23090 # Don't try to exec as it changes $[0], causing all sort of problems
23091 # (the dirname of $[0] is not the place where we might find the
23092 # original and so on. Autoconf is especially sensitive to this).
23093 . "./$as_me.lineno"
23094 # Exit status is that of the last command.
23095 exit
23096 }
23097
23098
23099 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23100 as_dirname=dirname
23101 else
23102 as_dirname=false
23103 fi
23104
23105 ECHO_C= ECHO_N= ECHO_T=
23106 case `echo -n x` in
23107 -n*)
23108 case `echo 'x\c'` in
23109 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23110 *) ECHO_C='\c';;
23111 esac;;
23112 *)
23113 ECHO_N='-n';;
23114 esac
23115
23116 if expr a : '\(a\)' >/dev/null 2>&1 &&
23117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23118 as_expr=expr
23119 else
23120 as_expr=false
23121 fi
23122
23123 rm -f conf$$ conf$$.exe conf$$.file
23124 if test -d conf$$.dir; then
23125 rm -f conf$$.dir/conf$$.file
23126 else
23127 rm -f conf$$.dir
23128 mkdir conf$$.dir
23129 fi
23130 echo >conf$$.file
23131 if ln -s conf$$.file conf$$ 2>/dev/null; then
23132 as_ln_s='ln -s'
23133 # ... but there are two gotchas:
23134 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23135 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23136 # In both cases, we have to default to `cp -p'.
23137 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23138 as_ln_s='cp -p'
23139 elif ln conf$$.file conf$$ 2>/dev/null; then
23140 as_ln_s=ln
23141 else
23142 as_ln_s='cp -p'
23143 fi
23144 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23145 rmdir conf$$.dir 2>/dev/null
23146
23147 if mkdir -p . 2>/dev/null; then
23148 as_mkdir_p=:
23149 else
23150 test -d ./-p && rmdir ./-p
23151 as_mkdir_p=false
23152 fi
23153
23154 if test -x / >/dev/null 2>&1; then
23155 as_test_x='test -x'
23156 else
23157 if ls -dL / >/dev/null 2>&1; then
23158 as_ls_L_option=L
23159 else
23160 as_ls_L_option=
23161 fi
23162 as_test_x='
23163 eval sh -c '\''
23164 if test -d "$1"; then
23165 test -d "$1/.";
23166 else
23167 case $1 in
23168 -*)set "./$1";;
23169 esac;
23170 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23171 ???[sx]*):;;*)false;;esac;fi
23172 '\'' sh
23173 '
23174 fi
23175 as_executable_p=$as_test_x
23176
23177 # Sed expression to map a string onto a valid CPP name.
23178 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23179
23180 # Sed expression to map a string onto a valid variable name.
23181 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23182
23183
23184 exec 6>&1
23185
23186 # Save the log message, to keep $[0] and so on meaningful, and to
23187 # report actual input values of CONFIG_FILES etc. instead of their
23188 # values after options handling.
23189 ac_log="
23190 This file was extended by $as_me, which was
23191 generated by GNU Autoconf 2.61. Invocation command line was
23192
23193 CONFIG_FILES = $CONFIG_FILES
23194 CONFIG_HEADERS = $CONFIG_HEADERS
23195 CONFIG_LINKS = $CONFIG_LINKS
23196 CONFIG_COMMANDS = $CONFIG_COMMANDS
23197 $ $0 $@
23198
23199 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23200 "
23201
23202 _ACEOF
23203
23204 cat >>$CONFIG_STATUS <<_ACEOF
23205 # Files that config.status was made for.
23206 config_files="$ac_config_files"
23207 config_headers="$ac_config_headers"
23208 config_commands="$ac_config_commands"
23209
23210 _ACEOF
23211
23212 cat >>$CONFIG_STATUS <<\_ACEOF
23213 ac_cs_usage="\
23214 \`$as_me' instantiates files from templates according to the
23215 current configuration.
23216
23217 Usage: $0 [OPTIONS] [FILE]...
23218
23219 -h, --help print this help, then exit
23220 -V, --version print version number and configuration settings, then exit
23221 -q, --quiet do not print progress messages
23222 -d, --debug don't remove temporary files
23223 --recheck update $as_me by reconfiguring in the same conditions
23224 --file=FILE[:TEMPLATE]
23225 instantiate the configuration file FILE
23226 --header=FILE[:TEMPLATE]
23227 instantiate the configuration header FILE
23228
23229 Configuration files:
23230 $config_files
23231
23232 Configuration headers:
23233 $config_headers
23234
23235 Configuration commands:
23236 $config_commands
23237
23238 Report bugs to <bug-autoconf@gnu.org>."
23239
23240 _ACEOF
23241 cat >>$CONFIG_STATUS <<_ACEOF
23242 ac_cs_version="\\
23243 config.status
23244 configured by $0, generated by GNU Autoconf 2.61,
23245 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23246
23247 Copyright (C) 2006 Free Software Foundation, Inc.
23248 This config.status script is free software; the Free Software Foundation
23249 gives unlimited permission to copy, distribute and modify it."
23250
23251 ac_pwd='$ac_pwd'
23252 srcdir='$srcdir'
23253 INSTALL='$INSTALL'
23254 _ACEOF
23255
23256 cat >>$CONFIG_STATUS <<\_ACEOF
23257 # If no file are specified by the user, then we need to provide default
23258 # value. By we need to know if files were specified by the user.
23259 ac_need_defaults=:
23260 while test $# != 0
23261 do
23262 case $1 in
23263 --*=*)
23264 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23265 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23266 ac_shift=:
23267 ;;
23268 *)
23269 ac_option=$1
23270 ac_optarg=$2
23271 ac_shift=shift
23272 ;;
23273 esac
23274
23275 case $ac_option in
23276 # Handling of the options.
23277 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23278 ac_cs_recheck=: ;;
23279 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23280 echo "$ac_cs_version"; exit ;;
23281 --debug | --debu | --deb | --de | --d | -d )
23282 debug=: ;;
23283 --file | --fil | --fi | --f )
23284 $ac_shift
23285 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23286 ac_need_defaults=false;;
23287 --header | --heade | --head | --hea )
23288 $ac_shift
23289 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23290 ac_need_defaults=false;;
23291 --he | --h)
23292 # Conflict between --help and --header
23293 { echo "$as_me: error: ambiguous option: $1
23294 Try \`$0 --help' for more information." >&2
23295 { (exit 1); exit 1; }; };;
23296 --help | --hel | -h )
23297 echo "$ac_cs_usage"; exit ;;
23298 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23299 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23300 ac_cs_silent=: ;;
23301
23302 # This is an error.
23303 -*) { echo "$as_me: error: unrecognized option: $1
23304 Try \`$0 --help' for more information." >&2
23305 { (exit 1); exit 1; }; } ;;
23306
23307 *) ac_config_targets="$ac_config_targets $1"
23308 ac_need_defaults=false ;;
23309
23310 esac
23311 shift
23312 done
23313
23314 ac_configure_extra_args=
23315
23316 if $ac_cs_silent; then
23317 exec 6>/dev/null
23318 ac_configure_extra_args="$ac_configure_extra_args --silent"
23319 fi
23320
23321 _ACEOF
23322 cat >>$CONFIG_STATUS <<_ACEOF
23323 if \$ac_cs_recheck; then
23324 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23325 CONFIG_SHELL=$SHELL
23326 export CONFIG_SHELL
23327 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23328 fi
23329
23330 _ACEOF
23331 cat >>$CONFIG_STATUS <<\_ACEOF
23332 exec 5>>config.log
23333 {
23334 echo
23335 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23336 ## Running $as_me. ##
23337 _ASBOX
23338 echo "$ac_log"
23339 } >&5
23340
23341 _ACEOF
23342 cat >>$CONFIG_STATUS <<_ACEOF
23343 #
23344 # INIT-COMMANDS
23345 #
23346 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23347
23348 _ACEOF
23349
23350 cat >>$CONFIG_STATUS <<\_ACEOF
23351
23352 # Handling of arguments.
23353 for ac_config_target in $ac_config_targets
23354 do
23355 case $ac_config_target in
23356 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23357 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23358 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23359 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23360 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23361 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23362 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23363 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23364 "lispref/Makefile") CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
23365 "lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
23366 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23367 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23368
23369 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23370 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23371 { (exit 1); exit 1; }; };;
23372 esac
23373 done
23374
23375
23376 # If the user did not use the arguments to specify the items to instantiate,
23377 # then the envvar interface is used. Set only those that are not.
23378 # We use the long form for the default assignment because of an extremely
23379 # bizarre bug on SunOS 4.1.3.
23380 if $ac_need_defaults; then
23381 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23382 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23383 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23384 fi
23385
23386 # Have a temporary directory for convenience. Make it in the build tree
23387 # simply because there is no reason against having it here, and in addition,
23388 # creating and moving files from /tmp can sometimes cause problems.
23389 # Hook for its removal unless debugging.
23390 # Note that there is a small window in which the directory will not be cleaned:
23391 # after its creation but before its name has been assigned to `$tmp'.
23392 $debug ||
23393 {
23394 tmp=
23395 trap 'exit_status=$?
23396 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23397 ' 0
23398 trap '{ (exit 1); exit 1; }' 1 2 13 15
23399 }
23400 # Create a (secure) tmp directory for tmp files.
23401
23402 {
23403 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23404 test -n "$tmp" && test -d "$tmp"
23405 } ||
23406 {
23407 tmp=./conf$$-$RANDOM
23408 (umask 077 && mkdir "$tmp")
23409 } ||
23410 {
23411 echo "$me: cannot create a temporary directory in ." >&2
23412 { (exit 1); exit 1; }
23413 }
23414
23415 #
23416 # Set up the sed scripts for CONFIG_FILES section.
23417 #
23418
23419 # No need to generate the scripts if there are no CONFIG_FILES.
23420 # This happens for instance when ./config.status config.h
23421 if test -n "$CONFIG_FILES"; then
23422
23423 _ACEOF
23424
23425
23426
23427 ac_delim='%!_!# '
23428 for ac_last_try in false false false false false :; do
23429 cat >conf$$subs.sed <<_ACEOF
23430 SHELL!$SHELL$ac_delim
23431 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23432 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23433 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23434 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23435 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23436 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23437 exec_prefix!$exec_prefix$ac_delim
23438 prefix!$prefix$ac_delim
23439 program_transform_name!$program_transform_name$ac_delim
23440 bindir!$bindir$ac_delim
23441 sbindir!$sbindir$ac_delim
23442 libexecdir!$libexecdir$ac_delim
23443 datarootdir!$datarootdir$ac_delim
23444 datadir!$datadir$ac_delim
23445 sysconfdir!$sysconfdir$ac_delim
23446 sharedstatedir!$sharedstatedir$ac_delim
23447 localstatedir!$localstatedir$ac_delim
23448 includedir!$includedir$ac_delim
23449 oldincludedir!$oldincludedir$ac_delim
23450 docdir!$docdir$ac_delim
23451 infodir!$infodir$ac_delim
23452 htmldir!$htmldir$ac_delim
23453 dvidir!$dvidir$ac_delim
23454 pdfdir!$pdfdir$ac_delim
23455 psdir!$psdir$ac_delim
23456 libdir!$libdir$ac_delim
23457 localedir!$localedir$ac_delim
23458 mandir!$mandir$ac_delim
23459 DEFS!$DEFS$ac_delim
23460 ECHO_C!$ECHO_C$ac_delim
23461 ECHO_N!$ECHO_N$ac_delim
23462 ECHO_T!$ECHO_T$ac_delim
23463 LIBS!$LIBS$ac_delim
23464 build_alias!$build_alias$ac_delim
23465 host_alias!$host_alias$ac_delim
23466 target_alias!$target_alias$ac_delim
23467 MAINT!$MAINT$ac_delim
23468 build!$build$ac_delim
23469 build_cpu!$build_cpu$ac_delim
23470 build_vendor!$build_vendor$ac_delim
23471 build_os!$build_os$ac_delim
23472 host!$host$ac_delim
23473 host_cpu!$host_cpu$ac_delim
23474 host_vendor!$host_vendor$ac_delim
23475 host_os!$host_os$ac_delim
23476 CC!$CC$ac_delim
23477 CFLAGS!$CFLAGS$ac_delim
23478 LDFLAGS!$LDFLAGS$ac_delim
23479 CPPFLAGS!$CPPFLAGS$ac_delim
23480 ac_ct_CC!$ac_ct_CC$ac_delim
23481 EXEEXT!$EXEEXT$ac_delim
23482 OBJEXT!$OBJEXT$ac_delim
23483 CPP!$CPP$ac_delim
23484 GREP!$GREP$ac_delim
23485 EGREP!$EGREP$ac_delim
23486 LN_S!$LN_S$ac_delim
23487 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23488 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23489 INSTALL_DATA!$INSTALL_DATA$ac_delim
23490 RANLIB!$RANLIB$ac_delim
23491 INSTALL_INFO!$INSTALL_INFO$ac_delim
23492 GZIP_PROG!$GZIP_PROG$ac_delim
23493 LIBSOUND!$LIBSOUND$ac_delim
23494 PKG_CONFIG!$PKG_CONFIG$ac_delim
23495 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
23496 ALSA_LIBS!$ALSA_LIBS$ac_delim
23497 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
23498 SET_MAKE!$SET_MAKE$ac_delim
23499 XMKMF!$XMKMF$ac_delim
23500 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
23501 GTK_LIBS!$GTK_LIBS$ac_delim
23502 ALLOCA!$ALLOCA$ac_delim
23503 liblockfile!$liblockfile$ac_delim
23504 LIBOBJS!$LIBOBJS$ac_delim
23505 NEED_SETGID!$NEED_SETGID$ac_delim
23506 KMEM_GROUP!$KMEM_GROUP$ac_delim
23507 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
23508 GETOPT_H!$GETOPT_H$ac_delim
23509 GETOPTOBJS!$GETOPTOBJS$ac_delim
23510 version!$version$ac_delim
23511 configuration!$configuration$ac_delim
23512 canonical!$canonical$ac_delim
23513 srcdir!$srcdir$ac_delim
23514 lispdir!$lispdir$ac_delim
23515 locallisppath!$locallisppath$ac_delim
23516 lisppath!$lisppath$ac_delim
23517 x_default_search_path!$x_default_search_path$ac_delim
23518 etcdir!$etcdir$ac_delim
23519 archlibdir!$archlibdir$ac_delim
23520 bitmapdir!$bitmapdir$ac_delim
23521 gamedir!$gamedir$ac_delim
23522 gameuser!$gameuser$ac_delim
23523 c_switch_system!$c_switch_system$ac_delim
23524 c_switch_machine!$c_switch_machine$ac_delim
23525 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
23526 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
23527 _ACEOF
23528
23529 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23530 break
23531 elif $ac_last_try; then
23532 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23533 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23534 { (exit 1); exit 1; }; }
23535 else
23536 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23537 fi
23538 done
23539
23540 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23541 if test -n "$ac_eof"; then
23542 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23543 ac_eof=`expr $ac_eof + 1`
23544 fi
23545
23546 cat >>$CONFIG_STATUS <<_ACEOF
23547 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23548 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23549 _ACEOF
23550 sed '
23551 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23552 s/^/s,@/; s/!/@,|#_!!_#|/
23553 :n
23554 t n
23555 s/'"$ac_delim"'$/,g/; t
23556 s/$/\\/; p
23557 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23558 ' >>$CONFIG_STATUS <conf$$subs.sed
23559 rm -f conf$$subs.sed
23560 cat >>$CONFIG_STATUS <<_ACEOF
23561 CEOF$ac_eof
23562 _ACEOF
23563
23564
23565 ac_delim='%!_!# '
23566 for ac_last_try in false false false false false :; do
23567 cat >conf$$subs.sed <<_ACEOF
23568 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
23569 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
23570 machfile!$machfile$ac_delim
23571 opsysfile!$opsysfile$ac_delim
23572 carbon_appdir!$carbon_appdir$ac_delim
23573 LTLIBOBJS!$LTLIBOBJS$ac_delim
23574 _ACEOF
23575
23576 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
23577 break
23578 elif $ac_last_try; then
23579 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23580 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23581 { (exit 1); exit 1; }; }
23582 else
23583 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23584 fi
23585 done
23586
23587 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23588 if test -n "$ac_eof"; then
23589 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23590 ac_eof=`expr $ac_eof + 1`
23591 fi
23592
23593 cat >>$CONFIG_STATUS <<_ACEOF
23594 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23595 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23596 _ACEOF
23597 sed '
23598 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23599 s/^/s,@/; s/!/@,|#_!!_#|/
23600 :n
23601 t n
23602 s/'"$ac_delim"'$/,g/; t
23603 s/$/\\/; p
23604 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23605 ' >>$CONFIG_STATUS <conf$$subs.sed
23606 rm -f conf$$subs.sed
23607 cat >>$CONFIG_STATUS <<_ACEOF
23608 :end
23609 s/|#_!!_#|//g
23610 CEOF$ac_eof
23611 _ACEOF
23612
23613
23614 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23615 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23616 # trailing colons and then remove the whole line if VPATH becomes empty
23617 # (actually we leave an empty line to preserve line numbers).
23618 if test "x$srcdir" = x.; then
23619 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23620 s/:*\$(srcdir):*/:/
23621 s/:*\${srcdir}:*/:/
23622 s/:*@srcdir@:*/:/
23623 s/^\([^=]*=[ ]*\):*/\1/
23624 s/:*$//
23625 s/^[^=]*=[ ]*$//
23626 }'
23627 fi
23628
23629 cat >>$CONFIG_STATUS <<\_ACEOF
23630 fi # test -n "$CONFIG_FILES"
23631
23632
23633 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23634 do
23635 case $ac_tag in
23636 :[FHLC]) ac_mode=$ac_tag; continue;;
23637 esac
23638 case $ac_mode$ac_tag in
23639 :[FHL]*:*);;
23640 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23641 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23642 { (exit 1); exit 1; }; };;
23643 :[FH]-) ac_tag=-:-;;
23644 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23645 esac
23646 ac_save_IFS=$IFS
23647 IFS=:
23648 set x $ac_tag
23649 IFS=$ac_save_IFS
23650 shift
23651 ac_file=$1
23652 shift
23653
23654 case $ac_mode in
23655 :L) ac_source=$1;;
23656 :[FH])
23657 ac_file_inputs=
23658 for ac_f
23659 do
23660 case $ac_f in
23661 -) ac_f="$tmp/stdin";;
23662 *) # Look for the file first in the build tree, then in the source tree
23663 # (if the path is not absolute). The absolute path cannot be DOS-style,
23664 # because $ac_f cannot contain `:'.
23665 test -f "$ac_f" ||
23666 case $ac_f in
23667 [\\/$]*) false;;
23668 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23669 esac ||
23670 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23671 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23672 { (exit 1); exit 1; }; };;
23673 esac
23674 ac_file_inputs="$ac_file_inputs $ac_f"
23675 done
23676
23677 # Let's still pretend it is `configure' which instantiates (i.e., don't
23678 # use $as_me), people would be surprised to read:
23679 # /* config.h. Generated by config.status. */
23680 configure_input="Generated from "`IFS=:
23681 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23682 if test x"$ac_file" != x-; then
23683 configure_input="$ac_file. $configure_input"
23684 { echo "$as_me:$LINENO: creating $ac_file" >&5
23685 echo "$as_me: creating $ac_file" >&6;}
23686 fi
23687
23688 case $ac_tag in
23689 *:-:* | *:-) cat >"$tmp/stdin";;
23690 esac
23691 ;;
23692 esac
23693
23694 ac_dir=`$as_dirname -- "$ac_file" ||
23695 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23696 X"$ac_file" : 'X\(//\)[^/]' \| \
23697 X"$ac_file" : 'X\(//\)$' \| \
23698 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23699 echo X"$ac_file" |
23700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23701 s//\1/
23702 q
23703 }
23704 /^X\(\/\/\)[^/].*/{
23705 s//\1/
23706 q
23707 }
23708 /^X\(\/\/\)$/{
23709 s//\1/
23710 q
23711 }
23712 /^X\(\/\).*/{
23713 s//\1/
23714 q
23715 }
23716 s/.*/./; q'`
23717 { as_dir="$ac_dir"
23718 case $as_dir in #(
23719 -*) as_dir=./$as_dir;;
23720 esac
23721 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23722 as_dirs=
23723 while :; do
23724 case $as_dir in #(
23725 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23726 *) as_qdir=$as_dir;;
23727 esac
23728 as_dirs="'$as_qdir' $as_dirs"
23729 as_dir=`$as_dirname -- "$as_dir" ||
23730 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23731 X"$as_dir" : 'X\(//\)[^/]' \| \
23732 X"$as_dir" : 'X\(//\)$' \| \
23733 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23734 echo X"$as_dir" |
23735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23736 s//\1/
23737 q
23738 }
23739 /^X\(\/\/\)[^/].*/{
23740 s//\1/
23741 q
23742 }
23743 /^X\(\/\/\)$/{
23744 s//\1/
23745 q
23746 }
23747 /^X\(\/\).*/{
23748 s//\1/
23749 q
23750 }
23751 s/.*/./; q'`
23752 test -d "$as_dir" && break
23753 done
23754 test -z "$as_dirs" || eval "mkdir $as_dirs"
23755 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23756 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23757 { (exit 1); exit 1; }; }; }
23758 ac_builddir=.
23759
23760 case "$ac_dir" in
23761 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23762 *)
23763 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23764 # A ".." for each directory in $ac_dir_suffix.
23765 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23766 case $ac_top_builddir_sub in
23767 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23768 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23769 esac ;;
23770 esac
23771 ac_abs_top_builddir=$ac_pwd
23772 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23773 # for backward compatibility:
23774 ac_top_builddir=$ac_top_build_prefix
23775
23776 case $srcdir in
23777 .) # We are building in place.
23778 ac_srcdir=.
23779 ac_top_srcdir=$ac_top_builddir_sub
23780 ac_abs_top_srcdir=$ac_pwd ;;
23781 [\\/]* | ?:[\\/]* ) # Absolute name.
23782 ac_srcdir=$srcdir$ac_dir_suffix;
23783 ac_top_srcdir=$srcdir
23784 ac_abs_top_srcdir=$srcdir ;;
23785 *) # Relative name.
23786 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23787 ac_top_srcdir=$ac_top_build_prefix$srcdir
23788 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23789 esac
23790 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23791
23792
23793 case $ac_mode in
23794 :F)
23795 #
23796 # CONFIG_FILE
23797 #
23798
23799 case $INSTALL in
23800 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23801 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23802 esac
23803 _ACEOF
23804
23805 cat >>$CONFIG_STATUS <<\_ACEOF
23806 # If the template does not know about datarootdir, expand it.
23807 # FIXME: This hack should be removed a few years after 2.60.
23808 ac_datarootdir_hack=; ac_datarootdir_seen=
23809
23810 case `sed -n '/datarootdir/ {
23811 p
23812 q
23813 }
23814 /@datadir@/p
23815 /@docdir@/p
23816 /@infodir@/p
23817 /@localedir@/p
23818 /@mandir@/p
23819 ' $ac_file_inputs` in
23820 *datarootdir*) ac_datarootdir_seen=yes;;
23821 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23822 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23823 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23824 _ACEOF
23825 cat >>$CONFIG_STATUS <<_ACEOF
23826 ac_datarootdir_hack='
23827 s&@datadir@&$datadir&g
23828 s&@docdir@&$docdir&g
23829 s&@infodir@&$infodir&g
23830 s&@localedir@&$localedir&g
23831 s&@mandir@&$mandir&g
23832 s&\\\${datarootdir}&$datarootdir&g' ;;
23833 esac
23834 _ACEOF
23835
23836 # Neutralize VPATH when `$srcdir' = `.'.
23837 # Shell code in configure.ac might set extrasub.
23838 # FIXME: do we really want to maintain this feature?
23839 cat >>$CONFIG_STATUS <<_ACEOF
23840 sed "$ac_vpsub
23841 $extrasub
23842 _ACEOF
23843 cat >>$CONFIG_STATUS <<\_ACEOF
23844 :t
23845 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23846 s&@configure_input@&$configure_input&;t t
23847 s&@top_builddir@&$ac_top_builddir_sub&;t t
23848 s&@srcdir@&$ac_srcdir&;t t
23849 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23850 s&@top_srcdir@&$ac_top_srcdir&;t t
23851 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23852 s&@builddir@&$ac_builddir&;t t
23853 s&@abs_builddir@&$ac_abs_builddir&;t t
23854 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23855 s&@INSTALL@&$ac_INSTALL&;t t
23856 $ac_datarootdir_hack
23857 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23858
23859 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23860 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23861 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23862 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23863 which seems to be undefined. Please make sure it is defined." >&5
23864 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23865 which seems to be undefined. Please make sure it is defined." >&2;}
23866
23867 rm -f "$tmp/stdin"
23868 case $ac_file in
23869 -) cat "$tmp/out"; rm -f "$tmp/out";;
23870 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23871 esac
23872 ;;
23873 :H)
23874 #
23875 # CONFIG_HEADER
23876 #
23877 _ACEOF
23878
23879 # Transform confdefs.h into a sed script `conftest.defines', that
23880 # substitutes the proper values into config.h.in to produce config.h.
23881 rm -f conftest.defines conftest.tail
23882 # First, append a space to every undef/define line, to ease matching.
23883 echo 's/$/ /' >conftest.defines
23884 # Then, protect against being on the right side of a sed subst, or in
23885 # an unquoted here document, in config.status. If some macros were
23886 # called several times there might be several #defines for the same
23887 # symbol, which is useless. But do not sort them, since the last
23888 # AC_DEFINE must be honored.
23889 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23890 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23891 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23892 # PARAMS is the parameter list in the macro definition--in most cases, it's
23893 # just an empty string.
23894 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23895 ac_dB='\\)[ (].*,\\1define\\2'
23896 ac_dC=' '
23897 ac_dD=' ,'
23898
23899 uniq confdefs.h |
23900 sed -n '
23901 t rset
23902 :rset
23903 s/^[ ]*#[ ]*define[ ][ ]*//
23904 t ok
23905 d
23906 :ok
23907 s/[\\&,]/\\&/g
23908 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23909 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23910 ' >>conftest.defines
23911
23912 # Remove the space that was appended to ease matching.
23913 # Then replace #undef with comments. This is necessary, for
23914 # example, in the case of _POSIX_SOURCE, which is predefined and required
23915 # on some systems where configure will not decide to define it.
23916 # (The regexp can be short, since the line contains either #define or #undef.)
23917 echo 's/ $//
23918 s,^[ #]*u.*,/* & */,' >>conftest.defines
23919
23920 # Break up conftest.defines:
23921 ac_max_sed_lines=50
23922
23923 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23924 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23925 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23926 # et cetera.
23927 ac_in='$ac_file_inputs'
23928 ac_out='"$tmp/out1"'
23929 ac_nxt='"$tmp/out2"'
23930
23931 while :
23932 do
23933 # Write a here document:
23934 cat >>$CONFIG_STATUS <<_ACEOF
23935 # First, check the format of the line:
23936 cat >"\$tmp/defines.sed" <<\\CEOF
23937 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23938 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23939 b
23940 :def
23941 _ACEOF
23942 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23943 echo 'CEOF
23944 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23945 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23946 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23947 grep . conftest.tail >/dev/null || break
23948 rm -f conftest.defines
23949 mv conftest.tail conftest.defines
23950 done
23951 rm -f conftest.defines conftest.tail
23952
23953 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23954 cat >>$CONFIG_STATUS <<\_ACEOF
23955 if test x"$ac_file" != x-; then
23956 echo "/* $configure_input */" >"$tmp/config.h"
23957 cat "$ac_result" >>"$tmp/config.h"
23958 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23959 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23960 echo "$as_me: $ac_file is unchanged" >&6;}
23961 else
23962 rm -f $ac_file
23963 mv "$tmp/config.h" $ac_file
23964 fi
23965 else
23966 echo "/* $configure_input */"
23967 cat "$ac_result"
23968 fi
23969 rm -f "$tmp/out12"
23970 ;;
23971
23972 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23973 echo "$as_me: executing $ac_file commands" >&6;}
23974 ;;
23975 esac
23976
23977
23978 case $ac_file$ac_mode in
23979 "default":C)
23980
23981 ### Make the necessary directories, if they don't exist.
23982 for dir in etc lisp ; do
23983 test -d ${dir} || mkdir ${dir}
23984 done
23985
23986 # Build src/Makefile from ${srcdir}/src/Makefile.c
23987 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
23988 # This must be done after src/config.h is built, since we rely on that file.
23989
23990 # Now get this: Some word that is part of the ${srcdir} directory name
23991 # or the ${configuration} value might, just might, happen to be an
23992 # identifier like `sun4' or `i386' or something, and be predefined by
23993 # the C preprocessor to some helpful value like 1, or maybe the empty
23994 # string. Needless to say consequent macro substitutions are less
23995 # than conducive to the makefile finding the correct directory.
23996 undefs="`echo $top_srcdir $configuration $canonical |
23997 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
23998 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
23999 `"
24000
24001 echo creating src/epaths.h
24002 ${MAKE-make} epaths-force
24003
24004 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24005 # `..' to `. .' unless invoked with -traditional
24006
24007 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24008 CPPFLAGS="$CPPFLAGS -traditional"
24009 fi
24010
24011 echo creating lib-src/Makefile
24012 ( cd lib-src
24013 rm -f junk.c junk1.c junk2.c
24014 sed -e '/start of cpp stuff/q' \
24015 < Makefile.c > junk1.c
24016 sed -e '1,/start of cpp stuff/d'\
24017 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24018 < Makefile.c > junk.c
24019 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24020 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24021 cat junk1.c junk2.c > Makefile.new
24022 rm -f junk.c junk1.c junk2.c
24023 chmod 444 Makefile.new
24024 mv -f Makefile.new Makefile
24025 )
24026
24027 echo creating src/Makefile
24028 ( cd src
24029 rm -f junk.c junk1.c junk2.c
24030 sed -e '/start of cpp stuff/q' \
24031 < Makefile.c > junk1.c
24032 sed -e '1,/start of cpp stuff/d'\
24033 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24034 < Makefile.c > junk.c
24035 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24036 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24037 cat junk1.c junk2.c > Makefile.new
24038 rm -f junk.c junk1.c junk2.c
24039 chmod 444 Makefile.new
24040 mv -f Makefile.new Makefile
24041 )
24042
24043 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24044 echo creating src/.gdbinit
24045 echo source $srcdir/src/.gdbinit > src/.gdbinit
24046 fi
24047
24048 # This is how we know whether to re-run configure in certain cases.
24049 touch src/config.stamp
24050
24051 ;;
24052
24053 esac
24054 done # for ac_tag
24055
24056
24057 { (exit 0); exit 0; }
24058 _ACEOF
24059 chmod +x $CONFIG_STATUS
24060 ac_clean_files=$ac_clean_files_save
24061
24062
24063 # configure is writing to config.log, and then calls config.status.
24064 # config.status does its own redirection, appending to config.log.
24065 # Unfortunately, on DOS this fails, as config.log is still kept open
24066 # by configure, so config.status won't be able to write to it; its
24067 # output is simply discarded. So we exec the FD to /dev/null,
24068 # effectively closing config.log, so it can be properly (re)opened and
24069 # appended to by config.status. When coming back to configure, we
24070 # need to make the FD available again.
24071 if test "$no_create" != yes; then
24072 ac_cs_success=:
24073 ac_config_status_args=
24074 test "$silent" = yes &&
24075 ac_config_status_args="$ac_config_status_args --quiet"
24076 exec 5>/dev/null
24077 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24078 exec 5>>config.log
24079 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24080 # would make configure fail if this is the last instruction.
24081 $ac_cs_success || { (exit 1); exit 1; }
24082 fi
24083
24084