]> code.delx.au - gnu-emacs/blob - configure
* configure.in (AC_CHECK_HEADERS) Add gpm.h.
[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 XFT_CFLAGS
693 XFT_LIBS
694 ALLOCA
695 liblockfile
696 LIBOBJS
697 NEED_SETGID
698 KMEM_GROUP
699 GETLOADAVG_LIBS
700 GETOPT_H
701 GETOPTOBJS
702 version
703 configuration
704 canonical
705 srcdir
706 lispdir
707 locallisppath
708 lisppath
709 x_default_search_path
710 etcdir
711 archlibdir
712 bitmapdir
713 gamedir
714 gameuser
715 c_switch_system
716 c_switch_machine
717 LD_SWITCH_X_SITE
718 LD_SWITCH_X_SITE_AUX
719 C_SWITCH_X_SITE
720 X_TOOLKIT_TYPE
721 machfile
722 opsysfile
723 carbon_appdir
724 LIBGPM
725 LTLIBOBJS'
726 ac_subst_files=''
727 ac_precious_vars='build_alias
728 host_alias
729 target_alias
730 CC
731 CFLAGS
732 LDFLAGS
733 LIBS
734 CPPFLAGS
735 CPP
736 XMKMF'
737
738
739 # Initialize some variables set by options.
740 ac_init_help=
741 ac_init_version=false
742 # The variables have the same names as the options, with
743 # dashes changed to underlines.
744 cache_file=/dev/null
745 exec_prefix=NONE
746 no_create=
747 no_recursion=
748 prefix=NONE
749 program_prefix=NONE
750 program_suffix=NONE
751 program_transform_name=s,x,x,
752 silent=
753 site=
754 srcdir=
755 verbose=
756 x_includes=NONE
757 x_libraries=NONE
758
759 # Installation directory options.
760 # These are left unexpanded so users can "make install exec_prefix=/foo"
761 # and all the variables that are supposed to be based on exec_prefix
762 # by default will actually change.
763 # Use braces instead of parens because sh, perl, etc. also accept them.
764 # (The list follows the same order as the GNU Coding Standards.)
765 bindir='${exec_prefix}/bin'
766 sbindir='${exec_prefix}/sbin'
767 libexecdir='${exec_prefix}/libexec'
768 datarootdir='${prefix}/share'
769 datadir='${datarootdir}'
770 sysconfdir='${prefix}/etc'
771 sharedstatedir='${prefix}/com'
772 localstatedir='${prefix}/var'
773 includedir='${prefix}/include'
774 oldincludedir='/usr/include'
775 docdir='${datarootdir}/doc/${PACKAGE}'
776 infodir='${datarootdir}/info'
777 htmldir='${docdir}'
778 dvidir='${docdir}'
779 pdfdir='${docdir}'
780 psdir='${docdir}'
781 libdir='${exec_prefix}/lib'
782 localedir='${datarootdir}/locale'
783 mandir='${datarootdir}/man'
784
785 ac_prev=
786 ac_dashdash=
787 for ac_option
788 do
789 # If the previous option needs an argument, assign it.
790 if test -n "$ac_prev"; then
791 eval $ac_prev=\$ac_option
792 ac_prev=
793 continue
794 fi
795
796 case $ac_option in
797 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
798 *) ac_optarg=yes ;;
799 esac
800
801 # Accept the important Cygnus configure options, so we can diagnose typos.
802
803 case $ac_dashdash$ac_option in
804 --)
805 ac_dashdash=yes ;;
806
807 -bindir | --bindir | --bindi | --bind | --bin | --bi)
808 ac_prev=bindir ;;
809 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
810 bindir=$ac_optarg ;;
811
812 -build | --build | --buil | --bui | --bu)
813 ac_prev=build_alias ;;
814 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
815 build_alias=$ac_optarg ;;
816
817 -cache-file | --cache-file | --cache-fil | --cache-fi \
818 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
819 ac_prev=cache_file ;;
820 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
821 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
822 cache_file=$ac_optarg ;;
823
824 --config-cache | -C)
825 cache_file=config.cache ;;
826
827 -datadir | --datadir | --datadi | --datad)
828 ac_prev=datadir ;;
829 -datadir=* | --datadir=* | --datadi=* | --datad=*)
830 datadir=$ac_optarg ;;
831
832 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
833 | --dataroo | --dataro | --datar)
834 ac_prev=datarootdir ;;
835 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
836 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
837 datarootdir=$ac_optarg ;;
838
839 -disable-* | --disable-*)
840 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
841 # Reject names that are not valid shell variable names.
842 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
843 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
844 { (exit 1); exit 1; }; }
845 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
846 eval enable_$ac_feature=no ;;
847
848 -docdir | --docdir | --docdi | --doc | --do)
849 ac_prev=docdir ;;
850 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
851 docdir=$ac_optarg ;;
852
853 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
854 ac_prev=dvidir ;;
855 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
856 dvidir=$ac_optarg ;;
857
858 -enable-* | --enable-*)
859 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
860 # Reject names that are not valid shell variable names.
861 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
862 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
863 { (exit 1); exit 1; }; }
864 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
865 eval enable_$ac_feature=\$ac_optarg ;;
866
867 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
868 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
869 | --exec | --exe | --ex)
870 ac_prev=exec_prefix ;;
871 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
872 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
873 | --exec=* | --exe=* | --ex=*)
874 exec_prefix=$ac_optarg ;;
875
876 -gas | --gas | --ga | --g)
877 # Obsolete; use --with-gas.
878 with_gas=yes ;;
879
880 -help | --help | --hel | --he | -h)
881 ac_init_help=long ;;
882 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
883 ac_init_help=recursive ;;
884 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
885 ac_init_help=short ;;
886
887 -host | --host | --hos | --ho)
888 ac_prev=host_alias ;;
889 -host=* | --host=* | --hos=* | --ho=*)
890 host_alias=$ac_optarg ;;
891
892 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
893 ac_prev=htmldir ;;
894 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
895 | --ht=*)
896 htmldir=$ac_optarg ;;
897
898 -includedir | --includedir | --includedi | --included | --include \
899 | --includ | --inclu | --incl | --inc)
900 ac_prev=includedir ;;
901 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
902 | --includ=* | --inclu=* | --incl=* | --inc=*)
903 includedir=$ac_optarg ;;
904
905 -infodir | --infodir | --infodi | --infod | --info | --inf)
906 ac_prev=infodir ;;
907 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
908 infodir=$ac_optarg ;;
909
910 -libdir | --libdir | --libdi | --libd)
911 ac_prev=libdir ;;
912 -libdir=* | --libdir=* | --libdi=* | --libd=*)
913 libdir=$ac_optarg ;;
914
915 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
916 | --libexe | --libex | --libe)
917 ac_prev=libexecdir ;;
918 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
919 | --libexe=* | --libex=* | --libe=*)
920 libexecdir=$ac_optarg ;;
921
922 -localedir | --localedir | --localedi | --localed | --locale)
923 ac_prev=localedir ;;
924 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
925 localedir=$ac_optarg ;;
926
927 -localstatedir | --localstatedir | --localstatedi | --localstated \
928 | --localstate | --localstat | --localsta | --localst | --locals)
929 ac_prev=localstatedir ;;
930 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
931 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
932 localstatedir=$ac_optarg ;;
933
934 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
935 ac_prev=mandir ;;
936 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
937 mandir=$ac_optarg ;;
938
939 -nfp | --nfp | --nf)
940 # Obsolete; use --without-fp.
941 with_fp=no ;;
942
943 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
944 | --no-cr | --no-c | -n)
945 no_create=yes ;;
946
947 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
948 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
949 no_recursion=yes ;;
950
951 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
952 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
953 | --oldin | --oldi | --old | --ol | --o)
954 ac_prev=oldincludedir ;;
955 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
956 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
957 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
958 oldincludedir=$ac_optarg ;;
959
960 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
961 ac_prev=prefix ;;
962 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
963 prefix=$ac_optarg ;;
964
965 -program-prefix | --program-prefix | --program-prefi | --program-pref \
966 | --program-pre | --program-pr | --program-p)
967 ac_prev=program_prefix ;;
968 -program-prefix=* | --program-prefix=* | --program-prefi=* \
969 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
970 program_prefix=$ac_optarg ;;
971
972 -program-suffix | --program-suffix | --program-suffi | --program-suff \
973 | --program-suf | --program-su | --program-s)
974 ac_prev=program_suffix ;;
975 -program-suffix=* | --program-suffix=* | --program-suffi=* \
976 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
977 program_suffix=$ac_optarg ;;
978
979 -program-transform-name | --program-transform-name \
980 | --program-transform-nam | --program-transform-na \
981 | --program-transform-n | --program-transform- \
982 | --program-transform | --program-transfor \
983 | --program-transfo | --program-transf \
984 | --program-trans | --program-tran \
985 | --progr-tra | --program-tr | --program-t)
986 ac_prev=program_transform_name ;;
987 -program-transform-name=* | --program-transform-name=* \
988 | --program-transform-nam=* | --program-transform-na=* \
989 | --program-transform-n=* | --program-transform-=* \
990 | --program-transform=* | --program-transfor=* \
991 | --program-transfo=* | --program-transf=* \
992 | --program-trans=* | --program-tran=* \
993 | --progr-tra=* | --program-tr=* | --program-t=*)
994 program_transform_name=$ac_optarg ;;
995
996 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
997 ac_prev=pdfdir ;;
998 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
999 pdfdir=$ac_optarg ;;
1000
1001 -psdir | --psdir | --psdi | --psd | --ps)
1002 ac_prev=psdir ;;
1003 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1004 psdir=$ac_optarg ;;
1005
1006 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1007 | -silent | --silent | --silen | --sile | --sil)
1008 silent=yes ;;
1009
1010 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1011 ac_prev=sbindir ;;
1012 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1013 | --sbi=* | --sb=*)
1014 sbindir=$ac_optarg ;;
1015
1016 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1017 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1018 | --sharedst | --shareds | --shared | --share | --shar \
1019 | --sha | --sh)
1020 ac_prev=sharedstatedir ;;
1021 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1022 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1023 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1024 | --sha=* | --sh=*)
1025 sharedstatedir=$ac_optarg ;;
1026
1027 -site | --site | --sit)
1028 ac_prev=site ;;
1029 -site=* | --site=* | --sit=*)
1030 site=$ac_optarg ;;
1031
1032 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1033 ac_prev=srcdir ;;
1034 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1035 srcdir=$ac_optarg ;;
1036
1037 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1038 | --syscon | --sysco | --sysc | --sys | --sy)
1039 ac_prev=sysconfdir ;;
1040 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1041 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1042 sysconfdir=$ac_optarg ;;
1043
1044 -target | --target | --targe | --targ | --tar | --ta | --t)
1045 ac_prev=target_alias ;;
1046 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1047 target_alias=$ac_optarg ;;
1048
1049 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1050 verbose=yes ;;
1051
1052 -version | --version | --versio | --versi | --vers | -V)
1053 ac_init_version=: ;;
1054
1055 -with-* | --with-*)
1056 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1057 # Reject names that are not valid shell variable names.
1058 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1059 { echo "$as_me: error: invalid package name: $ac_package" >&2
1060 { (exit 1); exit 1; }; }
1061 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1062 eval with_$ac_package=\$ac_optarg ;;
1063
1064 -without-* | --without-*)
1065 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1066 # Reject names that are not valid shell variable names.
1067 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1068 { echo "$as_me: error: invalid package name: $ac_package" >&2
1069 { (exit 1); exit 1; }; }
1070 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1071 eval with_$ac_package=no ;;
1072
1073 --x)
1074 # Obsolete; use --with-x.
1075 with_x=yes ;;
1076
1077 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1078 | --x-incl | --x-inc | --x-in | --x-i)
1079 ac_prev=x_includes ;;
1080 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1081 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1082 x_includes=$ac_optarg ;;
1083
1084 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1085 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1086 ac_prev=x_libraries ;;
1087 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1088 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1089 x_libraries=$ac_optarg ;;
1090
1091 -*) { echo "$as_me: error: unrecognized option: $ac_option
1092 Try \`$0 --help' for more information." >&2
1093 { (exit 1); exit 1; }; }
1094 ;;
1095
1096 *=*)
1097 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1098 # Reject names that are not valid shell variable names.
1099 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1100 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1101 { (exit 1); exit 1; }; }
1102 eval $ac_envvar=\$ac_optarg
1103 export $ac_envvar ;;
1104
1105 *)
1106 # FIXME: should be removed in autoconf 3.0.
1107 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1108 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1109 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1110 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1111 ;;
1112
1113 esac
1114 done
1115
1116 if test -n "$ac_prev"; then
1117 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1118 { echo "$as_me: error: missing argument to $ac_option" >&2
1119 { (exit 1); exit 1; }; }
1120 fi
1121
1122 # Be sure to have absolute directory names.
1123 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1124 datadir sysconfdir sharedstatedir localstatedir includedir \
1125 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1126 libdir localedir mandir
1127 do
1128 eval ac_val=\$$ac_var
1129 case $ac_val in
1130 [\\/$]* | ?:[\\/]* ) continue;;
1131 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1132 esac
1133 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1134 { (exit 1); exit 1; }; }
1135 done
1136
1137 # There might be people who depend on the old broken behavior: `$host'
1138 # used to hold the argument of --host etc.
1139 # FIXME: To remove some day.
1140 build=$build_alias
1141 host=$host_alias
1142 target=$target_alias
1143
1144 # FIXME: To remove some day.
1145 if test "x$host_alias" != x; then
1146 if test "x$build_alias" = x; then
1147 cross_compiling=maybe
1148 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1149 If a cross compiler is detected then cross compile mode will be used." >&2
1150 elif test "x$build_alias" != "x$host_alias"; then
1151 cross_compiling=yes
1152 fi
1153 fi
1154
1155 ac_tool_prefix=
1156 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1157
1158 test "$silent" = yes && exec 6>/dev/null
1159
1160
1161 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1162 ac_ls_di=`ls -di .` &&
1163 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1164 { echo "$as_me: error: Working directory cannot be determined" >&2
1165 { (exit 1); exit 1; }; }
1166 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1167 { echo "$as_me: error: pwd does not report name of working directory" >&2
1168 { (exit 1); exit 1; }; }
1169
1170
1171 # Find the source files, if location was not specified.
1172 if test -z "$srcdir"; then
1173 ac_srcdir_defaulted=yes
1174 # Try the directory containing this script, then the parent directory.
1175 ac_confdir=`$as_dirname -- "$0" ||
1176 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1177 X"$0" : 'X\(//\)[^/]' \| \
1178 X"$0" : 'X\(//\)$' \| \
1179 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1180 echo X"$0" |
1181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1182 s//\1/
1183 q
1184 }
1185 /^X\(\/\/\)[^/].*/{
1186 s//\1/
1187 q
1188 }
1189 /^X\(\/\/\)$/{
1190 s//\1/
1191 q
1192 }
1193 /^X\(\/\).*/{
1194 s//\1/
1195 q
1196 }
1197 s/.*/./; q'`
1198 srcdir=$ac_confdir
1199 if test ! -r "$srcdir/$ac_unique_file"; then
1200 srcdir=..
1201 fi
1202 else
1203 ac_srcdir_defaulted=no
1204 fi
1205 if test ! -r "$srcdir/$ac_unique_file"; then
1206 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1207 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1208 { (exit 1); exit 1; }; }
1209 fi
1210 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1211 ac_abs_confdir=`(
1212 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1213 { (exit 1); exit 1; }; }
1214 pwd)`
1215 # When building in place, set srcdir=.
1216 if test "$ac_abs_confdir" = "$ac_pwd"; then
1217 srcdir=.
1218 fi
1219 # Remove unnecessary trailing slashes from srcdir.
1220 # Double slashes in file names in object file debugging info
1221 # mess up M-x gdb in Emacs.
1222 case $srcdir in
1223 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1224 esac
1225 for ac_var in $ac_precious_vars; do
1226 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1227 eval ac_env_${ac_var}_value=\$${ac_var}
1228 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1229 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1230 done
1231
1232 #
1233 # Report the --help message.
1234 #
1235 if test "$ac_init_help" = "long"; then
1236 # Omit some internal or obsolete options to make the list less imposing.
1237 # This message is too long to be a string in the A/UX 3.1 sh.
1238 cat <<_ACEOF
1239 \`configure' configures this package to adapt to many kinds of systems.
1240
1241 Usage: $0 [OPTION]... [VAR=VALUE]...
1242
1243 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1244 VAR=VALUE. See below for descriptions of some of the useful variables.
1245
1246 Defaults for the options are specified in brackets.
1247
1248 Configuration:
1249 -h, --help display this help and exit
1250 --help=short display options specific to this package
1251 --help=recursive display the short help of all the included packages
1252 -V, --version display version information and exit
1253 -q, --quiet, --silent do not print \`checking...' messages
1254 --cache-file=FILE cache test results in FILE [disabled]
1255 -C, --config-cache alias for \`--cache-file=config.cache'
1256 -n, --no-create do not create output files
1257 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1258
1259 Installation directories:
1260 --prefix=PREFIX install architecture-independent files in PREFIX
1261 [$ac_default_prefix]
1262 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1263 [PREFIX]
1264
1265 By default, \`make install' will install all the files in
1266 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1267 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1268 for instance \`--prefix=\$HOME'.
1269
1270 For better control, use the options below.
1271
1272 Fine tuning of the installation directories:
1273 --bindir=DIR user executables [EPREFIX/bin]
1274 --sbindir=DIR system admin executables [EPREFIX/sbin]
1275 --libexecdir=DIR program executables [EPREFIX/libexec]
1276 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1277 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1278 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1279 --libdir=DIR object code libraries [EPREFIX/lib]
1280 --includedir=DIR C header files [PREFIX/include]
1281 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1282 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1283 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1284 --infodir=DIR info documentation [DATAROOTDIR/info]
1285 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1286 --mandir=DIR man documentation [DATAROOTDIR/man]
1287 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1288 --htmldir=DIR html documentation [DOCDIR]
1289 --dvidir=DIR dvi documentation [DOCDIR]
1290 --pdfdir=DIR pdf documentation [DOCDIR]
1291 --psdir=DIR ps documentation [DOCDIR]
1292 _ACEOF
1293
1294 cat <<\_ACEOF
1295
1296 Program names:
1297 --program-prefix=PREFIX prepend PREFIX to installed program names
1298 --program-suffix=SUFFIX append SUFFIX to installed program names
1299 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1300
1301 X features:
1302 --x-includes=DIR X include files are in DIR
1303 --x-libraries=DIR X library files are in DIR
1304
1305 System types:
1306 --build=BUILD configure for building on BUILD [guessed]
1307 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1308 _ACEOF
1309 fi
1310
1311 if test -n "$ac_init_help"; then
1312
1313 cat <<\_ACEOF
1314
1315 Optional Features:
1316 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1317 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1318 --enable-carbon-app[=DIR] [DIR=/Application]
1319 specify install directory for Emacs.app on Mac OS X
1320 --enable-asserts compile code with asserts enabled
1321 --enable-maintainer-mode enable make rules and dependencies not useful
1322 (and sometimes confusing) to the casual installer
1323 --enable-locallisppath=PATH
1324 directories Emacs should search for lisp files
1325 specific to this site
1326 --disable-largefile omit support for large files
1327
1328 Optional Packages:
1329 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1330 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1331 --without-gcc don't use GCC to compile Emacs if GCC is found
1332 --without-pop don't support POP mail retrieval with movemail
1333 --with-kerberos support Kerberos-authenticated POP
1334 --with-kerberos5 support Kerberos version 5 authenticated POP
1335 --with-hesiod support Hesiod to get the POP server host
1336 --without-sound don't compile with sound support
1337 --with-x-toolkit=KIT use an X toolkit
1338 (KIT = yes/lucid/athena/motif/gtk/no)
1339 --with-xpm use -lXpm for displaying XPM images
1340 --with-jpeg use -ljpeg for displaying JPEG images
1341 --with-tiff use -ltiff for displaying TIFF images
1342 --with-gif use -lungif for displaying GIF images
1343 --with-png use -lpng for displaying PNG images
1344 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1345 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1346 --without-toolkit-scroll-bars
1347 don't use Motif or Xaw3d scroll bars
1348 --without-xim don't use X11 XIM
1349 --without-carbon don't use Carbon GUI on Mac OS X
1350 --with-x use the X Window System
1351
1352 Some influential environment variables:
1353 CC C compiler command
1354 CFLAGS C compiler flags
1355 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1356 nonstandard directory <lib dir>
1357 LIBS libraries to pass to the linker, e.g. -l<library>
1358 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1359 you have headers in a nonstandard directory <include dir>
1360 CPP C preprocessor
1361 XMKMF Path to xmkmf, Makefile generator for X Window System
1362
1363 Use these variables to override the choices made by `configure' or to help
1364 it to find libraries and programs with nonstandard names/locations.
1365
1366 _ACEOF
1367 ac_status=$?
1368 fi
1369
1370 if test "$ac_init_help" = "recursive"; then
1371 # If there are subdirs, report their specific --help.
1372 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1373 test -d "$ac_dir" || continue
1374 ac_builddir=.
1375
1376 case "$ac_dir" in
1377 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1378 *)
1379 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1380 # A ".." for each directory in $ac_dir_suffix.
1381 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1382 case $ac_top_builddir_sub in
1383 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1384 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1385 esac ;;
1386 esac
1387 ac_abs_top_builddir=$ac_pwd
1388 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1389 # for backward compatibility:
1390 ac_top_builddir=$ac_top_build_prefix
1391
1392 case $srcdir in
1393 .) # We are building in place.
1394 ac_srcdir=.
1395 ac_top_srcdir=$ac_top_builddir_sub
1396 ac_abs_top_srcdir=$ac_pwd ;;
1397 [\\/]* | ?:[\\/]* ) # Absolute name.
1398 ac_srcdir=$srcdir$ac_dir_suffix;
1399 ac_top_srcdir=$srcdir
1400 ac_abs_top_srcdir=$srcdir ;;
1401 *) # Relative name.
1402 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1403 ac_top_srcdir=$ac_top_build_prefix$srcdir
1404 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1405 esac
1406 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1407
1408 cd "$ac_dir" || { ac_status=$?; continue; }
1409 # Check for guested configure.
1410 if test -f "$ac_srcdir/configure.gnu"; then
1411 echo &&
1412 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1413 elif test -f "$ac_srcdir/configure"; then
1414 echo &&
1415 $SHELL "$ac_srcdir/configure" --help=recursive
1416 else
1417 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1418 fi || ac_status=$?
1419 cd "$ac_pwd" || { ac_status=$?; break; }
1420 done
1421 fi
1422
1423 test -n "$ac_init_help" && exit $ac_status
1424 if $ac_init_version; then
1425 cat <<\_ACEOF
1426 configure
1427 generated by GNU Autoconf 2.61
1428
1429 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1430 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1431 This configure script is free software; the Free Software Foundation
1432 gives unlimited permission to copy, distribute and modify it.
1433 _ACEOF
1434 exit
1435 fi
1436 cat >config.log <<_ACEOF
1437 This file contains any messages produced by compilers while
1438 running configure, to aid debugging if configure makes a mistake.
1439
1440 It was created by $as_me, which was
1441 generated by GNU Autoconf 2.61. Invocation command line was
1442
1443 $ $0 $@
1444
1445 _ACEOF
1446 exec 5>>config.log
1447 {
1448 cat <<_ASUNAME
1449 ## --------- ##
1450 ## Platform. ##
1451 ## --------- ##
1452
1453 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1454 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1455 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1456 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1457 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1458
1459 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1460 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1461
1462 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1463 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1464 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1465 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1466 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1467 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1468 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1469
1470 _ASUNAME
1471
1472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1473 for as_dir in $PATH
1474 do
1475 IFS=$as_save_IFS
1476 test -z "$as_dir" && as_dir=.
1477 echo "PATH: $as_dir"
1478 done
1479 IFS=$as_save_IFS
1480
1481 } >&5
1482
1483 cat >&5 <<_ACEOF
1484
1485
1486 ## ----------- ##
1487 ## Core tests. ##
1488 ## ----------- ##
1489
1490 _ACEOF
1491
1492
1493 # Keep a trace of the command line.
1494 # Strip out --no-create and --no-recursion so they do not pile up.
1495 # Strip out --silent because we don't want to record it for future runs.
1496 # Also quote any args containing shell meta-characters.
1497 # Make two passes to allow for proper duplicate-argument suppression.
1498 ac_configure_args=
1499 ac_configure_args0=
1500 ac_configure_args1=
1501 ac_must_keep_next=false
1502 for ac_pass in 1 2
1503 do
1504 for ac_arg
1505 do
1506 case $ac_arg in
1507 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1508 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1509 | -silent | --silent | --silen | --sile | --sil)
1510 continue ;;
1511 *\'*)
1512 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1513 esac
1514 case $ac_pass in
1515 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1516 2)
1517 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1518 if test $ac_must_keep_next = true; then
1519 ac_must_keep_next=false # Got value, back to normal.
1520 else
1521 case $ac_arg in
1522 *=* | --config-cache | -C | -disable-* | --disable-* \
1523 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1524 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1525 | -with-* | --with-* | -without-* | --without-* | --x)
1526 case "$ac_configure_args0 " in
1527 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1528 esac
1529 ;;
1530 -* ) ac_must_keep_next=true ;;
1531 esac
1532 fi
1533 ac_configure_args="$ac_configure_args '$ac_arg'"
1534 ;;
1535 esac
1536 done
1537 done
1538 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1539 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1540
1541 # When interrupted or exit'd, cleanup temporary files, and complete
1542 # config.log. We remove comments because anyway the quotes in there
1543 # would cause problems or look ugly.
1544 # WARNING: Use '\'' to represent an apostrophe within the trap.
1545 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1546 trap 'exit_status=$?
1547 # Save into config.log some information that might help in debugging.
1548 {
1549 echo
1550
1551 cat <<\_ASBOX
1552 ## ---------------- ##
1553 ## Cache variables. ##
1554 ## ---------------- ##
1555 _ASBOX
1556 echo
1557 # The following way of writing the cache mishandles newlines in values,
1558 (
1559 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1560 eval ac_val=\$$ac_var
1561 case $ac_val in #(
1562 *${as_nl}*)
1563 case $ac_var in #(
1564 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1565 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1566 esac
1567 case $ac_var in #(
1568 _ | IFS | as_nl) ;; #(
1569 *) $as_unset $ac_var ;;
1570 esac ;;
1571 esac
1572 done
1573 (set) 2>&1 |
1574 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1575 *${as_nl}ac_space=\ *)
1576 sed -n \
1577 "s/'\''/'\''\\\\'\'''\''/g;
1578 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1579 ;; #(
1580 *)
1581 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1582 ;;
1583 esac |
1584 sort
1585 )
1586 echo
1587
1588 cat <<\_ASBOX
1589 ## ----------------- ##
1590 ## Output variables. ##
1591 ## ----------------- ##
1592 _ASBOX
1593 echo
1594 for ac_var in $ac_subst_vars
1595 do
1596 eval ac_val=\$$ac_var
1597 case $ac_val in
1598 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1599 esac
1600 echo "$ac_var='\''$ac_val'\''"
1601 done | sort
1602 echo
1603
1604 if test -n "$ac_subst_files"; then
1605 cat <<\_ASBOX
1606 ## ------------------- ##
1607 ## File substitutions. ##
1608 ## ------------------- ##
1609 _ASBOX
1610 echo
1611 for ac_var in $ac_subst_files
1612 do
1613 eval ac_val=\$$ac_var
1614 case $ac_val in
1615 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1616 esac
1617 echo "$ac_var='\''$ac_val'\''"
1618 done | sort
1619 echo
1620 fi
1621
1622 if test -s confdefs.h; then
1623 cat <<\_ASBOX
1624 ## ----------- ##
1625 ## confdefs.h. ##
1626 ## ----------- ##
1627 _ASBOX
1628 echo
1629 cat confdefs.h
1630 echo
1631 fi
1632 test "$ac_signal" != 0 &&
1633 echo "$as_me: caught signal $ac_signal"
1634 echo "$as_me: exit $exit_status"
1635 } >&5
1636 rm -f core *.core core.conftest.* &&
1637 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1638 exit $exit_status
1639 ' 0
1640 for ac_signal in 1 2 13 15; do
1641 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1642 done
1643 ac_signal=0
1644
1645 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1646 rm -f -r conftest* confdefs.h
1647
1648 # Predefined preprocessor variables.
1649
1650 cat >>confdefs.h <<_ACEOF
1651 #define PACKAGE_NAME "$PACKAGE_NAME"
1652 _ACEOF
1653
1654
1655 cat >>confdefs.h <<_ACEOF
1656 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1657 _ACEOF
1658
1659
1660 cat >>confdefs.h <<_ACEOF
1661 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1662 _ACEOF
1663
1664
1665 cat >>confdefs.h <<_ACEOF
1666 #define PACKAGE_STRING "$PACKAGE_STRING"
1667 _ACEOF
1668
1669
1670 cat >>confdefs.h <<_ACEOF
1671 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1672 _ACEOF
1673
1674
1675 # Let the site file select an alternate cache file if it wants to.
1676 # Prefer explicitly selected file to automatically selected ones.
1677 if test -n "$CONFIG_SITE"; then
1678 set x "$CONFIG_SITE"
1679 elif test "x$prefix" != xNONE; then
1680 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1681 else
1682 set x "$ac_default_prefix/share/config.site" \
1683 "$ac_default_prefix/etc/config.site"
1684 fi
1685 shift
1686 for ac_site_file
1687 do
1688 if test -r "$ac_site_file"; then
1689 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1690 echo "$as_me: loading site script $ac_site_file" >&6;}
1691 sed 's/^/| /' "$ac_site_file" >&5
1692 . "$ac_site_file"
1693 fi
1694 done
1695
1696 if test -r "$cache_file"; then
1697 # Some versions of bash will fail to source /dev/null (special
1698 # files actually), so we avoid doing that.
1699 if test -f "$cache_file"; then
1700 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1701 echo "$as_me: loading cache $cache_file" >&6;}
1702 case $cache_file in
1703 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1704 *) . "./$cache_file";;
1705 esac
1706 fi
1707 else
1708 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1709 echo "$as_me: creating cache $cache_file" >&6;}
1710 >$cache_file
1711 fi
1712
1713 ac_header_list="$ac_header_list sys/time.h"
1714 ac_header_list="$ac_header_list unistd.h"
1715 ac_func_list="$ac_func_list alarm"
1716 # Check that the precious variables saved in the cache have kept the same
1717 # value.
1718 ac_cache_corrupted=false
1719 for ac_var in $ac_precious_vars; do
1720 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1721 eval ac_new_set=\$ac_env_${ac_var}_set
1722 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1723 eval ac_new_val=\$ac_env_${ac_var}_value
1724 case $ac_old_set,$ac_new_set in
1725 set,)
1726 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1727 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1728 ac_cache_corrupted=: ;;
1729 ,set)
1730 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1731 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1732 ac_cache_corrupted=: ;;
1733 ,);;
1734 *)
1735 if test "x$ac_old_val" != "x$ac_new_val"; then
1736 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1737 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1738 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1739 echo "$as_me: former value: $ac_old_val" >&2;}
1740 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1741 echo "$as_me: current value: $ac_new_val" >&2;}
1742 ac_cache_corrupted=:
1743 fi;;
1744 esac
1745 # Pass precious variables to config.status.
1746 if test "$ac_new_set" = set; then
1747 case $ac_new_val in
1748 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1749 *) ac_arg=$ac_var=$ac_new_val ;;
1750 esac
1751 case " $ac_configure_args " in
1752 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1753 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1754 esac
1755 fi
1756 done
1757 if $ac_cache_corrupted; then
1758 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1759 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1760 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1761 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1762 { (exit 1); exit 1; }; }
1763 fi
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781 ac_ext=c
1782 ac_cpp='$CPP $CPPFLAGS'
1783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1786
1787
1788 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1789
1790
1791 test "$program_prefix" != NONE &&
1792 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1793 # Use a double $ so make ignores it.
1794 test "$program_suffix" != NONE &&
1795 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1796 # Double any \ or $. echo might interpret backslashes.
1797 # By default was `s,x,x', remove it if useless.
1798 cat <<\_ACEOF >conftest.sed
1799 s/[\\$]/&&/g;s/;s,x,x,$//
1800 _ACEOF
1801 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1802 rm -f conftest.sed
1803
1804
1805 lispdir='${datadir}/emacs/${version}/lisp'
1806 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1807 '${datadir}/emacs/site-lisp'
1808 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1809 etcdir='${datadir}/emacs/${version}/etc'
1810 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1811 docdir='${datadir}/emacs/${version}/etc'
1812 gamedir='${localstatedir}/games/emacs'
1813
1814 gameuser=games
1815
1816
1817 # Check whether --with-gcc was given.
1818 if test "${with_gcc+set}" = set; then
1819 withval=$with_gcc;
1820 fi
1821
1822
1823 # Check whether --with-pop was given.
1824 if test "${with_pop+set}" = set; then
1825 withval=$with_pop; if test "$withval" = yes; then
1826 cat >>confdefs.h <<\_ACEOF
1827 #define MAIL_USE_POP 1
1828 _ACEOF
1829
1830 else :
1831 fi
1832 else
1833 cat >>confdefs.h <<\_ACEOF
1834 #define MAIL_USE_POP 1
1835 _ACEOF
1836
1837 fi
1838
1839
1840
1841 # Check whether --with-kerberos was given.
1842 if test "${with_kerberos+set}" = set; then
1843 withval=$with_kerberos; if test "$withval" = yes; then
1844 cat >>confdefs.h <<\_ACEOF
1845 #define KERBEROS 1
1846 _ACEOF
1847
1848 fi
1849 fi
1850
1851
1852
1853 # Check whether --with-kerberos5 was given.
1854 if test "${with_kerberos5+set}" = set; then
1855 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1856 if test "${with_kerberos+set}" != set; then
1857 with_kerberos=yes
1858 cat >>confdefs.h <<\_ACEOF
1859 #define KERBEROS 1
1860 _ACEOF
1861
1862 fi
1863
1864 cat >>confdefs.h <<\_ACEOF
1865 #define KERBEROS5 1
1866 _ACEOF
1867
1868 fi
1869 fi
1870
1871
1872 # Check whether --with-hesiod was given.
1873 if test "${with_hesiod+set}" = set; then
1874 withval=$with_hesiod; if test "$withval" = yes; then
1875
1876 cat >>confdefs.h <<\_ACEOF
1877 #define HESIOD 1
1878 _ACEOF
1879
1880 fi
1881 fi
1882
1883
1884
1885 # Check whether --with-sound was given.
1886 if test "${with_sound+set}" = set; then
1887 withval=$with_sound;
1888 fi
1889
1890
1891
1892 # Check whether --with-x-toolkit was given.
1893 if test "${with_x_toolkit+set}" = set; then
1894 withval=$with_x_toolkit; case "${withval}" in
1895 y | ye | yes ) val=athena ;;
1896 n | no ) val=no ;;
1897 l | lu | luc | luci | lucid ) val=lucid ;;
1898 a | at | ath | athe | athen | athena ) val=athena ;;
1899 m | mo | mot | moti | motif ) val=motif ;;
1900 g | gt | gtk ) val=gtk ;;
1901 * )
1902 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1903 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1904 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1905 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1906 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1907 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1908 { (exit 1); exit 1; }; }
1909 ;;
1910 esac
1911 with_x_toolkit=$val
1912
1913 fi
1914
1915
1916 # Check whether --with-xpm was given.
1917 if test "${with_xpm+set}" = set; then
1918 withval=$with_xpm;
1919 fi
1920
1921
1922 # Check whether --with-jpeg was given.
1923 if test "${with_jpeg+set}" = set; then
1924 withval=$with_jpeg;
1925 fi
1926
1927
1928 # Check whether --with-tiff was given.
1929 if test "${with_tiff+set}" = set; then
1930 withval=$with_tiff;
1931 fi
1932
1933
1934 # Check whether --with-gif was given.
1935 if test "${with_gif+set}" = set; then
1936 withval=$with_gif;
1937 fi
1938
1939
1940 # Check whether --with-png was given.
1941 if test "${with_png+set}" = set; then
1942 withval=$with_png;
1943 fi
1944
1945
1946 # Check whether --with-gtk was given.
1947 if test "${with_gtk+set}" = set; then
1948 withval=$with_gtk;
1949 fi
1950
1951
1952 # Check whether --with-pkg-config-prog was given.
1953 if test "${with_pkg_config_prog+set}" = set; then
1954 withval=$with_pkg_config_prog;
1955 fi
1956
1957
1958 # Check whether --with-toolkit-scroll-bars was given.
1959 if test "${with_toolkit_scroll_bars+set}" = set; then
1960 withval=$with_toolkit_scroll_bars;
1961 fi
1962
1963
1964 # Check whether --with-xim was given.
1965 if test "${with_xim+set}" = set; then
1966 withval=$with_xim;
1967 fi
1968
1969
1970 # Check whether --with-carbon was given.
1971 if test "${with_carbon+set}" = set; then
1972 withval=$with_carbon;
1973 fi
1974
1975 # Check whether --enable-carbon-app was given.
1976 if test "${enable_carbon_app+set}" = set; then
1977 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1978 fi
1979
1980
1981 # Check whether --enable-asserts was given.
1982 if test "${enable_asserts+set}" = set; then
1983 enableval=$enable_asserts; USE_XASSERTS=$enableval
1984 else
1985 USE_XASSERTS=no
1986 fi
1987
1988
1989 # Check whether --enable-maintainer-mode was given.
1990 if test "${enable_maintainer_mode+set}" = set; then
1991 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1992 else
1993 USE_MAINTAINER_MODE=no
1994 fi
1995
1996 if test $USE_MAINTAINER_MODE = yes; then
1997 MAINT=
1998 else
1999 MAINT=#
2000 fi
2001
2002
2003 # Check whether --enable-locallisppath was given.
2004 if test "${enable_locallisppath+set}" = set; then
2005 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2006 locallisppath=
2007 elif test "${enableval}" != "yes"; then
2008 locallisppath=${enableval}
2009 fi
2010 fi
2011
2012
2013 #### Make srcdir absolute, if it isn't already. It's important to
2014 #### avoid running the path through pwd unnecessarily, since pwd can
2015 #### give you automounter prefixes, which can go away. We do all this
2016 #### so Emacs can find its files when run uninstalled.
2017 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2018 unset CDPATH
2019 case "${srcdir}" in
2020 /* ) ;;
2021 . )
2022 ## We may be able to use the $PWD environment variable to make this
2023 ## absolute. But sometimes PWD is inaccurate.
2024 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2025 ## but that tested only for a well-formed and valid PWD,
2026 ## it did not object when PWD was well-formed and valid but just wrong.
2027 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2028 then
2029 srcdir="$PWD"
2030 else
2031 srcdir="`(cd ${srcdir}; pwd)`"
2032 fi
2033 ;;
2034 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2035 esac
2036
2037 #### Check if the source directory already has a configured system in it.
2038 if test `pwd` != `(cd ${srcdir} && pwd)` \
2039 && test -f "${srcdir}/src/config.h" ; then
2040 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2041 as a build directory right now; it has been configured in its own
2042 right. To configure in another directory as well, you MUST
2043 use GNU make. If you do not have GNU make, then you must
2044 now do \`make distclean' in ${srcdir},
2045 and then run $0 again." >&5
2046 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2047 as a build directory right now; it has been configured in its own
2048 right. To configure in another directory as well, you MUST
2049 use GNU make. If you do not have GNU make, then you must
2050 now do \`make distclean' in ${srcdir},
2051 and then run $0 again." >&2;}
2052 fi
2053
2054 #### Given the configuration name, set machfile and opsysfile to the
2055 #### names of the m/*.h and s/*.h files we should use.
2056
2057 ### Canonicalize the configuration name.
2058
2059 ac_aux_dir=
2060 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2061 if test -f "$ac_dir/install-sh"; then
2062 ac_aux_dir=$ac_dir
2063 ac_install_sh="$ac_aux_dir/install-sh -c"
2064 break
2065 elif test -f "$ac_dir/install.sh"; then
2066 ac_aux_dir=$ac_dir
2067 ac_install_sh="$ac_aux_dir/install.sh -c"
2068 break
2069 elif test -f "$ac_dir/shtool"; then
2070 ac_aux_dir=$ac_dir
2071 ac_install_sh="$ac_aux_dir/shtool install -c"
2072 break
2073 fi
2074 done
2075 if test -z "$ac_aux_dir"; then
2076 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2077 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2078 { (exit 1); exit 1; }; }
2079 fi
2080
2081 # These three variables are undocumented and unsupported,
2082 # and are intended to be withdrawn in a future Autoconf release.
2083 # They can cause serious problems if a builder's source tree is in a directory
2084 # whose full name contains unusual characters.
2085 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2086 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2087 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2088
2089
2090 # Make sure we can run config.sub.
2091 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2092 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2093 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2094 { (exit 1); exit 1; }; }
2095
2096 { echo "$as_me:$LINENO: checking build system type" >&5
2097 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2098 if test "${ac_cv_build+set}" = set; then
2099 echo $ECHO_N "(cached) $ECHO_C" >&6
2100 else
2101 ac_build_alias=$build_alias
2102 test "x$ac_build_alias" = x &&
2103 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2104 test "x$ac_build_alias" = x &&
2105 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2106 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2107 { (exit 1); exit 1; }; }
2108 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2109 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2110 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2111 { (exit 1); exit 1; }; }
2112
2113 fi
2114 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2115 echo "${ECHO_T}$ac_cv_build" >&6; }
2116 case $ac_cv_build in
2117 *-*-*) ;;
2118 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2119 echo "$as_me: error: invalid value of canonical build" >&2;}
2120 { (exit 1); exit 1; }; };;
2121 esac
2122 build=$ac_cv_build
2123 ac_save_IFS=$IFS; IFS='-'
2124 set x $ac_cv_build
2125 shift
2126 build_cpu=$1
2127 build_vendor=$2
2128 shift; shift
2129 # Remember, the first character of IFS is used to create $*,
2130 # except with old shells:
2131 build_os=$*
2132 IFS=$ac_save_IFS
2133 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2134
2135
2136 { echo "$as_me:$LINENO: checking host system type" >&5
2137 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2138 if test "${ac_cv_host+set}" = set; then
2139 echo $ECHO_N "(cached) $ECHO_C" >&6
2140 else
2141 if test "x$host_alias" = x; then
2142 ac_cv_host=$ac_cv_build
2143 else
2144 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2145 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2146 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2147 { (exit 1); exit 1; }; }
2148 fi
2149
2150 fi
2151 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2152 echo "${ECHO_T}$ac_cv_host" >&6; }
2153 case $ac_cv_host in
2154 *-*-*) ;;
2155 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2156 echo "$as_me: error: invalid value of canonical host" >&2;}
2157 { (exit 1); exit 1; }; };;
2158 esac
2159 host=$ac_cv_host
2160 ac_save_IFS=$IFS; IFS='-'
2161 set x $ac_cv_host
2162 shift
2163 host_cpu=$1
2164 host_vendor=$2
2165 shift; shift
2166 # Remember, the first character of IFS is used to create $*,
2167 # except with old shells:
2168 host_os=$*
2169 IFS=$ac_save_IFS
2170 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2171
2172
2173 canonical=$host
2174 configuration=${host_alias-$host}
2175
2176
2177
2178 ### If you add support for a new configuration, add code to this
2179 ### switch statement to recognize your configuration name and select
2180 ### the appropriate operating system and machine description files.
2181
2182 ### You would hope that you could choose an m/*.h file pretty much
2183 ### based on the machine portion of the configuration name, and an s-
2184 ### file based on the operating system portion. However, it turns out
2185 ### that each m/*.h file is pretty manufacturer-specific - for
2186 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2187 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2188 ### machines. So we basically have to have a special case for each
2189 ### configuration name.
2190 ###
2191 ### As far as handling version numbers on operating systems is
2192 ### concerned, make sure things will fail in a fixable way. If
2193 ### /etc/MACHINES doesn't say anything about version numbers, be
2194 ### prepared to handle anything reasonably. If version numbers
2195 ### matter, be sure /etc/MACHINES says something about it.
2196 ###
2197 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2198 ### "System V Release 4"; he writes, "The old convention encouraged
2199 ### confusion between `system' and `release' levels'."
2200
2201 machine='' opsys='' unported=no
2202 case "${canonical}" in
2203
2204 ## FreeBSD ports
2205 *-*-freebsd* )
2206 opsys=freebsd
2207 case "${canonical}" in
2208 alpha*-*-freebsd*) machine=alpha ;;
2209 ia64-*-freebsd*) machine=ia64 ;;
2210 sparc64-*-freebsd*) machine=sparc ;;
2211 powerpc-*-freebsd*) machine=macppc ;;
2212 i[3456]86-*-freebsd*) machine=intel386 ;;
2213 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2214 esac
2215 ;;
2216
2217 ## NetBSD ports
2218 *-*-netbsd* )
2219 opsys=netbsd
2220 if test -f /usr/lib/crti.o; then
2221
2222 cat >>confdefs.h <<\_ACEOF
2223 #define HAVE_CRTIN
2224 _ACEOF
2225
2226 fi
2227
2228 case "${canonical}" in
2229 alpha*-*-netbsd*) machine=alpha ;;
2230 i[3456]86-*-netbsd*) machine=intel386 ;;
2231 m68k-*-netbsd*)
2232 # This is somewhat bogus.
2233 machine=hp9000s300 ;;
2234 mips-*-netbsd*) machine=pmax ;;
2235 mipsel-*-netbsd*) machine=pmax ;;
2236 mipseb-*-netbsd*) machine=pmax ;;
2237 ns32k-*-netbsd*) machine=ns32000 ;;
2238 powerpc-*-netbsd*) machine=macppc ;;
2239 sparc*-*-netbsd*) machine=sparc ;;
2240 vax-*-netbsd*) machine=vax ;;
2241 arm-*-netbsd*) machine=arm ;;
2242 x86_64-*-netbsd*) machine=amdx86-64 ;;
2243 hppa-*-netbsd*) machine=hp800 ;;
2244 shle-*-netbsd*) machine=sh3el ;;
2245 esac
2246 ;;
2247
2248 ## OpenBSD ports
2249 *-*-openbsd* )
2250 opsys=openbsd
2251 case "${canonical}" in
2252 alpha*-*-openbsd*) machine=alpha ;;
2253 arm-*-openbsd*) machine=arm ;;
2254 hppa-*-openbsd*) machine=hp9000s300 ;;
2255 i386-*-openbsd*) machine=intel386 ;;
2256 m68k-*-openbsd*) machine=hp9000s300 ;;
2257 m88k-*-openbsd*) machine=aviion ;;
2258 mips64-*-openbsd*) machine=mips64 ;;
2259 powerpc-*-openbsd*) machine=macppc ;;
2260 sh-*-openbsd*) machine=sh3el ;;
2261 sparc*-*-openbsd*) machine=sparc ;;
2262 vax-*-openbsd*) machine=vax ;;
2263 x86_64-*-openbsd*) machine=amdx86-64 ;;
2264 esac
2265 ;;
2266
2267 ## LynxOS ports
2268 *-*-lynxos* )
2269 opsys=lynxos
2270 case "${canonical}" in
2271 i[3456]86-*-lynxos*) machine=intel386 ;;
2272 powerpc-*-lynxos*) machine=powerpc ;;
2273 esac
2274 ;;
2275
2276 ## Acorn RISCiX:
2277 arm-acorn-riscix1.1* )
2278 machine=acorn opsys=riscix1-1
2279 ;;
2280 arm-acorn-riscix1.2* | arm-acorn-riscix )
2281 ## This name is riscix12 instead of riscix1.2
2282 ## to avoid a file name conflict on MSDOS.
2283 machine=acorn opsys=riscix12
2284 ;;
2285
2286 ## BSDI ports
2287 *-*-bsdi* )
2288 opsys=bsdi
2289 case "${canonical}" in
2290 i[345]86-*-bsdi*) machine=intel386 ;;
2291 sparc-*-bsdi*) machine=sparc ;;
2292 powerpc-*-bsdi*) machine=macppc ;;
2293 esac
2294 case "${canonical}" in
2295 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2296 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2297 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2298 *-*-bsdi3* ) opsys=bsdos3 ;;
2299 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2300 esac
2301 ;;
2302
2303 ## Alliant machines
2304 ## Strictly speaking, we need the version of the alliant operating
2305 ## system to choose the right machine file, but currently the
2306 ## configuration name doesn't tell us enough to choose the right
2307 ## one; we need to give alliants their own operating system name to
2308 ## do this right. When someone cares, they can help us.
2309 fx80-alliant-* )
2310 machine=alliant4 opsys=bsd4-2
2311 ;;
2312 i860-alliant-* )
2313 machine=alliant-2800 opsys=bsd4-3
2314 ;;
2315
2316 ## Alpha (DEC) machines.
2317 alpha*-dec-osf* )
2318 machine=alpha opsys=osf1
2319 # This is needed to find X11R6.1 libraries for certain tests.
2320 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2321 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2322 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2323 # due to non-traditional preprocessing with the current compiler
2324 # defaults. OSF 4 can also have that compiler version, and there
2325 # seems always to have been a usable /usr/bin/cpp.
2326 NON_GNU_CPP=/usr/bin/cpp
2327 case "${canonical}" in
2328 alpha*-dec-osf[5-9]*)
2329 opsys=osf5-0 ;;
2330 esac
2331 ;;
2332
2333 alpha*-*-linux-gnu* )
2334 machine=alpha opsys=gnu-linux
2335 ;;
2336
2337 arm*-*-linux-gnu* )
2338 machine=arm opsys=gnu-linux
2339 ;;
2340
2341 ## Altos 3068
2342 m68*-altos-sysv* )
2343 machine=altos opsys=usg5-2
2344 ;;
2345
2346 ## Amdahl UTS
2347 580-amdahl-sysv* )
2348 machine=amdahl opsys=usg5-2-2
2349 ;;
2350
2351 ## Apollo, Domain/OS
2352 m68*-apollo-* )
2353 machine=apollo opsys=bsd4-3
2354 ;;
2355
2356 ## Apple Darwin / Mac OS X
2357 *-apple-darwin* )
2358 case "${canonical}" in
2359 i[3456]86-* ) machine=intel386 ;;
2360 powerpc-* ) machine=powermac ;;
2361 * ) unported=yes ;;
2362 esac
2363 opsys=darwin
2364 # Define CPP as follows to make autoconf work correctly.
2365 CPP="${CC-cc} -E -no-cpp-precomp"
2366 # Use fink packages if available.
2367 if test -d /sw/include && test -d /sw/lib; then
2368 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2369 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2370 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2371 fi
2372 ;;
2373
2374 ## AT&T 3b2, 3b5, 3b15, 3b20
2375 we32k-att-sysv* )
2376 machine=att3b opsys=usg5-2-2
2377 ;;
2378
2379 ## AT&T 3b1 - The Mighty Unix PC!
2380 m68*-att-sysv* )
2381 machine=7300 opsys=usg5-2-2
2382 ;;
2383
2384 ## Bull dpx20
2385 rs6000-bull-bosx* )
2386 machine=ibmrs6000 opsys=aix3-2
2387 ;;
2388
2389 ## Bull dpx2
2390 m68*-bull-sysv3* )
2391 machine=dpx2 opsys=usg5-3
2392 ;;
2393
2394 ## Bull sps7
2395 m68*-bull-sysv2* )
2396 machine=sps7 opsys=usg5-2
2397 ;;
2398
2399 ## CCI 5/32, 6/32 -- see "Tahoe".
2400
2401 ## Celerity
2402 ## I don't know what configuration name to use for this; config.sub
2403 ## doesn't seem to know anything about it. Hey, Celerity users, get
2404 ## in touch with us!
2405 celerity-celerity-bsd* )
2406 machine=celerity opsys=bsd4-2
2407 ;;
2408
2409 ## Clipper
2410 ## What operating systems does this chip run that Emacs has been
2411 ## tested on?
2412 clipper-* )
2413 machine=clipper
2414 ## We'll use the catch-all code at the bottom to guess the
2415 ## operating system.
2416 ;;
2417
2418 ## Compaq Nonstop
2419 mips-compaq-nonstopux* )
2420 machine=nonstopux opsys=nonstopux
2421 ;;
2422
2423 ## Convex
2424 *-convex-bsd* | *-convex-convexos* )
2425 machine=convex opsys=bsd4-3
2426 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2427 NON_GNU_CPP="cc -E -P"
2428 ;;
2429
2430 ## Cubix QBx/386
2431 i[3456]86-cubix-sysv* )
2432 machine=intel386 opsys=usg5-3
2433 ;;
2434
2435 ## Cydra 5
2436 cydra*-cydrome-sysv* )
2437 machine=cydra5 opsys=usg5-3
2438 ;;
2439
2440 ## Data General AViiON Machines
2441 ## DG changed naming conventions with the release of 5.4.4.10, they
2442 ## dropped the initial 5.4 but left the intervening R. Because of the
2443 ## R this shouldn't conflict with older versions of the OS (which I
2444 ## think were named like dgux4.*). In addition, DG new AViiONs series
2445 ## uses either Motorola M88k or Intel Pentium CPUs.
2446 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
2447 machine=aviion opsys=dgux4
2448 ;;
2449 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
2450 ## This name is dgux5-4-3 instead of dgux5-4r3
2451 ## to avoid a file name conflict on MSDOS.
2452 machine=aviion opsys=dgux5-4-3
2453 ;;
2454 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
2455 machine=aviion opsys=dgux5-4r2
2456 ;;
2457 m88k-dg-dgux* )
2458 machine=aviion opsys=dgux
2459 ;;
2460
2461 ## Data General AViiON Intel (x86) Machines
2462 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2463 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2464 i[345]86-dg-dguxR4* )
2465 machine=aviion-intel opsys=dgux4
2466 ;;
2467
2468 ## DECstations
2469 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2470 machine=pmax opsys=bsd4-2
2471 ;;
2472 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2473 machine=pmax opsys=bsd4-3
2474 ;;
2475 mips-dec-ultrix* )
2476 machine=pmax opsys=ultrix4-3
2477 ;;
2478 mips-dec-osf* )
2479 machine=pmax opsys=osf1
2480 ;;
2481 mips-dec-mach_bsd4.3* )
2482 machine=pmax opsys=mach-bsd4-3
2483 ;;
2484
2485 ## Motorola Delta machines
2486 m68k-motorola-sysv* | m68000-motorola-sysv* )
2487 machine=delta opsys=usg5-3
2488 if test -z "`type gnucc | grep 'not found'`"
2489 then
2490 if test -s /etc/167config
2491 then CC="gnucc -m68040"
2492 else CC="gnucc -m68881"
2493 fi
2494 else
2495 if test -z "`type gcc | grep 'not found'`"
2496 then CC=gcc
2497 else CC=cc
2498 fi
2499 fi
2500 ;;
2501 m88k-motorola-sysv4* )
2502 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2503 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2504 # I hope there are not other 4.0 versions for this machine
2505 # which really need usg5-4 instead.
2506 machine=delta88k opsys=usg5-4-2
2507 ;;
2508 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2509 machine=delta88k opsys=usg5-3
2510 ;;
2511
2512 ## Dual machines
2513 m68*-dual-sysv* )
2514 machine=dual opsys=usg5-2
2515 ;;
2516 m68*-dual-uniplus* )
2517 machine=dual opsys=unipl5-2
2518 ;;
2519
2520 ## Elxsi 6400
2521 elxsi-elxsi-sysv* )
2522 machine=elxsi opsys=usg5-2
2523 ;;
2524
2525 ## Encore machines
2526 ns16k-encore-bsd* )
2527 machine=ns16000 opsys=umax
2528 ;;
2529
2530 ## The GEC 63 - apparently, this port isn't really finished yet.
2531 # I'm sure we finished off the last of the machines, though. -- fx
2532
2533 ## Gould Power Node and NP1
2534 pn-gould-bsd4.2* )
2535 machine=gould opsys=bsd4-2
2536 ;;
2537 pn-gould-bsd4.3* )
2538 machine=gould opsys=bsd4-3
2539 ;;
2540 np1-gould-bsd* )
2541 machine=gould-np1 opsys=bsd4-3
2542 ;;
2543
2544 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2545 ## as far as Emacs is concerned).
2546 m88k-harris-cxux* )
2547 # Build needs to be different on 7.0 and later releases
2548 case "`uname -r`" in
2549 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2550 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2551 esac
2552 NON_GNU_CPP="/lib/cpp"
2553 ;;
2554 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2555 m68k-harris-cxux* )
2556 machine=nh3000 opsys=cxux
2557 ;;
2558 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2559 powerpc-harris-powerunix )
2560 machine=nh6000 opsys=powerunix
2561 NON_GNU_CPP="cc -Xo -E -P"
2562 ;;
2563 ## SR2001/SR2201 running HI-UX/MPP
2564 hppa1.1-hitachi-hiuxmpp* )
2565 machine=sr2k opsys=hiuxmpp
2566 ;;
2567 hppa1.1-hitachi-hiuxwe2* )
2568 machine=sr2k opsys=hiuxwe2
2569 ;;
2570 ## Honeywell XPS100
2571 xps*-honeywell-sysv* )
2572 machine=xps100 opsys=usg5-2
2573 ;;
2574
2575 ## HP 9000 series 200 or 300
2576 m68*-hp-bsd* )
2577 machine=hp9000s300 opsys=bsd4-3
2578 ;;
2579 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2580 m68*-hp-hpux* )
2581 case "`uname -r`" in
2582 ## Someone's system reports A.B8.05 for this.
2583 ## I wonder what other possibilities there are.
2584 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2585 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2586 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2587 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2588 *) machine=hp9000s300 opsys=hpux ;;
2589 esac
2590 ;;
2591
2592 ## HP 9000 series 700 and 800, running HP/UX
2593 hppa*-hp-hpux7* )
2594 machine=hp800 opsys=hpux
2595 ;;
2596 hppa*-hp-hpux8* )
2597 machine=hp800 opsys=hpux8
2598 ;;
2599 hppa*-hp-hpux9shr* )
2600 machine=hp800 opsys=hpux9shr
2601 ;;
2602 hppa*-hp-hpux9* )
2603 machine=hp800 opsys=hpux9
2604 ;;
2605 hppa*-hp-hpux10.2* )
2606 machine=hp800 opsys=hpux10-20
2607 ;;
2608 hppa*-hp-hpux10* )
2609 machine=hp800 opsys=hpux10
2610 ;;
2611 hppa*-hp-hpux1[1-9]* )
2612 machine=hp800 opsys=hpux11
2613 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2614 ;;
2615
2616 hppa*-*-linux-gnu* )
2617 machine=hp800 opsys=gnu-linux
2618 ;;
2619
2620 ## HP 9000 series 700 and 800, running HP/UX
2621 hppa*-hp-hpux* )
2622 ## Cross-compilation? Nah!
2623 case "`uname -r`" in
2624 ## Someone's system reports A.B8.05 for this.
2625 ## I wonder what other possibilities there are.
2626 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2627 *.08.* ) machine=hp800 opsys=hpux8 ;;
2628 *.09.* ) machine=hp800 opsys=hpux9 ;;
2629 *) machine=hp800 opsys=hpux10 ;;
2630 esac
2631 ;;
2632 hppa*-*-nextstep* )
2633 machine=hp800 opsys=nextstep
2634 ;;
2635
2636 ## Orion machines
2637 orion-orion-bsd* )
2638 machine=orion opsys=bsd4-2
2639 ;;
2640 clipper-orion-bsd* )
2641 machine=orion105 opsys=bsd4-2
2642 ;;
2643
2644 ## IBM machines
2645 i[3456]86-ibm-aix1.1* )
2646 machine=ibmps2-aix opsys=usg5-2-2
2647 ;;
2648 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2649 machine=ibmps2-aix opsys=usg5-3
2650 ;;
2651 i370-ibm-aix*)
2652 machine=ibm370aix opsys=usg5-3
2653 ;;
2654 s390-*-linux-gnu* )
2655 machine=ibms390 opsys=gnu-linux
2656 ;;
2657 s390x-*-linux-gnu* )
2658 machine=ibms390x opsys=gnu-linux
2659 ;;
2660 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2661 machine=ibmrs6000 opsys=aix3-1
2662 ;;
2663 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2664 machine=ibmrs6000 opsys=aix3-2-5
2665 ;;
2666 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2667 machine=ibmrs6000 opsys=aix4-1
2668 ;;
2669 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2670 machine=ibmrs6000 opsys=aix4-2
2671 ;;
2672 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2673 machine=ibmrs6000 opsys=aix4-2
2674 ;;
2675 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2676 machine=ibmrs6000 opsys=aix4-2
2677 ;;
2678 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2679 machine=ibmrs6000 opsys=aix4
2680 ;;
2681 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2682 machine=ibmrs6000 opsys=aix4-1
2683 ;;
2684 rs6000-ibm-aix* | powerpc-ibm-aix* )
2685 machine=ibmrs6000 opsys=aix3-2
2686 ;;
2687 romp-ibm-bsd4.3* )
2688 machine=ibmrt opsys=bsd4-3
2689 ;;
2690 romp-ibm-bsd4.2* )
2691 machine=ibmrt opsys=bsd4-2
2692 ;;
2693 romp-ibm-aos4.3* )
2694 machine=ibmrt opsys=bsd4-3
2695 ;;
2696 romp-ibm-aos4.2* )
2697 machine=ibmrt opsys=bsd4-2
2698 ;;
2699 romp-ibm-aos* )
2700 machine=ibmrt opsys=bsd4-3
2701 ;;
2702 romp-ibm-bsd* )
2703 machine=ibmrt opsys=bsd4-3
2704 ;;
2705 romp-ibm-aix* )
2706 machine=ibmrt-aix opsys=usg5-2-2
2707 ;;
2708
2709 ## Integrated Solutions `Optimum V'
2710 m68*-isi-bsd4.2* )
2711 machine=isi-ov opsys=bsd4-2
2712 ;;
2713 m68*-isi-bsd4.3* )
2714 machine=isi-ov opsys=bsd4-3
2715 ;;
2716
2717 ## Intel 386 machines where we do care about the manufacturer
2718 i[3456]86-intsys-sysv* )
2719 machine=is386 opsys=usg5-2-2
2720 ;;
2721
2722 ## Prime EXL
2723 i[3456]86-prime-sysv* )
2724 machine=i386 opsys=usg5-3
2725 ;;
2726
2727 ## Sequent Symmetry running Dynix
2728 i[3456]86-sequent-bsd* )
2729 machine=symmetry opsys=bsd4-3
2730 ;;
2731
2732 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2733 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2734 machine=sequent-ptx opsys=ptx4
2735 NON_GNU_CPP=/lib/cpp
2736 ;;
2737
2738 ## Sequent Symmetry running DYNIX/ptx
2739 ## Use the old cpp rather than the newer ANSI one.
2740 i[3456]86-sequent-ptx* )
2741 machine=sequent-ptx opsys=ptx
2742 NON_GNU_CPP="/lib/cpp"
2743 ;;
2744
2745 ## ncr machine running svr4.3.
2746 i[3456]86-ncr-sysv4.3 )
2747 machine=ncr386 opsys=usg5-4-3
2748 ;;
2749
2750 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2751 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2752 i[3456]86-ncr-sysv* )
2753 machine=ncr386 opsys=usg5-4-2
2754 ;;
2755
2756 ## Intel Paragon OSF/1
2757 i860-intel-osf1* )
2758 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2759 ;;
2760
2761 ## Intel 860
2762 i860-*-sysv4* )
2763 machine=i860 opsys=usg5-4
2764 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2765 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2766 ;;
2767
2768 ## Macintosh PowerPC
2769 powerpc*-*-linux-gnu* )
2770 machine=macppc opsys=gnu-linux
2771 ;;
2772
2773 ## Masscomp machines
2774 m68*-masscomp-rtu* )
2775 machine=masscomp opsys=rtu
2776 ;;
2777
2778 ## Megatest machines
2779 m68*-megatest-bsd* )
2780 machine=mega68 opsys=bsd4-2
2781 ;;
2782
2783 ## Workstations sold by MIPS
2784 ## This is not necessarily all workstations using the MIPS processor -
2785 ## Irises are produced by SGI, and DECstations by DEC.
2786
2787 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2788 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2789 ## it gives for choosing between the alternatives seems to be "Use
2790 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2791 ## the BSD world." I'll assume that these are instructions for
2792 ## handling two odd situations, and that every other situation
2793 ## should use mips.h and usg5-2-2, they being listed first.
2794 mips-mips-usg* )
2795 machine=mips4
2796 ## Fall through to the general code at the bottom to decide on the OS.
2797 ;;
2798 mips-mips-riscos4* )
2799 machine=mips4 opsys=bsd4-3
2800 NON_GNU_CC="cc -systype bsd43"
2801 NON_GNU_CPP="cc -systype bsd43 -E"
2802 ;;
2803 mips-mips-riscos5* )
2804 machine=mips4 opsys=riscos5
2805 NON_GNU_CC="cc -systype bsd43"
2806 NON_GNU_CPP="cc -systype bsd43 -E"
2807 ;;
2808 mips-mips-bsd* )
2809 machine=mips opsys=bsd4-3
2810 ;;
2811 mips-mips-* )
2812 machine=mips opsys=usg5-2-2
2813 ;;
2814
2815 ## NeXT
2816 m68*-next-* | m68k-*-nextstep* )
2817 machine=m68k opsys=nextstep
2818 ;;
2819
2820 ## The complete machine from National Semiconductor
2821 ns32k-ns-genix* )
2822 machine=ns32000 opsys=usg5-2
2823 ;;
2824
2825 ## NCR machines
2826 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2827 machine=tower32 opsys=usg5-2-2
2828 ;;
2829 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2830 machine=tower32v3 opsys=usg5-3
2831 ;;
2832
2833 ## NEC EWS4800
2834 mips-nec-sysv4*)
2835 machine=ews4800 opsys=ux4800
2836 ;;
2837
2838 ## Nixdorf Targon 31
2839 m68*-nixdorf-sysv* )
2840 machine=targon31 opsys=usg5-2-2
2841 ;;
2842
2843 ## Nu (TI or LMI)
2844 m68*-nu-sysv* )
2845 machine=nu opsys=usg5-2
2846 ;;
2847
2848 ## Plexus
2849 m68*-plexus-sysv* )
2850 machine=plexus opsys=usg5-2
2851 ;;
2852
2853 ## Pyramid machines
2854 ## I don't really have any idea what sort of processor the Pyramid has,
2855 ## so I'm assuming it is its own architecture.
2856 pyramid-pyramid-bsd* )
2857 machine=pyramid opsys=bsd4-2
2858 ;;
2859
2860 ## Sequent Balance
2861 ns32k-sequent-bsd4.2* )
2862 machine=sequent opsys=bsd4-2
2863 ;;
2864 ns32k-sequent-bsd4.3* )
2865 machine=sequent opsys=bsd4-3
2866 ;;
2867
2868 ## Siemens Nixdorf
2869 mips-siemens-sysv* | mips-sni-sysv*)
2870 machine=mips-siemens opsys=usg5-4
2871 NON_GNU_CC=/usr/ccs/bin/cc
2872 NON_GNU_CPP=/usr/ccs/lib/cpp
2873 ;;
2874
2875 ## Silicon Graphics machines
2876 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2877 m68*-sgi-iris3.5* )
2878 machine=irist opsys=iris3-5
2879 ;;
2880 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2881 machine=irist opsys=iris3-6
2882 ;;
2883 ## Iris 4D
2884 mips-sgi-irix3* )
2885 machine=iris4d opsys=irix3-3
2886 ;;
2887 mips-sgi-irix4* )
2888 machine=iris4d opsys=irix4-0
2889 ;;
2890 mips-sgi-irix6.5 )
2891 machine=iris4d opsys=irix6-5
2892 # Without defining _LANGUAGE_C, things get masked out in the headers
2893 # so that, for instance, grepping for `free' in stdlib.h fails and
2894 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2895 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2896 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2897 ;;
2898 mips-sgi-irix6* )
2899 machine=iris4d opsys=irix6-0
2900 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2901 # but presumably it does no harm.
2902 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2903 # -32 probably isn't necessary in later v.6s -- anyone know which?
2904 NON_GCC_TEST_OPTIONS=-32
2905 ;;
2906 mips-sgi-irix5.[01]* )
2907 machine=iris4d opsys=irix5-0
2908 ;;
2909 mips-sgi-irix5* | mips-sgi-irix* )
2910 machine=iris4d opsys=irix5-2
2911 ;;
2912
2913 ## SONY machines
2914 m68*-sony-bsd4.2* )
2915 machine=news opsys=bsd4-2
2916 ;;
2917 m68*-sony-bsd4.3* )
2918 machine=news opsys=bsd4-3
2919 ;;
2920 m68*-sony-newsos3* | m68*-sony-news3*)
2921 machine=news opsys=bsd4-3
2922 ;;
2923 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2924 machine=news-risc opsys=bsd4-3
2925 ;;
2926 mips-sony-newsos6* )
2927 machine=news-r6 opsys=newsos6
2928 ;;
2929 mips-sony-news* )
2930 machine=news-risc opsys=newsos5
2931 ;;
2932
2933 ## Stride
2934 m68*-stride-sysv* )
2935 machine=stride opsys=usg5-2
2936 ;;
2937
2938 ## Suns
2939 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2940 machine=sparc opsys=gnu-linux
2941 ;;
2942
2943 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2944 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2945 | rs6000-*-solaris2*)
2946 case "${canonical}" in
2947 m68*-sunos1* ) machine=sun1 ;;
2948 m68*-sunos2* ) machine=sun2 ;;
2949 m68* ) machine=sun3 ;;
2950 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2951 i[3456]86-*-* ) machine=intel386 ;;
2952 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2953 powerpcle* ) machine=powerpcle ;;
2954 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2955 sparc* ) machine=sparc ;;
2956 * ) unported=yes ;;
2957 esac
2958 case "${canonical}" in
2959 ## The Sun386 didn't get past 4.0.
2960 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2961 *-sunos4.0* ) opsys=sunos4-0 ;;
2962 *-sunos4.1.[3-9]*noshare )
2963 ## This name is sunos413 instead of sunos4-1-3
2964 ## to avoid a file name conflict on MSDOS.
2965 opsys=sunos413
2966 NON_GNU_CPP=/usr/lib/cpp
2967 NON_GCC_TEST_OPTIONS=-Bstatic
2968 GCC_TEST_OPTIONS=-static
2969 ;;
2970 *-sunos4.1.[3-9]* | *-sunos4shr*)
2971 opsys=sunos4shr
2972 NON_GNU_CPP=/usr/lib/cpp
2973 ;;
2974 *-sunos4* | *-sunos )
2975 opsys=sunos4-1
2976 NON_GCC_TEST_OPTIONS=-Bstatic
2977 GCC_TEST_OPTIONS=-static
2978 ;;
2979 *-sunos5.3* | *-solaris2.3* )
2980 opsys=sol2-3
2981 NON_GNU_CPP=/usr/ccs/lib/cpp
2982 ;;
2983 *-sunos5.4* | *-solaris2.4* )
2984 opsys=sol2-4
2985 NON_GNU_CPP=/usr/ccs/lib/cpp
2986 RANLIB="ar -ts"
2987 ;;
2988 *-sunos5.5* | *-solaris2.5* )
2989 opsys=sol2-5
2990 NON_GNU_CPP=/usr/ccs/lib/cpp
2991 RANLIB="ar -ts"
2992 ;;
2993 *-sunos5.6* | *-solaris2.6* )
2994 opsys=sol2-6
2995 NON_GNU_CPP=/usr/ccs/lib/cpp
2996 RANLIB="ar -ts"
2997 ;;
2998 *-sunos5* | *-solaris* )
2999 opsys=sol2-6
3000 ## FIXME: make this into a proper fix that checks the compiler type,
3001 ## rather than relying on path. Or is /usr/ccs/lib/cpp a bad default now?
3002 if [ "x$CC" = x/opt/SUNWspro/bin/cc ]; then
3003 ## -Xs prevents spurious whitespace.
3004 NON_GNU_CPP="/opt/SUNWspro/bin/cc -E -Xs"
3005 else
3006 NON_GNU_CPP=/usr/ccs/lib/cpp
3007 fi
3008 ;;
3009 * ) opsys=bsd4-2 ;;
3010 esac
3011 ## Watch out for a compiler that we know will not work.
3012 case "${canonical}" in
3013 *-solaris* | *-sunos5* )
3014 if [ "x$CC" = x/usr/ucb/cc ]; then
3015 ## /usr/ucb/cc doesn't work;
3016 ## we should find some other compiler that does work.
3017 unset CC
3018 fi
3019 ;;
3020 *) ;;
3021 esac
3022 ;;
3023 sparc-*-nextstep* )
3024 machine=sparc opsys=nextstep
3025 ;;
3026
3027 ## Tadpole 68k
3028 m68*-tadpole-sysv* )
3029 machine=tad68k opsys=usg5-3
3030 ;;
3031
3032 ## Tahoe machines
3033 tahoe-tahoe-bsd4.2* )
3034 machine=tahoe opsys=bsd4-2
3035 ;;
3036 tahoe-tahoe-bsd4.3* )
3037 machine=tahoe opsys=bsd4-3
3038 ;;
3039
3040 ## Tandem Integrity S2
3041 mips-tandem-sysv* )
3042 machine=tandem-s2 opsys=usg5-3
3043 ;;
3044
3045 ## Tektronix XD88
3046 m88k-tektronix-sysv3* )
3047 machine=tekxd88 opsys=usg5-3
3048 ;;
3049
3050 ## Tektronix 16000 box (6130?)
3051 ns16k-tektronix-bsd* )
3052 machine=ns16000 opsys=bsd4-2
3053 ;;
3054 ## Tektronix 4300
3055 ## src/m/tek4300.h hints that this is a m68k machine.
3056 m68*-tektronix-bsd* )
3057 machine=tek4300 opsys=bsd4-3
3058 ;;
3059
3060 ## Titan P2 or P3
3061 ## We seem to have lost the machine-description file titan.h!
3062 titan-titan-sysv* )
3063 machine=titan opsys=usg5-3
3064 ;;
3065
3066 ## Ustation E30 (SS5E)
3067 m68*-unisys-uniplus* )
3068 machine=ustation opsystem=unipl5-2
3069 ;;
3070
3071 ## Vaxen.
3072 vax-dec-* )
3073 machine=vax
3074 case "${canonical}" in
3075 *-bsd4.1* ) opsys=bsd4-1 ;;
3076 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
3077 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
3078 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
3079 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
3080 *-vms* ) opsys=vms ;;
3081 * ) unported=yes
3082 esac
3083 ;;
3084
3085 ## Whitechapel MG1
3086 ns16k-whitechapel-* )
3087 machine=mg1
3088 ## We don't know what sort of OS runs on these; we'll let the
3089 ## operating system guessing code below try.
3090 ;;
3091
3092 ## Wicat
3093 m68*-wicat-sysv* )
3094 machine=wicat opsys=usg5-2
3095 ;;
3096
3097 ## IA-64
3098 ia64*-*-linux* )
3099 machine=ia64 opsys=gnu-linux
3100 ;;
3101
3102 ## Intel 386 machines where we don't care about the manufacturer
3103 i[3456]86-*-* )
3104 machine=intel386
3105 case "${canonical}" in
3106 *-cygwin ) opsys=cygwin ;;
3107 *-darwin* ) opsys=darwin
3108 CPP="${CC-cc} -E -no-cpp-precomp"
3109 ;;
3110 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
3111 *-isc2.2* ) opsys=isc2-2 ;;
3112 *-isc4.0* ) opsys=isc4-0 ;;
3113 *-isc4.* ) opsys=isc4-1
3114 GCC_TEST_OPTIONS=-posix
3115 NON_GCC_TEST_OPTIONS=-Xp
3116 ;;
3117 *-isc* ) opsys=isc3-0 ;;
3118 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
3119 *-esix* ) opsys=esix ;;
3120 *-xenix* ) opsys=xenix ;;
3121 *-linux-gnu* ) opsys=gnu-linux ;;
3122 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
3123 *-sco3.2v5* ) opsys=sco5
3124 NON_GNU_CPP=/lib/cpp
3125 # Prevent -belf from being passed to $CPP.
3126 # /lib/cpp does not accept it.
3127 OVERRIDE_CPPFLAGS=" "
3128 ;;
3129 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3130 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3131 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3132 *-386bsd* ) opsys=386bsd ;;
3133 *-nextstep* ) opsys=nextstep ;;
3134 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3135 esac
3136 ;;
3137
3138 ## m68k Linux-based GNU system
3139 m68k-*-linux-gnu* )
3140 machine=m68k opsys=gnu-linux
3141 ;;
3142
3143 ## Mips Linux-based GNU system
3144 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
3145 machine=mips opsys=gnu-linux
3146 ;;
3147
3148 ## UXP/DS
3149 sparc-fujitsu-sysv4* )
3150 machine=sparc opsys=uxpds
3151 NON_GNU_CPP=/usr/ccs/lib/cpp
3152 RANLIB="ar -ts"
3153 ;;
3154
3155 ## UXP/V
3156 f301-fujitsu-uxpv4.1)
3157 machine=f301 opsys=uxpv
3158 ;;
3159
3160 ## AMD x86-64 Linux-based GNU system
3161 x86_64-*-linux-gnu* )
3162 machine=amdx86-64 opsys=gnu-linux
3163 ;;
3164
3165 ## Tensilica Xtensa Linux-based GNU system
3166 xtensa-*-linux-gnu* )
3167 machine=xtensa opsys=gnu-linux
3168 ;;
3169
3170 * )
3171 unported=yes
3172 ;;
3173 esac
3174
3175 ### If the code above didn't choose an operating system, just choose
3176 ### an operating system based on the configuration name. You really
3177 ### only want to use this when you have no idea what the right
3178 ### operating system is; if you know what operating systems a machine
3179 ### runs, it's cleaner to make it explicit in the case statement
3180 ### above.
3181 if test x"${opsys}" = x; then
3182 case "${canonical}" in
3183 *-gnu* ) opsys=gnu ;;
3184 *-bsd4.[01] ) opsys=bsd4-1 ;;
3185 *-bsd4.2 ) opsys=bsd4-2 ;;
3186 *-bsd4.3 ) opsys=bsd4-3 ;;
3187 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
3188 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
3189 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
3190 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
3191 *-sysv4.2uw* ) opsys=unixware ;;
3192 *-sysv5uw* ) opsys=unixware ;;
3193 *-sysv5OpenUNIX* ) opsys=unixware ;;
3194 *-sysv4.1* | *-sysvr4.1* )
3195 NON_GNU_CPP=/usr/lib/cpp
3196 opsys=usg5-4 ;;
3197 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3198 if [ x$NON_GNU_CPP = x ]; then
3199 if [ -f /usr/ccs/lib/cpp ]; then
3200 NON_GNU_CPP=/usr/ccs/lib/cpp
3201 else
3202 NON_GNU_CPP=/lib/cpp
3203 fi
3204 fi
3205 opsys=usg5-4-2 ;;
3206 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3207 * )
3208 unported=yes
3209 ;;
3210 esac
3211 fi
3212
3213
3214
3215 if test $unported = yes; then
3216 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3217 Check \`etc/MACHINES' for recognized configuration names." >&5
3218 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3219 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3220 { (exit 1); exit 1; }; }
3221 fi
3222
3223 machfile="m/${machine}.h"
3224 opsysfile="s/${opsys}.h"
3225
3226
3227 #### Choose a compiler.
3228 test -n "$CC" && cc_specified=yes
3229
3230 # Save the value of CFLAGS that the user specified.
3231 SPECIFIED_CFLAGS="$CFLAGS"
3232
3233 case ${with_gcc} in
3234 "yes" ) CC="gcc" GCC=yes ;;
3235 "no" ) : ${CC=cc} ;;
3236 * )
3237 esac
3238 ac_ext=c
3239 ac_cpp='$CPP $CPPFLAGS'
3240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3243 if test -n "$ac_tool_prefix"; then
3244 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3245 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3248 if test "${ac_cv_prog_CC+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3250 else
3251 if test -n "$CC"; then
3252 ac_cv_prog_CC="$CC" # Let the user override the test.
3253 else
3254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255 for as_dir in $PATH
3256 do
3257 IFS=$as_save_IFS
3258 test -z "$as_dir" && as_dir=.
3259 for ac_exec_ext in '' $ac_executable_extensions; do
3260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3261 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3263 break 2
3264 fi
3265 done
3266 done
3267 IFS=$as_save_IFS
3268
3269 fi
3270 fi
3271 CC=$ac_cv_prog_CC
3272 if test -n "$CC"; then
3273 { echo "$as_me:$LINENO: result: $CC" >&5
3274 echo "${ECHO_T}$CC" >&6; }
3275 else
3276 { echo "$as_me:$LINENO: result: no" >&5
3277 echo "${ECHO_T}no" >&6; }
3278 fi
3279
3280
3281 fi
3282 if test -z "$ac_cv_prog_CC"; then
3283 ac_ct_CC=$CC
3284 # Extract the first word of "gcc", so it can be a program name with args.
3285 set dummy gcc; ac_word=$2
3286 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3288 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3290 else
3291 if test -n "$ac_ct_CC"; then
3292 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3293 else
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 for as_dir in $PATH
3296 do
3297 IFS=$as_save_IFS
3298 test -z "$as_dir" && as_dir=.
3299 for ac_exec_ext in '' $ac_executable_extensions; do
3300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3301 ac_cv_prog_ac_ct_CC="gcc"
3302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3303 break 2
3304 fi
3305 done
3306 done
3307 IFS=$as_save_IFS
3308
3309 fi
3310 fi
3311 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3312 if test -n "$ac_ct_CC"; then
3313 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3314 echo "${ECHO_T}$ac_ct_CC" >&6; }
3315 else
3316 { echo "$as_me:$LINENO: result: no" >&5
3317 echo "${ECHO_T}no" >&6; }
3318 fi
3319
3320 if test "x$ac_ct_CC" = x; then
3321 CC=""
3322 else
3323 case $cross_compiling:$ac_tool_warned in
3324 yes:)
3325 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3326 whose name does not start with the host triplet. If you think this
3327 configuration is useful to you, please write to autoconf@gnu.org." >&5
3328 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3329 whose name does not start with the host triplet. If you think this
3330 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3331 ac_tool_warned=yes ;;
3332 esac
3333 CC=$ac_ct_CC
3334 fi
3335 else
3336 CC="$ac_cv_prog_CC"
3337 fi
3338
3339 if test -z "$CC"; then
3340 if test -n "$ac_tool_prefix"; then
3341 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3342 set dummy ${ac_tool_prefix}cc; ac_word=$2
3343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3345 if test "${ac_cv_prog_CC+set}" = set; then
3346 echo $ECHO_N "(cached) $ECHO_C" >&6
3347 else
3348 if test -n "$CC"; then
3349 ac_cv_prog_CC="$CC" # Let the user override the test.
3350 else
3351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352 for as_dir in $PATH
3353 do
3354 IFS=$as_save_IFS
3355 test -z "$as_dir" && as_dir=.
3356 for ac_exec_ext in '' $ac_executable_extensions; do
3357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3358 ac_cv_prog_CC="${ac_tool_prefix}cc"
3359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3360 break 2
3361 fi
3362 done
3363 done
3364 IFS=$as_save_IFS
3365
3366 fi
3367 fi
3368 CC=$ac_cv_prog_CC
3369 if test -n "$CC"; then
3370 { echo "$as_me:$LINENO: result: $CC" >&5
3371 echo "${ECHO_T}$CC" >&6; }
3372 else
3373 { echo "$as_me:$LINENO: result: no" >&5
3374 echo "${ECHO_T}no" >&6; }
3375 fi
3376
3377
3378 fi
3379 fi
3380 if test -z "$CC"; then
3381 # Extract the first word of "cc", so it can be a program name with args.
3382 set dummy cc; ac_word=$2
3383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3385 if test "${ac_cv_prog_CC+set}" = set; then
3386 echo $ECHO_N "(cached) $ECHO_C" >&6
3387 else
3388 if test -n "$CC"; then
3389 ac_cv_prog_CC="$CC" # Let the user override the test.
3390 else
3391 ac_prog_rejected=no
3392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3393 for as_dir in $PATH
3394 do
3395 IFS=$as_save_IFS
3396 test -z "$as_dir" && as_dir=.
3397 for ac_exec_ext in '' $ac_executable_extensions; do
3398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3399 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3400 ac_prog_rejected=yes
3401 continue
3402 fi
3403 ac_cv_prog_CC="cc"
3404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3405 break 2
3406 fi
3407 done
3408 done
3409 IFS=$as_save_IFS
3410
3411 if test $ac_prog_rejected = yes; then
3412 # We found a bogon in the path, so make sure we never use it.
3413 set dummy $ac_cv_prog_CC
3414 shift
3415 if test $# != 0; then
3416 # We chose a different compiler from the bogus one.
3417 # However, it has the same basename, so the bogon will be chosen
3418 # first if we set CC to just the basename; use the full file name.
3419 shift
3420 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3421 fi
3422 fi
3423 fi
3424 fi
3425 CC=$ac_cv_prog_CC
3426 if test -n "$CC"; then
3427 { echo "$as_me:$LINENO: result: $CC" >&5
3428 echo "${ECHO_T}$CC" >&6; }
3429 else
3430 { echo "$as_me:$LINENO: result: no" >&5
3431 echo "${ECHO_T}no" >&6; }
3432 fi
3433
3434
3435 fi
3436 if test -z "$CC"; then
3437 if test -n "$ac_tool_prefix"; then
3438 for ac_prog in cl.exe
3439 do
3440 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3441 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3444 if test "${ac_cv_prog_CC+set}" = set; then
3445 echo $ECHO_N "(cached) $ECHO_C" >&6
3446 else
3447 if test -n "$CC"; then
3448 ac_cv_prog_CC="$CC" # Let the user override the test.
3449 else
3450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3451 for as_dir in $PATH
3452 do
3453 IFS=$as_save_IFS
3454 test -z "$as_dir" && as_dir=.
3455 for ac_exec_ext in '' $ac_executable_extensions; do
3456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3457 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3459 break 2
3460 fi
3461 done
3462 done
3463 IFS=$as_save_IFS
3464
3465 fi
3466 fi
3467 CC=$ac_cv_prog_CC
3468 if test -n "$CC"; then
3469 { echo "$as_me:$LINENO: result: $CC" >&5
3470 echo "${ECHO_T}$CC" >&6; }
3471 else
3472 { echo "$as_me:$LINENO: result: no" >&5
3473 echo "${ECHO_T}no" >&6; }
3474 fi
3475
3476
3477 test -n "$CC" && break
3478 done
3479 fi
3480 if test -z "$CC"; then
3481 ac_ct_CC=$CC
3482 for ac_prog in cl.exe
3483 do
3484 # Extract the first word of "$ac_prog", so it can be a program name with args.
3485 set dummy $ac_prog; ac_word=$2
3486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3488 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3489 echo $ECHO_N "(cached) $ECHO_C" >&6
3490 else
3491 if test -n "$ac_ct_CC"; then
3492 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3493 else
3494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3495 for as_dir in $PATH
3496 do
3497 IFS=$as_save_IFS
3498 test -z "$as_dir" && as_dir=.
3499 for ac_exec_ext in '' $ac_executable_extensions; do
3500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3501 ac_cv_prog_ac_ct_CC="$ac_prog"
3502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3503 break 2
3504 fi
3505 done
3506 done
3507 IFS=$as_save_IFS
3508
3509 fi
3510 fi
3511 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3512 if test -n "$ac_ct_CC"; then
3513 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3514 echo "${ECHO_T}$ac_ct_CC" >&6; }
3515 else
3516 { echo "$as_me:$LINENO: result: no" >&5
3517 echo "${ECHO_T}no" >&6; }
3518 fi
3519
3520
3521 test -n "$ac_ct_CC" && break
3522 done
3523
3524 if test "x$ac_ct_CC" = x; then
3525 CC=""
3526 else
3527 case $cross_compiling:$ac_tool_warned in
3528 yes:)
3529 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3530 whose name does not start with the host triplet. If you think this
3531 configuration is useful to you, please write to autoconf@gnu.org." >&5
3532 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3533 whose name does not start with the host triplet. If you think this
3534 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3535 ac_tool_warned=yes ;;
3536 esac
3537 CC=$ac_ct_CC
3538 fi
3539 fi
3540
3541 fi
3542
3543
3544 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3545 See \`config.log' for more details." >&5
3546 echo "$as_me: error: no acceptable C compiler found in \$PATH
3547 See \`config.log' for more details." >&2;}
3548 { (exit 1); exit 1; }; }
3549
3550 # Provide some information about the compiler.
3551 echo "$as_me:$LINENO: checking for C compiler version" >&5
3552 ac_compiler=`set X $ac_compile; echo $2`
3553 { (ac_try="$ac_compiler --version >&5"
3554 case "(($ac_try" in
3555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556 *) ac_try_echo=$ac_try;;
3557 esac
3558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3559 (eval "$ac_compiler --version >&5") 2>&5
3560 ac_status=$?
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); }
3563 { (ac_try="$ac_compiler -v >&5"
3564 case "(($ac_try" in
3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3567 esac
3568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3569 (eval "$ac_compiler -v >&5") 2>&5
3570 ac_status=$?
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); }
3573 { (ac_try="$ac_compiler -V >&5"
3574 case "(($ac_try" in
3575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576 *) ac_try_echo=$ac_try;;
3577 esac
3578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3579 (eval "$ac_compiler -V >&5") 2>&5
3580 ac_status=$?
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); }
3583
3584 cat >conftest.$ac_ext <<_ACEOF
3585 /* confdefs.h. */
3586 _ACEOF
3587 cat confdefs.h >>conftest.$ac_ext
3588 cat >>conftest.$ac_ext <<_ACEOF
3589 /* end confdefs.h. */
3590
3591 int
3592 main ()
3593 {
3594
3595 ;
3596 return 0;
3597 }
3598 _ACEOF
3599 ac_clean_files_save=$ac_clean_files
3600 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3601 # Try to create an executable without -o first, disregard a.out.
3602 # It will help us diagnose broken compilers, and finding out an intuition
3603 # of exeext.
3604 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3605 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3606 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3607 #
3608 # List of possible output files, starting from the most likely.
3609 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3610 # only as a last resort. b.out is created by i960 compilers.
3611 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3612 #
3613 # The IRIX 6 linker writes into existing files which may not be
3614 # executable, retaining their permissions. Remove them first so a
3615 # subsequent execution test works.
3616 ac_rmfiles=
3617 for ac_file in $ac_files
3618 do
3619 case $ac_file in
3620 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3621 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3622 esac
3623 done
3624 rm -f $ac_rmfiles
3625
3626 if { (ac_try="$ac_link_default"
3627 case "(($ac_try" in
3628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629 *) ac_try_echo=$ac_try;;
3630 esac
3631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3632 (eval "$ac_link_default") 2>&5
3633 ac_status=$?
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); }; then
3636 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3637 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3638 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3639 # so that the user can short-circuit this test for compilers unknown to
3640 # Autoconf.
3641 for ac_file in $ac_files ''
3642 do
3643 test -f "$ac_file" || continue
3644 case $ac_file in
3645 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3646 ;;
3647 [ab].out )
3648 # We found the default executable, but exeext='' is most
3649 # certainly right.
3650 break;;
3651 *.* )
3652 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3653 then :; else
3654 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3655 fi
3656 # We set ac_cv_exeext here because the later test for it is not
3657 # safe: cross compilers may not add the suffix if given an `-o'
3658 # argument, so we may need to know it at that point already.
3659 # Even if this section looks crufty: it has the advantage of
3660 # actually working.
3661 break;;
3662 * )
3663 break;;
3664 esac
3665 done
3666 test "$ac_cv_exeext" = no && ac_cv_exeext=
3667
3668 else
3669 ac_file=''
3670 fi
3671
3672 { echo "$as_me:$LINENO: result: $ac_file" >&5
3673 echo "${ECHO_T}$ac_file" >&6; }
3674 if test -z "$ac_file"; then
3675 echo "$as_me: failed program was:" >&5
3676 sed 's/^/| /' conftest.$ac_ext >&5
3677
3678 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3679 See \`config.log' for more details." >&5
3680 echo "$as_me: error: C compiler cannot create executables
3681 See \`config.log' for more details." >&2;}
3682 { (exit 77); exit 77; }; }
3683 fi
3684
3685 ac_exeext=$ac_cv_exeext
3686
3687 # Check that the compiler produces executables we can run. If not, either
3688 # the compiler is broken, or we cross compile.
3689 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3690 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3691 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3692 # If not cross compiling, check that we can run a simple program.
3693 if test "$cross_compiling" != yes; then
3694 if { ac_try='./$ac_file'
3695 { (case "(($ac_try" in
3696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697 *) ac_try_echo=$ac_try;;
3698 esac
3699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3700 (eval "$ac_try") 2>&5
3701 ac_status=$?
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); }; }; then
3704 cross_compiling=no
3705 else
3706 if test "$cross_compiling" = maybe; then
3707 cross_compiling=yes
3708 else
3709 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3710 If you meant to cross compile, use \`--host'.
3711 See \`config.log' for more details." >&5
3712 echo "$as_me: error: cannot run C compiled programs.
3713 If you meant to cross compile, use \`--host'.
3714 See \`config.log' for more details." >&2;}
3715 { (exit 1); exit 1; }; }
3716 fi
3717 fi
3718 fi
3719 { echo "$as_me:$LINENO: result: yes" >&5
3720 echo "${ECHO_T}yes" >&6; }
3721
3722 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3723 ac_clean_files=$ac_clean_files_save
3724 # Check that the compiler produces executables we can run. If not, either
3725 # the compiler is broken, or we cross compile.
3726 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3727 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3728 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3729 echo "${ECHO_T}$cross_compiling" >&6; }
3730
3731 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3732 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3733 if { (ac_try="$ac_link"
3734 case "(($ac_try" in
3735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3736 *) ac_try_echo=$ac_try;;
3737 esac
3738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3739 (eval "$ac_link") 2>&5
3740 ac_status=$?
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); }; then
3743 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3744 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3745 # work properly (i.e., refer to `conftest.exe'), while it won't with
3746 # `rm'.
3747 for ac_file in conftest.exe conftest conftest.*; do
3748 test -f "$ac_file" || continue
3749 case $ac_file in
3750 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3751 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3752 break;;
3753 * ) break;;
3754 esac
3755 done
3756 else
3757 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3758 See \`config.log' for more details." >&5
3759 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3760 See \`config.log' for more details." >&2;}
3761 { (exit 1); exit 1; }; }
3762 fi
3763
3764 rm -f conftest$ac_cv_exeext
3765 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3766 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3767
3768 rm -f conftest.$ac_ext
3769 EXEEXT=$ac_cv_exeext
3770 ac_exeext=$EXEEXT
3771 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3772 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3773 if test "${ac_cv_objext+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3775 else
3776 cat >conftest.$ac_ext <<_ACEOF
3777 /* confdefs.h. */
3778 _ACEOF
3779 cat confdefs.h >>conftest.$ac_ext
3780 cat >>conftest.$ac_ext <<_ACEOF
3781 /* end confdefs.h. */
3782
3783 int
3784 main ()
3785 {
3786
3787 ;
3788 return 0;
3789 }
3790 _ACEOF
3791 rm -f conftest.o conftest.obj
3792 if { (ac_try="$ac_compile"
3793 case "(($ac_try" in
3794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795 *) ac_try_echo=$ac_try;;
3796 esac
3797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3798 (eval "$ac_compile") 2>&5
3799 ac_status=$?
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); }; then
3802 for ac_file in conftest.o conftest.obj conftest.*; do
3803 test -f "$ac_file" || continue;
3804 case $ac_file in
3805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3806 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3807 break;;
3808 esac
3809 done
3810 else
3811 echo "$as_me: failed program was:" >&5
3812 sed 's/^/| /' conftest.$ac_ext >&5
3813
3814 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3815 See \`config.log' for more details." >&5
3816 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3817 See \`config.log' for more details." >&2;}
3818 { (exit 1); exit 1; }; }
3819 fi
3820
3821 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3822 fi
3823 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3824 echo "${ECHO_T}$ac_cv_objext" >&6; }
3825 OBJEXT=$ac_cv_objext
3826 ac_objext=$OBJEXT
3827 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3828 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3829 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3830 echo $ECHO_N "(cached) $ECHO_C" >&6
3831 else
3832 cat >conftest.$ac_ext <<_ACEOF
3833 /* confdefs.h. */
3834 _ACEOF
3835 cat confdefs.h >>conftest.$ac_ext
3836 cat >>conftest.$ac_ext <<_ACEOF
3837 /* end confdefs.h. */
3838
3839 int
3840 main ()
3841 {
3842 #ifndef __GNUC__
3843 choke me
3844 #endif
3845
3846 ;
3847 return 0;
3848 }
3849 _ACEOF
3850 rm -f conftest.$ac_objext
3851 if { (ac_try="$ac_compile"
3852 case "(($ac_try" in
3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3855 esac
3856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3857 (eval "$ac_compile") 2>conftest.er1
3858 ac_status=$?
3859 grep -v '^ *+' conftest.er1 >conftest.err
3860 rm -f conftest.er1
3861 cat conftest.err >&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } && {
3864 test -z "$ac_c_werror_flag" ||
3865 test ! -s conftest.err
3866 } && test -s conftest.$ac_objext; then
3867 ac_compiler_gnu=yes
3868 else
3869 echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3871
3872 ac_compiler_gnu=no
3873 fi
3874
3875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3876 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3877
3878 fi
3879 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3880 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3881 GCC=`test $ac_compiler_gnu = yes && echo yes`
3882 ac_test_CFLAGS=${CFLAGS+set}
3883 ac_save_CFLAGS=$CFLAGS
3884 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3885 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3886 if test "${ac_cv_prog_cc_g+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 else
3889 ac_save_c_werror_flag=$ac_c_werror_flag
3890 ac_c_werror_flag=yes
3891 ac_cv_prog_cc_g=no
3892 CFLAGS="-g"
3893 cat >conftest.$ac_ext <<_ACEOF
3894 /* confdefs.h. */
3895 _ACEOF
3896 cat confdefs.h >>conftest.$ac_ext
3897 cat >>conftest.$ac_ext <<_ACEOF
3898 /* end confdefs.h. */
3899
3900 int
3901 main ()
3902 {
3903
3904 ;
3905 return 0;
3906 }
3907 _ACEOF
3908 rm -f conftest.$ac_objext
3909 if { (ac_try="$ac_compile"
3910 case "(($ac_try" in
3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912 *) ac_try_echo=$ac_try;;
3913 esac
3914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3915 (eval "$ac_compile") 2>conftest.er1
3916 ac_status=$?
3917 grep -v '^ *+' conftest.er1 >conftest.err
3918 rm -f conftest.er1
3919 cat conftest.err >&5
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); } && {
3922 test -z "$ac_c_werror_flag" ||
3923 test ! -s conftest.err
3924 } && test -s conftest.$ac_objext; then
3925 ac_cv_prog_cc_g=yes
3926 else
3927 echo "$as_me: failed program was:" >&5
3928 sed 's/^/| /' conftest.$ac_ext >&5
3929
3930 CFLAGS=""
3931 cat >conftest.$ac_ext <<_ACEOF
3932 /* confdefs.h. */
3933 _ACEOF
3934 cat confdefs.h >>conftest.$ac_ext
3935 cat >>conftest.$ac_ext <<_ACEOF
3936 /* end confdefs.h. */
3937
3938 int
3939 main ()
3940 {
3941
3942 ;
3943 return 0;
3944 }
3945 _ACEOF
3946 rm -f conftest.$ac_objext
3947 if { (ac_try="$ac_compile"
3948 case "(($ac_try" in
3949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950 *) ac_try_echo=$ac_try;;
3951 esac
3952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3953 (eval "$ac_compile") 2>conftest.er1
3954 ac_status=$?
3955 grep -v '^ *+' conftest.er1 >conftest.err
3956 rm -f conftest.er1
3957 cat conftest.err >&5
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); } && {
3960 test -z "$ac_c_werror_flag" ||
3961 test ! -s conftest.err
3962 } && test -s conftest.$ac_objext; then
3963 :
3964 else
3965 echo "$as_me: failed program was:" >&5
3966 sed 's/^/| /' conftest.$ac_ext >&5
3967
3968 ac_c_werror_flag=$ac_save_c_werror_flag
3969 CFLAGS="-g"
3970 cat >conftest.$ac_ext <<_ACEOF
3971 /* confdefs.h. */
3972 _ACEOF
3973 cat confdefs.h >>conftest.$ac_ext
3974 cat >>conftest.$ac_ext <<_ACEOF
3975 /* end confdefs.h. */
3976
3977 int
3978 main ()
3979 {
3980
3981 ;
3982 return 0;
3983 }
3984 _ACEOF
3985 rm -f conftest.$ac_objext
3986 if { (ac_try="$ac_compile"
3987 case "(($ac_try" in
3988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3989 *) ac_try_echo=$ac_try;;
3990 esac
3991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3992 (eval "$ac_compile") 2>conftest.er1
3993 ac_status=$?
3994 grep -v '^ *+' conftest.er1 >conftest.err
3995 rm -f conftest.er1
3996 cat conftest.err >&5
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); } && {
3999 test -z "$ac_c_werror_flag" ||
4000 test ! -s conftest.err
4001 } && test -s conftest.$ac_objext; then
4002 ac_cv_prog_cc_g=yes
4003 else
4004 echo "$as_me: failed program was:" >&5
4005 sed 's/^/| /' conftest.$ac_ext >&5
4006
4007
4008 fi
4009
4010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4011 fi
4012
4013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4014 fi
4015
4016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4017 ac_c_werror_flag=$ac_save_c_werror_flag
4018 fi
4019 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4020 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4021 if test "$ac_test_CFLAGS" = set; then
4022 CFLAGS=$ac_save_CFLAGS
4023 elif test $ac_cv_prog_cc_g = yes; then
4024 if test "$GCC" = yes; then
4025 CFLAGS="-g -O2"
4026 else
4027 CFLAGS="-g"
4028 fi
4029 else
4030 if test "$GCC" = yes; then
4031 CFLAGS="-O2"
4032 else
4033 CFLAGS=
4034 fi
4035 fi
4036 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4037 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4038 if test "${ac_cv_prog_cc_c89+set}" = set; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
4040 else
4041 ac_cv_prog_cc_c89=no
4042 ac_save_CC=$CC
4043 cat >conftest.$ac_ext <<_ACEOF
4044 /* confdefs.h. */
4045 _ACEOF
4046 cat confdefs.h >>conftest.$ac_ext
4047 cat >>conftest.$ac_ext <<_ACEOF
4048 /* end confdefs.h. */
4049 #include <stdarg.h>
4050 #include <stdio.h>
4051 #include <sys/types.h>
4052 #include <sys/stat.h>
4053 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4054 struct buf { int x; };
4055 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4056 static char *e (p, i)
4057 char **p;
4058 int i;
4059 {
4060 return p[i];
4061 }
4062 static char *f (char * (*g) (char **, int), char **p, ...)
4063 {
4064 char *s;
4065 va_list v;
4066 va_start (v,p);
4067 s = g (p, va_arg (v,int));
4068 va_end (v);
4069 return s;
4070 }
4071
4072 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4073 function prototypes and stuff, but not '\xHH' hex character constants.
4074 These don't provoke an error unfortunately, instead are silently treated
4075 as 'x'. The following induces an error, until -std is added to get
4076 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4077 array size at least. It's necessary to write '\x00'==0 to get something
4078 that's true only with -std. */
4079 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4080
4081 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4082 inside strings and character constants. */
4083 #define FOO(x) 'x'
4084 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4085
4086 int test (int i, double x);
4087 struct s1 {int (*f) (int a);};
4088 struct s2 {int (*f) (double a);};
4089 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4090 int argc;
4091 char **argv;
4092 int
4093 main ()
4094 {
4095 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4096 ;
4097 return 0;
4098 }
4099 _ACEOF
4100 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4101 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4102 do
4103 CC="$ac_save_CC $ac_arg"
4104 rm -f conftest.$ac_objext
4105 if { (ac_try="$ac_compile"
4106 case "(($ac_try" in
4107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4108 *) ac_try_echo=$ac_try;;
4109 esac
4110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4111 (eval "$ac_compile") 2>conftest.er1
4112 ac_status=$?
4113 grep -v '^ *+' conftest.er1 >conftest.err
4114 rm -f conftest.er1
4115 cat conftest.err >&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); } && {
4118 test -z "$ac_c_werror_flag" ||
4119 test ! -s conftest.err
4120 } && test -s conftest.$ac_objext; then
4121 ac_cv_prog_cc_c89=$ac_arg
4122 else
4123 echo "$as_me: failed program was:" >&5
4124 sed 's/^/| /' conftest.$ac_ext >&5
4125
4126
4127 fi
4128
4129 rm -f core conftest.err conftest.$ac_objext
4130 test "x$ac_cv_prog_cc_c89" != "xno" && break
4131 done
4132 rm -f conftest.$ac_ext
4133 CC=$ac_save_CC
4134
4135 fi
4136 # AC_CACHE_VAL
4137 case "x$ac_cv_prog_cc_c89" in
4138 x)
4139 { echo "$as_me:$LINENO: result: none needed" >&5
4140 echo "${ECHO_T}none needed" >&6; } ;;
4141 xno)
4142 { echo "$as_me:$LINENO: result: unsupported" >&5
4143 echo "${ECHO_T}unsupported" >&6; } ;;
4144 *)
4145 CC="$CC $ac_cv_prog_cc_c89"
4146 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4147 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4148 esac
4149
4150
4151 ac_ext=c
4152 ac_cpp='$CPP $CPPFLAGS'
4153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4156
4157
4158 # On Suns, sometimes $CPP names a directory.
4159 if test -n "$CPP" && test -d "$CPP"; then
4160 CPP=
4161 fi
4162
4163 #### Some systems specify a CPP to use unless we are using GCC.
4164 #### Now that we know whether we are using GCC, we can decide whether
4165 #### to use that one.
4166 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4167 then
4168 CPP="$NON_GNU_CPP"
4169 fi
4170
4171 #### Some systems specify a CC to use unless we are using GCC.
4172 #### Now that we know whether we are using GCC, we can decide whether
4173 #### to use that one.
4174 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4175 test x$cc_specified != xyes
4176 then
4177 CC="$NON_GNU_CC"
4178 fi
4179
4180 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4181 then
4182 CC="$CC $GCC_TEST_OPTIONS"
4183 fi
4184
4185 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4186 then
4187 CC="$CC $NON_GCC_TEST_OPTIONS"
4188 fi
4189
4190
4191 ac_ext=c
4192 ac_cpp='$CPP $CPPFLAGS'
4193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4196 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4197 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4198 # On Suns, sometimes $CPP names a directory.
4199 if test -n "$CPP" && test -d "$CPP"; then
4200 CPP=
4201 fi
4202 if test -z "$CPP"; then
4203 if test "${ac_cv_prog_CPP+set}" = set; then
4204 echo $ECHO_N "(cached) $ECHO_C" >&6
4205 else
4206 # Double quotes because CPP needs to be expanded
4207 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4208 do
4209 ac_preproc_ok=false
4210 for ac_c_preproc_warn_flag in '' yes
4211 do
4212 # Use a header file that comes with gcc, so configuring glibc
4213 # with a fresh cross-compiler works.
4214 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4215 # <limits.h> exists even on freestanding compilers.
4216 # On the NeXT, cc -E runs the code through the compiler's parser,
4217 # not just through cpp. "Syntax error" is here to catch this case.
4218 cat >conftest.$ac_ext <<_ACEOF
4219 /* confdefs.h. */
4220 _ACEOF
4221 cat confdefs.h >>conftest.$ac_ext
4222 cat >>conftest.$ac_ext <<_ACEOF
4223 /* end confdefs.h. */
4224 #ifdef __STDC__
4225 # include <limits.h>
4226 #else
4227 # include <assert.h>
4228 #endif
4229 Syntax error
4230 _ACEOF
4231 if { (ac_try="$ac_cpp conftest.$ac_ext"
4232 case "(($ac_try" in
4233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4234 *) ac_try_echo=$ac_try;;
4235 esac
4236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4237 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4238 ac_status=$?
4239 grep -v '^ *+' conftest.er1 >conftest.err
4240 rm -f conftest.er1
4241 cat conftest.err >&5
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); } >/dev/null && {
4244 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4245 test ! -s conftest.err
4246 }; then
4247 :
4248 else
4249 echo "$as_me: failed program was:" >&5
4250 sed 's/^/| /' conftest.$ac_ext >&5
4251
4252 # Broken: fails on valid input.
4253 continue
4254 fi
4255
4256 rm -f conftest.err conftest.$ac_ext
4257
4258 # OK, works on sane cases. Now check whether nonexistent headers
4259 # can be detected and how.
4260 cat >conftest.$ac_ext <<_ACEOF
4261 /* confdefs.h. */
4262 _ACEOF
4263 cat confdefs.h >>conftest.$ac_ext
4264 cat >>conftest.$ac_ext <<_ACEOF
4265 /* end confdefs.h. */
4266 #include <ac_nonexistent.h>
4267 _ACEOF
4268 if { (ac_try="$ac_cpp conftest.$ac_ext"
4269 case "(($ac_try" in
4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4272 esac
4273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4275 ac_status=$?
4276 grep -v '^ *+' conftest.er1 >conftest.err
4277 rm -f conftest.er1
4278 cat conftest.err >&5
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); } >/dev/null && {
4281 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4282 test ! -s conftest.err
4283 }; then
4284 # Broken: success on invalid input.
4285 continue
4286 else
4287 echo "$as_me: failed program was:" >&5
4288 sed 's/^/| /' conftest.$ac_ext >&5
4289
4290 # Passes both tests.
4291 ac_preproc_ok=:
4292 break
4293 fi
4294
4295 rm -f conftest.err conftest.$ac_ext
4296
4297 done
4298 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4299 rm -f conftest.err conftest.$ac_ext
4300 if $ac_preproc_ok; then
4301 break
4302 fi
4303
4304 done
4305 ac_cv_prog_CPP=$CPP
4306
4307 fi
4308 CPP=$ac_cv_prog_CPP
4309 else
4310 ac_cv_prog_CPP=$CPP
4311 fi
4312 { echo "$as_me:$LINENO: result: $CPP" >&5
4313 echo "${ECHO_T}$CPP" >&6; }
4314 ac_preproc_ok=false
4315 for ac_c_preproc_warn_flag in '' yes
4316 do
4317 # Use a header file that comes with gcc, so configuring glibc
4318 # with a fresh cross-compiler works.
4319 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4320 # <limits.h> exists even on freestanding compilers.
4321 # On the NeXT, cc -E runs the code through the compiler's parser,
4322 # not just through cpp. "Syntax error" is here to catch this case.
4323 cat >conftest.$ac_ext <<_ACEOF
4324 /* confdefs.h. */
4325 _ACEOF
4326 cat confdefs.h >>conftest.$ac_ext
4327 cat >>conftest.$ac_ext <<_ACEOF
4328 /* end confdefs.h. */
4329 #ifdef __STDC__
4330 # include <limits.h>
4331 #else
4332 # include <assert.h>
4333 #endif
4334 Syntax error
4335 _ACEOF
4336 if { (ac_try="$ac_cpp conftest.$ac_ext"
4337 case "(($ac_try" in
4338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4339 *) ac_try_echo=$ac_try;;
4340 esac
4341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4342 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4343 ac_status=$?
4344 grep -v '^ *+' conftest.er1 >conftest.err
4345 rm -f conftest.er1
4346 cat conftest.err >&5
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); } >/dev/null && {
4349 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4350 test ! -s conftest.err
4351 }; then
4352 :
4353 else
4354 echo "$as_me: failed program was:" >&5
4355 sed 's/^/| /' conftest.$ac_ext >&5
4356
4357 # Broken: fails on valid input.
4358 continue
4359 fi
4360
4361 rm -f conftest.err conftest.$ac_ext
4362
4363 # OK, works on sane cases. Now check whether nonexistent headers
4364 # can be detected and how.
4365 cat >conftest.$ac_ext <<_ACEOF
4366 /* confdefs.h. */
4367 _ACEOF
4368 cat confdefs.h >>conftest.$ac_ext
4369 cat >>conftest.$ac_ext <<_ACEOF
4370 /* end confdefs.h. */
4371 #include <ac_nonexistent.h>
4372 _ACEOF
4373 if { (ac_try="$ac_cpp conftest.$ac_ext"
4374 case "(($ac_try" in
4375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376 *) ac_try_echo=$ac_try;;
4377 esac
4378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4379 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4380 ac_status=$?
4381 grep -v '^ *+' conftest.er1 >conftest.err
4382 rm -f conftest.er1
4383 cat conftest.err >&5
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); } >/dev/null && {
4386 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4387 test ! -s conftest.err
4388 }; then
4389 # Broken: success on invalid input.
4390 continue
4391 else
4392 echo "$as_me: failed program was:" >&5
4393 sed 's/^/| /' conftest.$ac_ext >&5
4394
4395 # Passes both tests.
4396 ac_preproc_ok=:
4397 break
4398 fi
4399
4400 rm -f conftest.err conftest.$ac_ext
4401
4402 done
4403 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4404 rm -f conftest.err conftest.$ac_ext
4405 if $ac_preproc_ok; then
4406 :
4407 else
4408 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4409 See \`config.log' for more details." >&5
4410 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4411 See \`config.log' for more details." >&2;}
4412 { (exit 1); exit 1; }; }
4413 fi
4414
4415 ac_ext=c
4416 ac_cpp='$CPP $CPPFLAGS'
4417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4420
4421
4422 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4423 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4424 if test "${ac_cv_path_GREP+set}" = set; then
4425 echo $ECHO_N "(cached) $ECHO_C" >&6
4426 else
4427 # Extract the first word of "grep ggrep" to use in msg output
4428 if test -z "$GREP"; then
4429 set dummy grep ggrep; ac_prog_name=$2
4430 if test "${ac_cv_path_GREP+set}" = set; then
4431 echo $ECHO_N "(cached) $ECHO_C" >&6
4432 else
4433 ac_path_GREP_found=false
4434 # Loop through the user's path and test for each of PROGNAME-LIST
4435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4437 do
4438 IFS=$as_save_IFS
4439 test -z "$as_dir" && as_dir=.
4440 for ac_prog in grep ggrep; do
4441 for ac_exec_ext in '' $ac_executable_extensions; do
4442 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4443 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4444 # Check for GNU ac_path_GREP and select it if it is found.
4445 # Check for GNU $ac_path_GREP
4446 case `"$ac_path_GREP" --version 2>&1` in
4447 *GNU*)
4448 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4449 *)
4450 ac_count=0
4451 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4452 while :
4453 do
4454 cat "conftest.in" "conftest.in" >"conftest.tmp"
4455 mv "conftest.tmp" "conftest.in"
4456 cp "conftest.in" "conftest.nl"
4457 echo 'GREP' >> "conftest.nl"
4458 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4459 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4460 ac_count=`expr $ac_count + 1`
4461 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4462 # Best one so far, save it but keep looking for a better one
4463 ac_cv_path_GREP="$ac_path_GREP"
4464 ac_path_GREP_max=$ac_count
4465 fi
4466 # 10*(2^10) chars as input seems more than enough
4467 test $ac_count -gt 10 && break
4468 done
4469 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4470 esac
4471
4472
4473 $ac_path_GREP_found && break 3
4474 done
4475 done
4476
4477 done
4478 IFS=$as_save_IFS
4479
4480
4481 fi
4482
4483 GREP="$ac_cv_path_GREP"
4484 if test -z "$GREP"; then
4485 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4486 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4487 { (exit 1); exit 1; }; }
4488 fi
4489
4490 else
4491 ac_cv_path_GREP=$GREP
4492 fi
4493
4494
4495 fi
4496 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4497 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4498 GREP="$ac_cv_path_GREP"
4499
4500
4501 { echo "$as_me:$LINENO: checking for egrep" >&5
4502 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4503 if test "${ac_cv_path_EGREP+set}" = set; then
4504 echo $ECHO_N "(cached) $ECHO_C" >&6
4505 else
4506 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4507 then ac_cv_path_EGREP="$GREP -E"
4508 else
4509 # Extract the first word of "egrep" to use in msg output
4510 if test -z "$EGREP"; then
4511 set dummy egrep; ac_prog_name=$2
4512 if test "${ac_cv_path_EGREP+set}" = set; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
4514 else
4515 ac_path_EGREP_found=false
4516 # Loop through the user's path and test for each of PROGNAME-LIST
4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4519 do
4520 IFS=$as_save_IFS
4521 test -z "$as_dir" && as_dir=.
4522 for ac_prog in egrep; do
4523 for ac_exec_ext in '' $ac_executable_extensions; do
4524 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4525 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4526 # Check for GNU ac_path_EGREP and select it if it is found.
4527 # Check for GNU $ac_path_EGREP
4528 case `"$ac_path_EGREP" --version 2>&1` in
4529 *GNU*)
4530 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4531 *)
4532 ac_count=0
4533 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4534 while :
4535 do
4536 cat "conftest.in" "conftest.in" >"conftest.tmp"
4537 mv "conftest.tmp" "conftest.in"
4538 cp "conftest.in" "conftest.nl"
4539 echo 'EGREP' >> "conftest.nl"
4540 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4541 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4542 ac_count=`expr $ac_count + 1`
4543 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4544 # Best one so far, save it but keep looking for a better one
4545 ac_cv_path_EGREP="$ac_path_EGREP"
4546 ac_path_EGREP_max=$ac_count
4547 fi
4548 # 10*(2^10) chars as input seems more than enough
4549 test $ac_count -gt 10 && break
4550 done
4551 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4552 esac
4553
4554
4555 $ac_path_EGREP_found && break 3
4556 done
4557 done
4558
4559 done
4560 IFS=$as_save_IFS
4561
4562
4563 fi
4564
4565 EGREP="$ac_cv_path_EGREP"
4566 if test -z "$EGREP"; then
4567 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4568 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4569 { (exit 1); exit 1; }; }
4570 fi
4571
4572 else
4573 ac_cv_path_EGREP=$EGREP
4574 fi
4575
4576
4577 fi
4578 fi
4579 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4580 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4581 EGREP="$ac_cv_path_EGREP"
4582
4583
4584
4585 { echo "$as_me:$LINENO: checking for AIX" >&5
4586 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4587 cat >conftest.$ac_ext <<_ACEOF
4588 /* confdefs.h. */
4589 _ACEOF
4590 cat confdefs.h >>conftest.$ac_ext
4591 cat >>conftest.$ac_ext <<_ACEOF
4592 /* end confdefs.h. */
4593 #ifdef _AIX
4594 yes
4595 #endif
4596
4597 _ACEOF
4598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4599 $EGREP "yes" >/dev/null 2>&1; then
4600 { echo "$as_me:$LINENO: result: yes" >&5
4601 echo "${ECHO_T}yes" >&6; }
4602 cat >>confdefs.h <<\_ACEOF
4603 #define _ALL_SOURCE 1
4604 _ACEOF
4605
4606 else
4607 { echo "$as_me:$LINENO: result: no" >&5
4608 echo "${ECHO_T}no" >&6; }
4609 fi
4610 rm -f conftest*
4611
4612
4613
4614 cat >>confdefs.h <<\_ACEOF
4615 #define _GNU_SOURCE 1
4616 _ACEOF
4617
4618
4619
4620 ### Use -Wno-pointer-sign if the compiler supports it
4621 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4622 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4623 SAVE_CFLAGS="$CFLAGS"
4624 CFLAGS="$CFLAGS -Wno-pointer-sign"
4625 cat >conftest.$ac_ext <<_ACEOF
4626 /* confdefs.h. */
4627 _ACEOF
4628 cat confdefs.h >>conftest.$ac_ext
4629 cat >>conftest.$ac_ext <<_ACEOF
4630 /* end confdefs.h. */
4631
4632 int
4633 main ()
4634 {
4635
4636 ;
4637 return 0;
4638 }
4639 _ACEOF
4640 rm -f conftest.$ac_objext
4641 if { (ac_try="$ac_compile"
4642 case "(($ac_try" in
4643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4644 *) ac_try_echo=$ac_try;;
4645 esac
4646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4647 (eval "$ac_compile") 2>conftest.er1
4648 ac_status=$?
4649 grep -v '^ *+' conftest.er1 >conftest.err
4650 rm -f conftest.er1
4651 cat conftest.err >&5
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); } && {
4654 test -z "$ac_c_werror_flag" ||
4655 test ! -s conftest.err
4656 } && test -s conftest.$ac_objext; then
4657 has_option=yes
4658 else
4659 echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.$ac_ext >&5
4661
4662 has_option=no
4663 fi
4664
4665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4666 if test $has_option = yes; then
4667 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4668 fi
4669 { echo "$as_me:$LINENO: result: $has_option" >&5
4670 echo "${ECHO_T}$has_option" >&6; }
4671 CFLAGS="$SAVE_CFLAGS"
4672 unset has_option
4673 unset SAVE_CFLAGS
4674
4675 #### Some other nice autoconf tests.
4676
4677 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4678 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4679 LN_S=$as_ln_s
4680 if test "$LN_S" = "ln -s"; then
4681 { echo "$as_me:$LINENO: result: yes" >&5
4682 echo "${ECHO_T}yes" >&6; }
4683 else
4684 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4685 echo "${ECHO_T}no, using $LN_S" >&6; }
4686 fi
4687
4688 ac_ext=c
4689 ac_cpp='$CPP $CPPFLAGS'
4690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4693 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4694 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4695 # On Suns, sometimes $CPP names a directory.
4696 if test -n "$CPP" && test -d "$CPP"; then
4697 CPP=
4698 fi
4699 if test -z "$CPP"; then
4700 if test "${ac_cv_prog_CPP+set}" = set; then
4701 echo $ECHO_N "(cached) $ECHO_C" >&6
4702 else
4703 # Double quotes because CPP needs to be expanded
4704 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4705 do
4706 ac_preproc_ok=false
4707 for ac_c_preproc_warn_flag in '' yes
4708 do
4709 # Use a header file that comes with gcc, so configuring glibc
4710 # with a fresh cross-compiler works.
4711 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4712 # <limits.h> exists even on freestanding compilers.
4713 # On the NeXT, cc -E runs the code through the compiler's parser,
4714 # not just through cpp. "Syntax error" is here to catch this case.
4715 cat >conftest.$ac_ext <<_ACEOF
4716 /* confdefs.h. */
4717 _ACEOF
4718 cat confdefs.h >>conftest.$ac_ext
4719 cat >>conftest.$ac_ext <<_ACEOF
4720 /* end confdefs.h. */
4721 #ifdef __STDC__
4722 # include <limits.h>
4723 #else
4724 # include <assert.h>
4725 #endif
4726 Syntax error
4727 _ACEOF
4728 if { (ac_try="$ac_cpp conftest.$ac_ext"
4729 case "(($ac_try" in
4730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4731 *) ac_try_echo=$ac_try;;
4732 esac
4733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4735 ac_status=$?
4736 grep -v '^ *+' conftest.er1 >conftest.err
4737 rm -f conftest.er1
4738 cat conftest.err >&5
4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); } >/dev/null && {
4741 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4742 test ! -s conftest.err
4743 }; then
4744 :
4745 else
4746 echo "$as_me: failed program was:" >&5
4747 sed 's/^/| /' conftest.$ac_ext >&5
4748
4749 # Broken: fails on valid input.
4750 continue
4751 fi
4752
4753 rm -f conftest.err conftest.$ac_ext
4754
4755 # OK, works on sane cases. Now check whether nonexistent headers
4756 # can be detected and how.
4757 cat >conftest.$ac_ext <<_ACEOF
4758 /* confdefs.h. */
4759 _ACEOF
4760 cat confdefs.h >>conftest.$ac_ext
4761 cat >>conftest.$ac_ext <<_ACEOF
4762 /* end confdefs.h. */
4763 #include <ac_nonexistent.h>
4764 _ACEOF
4765 if { (ac_try="$ac_cpp conftest.$ac_ext"
4766 case "(($ac_try" in
4767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4768 *) ac_try_echo=$ac_try;;
4769 esac
4770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4772 ac_status=$?
4773 grep -v '^ *+' conftest.er1 >conftest.err
4774 rm -f conftest.er1
4775 cat conftest.err >&5
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); } >/dev/null && {
4778 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4779 test ! -s conftest.err
4780 }; then
4781 # Broken: success on invalid input.
4782 continue
4783 else
4784 echo "$as_me: failed program was:" >&5
4785 sed 's/^/| /' conftest.$ac_ext >&5
4786
4787 # Passes both tests.
4788 ac_preproc_ok=:
4789 break
4790 fi
4791
4792 rm -f conftest.err conftest.$ac_ext
4793
4794 done
4795 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4796 rm -f conftest.err conftest.$ac_ext
4797 if $ac_preproc_ok; then
4798 break
4799 fi
4800
4801 done
4802 ac_cv_prog_CPP=$CPP
4803
4804 fi
4805 CPP=$ac_cv_prog_CPP
4806 else
4807 ac_cv_prog_CPP=$CPP
4808 fi
4809 { echo "$as_me:$LINENO: result: $CPP" >&5
4810 echo "${ECHO_T}$CPP" >&6; }
4811 ac_preproc_ok=false
4812 for ac_c_preproc_warn_flag in '' yes
4813 do
4814 # Use a header file that comes with gcc, so configuring glibc
4815 # with a fresh cross-compiler works.
4816 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4817 # <limits.h> exists even on freestanding compilers.
4818 # On the NeXT, cc -E runs the code through the compiler's parser,
4819 # not just through cpp. "Syntax error" is here to catch this case.
4820 cat >conftest.$ac_ext <<_ACEOF
4821 /* confdefs.h. */
4822 _ACEOF
4823 cat confdefs.h >>conftest.$ac_ext
4824 cat >>conftest.$ac_ext <<_ACEOF
4825 /* end confdefs.h. */
4826 #ifdef __STDC__
4827 # include <limits.h>
4828 #else
4829 # include <assert.h>
4830 #endif
4831 Syntax error
4832 _ACEOF
4833 if { (ac_try="$ac_cpp conftest.$ac_ext"
4834 case "(($ac_try" in
4835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4836 *) ac_try_echo=$ac_try;;
4837 esac
4838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4840 ac_status=$?
4841 grep -v '^ *+' conftest.er1 >conftest.err
4842 rm -f conftest.er1
4843 cat conftest.err >&5
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); } >/dev/null && {
4846 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4847 test ! -s conftest.err
4848 }; then
4849 :
4850 else
4851 echo "$as_me: failed program was:" >&5
4852 sed 's/^/| /' conftest.$ac_ext >&5
4853
4854 # Broken: fails on valid input.
4855 continue
4856 fi
4857
4858 rm -f conftest.err conftest.$ac_ext
4859
4860 # OK, works on sane cases. Now check whether nonexistent headers
4861 # can be detected and how.
4862 cat >conftest.$ac_ext <<_ACEOF
4863 /* confdefs.h. */
4864 _ACEOF
4865 cat confdefs.h >>conftest.$ac_ext
4866 cat >>conftest.$ac_ext <<_ACEOF
4867 /* end confdefs.h. */
4868 #include <ac_nonexistent.h>
4869 _ACEOF
4870 if { (ac_try="$ac_cpp conftest.$ac_ext"
4871 case "(($ac_try" in
4872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4873 *) ac_try_echo=$ac_try;;
4874 esac
4875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4877 ac_status=$?
4878 grep -v '^ *+' conftest.er1 >conftest.err
4879 rm -f conftest.er1
4880 cat conftest.err >&5
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); } >/dev/null && {
4883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4884 test ! -s conftest.err
4885 }; then
4886 # Broken: success on invalid input.
4887 continue
4888 else
4889 echo "$as_me: failed program was:" >&5
4890 sed 's/^/| /' conftest.$ac_ext >&5
4891
4892 # Passes both tests.
4893 ac_preproc_ok=:
4894 break
4895 fi
4896
4897 rm -f conftest.err conftest.$ac_ext
4898
4899 done
4900 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4901 rm -f conftest.err conftest.$ac_ext
4902 if $ac_preproc_ok; then
4903 :
4904 else
4905 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4906 See \`config.log' for more details." >&5
4907 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4908 See \`config.log' for more details." >&2;}
4909 { (exit 1); exit 1; }; }
4910 fi
4911
4912 ac_ext=c
4913 ac_cpp='$CPP $CPPFLAGS'
4914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4917
4918 # Find a good install program. We prefer a C program (faster),
4919 # so one script is as good as another. But avoid the broken or
4920 # incompatible versions:
4921 # SysV /etc/install, /usr/sbin/install
4922 # SunOS /usr/etc/install
4923 # IRIX /sbin/install
4924 # AIX /bin/install
4925 # AmigaOS /C/install, which installs bootblocks on floppy discs
4926 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4927 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4928 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4929 # OS/2's system install, which has a completely different semantic
4930 # ./install, which can be erroneously created by make from ./install.sh.
4931 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4932 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4933 if test -z "$INSTALL"; then
4934 if test "${ac_cv_path_install+set}" = set; then
4935 echo $ECHO_N "(cached) $ECHO_C" >&6
4936 else
4937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 for as_dir in $PATH
4939 do
4940 IFS=$as_save_IFS
4941 test -z "$as_dir" && as_dir=.
4942 # Account for people who put trailing slashes in PATH elements.
4943 case $as_dir/ in
4944 ./ | .// | /cC/* | \
4945 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4946 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4947 /usr/ucb/* ) ;;
4948 *)
4949 # OSF1 and SCO ODT 3.0 have their own names for install.
4950 # Don't use installbsd from OSF since it installs stuff as root
4951 # by default.
4952 for ac_prog in ginstall scoinst install; do
4953 for ac_exec_ext in '' $ac_executable_extensions; do
4954 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4955 if test $ac_prog = install &&
4956 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4957 # AIX install. It has an incompatible calling convention.
4958 :
4959 elif test $ac_prog = install &&
4960 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4961 # program-specific install script used by HP pwplus--don't use.
4962 :
4963 else
4964 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4965 break 3
4966 fi
4967 fi
4968 done
4969 done
4970 ;;
4971 esac
4972 done
4973 IFS=$as_save_IFS
4974
4975
4976 fi
4977 if test "${ac_cv_path_install+set}" = set; then
4978 INSTALL=$ac_cv_path_install
4979 else
4980 # As a last resort, use the slow shell script. Don't cache a
4981 # value for INSTALL within a source directory, because that will
4982 # break other packages using the cache if that directory is
4983 # removed, or if the value is a relative name.
4984 INSTALL=$ac_install_sh
4985 fi
4986 fi
4987 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4988 echo "${ECHO_T}$INSTALL" >&6; }
4989
4990 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4991 # It thinks the first close brace ends the variable substitution.
4992 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4993
4994 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4995
4996 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4997
4998 if test "x$RANLIB" = x; then
4999 if test -n "$ac_tool_prefix"; then
5000 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5001 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5004 if test "${ac_cv_prog_RANLIB+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5006 else
5007 if test -n "$RANLIB"; then
5008 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5009 else
5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011 for as_dir in $PATH
5012 do
5013 IFS=$as_save_IFS
5014 test -z "$as_dir" && as_dir=.
5015 for ac_exec_ext in '' $ac_executable_extensions; do
5016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5017 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5019 break 2
5020 fi
5021 done
5022 done
5023 IFS=$as_save_IFS
5024
5025 fi
5026 fi
5027 RANLIB=$ac_cv_prog_RANLIB
5028 if test -n "$RANLIB"; then
5029 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5030 echo "${ECHO_T}$RANLIB" >&6; }
5031 else
5032 { echo "$as_me:$LINENO: result: no" >&5
5033 echo "${ECHO_T}no" >&6; }
5034 fi
5035
5036
5037 fi
5038 if test -z "$ac_cv_prog_RANLIB"; then
5039 ac_ct_RANLIB=$RANLIB
5040 # Extract the first word of "ranlib", so it can be a program name with args.
5041 set dummy ranlib; ac_word=$2
5042 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5044 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5045 echo $ECHO_N "(cached) $ECHO_C" >&6
5046 else
5047 if test -n "$ac_ct_RANLIB"; then
5048 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5049 else
5050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051 for as_dir in $PATH
5052 do
5053 IFS=$as_save_IFS
5054 test -z "$as_dir" && as_dir=.
5055 for ac_exec_ext in '' $ac_executable_extensions; do
5056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5057 ac_cv_prog_ac_ct_RANLIB="ranlib"
5058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5059 break 2
5060 fi
5061 done
5062 done
5063 IFS=$as_save_IFS
5064
5065 fi
5066 fi
5067 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5068 if test -n "$ac_ct_RANLIB"; then
5069 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5070 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5071 else
5072 { echo "$as_me:$LINENO: result: no" >&5
5073 echo "${ECHO_T}no" >&6; }
5074 fi
5075
5076 if test "x$ac_ct_RANLIB" = x; then
5077 RANLIB=":"
5078 else
5079 case $cross_compiling:$ac_tool_warned in
5080 yes:)
5081 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5082 whose name does not start with the host triplet. If you think this
5083 configuration is useful to you, please write to autoconf@gnu.org." >&5
5084 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5085 whose name does not start with the host triplet. If you think this
5086 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5087 ac_tool_warned=yes ;;
5088 esac
5089 RANLIB=$ac_ct_RANLIB
5090 fi
5091 else
5092 RANLIB="$ac_cv_prog_RANLIB"
5093 fi
5094
5095 fi
5096 # Extract the first word of "install-info", so it can be a program name with args.
5097 set dummy install-info; ac_word=$2
5098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5100 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5101 echo $ECHO_N "(cached) $ECHO_C" >&6
5102 else
5103 case $INSTALL_INFO in
5104 [\\/]* | ?:[\\/]*)
5105 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5106 ;;
5107 *)
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH
5110 do
5111 IFS=$as_save_IFS
5112 test -z "$as_dir" && as_dir=.
5113 for ac_exec_ext in '' $ac_executable_extensions; do
5114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5115 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5117 break 2
5118 fi
5119 done
5120 done
5121 IFS=$as_save_IFS
5122
5123 ;;
5124 esac
5125 fi
5126 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5127 if test -n "$INSTALL_INFO"; then
5128 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5129 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5130 else
5131 { echo "$as_me:$LINENO: result: no" >&5
5132 echo "${ECHO_T}no" >&6; }
5133 fi
5134
5135
5136 # Extract the first word of "install-info", so it can be a program name with args.
5137 set dummy install-info; ac_word=$2
5138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5140 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5141 echo $ECHO_N "(cached) $ECHO_C" >&6
5142 else
5143 case $INSTALL_INFO in
5144 [\\/]* | ?:[\\/]*)
5145 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5146 ;;
5147 *)
5148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149 for as_dir in /usr/sbin
5150 do
5151 IFS=$as_save_IFS
5152 test -z "$as_dir" && as_dir=.
5153 for ac_exec_ext in '' $ac_executable_extensions; do
5154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5155 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5157 break 2
5158 fi
5159 done
5160 done
5161 IFS=$as_save_IFS
5162
5163 ;;
5164 esac
5165 fi
5166 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5167 if test -n "$INSTALL_INFO"; then
5168 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5169 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5170 else
5171 { echo "$as_me:$LINENO: result: no" >&5
5172 echo "${ECHO_T}no" >&6; }
5173 fi
5174
5175
5176 # Extract the first word of "install-info", so it can be a program name with args.
5177 set dummy install-info; ac_word=$2
5178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5180 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5181 echo $ECHO_N "(cached) $ECHO_C" >&6
5182 else
5183 case $INSTALL_INFO in
5184 [\\/]* | ?:[\\/]*)
5185 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5186 ;;
5187 *)
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 for as_dir in /sbin
5190 do
5191 IFS=$as_save_IFS
5192 test -z "$as_dir" && as_dir=.
5193 for ac_exec_ext in '' $ac_executable_extensions; do
5194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5195 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5197 break 2
5198 fi
5199 done
5200 done
5201 IFS=$as_save_IFS
5202
5203 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5204 ;;
5205 esac
5206 fi
5207 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5208 if test -n "$INSTALL_INFO"; then
5209 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5210 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5211 else
5212 { echo "$as_me:$LINENO: result: no" >&5
5213 echo "${ECHO_T}no" >&6; }
5214 fi
5215
5216
5217 # Extract the first word of "gzip", so it can be a program name with args.
5218 set dummy gzip; ac_word=$2
5219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5221 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5222 echo $ECHO_N "(cached) $ECHO_C" >&6
5223 else
5224 case $GZIP_PROG in
5225 [\\/]* | ?:[\\/]*)
5226 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5227 ;;
5228 *)
5229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 for as_dir in $PATH
5231 do
5232 IFS=$as_save_IFS
5233 test -z "$as_dir" && as_dir=.
5234 for ac_exec_ext in '' $ac_executable_extensions; do
5235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5236 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5238 break 2
5239 fi
5240 done
5241 done
5242 IFS=$as_save_IFS
5243
5244 ;;
5245 esac
5246 fi
5247 GZIP_PROG=$ac_cv_path_GZIP_PROG
5248 if test -n "$GZIP_PROG"; then
5249 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5250 echo "${ECHO_T}$GZIP_PROG" >&6; }
5251 else
5252 { echo "$as_me:$LINENO: result: no" >&5
5253 echo "${ECHO_T}no" >&6; }
5254 fi
5255
5256
5257
5258
5259 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5260 then
5261 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5262 fi
5263
5264 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5265 then
5266 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5267 fi
5268
5269
5270 late_LDFLAGS=$LDFLAGS
5271 if test "$GCC" = yes; then
5272 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5273 else
5274 LDFLAGS="$LDFLAGS -znocombreloc"
5275 fi
5276
5277 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5278 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5279 cat >conftest.$ac_ext <<_ACEOF
5280 main(){return 0;}
5281 _ACEOF
5282 rm -f conftest.$ac_objext conftest$ac_exeext
5283 if { (ac_try="$ac_link"
5284 case "(($ac_try" in
5285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5286 *) ac_try_echo=$ac_try;;
5287 esac
5288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5289 (eval "$ac_link") 2>conftest.er1
5290 ac_status=$?
5291 grep -v '^ *+' conftest.er1 >conftest.err
5292 rm -f conftest.er1
5293 cat conftest.err >&5
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); } && {
5296 test -z "$ac_c_werror_flag" ||
5297 test ! -s conftest.err
5298 } && test -s conftest$ac_exeext &&
5299 $as_test_x conftest$ac_exeext; then
5300 { echo "$as_me:$LINENO: result: yes" >&5
5301 echo "${ECHO_T}yes" >&6; }
5302 else
5303 echo "$as_me: failed program was:" >&5
5304 sed 's/^/| /' conftest.$ac_ext >&5
5305
5306 LDFLAGS=$late_LDFLAGS
5307 { echo "$as_me:$LINENO: result: no" >&5
5308 echo "${ECHO_T}no" >&6; }
5309 fi
5310
5311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5312 conftest$ac_exeext conftest.$ac_ext
5313
5314 #### Extract some information from the operating system and machine files.
5315
5316 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5317 - which libraries the lib-src programs will want, and
5318 - whether the GNU malloc routines are usable..." >&5
5319 echo "$as_me: checking the machine- and system-dependent files to find out
5320 - which libraries the lib-src programs will want, and
5321 - whether the GNU malloc routines are usable..." >&6;}
5322
5323 ### First figure out CFLAGS (which we use for running the compiler here)
5324 ### and REAL_CFLAGS (which we use for real compilation).
5325 ### The two are the same except on a few systems, where they are made
5326 ### different to work around various lossages. For example,
5327 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5328 ### as implying static linking.
5329
5330 ### If the CFLAGS env var is specified, we use that value
5331 ### instead of the default.
5332
5333 ### It's not important that this name contain the PID; you can't run
5334 ### two configures in the same directory and have anything work
5335 ### anyway.
5336 tempcname="conftest.c"
5337
5338 echo '
5339 #include "'${srcdir}'/src/'${opsysfile}'"
5340 #include "'${srcdir}'/src/'${machfile}'"
5341 #ifndef LIBS_MACHINE
5342 #define LIBS_MACHINE
5343 #endif
5344 #ifndef LIBS_SYSTEM
5345 #define LIBS_SYSTEM
5346 #endif
5347 #ifndef C_SWITCH_SYSTEM
5348 #define C_SWITCH_SYSTEM
5349 #endif
5350 #ifndef C_SWITCH_MACHINE
5351 #define C_SWITCH_MACHINE
5352 #endif
5353 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5354 configure___ c_switch_system=C_SWITCH_SYSTEM
5355 configure___ c_switch_machine=C_SWITCH_MACHINE
5356
5357 #ifndef LIB_X11_LIB
5358 #define LIB_X11_LIB -lX11
5359 #endif
5360
5361 #ifndef LIBX11_MACHINE
5362 #define LIBX11_MACHINE
5363 #endif
5364
5365 #ifndef LIBX11_SYSTEM
5366 #define LIBX11_SYSTEM
5367 #endif
5368 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5369
5370 #ifdef UNEXEC
5371 configure___ unexec=UNEXEC
5372 #else
5373 configure___ unexec=unexec.o
5374 #endif
5375
5376 #ifdef SYSTEM_MALLOC
5377 configure___ system_malloc=yes
5378 #else
5379 configure___ system_malloc=no
5380 #endif
5381
5382 #ifdef USE_MMAP_FOR_BUFFERS
5383 configure___ use_mmap_for_buffers=yes
5384 #else
5385 configure___ use_mmap_for_buffers=no
5386 #endif
5387
5388 #ifndef C_DEBUG_SWITCH
5389 #define C_DEBUG_SWITCH -g
5390 #endif
5391
5392 #ifndef C_OPTIMIZE_SWITCH
5393 #ifdef __GNUC__
5394 #define C_OPTIMIZE_SWITCH -O2
5395 #else
5396 #define C_OPTIMIZE_SWITCH -O
5397 #endif
5398 #endif
5399
5400 #ifndef C_WARNINGS_SWITCH
5401 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5402 #endif
5403
5404 #ifndef LD_SWITCH_MACHINE
5405 #define LD_SWITCH_MACHINE
5406 #endif
5407
5408 #ifndef LD_SWITCH_SYSTEM
5409 #define LD_SWITCH_SYSTEM
5410 #endif
5411
5412 #ifndef LD_SWITCH_X_SITE_AUX
5413 #define LD_SWITCH_X_SITE_AUX
5414 #endif
5415
5416 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5417 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5418
5419 #ifdef THIS_IS_CONFIGURE
5420
5421 /* Get the CFLAGS for tests in configure. */
5422 #ifdef __GNUC__
5423 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5424 #else
5425 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5426 #endif
5427
5428 #else /* not THIS_IS_CONFIGURE */
5429
5430 /* Get the CFLAGS for real compilation. */
5431 #ifdef __GNUC__
5432 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5433 #else
5434 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5435 #endif
5436
5437 #endif /* not THIS_IS_CONFIGURE */
5438 ' > ${tempcname}
5439
5440 # The value of CPP is a quoted variable reference, so we need to do this
5441 # to get its actual value...
5442 CPP=`eval "echo $CPP"`
5443 eval `${CPP} -Isrc ${tempcname} \
5444 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5445 if test "x$SPECIFIED_CFLAGS" = x; then
5446 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5447 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5448 else
5449 REAL_CFLAGS="$CFLAGS"
5450 fi
5451 rm ${tempcname}
5452
5453 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5454
5455 ### Make sure subsequent tests use flags consistent with the build flags.
5456
5457 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5458 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5459 else
5460 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5461 fi
5462
5463
5464
5465 # Check whether --enable-largefile was given.
5466 if test "${enable_largefile+set}" = set; then
5467 enableval=$enable_largefile;
5468 fi
5469
5470 if test "$enable_largefile" != no; then
5471
5472 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5473 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5474 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5475 echo $ECHO_N "(cached) $ECHO_C" >&6
5476 else
5477 ac_cv_sys_largefile_CC=no
5478 if test "$GCC" != yes; then
5479 ac_save_CC=$CC
5480 while :; do
5481 # IRIX 6.2 and later do not support large files by default,
5482 # so use the C compiler's -n32 option if that helps.
5483 cat >conftest.$ac_ext <<_ACEOF
5484 /* confdefs.h. */
5485 _ACEOF
5486 cat confdefs.h >>conftest.$ac_ext
5487 cat >>conftest.$ac_ext <<_ACEOF
5488 /* end confdefs.h. */
5489 #include <sys/types.h>
5490 /* Check that off_t can represent 2**63 - 1 correctly.
5491 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5492 since some C++ compilers masquerading as C compilers
5493 incorrectly reject 9223372036854775807. */
5494 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5495 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5496 && LARGE_OFF_T % 2147483647 == 1)
5497 ? 1 : -1];
5498 int
5499 main ()
5500 {
5501
5502 ;
5503 return 0;
5504 }
5505 _ACEOF
5506 rm -f conftest.$ac_objext
5507 if { (ac_try="$ac_compile"
5508 case "(($ac_try" in
5509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5510 *) ac_try_echo=$ac_try;;
5511 esac
5512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5513 (eval "$ac_compile") 2>conftest.er1
5514 ac_status=$?
5515 grep -v '^ *+' conftest.er1 >conftest.err
5516 rm -f conftest.er1
5517 cat conftest.err >&5
5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519 (exit $ac_status); } && {
5520 test -z "$ac_c_werror_flag" ||
5521 test ! -s conftest.err
5522 } && test -s conftest.$ac_objext; then
5523 break
5524 else
5525 echo "$as_me: failed program was:" >&5
5526 sed 's/^/| /' conftest.$ac_ext >&5
5527
5528
5529 fi
5530
5531 rm -f core conftest.err conftest.$ac_objext
5532 CC="$CC -n32"
5533 rm -f conftest.$ac_objext
5534 if { (ac_try="$ac_compile"
5535 case "(($ac_try" in
5536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5537 *) ac_try_echo=$ac_try;;
5538 esac
5539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5540 (eval "$ac_compile") 2>conftest.er1
5541 ac_status=$?
5542 grep -v '^ *+' conftest.er1 >conftest.err
5543 rm -f conftest.er1
5544 cat conftest.err >&5
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); } && {
5547 test -z "$ac_c_werror_flag" ||
5548 test ! -s conftest.err
5549 } && test -s conftest.$ac_objext; then
5550 ac_cv_sys_largefile_CC=' -n32'; break
5551 else
5552 echo "$as_me: failed program was:" >&5
5553 sed 's/^/| /' conftest.$ac_ext >&5
5554
5555
5556 fi
5557
5558 rm -f core conftest.err conftest.$ac_objext
5559 break
5560 done
5561 CC=$ac_save_CC
5562 rm -f conftest.$ac_ext
5563 fi
5564 fi
5565 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5566 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5567 if test "$ac_cv_sys_largefile_CC" != no; then
5568 CC=$CC$ac_cv_sys_largefile_CC
5569 fi
5570
5571 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5572 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5573 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5574 echo $ECHO_N "(cached) $ECHO_C" >&6
5575 else
5576 while :; do
5577 cat >conftest.$ac_ext <<_ACEOF
5578 /* confdefs.h. */
5579 _ACEOF
5580 cat confdefs.h >>conftest.$ac_ext
5581 cat >>conftest.$ac_ext <<_ACEOF
5582 /* end confdefs.h. */
5583 #include <sys/types.h>
5584 /* Check that off_t can represent 2**63 - 1 correctly.
5585 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5586 since some C++ compilers masquerading as C compilers
5587 incorrectly reject 9223372036854775807. */
5588 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5589 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5590 && LARGE_OFF_T % 2147483647 == 1)
5591 ? 1 : -1];
5592 int
5593 main ()
5594 {
5595
5596 ;
5597 return 0;
5598 }
5599 _ACEOF
5600 rm -f conftest.$ac_objext
5601 if { (ac_try="$ac_compile"
5602 case "(($ac_try" in
5603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5604 *) ac_try_echo=$ac_try;;
5605 esac
5606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5607 (eval "$ac_compile") 2>conftest.er1
5608 ac_status=$?
5609 grep -v '^ *+' conftest.er1 >conftest.err
5610 rm -f conftest.er1
5611 cat conftest.err >&5
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); } && {
5614 test -z "$ac_c_werror_flag" ||
5615 test ! -s conftest.err
5616 } && test -s conftest.$ac_objext; then
5617 ac_cv_sys_file_offset_bits=no; break
5618 else
5619 echo "$as_me: failed program was:" >&5
5620 sed 's/^/| /' conftest.$ac_ext >&5
5621
5622
5623 fi
5624
5625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5626 cat >conftest.$ac_ext <<_ACEOF
5627 /* confdefs.h. */
5628 _ACEOF
5629 cat confdefs.h >>conftest.$ac_ext
5630 cat >>conftest.$ac_ext <<_ACEOF
5631 /* end confdefs.h. */
5632 #define _FILE_OFFSET_BITS 64
5633 #include <sys/types.h>
5634 /* Check that off_t can represent 2**63 - 1 correctly.
5635 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5636 since some C++ compilers masquerading as C compilers
5637 incorrectly reject 9223372036854775807. */
5638 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5639 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5640 && LARGE_OFF_T % 2147483647 == 1)
5641 ? 1 : -1];
5642 int
5643 main ()
5644 {
5645
5646 ;
5647 return 0;
5648 }
5649 _ACEOF
5650 rm -f conftest.$ac_objext
5651 if { (ac_try="$ac_compile"
5652 case "(($ac_try" in
5653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5654 *) ac_try_echo=$ac_try;;
5655 esac
5656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5657 (eval "$ac_compile") 2>conftest.er1
5658 ac_status=$?
5659 grep -v '^ *+' conftest.er1 >conftest.err
5660 rm -f conftest.er1
5661 cat conftest.err >&5
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); } && {
5664 test -z "$ac_c_werror_flag" ||
5665 test ! -s conftest.err
5666 } && test -s conftest.$ac_objext; then
5667 ac_cv_sys_file_offset_bits=64; break
5668 else
5669 echo "$as_me: failed program was:" >&5
5670 sed 's/^/| /' conftest.$ac_ext >&5
5671
5672
5673 fi
5674
5675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5676 ac_cv_sys_file_offset_bits=unknown
5677 break
5678 done
5679 fi
5680 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5681 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5682 case $ac_cv_sys_file_offset_bits in #(
5683 no | unknown) ;;
5684 *)
5685 cat >>confdefs.h <<_ACEOF
5686 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5687 _ACEOF
5688 ;;
5689 esac
5690 rm -f conftest*
5691 if test $ac_cv_sys_file_offset_bits = unknown; then
5692 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5693 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5694 if test "${ac_cv_sys_large_files+set}" = set; then
5695 echo $ECHO_N "(cached) $ECHO_C" >&6
5696 else
5697 while :; do
5698 cat >conftest.$ac_ext <<_ACEOF
5699 /* confdefs.h. */
5700 _ACEOF
5701 cat confdefs.h >>conftest.$ac_ext
5702 cat >>conftest.$ac_ext <<_ACEOF
5703 /* end confdefs.h. */
5704 #include <sys/types.h>
5705 /* Check that off_t can represent 2**63 - 1 correctly.
5706 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5707 since some C++ compilers masquerading as C compilers
5708 incorrectly reject 9223372036854775807. */
5709 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5710 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5711 && LARGE_OFF_T % 2147483647 == 1)
5712 ? 1 : -1];
5713 int
5714 main ()
5715 {
5716
5717 ;
5718 return 0;
5719 }
5720 _ACEOF
5721 rm -f conftest.$ac_objext
5722 if { (ac_try="$ac_compile"
5723 case "(($ac_try" in
5724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5725 *) ac_try_echo=$ac_try;;
5726 esac
5727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5728 (eval "$ac_compile") 2>conftest.er1
5729 ac_status=$?
5730 grep -v '^ *+' conftest.er1 >conftest.err
5731 rm -f conftest.er1
5732 cat conftest.err >&5
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); } && {
5735 test -z "$ac_c_werror_flag" ||
5736 test ! -s conftest.err
5737 } && test -s conftest.$ac_objext; then
5738 ac_cv_sys_large_files=no; break
5739 else
5740 echo "$as_me: failed program was:" >&5
5741 sed 's/^/| /' conftest.$ac_ext >&5
5742
5743
5744 fi
5745
5746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5747 cat >conftest.$ac_ext <<_ACEOF
5748 /* confdefs.h. */
5749 _ACEOF
5750 cat confdefs.h >>conftest.$ac_ext
5751 cat >>conftest.$ac_ext <<_ACEOF
5752 /* end confdefs.h. */
5753 #define _LARGE_FILES 1
5754 #include <sys/types.h>
5755 /* Check that off_t can represent 2**63 - 1 correctly.
5756 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5757 since some C++ compilers masquerading as C compilers
5758 incorrectly reject 9223372036854775807. */
5759 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5760 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5761 && LARGE_OFF_T % 2147483647 == 1)
5762 ? 1 : -1];
5763 int
5764 main ()
5765 {
5766
5767 ;
5768 return 0;
5769 }
5770 _ACEOF
5771 rm -f conftest.$ac_objext
5772 if { (ac_try="$ac_compile"
5773 case "(($ac_try" in
5774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5775 *) ac_try_echo=$ac_try;;
5776 esac
5777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5778 (eval "$ac_compile") 2>conftest.er1
5779 ac_status=$?
5780 grep -v '^ *+' conftest.er1 >conftest.err
5781 rm -f conftest.er1
5782 cat conftest.err >&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); } && {
5785 test -z "$ac_c_werror_flag" ||
5786 test ! -s conftest.err
5787 } && test -s conftest.$ac_objext; then
5788 ac_cv_sys_large_files=1; break
5789 else
5790 echo "$as_me: failed program was:" >&5
5791 sed 's/^/| /' conftest.$ac_ext >&5
5792
5793
5794 fi
5795
5796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5797 ac_cv_sys_large_files=unknown
5798 break
5799 done
5800 fi
5801 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5802 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5803 case $ac_cv_sys_large_files in #(
5804 no | unknown) ;;
5805 *)
5806 cat >>confdefs.h <<_ACEOF
5807 #define _LARGE_FILES $ac_cv_sys_large_files
5808 _ACEOF
5809 ;;
5810 esac
5811 rm -f conftest*
5812 fi
5813 fi
5814
5815
5816
5817 ### The standard library on x86-64 GNU/Linux distributions can
5818 ### be located in either /usr/lib64 or /usr/lib.
5819 case "${canonical}" in
5820 x86_64-*-linux-gnu* )
5821 if test -d /usr/lib64; then
5822
5823 cat >>confdefs.h <<\_ACEOF
5824 #define HAVE_X86_64_LIB64_DIR 1
5825 _ACEOF
5826
5827 fi
5828 esac
5829
5830
5831
5832
5833 if test "${with_sound}" != "no"; then
5834 # Sound support for GNU/Linux and the free BSDs.
5835 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5836 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5837 if test "${ac_cv_header_stdc+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5839 else
5840 cat >conftest.$ac_ext <<_ACEOF
5841 /* confdefs.h. */
5842 _ACEOF
5843 cat confdefs.h >>conftest.$ac_ext
5844 cat >>conftest.$ac_ext <<_ACEOF
5845 /* end confdefs.h. */
5846 #include <stdlib.h>
5847 #include <stdarg.h>
5848 #include <string.h>
5849 #include <float.h>
5850
5851 int
5852 main ()
5853 {
5854
5855 ;
5856 return 0;
5857 }
5858 _ACEOF
5859 rm -f conftest.$ac_objext
5860 if { (ac_try="$ac_compile"
5861 case "(($ac_try" in
5862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5863 *) ac_try_echo=$ac_try;;
5864 esac
5865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5866 (eval "$ac_compile") 2>conftest.er1
5867 ac_status=$?
5868 grep -v '^ *+' conftest.er1 >conftest.err
5869 rm -f conftest.er1
5870 cat conftest.err >&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); } && {
5873 test -z "$ac_c_werror_flag" ||
5874 test ! -s conftest.err
5875 } && test -s conftest.$ac_objext; then
5876 ac_cv_header_stdc=yes
5877 else
5878 echo "$as_me: failed program was:" >&5
5879 sed 's/^/| /' conftest.$ac_ext >&5
5880
5881 ac_cv_header_stdc=no
5882 fi
5883
5884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5885
5886 if test $ac_cv_header_stdc = yes; then
5887 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5888 cat >conftest.$ac_ext <<_ACEOF
5889 /* confdefs.h. */
5890 _ACEOF
5891 cat confdefs.h >>conftest.$ac_ext
5892 cat >>conftest.$ac_ext <<_ACEOF
5893 /* end confdefs.h. */
5894 #include <string.h>
5895
5896 _ACEOF
5897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5898 $EGREP "memchr" >/dev/null 2>&1; then
5899 :
5900 else
5901 ac_cv_header_stdc=no
5902 fi
5903 rm -f conftest*
5904
5905 fi
5906
5907 if test $ac_cv_header_stdc = yes; then
5908 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5909 cat >conftest.$ac_ext <<_ACEOF
5910 /* confdefs.h. */
5911 _ACEOF
5912 cat confdefs.h >>conftest.$ac_ext
5913 cat >>conftest.$ac_ext <<_ACEOF
5914 /* end confdefs.h. */
5915 #include <stdlib.h>
5916
5917 _ACEOF
5918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5919 $EGREP "free" >/dev/null 2>&1; then
5920 :
5921 else
5922 ac_cv_header_stdc=no
5923 fi
5924 rm -f conftest*
5925
5926 fi
5927
5928 if test $ac_cv_header_stdc = yes; then
5929 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5930 if test "$cross_compiling" = yes; then
5931 :
5932 else
5933 cat >conftest.$ac_ext <<_ACEOF
5934 /* confdefs.h. */
5935 _ACEOF
5936 cat confdefs.h >>conftest.$ac_ext
5937 cat >>conftest.$ac_ext <<_ACEOF
5938 /* end confdefs.h. */
5939 #include <ctype.h>
5940 #include <stdlib.h>
5941 #if ((' ' & 0x0FF) == 0x020)
5942 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5943 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5944 #else
5945 # define ISLOWER(c) \
5946 (('a' <= (c) && (c) <= 'i') \
5947 || ('j' <= (c) && (c) <= 'r') \
5948 || ('s' <= (c) && (c) <= 'z'))
5949 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5950 #endif
5951
5952 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5953 int
5954 main ()
5955 {
5956 int i;
5957 for (i = 0; i < 256; i++)
5958 if (XOR (islower (i), ISLOWER (i))
5959 || toupper (i) != TOUPPER (i))
5960 return 2;
5961 return 0;
5962 }
5963 _ACEOF
5964 rm -f conftest$ac_exeext
5965 if { (ac_try="$ac_link"
5966 case "(($ac_try" in
5967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5968 *) ac_try_echo=$ac_try;;
5969 esac
5970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5971 (eval "$ac_link") 2>&5
5972 ac_status=$?
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5975 { (case "(($ac_try" in
5976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977 *) ac_try_echo=$ac_try;;
5978 esac
5979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5980 (eval "$ac_try") 2>&5
5981 ac_status=$?
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); }; }; then
5984 :
5985 else
5986 echo "$as_me: program exited with status $ac_status" >&5
5987 echo "$as_me: failed program was:" >&5
5988 sed 's/^/| /' conftest.$ac_ext >&5
5989
5990 ( exit $ac_status )
5991 ac_cv_header_stdc=no
5992 fi
5993 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5994 fi
5995
5996
5997 fi
5998 fi
5999 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6000 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6001 if test $ac_cv_header_stdc = yes; then
6002
6003 cat >>confdefs.h <<\_ACEOF
6004 #define STDC_HEADERS 1
6005 _ACEOF
6006
6007 fi
6008
6009 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6020 inttypes.h stdint.h unistd.h
6021 do
6022 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6023 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6026 echo $ECHO_N "(cached) $ECHO_C" >&6
6027 else
6028 cat >conftest.$ac_ext <<_ACEOF
6029 /* confdefs.h. */
6030 _ACEOF
6031 cat confdefs.h >>conftest.$ac_ext
6032 cat >>conftest.$ac_ext <<_ACEOF
6033 /* end confdefs.h. */
6034 $ac_includes_default
6035
6036 #include <$ac_header>
6037 _ACEOF
6038 rm -f conftest.$ac_objext
6039 if { (ac_try="$ac_compile"
6040 case "(($ac_try" in
6041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6042 *) ac_try_echo=$ac_try;;
6043 esac
6044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6045 (eval "$ac_compile") 2>conftest.er1
6046 ac_status=$?
6047 grep -v '^ *+' conftest.er1 >conftest.err
6048 rm -f conftest.er1
6049 cat conftest.err >&5
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); } && {
6052 test -z "$ac_c_werror_flag" ||
6053 test ! -s conftest.err
6054 } && test -s conftest.$ac_objext; then
6055 eval "$as_ac_Header=yes"
6056 else
6057 echo "$as_me: failed program was:" >&5
6058 sed 's/^/| /' conftest.$ac_ext >&5
6059
6060 eval "$as_ac_Header=no"
6061 fi
6062
6063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6064 fi
6065 ac_res=`eval echo '${'$as_ac_Header'}'`
6066 { echo "$as_me:$LINENO: result: $ac_res" >&5
6067 echo "${ECHO_T}$ac_res" >&6; }
6068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6069 cat >>confdefs.h <<_ACEOF
6070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6071 _ACEOF
6072
6073 fi
6074
6075 done
6076
6077
6078
6079
6080
6081 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6082 do
6083 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6085 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6088 echo $ECHO_N "(cached) $ECHO_C" >&6
6089 fi
6090 ac_res=`eval echo '${'$as_ac_Header'}'`
6091 { echo "$as_me:$LINENO: result: $ac_res" >&5
6092 echo "${ECHO_T}$ac_res" >&6; }
6093 else
6094 # Is the header compilable?
6095 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6096 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6097 cat >conftest.$ac_ext <<_ACEOF
6098 /* confdefs.h. */
6099 _ACEOF
6100 cat confdefs.h >>conftest.$ac_ext
6101 cat >>conftest.$ac_ext <<_ACEOF
6102 /* end confdefs.h. */
6103 $ac_includes_default
6104 #include <$ac_header>
6105 _ACEOF
6106 rm -f conftest.$ac_objext
6107 if { (ac_try="$ac_compile"
6108 case "(($ac_try" in
6109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6110 *) ac_try_echo=$ac_try;;
6111 esac
6112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6113 (eval "$ac_compile") 2>conftest.er1
6114 ac_status=$?
6115 grep -v '^ *+' conftest.er1 >conftest.err
6116 rm -f conftest.er1
6117 cat conftest.err >&5
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); } && {
6120 test -z "$ac_c_werror_flag" ||
6121 test ! -s conftest.err
6122 } && test -s conftest.$ac_objext; then
6123 ac_header_compiler=yes
6124 else
6125 echo "$as_me: failed program was:" >&5
6126 sed 's/^/| /' conftest.$ac_ext >&5
6127
6128 ac_header_compiler=no
6129 fi
6130
6131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6132 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6133 echo "${ECHO_T}$ac_header_compiler" >&6; }
6134
6135 # Is the header present?
6136 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6137 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6138 cat >conftest.$ac_ext <<_ACEOF
6139 /* confdefs.h. */
6140 _ACEOF
6141 cat confdefs.h >>conftest.$ac_ext
6142 cat >>conftest.$ac_ext <<_ACEOF
6143 /* end confdefs.h. */
6144 #include <$ac_header>
6145 _ACEOF
6146 if { (ac_try="$ac_cpp conftest.$ac_ext"
6147 case "(($ac_try" in
6148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6149 *) ac_try_echo=$ac_try;;
6150 esac
6151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6153 ac_status=$?
6154 grep -v '^ *+' conftest.er1 >conftest.err
6155 rm -f conftest.er1
6156 cat conftest.err >&5
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); } >/dev/null && {
6159 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6160 test ! -s conftest.err
6161 }; then
6162 ac_header_preproc=yes
6163 else
6164 echo "$as_me: failed program was:" >&5
6165 sed 's/^/| /' conftest.$ac_ext >&5
6166
6167 ac_header_preproc=no
6168 fi
6169
6170 rm -f conftest.err conftest.$ac_ext
6171 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6172 echo "${ECHO_T}$ac_header_preproc" >&6; }
6173
6174 # So? What about this header?
6175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6176 yes:no: )
6177 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6178 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6180 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6181 ac_header_preproc=yes
6182 ;;
6183 no:yes:* )
6184 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6185 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6186 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6187 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6188 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6189 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6190 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6191 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6193 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6194 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6195 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6196
6197 ;;
6198 esac
6199 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6202 echo $ECHO_N "(cached) $ECHO_C" >&6
6203 else
6204 eval "$as_ac_Header=\$ac_header_preproc"
6205 fi
6206 ac_res=`eval echo '${'$as_ac_Header'}'`
6207 { echo "$as_me:$LINENO: result: $ac_res" >&5
6208 echo "${ECHO_T}$ac_res" >&6; }
6209
6210 fi
6211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6212 cat >>confdefs.h <<_ACEOF
6213 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6214 _ACEOF
6215
6216 fi
6217
6218 done
6219
6220 # Emulation library used on NetBSD.
6221 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6222 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6223 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6224 echo $ECHO_N "(cached) $ECHO_C" >&6
6225 else
6226 ac_check_lib_save_LIBS=$LIBS
6227 LIBS="-lossaudio $LIBS"
6228 cat >conftest.$ac_ext <<_ACEOF
6229 /* confdefs.h. */
6230 _ACEOF
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h. */
6234
6235 /* Override any GCC internal prototype to avoid an error.
6236 Use char because int might match the return type of a GCC
6237 builtin and then its argument prototype would still apply. */
6238 #ifdef __cplusplus
6239 extern "C"
6240 #endif
6241 char _oss_ioctl ();
6242 int
6243 main ()
6244 {
6245 return _oss_ioctl ();
6246 ;
6247 return 0;
6248 }
6249 _ACEOF
6250 rm -f conftest.$ac_objext conftest$ac_exeext
6251 if { (ac_try="$ac_link"
6252 case "(($ac_try" in
6253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6254 *) ac_try_echo=$ac_try;;
6255 esac
6256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6257 (eval "$ac_link") 2>conftest.er1
6258 ac_status=$?
6259 grep -v '^ *+' conftest.er1 >conftest.err
6260 rm -f conftest.er1
6261 cat conftest.err >&5
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); } && {
6264 test -z "$ac_c_werror_flag" ||
6265 test ! -s conftest.err
6266 } && test -s conftest$ac_exeext &&
6267 $as_test_x conftest$ac_exeext; then
6268 ac_cv_lib_ossaudio__oss_ioctl=yes
6269 else
6270 echo "$as_me: failed program was:" >&5
6271 sed 's/^/| /' conftest.$ac_ext >&5
6272
6273 ac_cv_lib_ossaudio__oss_ioctl=no
6274 fi
6275
6276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6277 conftest$ac_exeext conftest.$ac_ext
6278 LIBS=$ac_check_lib_save_LIBS
6279 fi
6280 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6281 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6282 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6283 LIBSOUND=-lossaudio
6284 else
6285 LIBSOUND=
6286 fi
6287
6288
6289
6290 ALSA_REQUIRED=1.0.0
6291 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6292 if test "X${with_pkg_config_prog}" != X; then
6293 PKG_CONFIG="${with_pkg_config_prog}"
6294 fi
6295
6296 succeeded=no
6297
6298 if test -z "$PKG_CONFIG"; then
6299 # Extract the first word of "pkg-config", so it can be a program name with args.
6300 set dummy pkg-config; ac_word=$2
6301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6303 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
6305 else
6306 case $PKG_CONFIG in
6307 [\\/]* | ?:[\\/]*)
6308 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6309 ;;
6310 *)
6311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6312 for as_dir in $PATH
6313 do
6314 IFS=$as_save_IFS
6315 test -z "$as_dir" && as_dir=.
6316 for ac_exec_ext in '' $ac_executable_extensions; do
6317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6318 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6320 break 2
6321 fi
6322 done
6323 done
6324 IFS=$as_save_IFS
6325
6326 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6327 ;;
6328 esac
6329 fi
6330 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6331 if test -n "$PKG_CONFIG"; then
6332 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6333 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6334 else
6335 { echo "$as_me:$LINENO: result: no" >&5
6336 echo "${ECHO_T}no" >&6; }
6337 fi
6338
6339
6340 fi
6341
6342 if test "$PKG_CONFIG" = "no" ; then
6343 HAVE_ALSA=no
6344 else
6345 PKG_CONFIG_MIN_VERSION=0.9.0
6346 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6347 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6348 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6349
6350 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6351 { echo "$as_me:$LINENO: result: yes" >&5
6352 echo "${ECHO_T}yes" >&6; }
6353 succeeded=yes
6354
6355 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6356 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6357 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6358 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6359 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6360
6361 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6362 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6363 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6364 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6365 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6366 else
6367 { echo "$as_me:$LINENO: result: no" >&5
6368 echo "${ECHO_T}no" >&6; }
6369 ALSA_CFLAGS=""
6370 ALSA_LIBS=""
6371 ## If we have a custom action on failure, don't print errors, but
6372 ## do set a variable so people can do so.
6373 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6374
6375 fi
6376
6377
6378
6379 else
6380 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6381 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6382 fi
6383 fi
6384
6385 if test $succeeded = yes; then
6386 HAVE_ALSA=yes
6387 else
6388 HAVE_ALSA=no
6389 fi
6390
6391 if test $HAVE_ALSA = yes; then
6392 SAVE_CFLAGS="$CFLAGS"
6393 SAVE_LDFLAGS="$LDFLAGS"
6394 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6395 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6396 cat >conftest.$ac_ext <<_ACEOF
6397 /* confdefs.h. */
6398 _ACEOF
6399 cat confdefs.h >>conftest.$ac_ext
6400 cat >>conftest.$ac_ext <<_ACEOF
6401 /* end confdefs.h. */
6402 #include <asoundlib.h>
6403 int
6404 main ()
6405 {
6406 snd_lib_error_set_handler (0);
6407 ;
6408 return 0;
6409 }
6410 _ACEOF
6411 rm -f conftest.$ac_objext
6412 if { (ac_try="$ac_compile"
6413 case "(($ac_try" in
6414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6415 *) ac_try_echo=$ac_try;;
6416 esac
6417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6418 (eval "$ac_compile") 2>conftest.er1
6419 ac_status=$?
6420 grep -v '^ *+' conftest.er1 >conftest.err
6421 rm -f conftest.er1
6422 cat conftest.err >&5
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); } && {
6425 test -z "$ac_c_werror_flag" ||
6426 test ! -s conftest.err
6427 } && test -s conftest.$ac_objext; then
6428 emacs_alsa_normal=yes
6429 else
6430 echo "$as_me: failed program was:" >&5
6431 sed 's/^/| /' conftest.$ac_ext >&5
6432
6433 emacs_alsa_normal=no
6434 fi
6435
6436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6437 if test "$emacs_alsa_normal" != yes; then
6438 cat >conftest.$ac_ext <<_ACEOF
6439 /* confdefs.h. */
6440 _ACEOF
6441 cat confdefs.h >>conftest.$ac_ext
6442 cat >>conftest.$ac_ext <<_ACEOF
6443 /* end confdefs.h. */
6444 #include <alsa/asoundlib.h>
6445 int
6446 main ()
6447 {
6448 snd_lib_error_set_handler (0);
6449 ;
6450 return 0;
6451 }
6452 _ACEOF
6453 rm -f conftest.$ac_objext
6454 if { (ac_try="$ac_compile"
6455 case "(($ac_try" in
6456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6457 *) ac_try_echo=$ac_try;;
6458 esac
6459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6460 (eval "$ac_compile") 2>conftest.er1
6461 ac_status=$?
6462 grep -v '^ *+' conftest.er1 >conftest.err
6463 rm -f conftest.er1
6464 cat conftest.err >&5
6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); } && {
6467 test -z "$ac_c_werror_flag" ||
6468 test ! -s conftest.err
6469 } && test -s conftest.$ac_objext; then
6470 emacs_alsa_subdir=yes
6471 else
6472 echo "$as_me: failed program was:" >&5
6473 sed 's/^/| /' conftest.$ac_ext >&5
6474
6475 emacs_alsa_subdir=no
6476 fi
6477
6478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6479 if test "$emacs_alsa_subdir" != yes; then
6480 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6481 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6482 { (exit 1); exit 1; }; }
6483 fi
6484 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6485 fi
6486
6487 CFLAGS="$SAVE_CFLAGS"
6488 LDFLAGS="$SAVE_LDFLAGS"
6489 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6490 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6491
6492 cat >>confdefs.h <<\_ACEOF
6493 #define HAVE_ALSA 1
6494 _ACEOF
6495
6496
6497 fi
6498
6499 fi
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6528 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6529 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6530 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6531 sys/utsname.h pwd.h gpm.h
6532 do
6533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6535 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6538 echo $ECHO_N "(cached) $ECHO_C" >&6
6539 fi
6540 ac_res=`eval echo '${'$as_ac_Header'}'`
6541 { echo "$as_me:$LINENO: result: $ac_res" >&5
6542 echo "${ECHO_T}$ac_res" >&6; }
6543 else
6544 # Is the header compilable?
6545 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6546 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6547 cat >conftest.$ac_ext <<_ACEOF
6548 /* confdefs.h. */
6549 _ACEOF
6550 cat confdefs.h >>conftest.$ac_ext
6551 cat >>conftest.$ac_ext <<_ACEOF
6552 /* end confdefs.h. */
6553 $ac_includes_default
6554 #include <$ac_header>
6555 _ACEOF
6556 rm -f conftest.$ac_objext
6557 if { (ac_try="$ac_compile"
6558 case "(($ac_try" in
6559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6560 *) ac_try_echo=$ac_try;;
6561 esac
6562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6563 (eval "$ac_compile") 2>conftest.er1
6564 ac_status=$?
6565 grep -v '^ *+' conftest.er1 >conftest.err
6566 rm -f conftest.er1
6567 cat conftest.err >&5
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); } && {
6570 test -z "$ac_c_werror_flag" ||
6571 test ! -s conftest.err
6572 } && test -s conftest.$ac_objext; then
6573 ac_header_compiler=yes
6574 else
6575 echo "$as_me: failed program was:" >&5
6576 sed 's/^/| /' conftest.$ac_ext >&5
6577
6578 ac_header_compiler=no
6579 fi
6580
6581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6582 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6583 echo "${ECHO_T}$ac_header_compiler" >&6; }
6584
6585 # Is the header present?
6586 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6587 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6588 cat >conftest.$ac_ext <<_ACEOF
6589 /* confdefs.h. */
6590 _ACEOF
6591 cat confdefs.h >>conftest.$ac_ext
6592 cat >>conftest.$ac_ext <<_ACEOF
6593 /* end confdefs.h. */
6594 #include <$ac_header>
6595 _ACEOF
6596 if { (ac_try="$ac_cpp conftest.$ac_ext"
6597 case "(($ac_try" in
6598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6599 *) ac_try_echo=$ac_try;;
6600 esac
6601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6603 ac_status=$?
6604 grep -v '^ *+' conftest.er1 >conftest.err
6605 rm -f conftest.er1
6606 cat conftest.err >&5
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); } >/dev/null && {
6609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6610 test ! -s conftest.err
6611 }; then
6612 ac_header_preproc=yes
6613 else
6614 echo "$as_me: failed program was:" >&5
6615 sed 's/^/| /' conftest.$ac_ext >&5
6616
6617 ac_header_preproc=no
6618 fi
6619
6620 rm -f conftest.err conftest.$ac_ext
6621 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6622 echo "${ECHO_T}$ac_header_preproc" >&6; }
6623
6624 # So? What about this header?
6625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6626 yes:no: )
6627 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6628 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6630 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6631 ac_header_preproc=yes
6632 ;;
6633 no:yes:* )
6634 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6635 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6636 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6637 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6638 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6639 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6640 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6641 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6643 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6644 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6645 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6646
6647 ;;
6648 esac
6649 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6652 echo $ECHO_N "(cached) $ECHO_C" >&6
6653 else
6654 eval "$as_ac_Header=\$ac_header_preproc"
6655 fi
6656 ac_res=`eval echo '${'$as_ac_Header'}'`
6657 { echo "$as_me:$LINENO: result: $ac_res" >&5
6658 echo "${ECHO_T}$ac_res" >&6; }
6659
6660 fi
6661 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6662 cat >>confdefs.h <<_ACEOF
6663 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6664 _ACEOF
6665
6666 fi
6667
6668 done
6669
6670
6671 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6672 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6673 cat >conftest.$ac_ext <<_ACEOF
6674 /* confdefs.h. */
6675 _ACEOF
6676 cat confdefs.h >>conftest.$ac_ext
6677 cat >>conftest.$ac_ext <<_ACEOF
6678 /* end confdefs.h. */
6679 #include <sys/personality.h>
6680 int
6681 main ()
6682 {
6683 personality (PER_LINUX32)
6684 ;
6685 return 0;
6686 }
6687 _ACEOF
6688 rm -f conftest.$ac_objext
6689 if { (ac_try="$ac_compile"
6690 case "(($ac_try" in
6691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6692 *) ac_try_echo=$ac_try;;
6693 esac
6694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6695 (eval "$ac_compile") 2>conftest.er1
6696 ac_status=$?
6697 grep -v '^ *+' conftest.er1 >conftest.err
6698 rm -f conftest.er1
6699 cat conftest.err >&5
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); } && {
6702 test -z "$ac_c_werror_flag" ||
6703 test ! -s conftest.err
6704 } && test -s conftest.$ac_objext; then
6705 emacs_cv_personality_linux32=yes
6706 else
6707 echo "$as_me: failed program was:" >&5
6708 sed 's/^/| /' conftest.$ac_ext >&5
6709
6710 emacs_cv_personality_linux32=no
6711 fi
6712
6713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6714 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6715 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6716
6717 if test $emacs_cv_personality_linux32 = yes; then
6718
6719 cat >>confdefs.h <<\_ACEOF
6720 #define HAVE_PERSONALITY_LINUX32 1
6721 _ACEOF
6722
6723 fi
6724
6725
6726 for ac_header in term.h
6727 do
6728 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6729 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6733 else
6734 cat >conftest.$ac_ext <<_ACEOF
6735 /* confdefs.h. */
6736 _ACEOF
6737 cat confdefs.h >>conftest.$ac_ext
6738 cat >>conftest.$ac_ext <<_ACEOF
6739 /* end confdefs.h. */
6740 #include <$ac_header>
6741 _ACEOF
6742 if { (ac_try="$ac_cpp conftest.$ac_ext"
6743 case "(($ac_try" in
6744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6745 *) ac_try_echo=$ac_try;;
6746 esac
6747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6749 ac_status=$?
6750 grep -v '^ *+' conftest.er1 >conftest.err
6751 rm -f conftest.er1
6752 cat conftest.err >&5
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); } >/dev/null && {
6755 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6756 test ! -s conftest.err
6757 }; then
6758 eval "$as_ac_Header=yes"
6759 else
6760 echo "$as_me: failed program was:" >&5
6761 sed 's/^/| /' conftest.$ac_ext >&5
6762
6763 eval "$as_ac_Header=no"
6764 fi
6765
6766 rm -f conftest.err conftest.$ac_ext
6767 fi
6768 ac_res=`eval echo '${'$as_ac_Header'}'`
6769 { echo "$as_me:$LINENO: result: $ac_res" >&5
6770 echo "${ECHO_T}$ac_res" >&6; }
6771 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6772 cat >>confdefs.h <<_ACEOF
6773 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6774 _ACEOF
6775
6776 fi
6777
6778 done
6779
6780 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6781 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6782 if test "${ac_cv_header_stdc+set}" = set; then
6783 echo $ECHO_N "(cached) $ECHO_C" >&6
6784 else
6785 cat >conftest.$ac_ext <<_ACEOF
6786 /* confdefs.h. */
6787 _ACEOF
6788 cat confdefs.h >>conftest.$ac_ext
6789 cat >>conftest.$ac_ext <<_ACEOF
6790 /* end confdefs.h. */
6791 #include <stdlib.h>
6792 #include <stdarg.h>
6793 #include <string.h>
6794 #include <float.h>
6795
6796 int
6797 main ()
6798 {
6799
6800 ;
6801 return 0;
6802 }
6803 _ACEOF
6804 rm -f conftest.$ac_objext
6805 if { (ac_try="$ac_compile"
6806 case "(($ac_try" in
6807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6808 *) ac_try_echo=$ac_try;;
6809 esac
6810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6811 (eval "$ac_compile") 2>conftest.er1
6812 ac_status=$?
6813 grep -v '^ *+' conftest.er1 >conftest.err
6814 rm -f conftest.er1
6815 cat conftest.err >&5
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); } && {
6818 test -z "$ac_c_werror_flag" ||
6819 test ! -s conftest.err
6820 } && test -s conftest.$ac_objext; then
6821 ac_cv_header_stdc=yes
6822 else
6823 echo "$as_me: failed program was:" >&5
6824 sed 's/^/| /' conftest.$ac_ext >&5
6825
6826 ac_cv_header_stdc=no
6827 fi
6828
6829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6830
6831 if test $ac_cv_header_stdc = yes; then
6832 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6833 cat >conftest.$ac_ext <<_ACEOF
6834 /* confdefs.h. */
6835 _ACEOF
6836 cat confdefs.h >>conftest.$ac_ext
6837 cat >>conftest.$ac_ext <<_ACEOF
6838 /* end confdefs.h. */
6839 #include <string.h>
6840
6841 _ACEOF
6842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6843 $EGREP "memchr" >/dev/null 2>&1; then
6844 :
6845 else
6846 ac_cv_header_stdc=no
6847 fi
6848 rm -f conftest*
6849
6850 fi
6851
6852 if test $ac_cv_header_stdc = yes; then
6853 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6854 cat >conftest.$ac_ext <<_ACEOF
6855 /* confdefs.h. */
6856 _ACEOF
6857 cat confdefs.h >>conftest.$ac_ext
6858 cat >>conftest.$ac_ext <<_ACEOF
6859 /* end confdefs.h. */
6860 #include <stdlib.h>
6861
6862 _ACEOF
6863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6864 $EGREP "free" >/dev/null 2>&1; then
6865 :
6866 else
6867 ac_cv_header_stdc=no
6868 fi
6869 rm -f conftest*
6870
6871 fi
6872
6873 if test $ac_cv_header_stdc = yes; then
6874 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6875 if test "$cross_compiling" = yes; then
6876 :
6877 else
6878 cat >conftest.$ac_ext <<_ACEOF
6879 /* confdefs.h. */
6880 _ACEOF
6881 cat confdefs.h >>conftest.$ac_ext
6882 cat >>conftest.$ac_ext <<_ACEOF
6883 /* end confdefs.h. */
6884 #include <ctype.h>
6885 #include <stdlib.h>
6886 #if ((' ' & 0x0FF) == 0x020)
6887 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6888 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6889 #else
6890 # define ISLOWER(c) \
6891 (('a' <= (c) && (c) <= 'i') \
6892 || ('j' <= (c) && (c) <= 'r') \
6893 || ('s' <= (c) && (c) <= 'z'))
6894 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6895 #endif
6896
6897 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6898 int
6899 main ()
6900 {
6901 int i;
6902 for (i = 0; i < 256; i++)
6903 if (XOR (islower (i), ISLOWER (i))
6904 || toupper (i) != TOUPPER (i))
6905 return 2;
6906 return 0;
6907 }
6908 _ACEOF
6909 rm -f conftest$ac_exeext
6910 if { (ac_try="$ac_link"
6911 case "(($ac_try" in
6912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6913 *) ac_try_echo=$ac_try;;
6914 esac
6915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6916 (eval "$ac_link") 2>&5
6917 ac_status=$?
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6920 { (case "(($ac_try" in
6921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6922 *) ac_try_echo=$ac_try;;
6923 esac
6924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6925 (eval "$ac_try") 2>&5
6926 ac_status=$?
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); }; }; then
6929 :
6930 else
6931 echo "$as_me: program exited with status $ac_status" >&5
6932 echo "$as_me: failed program was:" >&5
6933 sed 's/^/| /' conftest.$ac_ext >&5
6934
6935 ( exit $ac_status )
6936 ac_cv_header_stdc=no
6937 fi
6938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6939 fi
6940
6941
6942 fi
6943 fi
6944 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6945 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6946 if test $ac_cv_header_stdc = yes; then
6947
6948 cat >>confdefs.h <<\_ACEOF
6949 #define STDC_HEADERS 1
6950 _ACEOF
6951
6952 fi
6953
6954 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6955 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6956 if test "${ac_cv_header_time+set}" = set; then
6957 echo $ECHO_N "(cached) $ECHO_C" >&6
6958 else
6959 cat >conftest.$ac_ext <<_ACEOF
6960 /* confdefs.h. */
6961 _ACEOF
6962 cat confdefs.h >>conftest.$ac_ext
6963 cat >>conftest.$ac_ext <<_ACEOF
6964 /* end confdefs.h. */
6965 #include <sys/types.h>
6966 #include <sys/time.h>
6967 #include <time.h>
6968
6969 int
6970 main ()
6971 {
6972 if ((struct tm *) 0)
6973 return 0;
6974 ;
6975 return 0;
6976 }
6977 _ACEOF
6978 rm -f conftest.$ac_objext
6979 if { (ac_try="$ac_compile"
6980 case "(($ac_try" in
6981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6982 *) ac_try_echo=$ac_try;;
6983 esac
6984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6985 (eval "$ac_compile") 2>conftest.er1
6986 ac_status=$?
6987 grep -v '^ *+' conftest.er1 >conftest.err
6988 rm -f conftest.er1
6989 cat conftest.err >&5
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); } && {
6992 test -z "$ac_c_werror_flag" ||
6993 test ! -s conftest.err
6994 } && test -s conftest.$ac_objext; then
6995 ac_cv_header_time=yes
6996 else
6997 echo "$as_me: failed program was:" >&5
6998 sed 's/^/| /' conftest.$ac_ext >&5
6999
7000 ac_cv_header_time=no
7001 fi
7002
7003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7004 fi
7005 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7006 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7007 if test $ac_cv_header_time = yes; then
7008
7009 cat >>confdefs.h <<\_ACEOF
7010 #define TIME_WITH_SYS_TIME 1
7011 _ACEOF
7012
7013 fi
7014
7015 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7016 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7017 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7018 echo $ECHO_N "(cached) $ECHO_C" >&6
7019 else
7020 cat >conftest.$ac_ext <<_ACEOF
7021 /* confdefs.h. */
7022 _ACEOF
7023 cat confdefs.h >>conftest.$ac_ext
7024 cat >>conftest.$ac_ext <<_ACEOF
7025 /* end confdefs.h. */
7026 $ac_includes_default
7027 int
7028 main ()
7029 {
7030 #ifndef sys_siglist
7031 (void) sys_siglist;
7032 #endif
7033
7034 ;
7035 return 0;
7036 }
7037 _ACEOF
7038 rm -f conftest.$ac_objext
7039 if { (ac_try="$ac_compile"
7040 case "(($ac_try" in
7041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7042 *) ac_try_echo=$ac_try;;
7043 esac
7044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7045 (eval "$ac_compile") 2>conftest.er1
7046 ac_status=$?
7047 grep -v '^ *+' conftest.er1 >conftest.err
7048 rm -f conftest.er1
7049 cat conftest.err >&5
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); } && {
7052 test -z "$ac_c_werror_flag" ||
7053 test ! -s conftest.err
7054 } && test -s conftest.$ac_objext; then
7055 ac_cv_have_decl_sys_siglist=yes
7056 else
7057 echo "$as_me: failed program was:" >&5
7058 sed 's/^/| /' conftest.$ac_ext >&5
7059
7060 ac_cv_have_decl_sys_siglist=no
7061 fi
7062
7063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7064 fi
7065 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7066 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7067 if test $ac_cv_have_decl_sys_siglist = yes; then
7068
7069 cat >>confdefs.h <<_ACEOF
7070 #define HAVE_DECL_SYS_SIGLIST 1
7071 _ACEOF
7072
7073
7074 else
7075 cat >>confdefs.h <<_ACEOF
7076 #define HAVE_DECL_SYS_SIGLIST 0
7077 _ACEOF
7078
7079
7080 fi
7081
7082
7083 if test $ac_cv_have_decl_sys_siglist != yes; then
7084 # For Tru64, at least:
7085 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7086 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7087 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
7089 else
7090 cat >conftest.$ac_ext <<_ACEOF
7091 /* confdefs.h. */
7092 _ACEOF
7093 cat confdefs.h >>conftest.$ac_ext
7094 cat >>conftest.$ac_ext <<_ACEOF
7095 /* end confdefs.h. */
7096 $ac_includes_default
7097 int
7098 main ()
7099 {
7100 #ifndef __sys_siglist
7101 (void) __sys_siglist;
7102 #endif
7103
7104 ;
7105 return 0;
7106 }
7107 _ACEOF
7108 rm -f conftest.$ac_objext
7109 if { (ac_try="$ac_compile"
7110 case "(($ac_try" in
7111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7112 *) ac_try_echo=$ac_try;;
7113 esac
7114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7115 (eval "$ac_compile") 2>conftest.er1
7116 ac_status=$?
7117 grep -v '^ *+' conftest.er1 >conftest.err
7118 rm -f conftest.er1
7119 cat conftest.err >&5
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); } && {
7122 test -z "$ac_c_werror_flag" ||
7123 test ! -s conftest.err
7124 } && test -s conftest.$ac_objext; then
7125 ac_cv_have_decl___sys_siglist=yes
7126 else
7127 echo "$as_me: failed program was:" >&5
7128 sed 's/^/| /' conftest.$ac_ext >&5
7129
7130 ac_cv_have_decl___sys_siglist=no
7131 fi
7132
7133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7134 fi
7135 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7136 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7137 if test $ac_cv_have_decl___sys_siglist = yes; then
7138
7139 cat >>confdefs.h <<_ACEOF
7140 #define HAVE_DECL___SYS_SIGLIST 1
7141 _ACEOF
7142
7143
7144 else
7145 cat >>confdefs.h <<_ACEOF
7146 #define HAVE_DECL___SYS_SIGLIST 0
7147 _ACEOF
7148
7149
7150 fi
7151
7152
7153 if test $ac_cv_have_decl___sys_siglist = yes; then
7154
7155 cat >>confdefs.h <<\_ACEOF
7156 #define sys_siglist __sys_siglist
7157 _ACEOF
7158
7159 fi
7160 fi
7161 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7162 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7163 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7165 else
7166 cat >conftest.$ac_ext <<_ACEOF
7167 /* confdefs.h. */
7168 _ACEOF
7169 cat confdefs.h >>conftest.$ac_ext
7170 cat >>conftest.$ac_ext <<_ACEOF
7171 /* end confdefs.h. */
7172 #include <sys/types.h>
7173 #include <sys/wait.h>
7174 #ifndef WEXITSTATUS
7175 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7176 #endif
7177 #ifndef WIFEXITED
7178 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7179 #endif
7180
7181 int
7182 main ()
7183 {
7184 int s;
7185 wait (&s);
7186 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7187 ;
7188 return 0;
7189 }
7190 _ACEOF
7191 rm -f conftest.$ac_objext
7192 if { (ac_try="$ac_compile"
7193 case "(($ac_try" in
7194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7195 *) ac_try_echo=$ac_try;;
7196 esac
7197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7198 (eval "$ac_compile") 2>conftest.er1
7199 ac_status=$?
7200 grep -v '^ *+' conftest.er1 >conftest.err
7201 rm -f conftest.er1
7202 cat conftest.err >&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); } && {
7205 test -z "$ac_c_werror_flag" ||
7206 test ! -s conftest.err
7207 } && test -s conftest.$ac_objext; then
7208 ac_cv_header_sys_wait_h=yes
7209 else
7210 echo "$as_me: failed program was:" >&5
7211 sed 's/^/| /' conftest.$ac_ext >&5
7212
7213 ac_cv_header_sys_wait_h=no
7214 fi
7215
7216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7217 fi
7218 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7219 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7220 if test $ac_cv_header_sys_wait_h = yes; then
7221
7222 cat >>confdefs.h <<\_ACEOF
7223 #define HAVE_SYS_WAIT_H 1
7224 _ACEOF
7225
7226 fi
7227
7228
7229 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7230 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7231 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7232 echo $ECHO_N "(cached) $ECHO_C" >&6
7233 else
7234 cat >conftest.$ac_ext <<_ACEOF
7235 /* confdefs.h. */
7236 _ACEOF
7237 cat confdefs.h >>conftest.$ac_ext
7238 cat >>conftest.$ac_ext <<_ACEOF
7239 /* end confdefs.h. */
7240 #ifdef TIME_WITH_SYS_TIME
7241 #include <sys/time.h>
7242 #include <time.h>
7243 #else
7244 #ifdef HAVE_SYS_TIME_H
7245 #include <sys/time.h>
7246 #else
7247 #include <time.h>
7248 #endif
7249 #endif
7250 #ifdef HAVE_UTIME_H
7251 #include <utime.h>
7252 #endif
7253 int
7254 main ()
7255 {
7256 static struct utimbuf x; x.actime = x.modtime;
7257 ;
7258 return 0;
7259 }
7260 _ACEOF
7261 rm -f conftest.$ac_objext
7262 if { (ac_try="$ac_compile"
7263 case "(($ac_try" in
7264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7265 *) ac_try_echo=$ac_try;;
7266 esac
7267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7268 (eval "$ac_compile") 2>conftest.er1
7269 ac_status=$?
7270 grep -v '^ *+' conftest.er1 >conftest.err
7271 rm -f conftest.er1
7272 cat conftest.err >&5
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); } && {
7275 test -z "$ac_c_werror_flag" ||
7276 test ! -s conftest.err
7277 } && test -s conftest.$ac_objext; then
7278 emacs_cv_struct_utimbuf=yes
7279 else
7280 echo "$as_me: failed program was:" >&5
7281 sed 's/^/| /' conftest.$ac_ext >&5
7282
7283 emacs_cv_struct_utimbuf=no
7284 fi
7285
7286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7287 fi
7288 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7289 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7290 if test $emacs_cv_struct_utimbuf = yes; then
7291
7292 cat >>confdefs.h <<\_ACEOF
7293 #define HAVE_STRUCT_UTIMBUF 1
7294 _ACEOF
7295
7296 fi
7297
7298 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7299 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7300 if test "${ac_cv_type_signal+set}" = set; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
7302 else
7303 cat >conftest.$ac_ext <<_ACEOF
7304 /* confdefs.h. */
7305 _ACEOF
7306 cat confdefs.h >>conftest.$ac_ext
7307 cat >>conftest.$ac_ext <<_ACEOF
7308 /* end confdefs.h. */
7309 #include <sys/types.h>
7310 #include <signal.h>
7311
7312 int
7313 main ()
7314 {
7315 return *(signal (0, 0)) (0) == 1;
7316 ;
7317 return 0;
7318 }
7319 _ACEOF
7320 rm -f conftest.$ac_objext
7321 if { (ac_try="$ac_compile"
7322 case "(($ac_try" in
7323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7324 *) ac_try_echo=$ac_try;;
7325 esac
7326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7327 (eval "$ac_compile") 2>conftest.er1
7328 ac_status=$?
7329 grep -v '^ *+' conftest.er1 >conftest.err
7330 rm -f conftest.er1
7331 cat conftest.err >&5
7332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333 (exit $ac_status); } && {
7334 test -z "$ac_c_werror_flag" ||
7335 test ! -s conftest.err
7336 } && test -s conftest.$ac_objext; then
7337 ac_cv_type_signal=int
7338 else
7339 echo "$as_me: failed program was:" >&5
7340 sed 's/^/| /' conftest.$ac_ext >&5
7341
7342 ac_cv_type_signal=void
7343 fi
7344
7345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7346 fi
7347 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7348 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7349
7350 cat >>confdefs.h <<_ACEOF
7351 #define RETSIGTYPE $ac_cv_type_signal
7352 _ACEOF
7353
7354
7355
7356 { echo "$as_me:$LINENO: checking for speed_t" >&5
7357 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7358 if test "${emacs_cv_speed_t+set}" = set; then
7359 echo $ECHO_N "(cached) $ECHO_C" >&6
7360 else
7361 cat >conftest.$ac_ext <<_ACEOF
7362 /* confdefs.h. */
7363 _ACEOF
7364 cat confdefs.h >>conftest.$ac_ext
7365 cat >>conftest.$ac_ext <<_ACEOF
7366 /* end confdefs.h. */
7367 #include <termios.h>
7368 int
7369 main ()
7370 {
7371 speed_t x = 1;
7372 ;
7373 return 0;
7374 }
7375 _ACEOF
7376 rm -f conftest.$ac_objext
7377 if { (ac_try="$ac_compile"
7378 case "(($ac_try" in
7379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7380 *) ac_try_echo=$ac_try;;
7381 esac
7382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7383 (eval "$ac_compile") 2>conftest.er1
7384 ac_status=$?
7385 grep -v '^ *+' conftest.er1 >conftest.err
7386 rm -f conftest.er1
7387 cat conftest.err >&5
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); } && {
7390 test -z "$ac_c_werror_flag" ||
7391 test ! -s conftest.err
7392 } && test -s conftest.$ac_objext; then
7393 emacs_cv_speed_t=yes
7394 else
7395 echo "$as_me: failed program was:" >&5
7396 sed 's/^/| /' conftest.$ac_ext >&5
7397
7398 emacs_cv_speed_t=no
7399 fi
7400
7401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7402 fi
7403 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7404 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7405 if test $emacs_cv_speed_t = yes; then
7406
7407 cat >>confdefs.h <<\_ACEOF
7408 #define HAVE_SPEED_T 1
7409 _ACEOF
7410
7411 fi
7412
7413 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7414 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7415 if test "${emacs_cv_struct_timeval+set}" = set; then
7416 echo $ECHO_N "(cached) $ECHO_C" >&6
7417 else
7418 cat >conftest.$ac_ext <<_ACEOF
7419 /* confdefs.h. */
7420 _ACEOF
7421 cat confdefs.h >>conftest.$ac_ext
7422 cat >>conftest.$ac_ext <<_ACEOF
7423 /* end confdefs.h. */
7424 #ifdef TIME_WITH_SYS_TIME
7425 #include <sys/time.h>
7426 #include <time.h>
7427 #else
7428 #ifdef HAVE_SYS_TIME_H
7429 #include <sys/time.h>
7430 #else
7431 #include <time.h>
7432 #endif
7433 #endif
7434 int
7435 main ()
7436 {
7437 static struct timeval x; x.tv_sec = x.tv_usec;
7438 ;
7439 return 0;
7440 }
7441 _ACEOF
7442 rm -f conftest.$ac_objext
7443 if { (ac_try="$ac_compile"
7444 case "(($ac_try" in
7445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7446 *) ac_try_echo=$ac_try;;
7447 esac
7448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7449 (eval "$ac_compile") 2>conftest.er1
7450 ac_status=$?
7451 grep -v '^ *+' conftest.er1 >conftest.err
7452 rm -f conftest.er1
7453 cat conftest.err >&5
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); } && {
7456 test -z "$ac_c_werror_flag" ||
7457 test ! -s conftest.err
7458 } && test -s conftest.$ac_objext; then
7459 emacs_cv_struct_timeval=yes
7460 else
7461 echo "$as_me: failed program was:" >&5
7462 sed 's/^/| /' conftest.$ac_ext >&5
7463
7464 emacs_cv_struct_timeval=no
7465 fi
7466
7467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7468 fi
7469 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7470 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7471 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7472 if test $emacs_cv_struct_timeval = yes; then
7473
7474 cat >>confdefs.h <<\_ACEOF
7475 #define HAVE_TIMEVAL 1
7476 _ACEOF
7477
7478 fi
7479
7480 { echo "$as_me:$LINENO: checking for struct exception" >&5
7481 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7482 if test "${emacs_cv_struct_exception+set}" = set; then
7483 echo $ECHO_N "(cached) $ECHO_C" >&6
7484 else
7485 cat >conftest.$ac_ext <<_ACEOF
7486 /* confdefs.h. */
7487 _ACEOF
7488 cat confdefs.h >>conftest.$ac_ext
7489 cat >>conftest.$ac_ext <<_ACEOF
7490 /* end confdefs.h. */
7491 #include <math.h>
7492 int
7493 main ()
7494 {
7495 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7496 ;
7497 return 0;
7498 }
7499 _ACEOF
7500 rm -f conftest.$ac_objext
7501 if { (ac_try="$ac_compile"
7502 case "(($ac_try" in
7503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7504 *) ac_try_echo=$ac_try;;
7505 esac
7506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7507 (eval "$ac_compile") 2>conftest.er1
7508 ac_status=$?
7509 grep -v '^ *+' conftest.er1 >conftest.err
7510 rm -f conftest.er1
7511 cat conftest.err >&5
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); } && {
7514 test -z "$ac_c_werror_flag" ||
7515 test ! -s conftest.err
7516 } && test -s conftest.$ac_objext; then
7517 emacs_cv_struct_exception=yes
7518 else
7519 echo "$as_me: failed program was:" >&5
7520 sed 's/^/| /' conftest.$ac_ext >&5
7521
7522 emacs_cv_struct_exception=no
7523 fi
7524
7525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7526 fi
7527 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7528 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7529 HAVE_EXCEPTION=$emacs_cv_struct_exception
7530 if test $emacs_cv_struct_exception != yes; then
7531
7532 cat >>confdefs.h <<\_ACEOF
7533 #define NO_MATHERR 1
7534 _ACEOF
7535
7536 fi
7537
7538
7539 for ac_header in sys/socket.h
7540 do
7541 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7543 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
7547 fi
7548 ac_res=`eval echo '${'$as_ac_Header'}'`
7549 { echo "$as_me:$LINENO: result: $ac_res" >&5
7550 echo "${ECHO_T}$ac_res" >&6; }
7551 else
7552 # Is the header compilable?
7553 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7554 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7555 cat >conftest.$ac_ext <<_ACEOF
7556 /* confdefs.h. */
7557 _ACEOF
7558 cat confdefs.h >>conftest.$ac_ext
7559 cat >>conftest.$ac_ext <<_ACEOF
7560 /* end confdefs.h. */
7561 $ac_includes_default
7562 #include <$ac_header>
7563 _ACEOF
7564 rm -f conftest.$ac_objext
7565 if { (ac_try="$ac_compile"
7566 case "(($ac_try" in
7567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7568 *) ac_try_echo=$ac_try;;
7569 esac
7570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7571 (eval "$ac_compile") 2>conftest.er1
7572 ac_status=$?
7573 grep -v '^ *+' conftest.er1 >conftest.err
7574 rm -f conftest.er1
7575 cat conftest.err >&5
7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); } && {
7578 test -z "$ac_c_werror_flag" ||
7579 test ! -s conftest.err
7580 } && test -s conftest.$ac_objext; then
7581 ac_header_compiler=yes
7582 else
7583 echo "$as_me: failed program was:" >&5
7584 sed 's/^/| /' conftest.$ac_ext >&5
7585
7586 ac_header_compiler=no
7587 fi
7588
7589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7590 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7591 echo "${ECHO_T}$ac_header_compiler" >&6; }
7592
7593 # Is the header present?
7594 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7595 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7596 cat >conftest.$ac_ext <<_ACEOF
7597 /* confdefs.h. */
7598 _ACEOF
7599 cat confdefs.h >>conftest.$ac_ext
7600 cat >>conftest.$ac_ext <<_ACEOF
7601 /* end confdefs.h. */
7602 #include <$ac_header>
7603 _ACEOF
7604 if { (ac_try="$ac_cpp conftest.$ac_ext"
7605 case "(($ac_try" in
7606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7607 *) ac_try_echo=$ac_try;;
7608 esac
7609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7611 ac_status=$?
7612 grep -v '^ *+' conftest.er1 >conftest.err
7613 rm -f conftest.er1
7614 cat conftest.err >&5
7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); } >/dev/null && {
7617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7618 test ! -s conftest.err
7619 }; then
7620 ac_header_preproc=yes
7621 else
7622 echo "$as_me: failed program was:" >&5
7623 sed 's/^/| /' conftest.$ac_ext >&5
7624
7625 ac_header_preproc=no
7626 fi
7627
7628 rm -f conftest.err conftest.$ac_ext
7629 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7630 echo "${ECHO_T}$ac_header_preproc" >&6; }
7631
7632 # So? What about this header?
7633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7634 yes:no: )
7635 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7636 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7638 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7639 ac_header_preproc=yes
7640 ;;
7641 no:yes:* )
7642 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7643 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7644 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7645 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7646 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7647 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7648 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7649 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7651 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7652 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7653 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7654
7655 ;;
7656 esac
7657 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7660 echo $ECHO_N "(cached) $ECHO_C" >&6
7661 else
7662 eval "$as_ac_Header=\$ac_header_preproc"
7663 fi
7664 ac_res=`eval echo '${'$as_ac_Header'}'`
7665 { echo "$as_me:$LINENO: result: $ac_res" >&5
7666 echo "${ECHO_T}$ac_res" >&6; }
7667
7668 fi
7669 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7670 cat >>confdefs.h <<_ACEOF
7671 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7672 _ACEOF
7673
7674 fi
7675
7676 done
7677
7678
7679 for ac_header in net/if.h
7680 do
7681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7682 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7685 echo $ECHO_N "(cached) $ECHO_C" >&6
7686 else
7687 cat >conftest.$ac_ext <<_ACEOF
7688 /* confdefs.h. */
7689 _ACEOF
7690 cat confdefs.h >>conftest.$ac_ext
7691 cat >>conftest.$ac_ext <<_ACEOF
7692 /* end confdefs.h. */
7693 $ac_includes_default
7694 #if HAVE_SYS_SOCKET_H
7695 #include <sys/socket.h>
7696 #endif
7697
7698 #include <$ac_header>
7699 _ACEOF
7700 rm -f conftest.$ac_objext
7701 if { (ac_try="$ac_compile"
7702 case "(($ac_try" in
7703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7704 *) ac_try_echo=$ac_try;;
7705 esac
7706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7707 (eval "$ac_compile") 2>conftest.er1
7708 ac_status=$?
7709 grep -v '^ *+' conftest.er1 >conftest.err
7710 rm -f conftest.er1
7711 cat conftest.err >&5
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); } && {
7714 test -z "$ac_c_werror_flag" ||
7715 test ! -s conftest.err
7716 } && test -s conftest.$ac_objext; then
7717 eval "$as_ac_Header=yes"
7718 else
7719 echo "$as_me: failed program was:" >&5
7720 sed 's/^/| /' conftest.$ac_ext >&5
7721
7722 eval "$as_ac_Header=no"
7723 fi
7724
7725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7726 fi
7727 ac_res=`eval echo '${'$as_ac_Header'}'`
7728 { echo "$as_me:$LINENO: result: $ac_res" >&5
7729 echo "${ECHO_T}$ac_res" >&6; }
7730 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7731 cat >>confdefs.h <<_ACEOF
7732 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7733 _ACEOF
7734
7735 fi
7736
7737 done
7738
7739
7740 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7741 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7742 if test "${ac_cv_struct_tm+set}" = set; then
7743 echo $ECHO_N "(cached) $ECHO_C" >&6
7744 else
7745 cat >conftest.$ac_ext <<_ACEOF
7746 /* confdefs.h. */
7747 _ACEOF
7748 cat confdefs.h >>conftest.$ac_ext
7749 cat >>conftest.$ac_ext <<_ACEOF
7750 /* end confdefs.h. */
7751 #include <sys/types.h>
7752 #include <time.h>
7753
7754 int
7755 main ()
7756 {
7757 struct tm tm;
7758 int *p = &tm.tm_sec;
7759 return !p;
7760 ;
7761 return 0;
7762 }
7763 _ACEOF
7764 rm -f conftest.$ac_objext
7765 if { (ac_try="$ac_compile"
7766 case "(($ac_try" in
7767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7768 *) ac_try_echo=$ac_try;;
7769 esac
7770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7771 (eval "$ac_compile") 2>conftest.er1
7772 ac_status=$?
7773 grep -v '^ *+' conftest.er1 >conftest.err
7774 rm -f conftest.er1
7775 cat conftest.err >&5
7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); } && {
7778 test -z "$ac_c_werror_flag" ||
7779 test ! -s conftest.err
7780 } && test -s conftest.$ac_objext; then
7781 ac_cv_struct_tm=time.h
7782 else
7783 echo "$as_me: failed program was:" >&5
7784 sed 's/^/| /' conftest.$ac_ext >&5
7785
7786 ac_cv_struct_tm=sys/time.h
7787 fi
7788
7789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7790 fi
7791 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7792 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7793 if test $ac_cv_struct_tm = sys/time.h; then
7794
7795 cat >>confdefs.h <<\_ACEOF
7796 #define TM_IN_SYS_TIME 1
7797 _ACEOF
7798
7799 fi
7800
7801 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7802 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7803 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7804 echo $ECHO_N "(cached) $ECHO_C" >&6
7805 else
7806 cat >conftest.$ac_ext <<_ACEOF
7807 /* confdefs.h. */
7808 _ACEOF
7809 cat confdefs.h >>conftest.$ac_ext
7810 cat >>conftest.$ac_ext <<_ACEOF
7811 /* end confdefs.h. */
7812 #include <sys/types.h>
7813 #include <$ac_cv_struct_tm>
7814
7815
7816 int
7817 main ()
7818 {
7819 static struct tm ac_aggr;
7820 if (ac_aggr.tm_zone)
7821 return 0;
7822 ;
7823 return 0;
7824 }
7825 _ACEOF
7826 rm -f conftest.$ac_objext
7827 if { (ac_try="$ac_compile"
7828 case "(($ac_try" in
7829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7830 *) ac_try_echo=$ac_try;;
7831 esac
7832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7833 (eval "$ac_compile") 2>conftest.er1
7834 ac_status=$?
7835 grep -v '^ *+' conftest.er1 >conftest.err
7836 rm -f conftest.er1
7837 cat conftest.err >&5
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); } && {
7840 test -z "$ac_c_werror_flag" ||
7841 test ! -s conftest.err
7842 } && test -s conftest.$ac_objext; then
7843 ac_cv_member_struct_tm_tm_zone=yes
7844 else
7845 echo "$as_me: failed program was:" >&5
7846 sed 's/^/| /' conftest.$ac_ext >&5
7847
7848 cat >conftest.$ac_ext <<_ACEOF
7849 /* confdefs.h. */
7850 _ACEOF
7851 cat confdefs.h >>conftest.$ac_ext
7852 cat >>conftest.$ac_ext <<_ACEOF
7853 /* end confdefs.h. */
7854 #include <sys/types.h>
7855 #include <$ac_cv_struct_tm>
7856
7857
7858 int
7859 main ()
7860 {
7861 static struct tm ac_aggr;
7862 if (sizeof ac_aggr.tm_zone)
7863 return 0;
7864 ;
7865 return 0;
7866 }
7867 _ACEOF
7868 rm -f conftest.$ac_objext
7869 if { (ac_try="$ac_compile"
7870 case "(($ac_try" in
7871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7872 *) ac_try_echo=$ac_try;;
7873 esac
7874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7875 (eval "$ac_compile") 2>conftest.er1
7876 ac_status=$?
7877 grep -v '^ *+' conftest.er1 >conftest.err
7878 rm -f conftest.er1
7879 cat conftest.err >&5
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); } && {
7882 test -z "$ac_c_werror_flag" ||
7883 test ! -s conftest.err
7884 } && test -s conftest.$ac_objext; then
7885 ac_cv_member_struct_tm_tm_zone=yes
7886 else
7887 echo "$as_me: failed program was:" >&5
7888 sed 's/^/| /' conftest.$ac_ext >&5
7889
7890 ac_cv_member_struct_tm_tm_zone=no
7891 fi
7892
7893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7894 fi
7895
7896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7897 fi
7898 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7899 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7900 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7901
7902 cat >>confdefs.h <<_ACEOF
7903 #define HAVE_STRUCT_TM_TM_ZONE 1
7904 _ACEOF
7905
7906
7907 fi
7908
7909 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7910
7911 cat >>confdefs.h <<\_ACEOF
7912 #define HAVE_TM_ZONE 1
7913 _ACEOF
7914
7915 else
7916 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7917 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7918 if test "${ac_cv_have_decl_tzname+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7920 else
7921 cat >conftest.$ac_ext <<_ACEOF
7922 /* confdefs.h. */
7923 _ACEOF
7924 cat confdefs.h >>conftest.$ac_ext
7925 cat >>conftest.$ac_ext <<_ACEOF
7926 /* end confdefs.h. */
7927 #include <time.h>
7928
7929 int
7930 main ()
7931 {
7932 #ifndef tzname
7933 (void) tzname;
7934 #endif
7935
7936 ;
7937 return 0;
7938 }
7939 _ACEOF
7940 rm -f conftest.$ac_objext
7941 if { (ac_try="$ac_compile"
7942 case "(($ac_try" in
7943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7944 *) ac_try_echo=$ac_try;;
7945 esac
7946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7947 (eval "$ac_compile") 2>conftest.er1
7948 ac_status=$?
7949 grep -v '^ *+' conftest.er1 >conftest.err
7950 rm -f conftest.er1
7951 cat conftest.err >&5
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); } && {
7954 test -z "$ac_c_werror_flag" ||
7955 test ! -s conftest.err
7956 } && test -s conftest.$ac_objext; then
7957 ac_cv_have_decl_tzname=yes
7958 else
7959 echo "$as_me: failed program was:" >&5
7960 sed 's/^/| /' conftest.$ac_ext >&5
7961
7962 ac_cv_have_decl_tzname=no
7963 fi
7964
7965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7966 fi
7967 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7968 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7969 if test $ac_cv_have_decl_tzname = yes; then
7970
7971 cat >>confdefs.h <<_ACEOF
7972 #define HAVE_DECL_TZNAME 1
7973 _ACEOF
7974
7975
7976 else
7977 cat >>confdefs.h <<_ACEOF
7978 #define HAVE_DECL_TZNAME 0
7979 _ACEOF
7980
7981
7982 fi
7983
7984
7985 { echo "$as_me:$LINENO: checking for tzname" >&5
7986 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7987 if test "${ac_cv_var_tzname+set}" = set; then
7988 echo $ECHO_N "(cached) $ECHO_C" >&6
7989 else
7990 cat >conftest.$ac_ext <<_ACEOF
7991 /* confdefs.h. */
7992 _ACEOF
7993 cat confdefs.h >>conftest.$ac_ext
7994 cat >>conftest.$ac_ext <<_ACEOF
7995 /* end confdefs.h. */
7996 #include <time.h>
7997 #if !HAVE_DECL_TZNAME
7998 extern char *tzname[];
7999 #endif
8000
8001 int
8002 main ()
8003 {
8004 return tzname[0][0];
8005 ;
8006 return 0;
8007 }
8008 _ACEOF
8009 rm -f conftest.$ac_objext conftest$ac_exeext
8010 if { (ac_try="$ac_link"
8011 case "(($ac_try" in
8012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8013 *) ac_try_echo=$ac_try;;
8014 esac
8015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8016 (eval "$ac_link") 2>conftest.er1
8017 ac_status=$?
8018 grep -v '^ *+' conftest.er1 >conftest.err
8019 rm -f conftest.er1
8020 cat conftest.err >&5
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); } && {
8023 test -z "$ac_c_werror_flag" ||
8024 test ! -s conftest.err
8025 } && test -s conftest$ac_exeext &&
8026 $as_test_x conftest$ac_exeext; then
8027 ac_cv_var_tzname=yes
8028 else
8029 echo "$as_me: failed program was:" >&5
8030 sed 's/^/| /' conftest.$ac_ext >&5
8031
8032 ac_cv_var_tzname=no
8033 fi
8034
8035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8036 conftest$ac_exeext conftest.$ac_ext
8037 fi
8038 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8039 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8040 if test $ac_cv_var_tzname = yes; then
8041
8042 cat >>confdefs.h <<\_ACEOF
8043 #define HAVE_TZNAME 1
8044 _ACEOF
8045
8046 fi
8047 fi
8048
8049 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8050 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8051 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8052 echo $ECHO_N "(cached) $ECHO_C" >&6
8053 else
8054 cat >conftest.$ac_ext <<_ACEOF
8055 /* confdefs.h. */
8056 _ACEOF
8057 cat confdefs.h >>conftest.$ac_ext
8058 cat >>conftest.$ac_ext <<_ACEOF
8059 /* end confdefs.h. */
8060 #include <time.h>
8061
8062 int
8063 main ()
8064 {
8065 static struct tm ac_aggr;
8066 if (ac_aggr.tm_gmtoff)
8067 return 0;
8068 ;
8069 return 0;
8070 }
8071 _ACEOF
8072 rm -f conftest.$ac_objext
8073 if { (ac_try="$ac_compile"
8074 case "(($ac_try" in
8075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8076 *) ac_try_echo=$ac_try;;
8077 esac
8078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8079 (eval "$ac_compile") 2>conftest.er1
8080 ac_status=$?
8081 grep -v '^ *+' conftest.er1 >conftest.err
8082 rm -f conftest.er1
8083 cat conftest.err >&5
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); } && {
8086 test -z "$ac_c_werror_flag" ||
8087 test ! -s conftest.err
8088 } && test -s conftest.$ac_objext; then
8089 ac_cv_member_struct_tm_tm_gmtoff=yes
8090 else
8091 echo "$as_me: failed program was:" >&5
8092 sed 's/^/| /' conftest.$ac_ext >&5
8093
8094 cat >conftest.$ac_ext <<_ACEOF
8095 /* confdefs.h. */
8096 _ACEOF
8097 cat confdefs.h >>conftest.$ac_ext
8098 cat >>conftest.$ac_ext <<_ACEOF
8099 /* end confdefs.h. */
8100 #include <time.h>
8101
8102 int
8103 main ()
8104 {
8105 static struct tm ac_aggr;
8106 if (sizeof ac_aggr.tm_gmtoff)
8107 return 0;
8108 ;
8109 return 0;
8110 }
8111 _ACEOF
8112 rm -f conftest.$ac_objext
8113 if { (ac_try="$ac_compile"
8114 case "(($ac_try" in
8115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8116 *) ac_try_echo=$ac_try;;
8117 esac
8118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8119 (eval "$ac_compile") 2>conftest.er1
8120 ac_status=$?
8121 grep -v '^ *+' conftest.er1 >conftest.err
8122 rm -f conftest.er1
8123 cat conftest.err >&5
8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); } && {
8126 test -z "$ac_c_werror_flag" ||
8127 test ! -s conftest.err
8128 } && test -s conftest.$ac_objext; then
8129 ac_cv_member_struct_tm_tm_gmtoff=yes
8130 else
8131 echo "$as_me: failed program was:" >&5
8132 sed 's/^/| /' conftest.$ac_ext >&5
8133
8134 ac_cv_member_struct_tm_tm_gmtoff=no
8135 fi
8136
8137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8138 fi
8139
8140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8141 fi
8142 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8143 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8144 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8145
8146 cat >>confdefs.h <<\_ACEOF
8147 #define HAVE_TM_GMTOFF 1
8148 _ACEOF
8149
8150 fi
8151
8152 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8153 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8154 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8155 echo $ECHO_N "(cached) $ECHO_C" >&6
8156 else
8157 cat >conftest.$ac_ext <<_ACEOF
8158 /* confdefs.h. */
8159 _ACEOF
8160 cat confdefs.h >>conftest.$ac_ext
8161 cat >>conftest.$ac_ext <<_ACEOF
8162 /* end confdefs.h. */
8163 $ac_includes_default
8164 #if HAVE_SYS_SOCKET_H
8165 #include <sys/socket.h>
8166 #endif
8167 #if HAVE_NET_IF_H
8168 #include <net/if.h>
8169 #endif
8170
8171 int
8172 main ()
8173 {
8174 static struct ifreq ac_aggr;
8175 if (ac_aggr.ifr_flags)
8176 return 0;
8177 ;
8178 return 0;
8179 }
8180 _ACEOF
8181 rm -f conftest.$ac_objext
8182 if { (ac_try="$ac_compile"
8183 case "(($ac_try" in
8184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8185 *) ac_try_echo=$ac_try;;
8186 esac
8187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8188 (eval "$ac_compile") 2>conftest.er1
8189 ac_status=$?
8190 grep -v '^ *+' conftest.er1 >conftest.err
8191 rm -f conftest.er1
8192 cat conftest.err >&5
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); } && {
8195 test -z "$ac_c_werror_flag" ||
8196 test ! -s conftest.err
8197 } && test -s conftest.$ac_objext; then
8198 ac_cv_member_struct_ifreq_ifr_flags=yes
8199 else
8200 echo "$as_me: failed program was:" >&5
8201 sed 's/^/| /' conftest.$ac_ext >&5
8202
8203 cat >conftest.$ac_ext <<_ACEOF
8204 /* confdefs.h. */
8205 _ACEOF
8206 cat confdefs.h >>conftest.$ac_ext
8207 cat >>conftest.$ac_ext <<_ACEOF
8208 /* end confdefs.h. */
8209 $ac_includes_default
8210 #if HAVE_SYS_SOCKET_H
8211 #include <sys/socket.h>
8212 #endif
8213 #if HAVE_NET_IF_H
8214 #include <net/if.h>
8215 #endif
8216
8217 int
8218 main ()
8219 {
8220 static struct ifreq ac_aggr;
8221 if (sizeof ac_aggr.ifr_flags)
8222 return 0;
8223 ;
8224 return 0;
8225 }
8226 _ACEOF
8227 rm -f conftest.$ac_objext
8228 if { (ac_try="$ac_compile"
8229 case "(($ac_try" in
8230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8231 *) ac_try_echo=$ac_try;;
8232 esac
8233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8234 (eval "$ac_compile") 2>conftest.er1
8235 ac_status=$?
8236 grep -v '^ *+' conftest.er1 >conftest.err
8237 rm -f conftest.er1
8238 cat conftest.err >&5
8239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240 (exit $ac_status); } && {
8241 test -z "$ac_c_werror_flag" ||
8242 test ! -s conftest.err
8243 } && test -s conftest.$ac_objext; then
8244 ac_cv_member_struct_ifreq_ifr_flags=yes
8245 else
8246 echo "$as_me: failed program was:" >&5
8247 sed 's/^/| /' conftest.$ac_ext >&5
8248
8249 ac_cv_member_struct_ifreq_ifr_flags=no
8250 fi
8251
8252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8253 fi
8254
8255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8256 fi
8257 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8258 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8259 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8260
8261 cat >>confdefs.h <<_ACEOF
8262 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8263 _ACEOF
8264
8265
8266 fi
8267 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8268 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8269 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8270 echo $ECHO_N "(cached) $ECHO_C" >&6
8271 else
8272 cat >conftest.$ac_ext <<_ACEOF
8273 /* confdefs.h. */
8274 _ACEOF
8275 cat confdefs.h >>conftest.$ac_ext
8276 cat >>conftest.$ac_ext <<_ACEOF
8277 /* end confdefs.h. */
8278 $ac_includes_default
8279 #if HAVE_SYS_SOCKET_H
8280 #include <sys/socket.h>
8281 #endif
8282 #if HAVE_NET_IF_H
8283 #include <net/if.h>
8284 #endif
8285
8286 int
8287 main ()
8288 {
8289 static struct ifreq ac_aggr;
8290 if (ac_aggr.ifr_hwaddr)
8291 return 0;
8292 ;
8293 return 0;
8294 }
8295 _ACEOF
8296 rm -f conftest.$ac_objext
8297 if { (ac_try="$ac_compile"
8298 case "(($ac_try" in
8299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8300 *) ac_try_echo=$ac_try;;
8301 esac
8302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8303 (eval "$ac_compile") 2>conftest.er1
8304 ac_status=$?
8305 grep -v '^ *+' conftest.er1 >conftest.err
8306 rm -f conftest.er1
8307 cat conftest.err >&5
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); } && {
8310 test -z "$ac_c_werror_flag" ||
8311 test ! -s conftest.err
8312 } && test -s conftest.$ac_objext; then
8313 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8314 else
8315 echo "$as_me: failed program was:" >&5
8316 sed 's/^/| /' conftest.$ac_ext >&5
8317
8318 cat >conftest.$ac_ext <<_ACEOF
8319 /* confdefs.h. */
8320 _ACEOF
8321 cat confdefs.h >>conftest.$ac_ext
8322 cat >>conftest.$ac_ext <<_ACEOF
8323 /* end confdefs.h. */
8324 $ac_includes_default
8325 #if HAVE_SYS_SOCKET_H
8326 #include <sys/socket.h>
8327 #endif
8328 #if HAVE_NET_IF_H
8329 #include <net/if.h>
8330 #endif
8331
8332 int
8333 main ()
8334 {
8335 static struct ifreq ac_aggr;
8336 if (sizeof ac_aggr.ifr_hwaddr)
8337 return 0;
8338 ;
8339 return 0;
8340 }
8341 _ACEOF
8342 rm -f conftest.$ac_objext
8343 if { (ac_try="$ac_compile"
8344 case "(($ac_try" in
8345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8346 *) ac_try_echo=$ac_try;;
8347 esac
8348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8349 (eval "$ac_compile") 2>conftest.er1
8350 ac_status=$?
8351 grep -v '^ *+' conftest.er1 >conftest.err
8352 rm -f conftest.er1
8353 cat conftest.err >&5
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); } && {
8356 test -z "$ac_c_werror_flag" ||
8357 test ! -s conftest.err
8358 } && test -s conftest.$ac_objext; then
8359 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8360 else
8361 echo "$as_me: failed program was:" >&5
8362 sed 's/^/| /' conftest.$ac_ext >&5
8363
8364 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8365 fi
8366
8367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8368 fi
8369
8370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8371 fi
8372 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8373 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8374 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8375
8376 cat >>confdefs.h <<_ACEOF
8377 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8378 _ACEOF
8379
8380
8381 fi
8382 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8383 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8384 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8385 echo $ECHO_N "(cached) $ECHO_C" >&6
8386 else
8387 cat >conftest.$ac_ext <<_ACEOF
8388 /* confdefs.h. */
8389 _ACEOF
8390 cat confdefs.h >>conftest.$ac_ext
8391 cat >>conftest.$ac_ext <<_ACEOF
8392 /* end confdefs.h. */
8393 $ac_includes_default
8394 #if HAVE_SYS_SOCKET_H
8395 #include <sys/socket.h>
8396 #endif
8397 #if HAVE_NET_IF_H
8398 #include <net/if.h>
8399 #endif
8400
8401 int
8402 main ()
8403 {
8404 static struct ifreq ac_aggr;
8405 if (ac_aggr.ifr_netmask)
8406 return 0;
8407 ;
8408 return 0;
8409 }
8410 _ACEOF
8411 rm -f conftest.$ac_objext
8412 if { (ac_try="$ac_compile"
8413 case "(($ac_try" in
8414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8415 *) ac_try_echo=$ac_try;;
8416 esac
8417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8418 (eval "$ac_compile") 2>conftest.er1
8419 ac_status=$?
8420 grep -v '^ *+' conftest.er1 >conftest.err
8421 rm -f conftest.er1
8422 cat conftest.err >&5
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); } && {
8425 test -z "$ac_c_werror_flag" ||
8426 test ! -s conftest.err
8427 } && test -s conftest.$ac_objext; then
8428 ac_cv_member_struct_ifreq_ifr_netmask=yes
8429 else
8430 echo "$as_me: failed program was:" >&5
8431 sed 's/^/| /' conftest.$ac_ext >&5
8432
8433 cat >conftest.$ac_ext <<_ACEOF
8434 /* confdefs.h. */
8435 _ACEOF
8436 cat confdefs.h >>conftest.$ac_ext
8437 cat >>conftest.$ac_ext <<_ACEOF
8438 /* end confdefs.h. */
8439 $ac_includes_default
8440 #if HAVE_SYS_SOCKET_H
8441 #include <sys/socket.h>
8442 #endif
8443 #if HAVE_NET_IF_H
8444 #include <net/if.h>
8445 #endif
8446
8447 int
8448 main ()
8449 {
8450 static struct ifreq ac_aggr;
8451 if (sizeof ac_aggr.ifr_netmask)
8452 return 0;
8453 ;
8454 return 0;
8455 }
8456 _ACEOF
8457 rm -f conftest.$ac_objext
8458 if { (ac_try="$ac_compile"
8459 case "(($ac_try" in
8460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8461 *) ac_try_echo=$ac_try;;
8462 esac
8463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8464 (eval "$ac_compile") 2>conftest.er1
8465 ac_status=$?
8466 grep -v '^ *+' conftest.er1 >conftest.err
8467 rm -f conftest.er1
8468 cat conftest.err >&5
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); } && {
8471 test -z "$ac_c_werror_flag" ||
8472 test ! -s conftest.err
8473 } && test -s conftest.$ac_objext; then
8474 ac_cv_member_struct_ifreq_ifr_netmask=yes
8475 else
8476 echo "$as_me: failed program was:" >&5
8477 sed 's/^/| /' conftest.$ac_ext >&5
8478
8479 ac_cv_member_struct_ifreq_ifr_netmask=no
8480 fi
8481
8482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8483 fi
8484
8485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8486 fi
8487 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8488 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8489 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8490
8491 cat >>confdefs.h <<_ACEOF
8492 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8493 _ACEOF
8494
8495
8496 fi
8497 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8498 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8499 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8500 echo $ECHO_N "(cached) $ECHO_C" >&6
8501 else
8502 cat >conftest.$ac_ext <<_ACEOF
8503 /* confdefs.h. */
8504 _ACEOF
8505 cat confdefs.h >>conftest.$ac_ext
8506 cat >>conftest.$ac_ext <<_ACEOF
8507 /* end confdefs.h. */
8508 $ac_includes_default
8509 #if HAVE_SYS_SOCKET_H
8510 #include <sys/socket.h>
8511 #endif
8512 #if HAVE_NET_IF_H
8513 #include <net/if.h>
8514 #endif
8515
8516 int
8517 main ()
8518 {
8519 static struct ifreq ac_aggr;
8520 if (ac_aggr.ifr_broadaddr)
8521 return 0;
8522 ;
8523 return 0;
8524 }
8525 _ACEOF
8526 rm -f conftest.$ac_objext
8527 if { (ac_try="$ac_compile"
8528 case "(($ac_try" in
8529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8530 *) ac_try_echo=$ac_try;;
8531 esac
8532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8533 (eval "$ac_compile") 2>conftest.er1
8534 ac_status=$?
8535 grep -v '^ *+' conftest.er1 >conftest.err
8536 rm -f conftest.er1
8537 cat conftest.err >&5
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); } && {
8540 test -z "$ac_c_werror_flag" ||
8541 test ! -s conftest.err
8542 } && test -s conftest.$ac_objext; then
8543 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8544 else
8545 echo "$as_me: failed program was:" >&5
8546 sed 's/^/| /' conftest.$ac_ext >&5
8547
8548 cat >conftest.$ac_ext <<_ACEOF
8549 /* confdefs.h. */
8550 _ACEOF
8551 cat confdefs.h >>conftest.$ac_ext
8552 cat >>conftest.$ac_ext <<_ACEOF
8553 /* end confdefs.h. */
8554 $ac_includes_default
8555 #if HAVE_SYS_SOCKET_H
8556 #include <sys/socket.h>
8557 #endif
8558 #if HAVE_NET_IF_H
8559 #include <net/if.h>
8560 #endif
8561
8562 int
8563 main ()
8564 {
8565 static struct ifreq ac_aggr;
8566 if (sizeof ac_aggr.ifr_broadaddr)
8567 return 0;
8568 ;
8569 return 0;
8570 }
8571 _ACEOF
8572 rm -f conftest.$ac_objext
8573 if { (ac_try="$ac_compile"
8574 case "(($ac_try" in
8575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8576 *) ac_try_echo=$ac_try;;
8577 esac
8578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8579 (eval "$ac_compile") 2>conftest.er1
8580 ac_status=$?
8581 grep -v '^ *+' conftest.er1 >conftest.err
8582 rm -f conftest.er1
8583 cat conftest.err >&5
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); } && {
8586 test -z "$ac_c_werror_flag" ||
8587 test ! -s conftest.err
8588 } && test -s conftest.$ac_objext; then
8589 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8590 else
8591 echo "$as_me: failed program was:" >&5
8592 sed 's/^/| /' conftest.$ac_ext >&5
8593
8594 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8595 fi
8596
8597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8598 fi
8599
8600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8601 fi
8602 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8603 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8604 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8605
8606 cat >>confdefs.h <<_ACEOF
8607 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8608 _ACEOF
8609
8610
8611 fi
8612 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8613 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8614 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8615 echo $ECHO_N "(cached) $ECHO_C" >&6
8616 else
8617 cat >conftest.$ac_ext <<_ACEOF
8618 /* confdefs.h. */
8619 _ACEOF
8620 cat confdefs.h >>conftest.$ac_ext
8621 cat >>conftest.$ac_ext <<_ACEOF
8622 /* end confdefs.h. */
8623 $ac_includes_default
8624 #if HAVE_SYS_SOCKET_H
8625 #include <sys/socket.h>
8626 #endif
8627 #if HAVE_NET_IF_H
8628 #include <net/if.h>
8629 #endif
8630
8631 int
8632 main ()
8633 {
8634 static struct ifreq ac_aggr;
8635 if (ac_aggr.ifr_addr)
8636 return 0;
8637 ;
8638 return 0;
8639 }
8640 _ACEOF
8641 rm -f conftest.$ac_objext
8642 if { (ac_try="$ac_compile"
8643 case "(($ac_try" in
8644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8645 *) ac_try_echo=$ac_try;;
8646 esac
8647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8648 (eval "$ac_compile") 2>conftest.er1
8649 ac_status=$?
8650 grep -v '^ *+' conftest.er1 >conftest.err
8651 rm -f conftest.er1
8652 cat conftest.err >&5
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); } && {
8655 test -z "$ac_c_werror_flag" ||
8656 test ! -s conftest.err
8657 } && test -s conftest.$ac_objext; then
8658 ac_cv_member_struct_ifreq_ifr_addr=yes
8659 else
8660 echo "$as_me: failed program was:" >&5
8661 sed 's/^/| /' conftest.$ac_ext >&5
8662
8663 cat >conftest.$ac_ext <<_ACEOF
8664 /* confdefs.h. */
8665 _ACEOF
8666 cat confdefs.h >>conftest.$ac_ext
8667 cat >>conftest.$ac_ext <<_ACEOF
8668 /* end confdefs.h. */
8669 $ac_includes_default
8670 #if HAVE_SYS_SOCKET_H
8671 #include <sys/socket.h>
8672 #endif
8673 #if HAVE_NET_IF_H
8674 #include <net/if.h>
8675 #endif
8676
8677 int
8678 main ()
8679 {
8680 static struct ifreq ac_aggr;
8681 if (sizeof ac_aggr.ifr_addr)
8682 return 0;
8683 ;
8684 return 0;
8685 }
8686 _ACEOF
8687 rm -f conftest.$ac_objext
8688 if { (ac_try="$ac_compile"
8689 case "(($ac_try" in
8690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8691 *) ac_try_echo=$ac_try;;
8692 esac
8693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8694 (eval "$ac_compile") 2>conftest.er1
8695 ac_status=$?
8696 grep -v '^ *+' conftest.er1 >conftest.err
8697 rm -f conftest.er1
8698 cat conftest.err >&5
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); } && {
8701 test -z "$ac_c_werror_flag" ||
8702 test ! -s conftest.err
8703 } && test -s conftest.$ac_objext; then
8704 ac_cv_member_struct_ifreq_ifr_addr=yes
8705 else
8706 echo "$as_me: failed program was:" >&5
8707 sed 's/^/| /' conftest.$ac_ext >&5
8708
8709 ac_cv_member_struct_ifreq_ifr_addr=no
8710 fi
8711
8712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8713 fi
8714
8715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8716 fi
8717 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8718 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8719 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8720
8721 cat >>confdefs.h <<_ACEOF
8722 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8723 _ACEOF
8724
8725
8726 fi
8727
8728
8729
8730 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8731 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8732 if test "$ac_cv_prog_cc_c89" != no; then
8733 { echo "$as_me:$LINENO: result: yes" >&5
8734 echo "${ECHO_T}yes" >&6; }
8735
8736 cat >>confdefs.h <<\_ACEOF
8737 #define PROTOTYPES 1
8738 _ACEOF
8739
8740
8741 cat >>confdefs.h <<\_ACEOF
8742 #define __PROTOTYPES 1
8743 _ACEOF
8744
8745 else
8746 { echo "$as_me:$LINENO: result: no" >&5
8747 echo "${ECHO_T}no" >&6; }
8748 fi
8749
8750 { echo "$as_me:$LINENO: checking for working volatile" >&5
8751 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8752 if test "${ac_cv_c_volatile+set}" = set; then
8753 echo $ECHO_N "(cached) $ECHO_C" >&6
8754 else
8755 cat >conftest.$ac_ext <<_ACEOF
8756 /* confdefs.h. */
8757 _ACEOF
8758 cat confdefs.h >>conftest.$ac_ext
8759 cat >>conftest.$ac_ext <<_ACEOF
8760 /* end confdefs.h. */
8761
8762 int
8763 main ()
8764 {
8765
8766 volatile int x;
8767 int * volatile y = (int *) 0;
8768 return !x && !y;
8769 ;
8770 return 0;
8771 }
8772 _ACEOF
8773 rm -f conftest.$ac_objext
8774 if { (ac_try="$ac_compile"
8775 case "(($ac_try" in
8776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8777 *) ac_try_echo=$ac_try;;
8778 esac
8779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8780 (eval "$ac_compile") 2>conftest.er1
8781 ac_status=$?
8782 grep -v '^ *+' conftest.er1 >conftest.err
8783 rm -f conftest.er1
8784 cat conftest.err >&5
8785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786 (exit $ac_status); } && {
8787 test -z "$ac_c_werror_flag" ||
8788 test ! -s conftest.err
8789 } && test -s conftest.$ac_objext; then
8790 ac_cv_c_volatile=yes
8791 else
8792 echo "$as_me: failed program was:" >&5
8793 sed 's/^/| /' conftest.$ac_ext >&5
8794
8795 ac_cv_c_volatile=no
8796 fi
8797
8798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8799 fi
8800 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8801 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8802 if test $ac_cv_c_volatile = no; then
8803
8804 cat >>confdefs.h <<\_ACEOF
8805 #define volatile
8806 _ACEOF
8807
8808 fi
8809
8810 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8811 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8812 if test "${ac_cv_c_const+set}" = set; then
8813 echo $ECHO_N "(cached) $ECHO_C" >&6
8814 else
8815 cat >conftest.$ac_ext <<_ACEOF
8816 /* confdefs.h. */
8817 _ACEOF
8818 cat confdefs.h >>conftest.$ac_ext
8819 cat >>conftest.$ac_ext <<_ACEOF
8820 /* end confdefs.h. */
8821
8822 int
8823 main ()
8824 {
8825 /* FIXME: Include the comments suggested by Paul. */
8826 #ifndef __cplusplus
8827 /* Ultrix mips cc rejects this. */
8828 typedef int charset[2];
8829 const charset cs;
8830 /* SunOS 4.1.1 cc rejects this. */
8831 char const *const *pcpcc;
8832 char **ppc;
8833 /* NEC SVR4.0.2 mips cc rejects this. */
8834 struct point {int x, y;};
8835 static struct point const zero = {0,0};
8836 /* AIX XL C 1.02.0.0 rejects this.
8837 It does not let you subtract one const X* pointer from another in
8838 an arm of an if-expression whose if-part is not a constant
8839 expression */
8840 const char *g = "string";
8841 pcpcc = &g + (g ? g-g : 0);
8842 /* HPUX 7.0 cc rejects these. */
8843 ++pcpcc;
8844 ppc = (char**) pcpcc;
8845 pcpcc = (char const *const *) ppc;
8846 { /* SCO 3.2v4 cc rejects this. */
8847 char *t;
8848 char const *s = 0 ? (char *) 0 : (char const *) 0;
8849
8850 *t++ = 0;
8851 if (s) return 0;
8852 }
8853 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8854 int x[] = {25, 17};
8855 const int *foo = &x[0];
8856 ++foo;
8857 }
8858 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8859 typedef const int *iptr;
8860 iptr p = 0;
8861 ++p;
8862 }
8863 { /* AIX XL C 1.02.0.0 rejects this saying
8864 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8865 struct s { int j; const int *ap[3]; };
8866 struct s *b; b->j = 5;
8867 }
8868 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8869 const int foo = 10;
8870 if (!foo) return 0;
8871 }
8872 return !cs[0] && !zero.x;
8873 #endif
8874
8875 ;
8876 return 0;
8877 }
8878 _ACEOF
8879 rm -f conftest.$ac_objext
8880 if { (ac_try="$ac_compile"
8881 case "(($ac_try" in
8882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8883 *) ac_try_echo=$ac_try;;
8884 esac
8885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8886 (eval "$ac_compile") 2>conftest.er1
8887 ac_status=$?
8888 grep -v '^ *+' conftest.er1 >conftest.err
8889 rm -f conftest.er1
8890 cat conftest.err >&5
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); } && {
8893 test -z "$ac_c_werror_flag" ||
8894 test ! -s conftest.err
8895 } && test -s conftest.$ac_objext; then
8896 ac_cv_c_const=yes
8897 else
8898 echo "$as_me: failed program was:" >&5
8899 sed 's/^/| /' conftest.$ac_ext >&5
8900
8901 ac_cv_c_const=no
8902 fi
8903
8904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8905 fi
8906 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8907 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8908 if test $ac_cv_c_const = no; then
8909
8910 cat >>confdefs.h <<\_ACEOF
8911 #define const
8912 _ACEOF
8913
8914 fi
8915
8916 { echo "$as_me:$LINENO: checking for void * support" >&5
8917 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8918 if test "${emacs_cv_void_star+set}" = set; then
8919 echo $ECHO_N "(cached) $ECHO_C" >&6
8920 else
8921 cat >conftest.$ac_ext <<_ACEOF
8922 /* confdefs.h. */
8923 _ACEOF
8924 cat confdefs.h >>conftest.$ac_ext
8925 cat >>conftest.$ac_ext <<_ACEOF
8926 /* end confdefs.h. */
8927
8928 int
8929 main ()
8930 {
8931 void * foo;
8932 ;
8933 return 0;
8934 }
8935 _ACEOF
8936 rm -f conftest.$ac_objext
8937 if { (ac_try="$ac_compile"
8938 case "(($ac_try" in
8939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8940 *) ac_try_echo=$ac_try;;
8941 esac
8942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8943 (eval "$ac_compile") 2>conftest.er1
8944 ac_status=$?
8945 grep -v '^ *+' conftest.er1 >conftest.err
8946 rm -f conftest.er1
8947 cat conftest.err >&5
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); } && {
8950 test -z "$ac_c_werror_flag" ||
8951 test ! -s conftest.err
8952 } && test -s conftest.$ac_objext; then
8953 emacs_cv_void_star=yes
8954 else
8955 echo "$as_me: failed program was:" >&5
8956 sed 's/^/| /' conftest.$ac_ext >&5
8957
8958 emacs_cv_void_star=no
8959 fi
8960
8961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8962 fi
8963 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8964 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8965 if test $emacs_cv_void_star = yes; then
8966 cat >>confdefs.h <<\_ACEOF
8967 #define POINTER_TYPE void
8968 _ACEOF
8969
8970 else
8971 cat >>confdefs.h <<\_ACEOF
8972 #define POINTER_TYPE char
8973 _ACEOF
8974
8975 fi
8976
8977
8978
8979
8980
8981 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8982 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8983 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8984 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8985 echo $ECHO_N "(cached) $ECHO_C" >&6
8986 else
8987 cat >conftest.make <<\_ACEOF
8988 SHELL = /bin/sh
8989 all:
8990 @echo '@@@%%%=$(MAKE)=@@@%%%'
8991 _ACEOF
8992 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8993 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8994 *@@@%%%=?*=@@@%%%*)
8995 eval ac_cv_prog_make_${ac_make}_set=yes;;
8996 *)
8997 eval ac_cv_prog_make_${ac_make}_set=no;;
8998 esac
8999 rm -f conftest.make
9000 fi
9001 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9002 { echo "$as_me:$LINENO: result: yes" >&5
9003 echo "${ECHO_T}yes" >&6; }
9004 SET_MAKE=
9005 else
9006 { echo "$as_me:$LINENO: result: no" >&5
9007 echo "${ECHO_T}no" >&6; }
9008 SET_MAKE="MAKE=${MAKE-make}"
9009 fi
9010
9011
9012 { echo "$as_me:$LINENO: checking for long file names" >&5
9013 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9014 if test "${ac_cv_sys_long_file_names+set}" = set; then
9015 echo $ECHO_N "(cached) $ECHO_C" >&6
9016 else
9017 ac_cv_sys_long_file_names=yes
9018 # Test for long file names in all the places we know might matter:
9019 # . the current directory, where building will happen
9020 # $prefix/lib where we will be installing things
9021 # $exec_prefix/lib likewise
9022 # $TMPDIR if set, where it might want to write temporary files
9023 # /tmp where it might want to write temporary files
9024 # /var/tmp likewise
9025 # /usr/tmp likewise
9026 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9027 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9028 # in the usual case where exec_prefix is '${prefix}'.
9029 case $ac_dir in #(
9030 . | /* | ?:[\\/]*) ;; #(
9031 *) continue;;
9032 esac
9033 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9034 ac_xdir=$ac_dir/cf$$
9035 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9036 ac_tf1=$ac_xdir/conftest9012345
9037 ac_tf2=$ac_xdir/conftest9012346
9038 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9039 ac_cv_sys_long_file_names=no
9040 rm -f -r "$ac_xdir" 2>/dev/null
9041 test $ac_cv_sys_long_file_names = no && break
9042 done
9043 fi
9044 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9045 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9046 if test $ac_cv_sys_long_file_names = yes; then
9047
9048 cat >>confdefs.h <<\_ACEOF
9049 #define HAVE_LONG_FILE_NAMES 1
9050 _ACEOF
9051
9052 fi
9053
9054
9055 #### Choose a window system.
9056
9057 { echo "$as_me:$LINENO: checking for X" >&5
9058 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9059
9060
9061 # Check whether --with-x was given.
9062 if test "${with_x+set}" = set; then
9063 withval=$with_x;
9064 fi
9065
9066 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9067 if test "x$with_x" = xno; then
9068 # The user explicitly disabled X.
9069 have_x=disabled
9070 else
9071 case $x_includes,$x_libraries in #(
9072 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9073 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9074 { (exit 1); exit 1; }; };; #(
9075 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9076 echo $ECHO_N "(cached) $ECHO_C" >&6
9077 else
9078 # One or both of the vars are not set, and there is no cached value.
9079 ac_x_includes=no ac_x_libraries=no
9080 rm -f -r conftest.dir
9081 if mkdir conftest.dir; then
9082 cd conftest.dir
9083 cat >Imakefile <<'_ACEOF'
9084 incroot:
9085 @echo incroot='${INCROOT}'
9086 usrlibdir:
9087 @echo usrlibdir='${USRLIBDIR}'
9088 libdir:
9089 @echo libdir='${LIBDIR}'
9090 _ACEOF
9091 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9092 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9093 for ac_var in incroot usrlibdir libdir; do
9094 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9095 done
9096 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9097 for ac_extension in a so sl; do
9098 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9099 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9100 ac_im_usrlibdir=$ac_im_libdir; break
9101 fi
9102 done
9103 # Screen out bogus values from the imake configuration. They are
9104 # bogus both because they are the default anyway, and because
9105 # using them would break gcc on systems where it needs fixed includes.
9106 case $ac_im_incroot in
9107 /usr/include) ac_x_includes= ;;
9108 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9109 esac
9110 case $ac_im_usrlibdir in
9111 /usr/lib | /lib) ;;
9112 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9113 esac
9114 fi
9115 cd ..
9116 rm -f -r conftest.dir
9117 fi
9118
9119 # Standard set of common directories for X headers.
9120 # Check X11 before X11Rn because it is often a symlink to the current release.
9121 ac_x_header_dirs='
9122 /usr/X11/include
9123 /usr/X11R6/include
9124 /usr/X11R5/include
9125 /usr/X11R4/include
9126
9127 /usr/include/X11
9128 /usr/include/X11R6
9129 /usr/include/X11R5
9130 /usr/include/X11R4
9131
9132 /usr/local/X11/include
9133 /usr/local/X11R6/include
9134 /usr/local/X11R5/include
9135 /usr/local/X11R4/include
9136
9137 /usr/local/include/X11
9138 /usr/local/include/X11R6
9139 /usr/local/include/X11R5
9140 /usr/local/include/X11R4
9141
9142 /usr/X386/include
9143 /usr/x386/include
9144 /usr/XFree86/include/X11
9145
9146 /usr/include
9147 /usr/local/include
9148 /usr/unsupported/include
9149 /usr/athena/include
9150 /usr/local/x11r5/include
9151 /usr/lpp/Xamples/include
9152
9153 /usr/openwin/include
9154 /usr/openwin/share/include'
9155
9156 if test "$ac_x_includes" = no; then
9157 # Guess where to find include files, by looking for Xlib.h.
9158 # First, try using that file with no special directory specified.
9159 cat >conftest.$ac_ext <<_ACEOF
9160 /* confdefs.h. */
9161 _ACEOF
9162 cat confdefs.h >>conftest.$ac_ext
9163 cat >>conftest.$ac_ext <<_ACEOF
9164 /* end confdefs.h. */
9165 #include <X11/Xlib.h>
9166 _ACEOF
9167 if { (ac_try="$ac_cpp conftest.$ac_ext"
9168 case "(($ac_try" in
9169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9170 *) ac_try_echo=$ac_try;;
9171 esac
9172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9174 ac_status=$?
9175 grep -v '^ *+' conftest.er1 >conftest.err
9176 rm -f conftest.er1
9177 cat conftest.err >&5
9178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179 (exit $ac_status); } >/dev/null && {
9180 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9181 test ! -s conftest.err
9182 }; then
9183 # We can compile using X headers with no special include directory.
9184 ac_x_includes=
9185 else
9186 echo "$as_me: failed program was:" >&5
9187 sed 's/^/| /' conftest.$ac_ext >&5
9188
9189 for ac_dir in $ac_x_header_dirs; do
9190 if test -r "$ac_dir/X11/Xlib.h"; then
9191 ac_x_includes=$ac_dir
9192 break
9193 fi
9194 done
9195 fi
9196
9197 rm -f conftest.err conftest.$ac_ext
9198 fi # $ac_x_includes = no
9199
9200 if test "$ac_x_libraries" = no; then
9201 # Check for the libraries.
9202 # See if we find them without any special options.
9203 # Don't add to $LIBS permanently.
9204 ac_save_LIBS=$LIBS
9205 LIBS="-lX11 $LIBS"
9206 cat >conftest.$ac_ext <<_ACEOF
9207 /* confdefs.h. */
9208 _ACEOF
9209 cat confdefs.h >>conftest.$ac_ext
9210 cat >>conftest.$ac_ext <<_ACEOF
9211 /* end confdefs.h. */
9212 #include <X11/Xlib.h>
9213 int
9214 main ()
9215 {
9216 XrmInitialize ()
9217 ;
9218 return 0;
9219 }
9220 _ACEOF
9221 rm -f conftest.$ac_objext conftest$ac_exeext
9222 if { (ac_try="$ac_link"
9223 case "(($ac_try" in
9224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9225 *) ac_try_echo=$ac_try;;
9226 esac
9227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9228 (eval "$ac_link") 2>conftest.er1
9229 ac_status=$?
9230 grep -v '^ *+' conftest.er1 >conftest.err
9231 rm -f conftest.er1
9232 cat conftest.err >&5
9233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234 (exit $ac_status); } && {
9235 test -z "$ac_c_werror_flag" ||
9236 test ! -s conftest.err
9237 } && test -s conftest$ac_exeext &&
9238 $as_test_x conftest$ac_exeext; then
9239 LIBS=$ac_save_LIBS
9240 # We can link X programs with no special library path.
9241 ac_x_libraries=
9242 else
9243 echo "$as_me: failed program was:" >&5
9244 sed 's/^/| /' conftest.$ac_ext >&5
9245
9246 LIBS=$ac_save_LIBS
9247 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9248 do
9249 # Don't even attempt the hair of trying to link an X program!
9250 for ac_extension in a so sl; do
9251 if test -r "$ac_dir/libX11.$ac_extension"; then
9252 ac_x_libraries=$ac_dir
9253 break 2
9254 fi
9255 done
9256 done
9257 fi
9258
9259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9260 conftest$ac_exeext conftest.$ac_ext
9261 fi # $ac_x_libraries = no
9262
9263 case $ac_x_includes,$ac_x_libraries in #(
9264 no,* | *,no | *\'*)
9265 # Didn't find X, or a directory has "'" in its name.
9266 ac_cv_have_x="have_x=no";; #(
9267 *)
9268 # Record where we found X for the cache.
9269 ac_cv_have_x="have_x=yes\
9270 ac_x_includes='$ac_x_includes'\
9271 ac_x_libraries='$ac_x_libraries'"
9272 esac
9273 fi
9274 ;; #(
9275 *) have_x=yes;;
9276 esac
9277 eval "$ac_cv_have_x"
9278 fi # $with_x != no
9279
9280 if test "$have_x" != yes; then
9281 { echo "$as_me:$LINENO: result: $have_x" >&5
9282 echo "${ECHO_T}$have_x" >&6; }
9283 no_x=yes
9284 else
9285 # If each of the values was on the command line, it overrides each guess.
9286 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9287 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9288 # Update the cache value to reflect the command line values.
9289 ac_cv_have_x="have_x=yes\
9290 ac_x_includes='$x_includes'\
9291 ac_x_libraries='$x_libraries'"
9292 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9293 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9294 fi
9295
9296 if test "$no_x" = yes; then
9297 window_system=none
9298 else
9299 window_system=x11
9300 fi
9301
9302 if test "${x_libraries}" != NONE; then
9303 if test -n "${x_libraries}"; then
9304 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9305 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9306 fi
9307 x_default_search_path=""
9308 x_search_path=${x_libraries}
9309 if test -z "${x_search_path}"; then
9310 x_search_path=/usr/lib
9311 fi
9312 for x_library in `echo ${x_search_path}: | \
9313 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9314 x_search_path="\
9315 ${x_library}/X11/%L/%T/%N%C%S:\
9316 ${x_library}/X11/%l/%T/%N%C%S:\
9317 ${x_library}/X11/%T/%N%C%S:\
9318 ${x_library}/X11/%L/%T/%N%S:\
9319 ${x_library}/X11/%l/%T/%N%S:\
9320 ${x_library}/X11/%T/%N%S"
9321 if test x"${x_default_search_path}" = x; then
9322 x_default_search_path=${x_search_path}
9323 else
9324 x_default_search_path="${x_search_path}:${x_default_search_path}"
9325 fi
9326 done
9327 fi
9328 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9329 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9330 fi
9331
9332 if test x"${x_includes}" = x; then
9333 bitmapdir=/usr/include/X11/bitmaps
9334 else
9335 # accumulate include directories that have X11 bitmap subdirectories
9336 bmd_acc="dummyval"
9337 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9338 if test -d "${bmd}/X11/bitmaps"; then
9339 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9340 fi
9341 if test -d "${bmd}/bitmaps"; then
9342 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9343 fi
9344 done
9345 if test ${bmd_acc} != "dummyval"; then
9346 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9347 fi
9348 fi
9349
9350 HAVE_CARBON=no
9351 if test "${with_carbon}" != no; then
9352 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9353 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9354 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9355 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9356 echo $ECHO_N "(cached) $ECHO_C" >&6
9357 fi
9358 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9359 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9360 else
9361 # Is the header compilable?
9362 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9363 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9364 cat >conftest.$ac_ext <<_ACEOF
9365 /* confdefs.h. */
9366 _ACEOF
9367 cat confdefs.h >>conftest.$ac_ext
9368 cat >>conftest.$ac_ext <<_ACEOF
9369 /* end confdefs.h. */
9370 $ac_includes_default
9371 #include <Carbon/Carbon.h>
9372 _ACEOF
9373 rm -f conftest.$ac_objext
9374 if { (ac_try="$ac_compile"
9375 case "(($ac_try" in
9376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9377 *) ac_try_echo=$ac_try;;
9378 esac
9379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9380 (eval "$ac_compile") 2>conftest.er1
9381 ac_status=$?
9382 grep -v '^ *+' conftest.er1 >conftest.err
9383 rm -f conftest.er1
9384 cat conftest.err >&5
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); } && {
9387 test -z "$ac_c_werror_flag" ||
9388 test ! -s conftest.err
9389 } && test -s conftest.$ac_objext; then
9390 ac_header_compiler=yes
9391 else
9392 echo "$as_me: failed program was:" >&5
9393 sed 's/^/| /' conftest.$ac_ext >&5
9394
9395 ac_header_compiler=no
9396 fi
9397
9398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9399 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9400 echo "${ECHO_T}$ac_header_compiler" >&6; }
9401
9402 # Is the header present?
9403 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9404 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9405 cat >conftest.$ac_ext <<_ACEOF
9406 /* confdefs.h. */
9407 _ACEOF
9408 cat confdefs.h >>conftest.$ac_ext
9409 cat >>conftest.$ac_ext <<_ACEOF
9410 /* end confdefs.h. */
9411 #include <Carbon/Carbon.h>
9412 _ACEOF
9413 if { (ac_try="$ac_cpp conftest.$ac_ext"
9414 case "(($ac_try" in
9415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9416 *) ac_try_echo=$ac_try;;
9417 esac
9418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9420 ac_status=$?
9421 grep -v '^ *+' conftest.er1 >conftest.err
9422 rm -f conftest.er1
9423 cat conftest.err >&5
9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 (exit $ac_status); } >/dev/null && {
9426 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9427 test ! -s conftest.err
9428 }; then
9429 ac_header_preproc=yes
9430 else
9431 echo "$as_me: failed program was:" >&5
9432 sed 's/^/| /' conftest.$ac_ext >&5
9433
9434 ac_header_preproc=no
9435 fi
9436
9437 rm -f conftest.err conftest.$ac_ext
9438 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9439 echo "${ECHO_T}$ac_header_preproc" >&6; }
9440
9441 # So? What about this header?
9442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9443 yes:no: )
9444 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9445 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9446 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9447 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9448 ac_header_preproc=yes
9449 ;;
9450 no:yes:* )
9451 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9452 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9453 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9454 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9455 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9456 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9457 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9458 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9459 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9460 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9461 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9462 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9463
9464 ;;
9465 esac
9466 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9467 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9468 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9469 echo $ECHO_N "(cached) $ECHO_C" >&6
9470 else
9471 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9472 fi
9473 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9474 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9475
9476 fi
9477 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9478 HAVE_CARBON=yes
9479 fi
9480
9481
9482 fi
9483 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9484 if test "${with_carbon+set}" != set \
9485 && test "${carbon_appdir_x+set}" != set; then
9486 for var in with_x with_x_toolkit with_gtk with_xim \
9487 with_xpm with_jpeg with_tiff with_gif with_png; do
9488 if eval test \"\${$var+set}\" = set; then
9489 HAVE_CARBON=no
9490 break
9491 fi
9492 done
9493 fi
9494 fi
9495 if test "${HAVE_CARBON}" = yes; then
9496 window_system=mac
9497 fi
9498
9499 case "${window_system}" in
9500 x11 )
9501 HAVE_X_WINDOWS=yes
9502 HAVE_X11=yes
9503 case "${with_x_toolkit}" in
9504 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9505 motif ) USE_X_TOOLKIT=MOTIF ;;
9506 gtk ) with_gtk=yes
9507 USE_X_TOOLKIT=none ;;
9508 no ) USE_X_TOOLKIT=none ;;
9509 * ) USE_X_TOOLKIT=maybe ;;
9510 esac
9511 ;;
9512 mac | none )
9513 HAVE_X_WINDOWS=no
9514 HAVE_X11=no
9515 USE_X_TOOLKIT=none
9516 ;;
9517 esac
9518
9519 ### If we're using X11, we should use the X menu package.
9520 HAVE_MENUS=no
9521 case ${HAVE_X11} in
9522 yes ) HAVE_MENUS=yes ;;
9523 esac
9524
9525 if test "${opsys}" = "hpux9"; then
9526 case "${x_libraries}" in
9527 *X11R4* )
9528 opsysfile="s/hpux9-x11r4.h"
9529 ;;
9530 esac
9531 fi
9532
9533 if test "${opsys}" = "hpux9shr"; then
9534 case "${x_libraries}" in
9535 *X11R4* )
9536 opsysfile="s/hpux9shxr4.h"
9537 ;;
9538 esac
9539 fi
9540
9541 ### Compute the unexec source name from the object name.
9542 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9543
9544 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9545 # Assume not, until told otherwise.
9546 GNU_MALLOC=yes
9547 doug_lea_malloc=yes
9548 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9549 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9550 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9551 echo $ECHO_N "(cached) $ECHO_C" >&6
9552 else
9553 cat >conftest.$ac_ext <<_ACEOF
9554 /* confdefs.h. */
9555 _ACEOF
9556 cat confdefs.h >>conftest.$ac_ext
9557 cat >>conftest.$ac_ext <<_ACEOF
9558 /* end confdefs.h. */
9559 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9561 #define malloc_get_state innocuous_malloc_get_state
9562
9563 /* System header to define __stub macros and hopefully few prototypes,
9564 which can conflict with char malloc_get_state (); below.
9565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9566 <limits.h> exists even on freestanding compilers. */
9567
9568 #ifdef __STDC__
9569 # include <limits.h>
9570 #else
9571 # include <assert.h>
9572 #endif
9573
9574 #undef malloc_get_state
9575
9576 /* Override any GCC internal prototype to avoid an error.
9577 Use char because int might match the return type of a GCC
9578 builtin and then its argument prototype would still apply. */
9579 #ifdef __cplusplus
9580 extern "C"
9581 #endif
9582 char malloc_get_state ();
9583 /* The GNU C library defines this for functions which it implements
9584 to always fail with ENOSYS. Some functions are actually named
9585 something starting with __ and the normal name is an alias. */
9586 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9587 choke me
9588 #endif
9589
9590 int
9591 main ()
9592 {
9593 return malloc_get_state ();
9594 ;
9595 return 0;
9596 }
9597 _ACEOF
9598 rm -f conftest.$ac_objext conftest$ac_exeext
9599 if { (ac_try="$ac_link"
9600 case "(($ac_try" in
9601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9602 *) ac_try_echo=$ac_try;;
9603 esac
9604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9605 (eval "$ac_link") 2>conftest.er1
9606 ac_status=$?
9607 grep -v '^ *+' conftest.er1 >conftest.err
9608 rm -f conftest.er1
9609 cat conftest.err >&5
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); } && {
9612 test -z "$ac_c_werror_flag" ||
9613 test ! -s conftest.err
9614 } && test -s conftest$ac_exeext &&
9615 $as_test_x conftest$ac_exeext; then
9616 ac_cv_func_malloc_get_state=yes
9617 else
9618 echo "$as_me: failed program was:" >&5
9619 sed 's/^/| /' conftest.$ac_ext >&5
9620
9621 ac_cv_func_malloc_get_state=no
9622 fi
9623
9624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9625 conftest$ac_exeext conftest.$ac_ext
9626 fi
9627 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9628 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9629 if test $ac_cv_func_malloc_get_state = yes; then
9630 :
9631 else
9632 doug_lea_malloc=no
9633 fi
9634
9635 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9636 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9637 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9638 echo $ECHO_N "(cached) $ECHO_C" >&6
9639 else
9640 cat >conftest.$ac_ext <<_ACEOF
9641 /* confdefs.h. */
9642 _ACEOF
9643 cat confdefs.h >>conftest.$ac_ext
9644 cat >>conftest.$ac_ext <<_ACEOF
9645 /* end confdefs.h. */
9646 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9648 #define malloc_set_state innocuous_malloc_set_state
9649
9650 /* System header to define __stub macros and hopefully few prototypes,
9651 which can conflict with char malloc_set_state (); below.
9652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9653 <limits.h> exists even on freestanding compilers. */
9654
9655 #ifdef __STDC__
9656 # include <limits.h>
9657 #else
9658 # include <assert.h>
9659 #endif
9660
9661 #undef malloc_set_state
9662
9663 /* Override any GCC internal prototype to avoid an error.
9664 Use char because int might match the return type of a GCC
9665 builtin and then its argument prototype would still apply. */
9666 #ifdef __cplusplus
9667 extern "C"
9668 #endif
9669 char malloc_set_state ();
9670 /* The GNU C library defines this for functions which it implements
9671 to always fail with ENOSYS. Some functions are actually named
9672 something starting with __ and the normal name is an alias. */
9673 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9674 choke me
9675 #endif
9676
9677 int
9678 main ()
9679 {
9680 return malloc_set_state ();
9681 ;
9682 return 0;
9683 }
9684 _ACEOF
9685 rm -f conftest.$ac_objext conftest$ac_exeext
9686 if { (ac_try="$ac_link"
9687 case "(($ac_try" in
9688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9689 *) ac_try_echo=$ac_try;;
9690 esac
9691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9692 (eval "$ac_link") 2>conftest.er1
9693 ac_status=$?
9694 grep -v '^ *+' conftest.er1 >conftest.err
9695 rm -f conftest.er1
9696 cat conftest.err >&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); } && {
9699 test -z "$ac_c_werror_flag" ||
9700 test ! -s conftest.err
9701 } && test -s conftest$ac_exeext &&
9702 $as_test_x conftest$ac_exeext; then
9703 ac_cv_func_malloc_set_state=yes
9704 else
9705 echo "$as_me: failed program was:" >&5
9706 sed 's/^/| /' conftest.$ac_ext >&5
9707
9708 ac_cv_func_malloc_set_state=no
9709 fi
9710
9711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9712 conftest$ac_exeext conftest.$ac_ext
9713 fi
9714 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9715 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9716 if test $ac_cv_func_malloc_set_state = yes; then
9717 :
9718 else
9719 doug_lea_malloc=no
9720 fi
9721
9722 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9723 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9724 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9725 echo $ECHO_N "(cached) $ECHO_C" >&6
9726 else
9727 cat >conftest.$ac_ext <<_ACEOF
9728 /* confdefs.h. */
9729 _ACEOF
9730 cat confdefs.h >>conftest.$ac_ext
9731 cat >>conftest.$ac_ext <<_ACEOF
9732 /* end confdefs.h. */
9733 extern void (* __after_morecore_hook)();
9734 int
9735 main ()
9736 {
9737 __after_morecore_hook = 0
9738 ;
9739 return 0;
9740 }
9741 _ACEOF
9742 rm -f conftest.$ac_objext conftest$ac_exeext
9743 if { (ac_try="$ac_link"
9744 case "(($ac_try" in
9745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9746 *) ac_try_echo=$ac_try;;
9747 esac
9748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9749 (eval "$ac_link") 2>conftest.er1
9750 ac_status=$?
9751 grep -v '^ *+' conftest.er1 >conftest.err
9752 rm -f conftest.er1
9753 cat conftest.err >&5
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); } && {
9756 test -z "$ac_c_werror_flag" ||
9757 test ! -s conftest.err
9758 } && test -s conftest$ac_exeext &&
9759 $as_test_x conftest$ac_exeext; then
9760 emacs_cv_var___after_morecore_hook=yes
9761 else
9762 echo "$as_me: failed program was:" >&5
9763 sed 's/^/| /' conftest.$ac_ext >&5
9764
9765 emacs_cv_var___after_morecore_hook=no
9766 fi
9767
9768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9769 conftest$ac_exeext conftest.$ac_ext
9770 fi
9771 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9772 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9773 if test $emacs_cv_var___after_morecore_hook = no; then
9774 doug_lea_malloc=no
9775 fi
9776 if test "${system_malloc}" = "yes"; then
9777 GNU_MALLOC=no
9778 GNU_MALLOC_reason="
9779 (The GNU allocators don't work with this system configuration.)"
9780 fi
9781 if test "$doug_lea_malloc" = "yes" ; then
9782 if test "$GNU_MALLOC" = yes ; then
9783 GNU_MALLOC_reason="
9784 (Using Doug Lea's new malloc from the GNU C Library.)"
9785 fi
9786
9787 cat >>confdefs.h <<\_ACEOF
9788 #define DOUG_LEA_MALLOC 1
9789 _ACEOF
9790
9791 fi
9792
9793 if test x"${REL_ALLOC}" = x; then
9794 REL_ALLOC=${GNU_MALLOC}
9795 fi
9796
9797
9798
9799
9800 for ac_header in stdlib.h unistd.h
9801 do
9802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9804 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9807 echo $ECHO_N "(cached) $ECHO_C" >&6
9808 fi
9809 ac_res=`eval echo '${'$as_ac_Header'}'`
9810 { echo "$as_me:$LINENO: result: $ac_res" >&5
9811 echo "${ECHO_T}$ac_res" >&6; }
9812 else
9813 # Is the header compilable?
9814 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9815 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9816 cat >conftest.$ac_ext <<_ACEOF
9817 /* confdefs.h. */
9818 _ACEOF
9819 cat confdefs.h >>conftest.$ac_ext
9820 cat >>conftest.$ac_ext <<_ACEOF
9821 /* end confdefs.h. */
9822 $ac_includes_default
9823 #include <$ac_header>
9824 _ACEOF
9825 rm -f conftest.$ac_objext
9826 if { (ac_try="$ac_compile"
9827 case "(($ac_try" in
9828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9829 *) ac_try_echo=$ac_try;;
9830 esac
9831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9832 (eval "$ac_compile") 2>conftest.er1
9833 ac_status=$?
9834 grep -v '^ *+' conftest.er1 >conftest.err
9835 rm -f conftest.er1
9836 cat conftest.err >&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); } && {
9839 test -z "$ac_c_werror_flag" ||
9840 test ! -s conftest.err
9841 } && test -s conftest.$ac_objext; then
9842 ac_header_compiler=yes
9843 else
9844 echo "$as_me: failed program was:" >&5
9845 sed 's/^/| /' conftest.$ac_ext >&5
9846
9847 ac_header_compiler=no
9848 fi
9849
9850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9851 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9852 echo "${ECHO_T}$ac_header_compiler" >&6; }
9853
9854 # Is the header present?
9855 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9856 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9857 cat >conftest.$ac_ext <<_ACEOF
9858 /* confdefs.h. */
9859 _ACEOF
9860 cat confdefs.h >>conftest.$ac_ext
9861 cat >>conftest.$ac_ext <<_ACEOF
9862 /* end confdefs.h. */
9863 #include <$ac_header>
9864 _ACEOF
9865 if { (ac_try="$ac_cpp conftest.$ac_ext"
9866 case "(($ac_try" in
9867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9868 *) ac_try_echo=$ac_try;;
9869 esac
9870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9872 ac_status=$?
9873 grep -v '^ *+' conftest.er1 >conftest.err
9874 rm -f conftest.er1
9875 cat conftest.err >&5
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); } >/dev/null && {
9878 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9879 test ! -s conftest.err
9880 }; then
9881 ac_header_preproc=yes
9882 else
9883 echo "$as_me: failed program was:" >&5
9884 sed 's/^/| /' conftest.$ac_ext >&5
9885
9886 ac_header_preproc=no
9887 fi
9888
9889 rm -f conftest.err conftest.$ac_ext
9890 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9891 echo "${ECHO_T}$ac_header_preproc" >&6; }
9892
9893 # So? What about this header?
9894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9895 yes:no: )
9896 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9897 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9899 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9900 ac_header_preproc=yes
9901 ;;
9902 no:yes:* )
9903 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9904 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9905 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9906 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9907 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9908 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9909 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9910 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9913 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9914 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9915
9916 ;;
9917 esac
9918 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9921 echo $ECHO_N "(cached) $ECHO_C" >&6
9922 else
9923 eval "$as_ac_Header=\$ac_header_preproc"
9924 fi
9925 ac_res=`eval echo '${'$as_ac_Header'}'`
9926 { echo "$as_me:$LINENO: result: $ac_res" >&5
9927 echo "${ECHO_T}$ac_res" >&6; }
9928
9929 fi
9930 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9931 cat >>confdefs.h <<_ACEOF
9932 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9933 _ACEOF
9934
9935 fi
9936
9937 done
9938
9939
9940 for ac_func in getpagesize
9941 do
9942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9943 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9945 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9946 echo $ECHO_N "(cached) $ECHO_C" >&6
9947 else
9948 cat >conftest.$ac_ext <<_ACEOF
9949 /* confdefs.h. */
9950 _ACEOF
9951 cat confdefs.h >>conftest.$ac_ext
9952 cat >>conftest.$ac_ext <<_ACEOF
9953 /* end confdefs.h. */
9954 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9956 #define $ac_func innocuous_$ac_func
9957
9958 /* System header to define __stub macros and hopefully few prototypes,
9959 which can conflict with char $ac_func (); below.
9960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9961 <limits.h> exists even on freestanding compilers. */
9962
9963 #ifdef __STDC__
9964 # include <limits.h>
9965 #else
9966 # include <assert.h>
9967 #endif
9968
9969 #undef $ac_func
9970
9971 /* Override any GCC internal prototype to avoid an error.
9972 Use char because int might match the return type of a GCC
9973 builtin and then its argument prototype would still apply. */
9974 #ifdef __cplusplus
9975 extern "C"
9976 #endif
9977 char $ac_func ();
9978 /* The GNU C library defines this for functions which it implements
9979 to always fail with ENOSYS. Some functions are actually named
9980 something starting with __ and the normal name is an alias. */
9981 #if defined __stub_$ac_func || defined __stub___$ac_func
9982 choke me
9983 #endif
9984
9985 int
9986 main ()
9987 {
9988 return $ac_func ();
9989 ;
9990 return 0;
9991 }
9992 _ACEOF
9993 rm -f conftest.$ac_objext conftest$ac_exeext
9994 if { (ac_try="$ac_link"
9995 case "(($ac_try" in
9996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9997 *) ac_try_echo=$ac_try;;
9998 esac
9999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10000 (eval "$ac_link") 2>conftest.er1
10001 ac_status=$?
10002 grep -v '^ *+' conftest.er1 >conftest.err
10003 rm -f conftest.er1
10004 cat conftest.err >&5
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); } && {
10007 test -z "$ac_c_werror_flag" ||
10008 test ! -s conftest.err
10009 } && test -s conftest$ac_exeext &&
10010 $as_test_x conftest$ac_exeext; then
10011 eval "$as_ac_var=yes"
10012 else
10013 echo "$as_me: failed program was:" >&5
10014 sed 's/^/| /' conftest.$ac_ext >&5
10015
10016 eval "$as_ac_var=no"
10017 fi
10018
10019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10020 conftest$ac_exeext conftest.$ac_ext
10021 fi
10022 ac_res=`eval echo '${'$as_ac_var'}'`
10023 { echo "$as_me:$LINENO: result: $ac_res" >&5
10024 echo "${ECHO_T}$ac_res" >&6; }
10025 if test `eval echo '${'$as_ac_var'}'` = yes; then
10026 cat >>confdefs.h <<_ACEOF
10027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10028 _ACEOF
10029
10030 fi
10031 done
10032
10033 { echo "$as_me:$LINENO: checking for working mmap" >&5
10034 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10035 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10036 echo $ECHO_N "(cached) $ECHO_C" >&6
10037 else
10038 if test "$cross_compiling" = yes; then
10039 ac_cv_func_mmap_fixed_mapped=no
10040 else
10041 cat >conftest.$ac_ext <<_ACEOF
10042 /* confdefs.h. */
10043 _ACEOF
10044 cat confdefs.h >>conftest.$ac_ext
10045 cat >>conftest.$ac_ext <<_ACEOF
10046 /* end confdefs.h. */
10047 $ac_includes_default
10048 /* malloc might have been renamed as rpl_malloc. */
10049 #undef malloc
10050
10051 /* Thanks to Mike Haertel and Jim Avera for this test.
10052 Here is a matrix of mmap possibilities:
10053 mmap private not fixed
10054 mmap private fixed at somewhere currently unmapped
10055 mmap private fixed at somewhere already mapped
10056 mmap shared not fixed
10057 mmap shared fixed at somewhere currently unmapped
10058 mmap shared fixed at somewhere already mapped
10059 For private mappings, we should verify that changes cannot be read()
10060 back from the file, nor mmap's back from the file at a different
10061 address. (There have been systems where private was not correctly
10062 implemented like the infamous i386 svr4.0, and systems where the
10063 VM page cache was not coherent with the file system buffer cache
10064 like early versions of FreeBSD and possibly contemporary NetBSD.)
10065 For shared mappings, we should conversely verify that changes get
10066 propagated back to all the places they're supposed to be.
10067
10068 Grep wants private fixed already mapped.
10069 The main things grep needs to know about mmap are:
10070 * does it exist and is it safe to write into the mmap'd area
10071 * how to use it (BSD variants) */
10072
10073 #include <fcntl.h>
10074 #include <sys/mman.h>
10075
10076 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10077 char *malloc ();
10078 #endif
10079
10080 /* This mess was copied from the GNU getpagesize.h. */
10081 #ifndef HAVE_GETPAGESIZE
10082 /* Assume that all systems that can run configure have sys/param.h. */
10083 # ifndef HAVE_SYS_PARAM_H
10084 # define HAVE_SYS_PARAM_H 1
10085 # endif
10086
10087 # ifdef _SC_PAGESIZE
10088 # define getpagesize() sysconf(_SC_PAGESIZE)
10089 # else /* no _SC_PAGESIZE */
10090 # ifdef HAVE_SYS_PARAM_H
10091 # include <sys/param.h>
10092 # ifdef EXEC_PAGESIZE
10093 # define getpagesize() EXEC_PAGESIZE
10094 # else /* no EXEC_PAGESIZE */
10095 # ifdef NBPG
10096 # define getpagesize() NBPG * CLSIZE
10097 # ifndef CLSIZE
10098 # define CLSIZE 1
10099 # endif /* no CLSIZE */
10100 # else /* no NBPG */
10101 # ifdef NBPC
10102 # define getpagesize() NBPC
10103 # else /* no NBPC */
10104 # ifdef PAGESIZE
10105 # define getpagesize() PAGESIZE
10106 # endif /* PAGESIZE */
10107 # endif /* no NBPC */
10108 # endif /* no NBPG */
10109 # endif /* no EXEC_PAGESIZE */
10110 # else /* no HAVE_SYS_PARAM_H */
10111 # define getpagesize() 8192 /* punt totally */
10112 # endif /* no HAVE_SYS_PARAM_H */
10113 # endif /* no _SC_PAGESIZE */
10114
10115 #endif /* no HAVE_GETPAGESIZE */
10116
10117 int
10118 main ()
10119 {
10120 char *data, *data2, *data3;
10121 int i, pagesize;
10122 int fd;
10123
10124 pagesize = getpagesize ();
10125
10126 /* First, make a file with some known garbage in it. */
10127 data = (char *) malloc (pagesize);
10128 if (!data)
10129 return 1;
10130 for (i = 0; i < pagesize; ++i)
10131 *(data + i) = rand ();
10132 umask (0);
10133 fd = creat ("conftest.mmap", 0600);
10134 if (fd < 0)
10135 return 1;
10136 if (write (fd, data, pagesize) != pagesize)
10137 return 1;
10138 close (fd);
10139
10140 /* Next, try to mmap the file at a fixed address which already has
10141 something else allocated at it. If we can, also make sure that
10142 we see the same garbage. */
10143 fd = open ("conftest.mmap", O_RDWR);
10144 if (fd < 0)
10145 return 1;
10146 data2 = (char *) malloc (2 * pagesize);
10147 if (!data2)
10148 return 1;
10149 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10150 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10151 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10152 return 1;
10153 for (i = 0; i < pagesize; ++i)
10154 if (*(data + i) != *(data2 + i))
10155 return 1;
10156
10157 /* Finally, make sure that changes to the mapped area do not
10158 percolate back to the file as seen by read(). (This is a bug on
10159 some variants of i386 svr4.0.) */
10160 for (i = 0; i < pagesize; ++i)
10161 *(data2 + i) = *(data2 + i) + 1;
10162 data3 = (char *) malloc (pagesize);
10163 if (!data3)
10164 return 1;
10165 if (read (fd, data3, pagesize) != pagesize)
10166 return 1;
10167 for (i = 0; i < pagesize; ++i)
10168 if (*(data + i) != *(data3 + i))
10169 return 1;
10170 close (fd);
10171 return 0;
10172 }
10173 _ACEOF
10174 rm -f conftest$ac_exeext
10175 if { (ac_try="$ac_link"
10176 case "(($ac_try" in
10177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10178 *) ac_try_echo=$ac_try;;
10179 esac
10180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10181 (eval "$ac_link") 2>&5
10182 ac_status=$?
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10185 { (case "(($ac_try" in
10186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10187 *) ac_try_echo=$ac_try;;
10188 esac
10189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10190 (eval "$ac_try") 2>&5
10191 ac_status=$?
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); }; }; then
10194 ac_cv_func_mmap_fixed_mapped=yes
10195 else
10196 echo "$as_me: program exited with status $ac_status" >&5
10197 echo "$as_me: failed program was:" >&5
10198 sed 's/^/| /' conftest.$ac_ext >&5
10199
10200 ( exit $ac_status )
10201 ac_cv_func_mmap_fixed_mapped=no
10202 fi
10203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10204 fi
10205
10206
10207 fi
10208 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10209 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10210 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10211
10212 cat >>confdefs.h <<\_ACEOF
10213 #define HAVE_MMAP 1
10214 _ACEOF
10215
10216 fi
10217 rm -f conftest.mmap
10218
10219 if test $use_mmap_for_buffers = yes; then
10220 REL_ALLOC=no
10221 fi
10222
10223 LIBS="$libsrc_libs $LIBS"
10224
10225
10226 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10227 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10228 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10229 echo $ECHO_N "(cached) $ECHO_C" >&6
10230 else
10231 ac_check_lib_save_LIBS=$LIBS
10232 LIBS="-ldnet $LIBS"
10233 cat >conftest.$ac_ext <<_ACEOF
10234 /* confdefs.h. */
10235 _ACEOF
10236 cat confdefs.h >>conftest.$ac_ext
10237 cat >>conftest.$ac_ext <<_ACEOF
10238 /* end confdefs.h. */
10239
10240 /* Override any GCC internal prototype to avoid an error.
10241 Use char because int might match the return type of a GCC
10242 builtin and then its argument prototype would still apply. */
10243 #ifdef __cplusplus
10244 extern "C"
10245 #endif
10246 char dnet_ntoa ();
10247 int
10248 main ()
10249 {
10250 return dnet_ntoa ();
10251 ;
10252 return 0;
10253 }
10254 _ACEOF
10255 rm -f conftest.$ac_objext conftest$ac_exeext
10256 if { (ac_try="$ac_link"
10257 case "(($ac_try" in
10258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10259 *) ac_try_echo=$ac_try;;
10260 esac
10261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10262 (eval "$ac_link") 2>conftest.er1
10263 ac_status=$?
10264 grep -v '^ *+' conftest.er1 >conftest.err
10265 rm -f conftest.er1
10266 cat conftest.err >&5
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); } && {
10269 test -z "$ac_c_werror_flag" ||
10270 test ! -s conftest.err
10271 } && test -s conftest$ac_exeext &&
10272 $as_test_x conftest$ac_exeext; then
10273 ac_cv_lib_dnet_dnet_ntoa=yes
10274 else
10275 echo "$as_me: failed program was:" >&5
10276 sed 's/^/| /' conftest.$ac_ext >&5
10277
10278 ac_cv_lib_dnet_dnet_ntoa=no
10279 fi
10280
10281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10282 conftest$ac_exeext conftest.$ac_ext
10283 LIBS=$ac_check_lib_save_LIBS
10284 fi
10285 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10286 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10287 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10288 cat >>confdefs.h <<_ACEOF
10289 #define HAVE_LIBDNET 1
10290 _ACEOF
10291
10292 LIBS="-ldnet $LIBS"
10293
10294 fi
10295
10296
10297 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10298 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10299 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10300 echo $ECHO_N "(cached) $ECHO_C" >&6
10301 else
10302 ac_check_lib_save_LIBS=$LIBS
10303 LIBS="-lXbsd $LIBS"
10304 cat >conftest.$ac_ext <<_ACEOF
10305 /* confdefs.h. */
10306 _ACEOF
10307 cat confdefs.h >>conftest.$ac_ext
10308 cat >>conftest.$ac_ext <<_ACEOF
10309 /* end confdefs.h. */
10310
10311
10312 int
10313 main ()
10314 {
10315 return main ();
10316 ;
10317 return 0;
10318 }
10319 _ACEOF
10320 rm -f conftest.$ac_objext conftest$ac_exeext
10321 if { (ac_try="$ac_link"
10322 case "(($ac_try" in
10323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10324 *) ac_try_echo=$ac_try;;
10325 esac
10326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10327 (eval "$ac_link") 2>conftest.er1
10328 ac_status=$?
10329 grep -v '^ *+' conftest.er1 >conftest.err
10330 rm -f conftest.er1
10331 cat conftest.err >&5
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); } && {
10334 test -z "$ac_c_werror_flag" ||
10335 test ! -s conftest.err
10336 } && test -s conftest$ac_exeext &&
10337 $as_test_x conftest$ac_exeext; then
10338 ac_cv_lib_Xbsd_main=yes
10339 else
10340 echo "$as_me: failed program was:" >&5
10341 sed 's/^/| /' conftest.$ac_ext >&5
10342
10343 ac_cv_lib_Xbsd_main=no
10344 fi
10345
10346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10347 conftest$ac_exeext conftest.$ac_ext
10348 LIBS=$ac_check_lib_save_LIBS
10349 fi
10350 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10351 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10352 if test $ac_cv_lib_Xbsd_main = yes; then
10353 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10354 fi
10355
10356
10357
10358 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10359 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10360 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10361 echo $ECHO_N "(cached) $ECHO_C" >&6
10362 else
10363 ac_check_lib_save_LIBS=$LIBS
10364 LIBS="-lpthreads $LIBS"
10365 cat >conftest.$ac_ext <<_ACEOF
10366 /* confdefs.h. */
10367 _ACEOF
10368 cat confdefs.h >>conftest.$ac_ext
10369 cat >>conftest.$ac_ext <<_ACEOF
10370 /* end confdefs.h. */
10371
10372 /* Override any GCC internal prototype to avoid an error.
10373 Use char because int might match the return type of a GCC
10374 builtin and then its argument prototype would still apply. */
10375 #ifdef __cplusplus
10376 extern "C"
10377 #endif
10378 char cma_open ();
10379 int
10380 main ()
10381 {
10382 return cma_open ();
10383 ;
10384 return 0;
10385 }
10386 _ACEOF
10387 rm -f conftest.$ac_objext conftest$ac_exeext
10388 if { (ac_try="$ac_link"
10389 case "(($ac_try" in
10390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10391 *) ac_try_echo=$ac_try;;
10392 esac
10393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10394 (eval "$ac_link") 2>conftest.er1
10395 ac_status=$?
10396 grep -v '^ *+' conftest.er1 >conftest.err
10397 rm -f conftest.er1
10398 cat conftest.err >&5
10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); } && {
10401 test -z "$ac_c_werror_flag" ||
10402 test ! -s conftest.err
10403 } && test -s conftest$ac_exeext &&
10404 $as_test_x conftest$ac_exeext; then
10405 ac_cv_lib_pthreads_cma_open=yes
10406 else
10407 echo "$as_me: failed program was:" >&5
10408 sed 's/^/| /' conftest.$ac_ext >&5
10409
10410 ac_cv_lib_pthreads_cma_open=no
10411 fi
10412
10413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10414 conftest$ac_exeext conftest.$ac_ext
10415 LIBS=$ac_check_lib_save_LIBS
10416 fi
10417 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10418 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10419 if test $ac_cv_lib_pthreads_cma_open = yes; then
10420 cat >>confdefs.h <<_ACEOF
10421 #define HAVE_LIBPTHREADS 1
10422 _ACEOF
10423
10424 LIBS="-lpthreads $LIBS"
10425
10426 fi
10427
10428
10429 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10430 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10431 if test -d /usr/X386/include; then
10432 HAVE_XFREE386=yes
10433 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10434 else
10435 HAVE_XFREE386=no
10436 fi
10437 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10438 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10439
10440
10441 case ${host_os} in
10442 aix*)
10443 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10444 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10445 if test "${gdb_cv_bigtoc+set}" = set; then
10446 echo $ECHO_N "(cached) $ECHO_C" >&6
10447 else
10448
10449 case $GCC in
10450 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10451 *) gdb_cv_bigtoc=-bbigtoc ;;
10452 esac
10453
10454 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10455 cat >conftest.$ac_ext <<_ACEOF
10456 /* confdefs.h. */
10457 _ACEOF
10458 cat confdefs.h >>conftest.$ac_ext
10459 cat >>conftest.$ac_ext <<_ACEOF
10460 /* end confdefs.h. */
10461
10462 int
10463 main ()
10464 {
10465 int i;
10466 ;
10467 return 0;
10468 }
10469 _ACEOF
10470 rm -f conftest.$ac_objext conftest$ac_exeext
10471 if { (ac_try="$ac_link"
10472 case "(($ac_try" in
10473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10474 *) ac_try_echo=$ac_try;;
10475 esac
10476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10477 (eval "$ac_link") 2>conftest.er1
10478 ac_status=$?
10479 grep -v '^ *+' conftest.er1 >conftest.err
10480 rm -f conftest.er1
10481 cat conftest.err >&5
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); } && {
10484 test -z "$ac_c_werror_flag" ||
10485 test ! -s conftest.err
10486 } && test -s conftest$ac_exeext &&
10487 $as_test_x conftest$ac_exeext; then
10488 :
10489 else
10490 echo "$as_me: failed program was:" >&5
10491 sed 's/^/| /' conftest.$ac_ext >&5
10492
10493 gdb_cv_bigtoc=
10494 fi
10495
10496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10497 conftest$ac_exeext conftest.$ac_ext
10498
10499 fi
10500 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10501 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10502 ;;
10503 esac
10504
10505 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10506 # used for the tests that follow. We set them back to REAL_CFLAGS and
10507 # REAL_CPPFLAGS later on.
10508
10509 REAL_CPPFLAGS="$CPPFLAGS"
10510
10511 if test "${HAVE_X11}" = "yes"; then
10512 DEFS="$C_SWITCH_X_SITE $DEFS"
10513 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10514 LIBS="$LIBX $LIBS"
10515 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10516 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10517
10518 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10519 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10520 # but it's more convenient here to set LD_RUN_PATH
10521 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10522 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10523 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10524 export LD_RUN_PATH
10525 fi
10526
10527 if test "${opsys}" = "gnu-linux"; then
10528 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10529 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10530 cat >conftest.$ac_ext <<_ACEOF
10531 /* confdefs.h. */
10532 _ACEOF
10533 cat confdefs.h >>conftest.$ac_ext
10534 cat >>conftest.$ac_ext <<_ACEOF
10535 /* end confdefs.h. */
10536
10537 int
10538 main ()
10539 {
10540 XOpenDisplay ("foo");
10541 ;
10542 return 0;
10543 }
10544 _ACEOF
10545 rm -f conftest.$ac_objext conftest$ac_exeext
10546 if { (ac_try="$ac_link"
10547 case "(($ac_try" in
10548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10549 *) ac_try_echo=$ac_try;;
10550 esac
10551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10552 (eval "$ac_link") 2>conftest.er1
10553 ac_status=$?
10554 grep -v '^ *+' conftest.er1 >conftest.err
10555 rm -f conftest.er1
10556 cat conftest.err >&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); } && {
10559 test -z "$ac_c_werror_flag" ||
10560 test ! -s conftest.err
10561 } && test -s conftest$ac_exeext &&
10562 $as_test_x conftest$ac_exeext; then
10563 xlinux_first_failure=no
10564 else
10565 echo "$as_me: failed program was:" >&5
10566 sed 's/^/| /' conftest.$ac_ext >&5
10567
10568 xlinux_first_failure=yes
10569 fi
10570
10571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10572 conftest$ac_exeext conftest.$ac_ext
10573 if test "${xlinux_first_failure}" = "yes"; then
10574 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10575 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10576 OLD_CPPFLAGS="$CPPFLAGS"
10577 OLD_LIBS="$LIBS"
10578 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10579 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10580 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10581 LIBS="$LIBS -b i486-linuxaout"
10582 cat >conftest.$ac_ext <<_ACEOF
10583 /* confdefs.h. */
10584 _ACEOF
10585 cat confdefs.h >>conftest.$ac_ext
10586 cat >>conftest.$ac_ext <<_ACEOF
10587 /* end confdefs.h. */
10588
10589 int
10590 main ()
10591 {
10592 XOpenDisplay ("foo");
10593 ;
10594 return 0;
10595 }
10596 _ACEOF
10597 rm -f conftest.$ac_objext conftest$ac_exeext
10598 if { (ac_try="$ac_link"
10599 case "(($ac_try" in
10600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10601 *) ac_try_echo=$ac_try;;
10602 esac
10603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10604 (eval "$ac_link") 2>conftest.er1
10605 ac_status=$?
10606 grep -v '^ *+' conftest.er1 >conftest.err
10607 rm -f conftest.er1
10608 cat conftest.err >&5
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); } && {
10611 test -z "$ac_c_werror_flag" ||
10612 test ! -s conftest.err
10613 } && test -s conftest$ac_exeext &&
10614 $as_test_x conftest$ac_exeext; then
10615 xlinux_second_failure=no
10616 else
10617 echo "$as_me: failed program was:" >&5
10618 sed 's/^/| /' conftest.$ac_ext >&5
10619
10620 xlinux_second_failure=yes
10621 fi
10622
10623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10624 conftest$ac_exeext conftest.$ac_ext
10625 if test "${xlinux_second_failure}" = "yes"; then
10626 # If we get the same failure with -b, there is no use adding -b.
10627 # So take it out. This plays safe.
10628 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10629 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10630 CPPFLAGS="$OLD_CPPFLAGS"
10631 LIBS="$OLD_LIBS"
10632 { echo "$as_me:$LINENO: result: no" >&5
10633 echo "${ECHO_T}no" >&6; }
10634 else
10635 { echo "$as_me:$LINENO: result: yes" >&5
10636 echo "${ECHO_T}yes" >&6; }
10637 fi
10638 else
10639 { echo "$as_me:$LINENO: result: no" >&5
10640 echo "${ECHO_T}no" >&6; }
10641 fi
10642 fi
10643
10644 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10645 # header files included from there.
10646 { echo "$as_me:$LINENO: checking for Xkb" >&5
10647 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10648 cat >conftest.$ac_ext <<_ACEOF
10649 /* confdefs.h. */
10650 _ACEOF
10651 cat confdefs.h >>conftest.$ac_ext
10652 cat >>conftest.$ac_ext <<_ACEOF
10653 /* end confdefs.h. */
10654 #include <X11/Xlib.h>
10655 #include <X11/XKBlib.h>
10656 int
10657 main ()
10658 {
10659 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10660 ;
10661 return 0;
10662 }
10663 _ACEOF
10664 rm -f conftest.$ac_objext conftest$ac_exeext
10665 if { (ac_try="$ac_link"
10666 case "(($ac_try" in
10667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10668 *) ac_try_echo=$ac_try;;
10669 esac
10670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10671 (eval "$ac_link") 2>conftest.er1
10672 ac_status=$?
10673 grep -v '^ *+' conftest.er1 >conftest.err
10674 rm -f conftest.er1
10675 cat conftest.err >&5
10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677 (exit $ac_status); } && {
10678 test -z "$ac_c_werror_flag" ||
10679 test ! -s conftest.err
10680 } && test -s conftest$ac_exeext &&
10681 $as_test_x conftest$ac_exeext; then
10682 emacs_xkb=yes
10683 else
10684 echo "$as_me: failed program was:" >&5
10685 sed 's/^/| /' conftest.$ac_ext >&5
10686
10687 emacs_xkb=no
10688 fi
10689
10690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10691 conftest$ac_exeext conftest.$ac_ext
10692 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10693 echo "${ECHO_T}$emacs_xkb" >&6; }
10694 if test $emacs_xkb = yes; then
10695
10696 cat >>confdefs.h <<\_ACEOF
10697 #define HAVE_XKBGETKEYBOARD 1
10698 _ACEOF
10699
10700 fi
10701
10702
10703
10704
10705
10706 for ac_func in XrmSetDatabase XScreenResourceString \
10707 XScreenNumberOfScreen XSetWMProtocols
10708 do
10709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10710 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10712 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10713 echo $ECHO_N "(cached) $ECHO_C" >&6
10714 else
10715 cat >conftest.$ac_ext <<_ACEOF
10716 /* confdefs.h. */
10717 _ACEOF
10718 cat confdefs.h >>conftest.$ac_ext
10719 cat >>conftest.$ac_ext <<_ACEOF
10720 /* end confdefs.h. */
10721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10723 #define $ac_func innocuous_$ac_func
10724
10725 /* System header to define __stub macros and hopefully few prototypes,
10726 which can conflict with char $ac_func (); below.
10727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10728 <limits.h> exists even on freestanding compilers. */
10729
10730 #ifdef __STDC__
10731 # include <limits.h>
10732 #else
10733 # include <assert.h>
10734 #endif
10735
10736 #undef $ac_func
10737
10738 /* Override any GCC internal prototype to avoid an error.
10739 Use char because int might match the return type of a GCC
10740 builtin and then its argument prototype would still apply. */
10741 #ifdef __cplusplus
10742 extern "C"
10743 #endif
10744 char $ac_func ();
10745 /* The GNU C library defines this for functions which it implements
10746 to always fail with ENOSYS. Some functions are actually named
10747 something starting with __ and the normal name is an alias. */
10748 #if defined __stub_$ac_func || defined __stub___$ac_func
10749 choke me
10750 #endif
10751
10752 int
10753 main ()
10754 {
10755 return $ac_func ();
10756 ;
10757 return 0;
10758 }
10759 _ACEOF
10760 rm -f conftest.$ac_objext conftest$ac_exeext
10761 if { (ac_try="$ac_link"
10762 case "(($ac_try" in
10763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10764 *) ac_try_echo=$ac_try;;
10765 esac
10766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10767 (eval "$ac_link") 2>conftest.er1
10768 ac_status=$?
10769 grep -v '^ *+' conftest.er1 >conftest.err
10770 rm -f conftest.er1
10771 cat conftest.err >&5
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); } && {
10774 test -z "$ac_c_werror_flag" ||
10775 test ! -s conftest.err
10776 } && test -s conftest$ac_exeext &&
10777 $as_test_x conftest$ac_exeext; then
10778 eval "$as_ac_var=yes"
10779 else
10780 echo "$as_me: failed program was:" >&5
10781 sed 's/^/| /' conftest.$ac_ext >&5
10782
10783 eval "$as_ac_var=no"
10784 fi
10785
10786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10787 conftest$ac_exeext conftest.$ac_ext
10788 fi
10789 ac_res=`eval echo '${'$as_ac_var'}'`
10790 { echo "$as_me:$LINENO: result: $ac_res" >&5
10791 echo "${ECHO_T}$ac_res" >&6; }
10792 if test `eval echo '${'$as_ac_var'}'` = yes; then
10793 cat >>confdefs.h <<_ACEOF
10794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10795 _ACEOF
10796
10797 fi
10798 done
10799
10800 fi
10801
10802 if test "${window_system}" = "x11"; then
10803 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10804 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10805 if test "${emacs_cv_x11_version_6+set}" = set; then
10806 echo $ECHO_N "(cached) $ECHO_C" >&6
10807 else
10808 cat >conftest.$ac_ext <<_ACEOF
10809 /* confdefs.h. */
10810 _ACEOF
10811 cat confdefs.h >>conftest.$ac_ext
10812 cat >>conftest.$ac_ext <<_ACEOF
10813 /* end confdefs.h. */
10814 #include <X11/Xlib.h>
10815 int
10816 main ()
10817 {
10818 #if XlibSpecificationRelease < 6
10819 fail;
10820 #endif
10821
10822 ;
10823 return 0;
10824 }
10825 _ACEOF
10826 rm -f conftest.$ac_objext conftest$ac_exeext
10827 if { (ac_try="$ac_link"
10828 case "(($ac_try" in
10829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10830 *) ac_try_echo=$ac_try;;
10831 esac
10832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10833 (eval "$ac_link") 2>conftest.er1
10834 ac_status=$?
10835 grep -v '^ *+' conftest.er1 >conftest.err
10836 rm -f conftest.er1
10837 cat conftest.err >&5
10838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); } && {
10840 test -z "$ac_c_werror_flag" ||
10841 test ! -s conftest.err
10842 } && test -s conftest$ac_exeext &&
10843 $as_test_x conftest$ac_exeext; then
10844 emacs_cv_x11_version_6=yes
10845 else
10846 echo "$as_me: failed program was:" >&5
10847 sed 's/^/| /' conftest.$ac_ext >&5
10848
10849 emacs_cv_x11_version_6=no
10850 fi
10851
10852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10853 conftest$ac_exeext conftest.$ac_ext
10854 fi
10855
10856 if test $emacs_cv_x11_version_6 = yes; then
10857 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10858 echo "${ECHO_T}6 or newer" >&6; }
10859
10860 cat >>confdefs.h <<\_ACEOF
10861 #define HAVE_X11R6 1
10862 _ACEOF
10863
10864 else
10865 { echo "$as_me:$LINENO: result: before 6" >&5
10866 echo "${ECHO_T}before 6" >&6; }
10867 fi
10868 fi
10869
10870 if test "${window_system}" = "x11"; then
10871 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10872 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10873 if test "${emacs_cv_x11_version_5+set}" = set; then
10874 echo $ECHO_N "(cached) $ECHO_C" >&6
10875 else
10876 cat >conftest.$ac_ext <<_ACEOF
10877 /* confdefs.h. */
10878 _ACEOF
10879 cat confdefs.h >>conftest.$ac_ext
10880 cat >>conftest.$ac_ext <<_ACEOF
10881 /* end confdefs.h. */
10882 #include <X11/Xlib.h>
10883 int
10884 main ()
10885 {
10886 #if XlibSpecificationRelease < 5
10887 fail;
10888 #endif
10889
10890 ;
10891 return 0;
10892 }
10893 _ACEOF
10894 rm -f conftest.$ac_objext conftest$ac_exeext
10895 if { (ac_try="$ac_link"
10896 case "(($ac_try" in
10897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10898 *) ac_try_echo=$ac_try;;
10899 esac
10900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10901 (eval "$ac_link") 2>conftest.er1
10902 ac_status=$?
10903 grep -v '^ *+' conftest.er1 >conftest.err
10904 rm -f conftest.er1
10905 cat conftest.err >&5
10906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); } && {
10908 test -z "$ac_c_werror_flag" ||
10909 test ! -s conftest.err
10910 } && test -s conftest$ac_exeext &&
10911 $as_test_x conftest$ac_exeext; then
10912 emacs_cv_x11_version_5=yes
10913 else
10914 echo "$as_me: failed program was:" >&5
10915 sed 's/^/| /' conftest.$ac_ext >&5
10916
10917 emacs_cv_x11_version_5=no
10918 fi
10919
10920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10921 conftest$ac_exeext conftest.$ac_ext
10922 fi
10923
10924 if test $emacs_cv_x11_version_5 = yes; then
10925 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10926 echo "${ECHO_T}5 or newer" >&6; }
10927 HAVE_X11R5=yes
10928
10929 cat >>confdefs.h <<\_ACEOF
10930 #define HAVE_X11R5 1
10931 _ACEOF
10932
10933 else
10934 HAVE_X11R5=no
10935 { echo "$as_me:$LINENO: result: before 5" >&5
10936 echo "${ECHO_T}before 5" >&6; }
10937 fi
10938 fi
10939
10940 HAVE_GTK=no
10941 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10942 USE_X_TOOLKIT=none
10943 fi
10944 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10945 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10946 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10947 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10948 { (exit 1); exit 1; }; };
10949 fi
10950 GLIB_REQUIRED=2.4
10951 GTK_REQUIRED=2.4
10952 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10953
10954 if test "X${with_pkg_config_prog}" != X; then
10955 PKG_CONFIG="${with_pkg_config_prog}"
10956 fi
10957
10958 succeeded=no
10959
10960 if test -z "$PKG_CONFIG"; then
10961 # Extract the first word of "pkg-config", so it can be a program name with args.
10962 set dummy pkg-config; ac_word=$2
10963 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10965 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10966 echo $ECHO_N "(cached) $ECHO_C" >&6
10967 else
10968 case $PKG_CONFIG in
10969 [\\/]* | ?:[\\/]*)
10970 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10971 ;;
10972 *)
10973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10974 for as_dir in $PATH
10975 do
10976 IFS=$as_save_IFS
10977 test -z "$as_dir" && as_dir=.
10978 for ac_exec_ext in '' $ac_executable_extensions; do
10979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10980 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10982 break 2
10983 fi
10984 done
10985 done
10986 IFS=$as_save_IFS
10987
10988 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10989 ;;
10990 esac
10991 fi
10992 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10993 if test -n "$PKG_CONFIG"; then
10994 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10995 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10996 else
10997 { echo "$as_me:$LINENO: result: no" >&5
10998 echo "${ECHO_T}no" >&6; }
10999 fi
11000
11001
11002 fi
11003
11004 if test "$PKG_CONFIG" = "no" ; then
11005 { { echo "$as_me:$LINENO: error:
11006 *** 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
11007 echo "$as_me: error:
11008 *** 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;}
11009 { (exit 1); exit 1; }; }
11010 else
11011 PKG_CONFIG_MIN_VERSION=0.9.0
11012 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11013 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11014 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11015
11016 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11017 { echo "$as_me:$LINENO: result: yes" >&5
11018 echo "${ECHO_T}yes" >&6; }
11019 succeeded=yes
11020
11021 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11022 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11023 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11024 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11025 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11026
11027 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11028 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11029 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11030 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11031 echo "${ECHO_T}$GTK_LIBS" >&6; }
11032 else
11033 { echo "$as_me:$LINENO: result: no" >&5
11034 echo "${ECHO_T}no" >&6; }
11035 GTK_CFLAGS=""
11036 GTK_LIBS=""
11037 ## If we have a custom action on failure, don't print errors, but
11038 ## do set a variable so people can do so.
11039 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11040 echo $GTK_PKG_ERRORS
11041 fi
11042
11043
11044
11045 else
11046 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11047 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11048 fi
11049 fi
11050
11051 if test $succeeded = yes; then
11052 :
11053 else
11054 { { 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
11055 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;}
11056 { (exit 1); exit 1; }; }
11057 fi
11058
11059
11060
11061 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11062 CFLAGS="$CFLAGS $GTK_CFLAGS"
11063 LIBS="$GTK_LIBS $LIBS"
11064 GTK_COMPILES=no
11065
11066 for ac_func in gtk_main
11067 do
11068 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11069 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11070 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11071 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11072 echo $ECHO_N "(cached) $ECHO_C" >&6
11073 else
11074 cat >conftest.$ac_ext <<_ACEOF
11075 /* confdefs.h. */
11076 _ACEOF
11077 cat confdefs.h >>conftest.$ac_ext
11078 cat >>conftest.$ac_ext <<_ACEOF
11079 /* end confdefs.h. */
11080 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11082 #define $ac_func innocuous_$ac_func
11083
11084 /* System header to define __stub macros and hopefully few prototypes,
11085 which can conflict with char $ac_func (); below.
11086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11087 <limits.h> exists even on freestanding compilers. */
11088
11089 #ifdef __STDC__
11090 # include <limits.h>
11091 #else
11092 # include <assert.h>
11093 #endif
11094
11095 #undef $ac_func
11096
11097 /* Override any GCC internal prototype to avoid an error.
11098 Use char because int might match the return type of a GCC
11099 builtin and then its argument prototype would still apply. */
11100 #ifdef __cplusplus
11101 extern "C"
11102 #endif
11103 char $ac_func ();
11104 /* The GNU C library defines this for functions which it implements
11105 to always fail with ENOSYS. Some functions are actually named
11106 something starting with __ and the normal name is an alias. */
11107 #if defined __stub_$ac_func || defined __stub___$ac_func
11108 choke me
11109 #endif
11110
11111 int
11112 main ()
11113 {
11114 return $ac_func ();
11115 ;
11116 return 0;
11117 }
11118 _ACEOF
11119 rm -f conftest.$ac_objext conftest$ac_exeext
11120 if { (ac_try="$ac_link"
11121 case "(($ac_try" in
11122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11123 *) ac_try_echo=$ac_try;;
11124 esac
11125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11126 (eval "$ac_link") 2>conftest.er1
11127 ac_status=$?
11128 grep -v '^ *+' conftest.er1 >conftest.err
11129 rm -f conftest.er1
11130 cat conftest.err >&5
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); } && {
11133 test -z "$ac_c_werror_flag" ||
11134 test ! -s conftest.err
11135 } && test -s conftest$ac_exeext &&
11136 $as_test_x conftest$ac_exeext; then
11137 eval "$as_ac_var=yes"
11138 else
11139 echo "$as_me: failed program was:" >&5
11140 sed 's/^/| /' conftest.$ac_ext >&5
11141
11142 eval "$as_ac_var=no"
11143 fi
11144
11145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11146 conftest$ac_exeext conftest.$ac_ext
11147 fi
11148 ac_res=`eval echo '${'$as_ac_var'}'`
11149 { echo "$as_me:$LINENO: result: $ac_res" >&5
11150 echo "${ECHO_T}$ac_res" >&6; }
11151 if test `eval echo '${'$as_ac_var'}'` = yes; then
11152 cat >>confdefs.h <<_ACEOF
11153 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11154 _ACEOF
11155 GTK_COMPILES=yes
11156 fi
11157 done
11158
11159 if test "${GTK_COMPILES}" != "yes"; then
11160 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11161 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11162 { (exit 1); exit 1; }; };
11163 fi
11164
11165 HAVE_GTK=yes
11166
11167 cat >>confdefs.h <<\_ACEOF
11168 #define HAVE_GTK 1
11169 _ACEOF
11170
11171 USE_X_TOOLKIT=none
11172
11173 if test "$with_toolkit_scroll_bars" != no; then
11174 with_toolkit_scroll_bars=yes
11175 fi
11176
11177 HAVE_GTK_MULTIDISPLAY=no
11178
11179 for ac_func in gdk_display_open
11180 do
11181 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11182 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11183 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11184 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11185 echo $ECHO_N "(cached) $ECHO_C" >&6
11186 else
11187 cat >conftest.$ac_ext <<_ACEOF
11188 /* confdefs.h. */
11189 _ACEOF
11190 cat confdefs.h >>conftest.$ac_ext
11191 cat >>conftest.$ac_ext <<_ACEOF
11192 /* end confdefs.h. */
11193 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11195 #define $ac_func innocuous_$ac_func
11196
11197 /* System header to define __stub macros and hopefully few prototypes,
11198 which can conflict with char $ac_func (); below.
11199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11200 <limits.h> exists even on freestanding compilers. */
11201
11202 #ifdef __STDC__
11203 # include <limits.h>
11204 #else
11205 # include <assert.h>
11206 #endif
11207
11208 #undef $ac_func
11209
11210 /* Override any GCC internal prototype to avoid an error.
11211 Use char because int might match the return type of a GCC
11212 builtin and then its argument prototype would still apply. */
11213 #ifdef __cplusplus
11214 extern "C"
11215 #endif
11216 char $ac_func ();
11217 /* The GNU C library defines this for functions which it implements
11218 to always fail with ENOSYS. Some functions are actually named
11219 something starting with __ and the normal name is an alias. */
11220 #if defined __stub_$ac_func || defined __stub___$ac_func
11221 choke me
11222 #endif
11223
11224 int
11225 main ()
11226 {
11227 return $ac_func ();
11228 ;
11229 return 0;
11230 }
11231 _ACEOF
11232 rm -f conftest.$ac_objext conftest$ac_exeext
11233 if { (ac_try="$ac_link"
11234 case "(($ac_try" in
11235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11236 *) ac_try_echo=$ac_try;;
11237 esac
11238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11239 (eval "$ac_link") 2>conftest.er1
11240 ac_status=$?
11241 grep -v '^ *+' conftest.er1 >conftest.err
11242 rm -f conftest.er1
11243 cat conftest.err >&5
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); } && {
11246 test -z "$ac_c_werror_flag" ||
11247 test ! -s conftest.err
11248 } && test -s conftest$ac_exeext &&
11249 $as_test_x conftest$ac_exeext; then
11250 eval "$as_ac_var=yes"
11251 else
11252 echo "$as_me: failed program was:" >&5
11253 sed 's/^/| /' conftest.$ac_ext >&5
11254
11255 eval "$as_ac_var=no"
11256 fi
11257
11258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11259 conftest$ac_exeext conftest.$ac_ext
11260 fi
11261 ac_res=`eval echo '${'$as_ac_var'}'`
11262 { echo "$as_me:$LINENO: result: $ac_res" >&5
11263 echo "${ECHO_T}$ac_res" >&6; }
11264 if test `eval echo '${'$as_ac_var'}'` = yes; then
11265 cat >>confdefs.h <<_ACEOF
11266 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11267 _ACEOF
11268 HAVE_GTK_MULTIDISPLAY=yes
11269 fi
11270 done
11271
11272 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11273
11274 cat >>confdefs.h <<\_ACEOF
11275 #define HAVE_GTK_MULTIDISPLAY 1
11276 _ACEOF
11277
11278 fi
11279 HAVE_GTK_FILE_SELECTION=no
11280
11281 for ac_func in gtk_file_selection_new
11282 do
11283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11284 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11286 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11287 echo $ECHO_N "(cached) $ECHO_C" >&6
11288 else
11289 cat >conftest.$ac_ext <<_ACEOF
11290 /* confdefs.h. */
11291 _ACEOF
11292 cat confdefs.h >>conftest.$ac_ext
11293 cat >>conftest.$ac_ext <<_ACEOF
11294 /* end confdefs.h. */
11295 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11297 #define $ac_func innocuous_$ac_func
11298
11299 /* System header to define __stub macros and hopefully few prototypes,
11300 which can conflict with char $ac_func (); below.
11301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11302 <limits.h> exists even on freestanding compilers. */
11303
11304 #ifdef __STDC__
11305 # include <limits.h>
11306 #else
11307 # include <assert.h>
11308 #endif
11309
11310 #undef $ac_func
11311
11312 /* Override any GCC internal prototype to avoid an error.
11313 Use char because int might match the return type of a GCC
11314 builtin and then its argument prototype would still apply. */
11315 #ifdef __cplusplus
11316 extern "C"
11317 #endif
11318 char $ac_func ();
11319 /* The GNU C library defines this for functions which it implements
11320 to always fail with ENOSYS. Some functions are actually named
11321 something starting with __ and the normal name is an alias. */
11322 #if defined __stub_$ac_func || defined __stub___$ac_func
11323 choke me
11324 #endif
11325
11326 int
11327 main ()
11328 {
11329 return $ac_func ();
11330 ;
11331 return 0;
11332 }
11333 _ACEOF
11334 rm -f conftest.$ac_objext conftest$ac_exeext
11335 if { (ac_try="$ac_link"
11336 case "(($ac_try" in
11337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11338 *) ac_try_echo=$ac_try;;
11339 esac
11340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11341 (eval "$ac_link") 2>conftest.er1
11342 ac_status=$?
11343 grep -v '^ *+' conftest.er1 >conftest.err
11344 rm -f conftest.er1
11345 cat conftest.err >&5
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); } && {
11348 test -z "$ac_c_werror_flag" ||
11349 test ! -s conftest.err
11350 } && test -s conftest$ac_exeext &&
11351 $as_test_x conftest$ac_exeext; then
11352 eval "$as_ac_var=yes"
11353 else
11354 echo "$as_me: failed program was:" >&5
11355 sed 's/^/| /' conftest.$ac_ext >&5
11356
11357 eval "$as_ac_var=no"
11358 fi
11359
11360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11361 conftest$ac_exeext conftest.$ac_ext
11362 fi
11363 ac_res=`eval echo '${'$as_ac_var'}'`
11364 { echo "$as_me:$LINENO: result: $ac_res" >&5
11365 echo "${ECHO_T}$ac_res" >&6; }
11366 if test `eval echo '${'$as_ac_var'}'` = yes; then
11367 cat >>confdefs.h <<_ACEOF
11368 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11369 _ACEOF
11370 HAVE_GTK_FILE_SELECTION=yes
11371 fi
11372 done
11373
11374
11375 HAVE_GTK_FILE_CHOOSER=no
11376
11377 for ac_func in gtk_file_chooser_dialog_new
11378 do
11379 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11380 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11381 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11382 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11383 echo $ECHO_N "(cached) $ECHO_C" >&6
11384 else
11385 cat >conftest.$ac_ext <<_ACEOF
11386 /* confdefs.h. */
11387 _ACEOF
11388 cat confdefs.h >>conftest.$ac_ext
11389 cat >>conftest.$ac_ext <<_ACEOF
11390 /* end confdefs.h. */
11391 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11393 #define $ac_func innocuous_$ac_func
11394
11395 /* System header to define __stub macros and hopefully few prototypes,
11396 which can conflict with char $ac_func (); below.
11397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11398 <limits.h> exists even on freestanding compilers. */
11399
11400 #ifdef __STDC__
11401 # include <limits.h>
11402 #else
11403 # include <assert.h>
11404 #endif
11405
11406 #undef $ac_func
11407
11408 /* Override any GCC internal prototype to avoid an error.
11409 Use char because int might match the return type of a GCC
11410 builtin and then its argument prototype would still apply. */
11411 #ifdef __cplusplus
11412 extern "C"
11413 #endif
11414 char $ac_func ();
11415 /* The GNU C library defines this for functions which it implements
11416 to always fail with ENOSYS. Some functions are actually named
11417 something starting with __ and the normal name is an alias. */
11418 #if defined __stub_$ac_func || defined __stub___$ac_func
11419 choke me
11420 #endif
11421
11422 int
11423 main ()
11424 {
11425 return $ac_func ();
11426 ;
11427 return 0;
11428 }
11429 _ACEOF
11430 rm -f conftest.$ac_objext conftest$ac_exeext
11431 if { (ac_try="$ac_link"
11432 case "(($ac_try" in
11433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11434 *) ac_try_echo=$ac_try;;
11435 esac
11436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11437 (eval "$ac_link") 2>conftest.er1
11438 ac_status=$?
11439 grep -v '^ *+' conftest.er1 >conftest.err
11440 rm -f conftest.er1
11441 cat conftest.err >&5
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); } && {
11444 test -z "$ac_c_werror_flag" ||
11445 test ! -s conftest.err
11446 } && test -s conftest$ac_exeext &&
11447 $as_test_x conftest$ac_exeext; then
11448 eval "$as_ac_var=yes"
11449 else
11450 echo "$as_me: failed program was:" >&5
11451 sed 's/^/| /' conftest.$ac_ext >&5
11452
11453 eval "$as_ac_var=no"
11454 fi
11455
11456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11457 conftest$ac_exeext conftest.$ac_ext
11458 fi
11459 ac_res=`eval echo '${'$as_ac_var'}'`
11460 { echo "$as_me:$LINENO: result: $ac_res" >&5
11461 echo "${ECHO_T}$ac_res" >&6; }
11462 if test `eval echo '${'$as_ac_var'}'` = yes; then
11463 cat >>confdefs.h <<_ACEOF
11464 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11465 _ACEOF
11466 HAVE_GTK_FILE_CHOOSER=yes
11467 fi
11468 done
11469
11470
11471 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11472 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11473
11474 cat >>confdefs.h <<\_ACEOF
11475 #define HAVE_GTK_FILE_BOTH 1
11476 _ACEOF
11477
11478 fi
11479
11480 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11481 HAVE_GTK_AND_PTHREAD=no
11482
11483 for ac_header in pthread.h
11484 do
11485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11487 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11490 echo $ECHO_N "(cached) $ECHO_C" >&6
11491 fi
11492 ac_res=`eval echo '${'$as_ac_Header'}'`
11493 { echo "$as_me:$LINENO: result: $ac_res" >&5
11494 echo "${ECHO_T}$ac_res" >&6; }
11495 else
11496 # Is the header compilable?
11497 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11498 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11499 cat >conftest.$ac_ext <<_ACEOF
11500 /* confdefs.h. */
11501 _ACEOF
11502 cat confdefs.h >>conftest.$ac_ext
11503 cat >>conftest.$ac_ext <<_ACEOF
11504 /* end confdefs.h. */
11505 $ac_includes_default
11506 #include <$ac_header>
11507 _ACEOF
11508 rm -f conftest.$ac_objext
11509 if { (ac_try="$ac_compile"
11510 case "(($ac_try" in
11511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11512 *) ac_try_echo=$ac_try;;
11513 esac
11514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11515 (eval "$ac_compile") 2>conftest.er1
11516 ac_status=$?
11517 grep -v '^ *+' conftest.er1 >conftest.err
11518 rm -f conftest.er1
11519 cat conftest.err >&5
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); } && {
11522 test -z "$ac_c_werror_flag" ||
11523 test ! -s conftest.err
11524 } && test -s conftest.$ac_objext; then
11525 ac_header_compiler=yes
11526 else
11527 echo "$as_me: failed program was:" >&5
11528 sed 's/^/| /' conftest.$ac_ext >&5
11529
11530 ac_header_compiler=no
11531 fi
11532
11533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11534 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11535 echo "${ECHO_T}$ac_header_compiler" >&6; }
11536
11537 # Is the header present?
11538 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11539 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11540 cat >conftest.$ac_ext <<_ACEOF
11541 /* confdefs.h. */
11542 _ACEOF
11543 cat confdefs.h >>conftest.$ac_ext
11544 cat >>conftest.$ac_ext <<_ACEOF
11545 /* end confdefs.h. */
11546 #include <$ac_header>
11547 _ACEOF
11548 if { (ac_try="$ac_cpp conftest.$ac_ext"
11549 case "(($ac_try" in
11550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11551 *) ac_try_echo=$ac_try;;
11552 esac
11553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11554 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11555 ac_status=$?
11556 grep -v '^ *+' conftest.er1 >conftest.err
11557 rm -f conftest.er1
11558 cat conftest.err >&5
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 (exit $ac_status); } >/dev/null && {
11561 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11562 test ! -s conftest.err
11563 }; then
11564 ac_header_preproc=yes
11565 else
11566 echo "$as_me: failed program was:" >&5
11567 sed 's/^/| /' conftest.$ac_ext >&5
11568
11569 ac_header_preproc=no
11570 fi
11571
11572 rm -f conftest.err conftest.$ac_ext
11573 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11574 echo "${ECHO_T}$ac_header_preproc" >&6; }
11575
11576 # So? What about this header?
11577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11578 yes:no: )
11579 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11580 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11582 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11583 ac_header_preproc=yes
11584 ;;
11585 no:yes:* )
11586 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11587 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11588 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11589 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11590 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11591 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11592 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11593 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11595 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11596 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11597 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11598
11599 ;;
11600 esac
11601 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11604 echo $ECHO_N "(cached) $ECHO_C" >&6
11605 else
11606 eval "$as_ac_Header=\$ac_header_preproc"
11607 fi
11608 ac_res=`eval echo '${'$as_ac_Header'}'`
11609 { echo "$as_me:$LINENO: result: $ac_res" >&5
11610 echo "${ECHO_T}$ac_res" >&6; }
11611
11612 fi
11613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11614 cat >>confdefs.h <<_ACEOF
11615 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11616 _ACEOF
11617
11618 fi
11619
11620 done
11621
11622 if test "$ac_cv_header_pthread_h"; then
11623 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11624 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11625 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11626 echo $ECHO_N "(cached) $ECHO_C" >&6
11627 else
11628 ac_check_lib_save_LIBS=$LIBS
11629 LIBS="-lpthread $LIBS"
11630 cat >conftest.$ac_ext <<_ACEOF
11631 /* confdefs.h. */
11632 _ACEOF
11633 cat confdefs.h >>conftest.$ac_ext
11634 cat >>conftest.$ac_ext <<_ACEOF
11635 /* end confdefs.h. */
11636
11637 /* Override any GCC internal prototype to avoid an error.
11638 Use char because int might match the return type of a GCC
11639 builtin and then its argument prototype would still apply. */
11640 #ifdef __cplusplus
11641 extern "C"
11642 #endif
11643 char pthread_self ();
11644 int
11645 main ()
11646 {
11647 return pthread_self ();
11648 ;
11649 return 0;
11650 }
11651 _ACEOF
11652 rm -f conftest.$ac_objext conftest$ac_exeext
11653 if { (ac_try="$ac_link"
11654 case "(($ac_try" in
11655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11656 *) ac_try_echo=$ac_try;;
11657 esac
11658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11659 (eval "$ac_link") 2>conftest.er1
11660 ac_status=$?
11661 grep -v '^ *+' conftest.er1 >conftest.err
11662 rm -f conftest.er1
11663 cat conftest.err >&5
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); } && {
11666 test -z "$ac_c_werror_flag" ||
11667 test ! -s conftest.err
11668 } && test -s conftest$ac_exeext &&
11669 $as_test_x conftest$ac_exeext; then
11670 ac_cv_lib_pthread_pthread_self=yes
11671 else
11672 echo "$as_me: failed program was:" >&5
11673 sed 's/^/| /' conftest.$ac_ext >&5
11674
11675 ac_cv_lib_pthread_pthread_self=no
11676 fi
11677
11678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11679 conftest$ac_exeext conftest.$ac_ext
11680 LIBS=$ac_check_lib_save_LIBS
11681 fi
11682 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11683 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11684 if test $ac_cv_lib_pthread_pthread_self = yes; then
11685 HAVE_GTK_AND_PTHREAD=yes
11686 fi
11687
11688 fi
11689 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11690 GTK_LIBS="$GTK_LIBS -lpthread"
11691
11692 cat >>confdefs.h <<\_ACEOF
11693 #define HAVE_GTK_AND_PTHREAD 1
11694 _ACEOF
11695
11696 fi
11697 fi
11698 fi
11699
11700 ### Link with -lXft if available to work around a bug.
11701 HAVE_XFT=maybe
11702 if test "${HAVE_GTK}" = "yes"; then
11703 if test "X${with_pkg_config_prog}" != X; then
11704 PKG_CONFIG="${with_pkg_config_prog}"
11705 fi
11706
11707
11708 succeeded=no
11709
11710 if test -z "$PKG_CONFIG"; then
11711 # Extract the first word of "pkg-config", so it can be a program name with args.
11712 set dummy pkg-config; ac_word=$2
11713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11715 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11716 echo $ECHO_N "(cached) $ECHO_C" >&6
11717 else
11718 case $PKG_CONFIG in
11719 [\\/]* | ?:[\\/]*)
11720 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11721 ;;
11722 *)
11723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11724 for as_dir in $PATH
11725 do
11726 IFS=$as_save_IFS
11727 test -z "$as_dir" && as_dir=.
11728 for ac_exec_ext in '' $ac_executable_extensions; do
11729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11730 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11732 break 2
11733 fi
11734 done
11735 done
11736 IFS=$as_save_IFS
11737
11738 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11739 ;;
11740 esac
11741 fi
11742 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11743 if test -n "$PKG_CONFIG"; then
11744 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11745 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11746 else
11747 { echo "$as_me:$LINENO: result: no" >&5
11748 echo "${ECHO_T}no" >&6; }
11749 fi
11750
11751
11752 fi
11753
11754 if test "$PKG_CONFIG" = "no" ; then
11755 HAVE_XFT=no
11756 else
11757 PKG_CONFIG_MIN_VERSION=0.9.0
11758 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11759 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11760 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
11761
11762 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11763 { echo "$as_me:$LINENO: result: yes" >&5
11764 echo "${ECHO_T}yes" >&6; }
11765 succeeded=yes
11766
11767 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11768 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
11769 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11770 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11771 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
11772
11773 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11774 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
11775 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11776 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11777 echo "${ECHO_T}$XFT_LIBS" >&6; }
11778 else
11779 { echo "$as_me:$LINENO: result: no" >&5
11780 echo "${ECHO_T}no" >&6; }
11781 XFT_CFLAGS=""
11782 XFT_LIBS=""
11783 ## If we have a custom action on failure, don't print errors, but
11784 ## do set a variable so people can do so.
11785 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11786
11787 fi
11788
11789
11790
11791 else
11792 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11793 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11794 fi
11795 fi
11796
11797 if test $succeeded = yes; then
11798 :
11799 else
11800 HAVE_XFT=no
11801 fi
11802
11803 if test "$HAVE_XFT" != no; then
11804 OLD_CFLAGS="$CPPFLAGS"
11805 OLD_CPPFLAGS="$CFLAGS"
11806 OLD_LIBS="$LIBS"
11807 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11808 CFLAGS="$CFLAGS $XFT_CFLAGS"
11809 LIBS="$XFT_LIBS $LIBS"
11810 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11811 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11812 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11813 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11814 echo $ECHO_N "(cached) $ECHO_C" >&6
11815 fi
11816 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11817 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11818 else
11819 # Is the header compilable?
11820 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11821 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
11822 cat >conftest.$ac_ext <<_ACEOF
11823 /* confdefs.h. */
11824 _ACEOF
11825 cat confdefs.h >>conftest.$ac_ext
11826 cat >>conftest.$ac_ext <<_ACEOF
11827 /* end confdefs.h. */
11828 $ac_includes_default
11829 #include <X11/Xft/Xft.h>
11830 _ACEOF
11831 rm -f conftest.$ac_objext
11832 if { (ac_try="$ac_compile"
11833 case "(($ac_try" in
11834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11835 *) ac_try_echo=$ac_try;;
11836 esac
11837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11838 (eval "$ac_compile") 2>conftest.er1
11839 ac_status=$?
11840 grep -v '^ *+' conftest.er1 >conftest.err
11841 rm -f conftest.er1
11842 cat conftest.err >&5
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); } && {
11845 test -z "$ac_c_werror_flag" ||
11846 test ! -s conftest.err
11847 } && test -s conftest.$ac_objext; then
11848 ac_header_compiler=yes
11849 else
11850 echo "$as_me: failed program was:" >&5
11851 sed 's/^/| /' conftest.$ac_ext >&5
11852
11853 ac_header_compiler=no
11854 fi
11855
11856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11857 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11858 echo "${ECHO_T}$ac_header_compiler" >&6; }
11859
11860 # Is the header present?
11861 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
11862 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
11863 cat >conftest.$ac_ext <<_ACEOF
11864 /* confdefs.h. */
11865 _ACEOF
11866 cat confdefs.h >>conftest.$ac_ext
11867 cat >>conftest.$ac_ext <<_ACEOF
11868 /* end confdefs.h. */
11869 #include <X11/Xft/Xft.h>
11870 _ACEOF
11871 if { (ac_try="$ac_cpp conftest.$ac_ext"
11872 case "(($ac_try" in
11873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11874 *) ac_try_echo=$ac_try;;
11875 esac
11876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11878 ac_status=$?
11879 grep -v '^ *+' conftest.er1 >conftest.err
11880 rm -f conftest.er1
11881 cat conftest.err >&5
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); } >/dev/null && {
11884 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11885 test ! -s conftest.err
11886 }; then
11887 ac_header_preproc=yes
11888 else
11889 echo "$as_me: failed program was:" >&5
11890 sed 's/^/| /' conftest.$ac_ext >&5
11891
11892 ac_header_preproc=no
11893 fi
11894
11895 rm -f conftest.err conftest.$ac_ext
11896 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11897 echo "${ECHO_T}$ac_header_preproc" >&6; }
11898
11899 # So? What about this header?
11900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11901 yes:no: )
11902 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
11903 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11904 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
11905 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
11906 ac_header_preproc=yes
11907 ;;
11908 no:yes:* )
11909 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
11910 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
11911 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
11912 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
11913 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
11914 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
11915 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
11916 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
11917 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
11918 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
11919 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
11920 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
11921
11922 ;;
11923 esac
11924 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11925 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11926 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11927 echo $ECHO_N "(cached) $ECHO_C" >&6
11928 else
11929 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
11930 fi
11931 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11932 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11933
11934 fi
11935 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
11936 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
11937 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
11938 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
11939 echo $ECHO_N "(cached) $ECHO_C" >&6
11940 else
11941 ac_check_lib_save_LIBS=$LIBS
11942 LIBS="-lXft $XFT_LIBS $LIBS"
11943 cat >conftest.$ac_ext <<_ACEOF
11944 /* confdefs.h. */
11945 _ACEOF
11946 cat confdefs.h >>conftest.$ac_ext
11947 cat >>conftest.$ac_ext <<_ACEOF
11948 /* end confdefs.h. */
11949
11950 /* Override any GCC internal prototype to avoid an error.
11951 Use char because int might match the return type of a GCC
11952 builtin and then its argument prototype would still apply. */
11953 #ifdef __cplusplus
11954 extern "C"
11955 #endif
11956 char XftFontOpen ();
11957 int
11958 main ()
11959 {
11960 return XftFontOpen ();
11961 ;
11962 return 0;
11963 }
11964 _ACEOF
11965 rm -f conftest.$ac_objext conftest$ac_exeext
11966 if { (ac_try="$ac_link"
11967 case "(($ac_try" in
11968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11969 *) ac_try_echo=$ac_try;;
11970 esac
11971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11972 (eval "$ac_link") 2>conftest.er1
11973 ac_status=$?
11974 grep -v '^ *+' conftest.er1 >conftest.err
11975 rm -f conftest.er1
11976 cat conftest.err >&5
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); } && {
11979 test -z "$ac_c_werror_flag" ||
11980 test ! -s conftest.err
11981 } && test -s conftest$ac_exeext &&
11982 $as_test_x conftest$ac_exeext; then
11983 ac_cv_lib_Xft_XftFontOpen=yes
11984 else
11985 echo "$as_me: failed program was:" >&5
11986 sed 's/^/| /' conftest.$ac_ext >&5
11987
11988 ac_cv_lib_Xft_XftFontOpen=no
11989 fi
11990
11991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11992 conftest$ac_exeext conftest.$ac_ext
11993 LIBS=$ac_check_lib_save_LIBS
11994 fi
11995 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11996 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
11997 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
11998 HAVE_XFT=yes
11999 fi
12000
12001 fi
12002
12003
12004
12005 if test "${HAVE_XFT}" = "yes"; then
12006
12007 cat >>confdefs.h <<\_ACEOF
12008 #define HAVE_XFT 1
12009 _ACEOF
12010
12011
12012 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12013 else
12014 CFLAGS="$OLD_CPPFLAGS"
12015 CFLAGS="$OLD_CFLAGS"
12016 LIBS="$OLD_LIBS"
12017 fi
12018 fi
12019 fi
12020
12021 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12022 if test x"${HAVE_X11R5}" = xyes; then
12023 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
12024 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
12025 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
12026 echo $ECHO_N "(cached) $ECHO_C" >&6
12027 else
12028 cat >conftest.$ac_ext <<_ACEOF
12029 /* confdefs.h. */
12030 _ACEOF
12031 cat confdefs.h >>conftest.$ac_ext
12032 cat >>conftest.$ac_ext <<_ACEOF
12033 /* end confdefs.h. */
12034
12035 #include <X11/Intrinsic.h>
12036 #include <X11/Xaw/Simple.h>
12037 int
12038 main ()
12039 {
12040
12041 ;
12042 return 0;
12043 }
12044 _ACEOF
12045 rm -f conftest.$ac_objext conftest$ac_exeext
12046 if { (ac_try="$ac_link"
12047 case "(($ac_try" in
12048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12049 *) ac_try_echo=$ac_try;;
12050 esac
12051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12052 (eval "$ac_link") 2>conftest.er1
12053 ac_status=$?
12054 grep -v '^ *+' conftest.er1 >conftest.err
12055 rm -f conftest.er1
12056 cat conftest.err >&5
12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); } && {
12059 test -z "$ac_c_werror_flag" ||
12060 test ! -s conftest.err
12061 } && test -s conftest$ac_exeext &&
12062 $as_test_x conftest$ac_exeext; then
12063 emacs_cv_x11_version_5_with_xaw=yes
12064 else
12065 echo "$as_me: failed program was:" >&5
12066 sed 's/^/| /' conftest.$ac_ext >&5
12067
12068 emacs_cv_x11_version_5_with_xaw=no
12069 fi
12070
12071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12072 conftest$ac_exeext conftest.$ac_ext
12073 fi
12074
12075 if test $emacs_cv_x11_version_5_with_xaw = yes; then
12076 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
12077 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
12078 USE_X_TOOLKIT=LUCID
12079 else
12080 if test x"${USE_X_TOOLKIT}" = xLUCID; then
12081 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12082 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12083 { (exit 1); exit 1; }; }
12084 else
12085 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
12086 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
12087 USE_X_TOOLKIT=none
12088 fi
12089 fi
12090 else
12091 USE_X_TOOLKIT=none
12092 fi
12093 fi
12094
12095 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12096
12097 if test "${USE_X_TOOLKIT}" != "none"; then
12098 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12099 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12100 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12101 echo $ECHO_N "(cached) $ECHO_C" >&6
12102 else
12103 cat >conftest.$ac_ext <<_ACEOF
12104 /* confdefs.h. */
12105 _ACEOF
12106 cat confdefs.h >>conftest.$ac_ext
12107 cat >>conftest.$ac_ext <<_ACEOF
12108 /* end confdefs.h. */
12109 #include <X11/Intrinsic.h>
12110 int
12111 main ()
12112 {
12113 #if XtSpecificationRelease < 6
12114 fail;
12115 #endif
12116
12117 ;
12118 return 0;
12119 }
12120 _ACEOF
12121 rm -f conftest.$ac_objext conftest$ac_exeext
12122 if { (ac_try="$ac_link"
12123 case "(($ac_try" in
12124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12125 *) ac_try_echo=$ac_try;;
12126 esac
12127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12128 (eval "$ac_link") 2>conftest.er1
12129 ac_status=$?
12130 grep -v '^ *+' conftest.er1 >conftest.err
12131 rm -f conftest.er1
12132 cat conftest.err >&5
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); } && {
12135 test -z "$ac_c_werror_flag" ||
12136 test ! -s conftest.err
12137 } && test -s conftest$ac_exeext &&
12138 $as_test_x conftest$ac_exeext; then
12139 emacs_cv_x11_toolkit_version_6=yes
12140 else
12141 echo "$as_me: failed program was:" >&5
12142 sed 's/^/| /' conftest.$ac_ext >&5
12143
12144 emacs_cv_x11_toolkit_version_6=no
12145 fi
12146
12147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12148 conftest$ac_exeext conftest.$ac_ext
12149 fi
12150
12151 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12152 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12153 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12154 echo "${ECHO_T}6 or newer" >&6; }
12155
12156 cat >>confdefs.h <<\_ACEOF
12157 #define HAVE_X11XTR6 1
12158 _ACEOF
12159
12160 else
12161 { echo "$as_me:$LINENO: result: before 6" >&5
12162 echo "${ECHO_T}before 6" >&6; }
12163 fi
12164
12165 OLDLIBS="$LIBS"
12166 if test x$HAVE_X11XTR6 = xyes; then
12167 LIBS="-lXt -lSM -lICE $LIBS"
12168 else
12169 LIBS="-lXt $LIBS"
12170 fi
12171
12172 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12173 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12174 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12175 echo $ECHO_N "(cached) $ECHO_C" >&6
12176 else
12177 ac_check_lib_save_LIBS=$LIBS
12178 LIBS="-lXmu $LIBS"
12179 cat >conftest.$ac_ext <<_ACEOF
12180 /* confdefs.h. */
12181 _ACEOF
12182 cat confdefs.h >>conftest.$ac_ext
12183 cat >>conftest.$ac_ext <<_ACEOF
12184 /* end confdefs.h. */
12185
12186 /* Override any GCC internal prototype to avoid an error.
12187 Use char because int might match the return type of a GCC
12188 builtin and then its argument prototype would still apply. */
12189 #ifdef __cplusplus
12190 extern "C"
12191 #endif
12192 char XmuConvertStandardSelection ();
12193 int
12194 main ()
12195 {
12196 return XmuConvertStandardSelection ();
12197 ;
12198 return 0;
12199 }
12200 _ACEOF
12201 rm -f conftest.$ac_objext conftest$ac_exeext
12202 if { (ac_try="$ac_link"
12203 case "(($ac_try" in
12204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12205 *) ac_try_echo=$ac_try;;
12206 esac
12207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12208 (eval "$ac_link") 2>conftest.er1
12209 ac_status=$?
12210 grep -v '^ *+' conftest.er1 >conftest.err
12211 rm -f conftest.er1
12212 cat conftest.err >&5
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); } && {
12215 test -z "$ac_c_werror_flag" ||
12216 test ! -s conftest.err
12217 } && test -s conftest$ac_exeext &&
12218 $as_test_x conftest$ac_exeext; then
12219 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12220 else
12221 echo "$as_me: failed program was:" >&5
12222 sed 's/^/| /' conftest.$ac_ext >&5
12223
12224 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12225 fi
12226
12227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12228 conftest$ac_exeext conftest.$ac_ext
12229 LIBS=$ac_check_lib_save_LIBS
12230 fi
12231 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12232 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12233 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12234 cat >>confdefs.h <<_ACEOF
12235 #define HAVE_LIBXMU 1
12236 _ACEOF
12237
12238 LIBS="-lXmu $LIBS"
12239
12240 fi
12241
12242 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12243 fi
12244
12245 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12246 if test "${HAVE_X11}" = "yes"; then
12247 if test "${USE_X_TOOLKIT}" != "none"; then
12248
12249 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12250 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12251 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12252 echo $ECHO_N "(cached) $ECHO_C" >&6
12253 else
12254 ac_check_lib_save_LIBS=$LIBS
12255 LIBS="-lXext $LIBS"
12256 cat >conftest.$ac_ext <<_ACEOF
12257 /* confdefs.h. */
12258 _ACEOF
12259 cat confdefs.h >>conftest.$ac_ext
12260 cat >>conftest.$ac_ext <<_ACEOF
12261 /* end confdefs.h. */
12262
12263 /* Override any GCC internal prototype to avoid an error.
12264 Use char because int might match the return type of a GCC
12265 builtin and then its argument prototype would still apply. */
12266 #ifdef __cplusplus
12267 extern "C"
12268 #endif
12269 char XShapeQueryExtension ();
12270 int
12271 main ()
12272 {
12273 return XShapeQueryExtension ();
12274 ;
12275 return 0;
12276 }
12277 _ACEOF
12278 rm -f conftest.$ac_objext conftest$ac_exeext
12279 if { (ac_try="$ac_link"
12280 case "(($ac_try" in
12281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12282 *) ac_try_echo=$ac_try;;
12283 esac
12284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12285 (eval "$ac_link") 2>conftest.er1
12286 ac_status=$?
12287 grep -v '^ *+' conftest.er1 >conftest.err
12288 rm -f conftest.er1
12289 cat conftest.err >&5
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); } && {
12292 test -z "$ac_c_werror_flag" ||
12293 test ! -s conftest.err
12294 } && test -s conftest$ac_exeext &&
12295 $as_test_x conftest$ac_exeext; then
12296 ac_cv_lib_Xext_XShapeQueryExtension=yes
12297 else
12298 echo "$as_me: failed program was:" >&5
12299 sed 's/^/| /' conftest.$ac_ext >&5
12300
12301 ac_cv_lib_Xext_XShapeQueryExtension=no
12302 fi
12303
12304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12305 conftest$ac_exeext conftest.$ac_ext
12306 LIBS=$ac_check_lib_save_LIBS
12307 fi
12308 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12309 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12310 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12311 cat >>confdefs.h <<_ACEOF
12312 #define HAVE_LIBXEXT 1
12313 _ACEOF
12314
12315 LIBS="-lXext $LIBS"
12316
12317 fi
12318
12319 fi
12320 fi
12321
12322 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12323 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12324 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12325 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12326 echo $ECHO_N "(cached) $ECHO_C" >&6
12327 else
12328 cat >conftest.$ac_ext <<_ACEOF
12329 /* confdefs.h. */
12330 _ACEOF
12331 cat confdefs.h >>conftest.$ac_ext
12332 cat >>conftest.$ac_ext <<_ACEOF
12333 /* end confdefs.h. */
12334 #include <Xm/Xm.h>
12335 int
12336 main ()
12337 {
12338 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12339 int x = 5;
12340 #else
12341 Motif version prior to 2.1.
12342 #endif
12343 ;
12344 return 0;
12345 }
12346 _ACEOF
12347 rm -f conftest.$ac_objext
12348 if { (ac_try="$ac_compile"
12349 case "(($ac_try" in
12350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12351 *) ac_try_echo=$ac_try;;
12352 esac
12353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12354 (eval "$ac_compile") 2>conftest.er1
12355 ac_status=$?
12356 grep -v '^ *+' conftest.er1 >conftest.err
12357 rm -f conftest.er1
12358 cat conftest.err >&5
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); } && {
12361 test -z "$ac_c_werror_flag" ||
12362 test ! -s conftest.err
12363 } && test -s conftest.$ac_objext; then
12364 emacs_cv_motif_version_2_1=yes
12365 else
12366 echo "$as_me: failed program was:" >&5
12367 sed 's/^/| /' conftest.$ac_ext >&5
12368
12369 emacs_cv_motif_version_2_1=no
12370 fi
12371
12372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12373 fi
12374 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12375 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12376 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12377 if test $emacs_cv_motif_version_2_1 = yes; then
12378 HAVE_LIBXP=no
12379
12380 cat >>confdefs.h <<\_ACEOF
12381 #define HAVE_MOTIF_2_1 1
12382 _ACEOF
12383
12384 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12385 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12386 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12387 echo $ECHO_N "(cached) $ECHO_C" >&6
12388 else
12389 ac_check_lib_save_LIBS=$LIBS
12390 LIBS="-lXp $LIBS"
12391 cat >conftest.$ac_ext <<_ACEOF
12392 /* confdefs.h. */
12393 _ACEOF
12394 cat confdefs.h >>conftest.$ac_ext
12395 cat >>conftest.$ac_ext <<_ACEOF
12396 /* end confdefs.h. */
12397
12398 /* Override any GCC internal prototype to avoid an error.
12399 Use char because int might match the return type of a GCC
12400 builtin and then its argument prototype would still apply. */
12401 #ifdef __cplusplus
12402 extern "C"
12403 #endif
12404 char XpCreateContext ();
12405 int
12406 main ()
12407 {
12408 return XpCreateContext ();
12409 ;
12410 return 0;
12411 }
12412 _ACEOF
12413 rm -f conftest.$ac_objext conftest$ac_exeext
12414 if { (ac_try="$ac_link"
12415 case "(($ac_try" in
12416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12417 *) ac_try_echo=$ac_try;;
12418 esac
12419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12420 (eval "$ac_link") 2>conftest.er1
12421 ac_status=$?
12422 grep -v '^ *+' conftest.er1 >conftest.err
12423 rm -f conftest.er1
12424 cat conftest.err >&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); } && {
12427 test -z "$ac_c_werror_flag" ||
12428 test ! -s conftest.err
12429 } && test -s conftest$ac_exeext &&
12430 $as_test_x conftest$ac_exeext; then
12431 ac_cv_lib_Xp_XpCreateContext=yes
12432 else
12433 echo "$as_me: failed program was:" >&5
12434 sed 's/^/| /' conftest.$ac_ext >&5
12435
12436 ac_cv_lib_Xp_XpCreateContext=no
12437 fi
12438
12439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12440 conftest$ac_exeext conftest.$ac_ext
12441 LIBS=$ac_check_lib_save_LIBS
12442 fi
12443 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12444 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12445 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12446 HAVE_LIBXP=yes
12447 fi
12448
12449 if test ${HAVE_LIBXP} = yes; then
12450
12451 cat >>confdefs.h <<\_ACEOF
12452 #define HAVE_LIBXP 1
12453 _ACEOF
12454
12455 fi
12456 else
12457 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12458 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12459 if test "${emacs_cv_lesstif+set}" = set; then
12460 echo $ECHO_N "(cached) $ECHO_C" >&6
12461 else
12462 # We put this in CFLAGS temporarily to precede other -I options
12463 # that might be in CFLAGS temporarily.
12464 # We put this in CPPFLAGS where it precedes the other -I options.
12465 OLD_CPPFLAGS=$CPPFLAGS
12466 OLD_CFLAGS=$CFLAGS
12467 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12468 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12469 cat >conftest.$ac_ext <<_ACEOF
12470 /* confdefs.h. */
12471 _ACEOF
12472 cat confdefs.h >>conftest.$ac_ext
12473 cat >>conftest.$ac_ext <<_ACEOF
12474 /* end confdefs.h. */
12475 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12476 int
12477 main ()
12478 {
12479 int x = 5;
12480 ;
12481 return 0;
12482 }
12483 _ACEOF
12484 rm -f conftest.$ac_objext
12485 if { (ac_try="$ac_compile"
12486 case "(($ac_try" in
12487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12488 *) ac_try_echo=$ac_try;;
12489 esac
12490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12491 (eval "$ac_compile") 2>conftest.er1
12492 ac_status=$?
12493 grep -v '^ *+' conftest.er1 >conftest.err
12494 rm -f conftest.er1
12495 cat conftest.err >&5
12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 (exit $ac_status); } && {
12498 test -z "$ac_c_werror_flag" ||
12499 test ! -s conftest.err
12500 } && test -s conftest.$ac_objext; then
12501 emacs_cv_lesstif=yes
12502 else
12503 echo "$as_me: failed program was:" >&5
12504 sed 's/^/| /' conftest.$ac_ext >&5
12505
12506 emacs_cv_lesstif=no
12507 fi
12508
12509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12510 fi
12511 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12512 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12513 if test $emacs_cv_lesstif = yes; then
12514 # Make sure this -I option remains in CPPFLAGS after it is set
12515 # back to REAL_CPPFLAGS.
12516 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12517 # have those other -I options anyway. Ultimately, having this
12518 # directory ultimately in CPPFLAGS will be enough.
12519 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12520 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12521 else
12522 CFLAGS=$OLD_CFLAGS
12523 CPPFLAGS=$OLD_CPPFLAGS
12524 fi
12525 fi
12526 fi
12527
12528 ### Is -lXaw3d available?
12529 HAVE_XAW3D=no
12530 if test "${HAVE_X11}" = "yes"; then
12531 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12532 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12533 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12534 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12535 echo $ECHO_N "(cached) $ECHO_C" >&6
12536 else
12537 cat >conftest.$ac_ext <<_ACEOF
12538 /* confdefs.h. */
12539 _ACEOF
12540 cat confdefs.h >>conftest.$ac_ext
12541 cat >>conftest.$ac_ext <<_ACEOF
12542 /* end confdefs.h. */
12543 #include <X11/Xaw3d/Scrollbar.h>
12544 _ACEOF
12545 if { (ac_try="$ac_cpp conftest.$ac_ext"
12546 case "(($ac_try" in
12547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12548 *) ac_try_echo=$ac_try;;
12549 esac
12550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12552 ac_status=$?
12553 grep -v '^ *+' conftest.er1 >conftest.err
12554 rm -f conftest.er1
12555 cat conftest.err >&5
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); } >/dev/null && {
12558 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12559 test ! -s conftest.err
12560 }; then
12561 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
12562 else
12563 echo "$as_me: failed program was:" >&5
12564 sed 's/^/| /' conftest.$ac_ext >&5
12565
12566 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
12567 fi
12568
12569 rm -f conftest.err conftest.$ac_ext
12570 fi
12571 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12572 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12573 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12574 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12575 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12576 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12577 echo $ECHO_N "(cached) $ECHO_C" >&6
12578 else
12579 ac_check_lib_save_LIBS=$LIBS
12580 LIBS="-lXaw3d $LIBS"
12581 cat >conftest.$ac_ext <<_ACEOF
12582 /* confdefs.h. */
12583 _ACEOF
12584 cat confdefs.h >>conftest.$ac_ext
12585 cat >>conftest.$ac_ext <<_ACEOF
12586 /* end confdefs.h. */
12587
12588 /* Override any GCC internal prototype to avoid an error.
12589 Use char because int might match the return type of a GCC
12590 builtin and then its argument prototype would still apply. */
12591 #ifdef __cplusplus
12592 extern "C"
12593 #endif
12594 char XawScrollbarSetThumb ();
12595 int
12596 main ()
12597 {
12598 return XawScrollbarSetThumb ();
12599 ;
12600 return 0;
12601 }
12602 _ACEOF
12603 rm -f conftest.$ac_objext conftest$ac_exeext
12604 if { (ac_try="$ac_link"
12605 case "(($ac_try" in
12606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12607 *) ac_try_echo=$ac_try;;
12608 esac
12609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12610 (eval "$ac_link") 2>conftest.er1
12611 ac_status=$?
12612 grep -v '^ *+' conftest.er1 >conftest.err
12613 rm -f conftest.er1
12614 cat conftest.err >&5
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); } && {
12617 test -z "$ac_c_werror_flag" ||
12618 test ! -s conftest.err
12619 } && test -s conftest$ac_exeext &&
12620 $as_test_x conftest$ac_exeext; then
12621 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12622 else
12623 echo "$as_me: failed program was:" >&5
12624 sed 's/^/| /' conftest.$ac_ext >&5
12625
12626 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12627 fi
12628
12629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12630 conftest$ac_exeext conftest.$ac_ext
12631 LIBS=$ac_check_lib_save_LIBS
12632 fi
12633 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12634 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12635 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12636 HAVE_XAW3D=yes
12637 fi
12638
12639 fi
12640
12641
12642 if test "${HAVE_XAW3D}" = "yes"; then
12643
12644 cat >>confdefs.h <<\_ACEOF
12645 #define HAVE_XAW3D 1
12646 _ACEOF
12647
12648 fi
12649 fi
12650 fi
12651
12652
12653
12654 USE_TOOLKIT_SCROLL_BARS=no
12655 if test "${with_toolkit_scroll_bars}" != "no"; then
12656 if test "${USE_X_TOOLKIT}" != "none"; then
12657 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12658 cat >>confdefs.h <<\_ACEOF
12659 #define USE_TOOLKIT_SCROLL_BARS 1
12660 _ACEOF
12661
12662 HAVE_XAW3D=no
12663 USE_TOOLKIT_SCROLL_BARS=yes
12664 elif test "${HAVE_XAW3D}" = "yes"; then
12665 cat >>confdefs.h <<\_ACEOF
12666 #define USE_TOOLKIT_SCROLL_BARS 1
12667 _ACEOF
12668
12669 USE_TOOLKIT_SCROLL_BARS=yes
12670 fi
12671 elif test "${HAVE_GTK}" = "yes"; then
12672 cat >>confdefs.h <<\_ACEOF
12673 #define USE_TOOLKIT_SCROLL_BARS 1
12674 _ACEOF
12675
12676 USE_TOOLKIT_SCROLL_BARS=yes
12677 elif test "${HAVE_CARBON}" = "yes"; then
12678 cat >>confdefs.h <<\_ACEOF
12679 #define USE_TOOLKIT_SCROLL_BARS 1
12680 _ACEOF
12681
12682 USE_TOOLKIT_SCROLL_BARS=yes
12683 fi
12684 fi
12685
12686 cat >conftest.$ac_ext <<_ACEOF
12687 /* confdefs.h. */
12688 _ACEOF
12689 cat confdefs.h >>conftest.$ac_ext
12690 cat >>conftest.$ac_ext <<_ACEOF
12691 /* end confdefs.h. */
12692
12693 #include <X11/Xlib.h>
12694 #include <X11/Xresource.h>
12695 int
12696 main ()
12697 {
12698 XIMProc callback;
12699 ;
12700 return 0;
12701 }
12702 _ACEOF
12703 rm -f conftest.$ac_objext
12704 if { (ac_try="$ac_compile"
12705 case "(($ac_try" in
12706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12707 *) ac_try_echo=$ac_try;;
12708 esac
12709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12710 (eval "$ac_compile") 2>conftest.er1
12711 ac_status=$?
12712 grep -v '^ *+' conftest.er1 >conftest.err
12713 rm -f conftest.er1
12714 cat conftest.err >&5
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); } && {
12717 test -z "$ac_c_werror_flag" ||
12718 test ! -s conftest.err
12719 } && test -s conftest.$ac_objext; then
12720 HAVE_XIM=yes
12721
12722 cat >>confdefs.h <<\_ACEOF
12723 #define HAVE_XIM 1
12724 _ACEOF
12725
12726 else
12727 echo "$as_me: failed program was:" >&5
12728 sed 's/^/| /' conftest.$ac_ext >&5
12729
12730 HAVE_XIM=no
12731 fi
12732
12733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12734
12735
12736 if test "${with_xim}" != "no"; then
12737
12738 cat >>confdefs.h <<\_ACEOF
12739 #define USE_XIM 1
12740 _ACEOF
12741
12742 fi
12743
12744
12745 if test "${HAVE_XIM}" != "no"; then
12746 late_CFLAGS=$CFLAGS
12747 if test "$GCC" = yes; then
12748 CFLAGS="$CFLAGS --pedantic-errors"
12749 fi
12750 cat >conftest.$ac_ext <<_ACEOF
12751 /* confdefs.h. */
12752 _ACEOF
12753 cat confdefs.h >>conftest.$ac_ext
12754 cat >>conftest.$ac_ext <<_ACEOF
12755 /* end confdefs.h. */
12756
12757 #include <X11/Xlib.h>
12758 #include <X11/Xresource.h>
12759 int
12760 main ()
12761 {
12762 Display *display;
12763 XrmDatabase db;
12764 char *res_name;
12765 char *res_class;
12766 XIMProc callback;
12767 XPointer *client_data;
12768 #ifndef __GNUC__
12769 /* If we're not using GCC, it's probably not XFree86, and this is
12770 probably right, but we can't use something like --pedantic-errors. */
12771 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12772 char*, XIMProc, XPointer*);
12773 #endif
12774 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12775 client_data);
12776 ;
12777 return 0;
12778 }
12779 _ACEOF
12780 rm -f conftest.$ac_objext
12781 if { (ac_try="$ac_compile"
12782 case "(($ac_try" in
12783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12784 *) ac_try_echo=$ac_try;;
12785 esac
12786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12787 (eval "$ac_compile") 2>conftest.er1
12788 ac_status=$?
12789 grep -v '^ *+' conftest.er1 >conftest.err
12790 rm -f conftest.er1
12791 cat conftest.err >&5
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); } && {
12794 test -z "$ac_c_werror_flag" ||
12795 test ! -s conftest.err
12796 } && test -s conftest.$ac_objext; then
12797 emacs_cv_arg6_star=yes
12798 else
12799 echo "$as_me: failed program was:" >&5
12800 sed 's/^/| /' conftest.$ac_ext >&5
12801
12802
12803 fi
12804
12805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12806
12807 if test "$emacs_cv_arg6_star" = yes; then
12808 cat >>confdefs.h <<\_ACEOF
12809 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12810 _ACEOF
12811
12812 else
12813 cat >>confdefs.h <<\_ACEOF
12814 #define XRegisterIMInstantiateCallback_arg6 XPointer
12815 _ACEOF
12816
12817 fi
12818 CFLAGS=$late_CFLAGS
12819 fi
12820
12821 ### Use -lXpm if available, unless `--with-xpm=no'.
12822 HAVE_XPM=no
12823 if test "${HAVE_X11}" = "yes"; then
12824 if test "${with_xpm}" != "no"; then
12825 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12826 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12827 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12828 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12829 echo $ECHO_N "(cached) $ECHO_C" >&6
12830 fi
12831 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12832 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12833 else
12834 # Is the header compilable?
12835 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12836 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
12837 cat >conftest.$ac_ext <<_ACEOF
12838 /* confdefs.h. */
12839 _ACEOF
12840 cat confdefs.h >>conftest.$ac_ext
12841 cat >>conftest.$ac_ext <<_ACEOF
12842 /* end confdefs.h. */
12843 $ac_includes_default
12844 #include <X11/xpm.h>
12845 _ACEOF
12846 rm -f conftest.$ac_objext
12847 if { (ac_try="$ac_compile"
12848 case "(($ac_try" in
12849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12850 *) ac_try_echo=$ac_try;;
12851 esac
12852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12853 (eval "$ac_compile") 2>conftest.er1
12854 ac_status=$?
12855 grep -v '^ *+' conftest.er1 >conftest.err
12856 rm -f conftest.er1
12857 cat conftest.err >&5
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); } && {
12860 test -z "$ac_c_werror_flag" ||
12861 test ! -s conftest.err
12862 } && test -s conftest.$ac_objext; then
12863 ac_header_compiler=yes
12864 else
12865 echo "$as_me: failed program was:" >&5
12866 sed 's/^/| /' conftest.$ac_ext >&5
12867
12868 ac_header_compiler=no
12869 fi
12870
12871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12872 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12873 echo "${ECHO_T}$ac_header_compiler" >&6; }
12874
12875 # Is the header present?
12876 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12877 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12878 cat >conftest.$ac_ext <<_ACEOF
12879 /* confdefs.h. */
12880 _ACEOF
12881 cat confdefs.h >>conftest.$ac_ext
12882 cat >>conftest.$ac_ext <<_ACEOF
12883 /* end confdefs.h. */
12884 #include <X11/xpm.h>
12885 _ACEOF
12886 if { (ac_try="$ac_cpp conftest.$ac_ext"
12887 case "(($ac_try" in
12888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12889 *) ac_try_echo=$ac_try;;
12890 esac
12891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12893 ac_status=$?
12894 grep -v '^ *+' conftest.er1 >conftest.err
12895 rm -f conftest.er1
12896 cat conftest.err >&5
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); } >/dev/null && {
12899 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12900 test ! -s conftest.err
12901 }; then
12902 ac_header_preproc=yes
12903 else
12904 echo "$as_me: failed program was:" >&5
12905 sed 's/^/| /' conftest.$ac_ext >&5
12906
12907 ac_header_preproc=no
12908 fi
12909
12910 rm -f conftest.err conftest.$ac_ext
12911 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12912 echo "${ECHO_T}$ac_header_preproc" >&6; }
12913
12914 # So? What about this header?
12915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12916 yes:no: )
12917 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12918 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12919 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12920 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12921 ac_header_preproc=yes
12922 ;;
12923 no:yes:* )
12924 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12925 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12926 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12927 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12928 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12929 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12930 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12931 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12932 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12933 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12934 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12935 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12936
12937 ;;
12938 esac
12939 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12940 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12941 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12942 echo $ECHO_N "(cached) $ECHO_C" >&6
12943 else
12944 ac_cv_header_X11_xpm_h=$ac_header_preproc
12945 fi
12946 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12947 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12948
12949 fi
12950 if test $ac_cv_header_X11_xpm_h = yes; then
12951 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12952 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
12953 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12954 echo $ECHO_N "(cached) $ECHO_C" >&6
12955 else
12956 ac_check_lib_save_LIBS=$LIBS
12957 LIBS="-lXpm -lX11 $LIBS"
12958 cat >conftest.$ac_ext <<_ACEOF
12959 /* confdefs.h. */
12960 _ACEOF
12961 cat confdefs.h >>conftest.$ac_ext
12962 cat >>conftest.$ac_ext <<_ACEOF
12963 /* end confdefs.h. */
12964
12965 /* Override any GCC internal prototype to avoid an error.
12966 Use char because int might match the return type of a GCC
12967 builtin and then its argument prototype would still apply. */
12968 #ifdef __cplusplus
12969 extern "C"
12970 #endif
12971 char XpmReadFileToPixmap ();
12972 int
12973 main ()
12974 {
12975 return XpmReadFileToPixmap ();
12976 ;
12977 return 0;
12978 }
12979 _ACEOF
12980 rm -f conftest.$ac_objext conftest$ac_exeext
12981 if { (ac_try="$ac_link"
12982 case "(($ac_try" in
12983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12984 *) ac_try_echo=$ac_try;;
12985 esac
12986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12987 (eval "$ac_link") 2>conftest.er1
12988 ac_status=$?
12989 grep -v '^ *+' conftest.er1 >conftest.err
12990 rm -f conftest.er1
12991 cat conftest.err >&5
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); } && {
12994 test -z "$ac_c_werror_flag" ||
12995 test ! -s conftest.err
12996 } && test -s conftest$ac_exeext &&
12997 $as_test_x conftest$ac_exeext; then
12998 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12999 else
13000 echo "$as_me: failed program was:" >&5
13001 sed 's/^/| /' conftest.$ac_ext >&5
13002
13003 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13004 fi
13005
13006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13007 conftest$ac_exeext conftest.$ac_ext
13008 LIBS=$ac_check_lib_save_LIBS
13009 fi
13010 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13011 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13012 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13013 HAVE_XPM=yes
13014 fi
13015
13016 fi
13017
13018
13019 if test "${HAVE_XPM}" = "yes"; then
13020 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13021 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13022 cat >conftest.$ac_ext <<_ACEOF
13023 /* confdefs.h. */
13024 _ACEOF
13025 cat confdefs.h >>conftest.$ac_ext
13026 cat >>conftest.$ac_ext <<_ACEOF
13027 /* end confdefs.h. */
13028 #include "X11/xpm.h"
13029 #ifndef XpmReturnAllocPixels
13030 no_return_alloc_pixels
13031 #endif
13032
13033 _ACEOF
13034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13035 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13036 HAVE_XPM=no
13037 else
13038 HAVE_XPM=yes
13039 fi
13040 rm -f conftest*
13041
13042
13043 if test "${HAVE_XPM}" = "yes"; then
13044 { echo "$as_me:$LINENO: result: yes" >&5
13045 echo "${ECHO_T}yes" >&6; }
13046 else
13047 { echo "$as_me:$LINENO: result: no" >&5
13048 echo "${ECHO_T}no" >&6; }
13049 fi
13050 fi
13051 fi
13052
13053 if test "${HAVE_XPM}" = "yes"; then
13054
13055 cat >>confdefs.h <<\_ACEOF
13056 #define HAVE_XPM 1
13057 _ACEOF
13058
13059 fi
13060 fi
13061
13062 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13063 HAVE_JPEG=no
13064 if test "${HAVE_X11}" = "yes"; then
13065 if test "${with_jpeg}" != "no"; then
13066 if test "${ac_cv_header_jerror_h+set}" = set; then
13067 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13068 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13069 if test "${ac_cv_header_jerror_h+set}" = set; then
13070 echo $ECHO_N "(cached) $ECHO_C" >&6
13071 fi
13072 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13073 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13074 else
13075 # Is the header compilable?
13076 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13077 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13078 cat >conftest.$ac_ext <<_ACEOF
13079 /* confdefs.h. */
13080 _ACEOF
13081 cat confdefs.h >>conftest.$ac_ext
13082 cat >>conftest.$ac_ext <<_ACEOF
13083 /* end confdefs.h. */
13084 $ac_includes_default
13085 #include <jerror.h>
13086 _ACEOF
13087 rm -f conftest.$ac_objext
13088 if { (ac_try="$ac_compile"
13089 case "(($ac_try" in
13090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13091 *) ac_try_echo=$ac_try;;
13092 esac
13093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13094 (eval "$ac_compile") 2>conftest.er1
13095 ac_status=$?
13096 grep -v '^ *+' conftest.er1 >conftest.err
13097 rm -f conftest.er1
13098 cat conftest.err >&5
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); } && {
13101 test -z "$ac_c_werror_flag" ||
13102 test ! -s conftest.err
13103 } && test -s conftest.$ac_objext; then
13104 ac_header_compiler=yes
13105 else
13106 echo "$as_me: failed program was:" >&5
13107 sed 's/^/| /' conftest.$ac_ext >&5
13108
13109 ac_header_compiler=no
13110 fi
13111
13112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13113 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13114 echo "${ECHO_T}$ac_header_compiler" >&6; }
13115
13116 # Is the header present?
13117 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13118 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13119 cat >conftest.$ac_ext <<_ACEOF
13120 /* confdefs.h. */
13121 _ACEOF
13122 cat confdefs.h >>conftest.$ac_ext
13123 cat >>conftest.$ac_ext <<_ACEOF
13124 /* end confdefs.h. */
13125 #include <jerror.h>
13126 _ACEOF
13127 if { (ac_try="$ac_cpp conftest.$ac_ext"
13128 case "(($ac_try" in
13129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13130 *) ac_try_echo=$ac_try;;
13131 esac
13132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13134 ac_status=$?
13135 grep -v '^ *+' conftest.er1 >conftest.err
13136 rm -f conftest.er1
13137 cat conftest.err >&5
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); } >/dev/null && {
13140 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13141 test ! -s conftest.err
13142 }; then
13143 ac_header_preproc=yes
13144 else
13145 echo "$as_me: failed program was:" >&5
13146 sed 's/^/| /' conftest.$ac_ext >&5
13147
13148 ac_header_preproc=no
13149 fi
13150
13151 rm -f conftest.err conftest.$ac_ext
13152 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13153 echo "${ECHO_T}$ac_header_preproc" >&6; }
13154
13155 # So? What about this header?
13156 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13157 yes:no: )
13158 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13159 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13160 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13161 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13162 ac_header_preproc=yes
13163 ;;
13164 no:yes:* )
13165 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13166 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13167 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13168 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13169 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13170 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13171 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13172 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13173 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13174 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13175 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13176 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13177
13178 ;;
13179 esac
13180 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13181 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13182 if test "${ac_cv_header_jerror_h+set}" = set; then
13183 echo $ECHO_N "(cached) $ECHO_C" >&6
13184 else
13185 ac_cv_header_jerror_h=$ac_header_preproc
13186 fi
13187 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13188 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13189
13190 fi
13191 if test $ac_cv_header_jerror_h = yes; then
13192 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13193 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13194 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13195 echo $ECHO_N "(cached) $ECHO_C" >&6
13196 else
13197 ac_check_lib_save_LIBS=$LIBS
13198 LIBS="-ljpeg $LIBS"
13199 cat >conftest.$ac_ext <<_ACEOF
13200 /* confdefs.h. */
13201 _ACEOF
13202 cat confdefs.h >>conftest.$ac_ext
13203 cat >>conftest.$ac_ext <<_ACEOF
13204 /* end confdefs.h. */
13205
13206 /* Override any GCC internal prototype to avoid an error.
13207 Use char because int might match the return type of a GCC
13208 builtin and then its argument prototype would still apply. */
13209 #ifdef __cplusplus
13210 extern "C"
13211 #endif
13212 char jpeg_destroy_compress ();
13213 int
13214 main ()
13215 {
13216 return jpeg_destroy_compress ();
13217 ;
13218 return 0;
13219 }
13220 _ACEOF
13221 rm -f conftest.$ac_objext conftest$ac_exeext
13222 if { (ac_try="$ac_link"
13223 case "(($ac_try" in
13224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13225 *) ac_try_echo=$ac_try;;
13226 esac
13227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13228 (eval "$ac_link") 2>conftest.er1
13229 ac_status=$?
13230 grep -v '^ *+' conftest.er1 >conftest.err
13231 rm -f conftest.er1
13232 cat conftest.err >&5
13233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234 (exit $ac_status); } && {
13235 test -z "$ac_c_werror_flag" ||
13236 test ! -s conftest.err
13237 } && test -s conftest$ac_exeext &&
13238 $as_test_x conftest$ac_exeext; then
13239 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13240 else
13241 echo "$as_me: failed program was:" >&5
13242 sed 's/^/| /' conftest.$ac_ext >&5
13243
13244 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13245 fi
13246
13247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13248 conftest$ac_exeext conftest.$ac_ext
13249 LIBS=$ac_check_lib_save_LIBS
13250 fi
13251 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13252 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13253 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13254 HAVE_JPEG=yes
13255 fi
13256
13257 fi
13258
13259
13260 fi
13261
13262
13263 if test "${HAVE_JPEG}" = "yes"; then
13264 cat >>confdefs.h <<\_ACEOF
13265 #define HAVE_JPEG 1
13266 _ACEOF
13267
13268 cat >conftest.$ac_ext <<_ACEOF
13269 /* confdefs.h. */
13270 _ACEOF
13271 cat confdefs.h >>conftest.$ac_ext
13272 cat >>conftest.$ac_ext <<_ACEOF
13273 /* end confdefs.h. */
13274 #include <jpeglib.h>
13275 version=JPEG_LIB_VERSION
13276
13277 _ACEOF
13278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13279 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13280 cat >>confdefs.h <<\_ACEOF
13281 #define HAVE_JPEG 1
13282 _ACEOF
13283
13284 else
13285 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13286 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13287 HAVE_JPEG=no
13288 fi
13289 rm -f conftest*
13290
13291 fi
13292 fi
13293
13294 ### Use -lpng if available, unless `--with-png=no'.
13295 HAVE_PNG=no
13296 if test "${HAVE_X11}" = "yes"; then
13297 if test "${with_png}" != "no"; then
13298 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13299 # in /usr/include/libpng.
13300
13301
13302 for ac_header in png.h libpng/png.h
13303 do
13304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13306 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13309 echo $ECHO_N "(cached) $ECHO_C" >&6
13310 fi
13311 ac_res=`eval echo '${'$as_ac_Header'}'`
13312 { echo "$as_me:$LINENO: result: $ac_res" >&5
13313 echo "${ECHO_T}$ac_res" >&6; }
13314 else
13315 # Is the header compilable?
13316 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13317 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13318 cat >conftest.$ac_ext <<_ACEOF
13319 /* confdefs.h. */
13320 _ACEOF
13321 cat confdefs.h >>conftest.$ac_ext
13322 cat >>conftest.$ac_ext <<_ACEOF
13323 /* end confdefs.h. */
13324 $ac_includes_default
13325 #include <$ac_header>
13326 _ACEOF
13327 rm -f conftest.$ac_objext
13328 if { (ac_try="$ac_compile"
13329 case "(($ac_try" in
13330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13331 *) ac_try_echo=$ac_try;;
13332 esac
13333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13334 (eval "$ac_compile") 2>conftest.er1
13335 ac_status=$?
13336 grep -v '^ *+' conftest.er1 >conftest.err
13337 rm -f conftest.er1
13338 cat conftest.err >&5
13339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340 (exit $ac_status); } && {
13341 test -z "$ac_c_werror_flag" ||
13342 test ! -s conftest.err
13343 } && test -s conftest.$ac_objext; then
13344 ac_header_compiler=yes
13345 else
13346 echo "$as_me: failed program was:" >&5
13347 sed 's/^/| /' conftest.$ac_ext >&5
13348
13349 ac_header_compiler=no
13350 fi
13351
13352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13353 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13354 echo "${ECHO_T}$ac_header_compiler" >&6; }
13355
13356 # Is the header present?
13357 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13358 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13359 cat >conftest.$ac_ext <<_ACEOF
13360 /* confdefs.h. */
13361 _ACEOF
13362 cat confdefs.h >>conftest.$ac_ext
13363 cat >>conftest.$ac_ext <<_ACEOF
13364 /* end confdefs.h. */
13365 #include <$ac_header>
13366 _ACEOF
13367 if { (ac_try="$ac_cpp conftest.$ac_ext"
13368 case "(($ac_try" in
13369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13370 *) ac_try_echo=$ac_try;;
13371 esac
13372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13373 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13374 ac_status=$?
13375 grep -v '^ *+' conftest.er1 >conftest.err
13376 rm -f conftest.er1
13377 cat conftest.err >&5
13378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); } >/dev/null && {
13380 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13381 test ! -s conftest.err
13382 }; then
13383 ac_header_preproc=yes
13384 else
13385 echo "$as_me: failed program was:" >&5
13386 sed 's/^/| /' conftest.$ac_ext >&5
13387
13388 ac_header_preproc=no
13389 fi
13390
13391 rm -f conftest.err conftest.$ac_ext
13392 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13393 echo "${ECHO_T}$ac_header_preproc" >&6; }
13394
13395 # So? What about this header?
13396 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13397 yes:no: )
13398 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13399 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13401 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13402 ac_header_preproc=yes
13403 ;;
13404 no:yes:* )
13405 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13406 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13407 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13408 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13409 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13410 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13411 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13412 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13414 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13415 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13416 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13417
13418 ;;
13419 esac
13420 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13423 echo $ECHO_N "(cached) $ECHO_C" >&6
13424 else
13425 eval "$as_ac_Header=\$ac_header_preproc"
13426 fi
13427 ac_res=`eval echo '${'$as_ac_Header'}'`
13428 { echo "$as_me:$LINENO: result: $ac_res" >&5
13429 echo "${ECHO_T}$ac_res" >&6; }
13430
13431 fi
13432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13433 cat >>confdefs.h <<_ACEOF
13434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13435 _ACEOF
13436
13437 fi
13438
13439 done
13440
13441 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13442 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13443 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13444 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13445 echo $ECHO_N "(cached) $ECHO_C" >&6
13446 else
13447 ac_check_lib_save_LIBS=$LIBS
13448 LIBS="-lpng -lz -lm $LIBS"
13449 cat >conftest.$ac_ext <<_ACEOF
13450 /* confdefs.h. */
13451 _ACEOF
13452 cat confdefs.h >>conftest.$ac_ext
13453 cat >>conftest.$ac_ext <<_ACEOF
13454 /* end confdefs.h. */
13455
13456 /* Override any GCC internal prototype to avoid an error.
13457 Use char because int might match the return type of a GCC
13458 builtin and then its argument prototype would still apply. */
13459 #ifdef __cplusplus
13460 extern "C"
13461 #endif
13462 char png_get_channels ();
13463 int
13464 main ()
13465 {
13466 return png_get_channels ();
13467 ;
13468 return 0;
13469 }
13470 _ACEOF
13471 rm -f conftest.$ac_objext conftest$ac_exeext
13472 if { (ac_try="$ac_link"
13473 case "(($ac_try" in
13474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13475 *) ac_try_echo=$ac_try;;
13476 esac
13477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13478 (eval "$ac_link") 2>conftest.er1
13479 ac_status=$?
13480 grep -v '^ *+' conftest.er1 >conftest.err
13481 rm -f conftest.er1
13482 cat conftest.err >&5
13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); } && {
13485 test -z "$ac_c_werror_flag" ||
13486 test ! -s conftest.err
13487 } && test -s conftest$ac_exeext &&
13488 $as_test_x conftest$ac_exeext; then
13489 ac_cv_lib_png_png_get_channels=yes
13490 else
13491 echo "$as_me: failed program was:" >&5
13492 sed 's/^/| /' conftest.$ac_ext >&5
13493
13494 ac_cv_lib_png_png_get_channels=no
13495 fi
13496
13497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13498 conftest$ac_exeext conftest.$ac_ext
13499 LIBS=$ac_check_lib_save_LIBS
13500 fi
13501 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13502 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13503 if test $ac_cv_lib_png_png_get_channels = yes; then
13504 HAVE_PNG=yes
13505 fi
13506
13507 fi
13508 fi
13509
13510 if test "${HAVE_PNG}" = "yes"; then
13511
13512 cat >>confdefs.h <<\_ACEOF
13513 #define HAVE_PNG 1
13514 _ACEOF
13515
13516 fi
13517 fi
13518
13519 ### Use -ltiff if available, unless `--with-tiff=no'.
13520 HAVE_TIFF=no
13521 if test "${HAVE_X11}" = "yes"; then
13522 if test "${with_tiff}" != "no"; then
13523 if test "${ac_cv_header_tiffio_h+set}" = set; then
13524 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13525 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13526 if test "${ac_cv_header_tiffio_h+set}" = set; then
13527 echo $ECHO_N "(cached) $ECHO_C" >&6
13528 fi
13529 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13530 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13531 else
13532 # Is the header compilable?
13533 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13534 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13535 cat >conftest.$ac_ext <<_ACEOF
13536 /* confdefs.h. */
13537 _ACEOF
13538 cat confdefs.h >>conftest.$ac_ext
13539 cat >>conftest.$ac_ext <<_ACEOF
13540 /* end confdefs.h. */
13541 $ac_includes_default
13542 #include <tiffio.h>
13543 _ACEOF
13544 rm -f conftest.$ac_objext
13545 if { (ac_try="$ac_compile"
13546 case "(($ac_try" in
13547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13548 *) ac_try_echo=$ac_try;;
13549 esac
13550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13551 (eval "$ac_compile") 2>conftest.er1
13552 ac_status=$?
13553 grep -v '^ *+' conftest.er1 >conftest.err
13554 rm -f conftest.er1
13555 cat conftest.err >&5
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557 (exit $ac_status); } && {
13558 test -z "$ac_c_werror_flag" ||
13559 test ! -s conftest.err
13560 } && test -s conftest.$ac_objext; then
13561 ac_header_compiler=yes
13562 else
13563 echo "$as_me: failed program was:" >&5
13564 sed 's/^/| /' conftest.$ac_ext >&5
13565
13566 ac_header_compiler=no
13567 fi
13568
13569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13570 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13571 echo "${ECHO_T}$ac_header_compiler" >&6; }
13572
13573 # Is the header present?
13574 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13575 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13576 cat >conftest.$ac_ext <<_ACEOF
13577 /* confdefs.h. */
13578 _ACEOF
13579 cat confdefs.h >>conftest.$ac_ext
13580 cat >>conftest.$ac_ext <<_ACEOF
13581 /* end confdefs.h. */
13582 #include <tiffio.h>
13583 _ACEOF
13584 if { (ac_try="$ac_cpp conftest.$ac_ext"
13585 case "(($ac_try" in
13586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13587 *) ac_try_echo=$ac_try;;
13588 esac
13589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13591 ac_status=$?
13592 grep -v '^ *+' conftest.er1 >conftest.err
13593 rm -f conftest.er1
13594 cat conftest.err >&5
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); } >/dev/null && {
13597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13598 test ! -s conftest.err
13599 }; then
13600 ac_header_preproc=yes
13601 else
13602 echo "$as_me: failed program was:" >&5
13603 sed 's/^/| /' conftest.$ac_ext >&5
13604
13605 ac_header_preproc=no
13606 fi
13607
13608 rm -f conftest.err conftest.$ac_ext
13609 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13610 echo "${ECHO_T}$ac_header_preproc" >&6; }
13611
13612 # So? What about this header?
13613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13614 yes:no: )
13615 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13616 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13617 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13618 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13619 ac_header_preproc=yes
13620 ;;
13621 no:yes:* )
13622 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13623 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13624 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13625 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13626 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13627 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13628 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13629 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13630 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13631 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13632 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13633 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13634
13635 ;;
13636 esac
13637 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13638 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13639 if test "${ac_cv_header_tiffio_h+set}" = set; then
13640 echo $ECHO_N "(cached) $ECHO_C" >&6
13641 else
13642 ac_cv_header_tiffio_h=$ac_header_preproc
13643 fi
13644 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13645 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13646
13647 fi
13648 if test $ac_cv_header_tiffio_h = yes; then
13649 tifflibs="-lz -lm"
13650 # At least one tiff package requires the jpeg library.
13651 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13652 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13653 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13654 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13655 echo $ECHO_N "(cached) $ECHO_C" >&6
13656 else
13657 ac_check_lib_save_LIBS=$LIBS
13658 LIBS="-ltiff $tifflibs $LIBS"
13659 cat >conftest.$ac_ext <<_ACEOF
13660 /* confdefs.h. */
13661 _ACEOF
13662 cat confdefs.h >>conftest.$ac_ext
13663 cat >>conftest.$ac_ext <<_ACEOF
13664 /* end confdefs.h. */
13665
13666 /* Override any GCC internal prototype to avoid an error.
13667 Use char because int might match the return type of a GCC
13668 builtin and then its argument prototype would still apply. */
13669 #ifdef __cplusplus
13670 extern "C"
13671 #endif
13672 char TIFFGetVersion ();
13673 int
13674 main ()
13675 {
13676 return TIFFGetVersion ();
13677 ;
13678 return 0;
13679 }
13680 _ACEOF
13681 rm -f conftest.$ac_objext conftest$ac_exeext
13682 if { (ac_try="$ac_link"
13683 case "(($ac_try" in
13684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13685 *) ac_try_echo=$ac_try;;
13686 esac
13687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13688 (eval "$ac_link") 2>conftest.er1
13689 ac_status=$?
13690 grep -v '^ *+' conftest.er1 >conftest.err
13691 rm -f conftest.er1
13692 cat conftest.err >&5
13693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); } && {
13695 test -z "$ac_c_werror_flag" ||
13696 test ! -s conftest.err
13697 } && test -s conftest$ac_exeext &&
13698 $as_test_x conftest$ac_exeext; then
13699 ac_cv_lib_tiff_TIFFGetVersion=yes
13700 else
13701 echo "$as_me: failed program was:" >&5
13702 sed 's/^/| /' conftest.$ac_ext >&5
13703
13704 ac_cv_lib_tiff_TIFFGetVersion=no
13705 fi
13706
13707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13708 conftest$ac_exeext conftest.$ac_ext
13709 LIBS=$ac_check_lib_save_LIBS
13710 fi
13711 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13712 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13713 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13714 HAVE_TIFF=yes
13715 fi
13716
13717 fi
13718
13719
13720 fi
13721
13722 if test "${HAVE_TIFF}" = "yes"; then
13723
13724 cat >>confdefs.h <<\_ACEOF
13725 #define HAVE_TIFF 1
13726 _ACEOF
13727
13728 fi
13729 fi
13730
13731 ### Use -lgif if available, unless `--with-gif=no'.
13732 HAVE_GIF=no
13733 if test "${HAVE_X11}" = "yes"; then
13734 if test "${with_gif}" != "no"; then
13735 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13736 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13737 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13738 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13739 echo $ECHO_N "(cached) $ECHO_C" >&6
13740 fi
13741 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13742 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13743 else
13744 # Is the header compilable?
13745 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13746 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13747 cat >conftest.$ac_ext <<_ACEOF
13748 /* confdefs.h. */
13749 _ACEOF
13750 cat confdefs.h >>conftest.$ac_ext
13751 cat >>conftest.$ac_ext <<_ACEOF
13752 /* end confdefs.h. */
13753 $ac_includes_default
13754 #include <gif_lib.h>
13755 _ACEOF
13756 rm -f conftest.$ac_objext
13757 if { (ac_try="$ac_compile"
13758 case "(($ac_try" in
13759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13760 *) ac_try_echo=$ac_try;;
13761 esac
13762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13763 (eval "$ac_compile") 2>conftest.er1
13764 ac_status=$?
13765 grep -v '^ *+' conftest.er1 >conftest.err
13766 rm -f conftest.er1
13767 cat conftest.err >&5
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); } && {
13770 test -z "$ac_c_werror_flag" ||
13771 test ! -s conftest.err
13772 } && test -s conftest.$ac_objext; then
13773 ac_header_compiler=yes
13774 else
13775 echo "$as_me: failed program was:" >&5
13776 sed 's/^/| /' conftest.$ac_ext >&5
13777
13778 ac_header_compiler=no
13779 fi
13780
13781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13782 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13783 echo "${ECHO_T}$ac_header_compiler" >&6; }
13784
13785 # Is the header present?
13786 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13787 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13788 cat >conftest.$ac_ext <<_ACEOF
13789 /* confdefs.h. */
13790 _ACEOF
13791 cat confdefs.h >>conftest.$ac_ext
13792 cat >>conftest.$ac_ext <<_ACEOF
13793 /* end confdefs.h. */
13794 #include <gif_lib.h>
13795 _ACEOF
13796 if { (ac_try="$ac_cpp conftest.$ac_ext"
13797 case "(($ac_try" in
13798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13799 *) ac_try_echo=$ac_try;;
13800 esac
13801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13802 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13803 ac_status=$?
13804 grep -v '^ *+' conftest.er1 >conftest.err
13805 rm -f conftest.er1
13806 cat conftest.err >&5
13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808 (exit $ac_status); } >/dev/null && {
13809 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13810 test ! -s conftest.err
13811 }; then
13812 ac_header_preproc=yes
13813 else
13814 echo "$as_me: failed program was:" >&5
13815 sed 's/^/| /' conftest.$ac_ext >&5
13816
13817 ac_header_preproc=no
13818 fi
13819
13820 rm -f conftest.err conftest.$ac_ext
13821 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13822 echo "${ECHO_T}$ac_header_preproc" >&6; }
13823
13824 # So? What about this header?
13825 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13826 yes:no: )
13827 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13828 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13829 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13830 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13831 ac_header_preproc=yes
13832 ;;
13833 no:yes:* )
13834 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13835 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13836 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13837 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13838 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13839 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13840 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13841 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13842 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13843 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13844 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13845 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13846
13847 ;;
13848 esac
13849 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13850 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13851 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13852 echo $ECHO_N "(cached) $ECHO_C" >&6
13853 else
13854 ac_cv_header_gif_lib_h=$ac_header_preproc
13855 fi
13856 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13857 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13858
13859 fi
13860 if test $ac_cv_header_gif_lib_h = yes; then
13861 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13862 # Earlier versions can crash Emacs.
13863 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13864 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
13865 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13866 echo $ECHO_N "(cached) $ECHO_C" >&6
13867 else
13868 ac_check_lib_save_LIBS=$LIBS
13869 LIBS="-lungif $LIBS"
13870 cat >conftest.$ac_ext <<_ACEOF
13871 /* confdefs.h. */
13872 _ACEOF
13873 cat confdefs.h >>conftest.$ac_ext
13874 cat >>conftest.$ac_ext <<_ACEOF
13875 /* end confdefs.h. */
13876
13877 /* Override any GCC internal prototype to avoid an error.
13878 Use char because int might match the return type of a GCC
13879 builtin and then its argument prototype would still apply. */
13880 #ifdef __cplusplus
13881 extern "C"
13882 #endif
13883 char EGifPutExtensionLast ();
13884 int
13885 main ()
13886 {
13887 return EGifPutExtensionLast ();
13888 ;
13889 return 0;
13890 }
13891 _ACEOF
13892 rm -f conftest.$ac_objext conftest$ac_exeext
13893 if { (ac_try="$ac_link"
13894 case "(($ac_try" in
13895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13896 *) ac_try_echo=$ac_try;;
13897 esac
13898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13899 (eval "$ac_link") 2>conftest.er1
13900 ac_status=$?
13901 grep -v '^ *+' conftest.er1 >conftest.err
13902 rm -f conftest.er1
13903 cat conftest.err >&5
13904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905 (exit $ac_status); } && {
13906 test -z "$ac_c_werror_flag" ||
13907 test ! -s conftest.err
13908 } && test -s conftest$ac_exeext &&
13909 $as_test_x conftest$ac_exeext; then
13910 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13911 else
13912 echo "$as_me: failed program was:" >&5
13913 sed 's/^/| /' conftest.$ac_ext >&5
13914
13915 ac_cv_lib_ungif_EGifPutExtensionLast=no
13916 fi
13917
13918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13919 conftest$ac_exeext conftest.$ac_ext
13920 LIBS=$ac_check_lib_save_LIBS
13921 fi
13922 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13923 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13924 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13925 HAVE_GIF=yes
13926 fi
13927
13928 fi
13929
13930
13931 fi
13932
13933 if test "${HAVE_GIF}" = "yes"; then
13934
13935 cat >>confdefs.h <<\_ACEOF
13936 #define HAVE_GIF 1
13937 _ACEOF
13938
13939 fi
13940 fi
13941
13942 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13943 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13944 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13945 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13946 echo $ECHO_N "(cached) $ECHO_C" >&6
13947 fi
13948 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13949 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13950 else
13951 # Is the header compilable?
13952 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13953 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
13954 cat >conftest.$ac_ext <<_ACEOF
13955 /* confdefs.h. */
13956 _ACEOF
13957 cat confdefs.h >>conftest.$ac_ext
13958 cat >>conftest.$ac_ext <<_ACEOF
13959 /* end confdefs.h. */
13960 $ac_includes_default
13961 #include <malloc/malloc.h>
13962 _ACEOF
13963 rm -f conftest.$ac_objext
13964 if { (ac_try="$ac_compile"
13965 case "(($ac_try" in
13966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13967 *) ac_try_echo=$ac_try;;
13968 esac
13969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13970 (eval "$ac_compile") 2>conftest.er1
13971 ac_status=$?
13972 grep -v '^ *+' conftest.er1 >conftest.err
13973 rm -f conftest.er1
13974 cat conftest.err >&5
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); } && {
13977 test -z "$ac_c_werror_flag" ||
13978 test ! -s conftest.err
13979 } && test -s conftest.$ac_objext; then
13980 ac_header_compiler=yes
13981 else
13982 echo "$as_me: failed program was:" >&5
13983 sed 's/^/| /' conftest.$ac_ext >&5
13984
13985 ac_header_compiler=no
13986 fi
13987
13988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13989 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13990 echo "${ECHO_T}$ac_header_compiler" >&6; }
13991
13992 # Is the header present?
13993 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13994 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
13995 cat >conftest.$ac_ext <<_ACEOF
13996 /* confdefs.h. */
13997 _ACEOF
13998 cat confdefs.h >>conftest.$ac_ext
13999 cat >>conftest.$ac_ext <<_ACEOF
14000 /* end confdefs.h. */
14001 #include <malloc/malloc.h>
14002 _ACEOF
14003 if { (ac_try="$ac_cpp conftest.$ac_ext"
14004 case "(($ac_try" in
14005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14006 *) ac_try_echo=$ac_try;;
14007 esac
14008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14010 ac_status=$?
14011 grep -v '^ *+' conftest.er1 >conftest.err
14012 rm -f conftest.er1
14013 cat conftest.err >&5
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); } >/dev/null && {
14016 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14017 test ! -s conftest.err
14018 }; then
14019 ac_header_preproc=yes
14020 else
14021 echo "$as_me: failed program was:" >&5
14022 sed 's/^/| /' conftest.$ac_ext >&5
14023
14024 ac_header_preproc=no
14025 fi
14026
14027 rm -f conftest.err conftest.$ac_ext
14028 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14029 echo "${ECHO_T}$ac_header_preproc" >&6; }
14030
14031 # So? What about this header?
14032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14033 yes:no: )
14034 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14035 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14036 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14037 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14038 ac_header_preproc=yes
14039 ;;
14040 no:yes:* )
14041 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14042 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14043 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14044 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14045 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14046 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14047 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14048 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14049 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14050 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14051 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14052 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14053
14054 ;;
14055 esac
14056 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14057 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14058 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14059 echo $ECHO_N "(cached) $ECHO_C" >&6
14060 else
14061 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14062 fi
14063 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14064 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14065
14066 fi
14067 if test $ac_cv_header_malloc_malloc_h = yes; then
14068
14069 cat >>confdefs.h <<\_ACEOF
14070 #define HAVE_MALLOC_MALLOC_H 1
14071 _ACEOF
14072
14073 fi
14074
14075
14076
14077 ### Use Mac OS X Carbon API to implement GUI.
14078 if test "${HAVE_CARBON}" = "yes"; then
14079
14080 cat >>confdefs.h <<\_ACEOF
14081 #define HAVE_CARBON 1
14082 _ACEOF
14083
14084 ## Specify the install directory
14085 carbon_appdir=
14086 if test "${carbon_appdir_x}" != ""; then
14087 case ${carbon_appdir_x} in
14088 y | ye | yes) carbon_appdir=/Applications ;;
14089 * ) carbon_appdir=${carbon_appdir_x} ;;
14090 esac
14091 fi
14092 # We also have mouse menus.
14093 HAVE_MENUS=yes
14094 fi
14095
14096 ### Use session management (-lSM -lICE) if available
14097 HAVE_X_SM=no
14098 if test "${HAVE_X11}" = "yes"; then
14099 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14100 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14101 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14102 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14103 echo $ECHO_N "(cached) $ECHO_C" >&6
14104 fi
14105 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14106 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14107 else
14108 # Is the header compilable?
14109 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14110 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14111 cat >conftest.$ac_ext <<_ACEOF
14112 /* confdefs.h. */
14113 _ACEOF
14114 cat confdefs.h >>conftest.$ac_ext
14115 cat >>conftest.$ac_ext <<_ACEOF
14116 /* end confdefs.h. */
14117 $ac_includes_default
14118 #include <X11/SM/SMlib.h>
14119 _ACEOF
14120 rm -f conftest.$ac_objext
14121 if { (ac_try="$ac_compile"
14122 case "(($ac_try" in
14123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14124 *) ac_try_echo=$ac_try;;
14125 esac
14126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14127 (eval "$ac_compile") 2>conftest.er1
14128 ac_status=$?
14129 grep -v '^ *+' conftest.er1 >conftest.err
14130 rm -f conftest.er1
14131 cat conftest.err >&5
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); } && {
14134 test -z "$ac_c_werror_flag" ||
14135 test ! -s conftest.err
14136 } && test -s conftest.$ac_objext; then
14137 ac_header_compiler=yes
14138 else
14139 echo "$as_me: failed program was:" >&5
14140 sed 's/^/| /' conftest.$ac_ext >&5
14141
14142 ac_header_compiler=no
14143 fi
14144
14145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14146 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14147 echo "${ECHO_T}$ac_header_compiler" >&6; }
14148
14149 # Is the header present?
14150 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14151 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14152 cat >conftest.$ac_ext <<_ACEOF
14153 /* confdefs.h. */
14154 _ACEOF
14155 cat confdefs.h >>conftest.$ac_ext
14156 cat >>conftest.$ac_ext <<_ACEOF
14157 /* end confdefs.h. */
14158 #include <X11/SM/SMlib.h>
14159 _ACEOF
14160 if { (ac_try="$ac_cpp conftest.$ac_ext"
14161 case "(($ac_try" in
14162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14163 *) ac_try_echo=$ac_try;;
14164 esac
14165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14166 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14167 ac_status=$?
14168 grep -v '^ *+' conftest.er1 >conftest.err
14169 rm -f conftest.er1
14170 cat conftest.err >&5
14171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172 (exit $ac_status); } >/dev/null && {
14173 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14174 test ! -s conftest.err
14175 }; then
14176 ac_header_preproc=yes
14177 else
14178 echo "$as_me: failed program was:" >&5
14179 sed 's/^/| /' conftest.$ac_ext >&5
14180
14181 ac_header_preproc=no
14182 fi
14183
14184 rm -f conftest.err conftest.$ac_ext
14185 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14186 echo "${ECHO_T}$ac_header_preproc" >&6; }
14187
14188 # So? What about this header?
14189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14190 yes:no: )
14191 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14192 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14193 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14194 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14195 ac_header_preproc=yes
14196 ;;
14197 no:yes:* )
14198 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14199 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14200 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14201 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14202 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14203 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14204 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14205 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14206 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14207 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14208 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14209 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14210
14211 ;;
14212 esac
14213 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14214 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14215 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14216 echo $ECHO_N "(cached) $ECHO_C" >&6
14217 else
14218 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14219 fi
14220 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14221 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14222
14223 fi
14224 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14225 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14226 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14227 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14228 echo $ECHO_N "(cached) $ECHO_C" >&6
14229 else
14230 ac_check_lib_save_LIBS=$LIBS
14231 LIBS="-lSM -lICE $LIBS"
14232 cat >conftest.$ac_ext <<_ACEOF
14233 /* confdefs.h. */
14234 _ACEOF
14235 cat confdefs.h >>conftest.$ac_ext
14236 cat >>conftest.$ac_ext <<_ACEOF
14237 /* end confdefs.h. */
14238
14239 /* Override any GCC internal prototype to avoid an error.
14240 Use char because int might match the return type of a GCC
14241 builtin and then its argument prototype would still apply. */
14242 #ifdef __cplusplus
14243 extern "C"
14244 #endif
14245 char SmcOpenConnection ();
14246 int
14247 main ()
14248 {
14249 return SmcOpenConnection ();
14250 ;
14251 return 0;
14252 }
14253 _ACEOF
14254 rm -f conftest.$ac_objext conftest$ac_exeext
14255 if { (ac_try="$ac_link"
14256 case "(($ac_try" in
14257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14258 *) ac_try_echo=$ac_try;;
14259 esac
14260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14261 (eval "$ac_link") 2>conftest.er1
14262 ac_status=$?
14263 grep -v '^ *+' conftest.er1 >conftest.err
14264 rm -f conftest.er1
14265 cat conftest.err >&5
14266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267 (exit $ac_status); } && {
14268 test -z "$ac_c_werror_flag" ||
14269 test ! -s conftest.err
14270 } && test -s conftest$ac_exeext &&
14271 $as_test_x conftest$ac_exeext; then
14272 ac_cv_lib_SM_SmcOpenConnection=yes
14273 else
14274 echo "$as_me: failed program was:" >&5
14275 sed 's/^/| /' conftest.$ac_ext >&5
14276
14277 ac_cv_lib_SM_SmcOpenConnection=no
14278 fi
14279
14280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14281 conftest$ac_exeext conftest.$ac_ext
14282 LIBS=$ac_check_lib_save_LIBS
14283 fi
14284 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14285 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14286 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14287 HAVE_X_SM=yes
14288 fi
14289
14290 fi
14291
14292
14293
14294 if test "${HAVE_X_SM}" = "yes"; then
14295
14296 cat >>confdefs.h <<\_ACEOF
14297 #define HAVE_X_SM 1
14298 _ACEOF
14299
14300 case "$LIBS" in
14301 *-lSM*) ;;
14302 *) LIBS="-lSM -lICE $LIBS" ;;
14303 esac
14304 fi
14305 fi
14306
14307 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14308 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14309 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14310 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14311 echo $ECHO_N "(cached) $ECHO_C" >&6
14312 else
14313 cat >conftest.$ac_ext <<_ACEOF
14314 /* confdefs.h. */
14315 _ACEOF
14316 cat confdefs.h >>conftest.$ac_ext
14317 cat >>conftest.$ac_ext <<_ACEOF
14318 /* end confdefs.h. */
14319 #include <netdb.h>
14320 int
14321 main ()
14322 {
14323 return h_errno;
14324 ;
14325 return 0;
14326 }
14327 _ACEOF
14328 rm -f conftest.$ac_objext conftest$ac_exeext
14329 if { (ac_try="$ac_link"
14330 case "(($ac_try" in
14331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14332 *) ac_try_echo=$ac_try;;
14333 esac
14334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14335 (eval "$ac_link") 2>conftest.er1
14336 ac_status=$?
14337 grep -v '^ *+' conftest.er1 >conftest.err
14338 rm -f conftest.er1
14339 cat conftest.err >&5
14340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); } && {
14342 test -z "$ac_c_werror_flag" ||
14343 test ! -s conftest.err
14344 } && test -s conftest$ac_exeext &&
14345 $as_test_x conftest$ac_exeext; then
14346 emacs_cv_netdb_declares_h_errno=yes
14347 else
14348 echo "$as_me: failed program was:" >&5
14349 sed 's/^/| /' conftest.$ac_ext >&5
14350
14351 emacs_cv_netdb_declares_h_errno=no
14352 fi
14353
14354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14355 conftest$ac_exeext conftest.$ac_ext
14356 fi
14357 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14358 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14359 if test $emacs_cv_netdb_declares_h_errno = yes; then
14360
14361 cat >>confdefs.h <<\_ACEOF
14362 #define HAVE_H_ERRNO 1
14363 _ACEOF
14364
14365 fi
14366
14367 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14368 # for constant arguments. Useless!
14369 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14370 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14371 if test "${ac_cv_working_alloca_h+set}" = set; then
14372 echo $ECHO_N "(cached) $ECHO_C" >&6
14373 else
14374 cat >conftest.$ac_ext <<_ACEOF
14375 /* confdefs.h. */
14376 _ACEOF
14377 cat confdefs.h >>conftest.$ac_ext
14378 cat >>conftest.$ac_ext <<_ACEOF
14379 /* end confdefs.h. */
14380 #include <alloca.h>
14381 int
14382 main ()
14383 {
14384 char *p = (char *) alloca (2 * sizeof (int));
14385 if (p) return 0;
14386 ;
14387 return 0;
14388 }
14389 _ACEOF
14390 rm -f conftest.$ac_objext conftest$ac_exeext
14391 if { (ac_try="$ac_link"
14392 case "(($ac_try" in
14393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14394 *) ac_try_echo=$ac_try;;
14395 esac
14396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14397 (eval "$ac_link") 2>conftest.er1
14398 ac_status=$?
14399 grep -v '^ *+' conftest.er1 >conftest.err
14400 rm -f conftest.er1
14401 cat conftest.err >&5
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); } && {
14404 test -z "$ac_c_werror_flag" ||
14405 test ! -s conftest.err
14406 } && test -s conftest$ac_exeext &&
14407 $as_test_x conftest$ac_exeext; then
14408 ac_cv_working_alloca_h=yes
14409 else
14410 echo "$as_me: failed program was:" >&5
14411 sed 's/^/| /' conftest.$ac_ext >&5
14412
14413 ac_cv_working_alloca_h=no
14414 fi
14415
14416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14417 conftest$ac_exeext conftest.$ac_ext
14418 fi
14419 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14420 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14421 if test $ac_cv_working_alloca_h = yes; then
14422
14423 cat >>confdefs.h <<\_ACEOF
14424 #define HAVE_ALLOCA_H 1
14425 _ACEOF
14426
14427 fi
14428
14429 { echo "$as_me:$LINENO: checking for alloca" >&5
14430 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14431 if test "${ac_cv_func_alloca_works+set}" = set; then
14432 echo $ECHO_N "(cached) $ECHO_C" >&6
14433 else
14434 cat >conftest.$ac_ext <<_ACEOF
14435 /* confdefs.h. */
14436 _ACEOF
14437 cat confdefs.h >>conftest.$ac_ext
14438 cat >>conftest.$ac_ext <<_ACEOF
14439 /* end confdefs.h. */
14440 #ifdef __GNUC__
14441 # define alloca __builtin_alloca
14442 #else
14443 # ifdef _MSC_VER
14444 # include <malloc.h>
14445 # define alloca _alloca
14446 # else
14447 # ifdef HAVE_ALLOCA_H
14448 # include <alloca.h>
14449 # else
14450 # ifdef _AIX
14451 #pragma alloca
14452 # else
14453 # ifndef alloca /* predefined by HP cc +Olibcalls */
14454 char *alloca ();
14455 # endif
14456 # endif
14457 # endif
14458 # endif
14459 #endif
14460
14461 int
14462 main ()
14463 {
14464 char *p = (char *) alloca (1);
14465 if (p) return 0;
14466 ;
14467 return 0;
14468 }
14469 _ACEOF
14470 rm -f conftest.$ac_objext conftest$ac_exeext
14471 if { (ac_try="$ac_link"
14472 case "(($ac_try" in
14473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14474 *) ac_try_echo=$ac_try;;
14475 esac
14476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14477 (eval "$ac_link") 2>conftest.er1
14478 ac_status=$?
14479 grep -v '^ *+' conftest.er1 >conftest.err
14480 rm -f conftest.er1
14481 cat conftest.err >&5
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); } && {
14484 test -z "$ac_c_werror_flag" ||
14485 test ! -s conftest.err
14486 } && test -s conftest$ac_exeext &&
14487 $as_test_x conftest$ac_exeext; then
14488 ac_cv_func_alloca_works=yes
14489 else
14490 echo "$as_me: failed program was:" >&5
14491 sed 's/^/| /' conftest.$ac_ext >&5
14492
14493 ac_cv_func_alloca_works=no
14494 fi
14495
14496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14497 conftest$ac_exeext conftest.$ac_ext
14498 fi
14499 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14500 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14501
14502 if test $ac_cv_func_alloca_works = yes; then
14503
14504 cat >>confdefs.h <<\_ACEOF
14505 #define HAVE_ALLOCA 1
14506 _ACEOF
14507
14508 else
14509 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14510 # that cause trouble. Some versions do not even contain alloca or
14511 # contain a buggy version. If you still want to use their alloca,
14512 # use ar to extract alloca.o from them instead of compiling alloca.c.
14513
14514 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14515
14516 cat >>confdefs.h <<\_ACEOF
14517 #define C_ALLOCA 1
14518 _ACEOF
14519
14520
14521 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14522 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
14523 if test "${ac_cv_os_cray+set}" = set; then
14524 echo $ECHO_N "(cached) $ECHO_C" >&6
14525 else
14526 cat >conftest.$ac_ext <<_ACEOF
14527 /* confdefs.h. */
14528 _ACEOF
14529 cat confdefs.h >>conftest.$ac_ext
14530 cat >>conftest.$ac_ext <<_ACEOF
14531 /* end confdefs.h. */
14532 #if defined CRAY && ! defined CRAY2
14533 webecray
14534 #else
14535 wenotbecray
14536 #endif
14537
14538 _ACEOF
14539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14540 $EGREP "webecray" >/dev/null 2>&1; then
14541 ac_cv_os_cray=yes
14542 else
14543 ac_cv_os_cray=no
14544 fi
14545 rm -f conftest*
14546
14547 fi
14548 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14549 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14550 if test $ac_cv_os_cray = yes; then
14551 for ac_func in _getb67 GETB67 getb67; do
14552 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14553 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14554 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14555 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14556 echo $ECHO_N "(cached) $ECHO_C" >&6
14557 else
14558 cat >conftest.$ac_ext <<_ACEOF
14559 /* confdefs.h. */
14560 _ACEOF
14561 cat confdefs.h >>conftest.$ac_ext
14562 cat >>conftest.$ac_ext <<_ACEOF
14563 /* end confdefs.h. */
14564 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14566 #define $ac_func innocuous_$ac_func
14567
14568 /* System header to define __stub macros and hopefully few prototypes,
14569 which can conflict with char $ac_func (); below.
14570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14571 <limits.h> exists even on freestanding compilers. */
14572
14573 #ifdef __STDC__
14574 # include <limits.h>
14575 #else
14576 # include <assert.h>
14577 #endif
14578
14579 #undef $ac_func
14580
14581 /* Override any GCC internal prototype to avoid an error.
14582 Use char because int might match the return type of a GCC
14583 builtin and then its argument prototype would still apply. */
14584 #ifdef __cplusplus
14585 extern "C"
14586 #endif
14587 char $ac_func ();
14588 /* The GNU C library defines this for functions which it implements
14589 to always fail with ENOSYS. Some functions are actually named
14590 something starting with __ and the normal name is an alias. */
14591 #if defined __stub_$ac_func || defined __stub___$ac_func
14592 choke me
14593 #endif
14594
14595 int
14596 main ()
14597 {
14598 return $ac_func ();
14599 ;
14600 return 0;
14601 }
14602 _ACEOF
14603 rm -f conftest.$ac_objext conftest$ac_exeext
14604 if { (ac_try="$ac_link"
14605 case "(($ac_try" in
14606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14607 *) ac_try_echo=$ac_try;;
14608 esac
14609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14610 (eval "$ac_link") 2>conftest.er1
14611 ac_status=$?
14612 grep -v '^ *+' conftest.er1 >conftest.err
14613 rm -f conftest.er1
14614 cat conftest.err >&5
14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 (exit $ac_status); } && {
14617 test -z "$ac_c_werror_flag" ||
14618 test ! -s conftest.err
14619 } && test -s conftest$ac_exeext &&
14620 $as_test_x conftest$ac_exeext; then
14621 eval "$as_ac_var=yes"
14622 else
14623 echo "$as_me: failed program was:" >&5
14624 sed 's/^/| /' conftest.$ac_ext >&5
14625
14626 eval "$as_ac_var=no"
14627 fi
14628
14629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14630 conftest$ac_exeext conftest.$ac_ext
14631 fi
14632 ac_res=`eval echo '${'$as_ac_var'}'`
14633 { echo "$as_me:$LINENO: result: $ac_res" >&5
14634 echo "${ECHO_T}$ac_res" >&6; }
14635 if test `eval echo '${'$as_ac_var'}'` = yes; then
14636
14637 cat >>confdefs.h <<_ACEOF
14638 #define CRAY_STACKSEG_END $ac_func
14639 _ACEOF
14640
14641 break
14642 fi
14643
14644 done
14645 fi
14646
14647 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14648 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
14649 if test "${ac_cv_c_stack_direction+set}" = set; then
14650 echo $ECHO_N "(cached) $ECHO_C" >&6
14651 else
14652 if test "$cross_compiling" = yes; then
14653 ac_cv_c_stack_direction=0
14654 else
14655 cat >conftest.$ac_ext <<_ACEOF
14656 /* confdefs.h. */
14657 _ACEOF
14658 cat confdefs.h >>conftest.$ac_ext
14659 cat >>conftest.$ac_ext <<_ACEOF
14660 /* end confdefs.h. */
14661 $ac_includes_default
14662 int
14663 find_stack_direction ()
14664 {
14665 static char *addr = 0;
14666 auto char dummy;
14667 if (addr == 0)
14668 {
14669 addr = &dummy;
14670 return find_stack_direction ();
14671 }
14672 else
14673 return (&dummy > addr) ? 1 : -1;
14674 }
14675
14676 int
14677 main ()
14678 {
14679 return find_stack_direction () < 0;
14680 }
14681 _ACEOF
14682 rm -f conftest$ac_exeext
14683 if { (ac_try="$ac_link"
14684 case "(($ac_try" in
14685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14686 *) ac_try_echo=$ac_try;;
14687 esac
14688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14689 (eval "$ac_link") 2>&5
14690 ac_status=$?
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14693 { (case "(($ac_try" in
14694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14695 *) ac_try_echo=$ac_try;;
14696 esac
14697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14698 (eval "$ac_try") 2>&5
14699 ac_status=$?
14700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701 (exit $ac_status); }; }; then
14702 ac_cv_c_stack_direction=1
14703 else
14704 echo "$as_me: program exited with status $ac_status" >&5
14705 echo "$as_me: failed program was:" >&5
14706 sed 's/^/| /' conftest.$ac_ext >&5
14707
14708 ( exit $ac_status )
14709 ac_cv_c_stack_direction=-1
14710 fi
14711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14712 fi
14713
14714
14715 fi
14716 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14717 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14718
14719 cat >>confdefs.h <<_ACEOF
14720 #define STACK_DIRECTION $ac_cv_c_stack_direction
14721 _ACEOF
14722
14723
14724 fi
14725
14726
14727 # fmod, logb, and frexp are found in -lm on most systems.
14728 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14729
14730 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
14731 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
14732 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14733 echo $ECHO_N "(cached) $ECHO_C" >&6
14734 else
14735 ac_check_lib_save_LIBS=$LIBS
14736 LIBS="-lm $LIBS"
14737 cat >conftest.$ac_ext <<_ACEOF
14738 /* confdefs.h. */
14739 _ACEOF
14740 cat confdefs.h >>conftest.$ac_ext
14741 cat >>conftest.$ac_ext <<_ACEOF
14742 /* end confdefs.h. */
14743
14744 /* Override any GCC internal prototype to avoid an error.
14745 Use char because int might match the return type of a GCC
14746 builtin and then its argument prototype would still apply. */
14747 #ifdef __cplusplus
14748 extern "C"
14749 #endif
14750 char sqrt ();
14751 int
14752 main ()
14753 {
14754 return sqrt ();
14755 ;
14756 return 0;
14757 }
14758 _ACEOF
14759 rm -f conftest.$ac_objext conftest$ac_exeext
14760 if { (ac_try="$ac_link"
14761 case "(($ac_try" in
14762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14763 *) ac_try_echo=$ac_try;;
14764 esac
14765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14766 (eval "$ac_link") 2>conftest.er1
14767 ac_status=$?
14768 grep -v '^ *+' conftest.er1 >conftest.err
14769 rm -f conftest.er1
14770 cat conftest.err >&5
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 (exit $ac_status); } && {
14773 test -z "$ac_c_werror_flag" ||
14774 test ! -s conftest.err
14775 } && test -s conftest$ac_exeext &&
14776 $as_test_x conftest$ac_exeext; then
14777 ac_cv_lib_m_sqrt=yes
14778 else
14779 echo "$as_me: failed program was:" >&5
14780 sed 's/^/| /' conftest.$ac_ext >&5
14781
14782 ac_cv_lib_m_sqrt=no
14783 fi
14784
14785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14786 conftest$ac_exeext conftest.$ac_ext
14787 LIBS=$ac_check_lib_save_LIBS
14788 fi
14789 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
14790 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
14791 if test $ac_cv_lib_m_sqrt = yes; then
14792 cat >>confdefs.h <<_ACEOF
14793 #define HAVE_LIBM 1
14794 _ACEOF
14795
14796 LIBS="-lm $LIBS"
14797
14798 fi
14799
14800
14801 # Check for mail-locking functions in a "mail" library. Probably this should
14802 # have the same check as for liblockfile below.
14803
14804 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
14805 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
14806 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14807 echo $ECHO_N "(cached) $ECHO_C" >&6
14808 else
14809 ac_check_lib_save_LIBS=$LIBS
14810 LIBS="-lmail $LIBS"
14811 cat >conftest.$ac_ext <<_ACEOF
14812 /* confdefs.h. */
14813 _ACEOF
14814 cat confdefs.h >>conftest.$ac_ext
14815 cat >>conftest.$ac_ext <<_ACEOF
14816 /* end confdefs.h. */
14817
14818 /* Override any GCC internal prototype to avoid an error.
14819 Use char because int might match the return type of a GCC
14820 builtin and then its argument prototype would still apply. */
14821 #ifdef __cplusplus
14822 extern "C"
14823 #endif
14824 char maillock ();
14825 int
14826 main ()
14827 {
14828 return maillock ();
14829 ;
14830 return 0;
14831 }
14832 _ACEOF
14833 rm -f conftest.$ac_objext conftest$ac_exeext
14834 if { (ac_try="$ac_link"
14835 case "(($ac_try" in
14836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14837 *) ac_try_echo=$ac_try;;
14838 esac
14839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14840 (eval "$ac_link") 2>conftest.er1
14841 ac_status=$?
14842 grep -v '^ *+' conftest.er1 >conftest.err
14843 rm -f conftest.er1
14844 cat conftest.err >&5
14845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846 (exit $ac_status); } && {
14847 test -z "$ac_c_werror_flag" ||
14848 test ! -s conftest.err
14849 } && test -s conftest$ac_exeext &&
14850 $as_test_x conftest$ac_exeext; then
14851 ac_cv_lib_mail_maillock=yes
14852 else
14853 echo "$as_me: failed program was:" >&5
14854 sed 's/^/| /' conftest.$ac_ext >&5
14855
14856 ac_cv_lib_mail_maillock=no
14857 fi
14858
14859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14860 conftest$ac_exeext conftest.$ac_ext
14861 LIBS=$ac_check_lib_save_LIBS
14862 fi
14863 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
14864 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
14865 if test $ac_cv_lib_mail_maillock = yes; then
14866 cat >>confdefs.h <<_ACEOF
14867 #define HAVE_LIBMAIL 1
14868 _ACEOF
14869
14870 LIBS="-lmail $LIBS"
14871
14872 fi
14873
14874
14875 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
14876 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
14877 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14878 echo $ECHO_N "(cached) $ECHO_C" >&6
14879 else
14880 ac_check_lib_save_LIBS=$LIBS
14881 LIBS="-llockfile $LIBS"
14882 cat >conftest.$ac_ext <<_ACEOF
14883 /* confdefs.h. */
14884 _ACEOF
14885 cat confdefs.h >>conftest.$ac_ext
14886 cat >>conftest.$ac_ext <<_ACEOF
14887 /* end confdefs.h. */
14888
14889 /* Override any GCC internal prototype to avoid an error.
14890 Use char because int might match the return type of a GCC
14891 builtin and then its argument prototype would still apply. */
14892 #ifdef __cplusplus
14893 extern "C"
14894 #endif
14895 char maillock ();
14896 int
14897 main ()
14898 {
14899 return maillock ();
14900 ;
14901 return 0;
14902 }
14903 _ACEOF
14904 rm -f conftest.$ac_objext conftest$ac_exeext
14905 if { (ac_try="$ac_link"
14906 case "(($ac_try" in
14907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14908 *) ac_try_echo=$ac_try;;
14909 esac
14910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14911 (eval "$ac_link") 2>conftest.er1
14912 ac_status=$?
14913 grep -v '^ *+' conftest.er1 >conftest.err
14914 rm -f conftest.er1
14915 cat conftest.err >&5
14916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917 (exit $ac_status); } && {
14918 test -z "$ac_c_werror_flag" ||
14919 test ! -s conftest.err
14920 } && test -s conftest$ac_exeext &&
14921 $as_test_x conftest$ac_exeext; then
14922 ac_cv_lib_lockfile_maillock=yes
14923 else
14924 echo "$as_me: failed program was:" >&5
14925 sed 's/^/| /' conftest.$ac_ext >&5
14926
14927 ac_cv_lib_lockfile_maillock=no
14928 fi
14929
14930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14931 conftest$ac_exeext conftest.$ac_ext
14932 LIBS=$ac_check_lib_save_LIBS
14933 fi
14934 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14935 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
14936 if test $ac_cv_lib_lockfile_maillock = yes; then
14937 cat >>confdefs.h <<_ACEOF
14938 #define HAVE_LIBLOCKFILE 1
14939 _ACEOF
14940
14941 LIBS="-llockfile $LIBS"
14942
14943 fi
14944
14945 # If we have the shared liblockfile, assume we must use it for mail
14946 # locking (e.g. Debian). If we couldn't link against liblockfile
14947 # (no liblockfile.a installed), ensure that we don't need to.
14948 if test "$ac_cv_lib_lockfile_maillock" = no; then
14949 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14950 set dummy liblockfile.so; ac_word=$2
14951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14953 if test "${ac_cv_prog_liblockfile+set}" = set; then
14954 echo $ECHO_N "(cached) $ECHO_C" >&6
14955 else
14956 if test -n "$liblockfile"; then
14957 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14958 else
14959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14960 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14961 for as_dir in $as_dummy
14962 do
14963 IFS=$as_save_IFS
14964 test -z "$as_dir" && as_dir=.
14965 for ac_exec_ext in '' $ac_executable_extensions; do
14966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14967 ac_cv_prog_liblockfile="yes"
14968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14969 break 2
14970 fi
14971 done
14972 done
14973 IFS=$as_save_IFS
14974
14975 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14976 fi
14977 fi
14978 liblockfile=$ac_cv_prog_liblockfile
14979 if test -n "$liblockfile"; then
14980 { echo "$as_me:$LINENO: result: $liblockfile" >&5
14981 echo "${ECHO_T}$liblockfile" >&6; }
14982 else
14983 { echo "$as_me:$LINENO: result: no" >&5
14984 echo "${ECHO_T}no" >&6; }
14985 fi
14986
14987
14988 if test $ac_cv_prog_liblockfile = yes; then
14989 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
14990 This probably means that movemail could lose mail.
14991 There may be a \`development' package to install containing liblockfile." >&5
14992 echo "$as_me: error: Shared liblockfile found but can't link against it.
14993 This probably means that movemail could lose mail.
14994 There may be a \`development' package to install containing liblockfile." >&2;}
14995 { (exit 1); exit 1; }; }
14996 else :
14997 fi
14998 fi
14999
15000 for ac_func in touchlock
15001 do
15002 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15003 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15004 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15005 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15006 echo $ECHO_N "(cached) $ECHO_C" >&6
15007 else
15008 cat >conftest.$ac_ext <<_ACEOF
15009 /* confdefs.h. */
15010 _ACEOF
15011 cat confdefs.h >>conftest.$ac_ext
15012 cat >>conftest.$ac_ext <<_ACEOF
15013 /* end confdefs.h. */
15014 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15016 #define $ac_func innocuous_$ac_func
15017
15018 /* System header to define __stub macros and hopefully few prototypes,
15019 which can conflict with char $ac_func (); below.
15020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15021 <limits.h> exists even on freestanding compilers. */
15022
15023 #ifdef __STDC__
15024 # include <limits.h>
15025 #else
15026 # include <assert.h>
15027 #endif
15028
15029 #undef $ac_func
15030
15031 /* Override any GCC internal prototype to avoid an error.
15032 Use char because int might match the return type of a GCC
15033 builtin and then its argument prototype would still apply. */
15034 #ifdef __cplusplus
15035 extern "C"
15036 #endif
15037 char $ac_func ();
15038 /* The GNU C library defines this for functions which it implements
15039 to always fail with ENOSYS. Some functions are actually named
15040 something starting with __ and the normal name is an alias. */
15041 #if defined __stub_$ac_func || defined __stub___$ac_func
15042 choke me
15043 #endif
15044
15045 int
15046 main ()
15047 {
15048 return $ac_func ();
15049 ;
15050 return 0;
15051 }
15052 _ACEOF
15053 rm -f conftest.$ac_objext conftest$ac_exeext
15054 if { (ac_try="$ac_link"
15055 case "(($ac_try" in
15056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15057 *) ac_try_echo=$ac_try;;
15058 esac
15059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15060 (eval "$ac_link") 2>conftest.er1
15061 ac_status=$?
15062 grep -v '^ *+' conftest.er1 >conftest.err
15063 rm -f conftest.er1
15064 cat conftest.err >&5
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); } && {
15067 test -z "$ac_c_werror_flag" ||
15068 test ! -s conftest.err
15069 } && test -s conftest$ac_exeext &&
15070 $as_test_x conftest$ac_exeext; then
15071 eval "$as_ac_var=yes"
15072 else
15073 echo "$as_me: failed program was:" >&5
15074 sed 's/^/| /' conftest.$ac_ext >&5
15075
15076 eval "$as_ac_var=no"
15077 fi
15078
15079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15080 conftest$ac_exeext conftest.$ac_ext
15081 fi
15082 ac_res=`eval echo '${'$as_ac_var'}'`
15083 { echo "$as_me:$LINENO: result: $ac_res" >&5
15084 echo "${ECHO_T}$ac_res" >&6; }
15085 if test `eval echo '${'$as_ac_var'}'` = yes; then
15086 cat >>confdefs.h <<_ACEOF
15087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15088 _ACEOF
15089
15090 fi
15091 done
15092
15093
15094 for ac_header in maillock.h
15095 do
15096 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15098 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15101 echo $ECHO_N "(cached) $ECHO_C" >&6
15102 fi
15103 ac_res=`eval echo '${'$as_ac_Header'}'`
15104 { echo "$as_me:$LINENO: result: $ac_res" >&5
15105 echo "${ECHO_T}$ac_res" >&6; }
15106 else
15107 # Is the header compilable?
15108 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15109 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15110 cat >conftest.$ac_ext <<_ACEOF
15111 /* confdefs.h. */
15112 _ACEOF
15113 cat confdefs.h >>conftest.$ac_ext
15114 cat >>conftest.$ac_ext <<_ACEOF
15115 /* end confdefs.h. */
15116 $ac_includes_default
15117 #include <$ac_header>
15118 _ACEOF
15119 rm -f conftest.$ac_objext
15120 if { (ac_try="$ac_compile"
15121 case "(($ac_try" in
15122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15123 *) ac_try_echo=$ac_try;;
15124 esac
15125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15126 (eval "$ac_compile") 2>conftest.er1
15127 ac_status=$?
15128 grep -v '^ *+' conftest.er1 >conftest.err
15129 rm -f conftest.er1
15130 cat conftest.err >&5
15131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132 (exit $ac_status); } && {
15133 test -z "$ac_c_werror_flag" ||
15134 test ! -s conftest.err
15135 } && test -s conftest.$ac_objext; then
15136 ac_header_compiler=yes
15137 else
15138 echo "$as_me: failed program was:" >&5
15139 sed 's/^/| /' conftest.$ac_ext >&5
15140
15141 ac_header_compiler=no
15142 fi
15143
15144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15145 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15146 echo "${ECHO_T}$ac_header_compiler" >&6; }
15147
15148 # Is the header present?
15149 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15150 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15151 cat >conftest.$ac_ext <<_ACEOF
15152 /* confdefs.h. */
15153 _ACEOF
15154 cat confdefs.h >>conftest.$ac_ext
15155 cat >>conftest.$ac_ext <<_ACEOF
15156 /* end confdefs.h. */
15157 #include <$ac_header>
15158 _ACEOF
15159 if { (ac_try="$ac_cpp conftest.$ac_ext"
15160 case "(($ac_try" in
15161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15162 *) ac_try_echo=$ac_try;;
15163 esac
15164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15165 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15166 ac_status=$?
15167 grep -v '^ *+' conftest.er1 >conftest.err
15168 rm -f conftest.er1
15169 cat conftest.err >&5
15170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171 (exit $ac_status); } >/dev/null && {
15172 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15173 test ! -s conftest.err
15174 }; then
15175 ac_header_preproc=yes
15176 else
15177 echo "$as_me: failed program was:" >&5
15178 sed 's/^/| /' conftest.$ac_ext >&5
15179
15180 ac_header_preproc=no
15181 fi
15182
15183 rm -f conftest.err conftest.$ac_ext
15184 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15185 echo "${ECHO_T}$ac_header_preproc" >&6; }
15186
15187 # So? What about this header?
15188 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15189 yes:no: )
15190 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15191 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15193 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15194 ac_header_preproc=yes
15195 ;;
15196 no:yes:* )
15197 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15198 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15199 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15200 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15201 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15202 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15203 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15204 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15206 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15207 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15208 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15209
15210 ;;
15211 esac
15212 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15215 echo $ECHO_N "(cached) $ECHO_C" >&6
15216 else
15217 eval "$as_ac_Header=\$ac_header_preproc"
15218 fi
15219 ac_res=`eval echo '${'$as_ac_Header'}'`
15220 { echo "$as_me:$LINENO: result: $ac_res" >&5
15221 echo "${ECHO_T}$ac_res" >&6; }
15222
15223 fi
15224 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15225 cat >>confdefs.h <<_ACEOF
15226 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15227 _ACEOF
15228
15229 fi
15230
15231 done
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303 for ac_func in gethostname getdomainname dup2 \
15304 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15305 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15306 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15307 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15308 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15309 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15310 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15311 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15312 do
15313 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15314 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15315 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15316 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15317 echo $ECHO_N "(cached) $ECHO_C" >&6
15318 else
15319 cat >conftest.$ac_ext <<_ACEOF
15320 /* confdefs.h. */
15321 _ACEOF
15322 cat confdefs.h >>conftest.$ac_ext
15323 cat >>conftest.$ac_ext <<_ACEOF
15324 /* end confdefs.h. */
15325 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15327 #define $ac_func innocuous_$ac_func
15328
15329 /* System header to define __stub macros and hopefully few prototypes,
15330 which can conflict with char $ac_func (); below.
15331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15332 <limits.h> exists even on freestanding compilers. */
15333
15334 #ifdef __STDC__
15335 # include <limits.h>
15336 #else
15337 # include <assert.h>
15338 #endif
15339
15340 #undef $ac_func
15341
15342 /* Override any GCC internal prototype to avoid an error.
15343 Use char because int might match the return type of a GCC
15344 builtin and then its argument prototype would still apply. */
15345 #ifdef __cplusplus
15346 extern "C"
15347 #endif
15348 char $ac_func ();
15349 /* The GNU C library defines this for functions which it implements
15350 to always fail with ENOSYS. Some functions are actually named
15351 something starting with __ and the normal name is an alias. */
15352 #if defined __stub_$ac_func || defined __stub___$ac_func
15353 choke me
15354 #endif
15355
15356 int
15357 main ()
15358 {
15359 return $ac_func ();
15360 ;
15361 return 0;
15362 }
15363 _ACEOF
15364 rm -f conftest.$ac_objext conftest$ac_exeext
15365 if { (ac_try="$ac_link"
15366 case "(($ac_try" in
15367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15368 *) ac_try_echo=$ac_try;;
15369 esac
15370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15371 (eval "$ac_link") 2>conftest.er1
15372 ac_status=$?
15373 grep -v '^ *+' conftest.er1 >conftest.err
15374 rm -f conftest.er1
15375 cat conftest.err >&5
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); } && {
15378 test -z "$ac_c_werror_flag" ||
15379 test ! -s conftest.err
15380 } && test -s conftest$ac_exeext &&
15381 $as_test_x conftest$ac_exeext; then
15382 eval "$as_ac_var=yes"
15383 else
15384 echo "$as_me: failed program was:" >&5
15385 sed 's/^/| /' conftest.$ac_ext >&5
15386
15387 eval "$as_ac_var=no"
15388 fi
15389
15390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15391 conftest$ac_exeext conftest.$ac_ext
15392 fi
15393 ac_res=`eval echo '${'$as_ac_var'}'`
15394 { echo "$as_me:$LINENO: result: $ac_res" >&5
15395 echo "${ECHO_T}$ac_res" >&6; }
15396 if test `eval echo '${'$as_ac_var'}'` = yes; then
15397 cat >>confdefs.h <<_ACEOF
15398 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15399 _ACEOF
15400
15401 fi
15402 done
15403
15404
15405
15406 for ac_header in sys/un.h
15407 do
15408 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15410 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15413 echo $ECHO_N "(cached) $ECHO_C" >&6
15414 fi
15415 ac_res=`eval echo '${'$as_ac_Header'}'`
15416 { echo "$as_me:$LINENO: result: $ac_res" >&5
15417 echo "${ECHO_T}$ac_res" >&6; }
15418 else
15419 # Is the header compilable?
15420 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15421 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15422 cat >conftest.$ac_ext <<_ACEOF
15423 /* confdefs.h. */
15424 _ACEOF
15425 cat confdefs.h >>conftest.$ac_ext
15426 cat >>conftest.$ac_ext <<_ACEOF
15427 /* end confdefs.h. */
15428 $ac_includes_default
15429 #include <$ac_header>
15430 _ACEOF
15431 rm -f conftest.$ac_objext
15432 if { (ac_try="$ac_compile"
15433 case "(($ac_try" in
15434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15435 *) ac_try_echo=$ac_try;;
15436 esac
15437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15438 (eval "$ac_compile") 2>conftest.er1
15439 ac_status=$?
15440 grep -v '^ *+' conftest.er1 >conftest.err
15441 rm -f conftest.er1
15442 cat conftest.err >&5
15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 (exit $ac_status); } && {
15445 test -z "$ac_c_werror_flag" ||
15446 test ! -s conftest.err
15447 } && test -s conftest.$ac_objext; then
15448 ac_header_compiler=yes
15449 else
15450 echo "$as_me: failed program was:" >&5
15451 sed 's/^/| /' conftest.$ac_ext >&5
15452
15453 ac_header_compiler=no
15454 fi
15455
15456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15457 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15458 echo "${ECHO_T}$ac_header_compiler" >&6; }
15459
15460 # Is the header present?
15461 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15462 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15463 cat >conftest.$ac_ext <<_ACEOF
15464 /* confdefs.h. */
15465 _ACEOF
15466 cat confdefs.h >>conftest.$ac_ext
15467 cat >>conftest.$ac_ext <<_ACEOF
15468 /* end confdefs.h. */
15469 #include <$ac_header>
15470 _ACEOF
15471 if { (ac_try="$ac_cpp conftest.$ac_ext"
15472 case "(($ac_try" in
15473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15474 *) ac_try_echo=$ac_try;;
15475 esac
15476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15478 ac_status=$?
15479 grep -v '^ *+' conftest.er1 >conftest.err
15480 rm -f conftest.er1
15481 cat conftest.err >&5
15482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483 (exit $ac_status); } >/dev/null && {
15484 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15485 test ! -s conftest.err
15486 }; then
15487 ac_header_preproc=yes
15488 else
15489 echo "$as_me: failed program was:" >&5
15490 sed 's/^/| /' conftest.$ac_ext >&5
15491
15492 ac_header_preproc=no
15493 fi
15494
15495 rm -f conftest.err conftest.$ac_ext
15496 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15497 echo "${ECHO_T}$ac_header_preproc" >&6; }
15498
15499 # So? What about this header?
15500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15501 yes:no: )
15502 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15503 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15505 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15506 ac_header_preproc=yes
15507 ;;
15508 no:yes:* )
15509 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15510 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15511 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15512 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15513 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15514 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15515 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15516 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15518 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15519 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15520 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15521
15522 ;;
15523 esac
15524 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15527 echo $ECHO_N "(cached) $ECHO_C" >&6
15528 else
15529 eval "$as_ac_Header=\$ac_header_preproc"
15530 fi
15531 ac_res=`eval echo '${'$as_ac_Header'}'`
15532 { echo "$as_me:$LINENO: result: $ac_res" >&5
15533 echo "${ECHO_T}$ac_res" >&6; }
15534
15535 fi
15536 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15537 cat >>confdefs.h <<_ACEOF
15538 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15539 _ACEOF
15540
15541 fi
15542
15543 done
15544
15545
15546
15547
15548
15549
15550 for ac_header in $ac_header_list
15551 do
15552 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15554 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15557 echo $ECHO_N "(cached) $ECHO_C" >&6
15558 fi
15559 ac_res=`eval echo '${'$as_ac_Header'}'`
15560 { echo "$as_me:$LINENO: result: $ac_res" >&5
15561 echo "${ECHO_T}$ac_res" >&6; }
15562 else
15563 # Is the header compilable?
15564 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15565 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15566 cat >conftest.$ac_ext <<_ACEOF
15567 /* confdefs.h. */
15568 _ACEOF
15569 cat confdefs.h >>conftest.$ac_ext
15570 cat >>conftest.$ac_ext <<_ACEOF
15571 /* end confdefs.h. */
15572 $ac_includes_default
15573 #include <$ac_header>
15574 _ACEOF
15575 rm -f conftest.$ac_objext
15576 if { (ac_try="$ac_compile"
15577 case "(($ac_try" in
15578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15579 *) ac_try_echo=$ac_try;;
15580 esac
15581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15582 (eval "$ac_compile") 2>conftest.er1
15583 ac_status=$?
15584 grep -v '^ *+' conftest.er1 >conftest.err
15585 rm -f conftest.er1
15586 cat conftest.err >&5
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 (exit $ac_status); } && {
15589 test -z "$ac_c_werror_flag" ||
15590 test ! -s conftest.err
15591 } && test -s conftest.$ac_objext; then
15592 ac_header_compiler=yes
15593 else
15594 echo "$as_me: failed program was:" >&5
15595 sed 's/^/| /' conftest.$ac_ext >&5
15596
15597 ac_header_compiler=no
15598 fi
15599
15600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15601 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15602 echo "${ECHO_T}$ac_header_compiler" >&6; }
15603
15604 # Is the header present?
15605 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15606 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15607 cat >conftest.$ac_ext <<_ACEOF
15608 /* confdefs.h. */
15609 _ACEOF
15610 cat confdefs.h >>conftest.$ac_ext
15611 cat >>conftest.$ac_ext <<_ACEOF
15612 /* end confdefs.h. */
15613 #include <$ac_header>
15614 _ACEOF
15615 if { (ac_try="$ac_cpp conftest.$ac_ext"
15616 case "(($ac_try" in
15617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15618 *) ac_try_echo=$ac_try;;
15619 esac
15620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15622 ac_status=$?
15623 grep -v '^ *+' conftest.er1 >conftest.err
15624 rm -f conftest.er1
15625 cat conftest.err >&5
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); } >/dev/null && {
15628 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15629 test ! -s conftest.err
15630 }; then
15631 ac_header_preproc=yes
15632 else
15633 echo "$as_me: failed program was:" >&5
15634 sed 's/^/| /' conftest.$ac_ext >&5
15635
15636 ac_header_preproc=no
15637 fi
15638
15639 rm -f conftest.err conftest.$ac_ext
15640 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15641 echo "${ECHO_T}$ac_header_preproc" >&6; }
15642
15643 # So? What about this header?
15644 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15645 yes:no: )
15646 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15647 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15649 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15650 ac_header_preproc=yes
15651 ;;
15652 no:yes:* )
15653 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15654 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15655 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15656 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15657 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15658 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15659 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15660 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15662 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15663 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15664 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15665
15666 ;;
15667 esac
15668 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15671 echo $ECHO_N "(cached) $ECHO_C" >&6
15672 else
15673 eval "$as_ac_Header=\$ac_header_preproc"
15674 fi
15675 ac_res=`eval echo '${'$as_ac_Header'}'`
15676 { echo "$as_me:$LINENO: result: $ac_res" >&5
15677 echo "${ECHO_T}$ac_res" >&6; }
15678
15679 fi
15680 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15681 cat >>confdefs.h <<_ACEOF
15682 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15683 _ACEOF
15684
15685 fi
15686
15687 done
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697 for ac_func in $ac_func_list
15698 do
15699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15700 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15702 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15703 echo $ECHO_N "(cached) $ECHO_C" >&6
15704 else
15705 cat >conftest.$ac_ext <<_ACEOF
15706 /* confdefs.h. */
15707 _ACEOF
15708 cat confdefs.h >>conftest.$ac_ext
15709 cat >>conftest.$ac_ext <<_ACEOF
15710 /* end confdefs.h. */
15711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15713 #define $ac_func innocuous_$ac_func
15714
15715 /* System header to define __stub macros and hopefully few prototypes,
15716 which can conflict with char $ac_func (); below.
15717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15718 <limits.h> exists even on freestanding compilers. */
15719
15720 #ifdef __STDC__
15721 # include <limits.h>
15722 #else
15723 # include <assert.h>
15724 #endif
15725
15726 #undef $ac_func
15727
15728 /* Override any GCC internal prototype to avoid an error.
15729 Use char because int might match the return type of a GCC
15730 builtin and then its argument prototype would still apply. */
15731 #ifdef __cplusplus
15732 extern "C"
15733 #endif
15734 char $ac_func ();
15735 /* The GNU C library defines this for functions which it implements
15736 to always fail with ENOSYS. Some functions are actually named
15737 something starting with __ and the normal name is an alias. */
15738 #if defined __stub_$ac_func || defined __stub___$ac_func
15739 choke me
15740 #endif
15741
15742 int
15743 main ()
15744 {
15745 return $ac_func ();
15746 ;
15747 return 0;
15748 }
15749 _ACEOF
15750 rm -f conftest.$ac_objext conftest$ac_exeext
15751 if { (ac_try="$ac_link"
15752 case "(($ac_try" in
15753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15754 *) ac_try_echo=$ac_try;;
15755 esac
15756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15757 (eval "$ac_link") 2>conftest.er1
15758 ac_status=$?
15759 grep -v '^ *+' conftest.er1 >conftest.err
15760 rm -f conftest.er1
15761 cat conftest.err >&5
15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); } && {
15764 test -z "$ac_c_werror_flag" ||
15765 test ! -s conftest.err
15766 } && test -s conftest$ac_exeext &&
15767 $as_test_x conftest$ac_exeext; then
15768 eval "$as_ac_var=yes"
15769 else
15770 echo "$as_me: failed program was:" >&5
15771 sed 's/^/| /' conftest.$ac_ext >&5
15772
15773 eval "$as_ac_var=no"
15774 fi
15775
15776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15777 conftest$ac_exeext conftest.$ac_ext
15778 fi
15779 ac_res=`eval echo '${'$as_ac_var'}'`
15780 { echo "$as_me:$LINENO: result: $ac_res" >&5
15781 echo "${ECHO_T}$ac_res" >&6; }
15782 if test `eval echo '${'$as_ac_var'}'` = yes; then
15783 cat >>confdefs.h <<_ACEOF
15784 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15785 _ACEOF
15786
15787 fi
15788 done
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806 { echo "$as_me:$LINENO: checking for working mktime" >&5
15807 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
15808 if test "${ac_cv_func_working_mktime+set}" = set; then
15809 echo $ECHO_N "(cached) $ECHO_C" >&6
15810 else
15811 if test "$cross_compiling" = yes; then
15812 ac_cv_func_working_mktime=no
15813 else
15814 cat >conftest.$ac_ext <<_ACEOF
15815 /* confdefs.h. */
15816 _ACEOF
15817 cat confdefs.h >>conftest.$ac_ext
15818 cat >>conftest.$ac_ext <<_ACEOF
15819 /* end confdefs.h. */
15820 /* Test program from Paul Eggert and Tony Leneis. */
15821 #ifdef TIME_WITH_SYS_TIME
15822 # include <sys/time.h>
15823 # include <time.h>
15824 #else
15825 # ifdef HAVE_SYS_TIME_H
15826 # include <sys/time.h>
15827 # else
15828 # include <time.h>
15829 # endif
15830 #endif
15831
15832 #include <stdlib.h>
15833
15834 #ifdef HAVE_UNISTD_H
15835 # include <unistd.h>
15836 #endif
15837
15838 #ifndef HAVE_ALARM
15839 # define alarm(X) /* empty */
15840 #endif
15841
15842 /* Work around redefinition to rpl_putenv by other config tests. */
15843 #undef putenv
15844
15845 static time_t time_t_max;
15846 static time_t time_t_min;
15847
15848 /* Values we'll use to set the TZ environment variable. */
15849 static char *tz_strings[] = {
15850 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15851 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15852 };
15853 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15854
15855 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15856 Based on a problem report from Andreas Jaeger. */
15857 static int
15858 spring_forward_gap ()
15859 {
15860 /* glibc (up to about 1998-10-07) failed this test. */
15861 struct tm tm;
15862
15863 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15864 instead of "TZ=America/Vancouver" in order to detect the bug even
15865 on systems that don't support the Olson extension, or don't have the
15866 full zoneinfo tables installed. */
15867 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15868
15869 tm.tm_year = 98;
15870 tm.tm_mon = 3;
15871 tm.tm_mday = 5;
15872 tm.tm_hour = 2;
15873 tm.tm_min = 0;
15874 tm.tm_sec = 0;
15875 tm.tm_isdst = -1;
15876 return mktime (&tm) != (time_t) -1;
15877 }
15878
15879 static int
15880 mktime_test1 (now)
15881 time_t now;
15882 {
15883 struct tm *lt;
15884 return ! (lt = localtime (&now)) || mktime (lt) == now;
15885 }
15886
15887 static int
15888 mktime_test (now)
15889 time_t now;
15890 {
15891 return (mktime_test1 (now)
15892 && mktime_test1 ((time_t) (time_t_max - now))
15893 && mktime_test1 ((time_t) (time_t_min + now)));
15894 }
15895
15896 static int
15897 irix_6_4_bug ()
15898 {
15899 /* Based on code from Ariel Faigon. */
15900 struct tm tm;
15901 tm.tm_year = 96;
15902 tm.tm_mon = 3;
15903 tm.tm_mday = 0;
15904 tm.tm_hour = 0;
15905 tm.tm_min = 0;
15906 tm.tm_sec = 0;
15907 tm.tm_isdst = -1;
15908 mktime (&tm);
15909 return tm.tm_mon == 2 && tm.tm_mday == 31;
15910 }
15911
15912 static int
15913 bigtime_test (j)
15914 int j;
15915 {
15916 struct tm tm;
15917 time_t now;
15918 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15919 now = mktime (&tm);
15920 if (now != (time_t) -1)
15921 {
15922 struct tm *lt = localtime (&now);
15923 if (! (lt
15924 && lt->tm_year == tm.tm_year
15925 && lt->tm_mon == tm.tm_mon
15926 && lt->tm_mday == tm.tm_mday
15927 && lt->tm_hour == tm.tm_hour
15928 && lt->tm_min == tm.tm_min
15929 && lt->tm_sec == tm.tm_sec
15930 && lt->tm_yday == tm.tm_yday
15931 && lt->tm_wday == tm.tm_wday
15932 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15933 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15934 return 0;
15935 }
15936 return 1;
15937 }
15938
15939 static int
15940 year_2050_test ()
15941 {
15942 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15943 ignoring leap seconds. */
15944 unsigned long int answer = 2527315200UL;
15945
15946 struct tm tm;
15947 time_t t;
15948 tm.tm_year = 2050 - 1900;
15949 tm.tm_mon = 2 - 1;
15950 tm.tm_mday = 1;
15951 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15952 tm.tm_isdst = -1;
15953
15954 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15955 instead of "TZ=America/Vancouver" in order to detect the bug even
15956 on systems that don't support the Olson extension, or don't have the
15957 full zoneinfo tables installed. */
15958 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15959
15960 t = mktime (&tm);
15961
15962 /* Check that the result is either a failure, or close enough
15963 to the correct answer that we can assume the discrepancy is
15964 due to leap seconds. */
15965 return (t == (time_t) -1
15966 || (0 < t && answer - 120 <= t && t <= answer + 120));
15967 }
15968
15969 int
15970 main ()
15971 {
15972 time_t t, delta;
15973 int i, j;
15974
15975 /* This test makes some buggy mktime implementations loop.
15976 Give up after 60 seconds; a mktime slower than that
15977 isn't worth using anyway. */
15978 alarm (60);
15979
15980 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15981 continue;
15982 time_t_max--;
15983 if ((time_t) -1 < 0)
15984 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15985 continue;
15986 delta = time_t_max / 997; /* a suitable prime number */
15987 for (i = 0; i < N_STRINGS; i++)
15988 {
15989 if (tz_strings[i])
15990 putenv (tz_strings[i]);
15991
15992 for (t = 0; t <= time_t_max - delta; t += delta)
15993 if (! mktime_test (t))
15994 return 1;
15995 if (! (mktime_test ((time_t) 1)
15996 && mktime_test ((time_t) (60 * 60))
15997 && mktime_test ((time_t) (60 * 60 * 24))))
15998 return 1;
15999
16000 for (j = 1; 0 < j; j *= 2)
16001 if (! bigtime_test (j))
16002 return 1;
16003 if (! bigtime_test (j - 1))
16004 return 1;
16005 }
16006 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16007 }
16008 _ACEOF
16009 rm -f conftest$ac_exeext
16010 if { (ac_try="$ac_link"
16011 case "(($ac_try" in
16012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16013 *) ac_try_echo=$ac_try;;
16014 esac
16015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16016 (eval "$ac_link") 2>&5
16017 ac_status=$?
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16020 { (case "(($ac_try" in
16021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16022 *) ac_try_echo=$ac_try;;
16023 esac
16024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16025 (eval "$ac_try") 2>&5
16026 ac_status=$?
16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 (exit $ac_status); }; }; then
16029 ac_cv_func_working_mktime=yes
16030 else
16031 echo "$as_me: program exited with status $ac_status" >&5
16032 echo "$as_me: failed program was:" >&5
16033 sed 's/^/| /' conftest.$ac_ext >&5
16034
16035 ( exit $ac_status )
16036 ac_cv_func_working_mktime=no
16037 fi
16038 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16039 fi
16040
16041
16042 fi
16043 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16044 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16045 if test $ac_cv_func_working_mktime = no; then
16046 case " $LIBOBJS " in
16047 *" mktime.$ac_objext "* ) ;;
16048 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16049 ;;
16050 esac
16051
16052 fi
16053
16054 if test "$ac_cv_func_working_mktime" = no; then
16055
16056 cat >>confdefs.h <<\_ACEOF
16057 #define BROKEN_MKTIME 1
16058 _ACEOF
16059
16060 fi
16061
16062 ac_have_func=no # yes means we've found a way to get the load average.
16063
16064 # Make sure getloadavg.c is where it belongs, at configure-time.
16065 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16066 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16067 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16068 { (exit 1); exit 1; }; }
16069
16070 ac_save_LIBS=$LIBS
16071
16072 # Check for getloadavg, but be sure not to touch the cache variable.
16073 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16074 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16075 if test "${ac_cv_func_getloadavg+set}" = set; then
16076 echo $ECHO_N "(cached) $ECHO_C" >&6
16077 else
16078 cat >conftest.$ac_ext <<_ACEOF
16079 /* confdefs.h. */
16080 _ACEOF
16081 cat confdefs.h >>conftest.$ac_ext
16082 cat >>conftest.$ac_ext <<_ACEOF
16083 /* end confdefs.h. */
16084 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16086 #define getloadavg innocuous_getloadavg
16087
16088 /* System header to define __stub macros and hopefully few prototypes,
16089 which can conflict with char getloadavg (); below.
16090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16091 <limits.h> exists even on freestanding compilers. */
16092
16093 #ifdef __STDC__
16094 # include <limits.h>
16095 #else
16096 # include <assert.h>
16097 #endif
16098
16099 #undef getloadavg
16100
16101 /* Override any GCC internal prototype to avoid an error.
16102 Use char because int might match the return type of a GCC
16103 builtin and then its argument prototype would still apply. */
16104 #ifdef __cplusplus
16105 extern "C"
16106 #endif
16107 char getloadavg ();
16108 /* The GNU C library defines this for functions which it implements
16109 to always fail with ENOSYS. Some functions are actually named
16110 something starting with __ and the normal name is an alias. */
16111 #if defined __stub_getloadavg || defined __stub___getloadavg
16112 choke me
16113 #endif
16114
16115 int
16116 main ()
16117 {
16118 return getloadavg ();
16119 ;
16120 return 0;
16121 }
16122 _ACEOF
16123 rm -f conftest.$ac_objext conftest$ac_exeext
16124 if { (ac_try="$ac_link"
16125 case "(($ac_try" in
16126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16127 *) ac_try_echo=$ac_try;;
16128 esac
16129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16130 (eval "$ac_link") 2>conftest.er1
16131 ac_status=$?
16132 grep -v '^ *+' conftest.er1 >conftest.err
16133 rm -f conftest.er1
16134 cat conftest.err >&5
16135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136 (exit $ac_status); } && {
16137 test -z "$ac_c_werror_flag" ||
16138 test ! -s conftest.err
16139 } && test -s conftest$ac_exeext &&
16140 $as_test_x conftest$ac_exeext; then
16141 ac_cv_func_getloadavg=yes
16142 else
16143 echo "$as_me: failed program was:" >&5
16144 sed 's/^/| /' conftest.$ac_ext >&5
16145
16146 ac_cv_func_getloadavg=no
16147 fi
16148
16149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16150 conftest$ac_exeext conftest.$ac_ext
16151 fi
16152 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16153 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16154 if test $ac_cv_func_getloadavg = yes; then
16155 exit 0
16156 else
16157 exit 1
16158 fi
16159 ) && ac_have_func=yes
16160
16161 # On HPUX9, an unprivileged user can get load averages through this function.
16162
16163 for ac_func in pstat_getdynamic
16164 do
16165 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16166 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16167 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16168 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16169 echo $ECHO_N "(cached) $ECHO_C" >&6
16170 else
16171 cat >conftest.$ac_ext <<_ACEOF
16172 /* confdefs.h. */
16173 _ACEOF
16174 cat confdefs.h >>conftest.$ac_ext
16175 cat >>conftest.$ac_ext <<_ACEOF
16176 /* end confdefs.h. */
16177 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16179 #define $ac_func innocuous_$ac_func
16180
16181 /* System header to define __stub macros and hopefully few prototypes,
16182 which can conflict with char $ac_func (); below.
16183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16184 <limits.h> exists even on freestanding compilers. */
16185
16186 #ifdef __STDC__
16187 # include <limits.h>
16188 #else
16189 # include <assert.h>
16190 #endif
16191
16192 #undef $ac_func
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 $ac_func ();
16201 /* The GNU C library defines this for functions which it implements
16202 to always fail with ENOSYS. Some functions are actually named
16203 something starting with __ and the normal name is an alias. */
16204 #if defined __stub_$ac_func || defined __stub___$ac_func
16205 choke me
16206 #endif
16207
16208 int
16209 main ()
16210 {
16211 return $ac_func ();
16212 ;
16213 return 0;
16214 }
16215 _ACEOF
16216 rm -f conftest.$ac_objext conftest$ac_exeext
16217 if { (ac_try="$ac_link"
16218 case "(($ac_try" in
16219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16220 *) ac_try_echo=$ac_try;;
16221 esac
16222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16223 (eval "$ac_link") 2>conftest.er1
16224 ac_status=$?
16225 grep -v '^ *+' conftest.er1 >conftest.err
16226 rm -f conftest.er1
16227 cat conftest.err >&5
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); } && {
16230 test -z "$ac_c_werror_flag" ||
16231 test ! -s conftest.err
16232 } && test -s conftest$ac_exeext &&
16233 $as_test_x conftest$ac_exeext; then
16234 eval "$as_ac_var=yes"
16235 else
16236 echo "$as_me: failed program was:" >&5
16237 sed 's/^/| /' conftest.$ac_ext >&5
16238
16239 eval "$as_ac_var=no"
16240 fi
16241
16242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16243 conftest$ac_exeext conftest.$ac_ext
16244 fi
16245 ac_res=`eval echo '${'$as_ac_var'}'`
16246 { echo "$as_me:$LINENO: result: $ac_res" >&5
16247 echo "${ECHO_T}$ac_res" >&6; }
16248 if test `eval echo '${'$as_ac_var'}'` = yes; then
16249 cat >>confdefs.h <<_ACEOF
16250 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16251 _ACEOF
16252
16253 fi
16254 done
16255
16256
16257 # Solaris has libkstat which does not require root.
16258
16259 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16260 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16261 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16262 echo $ECHO_N "(cached) $ECHO_C" >&6
16263 else
16264 ac_check_lib_save_LIBS=$LIBS
16265 LIBS="-lkstat $LIBS"
16266 cat >conftest.$ac_ext <<_ACEOF
16267 /* confdefs.h. */
16268 _ACEOF
16269 cat confdefs.h >>conftest.$ac_ext
16270 cat >>conftest.$ac_ext <<_ACEOF
16271 /* end confdefs.h. */
16272
16273 /* Override any GCC internal prototype to avoid an error.
16274 Use char because int might match the return type of a GCC
16275 builtin and then its argument prototype would still apply. */
16276 #ifdef __cplusplus
16277 extern "C"
16278 #endif
16279 char kstat_open ();
16280 int
16281 main ()
16282 {
16283 return kstat_open ();
16284 ;
16285 return 0;
16286 }
16287 _ACEOF
16288 rm -f conftest.$ac_objext conftest$ac_exeext
16289 if { (ac_try="$ac_link"
16290 case "(($ac_try" in
16291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16292 *) ac_try_echo=$ac_try;;
16293 esac
16294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16295 (eval "$ac_link") 2>conftest.er1
16296 ac_status=$?
16297 grep -v '^ *+' conftest.er1 >conftest.err
16298 rm -f conftest.er1
16299 cat conftest.err >&5
16300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301 (exit $ac_status); } && {
16302 test -z "$ac_c_werror_flag" ||
16303 test ! -s conftest.err
16304 } && test -s conftest$ac_exeext &&
16305 $as_test_x conftest$ac_exeext; then
16306 ac_cv_lib_kstat_kstat_open=yes
16307 else
16308 echo "$as_me: failed program was:" >&5
16309 sed 's/^/| /' conftest.$ac_ext >&5
16310
16311 ac_cv_lib_kstat_kstat_open=no
16312 fi
16313
16314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16315 conftest$ac_exeext conftest.$ac_ext
16316 LIBS=$ac_check_lib_save_LIBS
16317 fi
16318 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16319 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16320 if test $ac_cv_lib_kstat_kstat_open = yes; then
16321 cat >>confdefs.h <<_ACEOF
16322 #define HAVE_LIBKSTAT 1
16323 _ACEOF
16324
16325 LIBS="-lkstat $LIBS"
16326
16327 fi
16328
16329 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16330
16331 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16332 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16333 # to get the right answer into the cache.
16334 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16335 if test $ac_have_func = no; then
16336 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16337 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
16338 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16339 echo $ECHO_N "(cached) $ECHO_C" >&6
16340 else
16341 ac_check_lib_save_LIBS=$LIBS
16342 LIBS="-lelf $LIBS"
16343 cat >conftest.$ac_ext <<_ACEOF
16344 /* confdefs.h. */
16345 _ACEOF
16346 cat confdefs.h >>conftest.$ac_ext
16347 cat >>conftest.$ac_ext <<_ACEOF
16348 /* end confdefs.h. */
16349
16350 /* Override any GCC internal prototype to avoid an error.
16351 Use char because int might match the return type of a GCC
16352 builtin and then its argument prototype would still apply. */
16353 #ifdef __cplusplus
16354 extern "C"
16355 #endif
16356 char elf_begin ();
16357 int
16358 main ()
16359 {
16360 return elf_begin ();
16361 ;
16362 return 0;
16363 }
16364 _ACEOF
16365 rm -f conftest.$ac_objext conftest$ac_exeext
16366 if { (ac_try="$ac_link"
16367 case "(($ac_try" in
16368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16369 *) ac_try_echo=$ac_try;;
16370 esac
16371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16372 (eval "$ac_link") 2>conftest.er1
16373 ac_status=$?
16374 grep -v '^ *+' conftest.er1 >conftest.err
16375 rm -f conftest.er1
16376 cat conftest.err >&5
16377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378 (exit $ac_status); } && {
16379 test -z "$ac_c_werror_flag" ||
16380 test ! -s conftest.err
16381 } && test -s conftest$ac_exeext &&
16382 $as_test_x conftest$ac_exeext; then
16383 ac_cv_lib_elf_elf_begin=yes
16384 else
16385 echo "$as_me: failed program was:" >&5
16386 sed 's/^/| /' conftest.$ac_ext >&5
16387
16388 ac_cv_lib_elf_elf_begin=no
16389 fi
16390
16391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16392 conftest$ac_exeext conftest.$ac_ext
16393 LIBS=$ac_check_lib_save_LIBS
16394 fi
16395 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
16396 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16397 if test $ac_cv_lib_elf_elf_begin = yes; then
16398 LIBS="-lelf $LIBS"
16399 fi
16400
16401 fi
16402 if test $ac_have_func = no; then
16403 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
16404 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
16405 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16406 echo $ECHO_N "(cached) $ECHO_C" >&6
16407 else
16408 ac_check_lib_save_LIBS=$LIBS
16409 LIBS="-lkvm $LIBS"
16410 cat >conftest.$ac_ext <<_ACEOF
16411 /* confdefs.h. */
16412 _ACEOF
16413 cat confdefs.h >>conftest.$ac_ext
16414 cat >>conftest.$ac_ext <<_ACEOF
16415 /* end confdefs.h. */
16416
16417 /* Override any GCC internal prototype to avoid an error.
16418 Use char because int might match the return type of a GCC
16419 builtin and then its argument prototype would still apply. */
16420 #ifdef __cplusplus
16421 extern "C"
16422 #endif
16423 char kvm_open ();
16424 int
16425 main ()
16426 {
16427 return kvm_open ();
16428 ;
16429 return 0;
16430 }
16431 _ACEOF
16432 rm -f conftest.$ac_objext conftest$ac_exeext
16433 if { (ac_try="$ac_link"
16434 case "(($ac_try" in
16435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16436 *) ac_try_echo=$ac_try;;
16437 esac
16438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16439 (eval "$ac_link") 2>conftest.er1
16440 ac_status=$?
16441 grep -v '^ *+' conftest.er1 >conftest.err
16442 rm -f conftest.er1
16443 cat conftest.err >&5
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); } && {
16446 test -z "$ac_c_werror_flag" ||
16447 test ! -s conftest.err
16448 } && test -s conftest$ac_exeext &&
16449 $as_test_x conftest$ac_exeext; then
16450 ac_cv_lib_kvm_kvm_open=yes
16451 else
16452 echo "$as_me: failed program was:" >&5
16453 sed 's/^/| /' conftest.$ac_ext >&5
16454
16455 ac_cv_lib_kvm_kvm_open=no
16456 fi
16457
16458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16459 conftest$ac_exeext conftest.$ac_ext
16460 LIBS=$ac_check_lib_save_LIBS
16461 fi
16462 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
16463 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16464 if test $ac_cv_lib_kvm_kvm_open = yes; then
16465 LIBS="-lkvm $LIBS"
16466 fi
16467
16468 # Check for the 4.4BSD definition of getloadavg.
16469 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
16470 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
16471 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16472 echo $ECHO_N "(cached) $ECHO_C" >&6
16473 else
16474 ac_check_lib_save_LIBS=$LIBS
16475 LIBS="-lutil $LIBS"
16476 cat >conftest.$ac_ext <<_ACEOF
16477 /* confdefs.h. */
16478 _ACEOF
16479 cat confdefs.h >>conftest.$ac_ext
16480 cat >>conftest.$ac_ext <<_ACEOF
16481 /* end confdefs.h. */
16482
16483 /* Override any GCC internal prototype to avoid an error.
16484 Use char because int might match the return type of a GCC
16485 builtin and then its argument prototype would still apply. */
16486 #ifdef __cplusplus
16487 extern "C"
16488 #endif
16489 char getloadavg ();
16490 int
16491 main ()
16492 {
16493 return getloadavg ();
16494 ;
16495 return 0;
16496 }
16497 _ACEOF
16498 rm -f conftest.$ac_objext conftest$ac_exeext
16499 if { (ac_try="$ac_link"
16500 case "(($ac_try" in
16501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16502 *) ac_try_echo=$ac_try;;
16503 esac
16504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16505 (eval "$ac_link") 2>conftest.er1
16506 ac_status=$?
16507 grep -v '^ *+' conftest.er1 >conftest.err
16508 rm -f conftest.er1
16509 cat conftest.err >&5
16510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511 (exit $ac_status); } && {
16512 test -z "$ac_c_werror_flag" ||
16513 test ! -s conftest.err
16514 } && test -s conftest$ac_exeext &&
16515 $as_test_x conftest$ac_exeext; then
16516 ac_cv_lib_util_getloadavg=yes
16517 else
16518 echo "$as_me: failed program was:" >&5
16519 sed 's/^/| /' conftest.$ac_ext >&5
16520
16521 ac_cv_lib_util_getloadavg=no
16522 fi
16523
16524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16525 conftest$ac_exeext conftest.$ac_ext
16526 LIBS=$ac_check_lib_save_LIBS
16527 fi
16528 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
16529 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16530 if test $ac_cv_lib_util_getloadavg = yes; then
16531 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16532 fi
16533
16534 fi
16535
16536 if test $ac_have_func = no; then
16537 # There is a commonly available library for RS/6000 AIX.
16538 # Since it is not a standard part of AIX, it might be installed locally.
16539 ac_getloadavg_LIBS=$LIBS
16540 LIBS="-L/usr/local/lib $LIBS"
16541 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
16542 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
16543 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16544 echo $ECHO_N "(cached) $ECHO_C" >&6
16545 else
16546 ac_check_lib_save_LIBS=$LIBS
16547 LIBS="-lgetloadavg $LIBS"
16548 cat >conftest.$ac_ext <<_ACEOF
16549 /* confdefs.h. */
16550 _ACEOF
16551 cat confdefs.h >>conftest.$ac_ext
16552 cat >>conftest.$ac_ext <<_ACEOF
16553 /* end confdefs.h. */
16554
16555 /* Override any GCC internal prototype to avoid an error.
16556 Use char because int might match the return type of a GCC
16557 builtin and then its argument prototype would still apply. */
16558 #ifdef __cplusplus
16559 extern "C"
16560 #endif
16561 char getloadavg ();
16562 int
16563 main ()
16564 {
16565 return getloadavg ();
16566 ;
16567 return 0;
16568 }
16569 _ACEOF
16570 rm -f conftest.$ac_objext conftest$ac_exeext
16571 if { (ac_try="$ac_link"
16572 case "(($ac_try" in
16573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16574 *) ac_try_echo=$ac_try;;
16575 esac
16576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16577 (eval "$ac_link") 2>conftest.er1
16578 ac_status=$?
16579 grep -v '^ *+' conftest.er1 >conftest.err
16580 rm -f conftest.er1
16581 cat conftest.err >&5
16582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583 (exit $ac_status); } && {
16584 test -z "$ac_c_werror_flag" ||
16585 test ! -s conftest.err
16586 } && test -s conftest$ac_exeext &&
16587 $as_test_x conftest$ac_exeext; then
16588 ac_cv_lib_getloadavg_getloadavg=yes
16589 else
16590 echo "$as_me: failed program was:" >&5
16591 sed 's/^/| /' conftest.$ac_ext >&5
16592
16593 ac_cv_lib_getloadavg_getloadavg=no
16594 fi
16595
16596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16597 conftest$ac_exeext conftest.$ac_ext
16598 LIBS=$ac_check_lib_save_LIBS
16599 fi
16600 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
16601 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16602 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16603 LIBS="-lgetloadavg $LIBS"
16604 else
16605 LIBS=$ac_getloadavg_LIBS
16606 fi
16607
16608 fi
16609
16610 # Make sure it is really in the library, if we think we found it,
16611 # otherwise set up the replacement function.
16612
16613 for ac_func in getloadavg
16614 do
16615 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16616 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16618 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16619 echo $ECHO_N "(cached) $ECHO_C" >&6
16620 else
16621 cat >conftest.$ac_ext <<_ACEOF
16622 /* confdefs.h. */
16623 _ACEOF
16624 cat confdefs.h >>conftest.$ac_ext
16625 cat >>conftest.$ac_ext <<_ACEOF
16626 /* end confdefs.h. */
16627 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16629 #define $ac_func innocuous_$ac_func
16630
16631 /* System header to define __stub macros and hopefully few prototypes,
16632 which can conflict with char $ac_func (); below.
16633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16634 <limits.h> exists even on freestanding compilers. */
16635
16636 #ifdef __STDC__
16637 # include <limits.h>
16638 #else
16639 # include <assert.h>
16640 #endif
16641
16642 #undef $ac_func
16643
16644 /* Override any GCC internal prototype to avoid an error.
16645 Use char because int might match the return type of a GCC
16646 builtin and then its argument prototype would still apply. */
16647 #ifdef __cplusplus
16648 extern "C"
16649 #endif
16650 char $ac_func ();
16651 /* The GNU C library defines this for functions which it implements
16652 to always fail with ENOSYS. Some functions are actually named
16653 something starting with __ and the normal name is an alias. */
16654 #if defined __stub_$ac_func || defined __stub___$ac_func
16655 choke me
16656 #endif
16657
16658 int
16659 main ()
16660 {
16661 return $ac_func ();
16662 ;
16663 return 0;
16664 }
16665 _ACEOF
16666 rm -f conftest.$ac_objext conftest$ac_exeext
16667 if { (ac_try="$ac_link"
16668 case "(($ac_try" in
16669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16670 *) ac_try_echo=$ac_try;;
16671 esac
16672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16673 (eval "$ac_link") 2>conftest.er1
16674 ac_status=$?
16675 grep -v '^ *+' conftest.er1 >conftest.err
16676 rm -f conftest.er1
16677 cat conftest.err >&5
16678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679 (exit $ac_status); } && {
16680 test -z "$ac_c_werror_flag" ||
16681 test ! -s conftest.err
16682 } && test -s conftest$ac_exeext &&
16683 $as_test_x conftest$ac_exeext; then
16684 eval "$as_ac_var=yes"
16685 else
16686 echo "$as_me: failed program was:" >&5
16687 sed 's/^/| /' conftest.$ac_ext >&5
16688
16689 eval "$as_ac_var=no"
16690 fi
16691
16692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16693 conftest$ac_exeext conftest.$ac_ext
16694 fi
16695 ac_res=`eval echo '${'$as_ac_var'}'`
16696 { echo "$as_me:$LINENO: result: $ac_res" >&5
16697 echo "${ECHO_T}$ac_res" >&6; }
16698 if test `eval echo '${'$as_ac_var'}'` = yes; then
16699 cat >>confdefs.h <<_ACEOF
16700 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16701 _ACEOF
16702
16703 else
16704 case " $LIBOBJS " in
16705 *" getloadavg.$ac_objext "* ) ;;
16706 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
16707 ;;
16708 esac
16709
16710
16711 cat >>confdefs.h <<\_ACEOF
16712 #define C_GETLOADAVG 1
16713 _ACEOF
16714
16715 # Figure out what our getloadavg.c needs.
16716 ac_have_func=no
16717 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16718 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16719 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
16720 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16721 echo $ECHO_N "(cached) $ECHO_C" >&6
16722 fi
16723 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16724 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16725 else
16726 # Is the header compilable?
16727 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
16728 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
16729 cat >conftest.$ac_ext <<_ACEOF
16730 /* confdefs.h. */
16731 _ACEOF
16732 cat confdefs.h >>conftest.$ac_ext
16733 cat >>conftest.$ac_ext <<_ACEOF
16734 /* end confdefs.h. */
16735 $ac_includes_default
16736 #include <sys/dg_sys_info.h>
16737 _ACEOF
16738 rm -f conftest.$ac_objext
16739 if { (ac_try="$ac_compile"
16740 case "(($ac_try" in
16741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16742 *) ac_try_echo=$ac_try;;
16743 esac
16744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16745 (eval "$ac_compile") 2>conftest.er1
16746 ac_status=$?
16747 grep -v '^ *+' conftest.er1 >conftest.err
16748 rm -f conftest.er1
16749 cat conftest.err >&5
16750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751 (exit $ac_status); } && {
16752 test -z "$ac_c_werror_flag" ||
16753 test ! -s conftest.err
16754 } && test -s conftest.$ac_objext; then
16755 ac_header_compiler=yes
16756 else
16757 echo "$as_me: failed program was:" >&5
16758 sed 's/^/| /' conftest.$ac_ext >&5
16759
16760 ac_header_compiler=no
16761 fi
16762
16763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16764 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16765 echo "${ECHO_T}$ac_header_compiler" >&6; }
16766
16767 # Is the header present?
16768 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
16769 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
16770 cat >conftest.$ac_ext <<_ACEOF
16771 /* confdefs.h. */
16772 _ACEOF
16773 cat confdefs.h >>conftest.$ac_ext
16774 cat >>conftest.$ac_ext <<_ACEOF
16775 /* end confdefs.h. */
16776 #include <sys/dg_sys_info.h>
16777 _ACEOF
16778 if { (ac_try="$ac_cpp conftest.$ac_ext"
16779 case "(($ac_try" in
16780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16781 *) ac_try_echo=$ac_try;;
16782 esac
16783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16785 ac_status=$?
16786 grep -v '^ *+' conftest.er1 >conftest.err
16787 rm -f conftest.er1
16788 cat conftest.err >&5
16789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); } >/dev/null && {
16791 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16792 test ! -s conftest.err
16793 }; then
16794 ac_header_preproc=yes
16795 else
16796 echo "$as_me: failed program was:" >&5
16797 sed 's/^/| /' conftest.$ac_ext >&5
16798
16799 ac_header_preproc=no
16800 fi
16801
16802 rm -f conftest.err conftest.$ac_ext
16803 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16804 echo "${ECHO_T}$ac_header_preproc" >&6; }
16805
16806 # So? What about this header?
16807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16808 yes:no: )
16809 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
16810 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16811 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
16812 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
16813 ac_header_preproc=yes
16814 ;;
16815 no:yes:* )
16816 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
16817 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
16818 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
16819 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
16820 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
16821 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
16822 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
16823 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
16824 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
16825 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
16826 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
16827 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
16828
16829 ;;
16830 esac
16831 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16832 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
16833 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16834 echo $ECHO_N "(cached) $ECHO_C" >&6
16835 else
16836 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16837 fi
16838 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16839 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16840
16841 fi
16842 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16843 ac_have_func=yes
16844
16845 cat >>confdefs.h <<\_ACEOF
16846 #define DGUX 1
16847 _ACEOF
16848
16849
16850 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16851 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
16852 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16853 echo $ECHO_N "(cached) $ECHO_C" >&6
16854 else
16855 ac_check_lib_save_LIBS=$LIBS
16856 LIBS="-ldgc $LIBS"
16857 cat >conftest.$ac_ext <<_ACEOF
16858 /* confdefs.h. */
16859 _ACEOF
16860 cat confdefs.h >>conftest.$ac_ext
16861 cat >>conftest.$ac_ext <<_ACEOF
16862 /* end confdefs.h. */
16863
16864 /* Override any GCC internal prototype to avoid an error.
16865 Use char because int might match the return type of a GCC
16866 builtin and then its argument prototype would still apply. */
16867 #ifdef __cplusplus
16868 extern "C"
16869 #endif
16870 char dg_sys_info ();
16871 int
16872 main ()
16873 {
16874 return dg_sys_info ();
16875 ;
16876 return 0;
16877 }
16878 _ACEOF
16879 rm -f conftest.$ac_objext conftest$ac_exeext
16880 if { (ac_try="$ac_link"
16881 case "(($ac_try" in
16882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16883 *) ac_try_echo=$ac_try;;
16884 esac
16885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16886 (eval "$ac_link") 2>conftest.er1
16887 ac_status=$?
16888 grep -v '^ *+' conftest.er1 >conftest.err
16889 rm -f conftest.er1
16890 cat conftest.err >&5
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); } && {
16893 test -z "$ac_c_werror_flag" ||
16894 test ! -s conftest.err
16895 } && test -s conftest$ac_exeext &&
16896 $as_test_x conftest$ac_exeext; then
16897 ac_cv_lib_dgc_dg_sys_info=yes
16898 else
16899 echo "$as_me: failed program was:" >&5
16900 sed 's/^/| /' conftest.$ac_ext >&5
16901
16902 ac_cv_lib_dgc_dg_sys_info=no
16903 fi
16904
16905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16906 conftest$ac_exeext conftest.$ac_ext
16907 LIBS=$ac_check_lib_save_LIBS
16908 fi
16909 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16910 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
16911 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16912 cat >>confdefs.h <<_ACEOF
16913 #define HAVE_LIBDGC 1
16914 _ACEOF
16915
16916 LIBS="-ldgc $LIBS"
16917
16918 fi
16919
16920 fi
16921
16922
16923
16924 if test "${ac_cv_header_locale_h+set}" = set; then
16925 { echo "$as_me:$LINENO: checking for locale.h" >&5
16926 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
16927 if test "${ac_cv_header_locale_h+set}" = set; then
16928 echo $ECHO_N "(cached) $ECHO_C" >&6
16929 fi
16930 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16931 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16932 else
16933 # Is the header compilable?
16934 { echo "$as_me:$LINENO: checking locale.h usability" >&5
16935 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
16936 cat >conftest.$ac_ext <<_ACEOF
16937 /* confdefs.h. */
16938 _ACEOF
16939 cat confdefs.h >>conftest.$ac_ext
16940 cat >>conftest.$ac_ext <<_ACEOF
16941 /* end confdefs.h. */
16942 $ac_includes_default
16943 #include <locale.h>
16944 _ACEOF
16945 rm -f conftest.$ac_objext
16946 if { (ac_try="$ac_compile"
16947 case "(($ac_try" in
16948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16949 *) ac_try_echo=$ac_try;;
16950 esac
16951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16952 (eval "$ac_compile") 2>conftest.er1
16953 ac_status=$?
16954 grep -v '^ *+' conftest.er1 >conftest.err
16955 rm -f conftest.er1
16956 cat conftest.err >&5
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); } && {
16959 test -z "$ac_c_werror_flag" ||
16960 test ! -s conftest.err
16961 } && test -s conftest.$ac_objext; then
16962 ac_header_compiler=yes
16963 else
16964 echo "$as_me: failed program was:" >&5
16965 sed 's/^/| /' conftest.$ac_ext >&5
16966
16967 ac_header_compiler=no
16968 fi
16969
16970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16971 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16972 echo "${ECHO_T}$ac_header_compiler" >&6; }
16973
16974 # Is the header present?
16975 { echo "$as_me:$LINENO: checking locale.h presence" >&5
16976 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
16977 cat >conftest.$ac_ext <<_ACEOF
16978 /* confdefs.h. */
16979 _ACEOF
16980 cat confdefs.h >>conftest.$ac_ext
16981 cat >>conftest.$ac_ext <<_ACEOF
16982 /* end confdefs.h. */
16983 #include <locale.h>
16984 _ACEOF
16985 if { (ac_try="$ac_cpp conftest.$ac_ext"
16986 case "(($ac_try" in
16987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16988 *) ac_try_echo=$ac_try;;
16989 esac
16990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16992 ac_status=$?
16993 grep -v '^ *+' conftest.er1 >conftest.err
16994 rm -f conftest.er1
16995 cat conftest.err >&5
16996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997 (exit $ac_status); } >/dev/null && {
16998 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16999 test ! -s conftest.err
17000 }; then
17001 ac_header_preproc=yes
17002 else
17003 echo "$as_me: failed program was:" >&5
17004 sed 's/^/| /' conftest.$ac_ext >&5
17005
17006 ac_header_preproc=no
17007 fi
17008
17009 rm -f conftest.err conftest.$ac_ext
17010 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17011 echo "${ECHO_T}$ac_header_preproc" >&6; }
17012
17013 # So? What about this header?
17014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17015 yes:no: )
17016 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17017 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17018 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17019 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17020 ac_header_preproc=yes
17021 ;;
17022 no:yes:* )
17023 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17024 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17025 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17026 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17027 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17028 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17029 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17030 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17031 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17032 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17033 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17034 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17035
17036 ;;
17037 esac
17038 { echo "$as_me:$LINENO: checking for locale.h" >&5
17039 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17040 if test "${ac_cv_header_locale_h+set}" = set; then
17041 echo $ECHO_N "(cached) $ECHO_C" >&6
17042 else
17043 ac_cv_header_locale_h=$ac_header_preproc
17044 fi
17045 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17046 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17047
17048 fi
17049
17050
17051
17052 for ac_func in setlocale
17053 do
17054 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17055 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17056 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17057 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17058 echo $ECHO_N "(cached) $ECHO_C" >&6
17059 else
17060 cat >conftest.$ac_ext <<_ACEOF
17061 /* confdefs.h. */
17062 _ACEOF
17063 cat confdefs.h >>conftest.$ac_ext
17064 cat >>conftest.$ac_ext <<_ACEOF
17065 /* end confdefs.h. */
17066 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17068 #define $ac_func innocuous_$ac_func
17069
17070 /* System header to define __stub macros and hopefully few prototypes,
17071 which can conflict with char $ac_func (); below.
17072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17073 <limits.h> exists even on freestanding compilers. */
17074
17075 #ifdef __STDC__
17076 # include <limits.h>
17077 #else
17078 # include <assert.h>
17079 #endif
17080
17081 #undef $ac_func
17082
17083 /* Override any GCC internal prototype to avoid an error.
17084 Use char because int might match the return type of a GCC
17085 builtin and then its argument prototype would still apply. */
17086 #ifdef __cplusplus
17087 extern "C"
17088 #endif
17089 char $ac_func ();
17090 /* The GNU C library defines this for functions which it implements
17091 to always fail with ENOSYS. Some functions are actually named
17092 something starting with __ and the normal name is an alias. */
17093 #if defined __stub_$ac_func || defined __stub___$ac_func
17094 choke me
17095 #endif
17096
17097 int
17098 main ()
17099 {
17100 return $ac_func ();
17101 ;
17102 return 0;
17103 }
17104 _ACEOF
17105 rm -f conftest.$ac_objext conftest$ac_exeext
17106 if { (ac_try="$ac_link"
17107 case "(($ac_try" in
17108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17109 *) ac_try_echo=$ac_try;;
17110 esac
17111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17112 (eval "$ac_link") 2>conftest.er1
17113 ac_status=$?
17114 grep -v '^ *+' conftest.er1 >conftest.err
17115 rm -f conftest.er1
17116 cat conftest.err >&5
17117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118 (exit $ac_status); } && {
17119 test -z "$ac_c_werror_flag" ||
17120 test ! -s conftest.err
17121 } && test -s conftest$ac_exeext &&
17122 $as_test_x conftest$ac_exeext; then
17123 eval "$as_ac_var=yes"
17124 else
17125 echo "$as_me: failed program was:" >&5
17126 sed 's/^/| /' conftest.$ac_ext >&5
17127
17128 eval "$as_ac_var=no"
17129 fi
17130
17131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17132 conftest$ac_exeext conftest.$ac_ext
17133 fi
17134 ac_res=`eval echo '${'$as_ac_var'}'`
17135 { echo "$as_me:$LINENO: result: $ac_res" >&5
17136 echo "${ECHO_T}$ac_res" >&6; }
17137 if test `eval echo '${'$as_ac_var'}'` = yes; then
17138 cat >>confdefs.h <<_ACEOF
17139 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17140 _ACEOF
17141
17142 fi
17143 done
17144
17145
17146 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17147 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17148 # Irix 4.0.5F has the header but not the library.
17149 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17150 ac_have_func=yes
17151
17152 cat >>confdefs.h <<\_ACEOF
17153 #define SVR4 1
17154 _ACEOF
17155
17156 fi
17157
17158 if test $ac_have_func = no; then
17159 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17160 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17161 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17162 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17163 echo $ECHO_N "(cached) $ECHO_C" >&6
17164 fi
17165 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17166 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17167 else
17168 # Is the header compilable?
17169 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17170 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17171 cat >conftest.$ac_ext <<_ACEOF
17172 /* confdefs.h. */
17173 _ACEOF
17174 cat confdefs.h >>conftest.$ac_ext
17175 cat >>conftest.$ac_ext <<_ACEOF
17176 /* end confdefs.h. */
17177 $ac_includes_default
17178 #include <inq_stats/cpustats.h>
17179 _ACEOF
17180 rm -f conftest.$ac_objext
17181 if { (ac_try="$ac_compile"
17182 case "(($ac_try" in
17183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17184 *) ac_try_echo=$ac_try;;
17185 esac
17186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17187 (eval "$ac_compile") 2>conftest.er1
17188 ac_status=$?
17189 grep -v '^ *+' conftest.er1 >conftest.err
17190 rm -f conftest.er1
17191 cat conftest.err >&5
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); } && {
17194 test -z "$ac_c_werror_flag" ||
17195 test ! -s conftest.err
17196 } && test -s conftest.$ac_objext; then
17197 ac_header_compiler=yes
17198 else
17199 echo "$as_me: failed program was:" >&5
17200 sed 's/^/| /' conftest.$ac_ext >&5
17201
17202 ac_header_compiler=no
17203 fi
17204
17205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17206 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17207 echo "${ECHO_T}$ac_header_compiler" >&6; }
17208
17209 # Is the header present?
17210 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17211 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17212 cat >conftest.$ac_ext <<_ACEOF
17213 /* confdefs.h. */
17214 _ACEOF
17215 cat confdefs.h >>conftest.$ac_ext
17216 cat >>conftest.$ac_ext <<_ACEOF
17217 /* end confdefs.h. */
17218 #include <inq_stats/cpustats.h>
17219 _ACEOF
17220 if { (ac_try="$ac_cpp conftest.$ac_ext"
17221 case "(($ac_try" in
17222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17223 *) ac_try_echo=$ac_try;;
17224 esac
17225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17226 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17227 ac_status=$?
17228 grep -v '^ *+' conftest.er1 >conftest.err
17229 rm -f conftest.er1
17230 cat conftest.err >&5
17231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232 (exit $ac_status); } >/dev/null && {
17233 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17234 test ! -s conftest.err
17235 }; then
17236 ac_header_preproc=yes
17237 else
17238 echo "$as_me: failed program was:" >&5
17239 sed 's/^/| /' conftest.$ac_ext >&5
17240
17241 ac_header_preproc=no
17242 fi
17243
17244 rm -f conftest.err conftest.$ac_ext
17245 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17246 echo "${ECHO_T}$ac_header_preproc" >&6; }
17247
17248 # So? What about this header?
17249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17250 yes:no: )
17251 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17252 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17253 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17254 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17255 ac_header_preproc=yes
17256 ;;
17257 no:yes:* )
17258 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17259 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17260 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17261 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17262 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17263 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17264 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17265 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17266 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17267 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17268 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17269 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17270
17271 ;;
17272 esac
17273 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17274 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17275 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17276 echo $ECHO_N "(cached) $ECHO_C" >&6
17277 else
17278 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17279 fi
17280 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17281 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17282
17283 fi
17284 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17285 ac_have_func=yes
17286
17287 cat >>confdefs.h <<\_ACEOF
17288 #define UMAX 1
17289 _ACEOF
17290
17291
17292 cat >>confdefs.h <<\_ACEOF
17293 #define UMAX4_3 1
17294 _ACEOF
17295
17296 fi
17297
17298
17299 fi
17300
17301 if test $ac_have_func = no; then
17302 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17303 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17304 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17305 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17306 echo $ECHO_N "(cached) $ECHO_C" >&6
17307 fi
17308 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17309 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17310 else
17311 # Is the header compilable?
17312 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17313 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
17314 cat >conftest.$ac_ext <<_ACEOF
17315 /* confdefs.h. */
17316 _ACEOF
17317 cat confdefs.h >>conftest.$ac_ext
17318 cat >>conftest.$ac_ext <<_ACEOF
17319 /* end confdefs.h. */
17320 $ac_includes_default
17321 #include <sys/cpustats.h>
17322 _ACEOF
17323 rm -f conftest.$ac_objext
17324 if { (ac_try="$ac_compile"
17325 case "(($ac_try" in
17326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17327 *) ac_try_echo=$ac_try;;
17328 esac
17329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17330 (eval "$ac_compile") 2>conftest.er1
17331 ac_status=$?
17332 grep -v '^ *+' conftest.er1 >conftest.err
17333 rm -f conftest.er1
17334 cat conftest.err >&5
17335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 (exit $ac_status); } && {
17337 test -z "$ac_c_werror_flag" ||
17338 test ! -s conftest.err
17339 } && test -s conftest.$ac_objext; then
17340 ac_header_compiler=yes
17341 else
17342 echo "$as_me: failed program was:" >&5
17343 sed 's/^/| /' conftest.$ac_ext >&5
17344
17345 ac_header_compiler=no
17346 fi
17347
17348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17349 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17350 echo "${ECHO_T}$ac_header_compiler" >&6; }
17351
17352 # Is the header present?
17353 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
17354 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
17355 cat >conftest.$ac_ext <<_ACEOF
17356 /* confdefs.h. */
17357 _ACEOF
17358 cat confdefs.h >>conftest.$ac_ext
17359 cat >>conftest.$ac_ext <<_ACEOF
17360 /* end confdefs.h. */
17361 #include <sys/cpustats.h>
17362 _ACEOF
17363 if { (ac_try="$ac_cpp conftest.$ac_ext"
17364 case "(($ac_try" in
17365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17366 *) ac_try_echo=$ac_try;;
17367 esac
17368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17369 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17370 ac_status=$?
17371 grep -v '^ *+' conftest.er1 >conftest.err
17372 rm -f conftest.er1
17373 cat conftest.err >&5
17374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375 (exit $ac_status); } >/dev/null && {
17376 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17377 test ! -s conftest.err
17378 }; then
17379 ac_header_preproc=yes
17380 else
17381 echo "$as_me: failed program was:" >&5
17382 sed 's/^/| /' conftest.$ac_ext >&5
17383
17384 ac_header_preproc=no
17385 fi
17386
17387 rm -f conftest.err conftest.$ac_ext
17388 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17389 echo "${ECHO_T}$ac_header_preproc" >&6; }
17390
17391 # So? What about this header?
17392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17393 yes:no: )
17394 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17395 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17396 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
17397 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
17398 ac_header_preproc=yes
17399 ;;
17400 no:yes:* )
17401 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
17402 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
17403 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
17404 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
17405 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
17406 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
17407 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17408 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17409 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
17410 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
17411 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
17412 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
17413
17414 ;;
17415 esac
17416 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17417 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17418 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17419 echo $ECHO_N "(cached) $ECHO_C" >&6
17420 else
17421 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17422 fi
17423 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17424 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17425
17426 fi
17427 if test $ac_cv_header_sys_cpustats_h = yes; then
17428 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17429 #define UMAX 1
17430 _ACEOF
17431
17432 fi
17433
17434
17435 fi
17436
17437 if test $ac_have_func = no; then
17438
17439 for ac_header in mach/mach.h
17440 do
17441 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17443 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17446 echo $ECHO_N "(cached) $ECHO_C" >&6
17447 fi
17448 ac_res=`eval echo '${'$as_ac_Header'}'`
17449 { echo "$as_me:$LINENO: result: $ac_res" >&5
17450 echo "${ECHO_T}$ac_res" >&6; }
17451 else
17452 # Is the header compilable?
17453 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17454 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17455 cat >conftest.$ac_ext <<_ACEOF
17456 /* confdefs.h. */
17457 _ACEOF
17458 cat confdefs.h >>conftest.$ac_ext
17459 cat >>conftest.$ac_ext <<_ACEOF
17460 /* end confdefs.h. */
17461 $ac_includes_default
17462 #include <$ac_header>
17463 _ACEOF
17464 rm -f conftest.$ac_objext
17465 if { (ac_try="$ac_compile"
17466 case "(($ac_try" in
17467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17468 *) ac_try_echo=$ac_try;;
17469 esac
17470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17471 (eval "$ac_compile") 2>conftest.er1
17472 ac_status=$?
17473 grep -v '^ *+' conftest.er1 >conftest.err
17474 rm -f conftest.er1
17475 cat conftest.err >&5
17476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477 (exit $ac_status); } && {
17478 test -z "$ac_c_werror_flag" ||
17479 test ! -s conftest.err
17480 } && test -s conftest.$ac_objext; then
17481 ac_header_compiler=yes
17482 else
17483 echo "$as_me: failed program was:" >&5
17484 sed 's/^/| /' conftest.$ac_ext >&5
17485
17486 ac_header_compiler=no
17487 fi
17488
17489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17490 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17491 echo "${ECHO_T}$ac_header_compiler" >&6; }
17492
17493 # Is the header present?
17494 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17495 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17496 cat >conftest.$ac_ext <<_ACEOF
17497 /* confdefs.h. */
17498 _ACEOF
17499 cat confdefs.h >>conftest.$ac_ext
17500 cat >>conftest.$ac_ext <<_ACEOF
17501 /* end confdefs.h. */
17502 #include <$ac_header>
17503 _ACEOF
17504 if { (ac_try="$ac_cpp conftest.$ac_ext"
17505 case "(($ac_try" in
17506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17507 *) ac_try_echo=$ac_try;;
17508 esac
17509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17511 ac_status=$?
17512 grep -v '^ *+' conftest.er1 >conftest.err
17513 rm -f conftest.er1
17514 cat conftest.err >&5
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); } >/dev/null && {
17517 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17518 test ! -s conftest.err
17519 }; then
17520 ac_header_preproc=yes
17521 else
17522 echo "$as_me: failed program was:" >&5
17523 sed 's/^/| /' conftest.$ac_ext >&5
17524
17525 ac_header_preproc=no
17526 fi
17527
17528 rm -f conftest.err conftest.$ac_ext
17529 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17530 echo "${ECHO_T}$ac_header_preproc" >&6; }
17531
17532 # So? What about this header?
17533 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17534 yes:no: )
17535 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17536 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17537 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17538 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17539 ac_header_preproc=yes
17540 ;;
17541 no:yes:* )
17542 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17543 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17544 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17545 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17546 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17547 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17548 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17549 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17551 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17552 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17553 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17554
17555 ;;
17556 esac
17557 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17560 echo $ECHO_N "(cached) $ECHO_C" >&6
17561 else
17562 eval "$as_ac_Header=\$ac_header_preproc"
17563 fi
17564 ac_res=`eval echo '${'$as_ac_Header'}'`
17565 { echo "$as_me:$LINENO: result: $ac_res" >&5
17566 echo "${ECHO_T}$ac_res" >&6; }
17567
17568 fi
17569 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17570 cat >>confdefs.h <<_ACEOF
17571 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17572 _ACEOF
17573
17574 fi
17575
17576 done
17577
17578 fi
17579
17580
17581 for ac_header in nlist.h
17582 do
17583 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17585 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17588 echo $ECHO_N "(cached) $ECHO_C" >&6
17589 fi
17590 ac_res=`eval echo '${'$as_ac_Header'}'`
17591 { echo "$as_me:$LINENO: result: $ac_res" >&5
17592 echo "${ECHO_T}$ac_res" >&6; }
17593 else
17594 # Is the header compilable?
17595 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17596 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17597 cat >conftest.$ac_ext <<_ACEOF
17598 /* confdefs.h. */
17599 _ACEOF
17600 cat confdefs.h >>conftest.$ac_ext
17601 cat >>conftest.$ac_ext <<_ACEOF
17602 /* end confdefs.h. */
17603 $ac_includes_default
17604 #include <$ac_header>
17605 _ACEOF
17606 rm -f conftest.$ac_objext
17607 if { (ac_try="$ac_compile"
17608 case "(($ac_try" in
17609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17610 *) ac_try_echo=$ac_try;;
17611 esac
17612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17613 (eval "$ac_compile") 2>conftest.er1
17614 ac_status=$?
17615 grep -v '^ *+' conftest.er1 >conftest.err
17616 rm -f conftest.er1
17617 cat conftest.err >&5
17618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619 (exit $ac_status); } && {
17620 test -z "$ac_c_werror_flag" ||
17621 test ! -s conftest.err
17622 } && test -s conftest.$ac_objext; then
17623 ac_header_compiler=yes
17624 else
17625 echo "$as_me: failed program was:" >&5
17626 sed 's/^/| /' conftest.$ac_ext >&5
17627
17628 ac_header_compiler=no
17629 fi
17630
17631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17632 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17633 echo "${ECHO_T}$ac_header_compiler" >&6; }
17634
17635 # Is the header present?
17636 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17637 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17638 cat >conftest.$ac_ext <<_ACEOF
17639 /* confdefs.h. */
17640 _ACEOF
17641 cat confdefs.h >>conftest.$ac_ext
17642 cat >>conftest.$ac_ext <<_ACEOF
17643 /* end confdefs.h. */
17644 #include <$ac_header>
17645 _ACEOF
17646 if { (ac_try="$ac_cpp conftest.$ac_ext"
17647 case "(($ac_try" in
17648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17649 *) ac_try_echo=$ac_try;;
17650 esac
17651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17653 ac_status=$?
17654 grep -v '^ *+' conftest.er1 >conftest.err
17655 rm -f conftest.er1
17656 cat conftest.err >&5
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); } >/dev/null && {
17659 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17660 test ! -s conftest.err
17661 }; then
17662 ac_header_preproc=yes
17663 else
17664 echo "$as_me: failed program was:" >&5
17665 sed 's/^/| /' conftest.$ac_ext >&5
17666
17667 ac_header_preproc=no
17668 fi
17669
17670 rm -f conftest.err conftest.$ac_ext
17671 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17672 echo "${ECHO_T}$ac_header_preproc" >&6; }
17673
17674 # So? What about this header?
17675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17676 yes:no: )
17677 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17678 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17680 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17681 ac_header_preproc=yes
17682 ;;
17683 no:yes:* )
17684 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17685 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17686 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17687 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17688 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17689 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17690 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17691 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17693 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17694 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17695 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17696
17697 ;;
17698 esac
17699 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17702 echo $ECHO_N "(cached) $ECHO_C" >&6
17703 else
17704 eval "$as_ac_Header=\$ac_header_preproc"
17705 fi
17706 ac_res=`eval echo '${'$as_ac_Header'}'`
17707 { echo "$as_me:$LINENO: result: $ac_res" >&5
17708 echo "${ECHO_T}$ac_res" >&6; }
17709
17710 fi
17711 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17712 cat >>confdefs.h <<_ACEOF
17713 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17714 _ACEOF
17715 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
17716 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
17717 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17718 echo $ECHO_N "(cached) $ECHO_C" >&6
17719 else
17720 cat >conftest.$ac_ext <<_ACEOF
17721 /* confdefs.h. */
17722 _ACEOF
17723 cat confdefs.h >>conftest.$ac_ext
17724 cat >>conftest.$ac_ext <<_ACEOF
17725 /* end confdefs.h. */
17726 #include <nlist.h>
17727
17728 int
17729 main ()
17730 {
17731 static struct nlist ac_aggr;
17732 if (ac_aggr.n_un.n_name)
17733 return 0;
17734 ;
17735 return 0;
17736 }
17737 _ACEOF
17738 rm -f conftest.$ac_objext
17739 if { (ac_try="$ac_compile"
17740 case "(($ac_try" in
17741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17742 *) ac_try_echo=$ac_try;;
17743 esac
17744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17745 (eval "$ac_compile") 2>conftest.er1
17746 ac_status=$?
17747 grep -v '^ *+' conftest.er1 >conftest.err
17748 rm -f conftest.er1
17749 cat conftest.err >&5
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); } && {
17752 test -z "$ac_c_werror_flag" ||
17753 test ! -s conftest.err
17754 } && test -s conftest.$ac_objext; then
17755 ac_cv_member_struct_nlist_n_un_n_name=yes
17756 else
17757 echo "$as_me: failed program was:" >&5
17758 sed 's/^/| /' conftest.$ac_ext >&5
17759
17760 cat >conftest.$ac_ext <<_ACEOF
17761 /* confdefs.h. */
17762 _ACEOF
17763 cat confdefs.h >>conftest.$ac_ext
17764 cat >>conftest.$ac_ext <<_ACEOF
17765 /* end confdefs.h. */
17766 #include <nlist.h>
17767
17768 int
17769 main ()
17770 {
17771 static struct nlist ac_aggr;
17772 if (sizeof ac_aggr.n_un.n_name)
17773 return 0;
17774 ;
17775 return 0;
17776 }
17777 _ACEOF
17778 rm -f conftest.$ac_objext
17779 if { (ac_try="$ac_compile"
17780 case "(($ac_try" in
17781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17782 *) ac_try_echo=$ac_try;;
17783 esac
17784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17785 (eval "$ac_compile") 2>conftest.er1
17786 ac_status=$?
17787 grep -v '^ *+' conftest.er1 >conftest.err
17788 rm -f conftest.er1
17789 cat conftest.err >&5
17790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791 (exit $ac_status); } && {
17792 test -z "$ac_c_werror_flag" ||
17793 test ! -s conftest.err
17794 } && test -s conftest.$ac_objext; then
17795 ac_cv_member_struct_nlist_n_un_n_name=yes
17796 else
17797 echo "$as_me: failed program was:" >&5
17798 sed 's/^/| /' conftest.$ac_ext >&5
17799
17800 ac_cv_member_struct_nlist_n_un_n_name=no
17801 fi
17802
17803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17804 fi
17805
17806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17807 fi
17808 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17809 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
17810 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17811
17812 cat >>confdefs.h <<_ACEOF
17813 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17814 _ACEOF
17815
17816
17817 cat >>confdefs.h <<\_ACEOF
17818 #define NLIST_NAME_UNION 1
17819 _ACEOF
17820
17821 fi
17822
17823
17824 fi
17825
17826 done
17827
17828 fi
17829 done
17830
17831
17832 # Some definitions of getloadavg require that the program be installed setgid.
17833 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17834 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
17835 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17836 echo $ECHO_N "(cached) $ECHO_C" >&6
17837 else
17838 cat >conftest.$ac_ext <<_ACEOF
17839 /* confdefs.h. */
17840 _ACEOF
17841 cat confdefs.h >>conftest.$ac_ext
17842 cat >>conftest.$ac_ext <<_ACEOF
17843 /* end confdefs.h. */
17844 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17845 #ifdef LDAV_PRIVILEGED
17846 Yowza Am I SETGID yet
17847 #endif
17848 _ACEOF
17849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17850 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
17851 ac_cv_func_getloadavg_setgid=yes
17852 else
17853 ac_cv_func_getloadavg_setgid=no
17854 fi
17855 rm -f conftest*
17856
17857 fi
17858 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17859 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
17860 if test $ac_cv_func_getloadavg_setgid = yes; then
17861 NEED_SETGID=true
17862
17863 cat >>confdefs.h <<\_ACEOF
17864 #define GETLOADAVG_PRIVILEGED 1
17865 _ACEOF
17866
17867 else
17868 NEED_SETGID=false
17869 fi
17870
17871 if test $ac_cv_func_getloadavg_setgid = yes; then
17872 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17873 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
17874 if test "${ac_cv_group_kmem+set}" = set; then
17875 echo $ECHO_N "(cached) $ECHO_C" >&6
17876 else
17877 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17878 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17879 # If we got an error (system does not support symlinks), try without -L.
17880 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17881 ac_cv_group_kmem=`echo $ac_ls_output \
17882 | sed -ne 's/[ ][ ]*/ /g;
17883 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17884 / /s/.* //;p;'`
17885
17886 fi
17887 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17888 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
17889 KMEM_GROUP=$ac_cv_group_kmem
17890 fi
17891 if test "x$ac_save_LIBS" = x; then
17892 GETLOADAVG_LIBS=$LIBS
17893 else
17894 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17895 fi
17896 LIBS=$ac_save_LIBS
17897
17898
17899
17900 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17901 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
17902 if test "${ac_cv_sys_largefile_source+set}" = set; then
17903 echo $ECHO_N "(cached) $ECHO_C" >&6
17904 else
17905 while :; do
17906 cat >conftest.$ac_ext <<_ACEOF
17907 /* confdefs.h. */
17908 _ACEOF
17909 cat confdefs.h >>conftest.$ac_ext
17910 cat >>conftest.$ac_ext <<_ACEOF
17911 /* end confdefs.h. */
17912 #include <sys/types.h> /* for off_t */
17913 #include <stdio.h>
17914 int
17915 main ()
17916 {
17917 int (*fp) (FILE *, off_t, int) = fseeko;
17918 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
17919 ;
17920 return 0;
17921 }
17922 _ACEOF
17923 rm -f conftest.$ac_objext conftest$ac_exeext
17924 if { (ac_try="$ac_link"
17925 case "(($ac_try" in
17926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17927 *) ac_try_echo=$ac_try;;
17928 esac
17929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17930 (eval "$ac_link") 2>conftest.er1
17931 ac_status=$?
17932 grep -v '^ *+' conftest.er1 >conftest.err
17933 rm -f conftest.er1
17934 cat conftest.err >&5
17935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); } && {
17937 test -z "$ac_c_werror_flag" ||
17938 test ! -s conftest.err
17939 } && test -s conftest$ac_exeext &&
17940 $as_test_x conftest$ac_exeext; then
17941 ac_cv_sys_largefile_source=no; break
17942 else
17943 echo "$as_me: failed program was:" >&5
17944 sed 's/^/| /' conftest.$ac_ext >&5
17945
17946
17947 fi
17948
17949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17950 conftest$ac_exeext conftest.$ac_ext
17951 cat >conftest.$ac_ext <<_ACEOF
17952 /* confdefs.h. */
17953 _ACEOF
17954 cat confdefs.h >>conftest.$ac_ext
17955 cat >>conftest.$ac_ext <<_ACEOF
17956 /* end confdefs.h. */
17957 #define _LARGEFILE_SOURCE 1
17958 #include <sys/types.h> /* for off_t */
17959 #include <stdio.h>
17960 int
17961 main ()
17962 {
17963 int (*fp) (FILE *, off_t, int) = fseeko;
17964 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
17965 ;
17966 return 0;
17967 }
17968 _ACEOF
17969 rm -f conftest.$ac_objext conftest$ac_exeext
17970 if { (ac_try="$ac_link"
17971 case "(($ac_try" in
17972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17973 *) ac_try_echo=$ac_try;;
17974 esac
17975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17976 (eval "$ac_link") 2>conftest.er1
17977 ac_status=$?
17978 grep -v '^ *+' conftest.er1 >conftest.err
17979 rm -f conftest.er1
17980 cat conftest.err >&5
17981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982 (exit $ac_status); } && {
17983 test -z "$ac_c_werror_flag" ||
17984 test ! -s conftest.err
17985 } && test -s conftest$ac_exeext &&
17986 $as_test_x conftest$ac_exeext; then
17987 ac_cv_sys_largefile_source=1; break
17988 else
17989 echo "$as_me: failed program was:" >&5
17990 sed 's/^/| /' conftest.$ac_ext >&5
17991
17992
17993 fi
17994
17995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17996 conftest$ac_exeext conftest.$ac_ext
17997 ac_cv_sys_largefile_source=unknown
17998 break
17999 done
18000 fi
18001 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18002 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18003 case $ac_cv_sys_largefile_source in #(
18004 no | unknown) ;;
18005 *)
18006 cat >>confdefs.h <<_ACEOF
18007 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18008 _ACEOF
18009 ;;
18010 esac
18011 rm -f conftest*
18012
18013 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18014 # in glibc 2.1.3, but that breaks too many other things.
18015 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18016 if test $ac_cv_sys_largefile_source != unknown; then
18017
18018 cat >>confdefs.h <<\_ACEOF
18019 #define HAVE_FSEEKO 1
18020 _ACEOF
18021
18022 fi
18023
18024
18025 # Configure getopt.
18026 # getopt.m4 serial 10
18027
18028 # The getopt module assume you want GNU getopt, with getopt_long etc,
18029 # rather than vanilla POSIX getopt. This means your your code should
18030 # always include <getopt.h> for the getopt prototypes.
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042 # Prerequisites of lib/getopt*.
18043
18044
18045
18046
18047 GETOPT_H=
18048
18049 for ac_header in getopt.h
18050 do
18051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18053 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18056 echo $ECHO_N "(cached) $ECHO_C" >&6
18057 fi
18058 ac_res=`eval echo '${'$as_ac_Header'}'`
18059 { echo "$as_me:$LINENO: result: $ac_res" >&5
18060 echo "${ECHO_T}$ac_res" >&6; }
18061 else
18062 # Is the header compilable?
18063 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18064 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18065 cat >conftest.$ac_ext <<_ACEOF
18066 /* confdefs.h. */
18067 _ACEOF
18068 cat confdefs.h >>conftest.$ac_ext
18069 cat >>conftest.$ac_ext <<_ACEOF
18070 /* end confdefs.h. */
18071 $ac_includes_default
18072 #include <$ac_header>
18073 _ACEOF
18074 rm -f conftest.$ac_objext
18075 if { (ac_try="$ac_compile"
18076 case "(($ac_try" in
18077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18078 *) ac_try_echo=$ac_try;;
18079 esac
18080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18081 (eval "$ac_compile") 2>conftest.er1
18082 ac_status=$?
18083 grep -v '^ *+' conftest.er1 >conftest.err
18084 rm -f conftest.er1
18085 cat conftest.err >&5
18086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087 (exit $ac_status); } && {
18088 test -z "$ac_c_werror_flag" ||
18089 test ! -s conftest.err
18090 } && test -s conftest.$ac_objext; then
18091 ac_header_compiler=yes
18092 else
18093 echo "$as_me: failed program was:" >&5
18094 sed 's/^/| /' conftest.$ac_ext >&5
18095
18096 ac_header_compiler=no
18097 fi
18098
18099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18100 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18101 echo "${ECHO_T}$ac_header_compiler" >&6; }
18102
18103 # Is the header present?
18104 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18105 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18106 cat >conftest.$ac_ext <<_ACEOF
18107 /* confdefs.h. */
18108 _ACEOF
18109 cat confdefs.h >>conftest.$ac_ext
18110 cat >>conftest.$ac_ext <<_ACEOF
18111 /* end confdefs.h. */
18112 #include <$ac_header>
18113 _ACEOF
18114 if { (ac_try="$ac_cpp conftest.$ac_ext"
18115 case "(($ac_try" in
18116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18117 *) ac_try_echo=$ac_try;;
18118 esac
18119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18120 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18121 ac_status=$?
18122 grep -v '^ *+' conftest.er1 >conftest.err
18123 rm -f conftest.er1
18124 cat conftest.err >&5
18125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126 (exit $ac_status); } >/dev/null && {
18127 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18128 test ! -s conftest.err
18129 }; then
18130 ac_header_preproc=yes
18131 else
18132 echo "$as_me: failed program was:" >&5
18133 sed 's/^/| /' conftest.$ac_ext >&5
18134
18135 ac_header_preproc=no
18136 fi
18137
18138 rm -f conftest.err conftest.$ac_ext
18139 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18140 echo "${ECHO_T}$ac_header_preproc" >&6; }
18141
18142 # So? What about this header?
18143 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18144 yes:no: )
18145 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18146 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18148 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18149 ac_header_preproc=yes
18150 ;;
18151 no:yes:* )
18152 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18153 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18154 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18155 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18156 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18157 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18158 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18159 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18161 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18162 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18163 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18164
18165 ;;
18166 esac
18167 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18170 echo $ECHO_N "(cached) $ECHO_C" >&6
18171 else
18172 eval "$as_ac_Header=\$ac_header_preproc"
18173 fi
18174 ac_res=`eval echo '${'$as_ac_Header'}'`
18175 { echo "$as_me:$LINENO: result: $ac_res" >&5
18176 echo "${ECHO_T}$ac_res" >&6; }
18177
18178 fi
18179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18180 cat >>confdefs.h <<_ACEOF
18181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18182 _ACEOF
18183
18184 else
18185 GETOPT_H=getopt.h
18186 fi
18187
18188 done
18189
18190 if test -z "$GETOPT_H"; then
18191
18192 for ac_func in getopt_long_only
18193 do
18194 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18195 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18196 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18197 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18198 echo $ECHO_N "(cached) $ECHO_C" >&6
18199 else
18200 cat >conftest.$ac_ext <<_ACEOF
18201 /* confdefs.h. */
18202 _ACEOF
18203 cat confdefs.h >>conftest.$ac_ext
18204 cat >>conftest.$ac_ext <<_ACEOF
18205 /* end confdefs.h. */
18206 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18208 #define $ac_func innocuous_$ac_func
18209
18210 /* System header to define __stub macros and hopefully few prototypes,
18211 which can conflict with char $ac_func (); below.
18212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18213 <limits.h> exists even on freestanding compilers. */
18214
18215 #ifdef __STDC__
18216 # include <limits.h>
18217 #else
18218 # include <assert.h>
18219 #endif
18220
18221 #undef $ac_func
18222
18223 /* Override any GCC internal prototype to avoid an error.
18224 Use char because int might match the return type of a GCC
18225 builtin and then its argument prototype would still apply. */
18226 #ifdef __cplusplus
18227 extern "C"
18228 #endif
18229 char $ac_func ();
18230 /* The GNU C library defines this for functions which it implements
18231 to always fail with ENOSYS. Some functions are actually named
18232 something starting with __ and the normal name is an alias. */
18233 #if defined __stub_$ac_func || defined __stub___$ac_func
18234 choke me
18235 #endif
18236
18237 int
18238 main ()
18239 {
18240 return $ac_func ();
18241 ;
18242 return 0;
18243 }
18244 _ACEOF
18245 rm -f conftest.$ac_objext conftest$ac_exeext
18246 if { (ac_try="$ac_link"
18247 case "(($ac_try" in
18248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18249 *) ac_try_echo=$ac_try;;
18250 esac
18251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18252 (eval "$ac_link") 2>conftest.er1
18253 ac_status=$?
18254 grep -v '^ *+' conftest.er1 >conftest.err
18255 rm -f conftest.er1
18256 cat conftest.err >&5
18257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258 (exit $ac_status); } && {
18259 test -z "$ac_c_werror_flag" ||
18260 test ! -s conftest.err
18261 } && test -s conftest$ac_exeext &&
18262 $as_test_x conftest$ac_exeext; then
18263 eval "$as_ac_var=yes"
18264 else
18265 echo "$as_me: failed program was:" >&5
18266 sed 's/^/| /' conftest.$ac_ext >&5
18267
18268 eval "$as_ac_var=no"
18269 fi
18270
18271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18272 conftest$ac_exeext conftest.$ac_ext
18273 fi
18274 ac_res=`eval echo '${'$as_ac_var'}'`
18275 { echo "$as_me:$LINENO: result: $ac_res" >&5
18276 echo "${ECHO_T}$ac_res" >&6; }
18277 if test `eval echo '${'$as_ac_var'}'` = yes; then
18278 cat >>confdefs.h <<_ACEOF
18279 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18280 _ACEOF
18281
18282 else
18283 GETOPT_H=getopt.h
18284 fi
18285 done
18286
18287 fi
18288
18289 if test -z "$GETOPT_H"; then
18290 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18291 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
18292 if test "${ac_cv_have_decl_optreset+set}" = set; then
18293 echo $ECHO_N "(cached) $ECHO_C" >&6
18294 else
18295 cat >conftest.$ac_ext <<_ACEOF
18296 /* confdefs.h. */
18297 _ACEOF
18298 cat confdefs.h >>conftest.$ac_ext
18299 cat >>conftest.$ac_ext <<_ACEOF
18300 /* end confdefs.h. */
18301 #include <getopt.h>
18302
18303 int
18304 main ()
18305 {
18306 #ifndef optreset
18307 (void) optreset;
18308 #endif
18309
18310 ;
18311 return 0;
18312 }
18313 _ACEOF
18314 rm -f conftest.$ac_objext
18315 if { (ac_try="$ac_compile"
18316 case "(($ac_try" in
18317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18318 *) ac_try_echo=$ac_try;;
18319 esac
18320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18321 (eval "$ac_compile") 2>conftest.er1
18322 ac_status=$?
18323 grep -v '^ *+' conftest.er1 >conftest.err
18324 rm -f conftest.er1
18325 cat conftest.err >&5
18326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327 (exit $ac_status); } && {
18328 test -z "$ac_c_werror_flag" ||
18329 test ! -s conftest.err
18330 } && test -s conftest.$ac_objext; then
18331 ac_cv_have_decl_optreset=yes
18332 else
18333 echo "$as_me: failed program was:" >&5
18334 sed 's/^/| /' conftest.$ac_ext >&5
18335
18336 ac_cv_have_decl_optreset=no
18337 fi
18338
18339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18340 fi
18341 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
18342 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18343 if test $ac_cv_have_decl_optreset = yes; then
18344 GETOPT_H=getopt.h
18345 fi
18346
18347 fi
18348
18349 if test -z "$GETOPT_H"; then
18350 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
18351 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
18352 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18353 echo $ECHO_N "(cached) $ECHO_C" >&6
18354 else
18355 if test "$cross_compiling" = yes; then
18356 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
18357 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
18358 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18359 echo $ECHO_N "(cached) $ECHO_C" >&6
18360 else
18361 cat >conftest.$ac_ext <<_ACEOF
18362 /* confdefs.h. */
18363 _ACEOF
18364 cat confdefs.h >>conftest.$ac_ext
18365 cat >>conftest.$ac_ext <<_ACEOF
18366 /* end confdefs.h. */
18367 #include <getopt.h>
18368
18369 int
18370 main ()
18371 {
18372 #ifndef getopt_clip
18373 (void) getopt_clip;
18374 #endif
18375
18376 ;
18377 return 0;
18378 }
18379 _ACEOF
18380 rm -f conftest.$ac_objext
18381 if { (ac_try="$ac_compile"
18382 case "(($ac_try" in
18383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18384 *) ac_try_echo=$ac_try;;
18385 esac
18386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18387 (eval "$ac_compile") 2>conftest.er1
18388 ac_status=$?
18389 grep -v '^ *+' conftest.er1 >conftest.err
18390 rm -f conftest.er1
18391 cat conftest.err >&5
18392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393 (exit $ac_status); } && {
18394 test -z "$ac_c_werror_flag" ||
18395 test ! -s conftest.err
18396 } && test -s conftest.$ac_objext; then
18397 ac_cv_have_decl_getopt_clip=yes
18398 else
18399 echo "$as_me: failed program was:" >&5
18400 sed 's/^/| /' conftest.$ac_ext >&5
18401
18402 ac_cv_have_decl_getopt_clip=no
18403 fi
18404
18405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18406 fi
18407 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
18408 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18409 if test $ac_cv_have_decl_getopt_clip = yes; then
18410 gl_cv_func_gnu_getopt=no
18411 else
18412 gl_cv_func_gnu_getopt=yes
18413 fi
18414
18415 else
18416 cat >conftest.$ac_ext <<_ACEOF
18417 /* confdefs.h. */
18418 _ACEOF
18419 cat confdefs.h >>conftest.$ac_ext
18420 cat >>conftest.$ac_ext <<_ACEOF
18421 /* end confdefs.h. */
18422 #include <getopt.h>
18423 int
18424 main ()
18425 {
18426
18427 char *myargv[3];
18428 myargv[0] = "conftest";
18429 myargv[1] = "-+";
18430 myargv[2] = 0;
18431 return getopt (2, myargv, "+a") != '?';
18432
18433 ;
18434 return 0;
18435 }
18436 _ACEOF
18437 rm -f conftest$ac_exeext
18438 if { (ac_try="$ac_link"
18439 case "(($ac_try" in
18440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18441 *) ac_try_echo=$ac_try;;
18442 esac
18443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18444 (eval "$ac_link") 2>&5
18445 ac_status=$?
18446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18448 { (case "(($ac_try" in
18449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18450 *) ac_try_echo=$ac_try;;
18451 esac
18452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18453 (eval "$ac_try") 2>&5
18454 ac_status=$?
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); }; }; then
18457 gl_cv_func_gnu_getopt=yes
18458 else
18459 echo "$as_me: program exited with status $ac_status" >&5
18460 echo "$as_me: failed program was:" >&5
18461 sed 's/^/| /' conftest.$ac_ext >&5
18462
18463 ( exit $ac_status )
18464 gl_cv_func_gnu_getopt=no
18465 fi
18466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18467 fi
18468
18469
18470 fi
18471 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
18472 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18473 if test "$gl_cv_func_gnu_getopt" = "no"; then
18474 GETOPT_H=getopt.h
18475 fi
18476 fi
18477
18478
18479
18480 if test -n "$GETOPT_H"; then
18481
18482
18483 GETOPT_H=getopt.h
18484
18485 cat >>confdefs.h <<\_ACEOF
18486 #define __GETOPT_PREFIX rpl_
18487 _ACEOF
18488
18489
18490
18491 :
18492 GETOPTOBJS='getopt.o getopt1.o'
18493
18494 fi
18495
18496
18497
18498
18499 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
18500 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
18501 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18502 echo $ECHO_N "(cached) $ECHO_C" >&6
18503 else
18504 # Use it with a single arg.
18505 cat >conftest.$ac_ext <<_ACEOF
18506 /* confdefs.h. */
18507 _ACEOF
18508 cat confdefs.h >>conftest.$ac_ext
18509 cat >>conftest.$ac_ext <<_ACEOF
18510 /* end confdefs.h. */
18511 $ac_includes_default
18512 int
18513 main ()
18514 {
18515 getpgrp (0);
18516 ;
18517 return 0;
18518 }
18519 _ACEOF
18520 rm -f conftest.$ac_objext
18521 if { (ac_try="$ac_compile"
18522 case "(($ac_try" in
18523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18524 *) ac_try_echo=$ac_try;;
18525 esac
18526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18527 (eval "$ac_compile") 2>conftest.er1
18528 ac_status=$?
18529 grep -v '^ *+' conftest.er1 >conftest.err
18530 rm -f conftest.er1
18531 cat conftest.err >&5
18532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533 (exit $ac_status); } && {
18534 test -z "$ac_c_werror_flag" ||
18535 test ! -s conftest.err
18536 } && test -s conftest.$ac_objext; then
18537 ac_cv_func_getpgrp_void=no
18538 else
18539 echo "$as_me: failed program was:" >&5
18540 sed 's/^/| /' conftest.$ac_ext >&5
18541
18542 ac_cv_func_getpgrp_void=yes
18543 fi
18544
18545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18546
18547 fi
18548 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
18549 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18550 if test $ac_cv_func_getpgrp_void = yes; then
18551
18552 cat >>confdefs.h <<\_ACEOF
18553 #define GETPGRP_VOID 1
18554 _ACEOF
18555
18556 fi
18557
18558
18559
18560 for ac_func in strftime
18561 do
18562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18563 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18565 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18566 echo $ECHO_N "(cached) $ECHO_C" >&6
18567 else
18568 cat >conftest.$ac_ext <<_ACEOF
18569 /* confdefs.h. */
18570 _ACEOF
18571 cat confdefs.h >>conftest.$ac_ext
18572 cat >>conftest.$ac_ext <<_ACEOF
18573 /* end confdefs.h. */
18574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18576 #define $ac_func innocuous_$ac_func
18577
18578 /* System header to define __stub macros and hopefully few prototypes,
18579 which can conflict with char $ac_func (); below.
18580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18581 <limits.h> exists even on freestanding compilers. */
18582
18583 #ifdef __STDC__
18584 # include <limits.h>
18585 #else
18586 # include <assert.h>
18587 #endif
18588
18589 #undef $ac_func
18590
18591 /* Override any GCC internal prototype to avoid an error.
18592 Use char because int might match the return type of a GCC
18593 builtin and then its argument prototype would still apply. */
18594 #ifdef __cplusplus
18595 extern "C"
18596 #endif
18597 char $ac_func ();
18598 /* The GNU C library defines this for functions which it implements
18599 to always fail with ENOSYS. Some functions are actually named
18600 something starting with __ and the normal name is an alias. */
18601 #if defined __stub_$ac_func || defined __stub___$ac_func
18602 choke me
18603 #endif
18604
18605 int
18606 main ()
18607 {
18608 return $ac_func ();
18609 ;
18610 return 0;
18611 }
18612 _ACEOF
18613 rm -f conftest.$ac_objext conftest$ac_exeext
18614 if { (ac_try="$ac_link"
18615 case "(($ac_try" in
18616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18617 *) ac_try_echo=$ac_try;;
18618 esac
18619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18620 (eval "$ac_link") 2>conftest.er1
18621 ac_status=$?
18622 grep -v '^ *+' conftest.er1 >conftest.err
18623 rm -f conftest.er1
18624 cat conftest.err >&5
18625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626 (exit $ac_status); } && {
18627 test -z "$ac_c_werror_flag" ||
18628 test ! -s conftest.err
18629 } && test -s conftest$ac_exeext &&
18630 $as_test_x conftest$ac_exeext; then
18631 eval "$as_ac_var=yes"
18632 else
18633 echo "$as_me: failed program was:" >&5
18634 sed 's/^/| /' conftest.$ac_ext >&5
18635
18636 eval "$as_ac_var=no"
18637 fi
18638
18639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18640 conftest$ac_exeext conftest.$ac_ext
18641 fi
18642 ac_res=`eval echo '${'$as_ac_var'}'`
18643 { echo "$as_me:$LINENO: result: $ac_res" >&5
18644 echo "${ECHO_T}$ac_res" >&6; }
18645 if test `eval echo '${'$as_ac_var'}'` = yes; then
18646 cat >>confdefs.h <<_ACEOF
18647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18648 _ACEOF
18649
18650 else
18651 # strftime is in -lintl on SCO UNIX.
18652 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18653 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
18654 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18655 echo $ECHO_N "(cached) $ECHO_C" >&6
18656 else
18657 ac_check_lib_save_LIBS=$LIBS
18658 LIBS="-lintl $LIBS"
18659 cat >conftest.$ac_ext <<_ACEOF
18660 /* confdefs.h. */
18661 _ACEOF
18662 cat confdefs.h >>conftest.$ac_ext
18663 cat >>conftest.$ac_ext <<_ACEOF
18664 /* end confdefs.h. */
18665
18666 /* Override any GCC internal prototype to avoid an error.
18667 Use char because int might match the return type of a GCC
18668 builtin and then its argument prototype would still apply. */
18669 #ifdef __cplusplus
18670 extern "C"
18671 #endif
18672 char strftime ();
18673 int
18674 main ()
18675 {
18676 return strftime ();
18677 ;
18678 return 0;
18679 }
18680 _ACEOF
18681 rm -f conftest.$ac_objext conftest$ac_exeext
18682 if { (ac_try="$ac_link"
18683 case "(($ac_try" in
18684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18685 *) ac_try_echo=$ac_try;;
18686 esac
18687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18688 (eval "$ac_link") 2>conftest.er1
18689 ac_status=$?
18690 grep -v '^ *+' conftest.er1 >conftest.err
18691 rm -f conftest.er1
18692 cat conftest.err >&5
18693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18694 (exit $ac_status); } && {
18695 test -z "$ac_c_werror_flag" ||
18696 test ! -s conftest.err
18697 } && test -s conftest$ac_exeext &&
18698 $as_test_x conftest$ac_exeext; then
18699 ac_cv_lib_intl_strftime=yes
18700 else
18701 echo "$as_me: failed program was:" >&5
18702 sed 's/^/| /' conftest.$ac_ext >&5
18703
18704 ac_cv_lib_intl_strftime=no
18705 fi
18706
18707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18708 conftest$ac_exeext conftest.$ac_ext
18709 LIBS=$ac_check_lib_save_LIBS
18710 fi
18711 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18712 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18713 if test $ac_cv_lib_intl_strftime = yes; then
18714 cat >>confdefs.h <<\_ACEOF
18715 #define HAVE_STRFTIME 1
18716 _ACEOF
18717
18718 LIBS="-lintl $LIBS"
18719 fi
18720
18721 fi
18722 done
18723
18724
18725 # UNIX98 PTYs.
18726
18727 for ac_func in grantpt
18728 do
18729 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18730 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18731 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18732 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18733 echo $ECHO_N "(cached) $ECHO_C" >&6
18734 else
18735 cat >conftest.$ac_ext <<_ACEOF
18736 /* confdefs.h. */
18737 _ACEOF
18738 cat confdefs.h >>conftest.$ac_ext
18739 cat >>conftest.$ac_ext <<_ACEOF
18740 /* end confdefs.h. */
18741 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18743 #define $ac_func innocuous_$ac_func
18744
18745 /* System header to define __stub macros and hopefully few prototypes,
18746 which can conflict with char $ac_func (); below.
18747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18748 <limits.h> exists even on freestanding compilers. */
18749
18750 #ifdef __STDC__
18751 # include <limits.h>
18752 #else
18753 # include <assert.h>
18754 #endif
18755
18756 #undef $ac_func
18757
18758 /* Override any GCC internal prototype to avoid an error.
18759 Use char because int might match the return type of a GCC
18760 builtin and then its argument prototype would still apply. */
18761 #ifdef __cplusplus
18762 extern "C"
18763 #endif
18764 char $ac_func ();
18765 /* The GNU C library defines this for functions which it implements
18766 to always fail with ENOSYS. Some functions are actually named
18767 something starting with __ and the normal name is an alias. */
18768 #if defined __stub_$ac_func || defined __stub___$ac_func
18769 choke me
18770 #endif
18771
18772 int
18773 main ()
18774 {
18775 return $ac_func ();
18776 ;
18777 return 0;
18778 }
18779 _ACEOF
18780 rm -f conftest.$ac_objext conftest$ac_exeext
18781 if { (ac_try="$ac_link"
18782 case "(($ac_try" in
18783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18784 *) ac_try_echo=$ac_try;;
18785 esac
18786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18787 (eval "$ac_link") 2>conftest.er1
18788 ac_status=$?
18789 grep -v '^ *+' conftest.er1 >conftest.err
18790 rm -f conftest.er1
18791 cat conftest.err >&5
18792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793 (exit $ac_status); } && {
18794 test -z "$ac_c_werror_flag" ||
18795 test ! -s conftest.err
18796 } && test -s conftest$ac_exeext &&
18797 $as_test_x conftest$ac_exeext; then
18798 eval "$as_ac_var=yes"
18799 else
18800 echo "$as_me: failed program was:" >&5
18801 sed 's/^/| /' conftest.$ac_ext >&5
18802
18803 eval "$as_ac_var=no"
18804 fi
18805
18806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18807 conftest$ac_exeext conftest.$ac_ext
18808 fi
18809 ac_res=`eval echo '${'$as_ac_var'}'`
18810 { echo "$as_me:$LINENO: result: $ac_res" >&5
18811 echo "${ECHO_T}$ac_res" >&6; }
18812 if test `eval echo '${'$as_ac_var'}'` = yes; then
18813 cat >>confdefs.h <<_ACEOF
18814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18815 _ACEOF
18816
18817 fi
18818 done
18819
18820
18821 # PTY-related GNU extensions.
18822
18823 for ac_func in getpt
18824 do
18825 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18826 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18827 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18828 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18829 echo $ECHO_N "(cached) $ECHO_C" >&6
18830 else
18831 cat >conftest.$ac_ext <<_ACEOF
18832 /* confdefs.h. */
18833 _ACEOF
18834 cat confdefs.h >>conftest.$ac_ext
18835 cat >>conftest.$ac_ext <<_ACEOF
18836 /* end confdefs.h. */
18837 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18839 #define $ac_func innocuous_$ac_func
18840
18841 /* System header to define __stub macros and hopefully few prototypes,
18842 which can conflict with char $ac_func (); below.
18843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18844 <limits.h> exists even on freestanding compilers. */
18845
18846 #ifdef __STDC__
18847 # include <limits.h>
18848 #else
18849 # include <assert.h>
18850 #endif
18851
18852 #undef $ac_func
18853
18854 /* Override any GCC internal prototype to avoid an error.
18855 Use char because int might match the return type of a GCC
18856 builtin and then its argument prototype would still apply. */
18857 #ifdef __cplusplus
18858 extern "C"
18859 #endif
18860 char $ac_func ();
18861 /* The GNU C library defines this for functions which it implements
18862 to always fail with ENOSYS. Some functions are actually named
18863 something starting with __ and the normal name is an alias. */
18864 #if defined __stub_$ac_func || defined __stub___$ac_func
18865 choke me
18866 #endif
18867
18868 int
18869 main ()
18870 {
18871 return $ac_func ();
18872 ;
18873 return 0;
18874 }
18875 _ACEOF
18876 rm -f conftest.$ac_objext conftest$ac_exeext
18877 if { (ac_try="$ac_link"
18878 case "(($ac_try" in
18879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18880 *) ac_try_echo=$ac_try;;
18881 esac
18882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18883 (eval "$ac_link") 2>conftest.er1
18884 ac_status=$?
18885 grep -v '^ *+' conftest.er1 >conftest.err
18886 rm -f conftest.er1
18887 cat conftest.err >&5
18888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889 (exit $ac_status); } && {
18890 test -z "$ac_c_werror_flag" ||
18891 test ! -s conftest.err
18892 } && test -s conftest$ac_exeext &&
18893 $as_test_x conftest$ac_exeext; then
18894 eval "$as_ac_var=yes"
18895 else
18896 echo "$as_me: failed program was:" >&5
18897 sed 's/^/| /' conftest.$ac_ext >&5
18898
18899 eval "$as_ac_var=no"
18900 fi
18901
18902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18903 conftest$ac_exeext conftest.$ac_ext
18904 fi
18905 ac_res=`eval echo '${'$as_ac_var'}'`
18906 { echo "$as_me:$LINENO: result: $ac_res" >&5
18907 echo "${ECHO_T}$ac_res" >&6; }
18908 if test `eval echo '${'$as_ac_var'}'` = yes; then
18909 cat >>confdefs.h <<_ACEOF
18910 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18911 _ACEOF
18912
18913 fi
18914 done
18915
18916
18917 # Check this now, so that we will NOT find the above functions in ncurses.
18918 # That is because we have not set up to link ncurses in lib-src.
18919 # It's better to believe a function is not available
18920 # than to expect to find it in ncurses.
18921
18922 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18923 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
18924 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18925 echo $ECHO_N "(cached) $ECHO_C" >&6
18926 else
18927 ac_check_lib_save_LIBS=$LIBS
18928 LIBS="-lncurses $LIBS"
18929 cat >conftest.$ac_ext <<_ACEOF
18930 /* confdefs.h. */
18931 _ACEOF
18932 cat confdefs.h >>conftest.$ac_ext
18933 cat >>conftest.$ac_ext <<_ACEOF
18934 /* end confdefs.h. */
18935
18936 /* Override any GCC internal prototype to avoid an error.
18937 Use char because int might match the return type of a GCC
18938 builtin and then its argument prototype would still apply. */
18939 #ifdef __cplusplus
18940 extern "C"
18941 #endif
18942 char tparm ();
18943 int
18944 main ()
18945 {
18946 return tparm ();
18947 ;
18948 return 0;
18949 }
18950 _ACEOF
18951 rm -f conftest.$ac_objext conftest$ac_exeext
18952 if { (ac_try="$ac_link"
18953 case "(($ac_try" in
18954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18955 *) ac_try_echo=$ac_try;;
18956 esac
18957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18958 (eval "$ac_link") 2>conftest.er1
18959 ac_status=$?
18960 grep -v '^ *+' conftest.er1 >conftest.err
18961 rm -f conftest.er1
18962 cat conftest.err >&5
18963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964 (exit $ac_status); } && {
18965 test -z "$ac_c_werror_flag" ||
18966 test ! -s conftest.err
18967 } && test -s conftest$ac_exeext &&
18968 $as_test_x conftest$ac_exeext; then
18969 ac_cv_lib_ncurses_tparm=yes
18970 else
18971 echo "$as_me: failed program was:" >&5
18972 sed 's/^/| /' conftest.$ac_ext >&5
18973
18974 ac_cv_lib_ncurses_tparm=no
18975 fi
18976
18977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18978 conftest$ac_exeext conftest.$ac_ext
18979 LIBS=$ac_check_lib_save_LIBS
18980 fi
18981 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18982 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
18983 if test $ac_cv_lib_ncurses_tparm = yes; then
18984 cat >>confdefs.h <<_ACEOF
18985 #define HAVE_LIBNCURSES 1
18986 _ACEOF
18987
18988 LIBS="-lncurses $LIBS"
18989
18990 fi
18991
18992
18993 # Do we need the Hesiod library to provide the support routines?
18994 if test "$with_hesiod" = yes ; then
18995 # Don't set $LIBS here -- see comments above.
18996 resolv=no
18997 { echo "$as_me:$LINENO: checking for res_send" >&5
18998 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
18999 if test "${ac_cv_func_res_send+set}" = set; then
19000 echo $ECHO_N "(cached) $ECHO_C" >&6
19001 else
19002 cat >conftest.$ac_ext <<_ACEOF
19003 /* confdefs.h. */
19004 _ACEOF
19005 cat confdefs.h >>conftest.$ac_ext
19006 cat >>conftest.$ac_ext <<_ACEOF
19007 /* end confdefs.h. */
19008 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19010 #define res_send innocuous_res_send
19011
19012 /* System header to define __stub macros and hopefully few prototypes,
19013 which can conflict with char res_send (); below.
19014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19015 <limits.h> exists even on freestanding compilers. */
19016
19017 #ifdef __STDC__
19018 # include <limits.h>
19019 #else
19020 # include <assert.h>
19021 #endif
19022
19023 #undef res_send
19024
19025 /* Override any GCC internal prototype to avoid an error.
19026 Use char because int might match the return type of a GCC
19027 builtin and then its argument prototype would still apply. */
19028 #ifdef __cplusplus
19029 extern "C"
19030 #endif
19031 char res_send ();
19032 /* The GNU C library defines this for functions which it implements
19033 to always fail with ENOSYS. Some functions are actually named
19034 something starting with __ and the normal name is an alias. */
19035 #if defined __stub_res_send || defined __stub___res_send
19036 choke me
19037 #endif
19038
19039 int
19040 main ()
19041 {
19042 return res_send ();
19043 ;
19044 return 0;
19045 }
19046 _ACEOF
19047 rm -f conftest.$ac_objext conftest$ac_exeext
19048 if { (ac_try="$ac_link"
19049 case "(($ac_try" in
19050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19051 *) ac_try_echo=$ac_try;;
19052 esac
19053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19054 (eval "$ac_link") 2>conftest.er1
19055 ac_status=$?
19056 grep -v '^ *+' conftest.er1 >conftest.err
19057 rm -f conftest.er1
19058 cat conftest.err >&5
19059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060 (exit $ac_status); } && {
19061 test -z "$ac_c_werror_flag" ||
19062 test ! -s conftest.err
19063 } && test -s conftest$ac_exeext &&
19064 $as_test_x conftest$ac_exeext; then
19065 ac_cv_func_res_send=yes
19066 else
19067 echo "$as_me: failed program was:" >&5
19068 sed 's/^/| /' conftest.$ac_ext >&5
19069
19070 ac_cv_func_res_send=no
19071 fi
19072
19073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19074 conftest$ac_exeext conftest.$ac_ext
19075 fi
19076 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19077 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19078 if test $ac_cv_func_res_send = yes; then
19079 :
19080 else
19081 { echo "$as_me:$LINENO: checking for __res_send" >&5
19082 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19083 if test "${ac_cv_func___res_send+set}" = set; then
19084 echo $ECHO_N "(cached) $ECHO_C" >&6
19085 else
19086 cat >conftest.$ac_ext <<_ACEOF
19087 /* confdefs.h. */
19088 _ACEOF
19089 cat confdefs.h >>conftest.$ac_ext
19090 cat >>conftest.$ac_ext <<_ACEOF
19091 /* end confdefs.h. */
19092 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19094 #define __res_send innocuous___res_send
19095
19096 /* System header to define __stub macros and hopefully few prototypes,
19097 which can conflict with char __res_send (); below.
19098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19099 <limits.h> exists even on freestanding compilers. */
19100
19101 #ifdef __STDC__
19102 # include <limits.h>
19103 #else
19104 # include <assert.h>
19105 #endif
19106
19107 #undef __res_send
19108
19109 /* Override any GCC internal prototype to avoid an error.
19110 Use char because int might match the return type of a GCC
19111 builtin and then its argument prototype would still apply. */
19112 #ifdef __cplusplus
19113 extern "C"
19114 #endif
19115 char __res_send ();
19116 /* The GNU C library defines this for functions which it implements
19117 to always fail with ENOSYS. Some functions are actually named
19118 something starting with __ and the normal name is an alias. */
19119 #if defined __stub___res_send || defined __stub_____res_send
19120 choke me
19121 #endif
19122
19123 int
19124 main ()
19125 {
19126 return __res_send ();
19127 ;
19128 return 0;
19129 }
19130 _ACEOF
19131 rm -f conftest.$ac_objext conftest$ac_exeext
19132 if { (ac_try="$ac_link"
19133 case "(($ac_try" in
19134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19135 *) ac_try_echo=$ac_try;;
19136 esac
19137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19138 (eval "$ac_link") 2>conftest.er1
19139 ac_status=$?
19140 grep -v '^ *+' conftest.er1 >conftest.err
19141 rm -f conftest.er1
19142 cat conftest.err >&5
19143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144 (exit $ac_status); } && {
19145 test -z "$ac_c_werror_flag" ||
19146 test ! -s conftest.err
19147 } && test -s conftest$ac_exeext &&
19148 $as_test_x conftest$ac_exeext; then
19149 ac_cv_func___res_send=yes
19150 else
19151 echo "$as_me: failed program was:" >&5
19152 sed 's/^/| /' conftest.$ac_ext >&5
19153
19154 ac_cv_func___res_send=no
19155 fi
19156
19157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19158 conftest$ac_exeext conftest.$ac_ext
19159 fi
19160 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19161 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19162 if test $ac_cv_func___res_send = yes; then
19163 :
19164 else
19165 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19166 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19167 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19168 echo $ECHO_N "(cached) $ECHO_C" >&6
19169 else
19170 ac_check_lib_save_LIBS=$LIBS
19171 LIBS="-lresolv $LIBS"
19172 cat >conftest.$ac_ext <<_ACEOF
19173 /* confdefs.h. */
19174 _ACEOF
19175 cat confdefs.h >>conftest.$ac_ext
19176 cat >>conftest.$ac_ext <<_ACEOF
19177 /* end confdefs.h. */
19178
19179 /* Override any GCC internal prototype to avoid an error.
19180 Use char because int might match the return type of a GCC
19181 builtin and then its argument prototype would still apply. */
19182 #ifdef __cplusplus
19183 extern "C"
19184 #endif
19185 char res_send ();
19186 int
19187 main ()
19188 {
19189 return res_send ();
19190 ;
19191 return 0;
19192 }
19193 _ACEOF
19194 rm -f conftest.$ac_objext conftest$ac_exeext
19195 if { (ac_try="$ac_link"
19196 case "(($ac_try" in
19197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19198 *) ac_try_echo=$ac_try;;
19199 esac
19200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19201 (eval "$ac_link") 2>conftest.er1
19202 ac_status=$?
19203 grep -v '^ *+' conftest.er1 >conftest.err
19204 rm -f conftest.er1
19205 cat conftest.err >&5
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); } && {
19208 test -z "$ac_c_werror_flag" ||
19209 test ! -s conftest.err
19210 } && test -s conftest$ac_exeext &&
19211 $as_test_x conftest$ac_exeext; then
19212 ac_cv_lib_resolv_res_send=yes
19213 else
19214 echo "$as_me: failed program was:" >&5
19215 sed 's/^/| /' conftest.$ac_ext >&5
19216
19217 ac_cv_lib_resolv_res_send=no
19218 fi
19219
19220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19221 conftest$ac_exeext conftest.$ac_ext
19222 LIBS=$ac_check_lib_save_LIBS
19223 fi
19224 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19225 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19226 if test $ac_cv_lib_resolv_res_send = yes; then
19227 resolv=yes
19228 else
19229 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
19230 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
19231 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19232 echo $ECHO_N "(cached) $ECHO_C" >&6
19233 else
19234 ac_check_lib_save_LIBS=$LIBS
19235 LIBS="-lresolv $LIBS"
19236 cat >conftest.$ac_ext <<_ACEOF
19237 /* confdefs.h. */
19238 _ACEOF
19239 cat confdefs.h >>conftest.$ac_ext
19240 cat >>conftest.$ac_ext <<_ACEOF
19241 /* end confdefs.h. */
19242
19243 /* Override any GCC internal prototype to avoid an error.
19244 Use char because int might match the return type of a GCC
19245 builtin and then its argument prototype would still apply. */
19246 #ifdef __cplusplus
19247 extern "C"
19248 #endif
19249 char __res_send ();
19250 int
19251 main ()
19252 {
19253 return __res_send ();
19254 ;
19255 return 0;
19256 }
19257 _ACEOF
19258 rm -f conftest.$ac_objext conftest$ac_exeext
19259 if { (ac_try="$ac_link"
19260 case "(($ac_try" in
19261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19262 *) ac_try_echo=$ac_try;;
19263 esac
19264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19265 (eval "$ac_link") 2>conftest.er1
19266 ac_status=$?
19267 grep -v '^ *+' conftest.er1 >conftest.err
19268 rm -f conftest.er1
19269 cat conftest.err >&5
19270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271 (exit $ac_status); } && {
19272 test -z "$ac_c_werror_flag" ||
19273 test ! -s conftest.err
19274 } && test -s conftest$ac_exeext &&
19275 $as_test_x conftest$ac_exeext; then
19276 ac_cv_lib_resolv___res_send=yes
19277 else
19278 echo "$as_me: failed program was:" >&5
19279 sed 's/^/| /' conftest.$ac_ext >&5
19280
19281 ac_cv_lib_resolv___res_send=no
19282 fi
19283
19284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19285 conftest$ac_exeext conftest.$ac_ext
19286 LIBS=$ac_check_lib_save_LIBS
19287 fi
19288 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
19289 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19290 if test $ac_cv_lib_resolv___res_send = yes; then
19291 resolv=yes
19292 fi
19293
19294 fi
19295
19296 fi
19297
19298 fi
19299
19300 if test "$resolv" = yes ; then
19301 RESOLVLIB=-lresolv
19302
19303 cat >>confdefs.h <<\_ACEOF
19304 #define HAVE_LIBRESOLV 1
19305 _ACEOF
19306
19307 else
19308 RESOLVLIB=
19309 fi
19310 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
19311 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
19312 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19313 echo $ECHO_N "(cached) $ECHO_C" >&6
19314 else
19315 cat >conftest.$ac_ext <<_ACEOF
19316 /* confdefs.h. */
19317 _ACEOF
19318 cat confdefs.h >>conftest.$ac_ext
19319 cat >>conftest.$ac_ext <<_ACEOF
19320 /* end confdefs.h. */
19321 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19323 #define hes_getmailhost innocuous_hes_getmailhost
19324
19325 /* System header to define __stub macros and hopefully few prototypes,
19326 which can conflict with char hes_getmailhost (); below.
19327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19328 <limits.h> exists even on freestanding compilers. */
19329
19330 #ifdef __STDC__
19331 # include <limits.h>
19332 #else
19333 # include <assert.h>
19334 #endif
19335
19336 #undef hes_getmailhost
19337
19338 /* Override any GCC internal prototype to avoid an error.
19339 Use char because int might match the return type of a GCC
19340 builtin and then its argument prototype would still apply. */
19341 #ifdef __cplusplus
19342 extern "C"
19343 #endif
19344 char hes_getmailhost ();
19345 /* The GNU C library defines this for functions which it implements
19346 to always fail with ENOSYS. Some functions are actually named
19347 something starting with __ and the normal name is an alias. */
19348 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19349 choke me
19350 #endif
19351
19352 int
19353 main ()
19354 {
19355 return hes_getmailhost ();
19356 ;
19357 return 0;
19358 }
19359 _ACEOF
19360 rm -f conftest.$ac_objext conftest$ac_exeext
19361 if { (ac_try="$ac_link"
19362 case "(($ac_try" in
19363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19364 *) ac_try_echo=$ac_try;;
19365 esac
19366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19367 (eval "$ac_link") 2>conftest.er1
19368 ac_status=$?
19369 grep -v '^ *+' conftest.er1 >conftest.err
19370 rm -f conftest.er1
19371 cat conftest.err >&5
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); } && {
19374 test -z "$ac_c_werror_flag" ||
19375 test ! -s conftest.err
19376 } && test -s conftest$ac_exeext &&
19377 $as_test_x conftest$ac_exeext; then
19378 ac_cv_func_hes_getmailhost=yes
19379 else
19380 echo "$as_me: failed program was:" >&5
19381 sed 's/^/| /' conftest.$ac_ext >&5
19382
19383 ac_cv_func_hes_getmailhost=no
19384 fi
19385
19386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19387 conftest$ac_exeext conftest.$ac_ext
19388 fi
19389 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
19390 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19391 if test $ac_cv_func_hes_getmailhost = yes; then
19392 :
19393 else
19394 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
19395 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
19396 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19397 echo $ECHO_N "(cached) $ECHO_C" >&6
19398 else
19399 ac_check_lib_save_LIBS=$LIBS
19400 LIBS="-lhesiod $RESOLVLIB $LIBS"
19401 cat >conftest.$ac_ext <<_ACEOF
19402 /* confdefs.h. */
19403 _ACEOF
19404 cat confdefs.h >>conftest.$ac_ext
19405 cat >>conftest.$ac_ext <<_ACEOF
19406 /* end confdefs.h. */
19407
19408 /* Override any GCC internal prototype to avoid an error.
19409 Use char because int might match the return type of a GCC
19410 builtin and then its argument prototype would still apply. */
19411 #ifdef __cplusplus
19412 extern "C"
19413 #endif
19414 char hes_getmailhost ();
19415 int
19416 main ()
19417 {
19418 return hes_getmailhost ();
19419 ;
19420 return 0;
19421 }
19422 _ACEOF
19423 rm -f conftest.$ac_objext conftest$ac_exeext
19424 if { (ac_try="$ac_link"
19425 case "(($ac_try" in
19426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19427 *) ac_try_echo=$ac_try;;
19428 esac
19429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19430 (eval "$ac_link") 2>conftest.er1
19431 ac_status=$?
19432 grep -v '^ *+' conftest.er1 >conftest.err
19433 rm -f conftest.er1
19434 cat conftest.err >&5
19435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436 (exit $ac_status); } && {
19437 test -z "$ac_c_werror_flag" ||
19438 test ! -s conftest.err
19439 } && test -s conftest$ac_exeext &&
19440 $as_test_x conftest$ac_exeext; then
19441 ac_cv_lib_hesiod_hes_getmailhost=yes
19442 else
19443 echo "$as_me: failed program was:" >&5
19444 sed 's/^/| /' conftest.$ac_ext >&5
19445
19446 ac_cv_lib_hesiod_hes_getmailhost=no
19447 fi
19448
19449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19450 conftest$ac_exeext conftest.$ac_ext
19451 LIBS=$ac_check_lib_save_LIBS
19452 fi
19453 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19454 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19455 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19456
19457 cat >>confdefs.h <<\_ACEOF
19458 #define HAVE_LIBHESIOD 1
19459 _ACEOF
19460
19461 else
19462 :
19463 fi
19464
19465 fi
19466
19467 fi
19468
19469 # These tell us which Kerberos-related libraries to use.
19470 if test "${with_kerberos+set}" = set; then
19471
19472 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
19473 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
19474 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19475 echo $ECHO_N "(cached) $ECHO_C" >&6
19476 else
19477 ac_check_lib_save_LIBS=$LIBS
19478 LIBS="-lcom_err $LIBS"
19479 cat >conftest.$ac_ext <<_ACEOF
19480 /* confdefs.h. */
19481 _ACEOF
19482 cat confdefs.h >>conftest.$ac_ext
19483 cat >>conftest.$ac_ext <<_ACEOF
19484 /* end confdefs.h. */
19485
19486 /* Override any GCC internal prototype to avoid an error.
19487 Use char because int might match the return type of a GCC
19488 builtin and then its argument prototype would still apply. */
19489 #ifdef __cplusplus
19490 extern "C"
19491 #endif
19492 char com_err ();
19493 int
19494 main ()
19495 {
19496 return com_err ();
19497 ;
19498 return 0;
19499 }
19500 _ACEOF
19501 rm -f conftest.$ac_objext conftest$ac_exeext
19502 if { (ac_try="$ac_link"
19503 case "(($ac_try" in
19504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19505 *) ac_try_echo=$ac_try;;
19506 esac
19507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19508 (eval "$ac_link") 2>conftest.er1
19509 ac_status=$?
19510 grep -v '^ *+' conftest.er1 >conftest.err
19511 rm -f conftest.er1
19512 cat conftest.err >&5
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); } && {
19515 test -z "$ac_c_werror_flag" ||
19516 test ! -s conftest.err
19517 } && test -s conftest$ac_exeext &&
19518 $as_test_x conftest$ac_exeext; then
19519 ac_cv_lib_com_err_com_err=yes
19520 else
19521 echo "$as_me: failed program was:" >&5
19522 sed 's/^/| /' conftest.$ac_ext >&5
19523
19524 ac_cv_lib_com_err_com_err=no
19525 fi
19526
19527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19528 conftest$ac_exeext conftest.$ac_ext
19529 LIBS=$ac_check_lib_save_LIBS
19530 fi
19531 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
19532 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19533 if test $ac_cv_lib_com_err_com_err = yes; then
19534 cat >>confdefs.h <<_ACEOF
19535 #define HAVE_LIBCOM_ERR 1
19536 _ACEOF
19537
19538 LIBS="-lcom_err $LIBS"
19539
19540 fi
19541
19542
19543 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19544 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
19545 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19546 echo $ECHO_N "(cached) $ECHO_C" >&6
19547 else
19548 ac_check_lib_save_LIBS=$LIBS
19549 LIBS="-lk5crypto $LIBS"
19550 cat >conftest.$ac_ext <<_ACEOF
19551 /* confdefs.h. */
19552 _ACEOF
19553 cat confdefs.h >>conftest.$ac_ext
19554 cat >>conftest.$ac_ext <<_ACEOF
19555 /* end confdefs.h. */
19556
19557 /* Override any GCC internal prototype to avoid an error.
19558 Use char because int might match the return type of a GCC
19559 builtin and then its argument prototype would still apply. */
19560 #ifdef __cplusplus
19561 extern "C"
19562 #endif
19563 char mit_des_cbc_encrypt ();
19564 int
19565 main ()
19566 {
19567 return mit_des_cbc_encrypt ();
19568 ;
19569 return 0;
19570 }
19571 _ACEOF
19572 rm -f conftest.$ac_objext conftest$ac_exeext
19573 if { (ac_try="$ac_link"
19574 case "(($ac_try" in
19575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19576 *) ac_try_echo=$ac_try;;
19577 esac
19578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19579 (eval "$ac_link") 2>conftest.er1
19580 ac_status=$?
19581 grep -v '^ *+' conftest.er1 >conftest.err
19582 rm -f conftest.er1
19583 cat conftest.err >&5
19584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585 (exit $ac_status); } && {
19586 test -z "$ac_c_werror_flag" ||
19587 test ! -s conftest.err
19588 } && test -s conftest$ac_exeext &&
19589 $as_test_x conftest$ac_exeext; then
19590 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19591 else
19592 echo "$as_me: failed program was:" >&5
19593 sed 's/^/| /' conftest.$ac_ext >&5
19594
19595 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19596 fi
19597
19598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19599 conftest$ac_exeext conftest.$ac_ext
19600 LIBS=$ac_check_lib_save_LIBS
19601 fi
19602 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19603 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19604 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19605 cat >>confdefs.h <<_ACEOF
19606 #define HAVE_LIBK5CRYPTO 1
19607 _ACEOF
19608
19609 LIBS="-lk5crypto $LIBS"
19610
19611 fi
19612
19613
19614 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19615 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
19616 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19617 echo $ECHO_N "(cached) $ECHO_C" >&6
19618 else
19619 ac_check_lib_save_LIBS=$LIBS
19620 LIBS="-lcrypto $LIBS"
19621 cat >conftest.$ac_ext <<_ACEOF
19622 /* confdefs.h. */
19623 _ACEOF
19624 cat confdefs.h >>conftest.$ac_ext
19625 cat >>conftest.$ac_ext <<_ACEOF
19626 /* end confdefs.h. */
19627
19628 /* Override any GCC internal prototype to avoid an error.
19629 Use char because int might match the return type of a GCC
19630 builtin and then its argument prototype would still apply. */
19631 #ifdef __cplusplus
19632 extern "C"
19633 #endif
19634 char mit_des_cbc_encrypt ();
19635 int
19636 main ()
19637 {
19638 return mit_des_cbc_encrypt ();
19639 ;
19640 return 0;
19641 }
19642 _ACEOF
19643 rm -f conftest.$ac_objext conftest$ac_exeext
19644 if { (ac_try="$ac_link"
19645 case "(($ac_try" in
19646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19647 *) ac_try_echo=$ac_try;;
19648 esac
19649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19650 (eval "$ac_link") 2>conftest.er1
19651 ac_status=$?
19652 grep -v '^ *+' conftest.er1 >conftest.err
19653 rm -f conftest.er1
19654 cat conftest.err >&5
19655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656 (exit $ac_status); } && {
19657 test -z "$ac_c_werror_flag" ||
19658 test ! -s conftest.err
19659 } && test -s conftest$ac_exeext &&
19660 $as_test_x conftest$ac_exeext; then
19661 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19662 else
19663 echo "$as_me: failed program was:" >&5
19664 sed 's/^/| /' conftest.$ac_ext >&5
19665
19666 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19667 fi
19668
19669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19670 conftest$ac_exeext conftest.$ac_ext
19671 LIBS=$ac_check_lib_save_LIBS
19672 fi
19673 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19674 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19675 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19676 cat >>confdefs.h <<_ACEOF
19677 #define HAVE_LIBCRYPTO 1
19678 _ACEOF
19679
19680 LIBS="-lcrypto $LIBS"
19681
19682 fi
19683
19684
19685 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19686 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
19687 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19688 echo $ECHO_N "(cached) $ECHO_C" >&6
19689 else
19690 ac_check_lib_save_LIBS=$LIBS
19691 LIBS="-lkrb5 $LIBS"
19692 cat >conftest.$ac_ext <<_ACEOF
19693 /* confdefs.h. */
19694 _ACEOF
19695 cat confdefs.h >>conftest.$ac_ext
19696 cat >>conftest.$ac_ext <<_ACEOF
19697 /* end confdefs.h. */
19698
19699 /* Override any GCC internal prototype to avoid an error.
19700 Use char because int might match the return type of a GCC
19701 builtin and then its argument prototype would still apply. */
19702 #ifdef __cplusplus
19703 extern "C"
19704 #endif
19705 char krb5_init_context ();
19706 int
19707 main ()
19708 {
19709 return krb5_init_context ();
19710 ;
19711 return 0;
19712 }
19713 _ACEOF
19714 rm -f conftest.$ac_objext conftest$ac_exeext
19715 if { (ac_try="$ac_link"
19716 case "(($ac_try" in
19717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19718 *) ac_try_echo=$ac_try;;
19719 esac
19720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19721 (eval "$ac_link") 2>conftest.er1
19722 ac_status=$?
19723 grep -v '^ *+' conftest.er1 >conftest.err
19724 rm -f conftest.er1
19725 cat conftest.err >&5
19726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727 (exit $ac_status); } && {
19728 test -z "$ac_c_werror_flag" ||
19729 test ! -s conftest.err
19730 } && test -s conftest$ac_exeext &&
19731 $as_test_x conftest$ac_exeext; then
19732 ac_cv_lib_krb5_krb5_init_context=yes
19733 else
19734 echo "$as_me: failed program was:" >&5
19735 sed 's/^/| /' conftest.$ac_ext >&5
19736
19737 ac_cv_lib_krb5_krb5_init_context=no
19738 fi
19739
19740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19741 conftest$ac_exeext conftest.$ac_ext
19742 LIBS=$ac_check_lib_save_LIBS
19743 fi
19744 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19745 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
19746 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19747 cat >>confdefs.h <<_ACEOF
19748 #define HAVE_LIBKRB5 1
19749 _ACEOF
19750
19751 LIBS="-lkrb5 $LIBS"
19752
19753 fi
19754
19755 if test "${with_kerberos5+set}" != set; then
19756
19757 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19758 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
19759 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19760 echo $ECHO_N "(cached) $ECHO_C" >&6
19761 else
19762 ac_check_lib_save_LIBS=$LIBS
19763 LIBS="-ldes425 $LIBS"
19764 cat >conftest.$ac_ext <<_ACEOF
19765 /* confdefs.h. */
19766 _ACEOF
19767 cat confdefs.h >>conftest.$ac_ext
19768 cat >>conftest.$ac_ext <<_ACEOF
19769 /* end confdefs.h. */
19770
19771 /* Override any GCC internal prototype to avoid an error.
19772 Use char because int might match the return type of a GCC
19773 builtin and then its argument prototype would still apply. */
19774 #ifdef __cplusplus
19775 extern "C"
19776 #endif
19777 char des_cbc_encrypt ();
19778 int
19779 main ()
19780 {
19781 return des_cbc_encrypt ();
19782 ;
19783 return 0;
19784 }
19785 _ACEOF
19786 rm -f conftest.$ac_objext conftest$ac_exeext
19787 if { (ac_try="$ac_link"
19788 case "(($ac_try" in
19789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19790 *) ac_try_echo=$ac_try;;
19791 esac
19792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19793 (eval "$ac_link") 2>conftest.er1
19794 ac_status=$?
19795 grep -v '^ *+' conftest.er1 >conftest.err
19796 rm -f conftest.er1
19797 cat conftest.err >&5
19798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799 (exit $ac_status); } && {
19800 test -z "$ac_c_werror_flag" ||
19801 test ! -s conftest.err
19802 } && test -s conftest$ac_exeext &&
19803 $as_test_x conftest$ac_exeext; then
19804 ac_cv_lib_des425_des_cbc_encrypt=yes
19805 else
19806 echo "$as_me: failed program was:" >&5
19807 sed 's/^/| /' conftest.$ac_ext >&5
19808
19809 ac_cv_lib_des425_des_cbc_encrypt=no
19810 fi
19811
19812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19813 conftest$ac_exeext conftest.$ac_ext
19814 LIBS=$ac_check_lib_save_LIBS
19815 fi
19816 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19817 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
19818 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19819 cat >>confdefs.h <<_ACEOF
19820 #define HAVE_LIBDES425 1
19821 _ACEOF
19822
19823 LIBS="-ldes425 $LIBS"
19824
19825 else
19826
19827 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19828 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
19829 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19830 echo $ECHO_N "(cached) $ECHO_C" >&6
19831 else
19832 ac_check_lib_save_LIBS=$LIBS
19833 LIBS="-ldes $LIBS"
19834 cat >conftest.$ac_ext <<_ACEOF
19835 /* confdefs.h. */
19836 _ACEOF
19837 cat confdefs.h >>conftest.$ac_ext
19838 cat >>conftest.$ac_ext <<_ACEOF
19839 /* end confdefs.h. */
19840
19841 /* Override any GCC internal prototype to avoid an error.
19842 Use char because int might match the return type of a GCC
19843 builtin and then its argument prototype would still apply. */
19844 #ifdef __cplusplus
19845 extern "C"
19846 #endif
19847 char des_cbc_encrypt ();
19848 int
19849 main ()
19850 {
19851 return des_cbc_encrypt ();
19852 ;
19853 return 0;
19854 }
19855 _ACEOF
19856 rm -f conftest.$ac_objext conftest$ac_exeext
19857 if { (ac_try="$ac_link"
19858 case "(($ac_try" in
19859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19860 *) ac_try_echo=$ac_try;;
19861 esac
19862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19863 (eval "$ac_link") 2>conftest.er1
19864 ac_status=$?
19865 grep -v '^ *+' conftest.er1 >conftest.err
19866 rm -f conftest.er1
19867 cat conftest.err >&5
19868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869 (exit $ac_status); } && {
19870 test -z "$ac_c_werror_flag" ||
19871 test ! -s conftest.err
19872 } && test -s conftest$ac_exeext &&
19873 $as_test_x conftest$ac_exeext; then
19874 ac_cv_lib_des_des_cbc_encrypt=yes
19875 else
19876 echo "$as_me: failed program was:" >&5
19877 sed 's/^/| /' conftest.$ac_ext >&5
19878
19879 ac_cv_lib_des_des_cbc_encrypt=no
19880 fi
19881
19882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19883 conftest$ac_exeext conftest.$ac_ext
19884 LIBS=$ac_check_lib_save_LIBS
19885 fi
19886 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19887 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
19888 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19889 cat >>confdefs.h <<_ACEOF
19890 #define HAVE_LIBDES 1
19891 _ACEOF
19892
19893 LIBS="-ldes $LIBS"
19894
19895 fi
19896
19897 fi
19898
19899
19900 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19901 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
19902 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19903 echo $ECHO_N "(cached) $ECHO_C" >&6
19904 else
19905 ac_check_lib_save_LIBS=$LIBS
19906 LIBS="-lkrb4 $LIBS"
19907 cat >conftest.$ac_ext <<_ACEOF
19908 /* confdefs.h. */
19909 _ACEOF
19910 cat confdefs.h >>conftest.$ac_ext
19911 cat >>conftest.$ac_ext <<_ACEOF
19912 /* end confdefs.h. */
19913
19914 /* Override any GCC internal prototype to avoid an error.
19915 Use char because int might match the return type of a GCC
19916 builtin and then its argument prototype would still apply. */
19917 #ifdef __cplusplus
19918 extern "C"
19919 #endif
19920 char krb_get_cred ();
19921 int
19922 main ()
19923 {
19924 return krb_get_cred ();
19925 ;
19926 return 0;
19927 }
19928 _ACEOF
19929 rm -f conftest.$ac_objext conftest$ac_exeext
19930 if { (ac_try="$ac_link"
19931 case "(($ac_try" in
19932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19933 *) ac_try_echo=$ac_try;;
19934 esac
19935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19936 (eval "$ac_link") 2>conftest.er1
19937 ac_status=$?
19938 grep -v '^ *+' conftest.er1 >conftest.err
19939 rm -f conftest.er1
19940 cat conftest.err >&5
19941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942 (exit $ac_status); } && {
19943 test -z "$ac_c_werror_flag" ||
19944 test ! -s conftest.err
19945 } && test -s conftest$ac_exeext &&
19946 $as_test_x conftest$ac_exeext; then
19947 ac_cv_lib_krb4_krb_get_cred=yes
19948 else
19949 echo "$as_me: failed program was:" >&5
19950 sed 's/^/| /' conftest.$ac_ext >&5
19951
19952 ac_cv_lib_krb4_krb_get_cred=no
19953 fi
19954
19955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19956 conftest$ac_exeext conftest.$ac_ext
19957 LIBS=$ac_check_lib_save_LIBS
19958 fi
19959 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19960 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
19961 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19962 cat >>confdefs.h <<_ACEOF
19963 #define HAVE_LIBKRB4 1
19964 _ACEOF
19965
19966 LIBS="-lkrb4 $LIBS"
19967
19968 else
19969
19970 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19971 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
19972 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19973 echo $ECHO_N "(cached) $ECHO_C" >&6
19974 else
19975 ac_check_lib_save_LIBS=$LIBS
19976 LIBS="-lkrb $LIBS"
19977 cat >conftest.$ac_ext <<_ACEOF
19978 /* confdefs.h. */
19979 _ACEOF
19980 cat confdefs.h >>conftest.$ac_ext
19981 cat >>conftest.$ac_ext <<_ACEOF
19982 /* end confdefs.h. */
19983
19984 /* Override any GCC internal prototype to avoid an error.
19985 Use char because int might match the return type of a GCC
19986 builtin and then its argument prototype would still apply. */
19987 #ifdef __cplusplus
19988 extern "C"
19989 #endif
19990 char krb_get_cred ();
19991 int
19992 main ()
19993 {
19994 return krb_get_cred ();
19995 ;
19996 return 0;
19997 }
19998 _ACEOF
19999 rm -f conftest.$ac_objext conftest$ac_exeext
20000 if { (ac_try="$ac_link"
20001 case "(($ac_try" in
20002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20003 *) ac_try_echo=$ac_try;;
20004 esac
20005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20006 (eval "$ac_link") 2>conftest.er1
20007 ac_status=$?
20008 grep -v '^ *+' conftest.er1 >conftest.err
20009 rm -f conftest.er1
20010 cat conftest.err >&5
20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); } && {
20013 test -z "$ac_c_werror_flag" ||
20014 test ! -s conftest.err
20015 } && test -s conftest$ac_exeext &&
20016 $as_test_x conftest$ac_exeext; then
20017 ac_cv_lib_krb_krb_get_cred=yes
20018 else
20019 echo "$as_me: failed program was:" >&5
20020 sed 's/^/| /' conftest.$ac_ext >&5
20021
20022 ac_cv_lib_krb_krb_get_cred=no
20023 fi
20024
20025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20026 conftest$ac_exeext conftest.$ac_ext
20027 LIBS=$ac_check_lib_save_LIBS
20028 fi
20029 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20030 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20031 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20032 cat >>confdefs.h <<_ACEOF
20033 #define HAVE_LIBKRB 1
20034 _ACEOF
20035
20036 LIBS="-lkrb $LIBS"
20037
20038 fi
20039
20040 fi
20041
20042 fi
20043
20044 if test "${with_kerberos5+set}" = set; then
20045
20046 for ac_header in krb5.h
20047 do
20048 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20050 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20053 echo $ECHO_N "(cached) $ECHO_C" >&6
20054 fi
20055 ac_res=`eval echo '${'$as_ac_Header'}'`
20056 { echo "$as_me:$LINENO: result: $ac_res" >&5
20057 echo "${ECHO_T}$ac_res" >&6; }
20058 else
20059 # Is the header compilable?
20060 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20061 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20062 cat >conftest.$ac_ext <<_ACEOF
20063 /* confdefs.h. */
20064 _ACEOF
20065 cat confdefs.h >>conftest.$ac_ext
20066 cat >>conftest.$ac_ext <<_ACEOF
20067 /* end confdefs.h. */
20068 $ac_includes_default
20069 #include <$ac_header>
20070 _ACEOF
20071 rm -f conftest.$ac_objext
20072 if { (ac_try="$ac_compile"
20073 case "(($ac_try" in
20074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20075 *) ac_try_echo=$ac_try;;
20076 esac
20077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20078 (eval "$ac_compile") 2>conftest.er1
20079 ac_status=$?
20080 grep -v '^ *+' conftest.er1 >conftest.err
20081 rm -f conftest.er1
20082 cat conftest.err >&5
20083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084 (exit $ac_status); } && {
20085 test -z "$ac_c_werror_flag" ||
20086 test ! -s conftest.err
20087 } && test -s conftest.$ac_objext; then
20088 ac_header_compiler=yes
20089 else
20090 echo "$as_me: failed program was:" >&5
20091 sed 's/^/| /' conftest.$ac_ext >&5
20092
20093 ac_header_compiler=no
20094 fi
20095
20096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20097 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20098 echo "${ECHO_T}$ac_header_compiler" >&6; }
20099
20100 # Is the header present?
20101 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20102 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20103 cat >conftest.$ac_ext <<_ACEOF
20104 /* confdefs.h. */
20105 _ACEOF
20106 cat confdefs.h >>conftest.$ac_ext
20107 cat >>conftest.$ac_ext <<_ACEOF
20108 /* end confdefs.h. */
20109 #include <$ac_header>
20110 _ACEOF
20111 if { (ac_try="$ac_cpp conftest.$ac_ext"
20112 case "(($ac_try" in
20113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20114 *) ac_try_echo=$ac_try;;
20115 esac
20116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20117 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20118 ac_status=$?
20119 grep -v '^ *+' conftest.er1 >conftest.err
20120 rm -f conftest.er1
20121 cat conftest.err >&5
20122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123 (exit $ac_status); } >/dev/null && {
20124 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20125 test ! -s conftest.err
20126 }; then
20127 ac_header_preproc=yes
20128 else
20129 echo "$as_me: failed program was:" >&5
20130 sed 's/^/| /' conftest.$ac_ext >&5
20131
20132 ac_header_preproc=no
20133 fi
20134
20135 rm -f conftest.err conftest.$ac_ext
20136 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20137 echo "${ECHO_T}$ac_header_preproc" >&6; }
20138
20139 # So? What about this header?
20140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20141 yes:no: )
20142 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20143 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20145 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20146 ac_header_preproc=yes
20147 ;;
20148 no:yes:* )
20149 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20150 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20151 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20152 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20153 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20154 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20155 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20156 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20159 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20160 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20161
20162 ;;
20163 esac
20164 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20167 echo $ECHO_N "(cached) $ECHO_C" >&6
20168 else
20169 eval "$as_ac_Header=\$ac_header_preproc"
20170 fi
20171 ac_res=`eval echo '${'$as_ac_Header'}'`
20172 { echo "$as_me:$LINENO: result: $ac_res" >&5
20173 echo "${ECHO_T}$ac_res" >&6; }
20174
20175 fi
20176 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20177 cat >>confdefs.h <<_ACEOF
20178 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20179 _ACEOF
20180
20181 fi
20182
20183 done
20184
20185 else
20186
20187 for ac_header in des.h
20188 do
20189 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20191 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20194 echo $ECHO_N "(cached) $ECHO_C" >&6
20195 fi
20196 ac_res=`eval echo '${'$as_ac_Header'}'`
20197 { echo "$as_me:$LINENO: result: $ac_res" >&5
20198 echo "${ECHO_T}$ac_res" >&6; }
20199 else
20200 # Is the header compilable?
20201 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20202 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20203 cat >conftest.$ac_ext <<_ACEOF
20204 /* confdefs.h. */
20205 _ACEOF
20206 cat confdefs.h >>conftest.$ac_ext
20207 cat >>conftest.$ac_ext <<_ACEOF
20208 /* end confdefs.h. */
20209 $ac_includes_default
20210 #include <$ac_header>
20211 _ACEOF
20212 rm -f conftest.$ac_objext
20213 if { (ac_try="$ac_compile"
20214 case "(($ac_try" in
20215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20216 *) ac_try_echo=$ac_try;;
20217 esac
20218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20219 (eval "$ac_compile") 2>conftest.er1
20220 ac_status=$?
20221 grep -v '^ *+' conftest.er1 >conftest.err
20222 rm -f conftest.er1
20223 cat conftest.err >&5
20224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225 (exit $ac_status); } && {
20226 test -z "$ac_c_werror_flag" ||
20227 test ! -s conftest.err
20228 } && test -s conftest.$ac_objext; then
20229 ac_header_compiler=yes
20230 else
20231 echo "$as_me: failed program was:" >&5
20232 sed 's/^/| /' conftest.$ac_ext >&5
20233
20234 ac_header_compiler=no
20235 fi
20236
20237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20238 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20239 echo "${ECHO_T}$ac_header_compiler" >&6; }
20240
20241 # Is the header present?
20242 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20243 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20244 cat >conftest.$ac_ext <<_ACEOF
20245 /* confdefs.h. */
20246 _ACEOF
20247 cat confdefs.h >>conftest.$ac_ext
20248 cat >>conftest.$ac_ext <<_ACEOF
20249 /* end confdefs.h. */
20250 #include <$ac_header>
20251 _ACEOF
20252 if { (ac_try="$ac_cpp conftest.$ac_ext"
20253 case "(($ac_try" in
20254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20255 *) ac_try_echo=$ac_try;;
20256 esac
20257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20259 ac_status=$?
20260 grep -v '^ *+' conftest.er1 >conftest.err
20261 rm -f conftest.er1
20262 cat conftest.err >&5
20263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264 (exit $ac_status); } >/dev/null && {
20265 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20266 test ! -s conftest.err
20267 }; then
20268 ac_header_preproc=yes
20269 else
20270 echo "$as_me: failed program was:" >&5
20271 sed 's/^/| /' conftest.$ac_ext >&5
20272
20273 ac_header_preproc=no
20274 fi
20275
20276 rm -f conftest.err conftest.$ac_ext
20277 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20278 echo "${ECHO_T}$ac_header_preproc" >&6; }
20279
20280 # So? What about this header?
20281 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20282 yes:no: )
20283 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20284 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20286 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20287 ac_header_preproc=yes
20288 ;;
20289 no:yes:* )
20290 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20291 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20292 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20293 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20294 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20295 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20296 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20297 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20299 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20300 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20301 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20302
20303 ;;
20304 esac
20305 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20308 echo $ECHO_N "(cached) $ECHO_C" >&6
20309 else
20310 eval "$as_ac_Header=\$ac_header_preproc"
20311 fi
20312 ac_res=`eval echo '${'$as_ac_Header'}'`
20313 { echo "$as_me:$LINENO: result: $ac_res" >&5
20314 echo "${ECHO_T}$ac_res" >&6; }
20315
20316 fi
20317 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20318 cat >>confdefs.h <<_ACEOF
20319 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20320 _ACEOF
20321
20322 else
20323
20324 for ac_header in kerberosIV/des.h
20325 do
20326 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20328 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20331 echo $ECHO_N "(cached) $ECHO_C" >&6
20332 fi
20333 ac_res=`eval echo '${'$as_ac_Header'}'`
20334 { echo "$as_me:$LINENO: result: $ac_res" >&5
20335 echo "${ECHO_T}$ac_res" >&6; }
20336 else
20337 # Is the header compilable?
20338 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20339 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20340 cat >conftest.$ac_ext <<_ACEOF
20341 /* confdefs.h. */
20342 _ACEOF
20343 cat confdefs.h >>conftest.$ac_ext
20344 cat >>conftest.$ac_ext <<_ACEOF
20345 /* end confdefs.h. */
20346 $ac_includes_default
20347 #include <$ac_header>
20348 _ACEOF
20349 rm -f conftest.$ac_objext
20350 if { (ac_try="$ac_compile"
20351 case "(($ac_try" in
20352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20353 *) ac_try_echo=$ac_try;;
20354 esac
20355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20356 (eval "$ac_compile") 2>conftest.er1
20357 ac_status=$?
20358 grep -v '^ *+' conftest.er1 >conftest.err
20359 rm -f conftest.er1
20360 cat conftest.err >&5
20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); } && {
20363 test -z "$ac_c_werror_flag" ||
20364 test ! -s conftest.err
20365 } && test -s conftest.$ac_objext; then
20366 ac_header_compiler=yes
20367 else
20368 echo "$as_me: failed program was:" >&5
20369 sed 's/^/| /' conftest.$ac_ext >&5
20370
20371 ac_header_compiler=no
20372 fi
20373
20374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20375 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20376 echo "${ECHO_T}$ac_header_compiler" >&6; }
20377
20378 # Is the header present?
20379 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20380 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20381 cat >conftest.$ac_ext <<_ACEOF
20382 /* confdefs.h. */
20383 _ACEOF
20384 cat confdefs.h >>conftest.$ac_ext
20385 cat >>conftest.$ac_ext <<_ACEOF
20386 /* end confdefs.h. */
20387 #include <$ac_header>
20388 _ACEOF
20389 if { (ac_try="$ac_cpp conftest.$ac_ext"
20390 case "(($ac_try" in
20391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20392 *) ac_try_echo=$ac_try;;
20393 esac
20394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20395 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20396 ac_status=$?
20397 grep -v '^ *+' conftest.er1 >conftest.err
20398 rm -f conftest.er1
20399 cat conftest.err >&5
20400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401 (exit $ac_status); } >/dev/null && {
20402 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20403 test ! -s conftest.err
20404 }; then
20405 ac_header_preproc=yes
20406 else
20407 echo "$as_me: failed program was:" >&5
20408 sed 's/^/| /' conftest.$ac_ext >&5
20409
20410 ac_header_preproc=no
20411 fi
20412
20413 rm -f conftest.err conftest.$ac_ext
20414 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20415 echo "${ECHO_T}$ac_header_preproc" >&6; }
20416
20417 # So? What about this header?
20418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20419 yes:no: )
20420 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20421 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20423 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20424 ac_header_preproc=yes
20425 ;;
20426 no:yes:* )
20427 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20428 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20429 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20430 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20431 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20432 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20433 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20434 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20436 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20437 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20438 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20439
20440 ;;
20441 esac
20442 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20445 echo $ECHO_N "(cached) $ECHO_C" >&6
20446 else
20447 eval "$as_ac_Header=\$ac_header_preproc"
20448 fi
20449 ac_res=`eval echo '${'$as_ac_Header'}'`
20450 { echo "$as_me:$LINENO: result: $ac_res" >&5
20451 echo "${ECHO_T}$ac_res" >&6; }
20452
20453 fi
20454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20455 cat >>confdefs.h <<_ACEOF
20456 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20457 _ACEOF
20458
20459 else
20460
20461 for ac_header in kerberos/des.h
20462 do
20463 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20464 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20465 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20468 echo $ECHO_N "(cached) $ECHO_C" >&6
20469 fi
20470 ac_res=`eval echo '${'$as_ac_Header'}'`
20471 { echo "$as_me:$LINENO: result: $ac_res" >&5
20472 echo "${ECHO_T}$ac_res" >&6; }
20473 else
20474 # Is the header compilable?
20475 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20477 cat >conftest.$ac_ext <<_ACEOF
20478 /* confdefs.h. */
20479 _ACEOF
20480 cat confdefs.h >>conftest.$ac_ext
20481 cat >>conftest.$ac_ext <<_ACEOF
20482 /* end confdefs.h. */
20483 $ac_includes_default
20484 #include <$ac_header>
20485 _ACEOF
20486 rm -f conftest.$ac_objext
20487 if { (ac_try="$ac_compile"
20488 case "(($ac_try" in
20489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20490 *) ac_try_echo=$ac_try;;
20491 esac
20492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20493 (eval "$ac_compile") 2>conftest.er1
20494 ac_status=$?
20495 grep -v '^ *+' conftest.er1 >conftest.err
20496 rm -f conftest.er1
20497 cat conftest.err >&5
20498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499 (exit $ac_status); } && {
20500 test -z "$ac_c_werror_flag" ||
20501 test ! -s conftest.err
20502 } && test -s conftest.$ac_objext; then
20503 ac_header_compiler=yes
20504 else
20505 echo "$as_me: failed program was:" >&5
20506 sed 's/^/| /' conftest.$ac_ext >&5
20507
20508 ac_header_compiler=no
20509 fi
20510
20511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20512 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20513 echo "${ECHO_T}$ac_header_compiler" >&6; }
20514
20515 # Is the header present?
20516 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20518 cat >conftest.$ac_ext <<_ACEOF
20519 /* confdefs.h. */
20520 _ACEOF
20521 cat confdefs.h >>conftest.$ac_ext
20522 cat >>conftest.$ac_ext <<_ACEOF
20523 /* end confdefs.h. */
20524 #include <$ac_header>
20525 _ACEOF
20526 if { (ac_try="$ac_cpp conftest.$ac_ext"
20527 case "(($ac_try" in
20528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20529 *) ac_try_echo=$ac_try;;
20530 esac
20531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20533 ac_status=$?
20534 grep -v '^ *+' conftest.er1 >conftest.err
20535 rm -f conftest.er1
20536 cat conftest.err >&5
20537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20538 (exit $ac_status); } >/dev/null && {
20539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20540 test ! -s conftest.err
20541 }; then
20542 ac_header_preproc=yes
20543 else
20544 echo "$as_me: failed program was:" >&5
20545 sed 's/^/| /' conftest.$ac_ext >&5
20546
20547 ac_header_preproc=no
20548 fi
20549
20550 rm -f conftest.err conftest.$ac_ext
20551 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20552 echo "${ECHO_T}$ac_header_preproc" >&6; }
20553
20554 # So? What about this header?
20555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20556 yes:no: )
20557 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20558 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20560 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20561 ac_header_preproc=yes
20562 ;;
20563 no:yes:* )
20564 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20565 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20566 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20567 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20568 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20569 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20570 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20571 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20573 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20574 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20575 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20576
20577 ;;
20578 esac
20579 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20582 echo $ECHO_N "(cached) $ECHO_C" >&6
20583 else
20584 eval "$as_ac_Header=\$ac_header_preproc"
20585 fi
20586 ac_res=`eval echo '${'$as_ac_Header'}'`
20587 { echo "$as_me:$LINENO: result: $ac_res" >&5
20588 echo "${ECHO_T}$ac_res" >&6; }
20589
20590 fi
20591 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20592 cat >>confdefs.h <<_ACEOF
20593 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20594 _ACEOF
20595
20596 fi
20597
20598 done
20599
20600 fi
20601
20602 done
20603
20604 fi
20605
20606 done
20607
20608
20609 for ac_header in krb.h
20610 do
20611 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20613 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20616 echo $ECHO_N "(cached) $ECHO_C" >&6
20617 fi
20618 ac_res=`eval echo '${'$as_ac_Header'}'`
20619 { echo "$as_me:$LINENO: result: $ac_res" >&5
20620 echo "${ECHO_T}$ac_res" >&6; }
20621 else
20622 # Is the header compilable?
20623 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20624 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20625 cat >conftest.$ac_ext <<_ACEOF
20626 /* confdefs.h. */
20627 _ACEOF
20628 cat confdefs.h >>conftest.$ac_ext
20629 cat >>conftest.$ac_ext <<_ACEOF
20630 /* end confdefs.h. */
20631 $ac_includes_default
20632 #include <$ac_header>
20633 _ACEOF
20634 rm -f conftest.$ac_objext
20635 if { (ac_try="$ac_compile"
20636 case "(($ac_try" in
20637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20638 *) ac_try_echo=$ac_try;;
20639 esac
20640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20641 (eval "$ac_compile") 2>conftest.er1
20642 ac_status=$?
20643 grep -v '^ *+' conftest.er1 >conftest.err
20644 rm -f conftest.er1
20645 cat conftest.err >&5
20646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647 (exit $ac_status); } && {
20648 test -z "$ac_c_werror_flag" ||
20649 test ! -s conftest.err
20650 } && test -s conftest.$ac_objext; then
20651 ac_header_compiler=yes
20652 else
20653 echo "$as_me: failed program was:" >&5
20654 sed 's/^/| /' conftest.$ac_ext >&5
20655
20656 ac_header_compiler=no
20657 fi
20658
20659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20660 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20661 echo "${ECHO_T}$ac_header_compiler" >&6; }
20662
20663 # Is the header present?
20664 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20665 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20666 cat >conftest.$ac_ext <<_ACEOF
20667 /* confdefs.h. */
20668 _ACEOF
20669 cat confdefs.h >>conftest.$ac_ext
20670 cat >>conftest.$ac_ext <<_ACEOF
20671 /* end confdefs.h. */
20672 #include <$ac_header>
20673 _ACEOF
20674 if { (ac_try="$ac_cpp conftest.$ac_ext"
20675 case "(($ac_try" in
20676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20677 *) ac_try_echo=$ac_try;;
20678 esac
20679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20681 ac_status=$?
20682 grep -v '^ *+' conftest.er1 >conftest.err
20683 rm -f conftest.er1
20684 cat conftest.err >&5
20685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686 (exit $ac_status); } >/dev/null && {
20687 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20688 test ! -s conftest.err
20689 }; then
20690 ac_header_preproc=yes
20691 else
20692 echo "$as_me: failed program was:" >&5
20693 sed 's/^/| /' conftest.$ac_ext >&5
20694
20695 ac_header_preproc=no
20696 fi
20697
20698 rm -f conftest.err conftest.$ac_ext
20699 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20700 echo "${ECHO_T}$ac_header_preproc" >&6; }
20701
20702 # So? What about this header?
20703 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20704 yes:no: )
20705 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20706 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20708 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20709 ac_header_preproc=yes
20710 ;;
20711 no:yes:* )
20712 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20713 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20714 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20715 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20716 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20717 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20718 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20719 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20721 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20722 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20723 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20724
20725 ;;
20726 esac
20727 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20730 echo $ECHO_N "(cached) $ECHO_C" >&6
20731 else
20732 eval "$as_ac_Header=\$ac_header_preproc"
20733 fi
20734 ac_res=`eval echo '${'$as_ac_Header'}'`
20735 { echo "$as_me:$LINENO: result: $ac_res" >&5
20736 echo "${ECHO_T}$ac_res" >&6; }
20737
20738 fi
20739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20740 cat >>confdefs.h <<_ACEOF
20741 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20742 _ACEOF
20743
20744 else
20745
20746 for ac_header in kerberosIV/krb.h
20747 do
20748 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20749 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20750 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20753 echo $ECHO_N "(cached) $ECHO_C" >&6
20754 fi
20755 ac_res=`eval echo '${'$as_ac_Header'}'`
20756 { echo "$as_me:$LINENO: result: $ac_res" >&5
20757 echo "${ECHO_T}$ac_res" >&6; }
20758 else
20759 # Is the header compilable?
20760 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20761 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20762 cat >conftest.$ac_ext <<_ACEOF
20763 /* confdefs.h. */
20764 _ACEOF
20765 cat confdefs.h >>conftest.$ac_ext
20766 cat >>conftest.$ac_ext <<_ACEOF
20767 /* end confdefs.h. */
20768 $ac_includes_default
20769 #include <$ac_header>
20770 _ACEOF
20771 rm -f conftest.$ac_objext
20772 if { (ac_try="$ac_compile"
20773 case "(($ac_try" in
20774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20775 *) ac_try_echo=$ac_try;;
20776 esac
20777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20778 (eval "$ac_compile") 2>conftest.er1
20779 ac_status=$?
20780 grep -v '^ *+' conftest.er1 >conftest.err
20781 rm -f conftest.er1
20782 cat conftest.err >&5
20783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784 (exit $ac_status); } && {
20785 test -z "$ac_c_werror_flag" ||
20786 test ! -s conftest.err
20787 } && test -s conftest.$ac_objext; then
20788 ac_header_compiler=yes
20789 else
20790 echo "$as_me: failed program was:" >&5
20791 sed 's/^/| /' conftest.$ac_ext >&5
20792
20793 ac_header_compiler=no
20794 fi
20795
20796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20797 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20798 echo "${ECHO_T}$ac_header_compiler" >&6; }
20799
20800 # Is the header present?
20801 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20802 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20803 cat >conftest.$ac_ext <<_ACEOF
20804 /* confdefs.h. */
20805 _ACEOF
20806 cat confdefs.h >>conftest.$ac_ext
20807 cat >>conftest.$ac_ext <<_ACEOF
20808 /* end confdefs.h. */
20809 #include <$ac_header>
20810 _ACEOF
20811 if { (ac_try="$ac_cpp conftest.$ac_ext"
20812 case "(($ac_try" in
20813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20814 *) ac_try_echo=$ac_try;;
20815 esac
20816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20818 ac_status=$?
20819 grep -v '^ *+' conftest.er1 >conftest.err
20820 rm -f conftest.er1
20821 cat conftest.err >&5
20822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823 (exit $ac_status); } >/dev/null && {
20824 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20825 test ! -s conftest.err
20826 }; then
20827 ac_header_preproc=yes
20828 else
20829 echo "$as_me: failed program was:" >&5
20830 sed 's/^/| /' conftest.$ac_ext >&5
20831
20832 ac_header_preproc=no
20833 fi
20834
20835 rm -f conftest.err conftest.$ac_ext
20836 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20837 echo "${ECHO_T}$ac_header_preproc" >&6; }
20838
20839 # So? What about this header?
20840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20841 yes:no: )
20842 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20843 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20845 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20846 ac_header_preproc=yes
20847 ;;
20848 no:yes:* )
20849 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20850 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20851 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20852 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20853 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20854 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20855 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20856 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20858 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20859 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20860 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20861
20862 ;;
20863 esac
20864 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20867 echo $ECHO_N "(cached) $ECHO_C" >&6
20868 else
20869 eval "$as_ac_Header=\$ac_header_preproc"
20870 fi
20871 ac_res=`eval echo '${'$as_ac_Header'}'`
20872 { echo "$as_me:$LINENO: result: $ac_res" >&5
20873 echo "${ECHO_T}$ac_res" >&6; }
20874
20875 fi
20876 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20877 cat >>confdefs.h <<_ACEOF
20878 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20879 _ACEOF
20880
20881 else
20882
20883 for ac_header in kerberos/krb.h
20884 do
20885 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20886 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20887 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20890 echo $ECHO_N "(cached) $ECHO_C" >&6
20891 fi
20892 ac_res=`eval echo '${'$as_ac_Header'}'`
20893 { echo "$as_me:$LINENO: result: $ac_res" >&5
20894 echo "${ECHO_T}$ac_res" >&6; }
20895 else
20896 # Is the header compilable?
20897 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20898 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20899 cat >conftest.$ac_ext <<_ACEOF
20900 /* confdefs.h. */
20901 _ACEOF
20902 cat confdefs.h >>conftest.$ac_ext
20903 cat >>conftest.$ac_ext <<_ACEOF
20904 /* end confdefs.h. */
20905 $ac_includes_default
20906 #include <$ac_header>
20907 _ACEOF
20908 rm -f conftest.$ac_objext
20909 if { (ac_try="$ac_compile"
20910 case "(($ac_try" in
20911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20912 *) ac_try_echo=$ac_try;;
20913 esac
20914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20915 (eval "$ac_compile") 2>conftest.er1
20916 ac_status=$?
20917 grep -v '^ *+' conftest.er1 >conftest.err
20918 rm -f conftest.er1
20919 cat conftest.err >&5
20920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921 (exit $ac_status); } && {
20922 test -z "$ac_c_werror_flag" ||
20923 test ! -s conftest.err
20924 } && test -s conftest.$ac_objext; then
20925 ac_header_compiler=yes
20926 else
20927 echo "$as_me: failed program was:" >&5
20928 sed 's/^/| /' conftest.$ac_ext >&5
20929
20930 ac_header_compiler=no
20931 fi
20932
20933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20934 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20935 echo "${ECHO_T}$ac_header_compiler" >&6; }
20936
20937 # Is the header present?
20938 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20939 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20940 cat >conftest.$ac_ext <<_ACEOF
20941 /* confdefs.h. */
20942 _ACEOF
20943 cat confdefs.h >>conftest.$ac_ext
20944 cat >>conftest.$ac_ext <<_ACEOF
20945 /* end confdefs.h. */
20946 #include <$ac_header>
20947 _ACEOF
20948 if { (ac_try="$ac_cpp conftest.$ac_ext"
20949 case "(($ac_try" in
20950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20951 *) ac_try_echo=$ac_try;;
20952 esac
20953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20954 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20955 ac_status=$?
20956 grep -v '^ *+' conftest.er1 >conftest.err
20957 rm -f conftest.er1
20958 cat conftest.err >&5
20959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20960 (exit $ac_status); } >/dev/null && {
20961 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20962 test ! -s conftest.err
20963 }; then
20964 ac_header_preproc=yes
20965 else
20966 echo "$as_me: failed program was:" >&5
20967 sed 's/^/| /' conftest.$ac_ext >&5
20968
20969 ac_header_preproc=no
20970 fi
20971
20972 rm -f conftest.err conftest.$ac_ext
20973 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20974 echo "${ECHO_T}$ac_header_preproc" >&6; }
20975
20976 # So? What about this header?
20977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20978 yes:no: )
20979 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20980 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20981 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20982 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20983 ac_header_preproc=yes
20984 ;;
20985 no:yes:* )
20986 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20987 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20988 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20989 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20990 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20991 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20992 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20993 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20995 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20996 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20997 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20998
20999 ;;
21000 esac
21001 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21004 echo $ECHO_N "(cached) $ECHO_C" >&6
21005 else
21006 eval "$as_ac_Header=\$ac_header_preproc"
21007 fi
21008 ac_res=`eval echo '${'$as_ac_Header'}'`
21009 { echo "$as_me:$LINENO: result: $ac_res" >&5
21010 echo "${ECHO_T}$ac_res" >&6; }
21011
21012 fi
21013 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21014 cat >>confdefs.h <<_ACEOF
21015 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21016 _ACEOF
21017
21018 fi
21019
21020 done
21021
21022 fi
21023
21024 done
21025
21026 fi
21027
21028 done
21029
21030 fi
21031
21032 for ac_header in com_err.h
21033 do
21034 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21036 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21039 echo $ECHO_N "(cached) $ECHO_C" >&6
21040 fi
21041 ac_res=`eval echo '${'$as_ac_Header'}'`
21042 { echo "$as_me:$LINENO: result: $ac_res" >&5
21043 echo "${ECHO_T}$ac_res" >&6; }
21044 else
21045 # Is the header compilable?
21046 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21047 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21048 cat >conftest.$ac_ext <<_ACEOF
21049 /* confdefs.h. */
21050 _ACEOF
21051 cat confdefs.h >>conftest.$ac_ext
21052 cat >>conftest.$ac_ext <<_ACEOF
21053 /* end confdefs.h. */
21054 $ac_includes_default
21055 #include <$ac_header>
21056 _ACEOF
21057 rm -f conftest.$ac_objext
21058 if { (ac_try="$ac_compile"
21059 case "(($ac_try" in
21060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21061 *) ac_try_echo=$ac_try;;
21062 esac
21063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21064 (eval "$ac_compile") 2>conftest.er1
21065 ac_status=$?
21066 grep -v '^ *+' conftest.er1 >conftest.err
21067 rm -f conftest.er1
21068 cat conftest.err >&5
21069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070 (exit $ac_status); } && {
21071 test -z "$ac_c_werror_flag" ||
21072 test ! -s conftest.err
21073 } && test -s conftest.$ac_objext; then
21074 ac_header_compiler=yes
21075 else
21076 echo "$as_me: failed program was:" >&5
21077 sed 's/^/| /' conftest.$ac_ext >&5
21078
21079 ac_header_compiler=no
21080 fi
21081
21082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21083 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21084 echo "${ECHO_T}$ac_header_compiler" >&6; }
21085
21086 # Is the header present?
21087 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21088 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21089 cat >conftest.$ac_ext <<_ACEOF
21090 /* confdefs.h. */
21091 _ACEOF
21092 cat confdefs.h >>conftest.$ac_ext
21093 cat >>conftest.$ac_ext <<_ACEOF
21094 /* end confdefs.h. */
21095 #include <$ac_header>
21096 _ACEOF
21097 if { (ac_try="$ac_cpp conftest.$ac_ext"
21098 case "(($ac_try" in
21099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21100 *) ac_try_echo=$ac_try;;
21101 esac
21102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21104 ac_status=$?
21105 grep -v '^ *+' conftest.er1 >conftest.err
21106 rm -f conftest.er1
21107 cat conftest.err >&5
21108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109 (exit $ac_status); } >/dev/null && {
21110 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21111 test ! -s conftest.err
21112 }; then
21113 ac_header_preproc=yes
21114 else
21115 echo "$as_me: failed program was:" >&5
21116 sed 's/^/| /' conftest.$ac_ext >&5
21117
21118 ac_header_preproc=no
21119 fi
21120
21121 rm -f conftest.err conftest.$ac_ext
21122 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21123 echo "${ECHO_T}$ac_header_preproc" >&6; }
21124
21125 # So? What about this header?
21126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21127 yes:no: )
21128 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21129 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21131 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21132 ac_header_preproc=yes
21133 ;;
21134 no:yes:* )
21135 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21136 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21137 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21138 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21139 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21140 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21141 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21142 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21145 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21146 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21147
21148 ;;
21149 esac
21150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21153 echo $ECHO_N "(cached) $ECHO_C" >&6
21154 else
21155 eval "$as_ac_Header=\$ac_header_preproc"
21156 fi
21157 ac_res=`eval echo '${'$as_ac_Header'}'`
21158 { echo "$as_me:$LINENO: result: $ac_res" >&5
21159 echo "${ECHO_T}$ac_res" >&6; }
21160
21161 fi
21162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21163 cat >>confdefs.h <<_ACEOF
21164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21165 _ACEOF
21166
21167 fi
21168
21169 done
21170
21171 fi
21172
21173 # Solaris requires -lintl if you want strerror (which calls dgettext)
21174 # to return localized messages.
21175
21176 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21177 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21178 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21179 echo $ECHO_N "(cached) $ECHO_C" >&6
21180 else
21181 ac_check_lib_save_LIBS=$LIBS
21182 LIBS="-lintl $LIBS"
21183 cat >conftest.$ac_ext <<_ACEOF
21184 /* confdefs.h. */
21185 _ACEOF
21186 cat confdefs.h >>conftest.$ac_ext
21187 cat >>conftest.$ac_ext <<_ACEOF
21188 /* end confdefs.h. */
21189
21190 /* Override any GCC internal prototype to avoid an error.
21191 Use char because int might match the return type of a GCC
21192 builtin and then its argument prototype would still apply. */
21193 #ifdef __cplusplus
21194 extern "C"
21195 #endif
21196 char dgettext ();
21197 int
21198 main ()
21199 {
21200 return dgettext ();
21201 ;
21202 return 0;
21203 }
21204 _ACEOF
21205 rm -f conftest.$ac_objext conftest$ac_exeext
21206 if { (ac_try="$ac_link"
21207 case "(($ac_try" in
21208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21209 *) ac_try_echo=$ac_try;;
21210 esac
21211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21212 (eval "$ac_link") 2>conftest.er1
21213 ac_status=$?
21214 grep -v '^ *+' conftest.er1 >conftest.err
21215 rm -f conftest.er1
21216 cat conftest.err >&5
21217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21218 (exit $ac_status); } && {
21219 test -z "$ac_c_werror_flag" ||
21220 test ! -s conftest.err
21221 } && test -s conftest$ac_exeext &&
21222 $as_test_x conftest$ac_exeext; then
21223 ac_cv_lib_intl_dgettext=yes
21224 else
21225 echo "$as_me: failed program was:" >&5
21226 sed 's/^/| /' conftest.$ac_ext >&5
21227
21228 ac_cv_lib_intl_dgettext=no
21229 fi
21230
21231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21232 conftest$ac_exeext conftest.$ac_ext
21233 LIBS=$ac_check_lib_save_LIBS
21234 fi
21235 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21236 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21237 if test $ac_cv_lib_intl_dgettext = yes; then
21238 cat >>confdefs.h <<_ACEOF
21239 #define HAVE_LIBINTL 1
21240 _ACEOF
21241
21242 LIBS="-lintl $LIBS"
21243
21244 fi
21245
21246
21247 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
21248 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
21249 if test "${emacs_cv_localtime_cache+set}" = set; then
21250 echo $ECHO_N "(cached) $ECHO_C" >&6
21251 else
21252 if test x$ac_cv_func_tzset = xyes; then
21253 if test "$cross_compiling" = yes; then
21254 # If we have tzset, assume the worst when cross-compiling.
21255 emacs_cv_localtime_cache=yes
21256 else
21257 cat >conftest.$ac_ext <<_ACEOF
21258 /* confdefs.h. */
21259 _ACEOF
21260 cat confdefs.h >>conftest.$ac_ext
21261 cat >>conftest.$ac_ext <<_ACEOF
21262 /* end confdefs.h. */
21263 #include <time.h>
21264 extern char **environ;
21265 unset_TZ ()
21266 {
21267 char **from, **to;
21268 for (to = from = environ; (*to = *from); from++)
21269 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21270 to++;
21271 }
21272 char TZ_GMT0[] = "TZ=GMT0";
21273 char TZ_PST8[] = "TZ=PST8";
21274 main()
21275 {
21276 time_t now = time ((time_t *) 0);
21277 int hour_GMT0, hour_unset;
21278 if (putenv (TZ_GMT0) != 0)
21279 exit (1);
21280 hour_GMT0 = localtime (&now)->tm_hour;
21281 unset_TZ ();
21282 hour_unset = localtime (&now)->tm_hour;
21283 if (putenv (TZ_PST8) != 0)
21284 exit (1);
21285 if (localtime (&now)->tm_hour == hour_GMT0)
21286 exit (1);
21287 unset_TZ ();
21288 if (localtime (&now)->tm_hour != hour_unset)
21289 exit (1);
21290 exit (0);
21291 }
21292 _ACEOF
21293 rm -f conftest$ac_exeext
21294 if { (ac_try="$ac_link"
21295 case "(($ac_try" in
21296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21297 *) ac_try_echo=$ac_try;;
21298 esac
21299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21300 (eval "$ac_link") 2>&5
21301 ac_status=$?
21302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21303 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21304 { (case "(($ac_try" in
21305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21306 *) ac_try_echo=$ac_try;;
21307 esac
21308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21309 (eval "$ac_try") 2>&5
21310 ac_status=$?
21311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312 (exit $ac_status); }; }; then
21313 emacs_cv_localtime_cache=no
21314 else
21315 echo "$as_me: program exited with status $ac_status" >&5
21316 echo "$as_me: failed program was:" >&5
21317 sed 's/^/| /' conftest.$ac_ext >&5
21318
21319 ( exit $ac_status )
21320 emacs_cv_localtime_cache=yes
21321 fi
21322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21323 fi
21324
21325
21326 else
21327 # If we lack tzset, report that localtime does not cache TZ,
21328 # since we can't invalidate the cache if we don't have tzset.
21329 emacs_cv_localtime_cache=no
21330 fi
21331 fi
21332 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
21333 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21334 if test $emacs_cv_localtime_cache = yes; then
21335
21336 cat >>confdefs.h <<\_ACEOF
21337 #define LOCALTIME_CACHE 1
21338 _ACEOF
21339
21340 fi
21341
21342 if test "x$HAVE_TIMEVAL" = xyes; then
21343
21344 for ac_func in gettimeofday
21345 do
21346 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21347 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21349 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21350 echo $ECHO_N "(cached) $ECHO_C" >&6
21351 else
21352 cat >conftest.$ac_ext <<_ACEOF
21353 /* confdefs.h. */
21354 _ACEOF
21355 cat confdefs.h >>conftest.$ac_ext
21356 cat >>conftest.$ac_ext <<_ACEOF
21357 /* end confdefs.h. */
21358 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21360 #define $ac_func innocuous_$ac_func
21361
21362 /* System header to define __stub macros and hopefully few prototypes,
21363 which can conflict with char $ac_func (); below.
21364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21365 <limits.h> exists even on freestanding compilers. */
21366
21367 #ifdef __STDC__
21368 # include <limits.h>
21369 #else
21370 # include <assert.h>
21371 #endif
21372
21373 #undef $ac_func
21374
21375 /* Override any GCC internal prototype to avoid an error.
21376 Use char because int might match the return type of a GCC
21377 builtin and then its argument prototype would still apply. */
21378 #ifdef __cplusplus
21379 extern "C"
21380 #endif
21381 char $ac_func ();
21382 /* The GNU C library defines this for functions which it implements
21383 to always fail with ENOSYS. Some functions are actually named
21384 something starting with __ and the normal name is an alias. */
21385 #if defined __stub_$ac_func || defined __stub___$ac_func
21386 choke me
21387 #endif
21388
21389 int
21390 main ()
21391 {
21392 return $ac_func ();
21393 ;
21394 return 0;
21395 }
21396 _ACEOF
21397 rm -f conftest.$ac_objext conftest$ac_exeext
21398 if { (ac_try="$ac_link"
21399 case "(($ac_try" in
21400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21401 *) ac_try_echo=$ac_try;;
21402 esac
21403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21404 (eval "$ac_link") 2>conftest.er1
21405 ac_status=$?
21406 grep -v '^ *+' conftest.er1 >conftest.err
21407 rm -f conftest.er1
21408 cat conftest.err >&5
21409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21410 (exit $ac_status); } && {
21411 test -z "$ac_c_werror_flag" ||
21412 test ! -s conftest.err
21413 } && test -s conftest$ac_exeext &&
21414 $as_test_x conftest$ac_exeext; then
21415 eval "$as_ac_var=yes"
21416 else
21417 echo "$as_me: failed program was:" >&5
21418 sed 's/^/| /' conftest.$ac_ext >&5
21419
21420 eval "$as_ac_var=no"
21421 fi
21422
21423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21424 conftest$ac_exeext conftest.$ac_ext
21425 fi
21426 ac_res=`eval echo '${'$as_ac_var'}'`
21427 { echo "$as_me:$LINENO: result: $ac_res" >&5
21428 echo "${ECHO_T}$ac_res" >&6; }
21429 if test `eval echo '${'$as_ac_var'}'` = yes; then
21430 cat >>confdefs.h <<_ACEOF
21431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21432 _ACEOF
21433
21434 fi
21435 done
21436
21437 if test $ac_cv_func_gettimeofday = yes; then
21438 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
21439 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
21440 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21441 echo $ECHO_N "(cached) $ECHO_C" >&6
21442 else
21443 cat >conftest.$ac_ext <<_ACEOF
21444 /* confdefs.h. */
21445 _ACEOF
21446 cat confdefs.h >>conftest.$ac_ext
21447 cat >>conftest.$ac_ext <<_ACEOF
21448 /* end confdefs.h. */
21449
21450 #ifdef TIME_WITH_SYS_TIME
21451 #include <sys/time.h>
21452 #include <time.h>
21453 #else
21454 #ifdef HAVE_SYS_TIME_H
21455 #include <sys/time.h>
21456 #else
21457 #include <time.h>
21458 #endif
21459 #endif
21460 int
21461 main ()
21462 {
21463 struct timeval time;
21464 gettimeofday (&time, 0);
21465 ;
21466 return 0;
21467 }
21468 _ACEOF
21469 rm -f conftest.$ac_objext
21470 if { (ac_try="$ac_compile"
21471 case "(($ac_try" in
21472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21473 *) ac_try_echo=$ac_try;;
21474 esac
21475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21476 (eval "$ac_compile") 2>conftest.er1
21477 ac_status=$?
21478 grep -v '^ *+' conftest.er1 >conftest.err
21479 rm -f conftest.er1
21480 cat conftest.err >&5
21481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21482 (exit $ac_status); } && {
21483 test -z "$ac_c_werror_flag" ||
21484 test ! -s conftest.err
21485 } && test -s conftest.$ac_objext; then
21486 emacs_cv_gettimeofday_two_arguments=yes
21487 else
21488 echo "$as_me: failed program was:" >&5
21489 sed 's/^/| /' conftest.$ac_ext >&5
21490
21491 emacs_cv_gettimeofday_two_arguments=no
21492 fi
21493
21494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21495 fi
21496 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21497 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21498 if test $emacs_cv_gettimeofday_two_arguments = no; then
21499
21500 cat >>confdefs.h <<\_ACEOF
21501 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21502 _ACEOF
21503
21504 fi
21505 fi
21506 fi
21507
21508 ok_so_far=yes
21509 { echo "$as_me:$LINENO: checking for socket" >&5
21510 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
21511 if test "${ac_cv_func_socket+set}" = set; then
21512 echo $ECHO_N "(cached) $ECHO_C" >&6
21513 else
21514 cat >conftest.$ac_ext <<_ACEOF
21515 /* confdefs.h. */
21516 _ACEOF
21517 cat confdefs.h >>conftest.$ac_ext
21518 cat >>conftest.$ac_ext <<_ACEOF
21519 /* end confdefs.h. */
21520 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21522 #define socket innocuous_socket
21523
21524 /* System header to define __stub macros and hopefully few prototypes,
21525 which can conflict with char socket (); below.
21526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21527 <limits.h> exists even on freestanding compilers. */
21528
21529 #ifdef __STDC__
21530 # include <limits.h>
21531 #else
21532 # include <assert.h>
21533 #endif
21534
21535 #undef socket
21536
21537 /* Override any GCC internal prototype to avoid an error.
21538 Use char because int might match the return type of a GCC
21539 builtin and then its argument prototype would still apply. */
21540 #ifdef __cplusplus
21541 extern "C"
21542 #endif
21543 char socket ();
21544 /* The GNU C library defines this for functions which it implements
21545 to always fail with ENOSYS. Some functions are actually named
21546 something starting with __ and the normal name is an alias. */
21547 #if defined __stub_socket || defined __stub___socket
21548 choke me
21549 #endif
21550
21551 int
21552 main ()
21553 {
21554 return socket ();
21555 ;
21556 return 0;
21557 }
21558 _ACEOF
21559 rm -f conftest.$ac_objext conftest$ac_exeext
21560 if { (ac_try="$ac_link"
21561 case "(($ac_try" in
21562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21563 *) ac_try_echo=$ac_try;;
21564 esac
21565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21566 (eval "$ac_link") 2>conftest.er1
21567 ac_status=$?
21568 grep -v '^ *+' conftest.er1 >conftest.err
21569 rm -f conftest.er1
21570 cat conftest.err >&5
21571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572 (exit $ac_status); } && {
21573 test -z "$ac_c_werror_flag" ||
21574 test ! -s conftest.err
21575 } && test -s conftest$ac_exeext &&
21576 $as_test_x conftest$ac_exeext; then
21577 ac_cv_func_socket=yes
21578 else
21579 echo "$as_me: failed program was:" >&5
21580 sed 's/^/| /' conftest.$ac_ext >&5
21581
21582 ac_cv_func_socket=no
21583 fi
21584
21585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21586 conftest$ac_exeext conftest.$ac_ext
21587 fi
21588 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21589 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21590 if test $ac_cv_func_socket = yes; then
21591 :
21592 else
21593 ok_so_far=no
21594 fi
21595
21596 if test $ok_so_far = yes; then
21597 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21598 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21599 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21600 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21601 echo $ECHO_N "(cached) $ECHO_C" >&6
21602 fi
21603 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21604 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21605 else
21606 # Is the header compilable?
21607 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21608 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
21609 cat >conftest.$ac_ext <<_ACEOF
21610 /* confdefs.h. */
21611 _ACEOF
21612 cat confdefs.h >>conftest.$ac_ext
21613 cat >>conftest.$ac_ext <<_ACEOF
21614 /* end confdefs.h. */
21615 $ac_includes_default
21616 #include <netinet/in.h>
21617 _ACEOF
21618 rm -f conftest.$ac_objext
21619 if { (ac_try="$ac_compile"
21620 case "(($ac_try" in
21621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21622 *) ac_try_echo=$ac_try;;
21623 esac
21624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21625 (eval "$ac_compile") 2>conftest.er1
21626 ac_status=$?
21627 grep -v '^ *+' conftest.er1 >conftest.err
21628 rm -f conftest.er1
21629 cat conftest.err >&5
21630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21631 (exit $ac_status); } && {
21632 test -z "$ac_c_werror_flag" ||
21633 test ! -s conftest.err
21634 } && test -s conftest.$ac_objext; then
21635 ac_header_compiler=yes
21636 else
21637 echo "$as_me: failed program was:" >&5
21638 sed 's/^/| /' conftest.$ac_ext >&5
21639
21640 ac_header_compiler=no
21641 fi
21642
21643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21644 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21645 echo "${ECHO_T}$ac_header_compiler" >&6; }
21646
21647 # Is the header present?
21648 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21649 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
21650 cat >conftest.$ac_ext <<_ACEOF
21651 /* confdefs.h. */
21652 _ACEOF
21653 cat confdefs.h >>conftest.$ac_ext
21654 cat >>conftest.$ac_ext <<_ACEOF
21655 /* end confdefs.h. */
21656 #include <netinet/in.h>
21657 _ACEOF
21658 if { (ac_try="$ac_cpp conftest.$ac_ext"
21659 case "(($ac_try" in
21660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21661 *) ac_try_echo=$ac_try;;
21662 esac
21663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21665 ac_status=$?
21666 grep -v '^ *+' conftest.er1 >conftest.err
21667 rm -f conftest.er1
21668 cat conftest.err >&5
21669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670 (exit $ac_status); } >/dev/null && {
21671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21672 test ! -s conftest.err
21673 }; then
21674 ac_header_preproc=yes
21675 else
21676 echo "$as_me: failed program was:" >&5
21677 sed 's/^/| /' conftest.$ac_ext >&5
21678
21679 ac_header_preproc=no
21680 fi
21681
21682 rm -f conftest.err conftest.$ac_ext
21683 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21684 echo "${ECHO_T}$ac_header_preproc" >&6; }
21685
21686 # So? What about this header?
21687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21688 yes:no: )
21689 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21690 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21691 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21692 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21693 ac_header_preproc=yes
21694 ;;
21695 no:yes:* )
21696 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21697 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21698 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21699 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21700 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21701 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21702 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21703 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21704 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21705 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21706 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21707 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21708
21709 ;;
21710 esac
21711 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21712 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21713 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21714 echo $ECHO_N "(cached) $ECHO_C" >&6
21715 else
21716 ac_cv_header_netinet_in_h=$ac_header_preproc
21717 fi
21718 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21719 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21720
21721 fi
21722 if test $ac_cv_header_netinet_in_h = yes; then
21723 :
21724 else
21725 ok_so_far=no
21726 fi
21727
21728
21729 fi
21730 if test $ok_so_far = yes; then
21731 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21732 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21733 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
21734 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21735 echo $ECHO_N "(cached) $ECHO_C" >&6
21736 fi
21737 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21738 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21739 else
21740 # Is the header compilable?
21741 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21742 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
21743 cat >conftest.$ac_ext <<_ACEOF
21744 /* confdefs.h. */
21745 _ACEOF
21746 cat confdefs.h >>conftest.$ac_ext
21747 cat >>conftest.$ac_ext <<_ACEOF
21748 /* end confdefs.h. */
21749 $ac_includes_default
21750 #include <arpa/inet.h>
21751 _ACEOF
21752 rm -f conftest.$ac_objext
21753 if { (ac_try="$ac_compile"
21754 case "(($ac_try" in
21755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21756 *) ac_try_echo=$ac_try;;
21757 esac
21758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21759 (eval "$ac_compile") 2>conftest.er1
21760 ac_status=$?
21761 grep -v '^ *+' conftest.er1 >conftest.err
21762 rm -f conftest.er1
21763 cat conftest.err >&5
21764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21765 (exit $ac_status); } && {
21766 test -z "$ac_c_werror_flag" ||
21767 test ! -s conftest.err
21768 } && test -s conftest.$ac_objext; then
21769 ac_header_compiler=yes
21770 else
21771 echo "$as_me: failed program was:" >&5
21772 sed 's/^/| /' conftest.$ac_ext >&5
21773
21774 ac_header_compiler=no
21775 fi
21776
21777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21778 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21779 echo "${ECHO_T}$ac_header_compiler" >&6; }
21780
21781 # Is the header present?
21782 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21783 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
21784 cat >conftest.$ac_ext <<_ACEOF
21785 /* confdefs.h. */
21786 _ACEOF
21787 cat confdefs.h >>conftest.$ac_ext
21788 cat >>conftest.$ac_ext <<_ACEOF
21789 /* end confdefs.h. */
21790 #include <arpa/inet.h>
21791 _ACEOF
21792 if { (ac_try="$ac_cpp conftest.$ac_ext"
21793 case "(($ac_try" in
21794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21795 *) ac_try_echo=$ac_try;;
21796 esac
21797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21799 ac_status=$?
21800 grep -v '^ *+' conftest.er1 >conftest.err
21801 rm -f conftest.er1
21802 cat conftest.err >&5
21803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804 (exit $ac_status); } >/dev/null && {
21805 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21806 test ! -s conftest.err
21807 }; then
21808 ac_header_preproc=yes
21809 else
21810 echo "$as_me: failed program was:" >&5
21811 sed 's/^/| /' conftest.$ac_ext >&5
21812
21813 ac_header_preproc=no
21814 fi
21815
21816 rm -f conftest.err conftest.$ac_ext
21817 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21818 echo "${ECHO_T}$ac_header_preproc" >&6; }
21819
21820 # So? What about this header?
21821 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21822 yes:no: )
21823 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21824 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21825 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21826 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21827 ac_header_preproc=yes
21828 ;;
21829 no:yes:* )
21830 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21831 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21832 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21833 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21834 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21835 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21836 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21837 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21838 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21839 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21840 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21841 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21842
21843 ;;
21844 esac
21845 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21846 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
21847 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21848 echo $ECHO_N "(cached) $ECHO_C" >&6
21849 else
21850 ac_cv_header_arpa_inet_h=$ac_header_preproc
21851 fi
21852 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21853 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21854
21855 fi
21856 if test $ac_cv_header_arpa_inet_h = yes; then
21857 :
21858 else
21859 ok_so_far=no
21860 fi
21861
21862
21863 fi
21864 if test $ok_so_far = yes; then
21865
21866 cat >>confdefs.h <<\_ACEOF
21867 #define HAVE_INET_SOCKETS 1
21868 _ACEOF
21869
21870 fi
21871
21872
21873 for ac_header in sys/ioctl.h
21874 do
21875 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21876 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21877 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21880 echo $ECHO_N "(cached) $ECHO_C" >&6
21881 fi
21882 ac_res=`eval echo '${'$as_ac_Header'}'`
21883 { echo "$as_me:$LINENO: result: $ac_res" >&5
21884 echo "${ECHO_T}$ac_res" >&6; }
21885 else
21886 # Is the header compilable?
21887 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21888 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21889 cat >conftest.$ac_ext <<_ACEOF
21890 /* confdefs.h. */
21891 _ACEOF
21892 cat confdefs.h >>conftest.$ac_ext
21893 cat >>conftest.$ac_ext <<_ACEOF
21894 /* end confdefs.h. */
21895 $ac_includes_default
21896 #include <$ac_header>
21897 _ACEOF
21898 rm -f conftest.$ac_objext
21899 if { (ac_try="$ac_compile"
21900 case "(($ac_try" in
21901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21902 *) ac_try_echo=$ac_try;;
21903 esac
21904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21905 (eval "$ac_compile") 2>conftest.er1
21906 ac_status=$?
21907 grep -v '^ *+' conftest.er1 >conftest.err
21908 rm -f conftest.er1
21909 cat conftest.err >&5
21910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21911 (exit $ac_status); } && {
21912 test -z "$ac_c_werror_flag" ||
21913 test ! -s conftest.err
21914 } && test -s conftest.$ac_objext; then
21915 ac_header_compiler=yes
21916 else
21917 echo "$as_me: failed program was:" >&5
21918 sed 's/^/| /' conftest.$ac_ext >&5
21919
21920 ac_header_compiler=no
21921 fi
21922
21923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21924 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21925 echo "${ECHO_T}$ac_header_compiler" >&6; }
21926
21927 # Is the header present?
21928 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21929 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21930 cat >conftest.$ac_ext <<_ACEOF
21931 /* confdefs.h. */
21932 _ACEOF
21933 cat confdefs.h >>conftest.$ac_ext
21934 cat >>conftest.$ac_ext <<_ACEOF
21935 /* end confdefs.h. */
21936 #include <$ac_header>
21937 _ACEOF
21938 if { (ac_try="$ac_cpp conftest.$ac_ext"
21939 case "(($ac_try" in
21940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21941 *) ac_try_echo=$ac_try;;
21942 esac
21943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21945 ac_status=$?
21946 grep -v '^ *+' conftest.er1 >conftest.err
21947 rm -f conftest.er1
21948 cat conftest.err >&5
21949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21950 (exit $ac_status); } >/dev/null && {
21951 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21952 test ! -s conftest.err
21953 }; then
21954 ac_header_preproc=yes
21955 else
21956 echo "$as_me: failed program was:" >&5
21957 sed 's/^/| /' conftest.$ac_ext >&5
21958
21959 ac_header_preproc=no
21960 fi
21961
21962 rm -f conftest.err conftest.$ac_ext
21963 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21964 echo "${ECHO_T}$ac_header_preproc" >&6; }
21965
21966 # So? What about this header?
21967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21968 yes:no: )
21969 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21970 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21972 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21973 ac_header_preproc=yes
21974 ;;
21975 no:yes:* )
21976 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21977 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21978 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21979 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21980 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21981 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21982 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21983 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21985 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21986 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21987 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21988
21989 ;;
21990 esac
21991 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21994 echo $ECHO_N "(cached) $ECHO_C" >&6
21995 else
21996 eval "$as_ac_Header=\$ac_header_preproc"
21997 fi
21998 ac_res=`eval echo '${'$as_ac_Header'}'`
21999 { echo "$as_me:$LINENO: result: $ac_res" >&5
22000 echo "${ECHO_T}$ac_res" >&6; }
22001
22002 fi
22003 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22004 cat >>confdefs.h <<_ACEOF
22005 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22006 _ACEOF
22007
22008 fi
22009
22010 done
22011
22012
22013 if test -f /usr/lpp/X11/bin/smt.exp; then
22014
22015 cat >>confdefs.h <<\_ACEOF
22016 #define HAVE_AIX_SMT_EXP 1
22017 _ACEOF
22018
22019 fi
22020
22021 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22022 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22023 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22024 { echo "$as_me:$LINENO: result: yes" >&5
22025 echo "${ECHO_T}yes" >&6; }
22026
22027 cat >>confdefs.h <<\_ACEOF
22028 #define HAVE_DEV_PTMX 1
22029 _ACEOF
22030
22031 else
22032 { echo "$as_me:$LINENO: result: no" >&5
22033 echo "${ECHO_T}no" >&6; }
22034 fi
22035
22036 { echo "$as_me:$LINENO: checking for pid_t" >&5
22037 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22038 if test "${ac_cv_type_pid_t+set}" = set; then
22039 echo $ECHO_N "(cached) $ECHO_C" >&6
22040 else
22041 cat >conftest.$ac_ext <<_ACEOF
22042 /* confdefs.h. */
22043 _ACEOF
22044 cat confdefs.h >>conftest.$ac_ext
22045 cat >>conftest.$ac_ext <<_ACEOF
22046 /* end confdefs.h. */
22047 $ac_includes_default
22048 typedef pid_t ac__type_new_;
22049 int
22050 main ()
22051 {
22052 if ((ac__type_new_ *) 0)
22053 return 0;
22054 if (sizeof (ac__type_new_))
22055 return 0;
22056 ;
22057 return 0;
22058 }
22059 _ACEOF
22060 rm -f conftest.$ac_objext
22061 if { (ac_try="$ac_compile"
22062 case "(($ac_try" in
22063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22064 *) ac_try_echo=$ac_try;;
22065 esac
22066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22067 (eval "$ac_compile") 2>conftest.er1
22068 ac_status=$?
22069 grep -v '^ *+' conftest.er1 >conftest.err
22070 rm -f conftest.er1
22071 cat conftest.err >&5
22072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22073 (exit $ac_status); } && {
22074 test -z "$ac_c_werror_flag" ||
22075 test ! -s conftest.err
22076 } && test -s conftest.$ac_objext; then
22077 ac_cv_type_pid_t=yes
22078 else
22079 echo "$as_me: failed program was:" >&5
22080 sed 's/^/| /' conftest.$ac_ext >&5
22081
22082 ac_cv_type_pid_t=no
22083 fi
22084
22085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22086 fi
22087 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22088 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22089 if test $ac_cv_type_pid_t = yes; then
22090 :
22091 else
22092
22093 cat >>confdefs.h <<_ACEOF
22094 #define pid_t int
22095 _ACEOF
22096
22097 fi
22098
22099
22100 for ac_header in vfork.h
22101 do
22102 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22104 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22107 echo $ECHO_N "(cached) $ECHO_C" >&6
22108 fi
22109 ac_res=`eval echo '${'$as_ac_Header'}'`
22110 { echo "$as_me:$LINENO: result: $ac_res" >&5
22111 echo "${ECHO_T}$ac_res" >&6; }
22112 else
22113 # Is the header compilable?
22114 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22115 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22116 cat >conftest.$ac_ext <<_ACEOF
22117 /* confdefs.h. */
22118 _ACEOF
22119 cat confdefs.h >>conftest.$ac_ext
22120 cat >>conftest.$ac_ext <<_ACEOF
22121 /* end confdefs.h. */
22122 $ac_includes_default
22123 #include <$ac_header>
22124 _ACEOF
22125 rm -f conftest.$ac_objext
22126 if { (ac_try="$ac_compile"
22127 case "(($ac_try" in
22128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22129 *) ac_try_echo=$ac_try;;
22130 esac
22131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22132 (eval "$ac_compile") 2>conftest.er1
22133 ac_status=$?
22134 grep -v '^ *+' conftest.er1 >conftest.err
22135 rm -f conftest.er1
22136 cat conftest.err >&5
22137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138 (exit $ac_status); } && {
22139 test -z "$ac_c_werror_flag" ||
22140 test ! -s conftest.err
22141 } && test -s conftest.$ac_objext; then
22142 ac_header_compiler=yes
22143 else
22144 echo "$as_me: failed program was:" >&5
22145 sed 's/^/| /' conftest.$ac_ext >&5
22146
22147 ac_header_compiler=no
22148 fi
22149
22150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22151 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22152 echo "${ECHO_T}$ac_header_compiler" >&6; }
22153
22154 # Is the header present?
22155 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22156 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22157 cat >conftest.$ac_ext <<_ACEOF
22158 /* confdefs.h. */
22159 _ACEOF
22160 cat confdefs.h >>conftest.$ac_ext
22161 cat >>conftest.$ac_ext <<_ACEOF
22162 /* end confdefs.h. */
22163 #include <$ac_header>
22164 _ACEOF
22165 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
22172 ac_status=$?
22173 grep -v '^ *+' conftest.er1 >conftest.err
22174 rm -f conftest.er1
22175 cat conftest.err >&5
22176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22177 (exit $ac_status); } >/dev/null && {
22178 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22179 test ! -s conftest.err
22180 }; then
22181 ac_header_preproc=yes
22182 else
22183 echo "$as_me: failed program was:" >&5
22184 sed 's/^/| /' conftest.$ac_ext >&5
22185
22186 ac_header_preproc=no
22187 fi
22188
22189 rm -f conftest.err conftest.$ac_ext
22190 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22191 echo "${ECHO_T}$ac_header_preproc" >&6; }
22192
22193 # So? What about this header?
22194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22195 yes:no: )
22196 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22197 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22199 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22200 ac_header_preproc=yes
22201 ;;
22202 no:yes:* )
22203 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22204 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22205 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22206 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22207 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22208 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22209 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22210 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22212 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22213 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22214 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22215
22216 ;;
22217 esac
22218 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22221 echo $ECHO_N "(cached) $ECHO_C" >&6
22222 else
22223 eval "$as_ac_Header=\$ac_header_preproc"
22224 fi
22225 ac_res=`eval echo '${'$as_ac_Header'}'`
22226 { echo "$as_me:$LINENO: result: $ac_res" >&5
22227 echo "${ECHO_T}$ac_res" >&6; }
22228
22229 fi
22230 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22231 cat >>confdefs.h <<_ACEOF
22232 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22233 _ACEOF
22234
22235 fi
22236
22237 done
22238
22239
22240
22241 for ac_func in fork vfork
22242 do
22243 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22244 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22245 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22246 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22247 echo $ECHO_N "(cached) $ECHO_C" >&6
22248 else
22249 cat >conftest.$ac_ext <<_ACEOF
22250 /* confdefs.h. */
22251 _ACEOF
22252 cat confdefs.h >>conftest.$ac_ext
22253 cat >>conftest.$ac_ext <<_ACEOF
22254 /* end confdefs.h. */
22255 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22257 #define $ac_func innocuous_$ac_func
22258
22259 /* System header to define __stub macros and hopefully few prototypes,
22260 which can conflict with char $ac_func (); below.
22261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22262 <limits.h> exists even on freestanding compilers. */
22263
22264 #ifdef __STDC__
22265 # include <limits.h>
22266 #else
22267 # include <assert.h>
22268 #endif
22269
22270 #undef $ac_func
22271
22272 /* Override any GCC internal prototype to avoid an error.
22273 Use char because int might match the return type of a GCC
22274 builtin and then its argument prototype would still apply. */
22275 #ifdef __cplusplus
22276 extern "C"
22277 #endif
22278 char $ac_func ();
22279 /* The GNU C library defines this for functions which it implements
22280 to always fail with ENOSYS. Some functions are actually named
22281 something starting with __ and the normal name is an alias. */
22282 #if defined __stub_$ac_func || defined __stub___$ac_func
22283 choke me
22284 #endif
22285
22286 int
22287 main ()
22288 {
22289 return $ac_func ();
22290 ;
22291 return 0;
22292 }
22293 _ACEOF
22294 rm -f conftest.$ac_objext conftest$ac_exeext
22295 if { (ac_try="$ac_link"
22296 case "(($ac_try" in
22297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22298 *) ac_try_echo=$ac_try;;
22299 esac
22300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22301 (eval "$ac_link") 2>conftest.er1
22302 ac_status=$?
22303 grep -v '^ *+' conftest.er1 >conftest.err
22304 rm -f conftest.er1
22305 cat conftest.err >&5
22306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307 (exit $ac_status); } && {
22308 test -z "$ac_c_werror_flag" ||
22309 test ! -s conftest.err
22310 } && test -s conftest$ac_exeext &&
22311 $as_test_x conftest$ac_exeext; then
22312 eval "$as_ac_var=yes"
22313 else
22314 echo "$as_me: failed program was:" >&5
22315 sed 's/^/| /' conftest.$ac_ext >&5
22316
22317 eval "$as_ac_var=no"
22318 fi
22319
22320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22321 conftest$ac_exeext conftest.$ac_ext
22322 fi
22323 ac_res=`eval echo '${'$as_ac_var'}'`
22324 { echo "$as_me:$LINENO: result: $ac_res" >&5
22325 echo "${ECHO_T}$ac_res" >&6; }
22326 if test `eval echo '${'$as_ac_var'}'` = yes; then
22327 cat >>confdefs.h <<_ACEOF
22328 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22329 _ACEOF
22330
22331 fi
22332 done
22333
22334 if test "x$ac_cv_func_fork" = xyes; then
22335 { echo "$as_me:$LINENO: checking for working fork" >&5
22336 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
22337 if test "${ac_cv_func_fork_works+set}" = set; then
22338 echo $ECHO_N "(cached) $ECHO_C" >&6
22339 else
22340 if test "$cross_compiling" = yes; then
22341 ac_cv_func_fork_works=cross
22342 else
22343 cat >conftest.$ac_ext <<_ACEOF
22344 /* confdefs.h. */
22345 _ACEOF
22346 cat confdefs.h >>conftest.$ac_ext
22347 cat >>conftest.$ac_ext <<_ACEOF
22348 /* end confdefs.h. */
22349 $ac_includes_default
22350 int
22351 main ()
22352 {
22353
22354 /* By Ruediger Kuhlmann. */
22355 return fork () < 0;
22356
22357 ;
22358 return 0;
22359 }
22360 _ACEOF
22361 rm -f conftest$ac_exeext
22362 if { (ac_try="$ac_link"
22363 case "(($ac_try" in
22364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22365 *) ac_try_echo=$ac_try;;
22366 esac
22367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22368 (eval "$ac_link") 2>&5
22369 ac_status=$?
22370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22371 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22372 { (case "(($ac_try" in
22373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22374 *) ac_try_echo=$ac_try;;
22375 esac
22376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22377 (eval "$ac_try") 2>&5
22378 ac_status=$?
22379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22380 (exit $ac_status); }; }; then
22381 ac_cv_func_fork_works=yes
22382 else
22383 echo "$as_me: program exited with status $ac_status" >&5
22384 echo "$as_me: failed program was:" >&5
22385 sed 's/^/| /' conftest.$ac_ext >&5
22386
22387 ( exit $ac_status )
22388 ac_cv_func_fork_works=no
22389 fi
22390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22391 fi
22392
22393
22394 fi
22395 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22396 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22397
22398 else
22399 ac_cv_func_fork_works=$ac_cv_func_fork
22400 fi
22401 if test "x$ac_cv_func_fork_works" = xcross; then
22402 case $host in
22403 *-*-amigaos* | *-*-msdosdjgpp*)
22404 # Override, as these systems have only a dummy fork() stub
22405 ac_cv_func_fork_works=no
22406 ;;
22407 *)
22408 ac_cv_func_fork_works=yes
22409 ;;
22410 esac
22411 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22412 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22413 fi
22414 ac_cv_func_vfork_works=$ac_cv_func_vfork
22415 if test "x$ac_cv_func_vfork" = xyes; then
22416 { echo "$as_me:$LINENO: checking for working vfork" >&5
22417 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
22418 if test "${ac_cv_func_vfork_works+set}" = set; then
22419 echo $ECHO_N "(cached) $ECHO_C" >&6
22420 else
22421 if test "$cross_compiling" = yes; then
22422 ac_cv_func_vfork_works=cross
22423 else
22424 cat >conftest.$ac_ext <<_ACEOF
22425 /* confdefs.h. */
22426 _ACEOF
22427 cat confdefs.h >>conftest.$ac_ext
22428 cat >>conftest.$ac_ext <<_ACEOF
22429 /* end confdefs.h. */
22430 /* Thanks to Paul Eggert for this test. */
22431 $ac_includes_default
22432 #include <sys/wait.h>
22433 #ifdef HAVE_VFORK_H
22434 # include <vfork.h>
22435 #endif
22436 /* On some sparc systems, changes by the child to local and incoming
22437 argument registers are propagated back to the parent. The compiler
22438 is told about this with #include <vfork.h>, but some compilers
22439 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22440 static variable whose address is put into a register that is
22441 clobbered by the vfork. */
22442 static void
22443 #ifdef __cplusplus
22444 sparc_address_test (int arg)
22445 # else
22446 sparc_address_test (arg) int arg;
22447 #endif
22448 {
22449 static pid_t child;
22450 if (!child) {
22451 child = vfork ();
22452 if (child < 0) {
22453 perror ("vfork");
22454 _exit(2);
22455 }
22456 if (!child) {
22457 arg = getpid();
22458 write(-1, "", 0);
22459 _exit (arg);
22460 }
22461 }
22462 }
22463
22464 int
22465 main ()
22466 {
22467 pid_t parent = getpid ();
22468 pid_t child;
22469
22470 sparc_address_test (0);
22471
22472 child = vfork ();
22473
22474 if (child == 0) {
22475 /* Here is another test for sparc vfork register problems. This
22476 test uses lots of local variables, at least as many local
22477 variables as main has allocated so far including compiler
22478 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22479 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22480 reuse the register of parent for one of the local variables,
22481 since it will think that parent can't possibly be used any more
22482 in this routine. Assigning to the local variable will thus
22483 munge parent in the parent process. */
22484 pid_t
22485 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22486 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22487 /* Convince the compiler that p..p7 are live; otherwise, it might
22488 use the same hardware register for all 8 local variables. */
22489 if (p != p1 || p != p2 || p != p3 || p != p4
22490 || p != p5 || p != p6 || p != p7)
22491 _exit(1);
22492
22493 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22494 from child file descriptors. If the child closes a descriptor
22495 before it execs or exits, this munges the parent's descriptor
22496 as well. Test for this by closing stdout in the child. */
22497 _exit(close(fileno(stdout)) != 0);
22498 } else {
22499 int status;
22500 struct stat st;
22501
22502 while (wait(&status) != child)
22503 ;
22504 return (
22505 /* Was there some problem with vforking? */
22506 child < 0
22507
22508 /* Did the child fail? (This shouldn't happen.) */
22509 || status
22510
22511 /* Did the vfork/compiler bug occur? */
22512 || parent != getpid()
22513
22514 /* Did the file descriptor bug occur? */
22515 || fstat(fileno(stdout), &st) != 0
22516 );
22517 }
22518 }
22519 _ACEOF
22520 rm -f conftest$ac_exeext
22521 if { (ac_try="$ac_link"
22522 case "(($ac_try" in
22523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22524 *) ac_try_echo=$ac_try;;
22525 esac
22526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22527 (eval "$ac_link") 2>&5
22528 ac_status=$?
22529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22530 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22531 { (case "(($ac_try" in
22532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22533 *) ac_try_echo=$ac_try;;
22534 esac
22535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22536 (eval "$ac_try") 2>&5
22537 ac_status=$?
22538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539 (exit $ac_status); }; }; then
22540 ac_cv_func_vfork_works=yes
22541 else
22542 echo "$as_me: program exited with status $ac_status" >&5
22543 echo "$as_me: failed program was:" >&5
22544 sed 's/^/| /' conftest.$ac_ext >&5
22545
22546 ( exit $ac_status )
22547 ac_cv_func_vfork_works=no
22548 fi
22549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22550 fi
22551
22552
22553 fi
22554 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22555 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22556
22557 fi;
22558 if test "x$ac_cv_func_fork_works" = xcross; then
22559 ac_cv_func_vfork_works=$ac_cv_func_vfork
22560 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22561 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22562 fi
22563
22564 if test "x$ac_cv_func_vfork_works" = xyes; then
22565
22566 cat >>confdefs.h <<\_ACEOF
22567 #define HAVE_WORKING_VFORK 1
22568 _ACEOF
22569
22570 else
22571
22572 cat >>confdefs.h <<\_ACEOF
22573 #define vfork fork
22574 _ACEOF
22575
22576 fi
22577 if test "x$ac_cv_func_fork_works" = xyes; then
22578
22579 cat >>confdefs.h <<\_ACEOF
22580 #define HAVE_WORKING_FORK 1
22581 _ACEOF
22582
22583 fi
22584
22585
22586 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22587 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22588 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22589 echo $ECHO_N "(cached) $ECHO_C" >&6
22590 else
22591 cat >conftest.$ac_ext <<_ACEOF
22592 /* confdefs.h. */
22593 _ACEOF
22594 cat confdefs.h >>conftest.$ac_ext
22595 cat >>conftest.$ac_ext <<_ACEOF
22596 /* end confdefs.h. */
22597 #include <langinfo.h>
22598 int
22599 main ()
22600 {
22601 char* cs = nl_langinfo(CODESET);
22602 ;
22603 return 0;
22604 }
22605 _ACEOF
22606 rm -f conftest.$ac_objext conftest$ac_exeext
22607 if { (ac_try="$ac_link"
22608 case "(($ac_try" in
22609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22610 *) ac_try_echo=$ac_try;;
22611 esac
22612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22613 (eval "$ac_link") 2>conftest.er1
22614 ac_status=$?
22615 grep -v '^ *+' conftest.er1 >conftest.err
22616 rm -f conftest.er1
22617 cat conftest.err >&5
22618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22619 (exit $ac_status); } && {
22620 test -z "$ac_c_werror_flag" ||
22621 test ! -s conftest.err
22622 } && test -s conftest$ac_exeext &&
22623 $as_test_x conftest$ac_exeext; then
22624 emacs_cv_langinfo_codeset=yes
22625 else
22626 echo "$as_me: failed program was:" >&5
22627 sed 's/^/| /' conftest.$ac_ext >&5
22628
22629 emacs_cv_langinfo_codeset=no
22630 fi
22631
22632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22633 conftest$ac_exeext conftest.$ac_ext
22634
22635 fi
22636 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22637 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22638 if test $emacs_cv_langinfo_codeset = yes; then
22639
22640 cat >>confdefs.h <<\_ACEOF
22641 #define HAVE_LANGINFO_CODESET 1
22642 _ACEOF
22643
22644 fi
22645
22646 { echo "$as_me:$LINENO: checking for size_t" >&5
22647 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22648 if test "${ac_cv_type_size_t+set}" = set; then
22649 echo $ECHO_N "(cached) $ECHO_C" >&6
22650 else
22651 cat >conftest.$ac_ext <<_ACEOF
22652 /* confdefs.h. */
22653 _ACEOF
22654 cat confdefs.h >>conftest.$ac_ext
22655 cat >>conftest.$ac_ext <<_ACEOF
22656 /* end confdefs.h. */
22657 $ac_includes_default
22658 typedef size_t ac__type_new_;
22659 int
22660 main ()
22661 {
22662 if ((ac__type_new_ *) 0)
22663 return 0;
22664 if (sizeof (ac__type_new_))
22665 return 0;
22666 ;
22667 return 0;
22668 }
22669 _ACEOF
22670 rm -f conftest.$ac_objext
22671 if { (ac_try="$ac_compile"
22672 case "(($ac_try" in
22673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22674 *) ac_try_echo=$ac_try;;
22675 esac
22676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22677 (eval "$ac_compile") 2>conftest.er1
22678 ac_status=$?
22679 grep -v '^ *+' conftest.er1 >conftest.err
22680 rm -f conftest.er1
22681 cat conftest.err >&5
22682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22683 (exit $ac_status); } && {
22684 test -z "$ac_c_werror_flag" ||
22685 test ! -s conftest.err
22686 } && test -s conftest.$ac_objext; then
22687 ac_cv_type_size_t=yes
22688 else
22689 echo "$as_me: failed program was:" >&5
22690 sed 's/^/| /' conftest.$ac_ext >&5
22691
22692 ac_cv_type_size_t=no
22693 fi
22694
22695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22696 fi
22697 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22698 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22699 if test $ac_cv_type_size_t = yes; then
22700
22701 cat >>confdefs.h <<_ACEOF
22702 #define HAVE_SIZE_T 1
22703 _ACEOF
22704
22705
22706 fi
22707
22708
22709 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
22710 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
22711 if test "${ac_cv_type_mbstate_t+set}" = set; then
22712 echo $ECHO_N "(cached) $ECHO_C" >&6
22713 else
22714 cat >conftest.$ac_ext <<_ACEOF
22715 /* confdefs.h. */
22716 _ACEOF
22717 cat confdefs.h >>conftest.$ac_ext
22718 cat >>conftest.$ac_ext <<_ACEOF
22719 /* end confdefs.h. */
22720 $ac_includes_default
22721 # include <wchar.h>
22722 int
22723 main ()
22724 {
22725 mbstate_t x; return sizeof x;
22726 ;
22727 return 0;
22728 }
22729 _ACEOF
22730 rm -f conftest.$ac_objext
22731 if { (ac_try="$ac_compile"
22732 case "(($ac_try" in
22733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22734 *) ac_try_echo=$ac_try;;
22735 esac
22736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22737 (eval "$ac_compile") 2>conftest.er1
22738 ac_status=$?
22739 grep -v '^ *+' conftest.er1 >conftest.err
22740 rm -f conftest.er1
22741 cat conftest.err >&5
22742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22743 (exit $ac_status); } && {
22744 test -z "$ac_c_werror_flag" ||
22745 test ! -s conftest.err
22746 } && test -s conftest.$ac_objext; then
22747 ac_cv_type_mbstate_t=yes
22748 else
22749 echo "$as_me: failed program was:" >&5
22750 sed 's/^/| /' conftest.$ac_ext >&5
22751
22752 ac_cv_type_mbstate_t=no
22753 fi
22754
22755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22756 fi
22757 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22758 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
22759 if test $ac_cv_type_mbstate_t = yes; then
22760
22761 cat >>confdefs.h <<\_ACEOF
22762 #define HAVE_MBSTATE_T 1
22763 _ACEOF
22764
22765 else
22766
22767 cat >>confdefs.h <<\_ACEOF
22768 #define mbstate_t int
22769 _ACEOF
22770
22771 fi
22772
22773 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22774 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
22775 if test "${emacs_cv_c_restrict+set}" = set; then
22776 echo $ECHO_N "(cached) $ECHO_C" >&6
22777 else
22778 cat >conftest.$ac_ext <<_ACEOF
22779 /* confdefs.h. */
22780 _ACEOF
22781 cat confdefs.h >>conftest.$ac_ext
22782 cat >>conftest.$ac_ext <<_ACEOF
22783 /* end confdefs.h. */
22784 void fred (int *restrict x);
22785 int
22786 main ()
22787 {
22788
22789 ;
22790 return 0;
22791 }
22792 _ACEOF
22793 rm -f conftest.$ac_objext
22794 if { (ac_try="$ac_compile"
22795 case "(($ac_try" in
22796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22797 *) ac_try_echo=$ac_try;;
22798 esac
22799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22800 (eval "$ac_compile") 2>conftest.er1
22801 ac_status=$?
22802 grep -v '^ *+' conftest.er1 >conftest.err
22803 rm -f conftest.er1
22804 cat conftest.err >&5
22805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22806 (exit $ac_status); } && {
22807 test -z "$ac_c_werror_flag" ||
22808 test ! -s conftest.err
22809 } && test -s conftest.$ac_objext; then
22810 emacs_cv_c_restrict=yes
22811 else
22812 echo "$as_me: failed program was:" >&5
22813 sed 's/^/| /' conftest.$ac_ext >&5
22814
22815 cat >conftest.$ac_ext <<_ACEOF
22816 /* confdefs.h. */
22817 _ACEOF
22818 cat confdefs.h >>conftest.$ac_ext
22819 cat >>conftest.$ac_ext <<_ACEOF
22820 /* end confdefs.h. */
22821 void fred (int *__restrict x);
22822 int
22823 main ()
22824 {
22825
22826 ;
22827 return 0;
22828 }
22829 _ACEOF
22830 rm -f conftest.$ac_objext
22831 if { (ac_try="$ac_compile"
22832 case "(($ac_try" in
22833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22834 *) ac_try_echo=$ac_try;;
22835 esac
22836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22837 (eval "$ac_compile") 2>conftest.er1
22838 ac_status=$?
22839 grep -v '^ *+' conftest.er1 >conftest.err
22840 rm -f conftest.er1
22841 cat conftest.err >&5
22842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22843 (exit $ac_status); } && {
22844 test -z "$ac_c_werror_flag" ||
22845 test ! -s conftest.err
22846 } && test -s conftest.$ac_objext; then
22847 emacs_cv_c_restrict=__restrict
22848 else
22849 echo "$as_me: failed program was:" >&5
22850 sed 's/^/| /' conftest.$ac_ext >&5
22851
22852 emacs_cv_c_restrict=no
22853 fi
22854
22855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22856 fi
22857
22858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22859 fi
22860 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22861 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
22862 case "$emacs_cv_c_restrict" in
22863 yes) emacs_restrict=restrict;;
22864 no) emacs_restrict="";;
22865 *) emacs_restrict="$emacs_cv_c_restrict";;
22866 esac
22867 if test "$emacs_restrict" != __restrict; then
22868
22869 cat >>confdefs.h <<_ACEOF
22870 #define __restrict $emacs_restrict
22871 _ACEOF
22872
22873 fi
22874
22875 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22876 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
22877 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22878 echo $ECHO_N "(cached) $ECHO_C" >&6
22879 else
22880 cat >conftest.$ac_ext <<_ACEOF
22881 /* confdefs.h. */
22882 _ACEOF
22883 cat confdefs.h >>conftest.$ac_ext
22884 cat >>conftest.$ac_ext <<_ACEOF
22885 /* end confdefs.h. */
22886 void fred (int x[__restrict]);
22887 int
22888 main ()
22889 {
22890
22891 ;
22892 return 0;
22893 }
22894 _ACEOF
22895 rm -f conftest.$ac_objext
22896 if { (ac_try="$ac_compile"
22897 case "(($ac_try" in
22898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22899 *) ac_try_echo=$ac_try;;
22900 esac
22901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22902 (eval "$ac_compile") 2>conftest.er1
22903 ac_status=$?
22904 grep -v '^ *+' conftest.er1 >conftest.err
22905 rm -f conftest.er1
22906 cat conftest.err >&5
22907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22908 (exit $ac_status); } && {
22909 test -z "$ac_c_werror_flag" ||
22910 test ! -s conftest.err
22911 } && test -s conftest.$ac_objext; then
22912 emacs_cv_c_restrict_arr=yes
22913 else
22914 echo "$as_me: failed program was:" >&5
22915 sed 's/^/| /' conftest.$ac_ext >&5
22916
22917 emacs_cv_c_restrict_arr=no
22918 fi
22919
22920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22921 fi
22922 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22923 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
22924 if test "$emacs_cv_c_restrict_arr" = yes; then
22925
22926 cat >>confdefs.h <<\_ACEOF
22927 #define __restrict_arr __restrict
22928 _ACEOF
22929
22930 fi
22931
22932
22933
22934 # Set up the CFLAGS for real compilation, so we can substitute it.
22935 CFLAGS="$REAL_CFLAGS"
22936 CPPFLAGS="$REAL_CPPFLAGS"
22937
22938 #### Find out which version of Emacs this is.
22939 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22940 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22941 if test x"${version}" = x; then
22942 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22943 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22944 { (exit 1); exit 1; }; }
22945 fi
22946
22947 ### Specify what sort of things we'll be editing into Makefile and config.h.
22948 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22949
22950
22951
22952
22953
22954
22955
22956
22957
22958
22959
22960
22961
22962
22963
22964
22965
22966
22967
22968
22969
22970
22971
22972
22973
22974
22975
22976
22977
22978
22979
22980
22981
22982
22983
22984 cat >>confdefs.h <<_ACEOF
22985 #define EMACS_CONFIGURATION "${canonical}"
22986 _ACEOF
22987
22988
22989 cat >>confdefs.h <<_ACEOF
22990 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22991 _ACEOF
22992
22993
22994 cat >>confdefs.h <<_ACEOF
22995 #define config_machfile "${machfile}"
22996 _ACEOF
22997
22998
22999 cat >>confdefs.h <<_ACEOF
23000 #define config_opsysfile "${opsysfile}"
23001 _ACEOF
23002
23003
23004 cat >>confdefs.h <<_ACEOF
23005 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23006 _ACEOF
23007
23008
23009 cat >>confdefs.h <<_ACEOF
23010 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23011 _ACEOF
23012
23013
23014 cat >>confdefs.h <<_ACEOF
23015 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23016 _ACEOF
23017
23018
23019 cat >>confdefs.h <<_ACEOF
23020 #define UNEXEC_SRC ${UNEXEC_SRC}
23021 _ACEOF
23022
23023
23024 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23025
23026 cat >>confdefs.h <<\_ACEOF
23027 #define HAVE_X_WINDOWS 1
23028 _ACEOF
23029
23030 fi
23031 if test "${USE_X_TOOLKIT}" != "none" ; then
23032
23033 cat >>confdefs.h <<\_ACEOF
23034 #define USE_X_TOOLKIT 1
23035 _ACEOF
23036
23037 fi
23038 if test "${HAVE_X11}" = "yes" ; then
23039
23040 cat >>confdefs.h <<\_ACEOF
23041 #define HAVE_X11 1
23042 _ACEOF
23043
23044 fi
23045 if test "${HAVE_XFREE386}" = "yes" ; then
23046
23047 cat >>confdefs.h <<\_ACEOF
23048 #define HAVE_XFREE386 1
23049 _ACEOF
23050
23051 fi
23052 if test "${HAVE_MENUS}" = "yes" ; then
23053
23054 cat >>confdefs.h <<\_ACEOF
23055 #define HAVE_MENUS 1
23056 _ACEOF
23057
23058 fi
23059 if test "${GNU_MALLOC}" = "yes" ; then
23060
23061 cat >>confdefs.h <<\_ACEOF
23062 #define GNU_MALLOC 1
23063 _ACEOF
23064
23065 fi
23066 if test "${REL_ALLOC}" = "yes" ; then
23067
23068 cat >>confdefs.h <<\_ACEOF
23069 #define REL_ALLOC 1
23070 _ACEOF
23071
23072 fi
23073
23074 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
23075 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
23076 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
23077 echo $ECHO_N "(cached) $ECHO_C" >&6
23078 else
23079 ac_check_lib_save_LIBS=$LIBS
23080 LIBS="-lgpm $LIBS"
23081 cat >conftest.$ac_ext <<_ACEOF
23082 /* confdefs.h. */
23083 _ACEOF
23084 cat confdefs.h >>conftest.$ac_ext
23085 cat >>conftest.$ac_ext <<_ACEOF
23086 /* end confdefs.h. */
23087
23088 /* Override any GCC internal prototype to avoid an error.
23089 Use char because int might match the return type of a GCC
23090 builtin and then its argument prototype would still apply. */
23091 #ifdef __cplusplus
23092 extern "C"
23093 #endif
23094 char Gpm_Open ();
23095 int
23096 main ()
23097 {
23098 return Gpm_Open ();
23099 ;
23100 return 0;
23101 }
23102 _ACEOF
23103 rm -f conftest.$ac_objext conftest$ac_exeext
23104 if { (ac_try="$ac_link"
23105 case "(($ac_try" in
23106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23107 *) ac_try_echo=$ac_try;;
23108 esac
23109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23110 (eval "$ac_link") 2>conftest.er1
23111 ac_status=$?
23112 grep -v '^ *+' conftest.er1 >conftest.err
23113 rm -f conftest.er1
23114 cat conftest.err >&5
23115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23116 (exit $ac_status); } && {
23117 test -z "$ac_c_werror_flag" ||
23118 test ! -s conftest.err
23119 } && test -s conftest$ac_exeext &&
23120 $as_test_x conftest$ac_exeext; then
23121 ac_cv_lib_gpm_Gpm_Open=yes
23122 else
23123 echo "$as_me: failed program was:" >&5
23124 sed 's/^/| /' conftest.$ac_ext >&5
23125
23126 ac_cv_lib_gpm_Gpm_Open=no
23127 fi
23128
23129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23130 conftest$ac_exeext conftest.$ac_ext
23131 LIBS=$ac_check_lib_save_LIBS
23132 fi
23133 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
23134 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
23135 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
23136 LIBGPM=-lgpm
23137 fi
23138
23139
23140
23141
23142
23143
23144
23145 #### Report on what we decided to do.
23146 #### Report GTK as a toolkit, even if it doesn't use Xt.
23147 #### It makes printing result more understandable as using GTK sets
23148 #### toolkit_scroll_bars to yes by default.
23149 if test "${HAVE_GTK}" = "yes"; then
23150 USE_X_TOOLKIT=GTK
23151 fi
23152
23153 echo "
23154 Configured for \`${canonical}'.
23155
23156 Where should the build process find the source code? ${srcdir}
23157 What operating system and machine description files should Emacs use?
23158 \`${opsysfile}' and \`${machfile}'
23159 What compiler should emacs be built with? ${CC} ${CFLAGS}
23160 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23161 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23162 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23163 What window system should Emacs use? ${window_system}
23164 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23165
23166 if test -n "${x_includes}"; then
23167 echo " Where do we find X Windows header files? ${x_includes}"
23168 else
23169 echo " Where do we find X Windows header files? Standard dirs"
23170 fi
23171 if test -n "${x_libraries}"; then
23172 echo " Where do we find X Windows libraries? ${x_libraries}"
23173 else
23174 echo " Where do we find X Windows libraries? Standard dirs"
23175 fi
23176
23177 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23178 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23179 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23180 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23181 echo " Does Emacs use -lungif? ${HAVE_GIF}"
23182 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23183 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23184 echo
23185
23186 if test $USE_XASSERTS = yes; then
23187 echo " Compiling with asserts turned on."
23188 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23189 echo
23190 fi
23191
23192 if test "$USE_X_TOOLKIT" = GTK; then
23193 case "$canonical" in
23194 *cygwin*)
23195 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
23196 will probably get a crash on startup. If this happens, please use another
23197 toolkit for Emacs. See etc/PROBLEMS for more information."
23198 ;;
23199 esac
23200 fi
23201
23202
23203
23204 # Remove any trailing slashes in these variables.
23205 test "${prefix}" != NONE &&
23206 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23207 test "${exec_prefix}" != NONE &&
23208 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23209
23210 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23211 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23212 ## from Makefile.c can correctly provide the arg `-traditional' to the
23213 ## C preprocessor.
23214
23215 cat >conftest.$ac_ext <<_ACEOF
23216 /* confdefs.h. */
23217 _ACEOF
23218 cat confdefs.h >>conftest.$ac_ext
23219 cat >>conftest.$ac_ext <<_ACEOF
23220 /* end confdefs.h. */
23221 yes..yes
23222 _ACEOF
23223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23224 $EGREP "yes..yes" >/dev/null 2>&1; then
23225 CPP_NEED_TRADITIONAL=no
23226 else
23227 CPP_NEED_TRADITIONAL=yes
23228 fi
23229 rm -f conftest*
23230
23231
23232 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"
23233
23234 ac_config_commands="$ac_config_commands default"
23235
23236 cat >confcache <<\_ACEOF
23237 # This file is a shell script that caches the results of configure
23238 # tests run on this system so they can be shared between configure
23239 # scripts and configure runs, see configure's option --config-cache.
23240 # It is not useful on other systems. If it contains results you don't
23241 # want to keep, you may remove or edit it.
23242 #
23243 # config.status only pays attention to the cache file if you give it
23244 # the --recheck option to rerun configure.
23245 #
23246 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23247 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23248 # following values.
23249
23250 _ACEOF
23251
23252 # The following way of writing the cache mishandles newlines in values,
23253 # but we know of no workaround that is simple, portable, and efficient.
23254 # So, we kill variables containing newlines.
23255 # Ultrix sh set writes to stderr and can't be redirected directly,
23256 # and sets the high bit in the cache file unless we assign to the vars.
23257 (
23258 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23259 eval ac_val=\$$ac_var
23260 case $ac_val in #(
23261 *${as_nl}*)
23262 case $ac_var in #(
23263 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23264 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23265 esac
23266 case $ac_var in #(
23267 _ | IFS | as_nl) ;; #(
23268 *) $as_unset $ac_var ;;
23269 esac ;;
23270 esac
23271 done
23272
23273 (set) 2>&1 |
23274 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23275 *${as_nl}ac_space=\ *)
23276 # `set' does not quote correctly, so add quotes (double-quote
23277 # substitution turns \\\\ into \\, and sed turns \\ into \).
23278 sed -n \
23279 "s/'/'\\\\''/g;
23280 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23281 ;; #(
23282 *)
23283 # `set' quotes correctly as required by POSIX, so do not add quotes.
23284 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23285 ;;
23286 esac |
23287 sort
23288 ) |
23289 sed '
23290 /^ac_cv_env_/b end
23291 t clear
23292 :clear
23293 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23294 t end
23295 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23296 :end' >>confcache
23297 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23298 if test -w "$cache_file"; then
23299 test "x$cache_file" != "x/dev/null" &&
23300 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23301 echo "$as_me: updating cache $cache_file" >&6;}
23302 cat confcache >$cache_file
23303 else
23304 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23305 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23306 fi
23307 fi
23308 rm -f confcache
23309
23310 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23311 # Let make expand exec_prefix.
23312 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23313
23314 DEFS=-DHAVE_CONFIG_H
23315
23316 ac_libobjs=
23317 ac_ltlibobjs=
23318 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23319 # 1. Remove the extension, and $U if already installed.
23320 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23321 ac_i=`echo "$ac_i" | sed "$ac_script"`
23322 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23323 # will be set to the directory where LIBOBJS objects are built.
23324 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23325 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23326 done
23327 LIBOBJS=$ac_libobjs
23328
23329 LTLIBOBJS=$ac_ltlibobjs
23330
23331
23332
23333 : ${CONFIG_STATUS=./config.status}
23334 ac_clean_files_save=$ac_clean_files
23335 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23336 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23337 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23338 cat >$CONFIG_STATUS <<_ACEOF
23339 #! $SHELL
23340 # Generated by $as_me.
23341 # Run this file to recreate the current configuration.
23342 # Compiler output produced by configure, useful for debugging
23343 # configure, is in config.log if it exists.
23344
23345 debug=false
23346 ac_cs_recheck=false
23347 ac_cs_silent=false
23348 SHELL=\${CONFIG_SHELL-$SHELL}
23349 _ACEOF
23350
23351 cat >>$CONFIG_STATUS <<\_ACEOF
23352 ## --------------------- ##
23353 ## M4sh Initialization. ##
23354 ## --------------------- ##
23355
23356 # Be more Bourne compatible
23357 DUALCASE=1; export DUALCASE # for MKS sh
23358 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23359 emulate sh
23360 NULLCMD=:
23361 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23362 # is contrary to our usage. Disable this feature.
23363 alias -g '${1+"$@"}'='"$@"'
23364 setopt NO_GLOB_SUBST
23365 else
23366 case `(set -o) 2>/dev/null` in
23367 *posix*) set -o posix ;;
23368 esac
23369
23370 fi
23371
23372
23373
23374
23375 # PATH needs CR
23376 # Avoid depending upon Character Ranges.
23377 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23378 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23379 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23380 as_cr_digits='0123456789'
23381 as_cr_alnum=$as_cr_Letters$as_cr_digits
23382
23383 # The user is always right.
23384 if test "${PATH_SEPARATOR+set}" != set; then
23385 echo "#! /bin/sh" >conf$$.sh
23386 echo "exit 0" >>conf$$.sh
23387 chmod +x conf$$.sh
23388 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23389 PATH_SEPARATOR=';'
23390 else
23391 PATH_SEPARATOR=:
23392 fi
23393 rm -f conf$$.sh
23394 fi
23395
23396 # Support unset when possible.
23397 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23398 as_unset=unset
23399 else
23400 as_unset=false
23401 fi
23402
23403
23404 # IFS
23405 # We need space, tab and new line, in precisely that order. Quoting is
23406 # there to prevent editors from complaining about space-tab.
23407 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23408 # splitting by setting IFS to empty value.)
23409 as_nl='
23410 '
23411 IFS=" "" $as_nl"
23412
23413 # Find who we are. Look in the path if we contain no directory separator.
23414 case $0 in
23415 *[\\/]* ) as_myself=$0 ;;
23416 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23417 for as_dir in $PATH
23418 do
23419 IFS=$as_save_IFS
23420 test -z "$as_dir" && as_dir=.
23421 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23422 done
23423 IFS=$as_save_IFS
23424
23425 ;;
23426 esac
23427 # We did not find ourselves, most probably we were run as `sh COMMAND'
23428 # in which case we are not to be found in the path.
23429 if test "x$as_myself" = x; then
23430 as_myself=$0
23431 fi
23432 if test ! -f "$as_myself"; then
23433 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23434 { (exit 1); exit 1; }
23435 fi
23436
23437 # Work around bugs in pre-3.0 UWIN ksh.
23438 for as_var in ENV MAIL MAILPATH
23439 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23440 done
23441 PS1='$ '
23442 PS2='> '
23443 PS4='+ '
23444
23445 # NLS nuisances.
23446 for as_var in \
23447 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23448 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23449 LC_TELEPHONE LC_TIME
23450 do
23451 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23452 eval $as_var=C; export $as_var
23453 else
23454 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23455 fi
23456 done
23457
23458 # Required to use basename.
23459 if expr a : '\(a\)' >/dev/null 2>&1 &&
23460 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23461 as_expr=expr
23462 else
23463 as_expr=false
23464 fi
23465
23466 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23467 as_basename=basename
23468 else
23469 as_basename=false
23470 fi
23471
23472
23473 # Name of the executable.
23474 as_me=`$as_basename -- "$0" ||
23475 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23476 X"$0" : 'X\(//\)$' \| \
23477 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23478 echo X/"$0" |
23479 sed '/^.*\/\([^/][^/]*\)\/*$/{
23480 s//\1/
23481 q
23482 }
23483 /^X\/\(\/\/\)$/{
23484 s//\1/
23485 q
23486 }
23487 /^X\/\(\/\).*/{
23488 s//\1/
23489 q
23490 }
23491 s/.*/./; q'`
23492
23493 # CDPATH.
23494 $as_unset CDPATH
23495
23496
23497
23498 as_lineno_1=$LINENO
23499 as_lineno_2=$LINENO
23500 test "x$as_lineno_1" != "x$as_lineno_2" &&
23501 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23502
23503 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23504 # uniformly replaced by the line number. The first 'sed' inserts a
23505 # line-number line after each line using $LINENO; the second 'sed'
23506 # does the real work. The second script uses 'N' to pair each
23507 # line-number line with the line containing $LINENO, and appends
23508 # trailing '-' during substitution so that $LINENO is not a special
23509 # case at line end.
23510 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23511 # scripts with optimization help from Paolo Bonzini. Blame Lee
23512 # E. McMahon (1931-1989) for sed's syntax. :-)
23513 sed -n '
23514 p
23515 /[$]LINENO/=
23516 ' <$as_myself |
23517 sed '
23518 s/[$]LINENO.*/&-/
23519 t lineno
23520 b
23521 :lineno
23522 N
23523 :loop
23524 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23525 t loop
23526 s/-\n.*//
23527 ' >$as_me.lineno &&
23528 chmod +x "$as_me.lineno" ||
23529 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23530 { (exit 1); exit 1; }; }
23531
23532 # Don't try to exec as it changes $[0], causing all sort of problems
23533 # (the dirname of $[0] is not the place where we might find the
23534 # original and so on. Autoconf is especially sensitive to this).
23535 . "./$as_me.lineno"
23536 # Exit status is that of the last command.
23537 exit
23538 }
23539
23540
23541 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23542 as_dirname=dirname
23543 else
23544 as_dirname=false
23545 fi
23546
23547 ECHO_C= ECHO_N= ECHO_T=
23548 case `echo -n x` in
23549 -n*)
23550 case `echo 'x\c'` in
23551 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23552 *) ECHO_C='\c';;
23553 esac;;
23554 *)
23555 ECHO_N='-n';;
23556 esac
23557
23558 if expr a : '\(a\)' >/dev/null 2>&1 &&
23559 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23560 as_expr=expr
23561 else
23562 as_expr=false
23563 fi
23564
23565 rm -f conf$$ conf$$.exe conf$$.file
23566 if test -d conf$$.dir; then
23567 rm -f conf$$.dir/conf$$.file
23568 else
23569 rm -f conf$$.dir
23570 mkdir conf$$.dir
23571 fi
23572 echo >conf$$.file
23573 if ln -s conf$$.file conf$$ 2>/dev/null; then
23574 as_ln_s='ln -s'
23575 # ... but there are two gotchas:
23576 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23577 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23578 # In both cases, we have to default to `cp -p'.
23579 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23580 as_ln_s='cp -p'
23581 elif ln conf$$.file conf$$ 2>/dev/null; then
23582 as_ln_s=ln
23583 else
23584 as_ln_s='cp -p'
23585 fi
23586 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23587 rmdir conf$$.dir 2>/dev/null
23588
23589 if mkdir -p . 2>/dev/null; then
23590 as_mkdir_p=:
23591 else
23592 test -d ./-p && rmdir ./-p
23593 as_mkdir_p=false
23594 fi
23595
23596 if test -x / >/dev/null 2>&1; then
23597 as_test_x='test -x'
23598 else
23599 if ls -dL / >/dev/null 2>&1; then
23600 as_ls_L_option=L
23601 else
23602 as_ls_L_option=
23603 fi
23604 as_test_x='
23605 eval sh -c '\''
23606 if test -d "$1"; then
23607 test -d "$1/.";
23608 else
23609 case $1 in
23610 -*)set "./$1";;
23611 esac;
23612 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23613 ???[sx]*):;;*)false;;esac;fi
23614 '\'' sh
23615 '
23616 fi
23617 as_executable_p=$as_test_x
23618
23619 # Sed expression to map a string onto a valid CPP name.
23620 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23621
23622 # Sed expression to map a string onto a valid variable name.
23623 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23624
23625
23626 exec 6>&1
23627
23628 # Save the log message, to keep $[0] and so on meaningful, and to
23629 # report actual input values of CONFIG_FILES etc. instead of their
23630 # values after options handling.
23631 ac_log="
23632 This file was extended by $as_me, which was
23633 generated by GNU Autoconf 2.61. Invocation command line was
23634
23635 CONFIG_FILES = $CONFIG_FILES
23636 CONFIG_HEADERS = $CONFIG_HEADERS
23637 CONFIG_LINKS = $CONFIG_LINKS
23638 CONFIG_COMMANDS = $CONFIG_COMMANDS
23639 $ $0 $@
23640
23641 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23642 "
23643
23644 _ACEOF
23645
23646 cat >>$CONFIG_STATUS <<_ACEOF
23647 # Files that config.status was made for.
23648 config_files="$ac_config_files"
23649 config_headers="$ac_config_headers"
23650 config_commands="$ac_config_commands"
23651
23652 _ACEOF
23653
23654 cat >>$CONFIG_STATUS <<\_ACEOF
23655 ac_cs_usage="\
23656 \`$as_me' instantiates files from templates according to the
23657 current configuration.
23658
23659 Usage: $0 [OPTIONS] [FILE]...
23660
23661 -h, --help print this help, then exit
23662 -V, --version print version number and configuration settings, then exit
23663 -q, --quiet do not print progress messages
23664 -d, --debug don't remove temporary files
23665 --recheck update $as_me by reconfiguring in the same conditions
23666 --file=FILE[:TEMPLATE]
23667 instantiate the configuration file FILE
23668 --header=FILE[:TEMPLATE]
23669 instantiate the configuration header FILE
23670
23671 Configuration files:
23672 $config_files
23673
23674 Configuration headers:
23675 $config_headers
23676
23677 Configuration commands:
23678 $config_commands
23679
23680 Report bugs to <bug-autoconf@gnu.org>."
23681
23682 _ACEOF
23683 cat >>$CONFIG_STATUS <<_ACEOF
23684 ac_cs_version="\\
23685 config.status
23686 configured by $0, generated by GNU Autoconf 2.61,
23687 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23688
23689 Copyright (C) 2006 Free Software Foundation, Inc.
23690 This config.status script is free software; the Free Software Foundation
23691 gives unlimited permission to copy, distribute and modify it."
23692
23693 ac_pwd='$ac_pwd'
23694 srcdir='$srcdir'
23695 INSTALL='$INSTALL'
23696 _ACEOF
23697
23698 cat >>$CONFIG_STATUS <<\_ACEOF
23699 # If no file are specified by the user, then we need to provide default
23700 # value. By we need to know if files were specified by the user.
23701 ac_need_defaults=:
23702 while test $# != 0
23703 do
23704 case $1 in
23705 --*=*)
23706 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23707 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23708 ac_shift=:
23709 ;;
23710 *)
23711 ac_option=$1
23712 ac_optarg=$2
23713 ac_shift=shift
23714 ;;
23715 esac
23716
23717 case $ac_option in
23718 # Handling of the options.
23719 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23720 ac_cs_recheck=: ;;
23721 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23722 echo "$ac_cs_version"; exit ;;
23723 --debug | --debu | --deb | --de | --d | -d )
23724 debug=: ;;
23725 --file | --fil | --fi | --f )
23726 $ac_shift
23727 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23728 ac_need_defaults=false;;
23729 --header | --heade | --head | --hea )
23730 $ac_shift
23731 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23732 ac_need_defaults=false;;
23733 --he | --h)
23734 # Conflict between --help and --header
23735 { echo "$as_me: error: ambiguous option: $1
23736 Try \`$0 --help' for more information." >&2
23737 { (exit 1); exit 1; }; };;
23738 --help | --hel | -h )
23739 echo "$ac_cs_usage"; exit ;;
23740 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23741 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23742 ac_cs_silent=: ;;
23743
23744 # This is an error.
23745 -*) { echo "$as_me: error: unrecognized option: $1
23746 Try \`$0 --help' for more information." >&2
23747 { (exit 1); exit 1; }; } ;;
23748
23749 *) ac_config_targets="$ac_config_targets $1"
23750 ac_need_defaults=false ;;
23751
23752 esac
23753 shift
23754 done
23755
23756 ac_configure_extra_args=
23757
23758 if $ac_cs_silent; then
23759 exec 6>/dev/null
23760 ac_configure_extra_args="$ac_configure_extra_args --silent"
23761 fi
23762
23763 _ACEOF
23764 cat >>$CONFIG_STATUS <<_ACEOF
23765 if \$ac_cs_recheck; then
23766 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23767 CONFIG_SHELL=$SHELL
23768 export CONFIG_SHELL
23769 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23770 fi
23771
23772 _ACEOF
23773 cat >>$CONFIG_STATUS <<\_ACEOF
23774 exec 5>>config.log
23775 {
23776 echo
23777 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23778 ## Running $as_me. ##
23779 _ASBOX
23780 echo "$ac_log"
23781 } >&5
23782
23783 _ACEOF
23784 cat >>$CONFIG_STATUS <<_ACEOF
23785 #
23786 # INIT-COMMANDS
23787 #
23788 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23789
23790 _ACEOF
23791
23792 cat >>$CONFIG_STATUS <<\_ACEOF
23793
23794 # Handling of arguments.
23795 for ac_config_target in $ac_config_targets
23796 do
23797 case $ac_config_target in
23798 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23799 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23800 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23801 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23802 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23803 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23804 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23805 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23806 "lispref/Makefile") CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
23807 "lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
23808 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23809 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23810
23811 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23812 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23813 { (exit 1); exit 1; }; };;
23814 esac
23815 done
23816
23817
23818 # If the user did not use the arguments to specify the items to instantiate,
23819 # then the envvar interface is used. Set only those that are not.
23820 # We use the long form for the default assignment because of an extremely
23821 # bizarre bug on SunOS 4.1.3.
23822 if $ac_need_defaults; then
23823 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23824 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23825 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23826 fi
23827
23828 # Have a temporary directory for convenience. Make it in the build tree
23829 # simply because there is no reason against having it here, and in addition,
23830 # creating and moving files from /tmp can sometimes cause problems.
23831 # Hook for its removal unless debugging.
23832 # Note that there is a small window in which the directory will not be cleaned:
23833 # after its creation but before its name has been assigned to `$tmp'.
23834 $debug ||
23835 {
23836 tmp=
23837 trap 'exit_status=$?
23838 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23839 ' 0
23840 trap '{ (exit 1); exit 1; }' 1 2 13 15
23841 }
23842 # Create a (secure) tmp directory for tmp files.
23843
23844 {
23845 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23846 test -n "$tmp" && test -d "$tmp"
23847 } ||
23848 {
23849 tmp=./conf$$-$RANDOM
23850 (umask 077 && mkdir "$tmp")
23851 } ||
23852 {
23853 echo "$me: cannot create a temporary directory in ." >&2
23854 { (exit 1); exit 1; }
23855 }
23856
23857 #
23858 # Set up the sed scripts for CONFIG_FILES section.
23859 #
23860
23861 # No need to generate the scripts if there are no CONFIG_FILES.
23862 # This happens for instance when ./config.status config.h
23863 if test -n "$CONFIG_FILES"; then
23864
23865 _ACEOF
23866
23867
23868
23869 ac_delim='%!_!# '
23870 for ac_last_try in false false false false false :; do
23871 cat >conf$$subs.sed <<_ACEOF
23872 SHELL!$SHELL$ac_delim
23873 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23874 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23875 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23876 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23877 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23878 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23879 exec_prefix!$exec_prefix$ac_delim
23880 prefix!$prefix$ac_delim
23881 program_transform_name!$program_transform_name$ac_delim
23882 bindir!$bindir$ac_delim
23883 sbindir!$sbindir$ac_delim
23884 libexecdir!$libexecdir$ac_delim
23885 datarootdir!$datarootdir$ac_delim
23886 datadir!$datadir$ac_delim
23887 sysconfdir!$sysconfdir$ac_delim
23888 sharedstatedir!$sharedstatedir$ac_delim
23889 localstatedir!$localstatedir$ac_delim
23890 includedir!$includedir$ac_delim
23891 oldincludedir!$oldincludedir$ac_delim
23892 docdir!$docdir$ac_delim
23893 infodir!$infodir$ac_delim
23894 htmldir!$htmldir$ac_delim
23895 dvidir!$dvidir$ac_delim
23896 pdfdir!$pdfdir$ac_delim
23897 psdir!$psdir$ac_delim
23898 libdir!$libdir$ac_delim
23899 localedir!$localedir$ac_delim
23900 mandir!$mandir$ac_delim
23901 DEFS!$DEFS$ac_delim
23902 ECHO_C!$ECHO_C$ac_delim
23903 ECHO_N!$ECHO_N$ac_delim
23904 ECHO_T!$ECHO_T$ac_delim
23905 LIBS!$LIBS$ac_delim
23906 build_alias!$build_alias$ac_delim
23907 host_alias!$host_alias$ac_delim
23908 target_alias!$target_alias$ac_delim
23909 MAINT!$MAINT$ac_delim
23910 build!$build$ac_delim
23911 build_cpu!$build_cpu$ac_delim
23912 build_vendor!$build_vendor$ac_delim
23913 build_os!$build_os$ac_delim
23914 host!$host$ac_delim
23915 host_cpu!$host_cpu$ac_delim
23916 host_vendor!$host_vendor$ac_delim
23917 host_os!$host_os$ac_delim
23918 CC!$CC$ac_delim
23919 CFLAGS!$CFLAGS$ac_delim
23920 LDFLAGS!$LDFLAGS$ac_delim
23921 CPPFLAGS!$CPPFLAGS$ac_delim
23922 ac_ct_CC!$ac_ct_CC$ac_delim
23923 EXEEXT!$EXEEXT$ac_delim
23924 OBJEXT!$OBJEXT$ac_delim
23925 CPP!$CPP$ac_delim
23926 GREP!$GREP$ac_delim
23927 EGREP!$EGREP$ac_delim
23928 LN_S!$LN_S$ac_delim
23929 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23930 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23931 INSTALL_DATA!$INSTALL_DATA$ac_delim
23932 RANLIB!$RANLIB$ac_delim
23933 INSTALL_INFO!$INSTALL_INFO$ac_delim
23934 GZIP_PROG!$GZIP_PROG$ac_delim
23935 LIBSOUND!$LIBSOUND$ac_delim
23936 PKG_CONFIG!$PKG_CONFIG$ac_delim
23937 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
23938 ALSA_LIBS!$ALSA_LIBS$ac_delim
23939 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
23940 SET_MAKE!$SET_MAKE$ac_delim
23941 XMKMF!$XMKMF$ac_delim
23942 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
23943 GTK_LIBS!$GTK_LIBS$ac_delim
23944 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
23945 XFT_LIBS!$XFT_LIBS$ac_delim
23946 ALLOCA!$ALLOCA$ac_delim
23947 liblockfile!$liblockfile$ac_delim
23948 LIBOBJS!$LIBOBJS$ac_delim
23949 NEED_SETGID!$NEED_SETGID$ac_delim
23950 KMEM_GROUP!$KMEM_GROUP$ac_delim
23951 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
23952 GETOPT_H!$GETOPT_H$ac_delim
23953 GETOPTOBJS!$GETOPTOBJS$ac_delim
23954 version!$version$ac_delim
23955 configuration!$configuration$ac_delim
23956 canonical!$canonical$ac_delim
23957 srcdir!$srcdir$ac_delim
23958 lispdir!$lispdir$ac_delim
23959 locallisppath!$locallisppath$ac_delim
23960 lisppath!$lisppath$ac_delim
23961 x_default_search_path!$x_default_search_path$ac_delim
23962 etcdir!$etcdir$ac_delim
23963 archlibdir!$archlibdir$ac_delim
23964 bitmapdir!$bitmapdir$ac_delim
23965 gamedir!$gamedir$ac_delim
23966 gameuser!$gameuser$ac_delim
23967 c_switch_system!$c_switch_system$ac_delim
23968 c_switch_machine!$c_switch_machine$ac_delim
23969 _ACEOF
23970
23971 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23972 break
23973 elif $ac_last_try; then
23974 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23975 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23976 { (exit 1); exit 1; }; }
23977 else
23978 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23979 fi
23980 done
23981
23982 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23983 if test -n "$ac_eof"; then
23984 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23985 ac_eof=`expr $ac_eof + 1`
23986 fi
23987
23988 cat >>$CONFIG_STATUS <<_ACEOF
23989 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23990 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23991 _ACEOF
23992 sed '
23993 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23994 s/^/s,@/; s/!/@,|#_!!_#|/
23995 :n
23996 t n
23997 s/'"$ac_delim"'$/,g/; t
23998 s/$/\\/; p
23999 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24000 ' >>$CONFIG_STATUS <conf$$subs.sed
24001 rm -f conf$$subs.sed
24002 cat >>$CONFIG_STATUS <<_ACEOF
24003 CEOF$ac_eof
24004 _ACEOF
24005
24006
24007 ac_delim='%!_!# '
24008 for ac_last_try in false false false false false :; do
24009 cat >conf$$subs.sed <<_ACEOF
24010 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24011 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24012 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24013 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24014 machfile!$machfile$ac_delim
24015 opsysfile!$opsysfile$ac_delim
24016 carbon_appdir!$carbon_appdir$ac_delim
24017 LIBGPM!$LIBGPM$ac_delim
24018 LTLIBOBJS!$LTLIBOBJS$ac_delim
24019 _ACEOF
24020
24021 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
24022 break
24023 elif $ac_last_try; then
24024 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24025 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24026 { (exit 1); exit 1; }; }
24027 else
24028 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24029 fi
24030 done
24031
24032 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24033 if test -n "$ac_eof"; then
24034 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24035 ac_eof=`expr $ac_eof + 1`
24036 fi
24037
24038 cat >>$CONFIG_STATUS <<_ACEOF
24039 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24040 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24041 _ACEOF
24042 sed '
24043 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24044 s/^/s,@/; s/!/@,|#_!!_#|/
24045 :n
24046 t n
24047 s/'"$ac_delim"'$/,g/; t
24048 s/$/\\/; p
24049 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24050 ' >>$CONFIG_STATUS <conf$$subs.sed
24051 rm -f conf$$subs.sed
24052 cat >>$CONFIG_STATUS <<_ACEOF
24053 :end
24054 s/|#_!!_#|//g
24055 CEOF$ac_eof
24056 _ACEOF
24057
24058
24059 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24060 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24061 # trailing colons and then remove the whole line if VPATH becomes empty
24062 # (actually we leave an empty line to preserve line numbers).
24063 if test "x$srcdir" = x.; then
24064 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24065 s/:*\$(srcdir):*/:/
24066 s/:*\${srcdir}:*/:/
24067 s/:*@srcdir@:*/:/
24068 s/^\([^=]*=[ ]*\):*/\1/
24069 s/:*$//
24070 s/^[^=]*=[ ]*$//
24071 }'
24072 fi
24073
24074 cat >>$CONFIG_STATUS <<\_ACEOF
24075 fi # test -n "$CONFIG_FILES"
24076
24077
24078 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24079 do
24080 case $ac_tag in
24081 :[FHLC]) ac_mode=$ac_tag; continue;;
24082 esac
24083 case $ac_mode$ac_tag in
24084 :[FHL]*:*);;
24085 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24086 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24087 { (exit 1); exit 1; }; };;
24088 :[FH]-) ac_tag=-:-;;
24089 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24090 esac
24091 ac_save_IFS=$IFS
24092 IFS=:
24093 set x $ac_tag
24094 IFS=$ac_save_IFS
24095 shift
24096 ac_file=$1
24097 shift
24098
24099 case $ac_mode in
24100 :L) ac_source=$1;;
24101 :[FH])
24102 ac_file_inputs=
24103 for ac_f
24104 do
24105 case $ac_f in
24106 -) ac_f="$tmp/stdin";;
24107 *) # Look for the file first in the build tree, then in the source tree
24108 # (if the path is not absolute). The absolute path cannot be DOS-style,
24109 # because $ac_f cannot contain `:'.
24110 test -f "$ac_f" ||
24111 case $ac_f in
24112 [\\/$]*) false;;
24113 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24114 esac ||
24115 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24116 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24117 { (exit 1); exit 1; }; };;
24118 esac
24119 ac_file_inputs="$ac_file_inputs $ac_f"
24120 done
24121
24122 # Let's still pretend it is `configure' which instantiates (i.e., don't
24123 # use $as_me), people would be surprised to read:
24124 # /* config.h. Generated by config.status. */
24125 configure_input="Generated from "`IFS=:
24126 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24127 if test x"$ac_file" != x-; then
24128 configure_input="$ac_file. $configure_input"
24129 { echo "$as_me:$LINENO: creating $ac_file" >&5
24130 echo "$as_me: creating $ac_file" >&6;}
24131 fi
24132
24133 case $ac_tag in
24134 *:-:* | *:-) cat >"$tmp/stdin";;
24135 esac
24136 ;;
24137 esac
24138
24139 ac_dir=`$as_dirname -- "$ac_file" ||
24140 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24141 X"$ac_file" : 'X\(//\)[^/]' \| \
24142 X"$ac_file" : 'X\(//\)$' \| \
24143 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24144 echo X"$ac_file" |
24145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24146 s//\1/
24147 q
24148 }
24149 /^X\(\/\/\)[^/].*/{
24150 s//\1/
24151 q
24152 }
24153 /^X\(\/\/\)$/{
24154 s//\1/
24155 q
24156 }
24157 /^X\(\/\).*/{
24158 s//\1/
24159 q
24160 }
24161 s/.*/./; q'`
24162 { as_dir="$ac_dir"
24163 case $as_dir in #(
24164 -*) as_dir=./$as_dir;;
24165 esac
24166 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24167 as_dirs=
24168 while :; do
24169 case $as_dir in #(
24170 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24171 *) as_qdir=$as_dir;;
24172 esac
24173 as_dirs="'$as_qdir' $as_dirs"
24174 as_dir=`$as_dirname -- "$as_dir" ||
24175 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24176 X"$as_dir" : 'X\(//\)[^/]' \| \
24177 X"$as_dir" : 'X\(//\)$' \| \
24178 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24179 echo X"$as_dir" |
24180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24181 s//\1/
24182 q
24183 }
24184 /^X\(\/\/\)[^/].*/{
24185 s//\1/
24186 q
24187 }
24188 /^X\(\/\/\)$/{
24189 s//\1/
24190 q
24191 }
24192 /^X\(\/\).*/{
24193 s//\1/
24194 q
24195 }
24196 s/.*/./; q'`
24197 test -d "$as_dir" && break
24198 done
24199 test -z "$as_dirs" || eval "mkdir $as_dirs"
24200 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24201 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24202 { (exit 1); exit 1; }; }; }
24203 ac_builddir=.
24204
24205 case "$ac_dir" in
24206 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24207 *)
24208 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24209 # A ".." for each directory in $ac_dir_suffix.
24210 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24211 case $ac_top_builddir_sub in
24212 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24213 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24214 esac ;;
24215 esac
24216 ac_abs_top_builddir=$ac_pwd
24217 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24218 # for backward compatibility:
24219 ac_top_builddir=$ac_top_build_prefix
24220
24221 case $srcdir in
24222 .) # We are building in place.
24223 ac_srcdir=.
24224 ac_top_srcdir=$ac_top_builddir_sub
24225 ac_abs_top_srcdir=$ac_pwd ;;
24226 [\\/]* | ?:[\\/]* ) # Absolute name.
24227 ac_srcdir=$srcdir$ac_dir_suffix;
24228 ac_top_srcdir=$srcdir
24229 ac_abs_top_srcdir=$srcdir ;;
24230 *) # Relative name.
24231 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24232 ac_top_srcdir=$ac_top_build_prefix$srcdir
24233 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24234 esac
24235 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24236
24237
24238 case $ac_mode in
24239 :F)
24240 #
24241 # CONFIG_FILE
24242 #
24243
24244 case $INSTALL in
24245 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24246 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24247 esac
24248 _ACEOF
24249
24250 cat >>$CONFIG_STATUS <<\_ACEOF
24251 # If the template does not know about datarootdir, expand it.
24252 # FIXME: This hack should be removed a few years after 2.60.
24253 ac_datarootdir_hack=; ac_datarootdir_seen=
24254
24255 case `sed -n '/datarootdir/ {
24256 p
24257 q
24258 }
24259 /@datadir@/p
24260 /@docdir@/p
24261 /@infodir@/p
24262 /@localedir@/p
24263 /@mandir@/p
24264 ' $ac_file_inputs` in
24265 *datarootdir*) ac_datarootdir_seen=yes;;
24266 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24267 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24268 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24269 _ACEOF
24270 cat >>$CONFIG_STATUS <<_ACEOF
24271 ac_datarootdir_hack='
24272 s&@datadir@&$datadir&g
24273 s&@docdir@&$docdir&g
24274 s&@infodir@&$infodir&g
24275 s&@localedir@&$localedir&g
24276 s&@mandir@&$mandir&g
24277 s&\\\${datarootdir}&$datarootdir&g' ;;
24278 esac
24279 _ACEOF
24280
24281 # Neutralize VPATH when `$srcdir' = `.'.
24282 # Shell code in configure.ac might set extrasub.
24283 # FIXME: do we really want to maintain this feature?
24284 cat >>$CONFIG_STATUS <<_ACEOF
24285 sed "$ac_vpsub
24286 $extrasub
24287 _ACEOF
24288 cat >>$CONFIG_STATUS <<\_ACEOF
24289 :t
24290 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24291 s&@configure_input@&$configure_input&;t t
24292 s&@top_builddir@&$ac_top_builddir_sub&;t t
24293 s&@srcdir@&$ac_srcdir&;t t
24294 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24295 s&@top_srcdir@&$ac_top_srcdir&;t t
24296 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24297 s&@builddir@&$ac_builddir&;t t
24298 s&@abs_builddir@&$ac_abs_builddir&;t t
24299 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24300 s&@INSTALL@&$ac_INSTALL&;t t
24301 $ac_datarootdir_hack
24302 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24303
24304 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24305 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24306 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24307 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24308 which seems to be undefined. Please make sure it is defined." >&5
24309 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24310 which seems to be undefined. Please make sure it is defined." >&2;}
24311
24312 rm -f "$tmp/stdin"
24313 case $ac_file in
24314 -) cat "$tmp/out"; rm -f "$tmp/out";;
24315 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24316 esac
24317 ;;
24318 :H)
24319 #
24320 # CONFIG_HEADER
24321 #
24322 _ACEOF
24323
24324 # Transform confdefs.h into a sed script `conftest.defines', that
24325 # substitutes the proper values into config.h.in to produce config.h.
24326 rm -f conftest.defines conftest.tail
24327 # First, append a space to every undef/define line, to ease matching.
24328 echo 's/$/ /' >conftest.defines
24329 # Then, protect against being on the right side of a sed subst, or in
24330 # an unquoted here document, in config.status. If some macros were
24331 # called several times there might be several #defines for the same
24332 # symbol, which is useless. But do not sort them, since the last
24333 # AC_DEFINE must be honored.
24334 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24335 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24336 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24337 # PARAMS is the parameter list in the macro definition--in most cases, it's
24338 # just an empty string.
24339 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24340 ac_dB='\\)[ (].*,\\1define\\2'
24341 ac_dC=' '
24342 ac_dD=' ,'
24343
24344 uniq confdefs.h |
24345 sed -n '
24346 t rset
24347 :rset
24348 s/^[ ]*#[ ]*define[ ][ ]*//
24349 t ok
24350 d
24351 :ok
24352 s/[\\&,]/\\&/g
24353 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24354 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24355 ' >>conftest.defines
24356
24357 # Remove the space that was appended to ease matching.
24358 # Then replace #undef with comments. This is necessary, for
24359 # example, in the case of _POSIX_SOURCE, which is predefined and required
24360 # on some systems where configure will not decide to define it.
24361 # (The regexp can be short, since the line contains either #define or #undef.)
24362 echo 's/ $//
24363 s,^[ #]*u.*,/* & */,' >>conftest.defines
24364
24365 # Break up conftest.defines:
24366 ac_max_sed_lines=50
24367
24368 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24369 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24370 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24371 # et cetera.
24372 ac_in='$ac_file_inputs'
24373 ac_out='"$tmp/out1"'
24374 ac_nxt='"$tmp/out2"'
24375
24376 while :
24377 do
24378 # Write a here document:
24379 cat >>$CONFIG_STATUS <<_ACEOF
24380 # First, check the format of the line:
24381 cat >"\$tmp/defines.sed" <<\\CEOF
24382 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24383 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24384 b
24385 :def
24386 _ACEOF
24387 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24388 echo 'CEOF
24389 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24390 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24391 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24392 grep . conftest.tail >/dev/null || break
24393 rm -f conftest.defines
24394 mv conftest.tail conftest.defines
24395 done
24396 rm -f conftest.defines conftest.tail
24397
24398 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24399 cat >>$CONFIG_STATUS <<\_ACEOF
24400 if test x"$ac_file" != x-; then
24401 echo "/* $configure_input */" >"$tmp/config.h"
24402 cat "$ac_result" >>"$tmp/config.h"
24403 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24404 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24405 echo "$as_me: $ac_file is unchanged" >&6;}
24406 else
24407 rm -f $ac_file
24408 mv "$tmp/config.h" $ac_file
24409 fi
24410 else
24411 echo "/* $configure_input */"
24412 cat "$ac_result"
24413 fi
24414 rm -f "$tmp/out12"
24415 ;;
24416
24417 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24418 echo "$as_me: executing $ac_file commands" >&6;}
24419 ;;
24420 esac
24421
24422
24423 case $ac_file$ac_mode in
24424 "default":C)
24425
24426 ### Make the necessary directories, if they don't exist.
24427 for dir in etc lisp ; do
24428 test -d ${dir} || mkdir ${dir}
24429 done
24430
24431 # Build src/Makefile from ${srcdir}/src/Makefile.c
24432 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24433 # This must be done after src/config.h is built, since we rely on that file.
24434
24435 # Now get this: Some word that is part of the ${srcdir} directory name
24436 # or the ${configuration} value might, just might, happen to be an
24437 # identifier like `sun4' or `i386' or something, and be predefined by
24438 # the C preprocessor to some helpful value like 1, or maybe the empty
24439 # string. Needless to say consequent macro substitutions are less
24440 # than conducive to the makefile finding the correct directory.
24441 undefs="`echo $top_srcdir $configuration $canonical |
24442 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24443 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24444 `"
24445
24446 echo creating src/epaths.h
24447 ${MAKE-make} epaths-force
24448
24449 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24450 # `..' to `. .' unless invoked with -traditional
24451
24452 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24453 CPPFLAGS="$CPPFLAGS -traditional"
24454 fi
24455
24456 echo creating lib-src/Makefile
24457 ( cd lib-src
24458 rm -f junk.c junk1.c junk2.c
24459 sed -e '/start of cpp stuff/q' \
24460 < Makefile.c > junk1.c
24461 sed -e '1,/start of cpp stuff/d'\
24462 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24463 < Makefile.c > junk.c
24464 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24465 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24466 cat junk1.c junk2.c > Makefile.new
24467 rm -f junk.c junk1.c junk2.c
24468 chmod 444 Makefile.new
24469 mv -f Makefile.new Makefile
24470 )
24471
24472 echo creating src/Makefile
24473 ( cd src
24474 rm -f junk.c junk1.c junk2.c
24475 sed -e '/start of cpp stuff/q' \
24476 < Makefile.c > junk1.c
24477 sed -e '1,/start of cpp stuff/d'\
24478 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24479 < Makefile.c > junk.c
24480 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24481 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24482 cat junk1.c junk2.c > Makefile.new
24483 rm -f junk.c junk1.c junk2.c
24484 chmod 444 Makefile.new
24485 mv -f Makefile.new Makefile
24486 )
24487
24488 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24489 echo creating src/.gdbinit
24490 echo source $srcdir/src/.gdbinit > src/.gdbinit
24491 fi
24492
24493 # This is how we know whether to re-run configure in certain cases.
24494 touch src/config.stamp
24495
24496 ;;
24497
24498 esac
24499 done # for ac_tag
24500
24501
24502 { (exit 0); exit 0; }
24503 _ACEOF
24504 chmod +x $CONFIG_STATUS
24505 ac_clean_files=$ac_clean_files_save
24506
24507
24508 # configure is writing to config.log, and then calls config.status.
24509 # config.status does its own redirection, appending to config.log.
24510 # Unfortunately, on DOS this fails, as config.log is still kept open
24511 # by configure, so config.status won't be able to write to it; its
24512 # output is simply discarded. So we exec the FD to /dev/null,
24513 # effectively closing config.log, so it can be properly (re)opened and
24514 # appended to by config.status. When coming back to configure, we
24515 # need to make the FD available again.
24516 if test "$no_create" != yes; then
24517 ac_cs_success=:
24518 ac_config_status_args=
24519 test "$silent" = yes &&
24520 ac_config_status_args="$ac_config_status_args --quiet"
24521 exec 5>/dev/null
24522 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24523 exec 5>>config.log
24524 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24525 # would make configure fail if this is the last instruction.
24526 $ac_cs_success || { (exit 1); exit 1; }
24527 fi
24528
24529