]> code.delx.au - gnu-emacs/blob - configure
Merge from emacs--devo--0
[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 FREETYPE_CFLAGS
695 FREETYPE_LIBS
696 FONTCONFIG_CFLAGS
697 FONTCONFIG_LIBS
698 HAVE_LIBOTF
699 LIBOTF_CFLAGS
700 LIBOTF_LIBS
701 ALLOCA
702 liblockfile
703 LIBOBJS
704 NEED_SETGID
705 KMEM_GROUP
706 GETLOADAVG_LIBS
707 GETOPT_H
708 GETOPTOBJS
709 version
710 configuration
711 canonical
712 srcdir
713 lispdir
714 locallisppath
715 lisppath
716 x_default_search_path
717 etcdir
718 archlibdir
719 bitmapdir
720 gamedir
721 gameuser
722 c_switch_system
723 c_switch_machine
724 LD_SWITCH_X_SITE
725 LD_SWITCH_X_SITE_AUX
726 C_SWITCH_X_SITE
727 X_TOOLKIT_TYPE
728 machfile
729 opsysfile
730 carbon_appdir
731 LTLIBOBJS'
732 ac_subst_files=''
733 ac_precious_vars='build_alias
734 host_alias
735 target_alias
736 CC
737 CFLAGS
738 LDFLAGS
739 LIBS
740 CPPFLAGS
741 CPP
742 XMKMF'
743
744
745 # Initialize some variables set by options.
746 ac_init_help=
747 ac_init_version=false
748 # The variables have the same names as the options, with
749 # dashes changed to underlines.
750 cache_file=/dev/null
751 exec_prefix=NONE
752 no_create=
753 no_recursion=
754 prefix=NONE
755 program_prefix=NONE
756 program_suffix=NONE
757 program_transform_name=s,x,x,
758 silent=
759 site=
760 srcdir=
761 verbose=
762 x_includes=NONE
763 x_libraries=NONE
764
765 # Installation directory options.
766 # These are left unexpanded so users can "make install exec_prefix=/foo"
767 # and all the variables that are supposed to be based on exec_prefix
768 # by default will actually change.
769 # Use braces instead of parens because sh, perl, etc. also accept them.
770 # (The list follows the same order as the GNU Coding Standards.)
771 bindir='${exec_prefix}/bin'
772 sbindir='${exec_prefix}/sbin'
773 libexecdir='${exec_prefix}/libexec'
774 datarootdir='${prefix}/share'
775 datadir='${datarootdir}'
776 sysconfdir='${prefix}/etc'
777 sharedstatedir='${prefix}/com'
778 localstatedir='${prefix}/var'
779 includedir='${prefix}/include'
780 oldincludedir='/usr/include'
781 docdir='${datarootdir}/doc/${PACKAGE}'
782 infodir='${datarootdir}/info'
783 htmldir='${docdir}'
784 dvidir='${docdir}'
785 pdfdir='${docdir}'
786 psdir='${docdir}'
787 libdir='${exec_prefix}/lib'
788 localedir='${datarootdir}/locale'
789 mandir='${datarootdir}/man'
790
791 ac_prev=
792 ac_dashdash=
793 for ac_option
794 do
795 # If the previous option needs an argument, assign it.
796 if test -n "$ac_prev"; then
797 eval $ac_prev=\$ac_option
798 ac_prev=
799 continue
800 fi
801
802 case $ac_option in
803 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
804 *) ac_optarg=yes ;;
805 esac
806
807 # Accept the important Cygnus configure options, so we can diagnose typos.
808
809 case $ac_dashdash$ac_option in
810 --)
811 ac_dashdash=yes ;;
812
813 -bindir | --bindir | --bindi | --bind | --bin | --bi)
814 ac_prev=bindir ;;
815 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
816 bindir=$ac_optarg ;;
817
818 -build | --build | --buil | --bui | --bu)
819 ac_prev=build_alias ;;
820 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
821 build_alias=$ac_optarg ;;
822
823 -cache-file | --cache-file | --cache-fil | --cache-fi \
824 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
825 ac_prev=cache_file ;;
826 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
827 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
828 cache_file=$ac_optarg ;;
829
830 --config-cache | -C)
831 cache_file=config.cache ;;
832
833 -datadir | --datadir | --datadi | --datad)
834 ac_prev=datadir ;;
835 -datadir=* | --datadir=* | --datadi=* | --datad=*)
836 datadir=$ac_optarg ;;
837
838 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
839 | --dataroo | --dataro | --datar)
840 ac_prev=datarootdir ;;
841 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
842 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
843 datarootdir=$ac_optarg ;;
844
845 -disable-* | --disable-*)
846 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
847 # Reject names that are not valid shell variable names.
848 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
849 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
850 { (exit 1); exit 1; }; }
851 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
852 eval enable_$ac_feature=no ;;
853
854 -docdir | --docdir | --docdi | --doc | --do)
855 ac_prev=docdir ;;
856 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
857 docdir=$ac_optarg ;;
858
859 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
860 ac_prev=dvidir ;;
861 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
862 dvidir=$ac_optarg ;;
863
864 -enable-* | --enable-*)
865 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
866 # Reject names that are not valid shell variable names.
867 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
868 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
869 { (exit 1); exit 1; }; }
870 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
871 eval enable_$ac_feature=\$ac_optarg ;;
872
873 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
874 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
875 | --exec | --exe | --ex)
876 ac_prev=exec_prefix ;;
877 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
878 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
879 | --exec=* | --exe=* | --ex=*)
880 exec_prefix=$ac_optarg ;;
881
882 -gas | --gas | --ga | --g)
883 # Obsolete; use --with-gas.
884 with_gas=yes ;;
885
886 -help | --help | --hel | --he | -h)
887 ac_init_help=long ;;
888 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
889 ac_init_help=recursive ;;
890 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
891 ac_init_help=short ;;
892
893 -host | --host | --hos | --ho)
894 ac_prev=host_alias ;;
895 -host=* | --host=* | --hos=* | --ho=*)
896 host_alias=$ac_optarg ;;
897
898 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
899 ac_prev=htmldir ;;
900 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
901 | --ht=*)
902 htmldir=$ac_optarg ;;
903
904 -includedir | --includedir | --includedi | --included | --include \
905 | --includ | --inclu | --incl | --inc)
906 ac_prev=includedir ;;
907 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
908 | --includ=* | --inclu=* | --incl=* | --inc=*)
909 includedir=$ac_optarg ;;
910
911 -infodir | --infodir | --infodi | --infod | --info | --inf)
912 ac_prev=infodir ;;
913 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
914 infodir=$ac_optarg ;;
915
916 -libdir | --libdir | --libdi | --libd)
917 ac_prev=libdir ;;
918 -libdir=* | --libdir=* | --libdi=* | --libd=*)
919 libdir=$ac_optarg ;;
920
921 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
922 | --libexe | --libex | --libe)
923 ac_prev=libexecdir ;;
924 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
925 | --libexe=* | --libex=* | --libe=*)
926 libexecdir=$ac_optarg ;;
927
928 -localedir | --localedir | --localedi | --localed | --locale)
929 ac_prev=localedir ;;
930 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
931 localedir=$ac_optarg ;;
932
933 -localstatedir | --localstatedir | --localstatedi | --localstated \
934 | --localstate | --localstat | --localsta | --localst | --locals)
935 ac_prev=localstatedir ;;
936 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
937 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
938 localstatedir=$ac_optarg ;;
939
940 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
941 ac_prev=mandir ;;
942 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
943 mandir=$ac_optarg ;;
944
945 -nfp | --nfp | --nf)
946 # Obsolete; use --without-fp.
947 with_fp=no ;;
948
949 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
950 | --no-cr | --no-c | -n)
951 no_create=yes ;;
952
953 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
954 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
955 no_recursion=yes ;;
956
957 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
958 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
959 | --oldin | --oldi | --old | --ol | --o)
960 ac_prev=oldincludedir ;;
961 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
962 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
963 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
964 oldincludedir=$ac_optarg ;;
965
966 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
967 ac_prev=prefix ;;
968 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
969 prefix=$ac_optarg ;;
970
971 -program-prefix | --program-prefix | --program-prefi | --program-pref \
972 | --program-pre | --program-pr | --program-p)
973 ac_prev=program_prefix ;;
974 -program-prefix=* | --program-prefix=* | --program-prefi=* \
975 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
976 program_prefix=$ac_optarg ;;
977
978 -program-suffix | --program-suffix | --program-suffi | --program-suff \
979 | --program-suf | --program-su | --program-s)
980 ac_prev=program_suffix ;;
981 -program-suffix=* | --program-suffix=* | --program-suffi=* \
982 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
983 program_suffix=$ac_optarg ;;
984
985 -program-transform-name | --program-transform-name \
986 | --program-transform-nam | --program-transform-na \
987 | --program-transform-n | --program-transform- \
988 | --program-transform | --program-transfor \
989 | --program-transfo | --program-transf \
990 | --program-trans | --program-tran \
991 | --progr-tra | --program-tr | --program-t)
992 ac_prev=program_transform_name ;;
993 -program-transform-name=* | --program-transform-name=* \
994 | --program-transform-nam=* | --program-transform-na=* \
995 | --program-transform-n=* | --program-transform-=* \
996 | --program-transform=* | --program-transfor=* \
997 | --program-transfo=* | --program-transf=* \
998 | --program-trans=* | --program-tran=* \
999 | --progr-tra=* | --program-tr=* | --program-t=*)
1000 program_transform_name=$ac_optarg ;;
1001
1002 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1003 ac_prev=pdfdir ;;
1004 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1005 pdfdir=$ac_optarg ;;
1006
1007 -psdir | --psdir | --psdi | --psd | --ps)
1008 ac_prev=psdir ;;
1009 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1010 psdir=$ac_optarg ;;
1011
1012 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1013 | -silent | --silent | --silen | --sile | --sil)
1014 silent=yes ;;
1015
1016 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1017 ac_prev=sbindir ;;
1018 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1019 | --sbi=* | --sb=*)
1020 sbindir=$ac_optarg ;;
1021
1022 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1023 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1024 | --sharedst | --shareds | --shared | --share | --shar \
1025 | --sha | --sh)
1026 ac_prev=sharedstatedir ;;
1027 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1028 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1029 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1030 | --sha=* | --sh=*)
1031 sharedstatedir=$ac_optarg ;;
1032
1033 -site | --site | --sit)
1034 ac_prev=site ;;
1035 -site=* | --site=* | --sit=*)
1036 site=$ac_optarg ;;
1037
1038 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1039 ac_prev=srcdir ;;
1040 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1041 srcdir=$ac_optarg ;;
1042
1043 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1044 | --syscon | --sysco | --sysc | --sys | --sy)
1045 ac_prev=sysconfdir ;;
1046 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1047 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1048 sysconfdir=$ac_optarg ;;
1049
1050 -target | --target | --targe | --targ | --tar | --ta | --t)
1051 ac_prev=target_alias ;;
1052 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1053 target_alias=$ac_optarg ;;
1054
1055 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1056 verbose=yes ;;
1057
1058 -version | --version | --versio | --versi | --vers | -V)
1059 ac_init_version=: ;;
1060
1061 -with-* | --with-*)
1062 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1065 { echo "$as_me: error: invalid package name: $ac_package" >&2
1066 { (exit 1); exit 1; }; }
1067 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1068 eval with_$ac_package=\$ac_optarg ;;
1069
1070 -without-* | --without-*)
1071 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1074 { echo "$as_me: error: invalid package name: $ac_package" >&2
1075 { (exit 1); exit 1; }; }
1076 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1077 eval with_$ac_package=no ;;
1078
1079 --x)
1080 # Obsolete; use --with-x.
1081 with_x=yes ;;
1082
1083 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1084 | --x-incl | --x-inc | --x-in | --x-i)
1085 ac_prev=x_includes ;;
1086 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1087 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1088 x_includes=$ac_optarg ;;
1089
1090 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1091 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1092 ac_prev=x_libraries ;;
1093 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1094 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1095 x_libraries=$ac_optarg ;;
1096
1097 -*) { echo "$as_me: error: unrecognized option: $ac_option
1098 Try \`$0 --help' for more information." >&2
1099 { (exit 1); exit 1; }; }
1100 ;;
1101
1102 *=*)
1103 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1106 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1107 { (exit 1); exit 1; }; }
1108 eval $ac_envvar=\$ac_optarg
1109 export $ac_envvar ;;
1110
1111 *)
1112 # FIXME: should be removed in autoconf 3.0.
1113 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1114 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1115 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1116 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1117 ;;
1118
1119 esac
1120 done
1121
1122 if test -n "$ac_prev"; then
1123 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1124 { echo "$as_me: error: missing argument to $ac_option" >&2
1125 { (exit 1); exit 1; }; }
1126 fi
1127
1128 # Be sure to have absolute directory names.
1129 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1130 datadir sysconfdir sharedstatedir localstatedir includedir \
1131 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1132 libdir localedir mandir
1133 do
1134 eval ac_val=\$$ac_var
1135 case $ac_val in
1136 [\\/$]* | ?:[\\/]* ) continue;;
1137 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1138 esac
1139 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1140 { (exit 1); exit 1; }; }
1141 done
1142
1143 # There might be people who depend on the old broken behavior: `$host'
1144 # used to hold the argument of --host etc.
1145 # FIXME: To remove some day.
1146 build=$build_alias
1147 host=$host_alias
1148 target=$target_alias
1149
1150 # FIXME: To remove some day.
1151 if test "x$host_alias" != x; then
1152 if test "x$build_alias" = x; then
1153 cross_compiling=maybe
1154 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1155 If a cross compiler is detected then cross compile mode will be used." >&2
1156 elif test "x$build_alias" != "x$host_alias"; then
1157 cross_compiling=yes
1158 fi
1159 fi
1160
1161 ac_tool_prefix=
1162 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1163
1164 test "$silent" = yes && exec 6>/dev/null
1165
1166
1167 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1168 ac_ls_di=`ls -di .` &&
1169 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1170 { echo "$as_me: error: Working directory cannot be determined" >&2
1171 { (exit 1); exit 1; }; }
1172 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1173 { echo "$as_me: error: pwd does not report name of working directory" >&2
1174 { (exit 1); exit 1; }; }
1175
1176
1177 # Find the source files, if location was not specified.
1178 if test -z "$srcdir"; then
1179 ac_srcdir_defaulted=yes
1180 # Try the directory containing this script, then the parent directory.
1181 ac_confdir=`$as_dirname -- "$0" ||
1182 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1183 X"$0" : 'X\(//\)[^/]' \| \
1184 X"$0" : 'X\(//\)$' \| \
1185 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1186 echo X"$0" |
1187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1188 s//\1/
1189 q
1190 }
1191 /^X\(\/\/\)[^/].*/{
1192 s//\1/
1193 q
1194 }
1195 /^X\(\/\/\)$/{
1196 s//\1/
1197 q
1198 }
1199 /^X\(\/\).*/{
1200 s//\1/
1201 q
1202 }
1203 s/.*/./; q'`
1204 srcdir=$ac_confdir
1205 if test ! -r "$srcdir/$ac_unique_file"; then
1206 srcdir=..
1207 fi
1208 else
1209 ac_srcdir_defaulted=no
1210 fi
1211 if test ! -r "$srcdir/$ac_unique_file"; then
1212 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1213 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1214 { (exit 1); exit 1; }; }
1215 fi
1216 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1217 ac_abs_confdir=`(
1218 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1219 { (exit 1); exit 1; }; }
1220 pwd)`
1221 # When building in place, set srcdir=.
1222 if test "$ac_abs_confdir" = "$ac_pwd"; then
1223 srcdir=.
1224 fi
1225 # Remove unnecessary trailing slashes from srcdir.
1226 # Double slashes in file names in object file debugging info
1227 # mess up M-x gdb in Emacs.
1228 case $srcdir in
1229 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1230 esac
1231 for ac_var in $ac_precious_vars; do
1232 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1233 eval ac_env_${ac_var}_value=\$${ac_var}
1234 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1235 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1236 done
1237
1238 #
1239 # Report the --help message.
1240 #
1241 if test "$ac_init_help" = "long"; then
1242 # Omit some internal or obsolete options to make the list less imposing.
1243 # This message is too long to be a string in the A/UX 3.1 sh.
1244 cat <<_ACEOF
1245 \`configure' configures this package to adapt to many kinds of systems.
1246
1247 Usage: $0 [OPTION]... [VAR=VALUE]...
1248
1249 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1250 VAR=VALUE. See below for descriptions of some of the useful variables.
1251
1252 Defaults for the options are specified in brackets.
1253
1254 Configuration:
1255 -h, --help display this help and exit
1256 --help=short display options specific to this package
1257 --help=recursive display the short help of all the included packages
1258 -V, --version display version information and exit
1259 -q, --quiet, --silent do not print \`checking...' messages
1260 --cache-file=FILE cache test results in FILE [disabled]
1261 -C, --config-cache alias for \`--cache-file=config.cache'
1262 -n, --no-create do not create output files
1263 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1264
1265 Installation directories:
1266 --prefix=PREFIX install architecture-independent files in PREFIX
1267 [$ac_default_prefix]
1268 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1269 [PREFIX]
1270
1271 By default, \`make install' will install all the files in
1272 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1273 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1274 for instance \`--prefix=\$HOME'.
1275
1276 For better control, use the options below.
1277
1278 Fine tuning of the installation directories:
1279 --bindir=DIR user executables [EPREFIX/bin]
1280 --sbindir=DIR system admin executables [EPREFIX/sbin]
1281 --libexecdir=DIR program executables [EPREFIX/libexec]
1282 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1283 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1284 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1285 --libdir=DIR object code libraries [EPREFIX/lib]
1286 --includedir=DIR C header files [PREFIX/include]
1287 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1288 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1289 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1290 --infodir=DIR info documentation [DATAROOTDIR/info]
1291 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1292 --mandir=DIR man documentation [DATAROOTDIR/man]
1293 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1294 --htmldir=DIR html documentation [DOCDIR]
1295 --dvidir=DIR dvi documentation [DOCDIR]
1296 --pdfdir=DIR pdf documentation [DOCDIR]
1297 --psdir=DIR ps documentation [DOCDIR]
1298 _ACEOF
1299
1300 cat <<\_ACEOF
1301
1302 Program names:
1303 --program-prefix=PREFIX prepend PREFIX to installed program names
1304 --program-suffix=SUFFIX append SUFFIX to installed program names
1305 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1306
1307 X features:
1308 --x-includes=DIR X include files are in DIR
1309 --x-libraries=DIR X library files are in DIR
1310
1311 System types:
1312 --build=BUILD configure for building on BUILD [guessed]
1313 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1314 _ACEOF
1315 fi
1316
1317 if test -n "$ac_init_help"; then
1318
1319 cat <<\_ACEOF
1320
1321 Optional Features:
1322 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1323 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1324 --enable-carbon-app[=DIR] [DIR=/Application]
1325 specify install directory for Emacs.app on Mac OS X
1326 --enable-font-backend compile code of font-backend support
1327 --enable-asserts compile code with asserts enabled
1328 --enable-maintainer-mode enable make rules and dependencies not useful
1329 (and sometimes confusing) to the casual installer
1330 --enable-locallisppath=PATH
1331 directories Emacs should search for lisp files
1332 specific to this site
1333 --disable-largefile omit support for large files
1334
1335 Optional Packages:
1336 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1337 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1338 --without-gcc don't use GCC to compile Emacs if GCC is found
1339 --without-pop don't support POP mail retrieval with movemail
1340 --with-kerberos support Kerberos-authenticated POP
1341 --with-kerberos5 support Kerberos version 5 authenticated POP
1342 --with-hesiod support Hesiod to get the POP server host
1343 --without-sound don't compile with sound support
1344 --with-x-toolkit=KIT use an X toolkit
1345 (KIT = yes/lucid/athena/motif/gtk/no)
1346 --with-xpm use -lXpm for displaying XPM images
1347 --with-jpeg use -ljpeg for displaying JPEG images
1348 --with-tiff use -ltiff for displaying TIFF images
1349 --with-gif use -lungif for displaying GIF images
1350 --with-png use -lpng for displaying PNG images
1351 --with-freetype use -lfreetype for local fonts support
1352 --with-xft use -lXft for anti aliased fonts
1353 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1354 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1355 --without-toolkit-scroll-bars
1356 don't use Motif or Xaw3d scroll bars
1357 --without-xim don't use X11 XIM
1358 --without-carbon don't use Carbon GUI on Mac OS X
1359 --with-x use the X Window System
1360
1361 Some influential environment variables:
1362 CC C compiler command
1363 CFLAGS C compiler flags
1364 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1365 nonstandard directory <lib dir>
1366 LIBS libraries to pass to the linker, e.g. -l<library>
1367 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1368 you have headers in a nonstandard directory <include dir>
1369 CPP C preprocessor
1370 XMKMF Path to xmkmf, Makefile generator for X Window System
1371
1372 Use these variables to override the choices made by `configure' or to help
1373 it to find libraries and programs with nonstandard names/locations.
1374
1375 _ACEOF
1376 ac_status=$?
1377 fi
1378
1379 if test "$ac_init_help" = "recursive"; then
1380 # If there are subdirs, report their specific --help.
1381 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1382 test -d "$ac_dir" || continue
1383 ac_builddir=.
1384
1385 case "$ac_dir" in
1386 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1387 *)
1388 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1389 # A ".." for each directory in $ac_dir_suffix.
1390 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1391 case $ac_top_builddir_sub in
1392 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1393 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1394 esac ;;
1395 esac
1396 ac_abs_top_builddir=$ac_pwd
1397 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1398 # for backward compatibility:
1399 ac_top_builddir=$ac_top_build_prefix
1400
1401 case $srcdir in
1402 .) # We are building in place.
1403 ac_srcdir=.
1404 ac_top_srcdir=$ac_top_builddir_sub
1405 ac_abs_top_srcdir=$ac_pwd ;;
1406 [\\/]* | ?:[\\/]* ) # Absolute name.
1407 ac_srcdir=$srcdir$ac_dir_suffix;
1408 ac_top_srcdir=$srcdir
1409 ac_abs_top_srcdir=$srcdir ;;
1410 *) # Relative name.
1411 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1412 ac_top_srcdir=$ac_top_build_prefix$srcdir
1413 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1414 esac
1415 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1416
1417 cd "$ac_dir" || { ac_status=$?; continue; }
1418 # Check for guested configure.
1419 if test -f "$ac_srcdir/configure.gnu"; then
1420 echo &&
1421 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1422 elif test -f "$ac_srcdir/configure"; then
1423 echo &&
1424 $SHELL "$ac_srcdir/configure" --help=recursive
1425 else
1426 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1427 fi || ac_status=$?
1428 cd "$ac_pwd" || { ac_status=$?; break; }
1429 done
1430 fi
1431
1432 test -n "$ac_init_help" && exit $ac_status
1433 if $ac_init_version; then
1434 cat <<\_ACEOF
1435 configure
1436 generated by GNU Autoconf 2.61
1437
1438 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1439 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1440 This configure script is free software; the Free Software Foundation
1441 gives unlimited permission to copy, distribute and modify it.
1442 _ACEOF
1443 exit
1444 fi
1445 cat >config.log <<_ACEOF
1446 This file contains any messages produced by compilers while
1447 running configure, to aid debugging if configure makes a mistake.
1448
1449 It was created by $as_me, which was
1450 generated by GNU Autoconf 2.61. Invocation command line was
1451
1452 $ $0 $@
1453
1454 _ACEOF
1455 exec 5>>config.log
1456 {
1457 cat <<_ASUNAME
1458 ## --------- ##
1459 ## Platform. ##
1460 ## --------- ##
1461
1462 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1463 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1464 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1465 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1466 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1467
1468 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1469 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1470
1471 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1472 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1473 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1474 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1475 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1476 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1477 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1478
1479 _ASUNAME
1480
1481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1482 for as_dir in $PATH
1483 do
1484 IFS=$as_save_IFS
1485 test -z "$as_dir" && as_dir=.
1486 echo "PATH: $as_dir"
1487 done
1488 IFS=$as_save_IFS
1489
1490 } >&5
1491
1492 cat >&5 <<_ACEOF
1493
1494
1495 ## ----------- ##
1496 ## Core tests. ##
1497 ## ----------- ##
1498
1499 _ACEOF
1500
1501
1502 # Keep a trace of the command line.
1503 # Strip out --no-create and --no-recursion so they do not pile up.
1504 # Strip out --silent because we don't want to record it for future runs.
1505 # Also quote any args containing shell meta-characters.
1506 # Make two passes to allow for proper duplicate-argument suppression.
1507 ac_configure_args=
1508 ac_configure_args0=
1509 ac_configure_args1=
1510 ac_must_keep_next=false
1511 for ac_pass in 1 2
1512 do
1513 for ac_arg
1514 do
1515 case $ac_arg in
1516 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1517 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1518 | -silent | --silent | --silen | --sile | --sil)
1519 continue ;;
1520 *\'*)
1521 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1522 esac
1523 case $ac_pass in
1524 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1525 2)
1526 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1527 if test $ac_must_keep_next = true; then
1528 ac_must_keep_next=false # Got value, back to normal.
1529 else
1530 case $ac_arg in
1531 *=* | --config-cache | -C | -disable-* | --disable-* \
1532 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1533 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1534 | -with-* | --with-* | -without-* | --without-* | --x)
1535 case "$ac_configure_args0 " in
1536 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1537 esac
1538 ;;
1539 -* ) ac_must_keep_next=true ;;
1540 esac
1541 fi
1542 ac_configure_args="$ac_configure_args '$ac_arg'"
1543 ;;
1544 esac
1545 done
1546 done
1547 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1548 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1549
1550 # When interrupted or exit'd, cleanup temporary files, and complete
1551 # config.log. We remove comments because anyway the quotes in there
1552 # would cause problems or look ugly.
1553 # WARNING: Use '\'' to represent an apostrophe within the trap.
1554 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1555 trap 'exit_status=$?
1556 # Save into config.log some information that might help in debugging.
1557 {
1558 echo
1559
1560 cat <<\_ASBOX
1561 ## ---------------- ##
1562 ## Cache variables. ##
1563 ## ---------------- ##
1564 _ASBOX
1565 echo
1566 # The following way of writing the cache mishandles newlines in values,
1567 (
1568 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1569 eval ac_val=\$$ac_var
1570 case $ac_val in #(
1571 *${as_nl}*)
1572 case $ac_var in #(
1573 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1574 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1575 esac
1576 case $ac_var in #(
1577 _ | IFS | as_nl) ;; #(
1578 *) $as_unset $ac_var ;;
1579 esac ;;
1580 esac
1581 done
1582 (set) 2>&1 |
1583 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1584 *${as_nl}ac_space=\ *)
1585 sed -n \
1586 "s/'\''/'\''\\\\'\'''\''/g;
1587 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1588 ;; #(
1589 *)
1590 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1591 ;;
1592 esac |
1593 sort
1594 )
1595 echo
1596
1597 cat <<\_ASBOX
1598 ## ----------------- ##
1599 ## Output variables. ##
1600 ## ----------------- ##
1601 _ASBOX
1602 echo
1603 for ac_var in $ac_subst_vars
1604 do
1605 eval ac_val=\$$ac_var
1606 case $ac_val in
1607 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1608 esac
1609 echo "$ac_var='\''$ac_val'\''"
1610 done | sort
1611 echo
1612
1613 if test -n "$ac_subst_files"; then
1614 cat <<\_ASBOX
1615 ## ------------------- ##
1616 ## File substitutions. ##
1617 ## ------------------- ##
1618 _ASBOX
1619 echo
1620 for ac_var in $ac_subst_files
1621 do
1622 eval ac_val=\$$ac_var
1623 case $ac_val in
1624 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1625 esac
1626 echo "$ac_var='\''$ac_val'\''"
1627 done | sort
1628 echo
1629 fi
1630
1631 if test -s confdefs.h; then
1632 cat <<\_ASBOX
1633 ## ----------- ##
1634 ## confdefs.h. ##
1635 ## ----------- ##
1636 _ASBOX
1637 echo
1638 cat confdefs.h
1639 echo
1640 fi
1641 test "$ac_signal" != 0 &&
1642 echo "$as_me: caught signal $ac_signal"
1643 echo "$as_me: exit $exit_status"
1644 } >&5
1645 rm -f core *.core core.conftest.* &&
1646 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1647 exit $exit_status
1648 ' 0
1649 for ac_signal in 1 2 13 15; do
1650 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1651 done
1652 ac_signal=0
1653
1654 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1655 rm -f -r conftest* confdefs.h
1656
1657 # Predefined preprocessor variables.
1658
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE_NAME "$PACKAGE_NAME"
1661 _ACEOF
1662
1663
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1666 _ACEOF
1667
1668
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1671 _ACEOF
1672
1673
1674 cat >>confdefs.h <<_ACEOF
1675 #define PACKAGE_STRING "$PACKAGE_STRING"
1676 _ACEOF
1677
1678
1679 cat >>confdefs.h <<_ACEOF
1680 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1681 _ACEOF
1682
1683
1684 # Let the site file select an alternate cache file if it wants to.
1685 # Prefer explicitly selected file to automatically selected ones.
1686 if test -n "$CONFIG_SITE"; then
1687 set x "$CONFIG_SITE"
1688 elif test "x$prefix" != xNONE; then
1689 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1690 else
1691 set x "$ac_default_prefix/share/config.site" \
1692 "$ac_default_prefix/etc/config.site"
1693 fi
1694 shift
1695 for ac_site_file
1696 do
1697 if test -r "$ac_site_file"; then
1698 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1699 echo "$as_me: loading site script $ac_site_file" >&6;}
1700 sed 's/^/| /' "$ac_site_file" >&5
1701 . "$ac_site_file"
1702 fi
1703 done
1704
1705 if test -r "$cache_file"; then
1706 # Some versions of bash will fail to source /dev/null (special
1707 # files actually), so we avoid doing that.
1708 if test -f "$cache_file"; then
1709 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1710 echo "$as_me: loading cache $cache_file" >&6;}
1711 case $cache_file in
1712 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1713 *) . "./$cache_file";;
1714 esac
1715 fi
1716 else
1717 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1718 echo "$as_me: creating cache $cache_file" >&6;}
1719 >$cache_file
1720 fi
1721
1722 ac_header_list="$ac_header_list sys/time.h"
1723 ac_header_list="$ac_header_list unistd.h"
1724 ac_func_list="$ac_func_list alarm"
1725 # Check that the precious variables saved in the cache have kept the same
1726 # value.
1727 ac_cache_corrupted=false
1728 for ac_var in $ac_precious_vars; do
1729 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1730 eval ac_new_set=\$ac_env_${ac_var}_set
1731 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1732 eval ac_new_val=\$ac_env_${ac_var}_value
1733 case $ac_old_set,$ac_new_set in
1734 set,)
1735 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1736 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1737 ac_cache_corrupted=: ;;
1738 ,set)
1739 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1740 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1741 ac_cache_corrupted=: ;;
1742 ,);;
1743 *)
1744 if test "x$ac_old_val" != "x$ac_new_val"; then
1745 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1746 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1747 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1748 echo "$as_me: former value: $ac_old_val" >&2;}
1749 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1750 echo "$as_me: current value: $ac_new_val" >&2;}
1751 ac_cache_corrupted=:
1752 fi;;
1753 esac
1754 # Pass precious variables to config.status.
1755 if test "$ac_new_set" = set; then
1756 case $ac_new_val in
1757 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1758 *) ac_arg=$ac_var=$ac_new_val ;;
1759 esac
1760 case " $ac_configure_args " in
1761 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1762 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1763 esac
1764 fi
1765 done
1766 if $ac_cache_corrupted; then
1767 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1768 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1769 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1770 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1771 { (exit 1); exit 1; }; }
1772 fi
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790 ac_ext=c
1791 ac_cpp='$CPP $CPPFLAGS'
1792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1795
1796
1797 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1798
1799
1800 test "$program_prefix" != NONE &&
1801 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1802 # Use a double $ so make ignores it.
1803 test "$program_suffix" != NONE &&
1804 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1805 # Double any \ or $. echo might interpret backslashes.
1806 # By default was `s,x,x', remove it if useless.
1807 cat <<\_ACEOF >conftest.sed
1808 s/[\\$]/&&/g;s/;s,x,x,$//
1809 _ACEOF
1810 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1811 rm -f conftest.sed
1812
1813
1814 lispdir='${datadir}/emacs/${version}/lisp'
1815 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1816 '${datadir}/emacs/site-lisp'
1817 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1818 etcdir='${datadir}/emacs/${version}/etc'
1819 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1820 docdir='${datadir}/emacs/${version}/etc'
1821 gamedir='${localstatedir}/games/emacs'
1822
1823 gameuser=games
1824
1825
1826 # Check whether --with-gcc was given.
1827 if test "${with_gcc+set}" = set; then
1828 withval=$with_gcc;
1829 fi
1830
1831
1832 # Check whether --with-pop was given.
1833 if test "${with_pop+set}" = set; then
1834 withval=$with_pop; if test "$withval" = yes; then
1835 cat >>confdefs.h <<\_ACEOF
1836 #define MAIL_USE_POP 1
1837 _ACEOF
1838
1839 else :
1840 fi
1841 else
1842 cat >>confdefs.h <<\_ACEOF
1843 #define MAIL_USE_POP 1
1844 _ACEOF
1845
1846 fi
1847
1848
1849
1850 # Check whether --with-kerberos was given.
1851 if test "${with_kerberos+set}" = set; then
1852 withval=$with_kerberos; if test "$withval" = yes; then
1853 cat >>confdefs.h <<\_ACEOF
1854 #define KERBEROS 1
1855 _ACEOF
1856
1857 fi
1858 fi
1859
1860
1861
1862 # Check whether --with-kerberos5 was given.
1863 if test "${with_kerberos5+set}" = set; then
1864 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1865 if test "${with_kerberos+set}" != set; then
1866 with_kerberos=yes
1867 cat >>confdefs.h <<\_ACEOF
1868 #define KERBEROS 1
1869 _ACEOF
1870
1871 fi
1872
1873 cat >>confdefs.h <<\_ACEOF
1874 #define KERBEROS5 1
1875 _ACEOF
1876
1877 fi
1878 fi
1879
1880
1881 # Check whether --with-hesiod was given.
1882 if test "${with_hesiod+set}" = set; then
1883 withval=$with_hesiod; if test "$withval" = yes; then
1884
1885 cat >>confdefs.h <<\_ACEOF
1886 #define HESIOD 1
1887 _ACEOF
1888
1889 fi
1890 fi
1891
1892
1893
1894 # Check whether --with-sound was given.
1895 if test "${with_sound+set}" = set; then
1896 withval=$with_sound;
1897 fi
1898
1899
1900
1901 # Check whether --with-x-toolkit was given.
1902 if test "${with_x_toolkit+set}" = set; then
1903 withval=$with_x_toolkit; case "${withval}" in
1904 y | ye | yes ) val=athena ;;
1905 n | no ) val=no ;;
1906 l | lu | luc | luci | lucid ) val=lucid ;;
1907 a | at | ath | athe | athen | athena ) val=athena ;;
1908 m | mo | mot | moti | motif ) val=motif ;;
1909 g | gt | gtk ) val=gtk ;;
1910 * )
1911 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1912 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1913 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1914 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1915 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1916 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1917 { (exit 1); exit 1; }; }
1918 ;;
1919 esac
1920 with_x_toolkit=$val
1921
1922 fi
1923
1924
1925 # Check whether --with-xpm was given.
1926 if test "${with_xpm+set}" = set; then
1927 withval=$with_xpm;
1928 fi
1929
1930
1931 # Check whether --with-jpeg was given.
1932 if test "${with_jpeg+set}" = set; then
1933 withval=$with_jpeg;
1934 fi
1935
1936
1937 # Check whether --with-tiff was given.
1938 if test "${with_tiff+set}" = set; then
1939 withval=$with_tiff;
1940 fi
1941
1942
1943 # Check whether --with-gif was given.
1944 if test "${with_gif+set}" = set; then
1945 withval=$with_gif;
1946 fi
1947
1948
1949 # Check whether --with-png was given.
1950 if test "${with_png+set}" = set; then
1951 withval=$with_png;
1952 fi
1953
1954
1955 # Check whether --with-freetype was given.
1956 if test "${with_freetype+set}" = set; then
1957 withval=$with_freetype;
1958 fi
1959
1960
1961 # Check whether --with-xft was given.
1962 if test "${with_xft+set}" = set; then
1963 withval=$with_xft;
1964 fi
1965
1966
1967 # Check whether --with-gtk was given.
1968 if test "${with_gtk+set}" = set; then
1969 withval=$with_gtk;
1970 fi
1971
1972
1973 # Check whether --with-pkg-config-prog was given.
1974 if test "${with_pkg_config_prog+set}" = set; then
1975 withval=$with_pkg_config_prog;
1976 fi
1977
1978
1979 # Check whether --with-toolkit-scroll-bars was given.
1980 if test "${with_toolkit_scroll_bars+set}" = set; then
1981 withval=$with_toolkit_scroll_bars;
1982 fi
1983
1984
1985 # Check whether --with-xim was given.
1986 if test "${with_xim+set}" = set; then
1987 withval=$with_xim;
1988 fi
1989
1990
1991 # Check whether --with-carbon was given.
1992 if test "${with_carbon+set}" = set; then
1993 withval=$with_carbon;
1994 fi
1995
1996 # Check whether --enable-carbon-app was given.
1997 if test "${enable_carbon_app+set}" = set; then
1998 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1999 fi
2000
2001
2002 # Check whether --enable-font-backend was given.
2003 if test "${enable_font_backend+set}" = set; then
2004 enableval=$enable_font_backend; USE_FONT_BACKEND=$enableval
2005 else
2006 USE_FONT_BACKEND=no
2007 fi
2008
2009
2010 # Check whether --enable-asserts was given.
2011 if test "${enable_asserts+set}" = set; then
2012 enableval=$enable_asserts; USE_XASSERTS=$enableval
2013 else
2014 USE_XASSERTS=no
2015 fi
2016
2017
2018 # Check whether --enable-maintainer-mode was given.
2019 if test "${enable_maintainer_mode+set}" = set; then
2020 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2021 else
2022 USE_MAINTAINER_MODE=no
2023 fi
2024
2025 if test $USE_MAINTAINER_MODE = yes; then
2026 MAINT=
2027 else
2028 MAINT=#
2029 fi
2030
2031
2032 # Check whether --enable-locallisppath was given.
2033 if test "${enable_locallisppath+set}" = set; then
2034 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2035 locallisppath=
2036 elif test "${enableval}" != "yes"; then
2037 locallisppath=${enableval}
2038 fi
2039 fi
2040
2041
2042 #### Make srcdir absolute, if it isn't already. It's important to
2043 #### avoid running the path through pwd unnecessarily, since pwd can
2044 #### give you automounter prefixes, which can go away. We do all this
2045 #### so Emacs can find its files when run uninstalled.
2046 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2047 unset CDPATH
2048 case "${srcdir}" in
2049 /* ) ;;
2050 . )
2051 ## We may be able to use the $PWD environment variable to make this
2052 ## absolute. But sometimes PWD is inaccurate.
2053 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2054 ## but that tested only for a well-formed and valid PWD,
2055 ## it did not object when PWD was well-formed and valid but just wrong.
2056 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2057 then
2058 srcdir="$PWD"
2059 else
2060 srcdir="`(cd ${srcdir}; pwd)`"
2061 fi
2062 ;;
2063 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2064 esac
2065
2066 #### Check if the source directory already has a configured system in it.
2067 if test `pwd` != `(cd ${srcdir} && pwd)` \
2068 && test -f "${srcdir}/src/config.h" ; then
2069 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2070 as a build directory right now; it has been configured in its own
2071 right. To configure in another directory as well, you MUST
2072 use GNU make. If you do not have GNU make, then you must
2073 now do \`make distclean' in ${srcdir},
2074 and then run $0 again." >&5
2075 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2076 as a build directory right now; it has been configured in its own
2077 right. To configure in another directory as well, you MUST
2078 use GNU make. If you do not have GNU make, then you must
2079 now do \`make distclean' in ${srcdir},
2080 and then run $0 again." >&2;}
2081 fi
2082
2083 #### Given the configuration name, set machfile and opsysfile to the
2084 #### names of the m/*.h and s/*.h files we should use.
2085
2086 ### Canonicalize the configuration name.
2087
2088 ac_aux_dir=
2089 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2090 if test -f "$ac_dir/install-sh"; then
2091 ac_aux_dir=$ac_dir
2092 ac_install_sh="$ac_aux_dir/install-sh -c"
2093 break
2094 elif test -f "$ac_dir/install.sh"; then
2095 ac_aux_dir=$ac_dir
2096 ac_install_sh="$ac_aux_dir/install.sh -c"
2097 break
2098 elif test -f "$ac_dir/shtool"; then
2099 ac_aux_dir=$ac_dir
2100 ac_install_sh="$ac_aux_dir/shtool install -c"
2101 break
2102 fi
2103 done
2104 if test -z "$ac_aux_dir"; then
2105 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2106 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2107 { (exit 1); exit 1; }; }
2108 fi
2109
2110 # These three variables are undocumented and unsupported,
2111 # and are intended to be withdrawn in a future Autoconf release.
2112 # They can cause serious problems if a builder's source tree is in a directory
2113 # whose full name contains unusual characters.
2114 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2115 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2116 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2117
2118
2119 # Make sure we can run config.sub.
2120 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2121 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2122 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2123 { (exit 1); exit 1; }; }
2124
2125 { echo "$as_me:$LINENO: checking build system type" >&5
2126 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2127 if test "${ac_cv_build+set}" = set; then
2128 echo $ECHO_N "(cached) $ECHO_C" >&6
2129 else
2130 ac_build_alias=$build_alias
2131 test "x$ac_build_alias" = x &&
2132 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2133 test "x$ac_build_alias" = x &&
2134 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2135 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2136 { (exit 1); exit 1; }; }
2137 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2138 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2139 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2140 { (exit 1); exit 1; }; }
2141
2142 fi
2143 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2144 echo "${ECHO_T}$ac_cv_build" >&6; }
2145 case $ac_cv_build in
2146 *-*-*) ;;
2147 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2148 echo "$as_me: error: invalid value of canonical build" >&2;}
2149 { (exit 1); exit 1; }; };;
2150 esac
2151 build=$ac_cv_build
2152 ac_save_IFS=$IFS; IFS='-'
2153 set x $ac_cv_build
2154 shift
2155 build_cpu=$1
2156 build_vendor=$2
2157 shift; shift
2158 # Remember, the first character of IFS is used to create $*,
2159 # except with old shells:
2160 build_os=$*
2161 IFS=$ac_save_IFS
2162 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2163
2164
2165 { echo "$as_me:$LINENO: checking host system type" >&5
2166 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2167 if test "${ac_cv_host+set}" = set; then
2168 echo $ECHO_N "(cached) $ECHO_C" >&6
2169 else
2170 if test "x$host_alias" = x; then
2171 ac_cv_host=$ac_cv_build
2172 else
2173 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2174 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2175 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2176 { (exit 1); exit 1; }; }
2177 fi
2178
2179 fi
2180 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2181 echo "${ECHO_T}$ac_cv_host" >&6; }
2182 case $ac_cv_host in
2183 *-*-*) ;;
2184 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2185 echo "$as_me: error: invalid value of canonical host" >&2;}
2186 { (exit 1); exit 1; }; };;
2187 esac
2188 host=$ac_cv_host
2189 ac_save_IFS=$IFS; IFS='-'
2190 set x $ac_cv_host
2191 shift
2192 host_cpu=$1
2193 host_vendor=$2
2194 shift; shift
2195 # Remember, the first character of IFS is used to create $*,
2196 # except with old shells:
2197 host_os=$*
2198 IFS=$ac_save_IFS
2199 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2200
2201
2202 canonical=$host
2203 configuration=${host_alias-$host}
2204
2205
2206
2207 ### If you add support for a new configuration, add code to this
2208 ### switch statement to recognize your configuration name and select
2209 ### the appropriate operating system and machine description files.
2210
2211 ### You would hope that you could choose an m/*.h file pretty much
2212 ### based on the machine portion of the configuration name, and an s-
2213 ### file based on the operating system portion. However, it turns out
2214 ### that each m/*.h file is pretty manufacturer-specific - for
2215 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2216 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2217 ### machines. So we basically have to have a special case for each
2218 ### configuration name.
2219 ###
2220 ### As far as handling version numbers on operating systems is
2221 ### concerned, make sure things will fail in a fixable way. If
2222 ### /etc/MACHINES doesn't say anything about version numbers, be
2223 ### prepared to handle anything reasonably. If version numbers
2224 ### matter, be sure /etc/MACHINES says something about it.
2225 ###
2226 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2227 ### "System V Release 4"; he writes, "The old convention encouraged
2228 ### confusion between `system' and `release' levels'."
2229
2230 machine='' opsys='' unported=no
2231 case "${canonical}" in
2232
2233 ## FreeBSD ports
2234 *-*-freebsd* )
2235 opsys=freebsd
2236 case "${canonical}" in
2237 alpha*-*-freebsd*) machine=alpha ;;
2238 ia64-*-freebsd*) machine=ia64 ;;
2239 sparc64-*-freebsd*) machine=sparc ;;
2240 powerpc-*-freebsd*) machine=macppc ;;
2241 i[3456]86-*-freebsd*) machine=intel386 ;;
2242 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2243 esac
2244 ;;
2245
2246 ## NetBSD ports
2247 *-*-netbsd* )
2248 opsys=netbsd
2249 if test -f /usr/lib/crti.o; then
2250
2251 cat >>confdefs.h <<\_ACEOF
2252 #define HAVE_CRTIN
2253 _ACEOF
2254
2255 fi
2256
2257 case "${canonical}" in
2258 alpha*-*-netbsd*) machine=alpha ;;
2259 i[3456]86-*-netbsd*) machine=intel386 ;;
2260 m68k-*-netbsd*)
2261 # This is somewhat bogus.
2262 machine=hp9000s300 ;;
2263 mips-*-netbsd*) machine=pmax ;;
2264 mipsel-*-netbsd*) machine=pmax ;;
2265 mipseb-*-netbsd*) machine=pmax ;;
2266 ns32k-*-netbsd*) machine=ns32000 ;;
2267 powerpc-*-netbsd*) machine=macppc ;;
2268 sparc*-*-netbsd*) machine=sparc ;;
2269 vax-*-netbsd*) machine=vax ;;
2270 arm-*-netbsd*) machine=arm ;;
2271 x86_64-*-netbsd*) machine=amdx86-64 ;;
2272 hppa-*-netbsd*) machine=hp800 ;;
2273 shle-*-netbsd*) machine=sh3el ;;
2274 esac
2275 ;;
2276
2277 ## OpenBSD ports
2278 *-*-openbsd* )
2279 opsys=openbsd
2280 case "${canonical}" in
2281 alpha*-*-openbsd*) machine=alpha ;;
2282 arm-*-openbsd*) machine=arm ;;
2283 hppa-*-openbsd*) machine=hp9000s300 ;;
2284 i386-*-openbsd*) machine=intel386 ;;
2285 m68k-*-openbsd*) machine=hp9000s300 ;;
2286 m88k-*-openbsd*) machine=aviion ;;
2287 mips64-*-openbsd*) machine=mips64 ;;
2288 powerpc-*-openbsd*) machine=macppc ;;
2289 sh-*-openbsd*) machine=sh3el ;;
2290 sparc*-*-openbsd*) machine=sparc ;;
2291 vax-*-openbsd*) machine=vax ;;
2292 x86_64-*-openbsd*) machine=amdx86-64 ;;
2293 esac
2294 ;;
2295
2296 ## LynxOS ports
2297 *-*-lynxos* )
2298 opsys=lynxos
2299 case "${canonical}" in
2300 i[3456]86-*-lynxos*) machine=intel386 ;;
2301 powerpc-*-lynxos*) machine=powerpc ;;
2302 esac
2303 ;;
2304
2305 ## Acorn RISCiX:
2306 arm-acorn-riscix1.1* )
2307 machine=acorn opsys=riscix1-1
2308 ;;
2309 arm-acorn-riscix1.2* | arm-acorn-riscix )
2310 ## This name is riscix12 instead of riscix1.2
2311 ## to avoid a file name conflict on MSDOS.
2312 machine=acorn opsys=riscix12
2313 ;;
2314
2315 ## BSDI ports
2316 *-*-bsdi* )
2317 opsys=bsdi
2318 case "${canonical}" in
2319 i[345]86-*-bsdi*) machine=intel386 ;;
2320 sparc-*-bsdi*) machine=sparc ;;
2321 powerpc-*-bsdi*) machine=macppc ;;
2322 esac
2323 case "${canonical}" in
2324 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2325 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2326 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2327 *-*-bsdi3* ) opsys=bsdos3 ;;
2328 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2329 esac
2330 ;;
2331
2332 ## Alliant machines
2333 ## Strictly speaking, we need the version of the alliant operating
2334 ## system to choose the right machine file, but currently the
2335 ## configuration name doesn't tell us enough to choose the right
2336 ## one; we need to give alliants their own operating system name to
2337 ## do this right. When someone cares, they can help us.
2338 fx80-alliant-* )
2339 machine=alliant4 opsys=bsd4-2
2340 ;;
2341 i860-alliant-* )
2342 machine=alliant-2800 opsys=bsd4-3
2343 ;;
2344
2345 ## Alpha (DEC) machines.
2346 alpha*-dec-osf* )
2347 machine=alpha opsys=osf1
2348 # This is needed to find X11R6.1 libraries for certain tests.
2349 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2350 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2351 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2352 # due to non-traditional preprocessing with the current compiler
2353 # defaults. OSF 4 can also have that compiler version, and there
2354 # seems always to have been a usable /usr/bin/cpp.
2355 NON_GNU_CPP=/usr/bin/cpp
2356 case "${canonical}" in
2357 alpha*-dec-osf[5-9]*)
2358 opsys=osf5-0 ;;
2359 esac
2360 ;;
2361
2362 alpha*-*-linux-gnu* )
2363 machine=alpha opsys=gnu-linux
2364 ;;
2365
2366 arm*-*-linux-gnu* )
2367 machine=arm opsys=gnu-linux
2368 ;;
2369
2370 ## Altos 3068
2371 m68*-altos-sysv* )
2372 machine=altos opsys=usg5-2
2373 ;;
2374
2375 ## Amdahl UTS
2376 580-amdahl-sysv* )
2377 machine=amdahl opsys=usg5-2-2
2378 ;;
2379
2380 ## Apollo, Domain/OS
2381 m68*-apollo-* )
2382 machine=apollo opsys=bsd4-3
2383 ;;
2384
2385 ## Apple Darwin / Mac OS X
2386 *-apple-darwin* )
2387 case "${canonical}" in
2388 i[3456]86-* ) machine=intel386 ;;
2389 powerpc-* ) machine=powermac ;;
2390 * ) unported=yes ;;
2391 esac
2392 opsys=darwin
2393 # Define CPP as follows to make autoconf work correctly.
2394 CPP="${CC-cc} -E -no-cpp-precomp"
2395 # Use fink packages if available.
2396 if test -d /sw/include && test -d /sw/lib; then
2397 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2398 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2399 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2400 fi
2401 ;;
2402
2403 ## AT&T 3b2, 3b5, 3b15, 3b20
2404 we32k-att-sysv* )
2405 machine=att3b opsys=usg5-2-2
2406 ;;
2407
2408 ## AT&T 3b1 - The Mighty Unix PC!
2409 m68*-att-sysv* )
2410 machine=7300 opsys=usg5-2-2
2411 ;;
2412
2413 ## Bull dpx20
2414 rs6000-bull-bosx* )
2415 machine=ibmrs6000 opsys=aix3-2
2416 ;;
2417
2418 ## Bull dpx2
2419 m68*-bull-sysv3* )
2420 machine=dpx2 opsys=usg5-3
2421 ;;
2422
2423 ## Bull sps7
2424 m68*-bull-sysv2* )
2425 machine=sps7 opsys=usg5-2
2426 ;;
2427
2428 ## CCI 5/32, 6/32 -- see "Tahoe".
2429
2430 ## Celerity
2431 ## I don't know what configuration name to use for this; config.sub
2432 ## doesn't seem to know anything about it. Hey, Celerity users, get
2433 ## in touch with us!
2434 celerity-celerity-bsd* )
2435 machine=celerity opsys=bsd4-2
2436 ;;
2437
2438 ## Clipper
2439 ## What operating systems does this chip run that Emacs has been
2440 ## tested on?
2441 clipper-* )
2442 machine=clipper
2443 ## We'll use the catch-all code at the bottom to guess the
2444 ## operating system.
2445 ;;
2446
2447 ## Compaq Nonstop
2448 mips-compaq-nonstopux* )
2449 machine=nonstopux opsys=nonstopux
2450 ;;
2451
2452 ## Convex
2453 *-convex-bsd* | *-convex-convexos* )
2454 machine=convex opsys=bsd4-3
2455 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2456 NON_GNU_CPP="cc -E -P"
2457 ;;
2458
2459 ## Cubix QBx/386
2460 i[3456]86-cubix-sysv* )
2461 machine=intel386 opsys=usg5-3
2462 ;;
2463
2464 ## Cydra 5
2465 cydra*-cydrome-sysv* )
2466 machine=cydra5 opsys=usg5-3
2467 ;;
2468
2469 ## Data General AViiON Machines
2470 ## DG changed naming conventions with the release of 5.4.4.10, they
2471 ## dropped the initial 5.4 but left the intervening R. Because of the
2472 ## R this shouldn't conflict with older versions of the OS (which I
2473 ## think were named like dgux4.*). In addition, DG new AViiONs series
2474 ## uses either Motorola M88k or Intel Pentium CPUs.
2475 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
2476 machine=aviion opsys=dgux4
2477 ;;
2478 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
2479 ## This name is dgux5-4-3 instead of dgux5-4r3
2480 ## to avoid a file name conflict on MSDOS.
2481 machine=aviion opsys=dgux5-4-3
2482 ;;
2483 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
2484 machine=aviion opsys=dgux5-4r2
2485 ;;
2486 m88k-dg-dgux* )
2487 machine=aviion opsys=dgux
2488 ;;
2489
2490 ## Data General AViiON Intel (x86) Machines
2491 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2492 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2493 i[345]86-dg-dguxR4* )
2494 machine=aviion-intel opsys=dgux4
2495 ;;
2496
2497 ## DECstations
2498 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2499 machine=pmax opsys=bsd4-2
2500 ;;
2501 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2502 machine=pmax opsys=bsd4-3
2503 ;;
2504 mips-dec-ultrix* )
2505 machine=pmax opsys=ultrix4-3
2506 ;;
2507 mips-dec-osf* )
2508 machine=pmax opsys=osf1
2509 ;;
2510 mips-dec-mach_bsd4.3* )
2511 machine=pmax opsys=mach-bsd4-3
2512 ;;
2513
2514 ## Motorola Delta machines
2515 m68k-motorola-sysv* | m68000-motorola-sysv* )
2516 machine=delta opsys=usg5-3
2517 if test -z "`type gnucc | grep 'not found'`"
2518 then
2519 if test -s /etc/167config
2520 then CC="gnucc -m68040"
2521 else CC="gnucc -m68881"
2522 fi
2523 else
2524 if test -z "`type gcc | grep 'not found'`"
2525 then CC=gcc
2526 else CC=cc
2527 fi
2528 fi
2529 ;;
2530 m88k-motorola-sysv4* )
2531 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2532 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2533 # I hope there are not other 4.0 versions for this machine
2534 # which really need usg5-4 instead.
2535 machine=delta88k opsys=usg5-4-2
2536 ;;
2537 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2538 machine=delta88k opsys=usg5-3
2539 ;;
2540
2541 ## Dual machines
2542 m68*-dual-sysv* )
2543 machine=dual opsys=usg5-2
2544 ;;
2545 m68*-dual-uniplus* )
2546 machine=dual opsys=unipl5-2
2547 ;;
2548
2549 ## Elxsi 6400
2550 elxsi-elxsi-sysv* )
2551 machine=elxsi opsys=usg5-2
2552 ;;
2553
2554 ## Encore machines
2555 ns16k-encore-bsd* )
2556 machine=ns16000 opsys=umax
2557 ;;
2558
2559 ## The GEC 63 - apparently, this port isn't really finished yet.
2560 # I'm sure we finished off the last of the machines, though. -- fx
2561
2562 ## Gould Power Node and NP1
2563 pn-gould-bsd4.2* )
2564 machine=gould opsys=bsd4-2
2565 ;;
2566 pn-gould-bsd4.3* )
2567 machine=gould opsys=bsd4-3
2568 ;;
2569 np1-gould-bsd* )
2570 machine=gould-np1 opsys=bsd4-3
2571 ;;
2572
2573 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2574 ## as far as Emacs is concerned).
2575 m88k-harris-cxux* )
2576 # Build needs to be different on 7.0 and later releases
2577 case "`uname -r`" in
2578 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2579 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2580 esac
2581 NON_GNU_CPP="/lib/cpp"
2582 ;;
2583 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2584 m68k-harris-cxux* )
2585 machine=nh3000 opsys=cxux
2586 ;;
2587 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2588 powerpc-harris-powerunix )
2589 machine=nh6000 opsys=powerunix
2590 NON_GNU_CPP="cc -Xo -E -P"
2591 ;;
2592 ## SR2001/SR2201 running HI-UX/MPP
2593 hppa1.1-hitachi-hiuxmpp* )
2594 machine=sr2k opsys=hiuxmpp
2595 ;;
2596 hppa1.1-hitachi-hiuxwe2* )
2597 machine=sr2k opsys=hiuxwe2
2598 ;;
2599 ## Honeywell XPS100
2600 xps*-honeywell-sysv* )
2601 machine=xps100 opsys=usg5-2
2602 ;;
2603
2604 ## HP 9000 series 200 or 300
2605 m68*-hp-bsd* )
2606 machine=hp9000s300 opsys=bsd4-3
2607 ;;
2608 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2609 m68*-hp-hpux* )
2610 case "`uname -r`" in
2611 ## Someone's system reports A.B8.05 for this.
2612 ## I wonder what other possibilities there are.
2613 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2614 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2615 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2616 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2617 *) machine=hp9000s300 opsys=hpux ;;
2618 esac
2619 ;;
2620
2621 ## HP 9000 series 700 and 800, running HP/UX
2622 hppa*-hp-hpux7* )
2623 machine=hp800 opsys=hpux
2624 ;;
2625 hppa*-hp-hpux8* )
2626 machine=hp800 opsys=hpux8
2627 ;;
2628 hppa*-hp-hpux9shr* )
2629 machine=hp800 opsys=hpux9shr
2630 ;;
2631 hppa*-hp-hpux9* )
2632 machine=hp800 opsys=hpux9
2633 ;;
2634 hppa*-hp-hpux10.2* )
2635 machine=hp800 opsys=hpux10-20
2636 ;;
2637 hppa*-hp-hpux10* )
2638 machine=hp800 opsys=hpux10
2639 ;;
2640 hppa*-hp-hpux1[1-9]* )
2641 machine=hp800 opsys=hpux11
2642 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2643 ;;
2644
2645 hppa*-*-linux-gnu* )
2646 machine=hp800 opsys=gnu-linux
2647 ;;
2648
2649 ## HP 9000 series 700 and 800, running HP/UX
2650 hppa*-hp-hpux* )
2651 ## Cross-compilation? Nah!
2652 case "`uname -r`" in
2653 ## Someone's system reports A.B8.05 for this.
2654 ## I wonder what other possibilities there are.
2655 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2656 *.08.* ) machine=hp800 opsys=hpux8 ;;
2657 *.09.* ) machine=hp800 opsys=hpux9 ;;
2658 *) machine=hp800 opsys=hpux10 ;;
2659 esac
2660 ;;
2661 hppa*-*-nextstep* )
2662 machine=hp800 opsys=nextstep
2663 ;;
2664
2665 ## Orion machines
2666 orion-orion-bsd* )
2667 machine=orion opsys=bsd4-2
2668 ;;
2669 clipper-orion-bsd* )
2670 machine=orion105 opsys=bsd4-2
2671 ;;
2672
2673 ## IBM machines
2674 i[3456]86-ibm-aix1.1* )
2675 machine=ibmps2-aix opsys=usg5-2-2
2676 ;;
2677 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2678 machine=ibmps2-aix opsys=usg5-3
2679 ;;
2680 i370-ibm-aix*)
2681 machine=ibm370aix opsys=usg5-3
2682 ;;
2683 s390-*-linux-gnu* )
2684 machine=ibms390 opsys=gnu-linux
2685 ;;
2686 s390x-*-linux-gnu* )
2687 machine=ibms390x opsys=gnu-linux
2688 ;;
2689 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2690 machine=ibmrs6000 opsys=aix3-1
2691 ;;
2692 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2693 machine=ibmrs6000 opsys=aix3-2-5
2694 ;;
2695 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2696 machine=ibmrs6000 opsys=aix4-1
2697 ;;
2698 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2699 machine=ibmrs6000 opsys=aix4-2
2700 ;;
2701 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2702 machine=ibmrs6000 opsys=aix4-2
2703 ;;
2704 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2705 machine=ibmrs6000 opsys=aix4-2
2706 ;;
2707 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2708 machine=ibmrs6000 opsys=aix4
2709 ;;
2710 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2711 machine=ibmrs6000 opsys=aix4-1
2712 ;;
2713 rs6000-ibm-aix* | powerpc-ibm-aix* )
2714 machine=ibmrs6000 opsys=aix3-2
2715 ;;
2716 romp-ibm-bsd4.3* )
2717 machine=ibmrt opsys=bsd4-3
2718 ;;
2719 romp-ibm-bsd4.2* )
2720 machine=ibmrt opsys=bsd4-2
2721 ;;
2722 romp-ibm-aos4.3* )
2723 machine=ibmrt opsys=bsd4-3
2724 ;;
2725 romp-ibm-aos4.2* )
2726 machine=ibmrt opsys=bsd4-2
2727 ;;
2728 romp-ibm-aos* )
2729 machine=ibmrt opsys=bsd4-3
2730 ;;
2731 romp-ibm-bsd* )
2732 machine=ibmrt opsys=bsd4-3
2733 ;;
2734 romp-ibm-aix* )
2735 machine=ibmrt-aix opsys=usg5-2-2
2736 ;;
2737
2738 ## Integrated Solutions `Optimum V'
2739 m68*-isi-bsd4.2* )
2740 machine=isi-ov opsys=bsd4-2
2741 ;;
2742 m68*-isi-bsd4.3* )
2743 machine=isi-ov opsys=bsd4-3
2744 ;;
2745
2746 ## Intel 386 machines where we do care about the manufacturer
2747 i[3456]86-intsys-sysv* )
2748 machine=is386 opsys=usg5-2-2
2749 ;;
2750
2751 ## Prime EXL
2752 i[3456]86-prime-sysv* )
2753 machine=i386 opsys=usg5-3
2754 ;;
2755
2756 ## Sequent Symmetry running Dynix
2757 i[3456]86-sequent-bsd* )
2758 machine=symmetry opsys=bsd4-3
2759 ;;
2760
2761 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2762 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2763 machine=sequent-ptx opsys=ptx4
2764 NON_GNU_CPP=/lib/cpp
2765 ;;
2766
2767 ## Sequent Symmetry running DYNIX/ptx
2768 ## Use the old cpp rather than the newer ANSI one.
2769 i[3456]86-sequent-ptx* )
2770 machine=sequent-ptx opsys=ptx
2771 NON_GNU_CPP="/lib/cpp"
2772 ;;
2773
2774 ## ncr machine running svr4.3.
2775 i[3456]86-ncr-sysv4.3 )
2776 machine=ncr386 opsys=usg5-4-3
2777 ;;
2778
2779 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2780 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2781 i[3456]86-ncr-sysv* )
2782 machine=ncr386 opsys=usg5-4-2
2783 ;;
2784
2785 ## Intel Paragon OSF/1
2786 i860-intel-osf1* )
2787 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2788 ;;
2789
2790 ## Intel 860
2791 i860-*-sysv4* )
2792 machine=i860 opsys=usg5-4
2793 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2794 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2795 ;;
2796
2797 ## Macintosh PowerPC
2798 powerpc*-*-linux-gnu* )
2799 machine=macppc opsys=gnu-linux
2800 ;;
2801
2802 ## Masscomp machines
2803 m68*-masscomp-rtu* )
2804 machine=masscomp opsys=rtu
2805 ;;
2806
2807 ## Megatest machines
2808 m68*-megatest-bsd* )
2809 machine=mega68 opsys=bsd4-2
2810 ;;
2811
2812 ## Workstations sold by MIPS
2813 ## This is not necessarily all workstations using the MIPS processor -
2814 ## Irises are produced by SGI, and DECstations by DEC.
2815
2816 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2817 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2818 ## it gives for choosing between the alternatives seems to be "Use
2819 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2820 ## the BSD world." I'll assume that these are instructions for
2821 ## handling two odd situations, and that every other situation
2822 ## should use mips.h and usg5-2-2, they being listed first.
2823 mips-mips-usg* )
2824 machine=mips4
2825 ## Fall through to the general code at the bottom to decide on the OS.
2826 ;;
2827 mips-mips-riscos4* )
2828 machine=mips4 opsys=bsd4-3
2829 NON_GNU_CC="cc -systype bsd43"
2830 NON_GNU_CPP="cc -systype bsd43 -E"
2831 ;;
2832 mips-mips-riscos5* )
2833 machine=mips4 opsys=riscos5
2834 NON_GNU_CC="cc -systype bsd43"
2835 NON_GNU_CPP="cc -systype bsd43 -E"
2836 ;;
2837 mips-mips-bsd* )
2838 machine=mips opsys=bsd4-3
2839 ;;
2840 mips-mips-* )
2841 machine=mips opsys=usg5-2-2
2842 ;;
2843
2844 ## NeXT
2845 m68*-next-* | m68k-*-nextstep* )
2846 machine=m68k opsys=nextstep
2847 ;;
2848
2849 ## The complete machine from National Semiconductor
2850 ns32k-ns-genix* )
2851 machine=ns32000 opsys=usg5-2
2852 ;;
2853
2854 ## NCR machines
2855 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2856 machine=tower32 opsys=usg5-2-2
2857 ;;
2858 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2859 machine=tower32v3 opsys=usg5-3
2860 ;;
2861
2862 ## NEC EWS4800
2863 mips-nec-sysv4*)
2864 machine=ews4800 opsys=ux4800
2865 ;;
2866
2867 ## Nixdorf Targon 31
2868 m68*-nixdorf-sysv* )
2869 machine=targon31 opsys=usg5-2-2
2870 ;;
2871
2872 ## Nu (TI or LMI)
2873 m68*-nu-sysv* )
2874 machine=nu opsys=usg5-2
2875 ;;
2876
2877 ## Plexus
2878 m68*-plexus-sysv* )
2879 machine=plexus opsys=usg5-2
2880 ;;
2881
2882 ## Pyramid machines
2883 ## I don't really have any idea what sort of processor the Pyramid has,
2884 ## so I'm assuming it is its own architecture.
2885 pyramid-pyramid-bsd* )
2886 machine=pyramid opsys=bsd4-2
2887 ;;
2888
2889 ## Sequent Balance
2890 ns32k-sequent-bsd4.2* )
2891 machine=sequent opsys=bsd4-2
2892 ;;
2893 ns32k-sequent-bsd4.3* )
2894 machine=sequent opsys=bsd4-3
2895 ;;
2896
2897 ## Siemens Nixdorf
2898 mips-siemens-sysv* | mips-sni-sysv*)
2899 machine=mips-siemens opsys=usg5-4
2900 NON_GNU_CC=/usr/ccs/bin/cc
2901 NON_GNU_CPP=/usr/ccs/lib/cpp
2902 ;;
2903
2904 ## Silicon Graphics machines
2905 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2906 m68*-sgi-iris3.5* )
2907 machine=irist opsys=iris3-5
2908 ;;
2909 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2910 machine=irist opsys=iris3-6
2911 ;;
2912 ## Iris 4D
2913 mips-sgi-irix3* )
2914 machine=iris4d opsys=irix3-3
2915 ;;
2916 mips-sgi-irix4* )
2917 machine=iris4d opsys=irix4-0
2918 ;;
2919 mips-sgi-irix6.5 )
2920 machine=iris4d opsys=irix6-5
2921 # Without defining _LANGUAGE_C, things get masked out in the headers
2922 # so that, for instance, grepping for `free' in stdlib.h fails and
2923 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2924 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2925 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2926 ;;
2927 mips-sgi-irix6* )
2928 machine=iris4d opsys=irix6-0
2929 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2930 # but presumably it does no harm.
2931 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2932 # -32 probably isn't necessary in later v.6s -- anyone know which?
2933 NON_GCC_TEST_OPTIONS=-32
2934 ;;
2935 mips-sgi-irix5.[01]* )
2936 machine=iris4d opsys=irix5-0
2937 ;;
2938 mips-sgi-irix5* | mips-sgi-irix* )
2939 machine=iris4d opsys=irix5-2
2940 ;;
2941
2942 ## SONY machines
2943 m68*-sony-bsd4.2* )
2944 machine=news opsys=bsd4-2
2945 ;;
2946 m68*-sony-bsd4.3* )
2947 machine=news opsys=bsd4-3
2948 ;;
2949 m68*-sony-newsos3* | m68*-sony-news3*)
2950 machine=news opsys=bsd4-3
2951 ;;
2952 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2953 machine=news-risc opsys=bsd4-3
2954 ;;
2955 mips-sony-newsos6* )
2956 machine=news-r6 opsys=newsos6
2957 ;;
2958 mips-sony-news* )
2959 machine=news-risc opsys=newsos5
2960 ;;
2961
2962 ## Stride
2963 m68*-stride-sysv* )
2964 machine=stride opsys=usg5-2
2965 ;;
2966
2967 ## Suns
2968 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2969 machine=sparc opsys=gnu-linux
2970 ;;
2971
2972 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2973 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2974 | rs6000-*-solaris2*)
2975 case "${canonical}" in
2976 m68*-sunos1* ) machine=sun1 ;;
2977 m68*-sunos2* ) machine=sun2 ;;
2978 m68* ) machine=sun3 ;;
2979 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2980 i[3456]86-*-* ) machine=intel386 ;;
2981 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2982 powerpcle* ) machine=powerpcle ;;
2983 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2984 sparc* ) machine=sparc ;;
2985 * ) unported=yes ;;
2986 esac
2987 case "${canonical}" in
2988 ## The Sun386 didn't get past 4.0.
2989 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2990 *-sunos4.0* ) opsys=sunos4-0 ;;
2991 *-sunos4.1.[3-9]*noshare )
2992 ## This name is sunos413 instead of sunos4-1-3
2993 ## to avoid a file name conflict on MSDOS.
2994 opsys=sunos413
2995 NON_GNU_CPP=/usr/lib/cpp
2996 NON_GCC_TEST_OPTIONS=-Bstatic
2997 GCC_TEST_OPTIONS=-static
2998 ;;
2999 *-sunos4.1.[3-9]* | *-sunos4shr*)
3000 opsys=sunos4shr
3001 NON_GNU_CPP=/usr/lib/cpp
3002 ;;
3003 *-sunos4* | *-sunos )
3004 opsys=sunos4-1
3005 NON_GCC_TEST_OPTIONS=-Bstatic
3006 GCC_TEST_OPTIONS=-static
3007 ;;
3008 *-sunos5.3* | *-solaris2.3* )
3009 opsys=sol2-3
3010 NON_GNU_CPP=/usr/ccs/lib/cpp
3011 ;;
3012 *-sunos5.4* | *-solaris2.4* )
3013 opsys=sol2-4
3014 NON_GNU_CPP=/usr/ccs/lib/cpp
3015 RANLIB="ar -ts"
3016 ;;
3017 *-sunos5.5* | *-solaris2.5* )
3018 opsys=sol2-5
3019 NON_GNU_CPP=/usr/ccs/lib/cpp
3020 RANLIB="ar -ts"
3021 ;;
3022 *-sunos5.6* | *-solaris2.6* )
3023 opsys=sol2-6
3024 NON_GNU_CPP=/usr/ccs/lib/cpp
3025 RANLIB="ar -ts"
3026 ;;
3027 *-sunos5* | *-solaris* )
3028 opsys=sol2-6
3029 ## FIXME: make this into a proper fix that checks the compiler type,
3030 ## rather than relying on path. Or is /usr/ccs/lib/cpp a bad default now?
3031 if [ "x$CC" = x/opt/SUNWspro/bin/cc ]; then
3032 ## -Xs prevents spurious whitespace.
3033 NON_GNU_CPP="/opt/SUNWspro/bin/cc -E -Xs"
3034 else
3035 NON_GNU_CPP=/usr/ccs/lib/cpp
3036 fi
3037 ;;
3038 * ) opsys=bsd4-2 ;;
3039 esac
3040 ## Watch out for a compiler that we know will not work.
3041 case "${canonical}" in
3042 *-solaris* | *-sunos5* )
3043 if [ "x$CC" = x/usr/ucb/cc ]; then
3044 ## /usr/ucb/cc doesn't work;
3045 ## we should find some other compiler that does work.
3046 unset CC
3047 fi
3048 ;;
3049 *) ;;
3050 esac
3051 ;;
3052 sparc-*-nextstep* )
3053 machine=sparc opsys=nextstep
3054 ;;
3055
3056 ## Tadpole 68k
3057 m68*-tadpole-sysv* )
3058 machine=tad68k opsys=usg5-3
3059 ;;
3060
3061 ## Tahoe machines
3062 tahoe-tahoe-bsd4.2* )
3063 machine=tahoe opsys=bsd4-2
3064 ;;
3065 tahoe-tahoe-bsd4.3* )
3066 machine=tahoe opsys=bsd4-3
3067 ;;
3068
3069 ## Tandem Integrity S2
3070 mips-tandem-sysv* )
3071 machine=tandem-s2 opsys=usg5-3
3072 ;;
3073
3074 ## Tektronix XD88
3075 m88k-tektronix-sysv3* )
3076 machine=tekxd88 opsys=usg5-3
3077 ;;
3078
3079 ## Tektronix 16000 box (6130?)
3080 ns16k-tektronix-bsd* )
3081 machine=ns16000 opsys=bsd4-2
3082 ;;
3083 ## Tektronix 4300
3084 ## src/m/tek4300.h hints that this is a m68k machine.
3085 m68*-tektronix-bsd* )
3086 machine=tek4300 opsys=bsd4-3
3087 ;;
3088
3089 ## Titan P2 or P3
3090 ## We seem to have lost the machine-description file titan.h!
3091 titan-titan-sysv* )
3092 machine=titan opsys=usg5-3
3093 ;;
3094
3095 ## Ustation E30 (SS5E)
3096 m68*-unisys-uniplus* )
3097 machine=ustation opsystem=unipl5-2
3098 ;;
3099
3100 ## Vaxen.
3101 vax-dec-* )
3102 machine=vax
3103 case "${canonical}" in
3104 *-bsd4.1* ) opsys=bsd4-1 ;;
3105 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
3106 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
3107 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
3108 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
3109 *-vms* ) opsys=vms ;;
3110 * ) unported=yes
3111 esac
3112 ;;
3113
3114 ## Whitechapel MG1
3115 ns16k-whitechapel-* )
3116 machine=mg1
3117 ## We don't know what sort of OS runs on these; we'll let the
3118 ## operating system guessing code below try.
3119 ;;
3120
3121 ## Wicat
3122 m68*-wicat-sysv* )
3123 machine=wicat opsys=usg5-2
3124 ;;
3125
3126 ## IA-64
3127 ia64*-*-linux* )
3128 machine=ia64 opsys=gnu-linux
3129 ;;
3130
3131 ## Intel 386 machines where we don't care about the manufacturer
3132 i[3456]86-*-* )
3133 machine=intel386
3134 case "${canonical}" in
3135 *-cygwin ) opsys=cygwin ;;
3136 *-darwin* ) opsys=darwin
3137 CPP="${CC-cc} -E -no-cpp-precomp"
3138 ;;
3139 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
3140 *-isc2.2* ) opsys=isc2-2 ;;
3141 *-isc4.0* ) opsys=isc4-0 ;;
3142 *-isc4.* ) opsys=isc4-1
3143 GCC_TEST_OPTIONS=-posix
3144 NON_GCC_TEST_OPTIONS=-Xp
3145 ;;
3146 *-isc* ) opsys=isc3-0 ;;
3147 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
3148 *-esix* ) opsys=esix ;;
3149 *-xenix* ) opsys=xenix ;;
3150 *-linux-gnu* ) opsys=gnu-linux ;;
3151 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
3152 *-sco3.2v5* ) opsys=sco5
3153 NON_GNU_CPP=/lib/cpp
3154 # Prevent -belf from being passed to $CPP.
3155 # /lib/cpp does not accept it.
3156 OVERRIDE_CPPFLAGS=" "
3157 ;;
3158 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3159 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3160 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3161 *-386bsd* ) opsys=386bsd ;;
3162 *-nextstep* ) opsys=nextstep ;;
3163 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3164 esac
3165 ;;
3166
3167 ## m68k Linux-based GNU system
3168 m68k-*-linux-gnu* )
3169 machine=m68k opsys=gnu-linux
3170 ;;
3171
3172 ## Mips Linux-based GNU system
3173 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
3174 machine=mips opsys=gnu-linux
3175 ;;
3176
3177 ## UXP/DS
3178 sparc-fujitsu-sysv4* )
3179 machine=sparc opsys=uxpds
3180 NON_GNU_CPP=/usr/ccs/lib/cpp
3181 RANLIB="ar -ts"
3182 ;;
3183
3184 ## UXP/V
3185 f301-fujitsu-uxpv4.1)
3186 machine=f301 opsys=uxpv
3187 ;;
3188
3189 ## AMD x86-64 Linux-based GNU system
3190 x86_64-*-linux-gnu* )
3191 machine=amdx86-64 opsys=gnu-linux
3192 ;;
3193
3194 ## Tensilica Xtensa Linux-based GNU system
3195 xtensa-*-linux-gnu* )
3196 machine=xtensa opsys=gnu-linux
3197 ;;
3198
3199 * )
3200 unported=yes
3201 ;;
3202 esac
3203
3204 ### If the code above didn't choose an operating system, just choose
3205 ### an operating system based on the configuration name. You really
3206 ### only want to use this when you have no idea what the right
3207 ### operating system is; if you know what operating systems a machine
3208 ### runs, it's cleaner to make it explicit in the case statement
3209 ### above.
3210 if test x"${opsys}" = x; then
3211 case "${canonical}" in
3212 *-gnu* ) opsys=gnu ;;
3213 *-bsd4.[01] ) opsys=bsd4-1 ;;
3214 *-bsd4.2 ) opsys=bsd4-2 ;;
3215 *-bsd4.3 ) opsys=bsd4-3 ;;
3216 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
3217 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
3218 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
3219 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
3220 *-sysv4.2uw* ) opsys=unixware ;;
3221 *-sysv5uw* ) opsys=unixware ;;
3222 *-sysv5OpenUNIX* ) opsys=unixware ;;
3223 *-sysv4.1* | *-sysvr4.1* )
3224 NON_GNU_CPP=/usr/lib/cpp
3225 opsys=usg5-4 ;;
3226 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3227 if [ x$NON_GNU_CPP = x ]; then
3228 if [ -f /usr/ccs/lib/cpp ]; then
3229 NON_GNU_CPP=/usr/ccs/lib/cpp
3230 else
3231 NON_GNU_CPP=/lib/cpp
3232 fi
3233 fi
3234 opsys=usg5-4-2 ;;
3235 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3236 * )
3237 unported=yes
3238 ;;
3239 esac
3240 fi
3241
3242
3243
3244 if test $unported = yes; then
3245 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3246 Check \`etc/MACHINES' for recognized configuration names." >&5
3247 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3248 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3249 { (exit 1); exit 1; }; }
3250 fi
3251
3252 machfile="m/${machine}.h"
3253 opsysfile="s/${opsys}.h"
3254
3255
3256 #### Choose a compiler.
3257 test -n "$CC" && cc_specified=yes
3258
3259 # Save the value of CFLAGS that the user specified.
3260 SPECIFIED_CFLAGS="$CFLAGS"
3261
3262 case ${with_gcc} in
3263 "yes" ) CC="gcc" GCC=yes ;;
3264 "no" ) : ${CC=cc} ;;
3265 * )
3266 esac
3267 ac_ext=c
3268 ac_cpp='$CPP $CPPFLAGS'
3269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3272 if test -n "$ac_tool_prefix"; then
3273 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3274 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3277 if test "${ac_cv_prog_CC+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3279 else
3280 if test -n "$CC"; then
3281 ac_cv_prog_CC="$CC" # Let the user override the test.
3282 else
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 for as_dir in $PATH
3285 do
3286 IFS=$as_save_IFS
3287 test -z "$as_dir" && as_dir=.
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3290 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 break 2
3293 fi
3294 done
3295 done
3296 IFS=$as_save_IFS
3297
3298 fi
3299 fi
3300 CC=$ac_cv_prog_CC
3301 if test -n "$CC"; then
3302 { echo "$as_me:$LINENO: result: $CC" >&5
3303 echo "${ECHO_T}$CC" >&6; }
3304 else
3305 { echo "$as_me:$LINENO: result: no" >&5
3306 echo "${ECHO_T}no" >&6; }
3307 fi
3308
3309
3310 fi
3311 if test -z "$ac_cv_prog_CC"; then
3312 ac_ct_CC=$CC
3313 # Extract the first word of "gcc", so it can be a program name with args.
3314 set dummy gcc; ac_word=$2
3315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3317 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3319 else
3320 if test -n "$ac_ct_CC"; then
3321 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3322 else
3323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324 for as_dir in $PATH
3325 do
3326 IFS=$as_save_IFS
3327 test -z "$as_dir" && as_dir=.
3328 for ac_exec_ext in '' $ac_executable_extensions; do
3329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3330 ac_cv_prog_ac_ct_CC="gcc"
3331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3332 break 2
3333 fi
3334 done
3335 done
3336 IFS=$as_save_IFS
3337
3338 fi
3339 fi
3340 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3341 if test -n "$ac_ct_CC"; then
3342 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3343 echo "${ECHO_T}$ac_ct_CC" >&6; }
3344 else
3345 { echo "$as_me:$LINENO: result: no" >&5
3346 echo "${ECHO_T}no" >&6; }
3347 fi
3348
3349 if test "x$ac_ct_CC" = x; then
3350 CC=""
3351 else
3352 case $cross_compiling:$ac_tool_warned in
3353 yes:)
3354 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3355 whose name does not start with the host triplet. If you think this
3356 configuration is useful to you, please write to autoconf@gnu.org." >&5
3357 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3358 whose name does not start with the host triplet. If you think this
3359 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3360 ac_tool_warned=yes ;;
3361 esac
3362 CC=$ac_ct_CC
3363 fi
3364 else
3365 CC="$ac_cv_prog_CC"
3366 fi
3367
3368 if test -z "$CC"; then
3369 if test -n "$ac_tool_prefix"; then
3370 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3371 set dummy ${ac_tool_prefix}cc; ac_word=$2
3372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3374 if test "${ac_cv_prog_CC+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3376 else
3377 if test -n "$CC"; then
3378 ac_cv_prog_CC="$CC" # Let the user override the test.
3379 else
3380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381 for as_dir in $PATH
3382 do
3383 IFS=$as_save_IFS
3384 test -z "$as_dir" && as_dir=.
3385 for ac_exec_ext in '' $ac_executable_extensions; do
3386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3387 ac_cv_prog_CC="${ac_tool_prefix}cc"
3388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3389 break 2
3390 fi
3391 done
3392 done
3393 IFS=$as_save_IFS
3394
3395 fi
3396 fi
3397 CC=$ac_cv_prog_CC
3398 if test -n "$CC"; then
3399 { echo "$as_me:$LINENO: result: $CC" >&5
3400 echo "${ECHO_T}$CC" >&6; }
3401 else
3402 { echo "$as_me:$LINENO: result: no" >&5
3403 echo "${ECHO_T}no" >&6; }
3404 fi
3405
3406
3407 fi
3408 fi
3409 if test -z "$CC"; then
3410 # Extract the first word of "cc", so it can be a program name with args.
3411 set dummy cc; ac_word=$2
3412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3414 if test "${ac_cv_prog_CC+set}" = set; then
3415 echo $ECHO_N "(cached) $ECHO_C" >&6
3416 else
3417 if test -n "$CC"; then
3418 ac_cv_prog_CC="$CC" # Let the user override the test.
3419 else
3420 ac_prog_rejected=no
3421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422 for as_dir in $PATH
3423 do
3424 IFS=$as_save_IFS
3425 test -z "$as_dir" && as_dir=.
3426 for ac_exec_ext in '' $ac_executable_extensions; do
3427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3428 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3429 ac_prog_rejected=yes
3430 continue
3431 fi
3432 ac_cv_prog_CC="cc"
3433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3434 break 2
3435 fi
3436 done
3437 done
3438 IFS=$as_save_IFS
3439
3440 if test $ac_prog_rejected = yes; then
3441 # We found a bogon in the path, so make sure we never use it.
3442 set dummy $ac_cv_prog_CC
3443 shift
3444 if test $# != 0; then
3445 # We chose a different compiler from the bogus one.
3446 # However, it has the same basename, so the bogon will be chosen
3447 # first if we set CC to just the basename; use the full file name.
3448 shift
3449 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3450 fi
3451 fi
3452 fi
3453 fi
3454 CC=$ac_cv_prog_CC
3455 if test -n "$CC"; then
3456 { echo "$as_me:$LINENO: result: $CC" >&5
3457 echo "${ECHO_T}$CC" >&6; }
3458 else
3459 { echo "$as_me:$LINENO: result: no" >&5
3460 echo "${ECHO_T}no" >&6; }
3461 fi
3462
3463
3464 fi
3465 if test -z "$CC"; then
3466 if test -n "$ac_tool_prefix"; then
3467 for ac_prog in cl.exe
3468 do
3469 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3470 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3473 if test "${ac_cv_prog_CC+set}" = set; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3475 else
3476 if test -n "$CC"; then
3477 ac_cv_prog_CC="$CC" # Let the user override the test.
3478 else
3479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480 for as_dir in $PATH
3481 do
3482 IFS=$as_save_IFS
3483 test -z "$as_dir" && as_dir=.
3484 for ac_exec_ext in '' $ac_executable_extensions; do
3485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3486 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3488 break 2
3489 fi
3490 done
3491 done
3492 IFS=$as_save_IFS
3493
3494 fi
3495 fi
3496 CC=$ac_cv_prog_CC
3497 if test -n "$CC"; then
3498 { echo "$as_me:$LINENO: result: $CC" >&5
3499 echo "${ECHO_T}$CC" >&6; }
3500 else
3501 { echo "$as_me:$LINENO: result: no" >&5
3502 echo "${ECHO_T}no" >&6; }
3503 fi
3504
3505
3506 test -n "$CC" && break
3507 done
3508 fi
3509 if test -z "$CC"; then
3510 ac_ct_CC=$CC
3511 for ac_prog in cl.exe
3512 do
3513 # Extract the first word of "$ac_prog", so it can be a program name with args.
3514 set dummy $ac_prog; ac_word=$2
3515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3517 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3518 echo $ECHO_N "(cached) $ECHO_C" >&6
3519 else
3520 if test -n "$ac_ct_CC"; then
3521 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3522 else
3523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3524 for as_dir in $PATH
3525 do
3526 IFS=$as_save_IFS
3527 test -z "$as_dir" && as_dir=.
3528 for ac_exec_ext in '' $ac_executable_extensions; do
3529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3530 ac_cv_prog_ac_ct_CC="$ac_prog"
3531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3532 break 2
3533 fi
3534 done
3535 done
3536 IFS=$as_save_IFS
3537
3538 fi
3539 fi
3540 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3541 if test -n "$ac_ct_CC"; then
3542 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3543 echo "${ECHO_T}$ac_ct_CC" >&6; }
3544 else
3545 { echo "$as_me:$LINENO: result: no" >&5
3546 echo "${ECHO_T}no" >&6; }
3547 fi
3548
3549
3550 test -n "$ac_ct_CC" && break
3551 done
3552
3553 if test "x$ac_ct_CC" = x; then
3554 CC=""
3555 else
3556 case $cross_compiling:$ac_tool_warned in
3557 yes:)
3558 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3559 whose name does not start with the host triplet. If you think this
3560 configuration is useful to you, please write to autoconf@gnu.org." >&5
3561 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3562 whose name does not start with the host triplet. If you think this
3563 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3564 ac_tool_warned=yes ;;
3565 esac
3566 CC=$ac_ct_CC
3567 fi
3568 fi
3569
3570 fi
3571
3572
3573 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3574 See \`config.log' for more details." >&5
3575 echo "$as_me: error: no acceptable C compiler found in \$PATH
3576 See \`config.log' for more details." >&2;}
3577 { (exit 1); exit 1; }; }
3578
3579 # Provide some information about the compiler.
3580 echo "$as_me:$LINENO: checking for C compiler version" >&5
3581 ac_compiler=`set X $ac_compile; echo $2`
3582 { (ac_try="$ac_compiler --version >&5"
3583 case "(($ac_try" in
3584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585 *) ac_try_echo=$ac_try;;
3586 esac
3587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3588 (eval "$ac_compiler --version >&5") 2>&5
3589 ac_status=$?
3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591 (exit $ac_status); }
3592 { (ac_try="$ac_compiler -v >&5"
3593 case "(($ac_try" in
3594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595 *) ac_try_echo=$ac_try;;
3596 esac
3597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3598 (eval "$ac_compiler -v >&5") 2>&5
3599 ac_status=$?
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); }
3602 { (ac_try="$ac_compiler -V >&5"
3603 case "(($ac_try" in
3604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605 *) ac_try_echo=$ac_try;;
3606 esac
3607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3608 (eval "$ac_compiler -V >&5") 2>&5
3609 ac_status=$?
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }
3612
3613 cat >conftest.$ac_ext <<_ACEOF
3614 /* confdefs.h. */
3615 _ACEOF
3616 cat confdefs.h >>conftest.$ac_ext
3617 cat >>conftest.$ac_ext <<_ACEOF
3618 /* end confdefs.h. */
3619
3620 int
3621 main ()
3622 {
3623
3624 ;
3625 return 0;
3626 }
3627 _ACEOF
3628 ac_clean_files_save=$ac_clean_files
3629 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3630 # Try to create an executable without -o first, disregard a.out.
3631 # It will help us diagnose broken compilers, and finding out an intuition
3632 # of exeext.
3633 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3634 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3635 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3636 #
3637 # List of possible output files, starting from the most likely.
3638 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3639 # only as a last resort. b.out is created by i960 compilers.
3640 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3641 #
3642 # The IRIX 6 linker writes into existing files which may not be
3643 # executable, retaining their permissions. Remove them first so a
3644 # subsequent execution test works.
3645 ac_rmfiles=
3646 for ac_file in $ac_files
3647 do
3648 case $ac_file in
3649 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3650 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3651 esac
3652 done
3653 rm -f $ac_rmfiles
3654
3655 if { (ac_try="$ac_link_default"
3656 case "(($ac_try" in
3657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3658 *) ac_try_echo=$ac_try;;
3659 esac
3660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3661 (eval "$ac_link_default") 2>&5
3662 ac_status=$?
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); }; then
3665 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3666 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3667 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3668 # so that the user can short-circuit this test for compilers unknown to
3669 # Autoconf.
3670 for ac_file in $ac_files ''
3671 do
3672 test -f "$ac_file" || continue
3673 case $ac_file in
3674 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3675 ;;
3676 [ab].out )
3677 # We found the default executable, but exeext='' is most
3678 # certainly right.
3679 break;;
3680 *.* )
3681 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3682 then :; else
3683 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3684 fi
3685 # We set ac_cv_exeext here because the later test for it is not
3686 # safe: cross compilers may not add the suffix if given an `-o'
3687 # argument, so we may need to know it at that point already.
3688 # Even if this section looks crufty: it has the advantage of
3689 # actually working.
3690 break;;
3691 * )
3692 break;;
3693 esac
3694 done
3695 test "$ac_cv_exeext" = no && ac_cv_exeext=
3696
3697 else
3698 ac_file=''
3699 fi
3700
3701 { echo "$as_me:$LINENO: result: $ac_file" >&5
3702 echo "${ECHO_T}$ac_file" >&6; }
3703 if test -z "$ac_file"; then
3704 echo "$as_me: failed program was:" >&5
3705 sed 's/^/| /' conftest.$ac_ext >&5
3706
3707 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3708 See \`config.log' for more details." >&5
3709 echo "$as_me: error: C compiler cannot create executables
3710 See \`config.log' for more details." >&2;}
3711 { (exit 77); exit 77; }; }
3712 fi
3713
3714 ac_exeext=$ac_cv_exeext
3715
3716 # Check that the compiler produces executables we can run. If not, either
3717 # the compiler is broken, or we cross compile.
3718 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3719 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3720 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3721 # If not cross compiling, check that we can run a simple program.
3722 if test "$cross_compiling" != yes; then
3723 if { ac_try='./$ac_file'
3724 { (case "(($ac_try" in
3725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3726 *) ac_try_echo=$ac_try;;
3727 esac
3728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3729 (eval "$ac_try") 2>&5
3730 ac_status=$?
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); }; }; then
3733 cross_compiling=no
3734 else
3735 if test "$cross_compiling" = maybe; then
3736 cross_compiling=yes
3737 else
3738 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3739 If you meant to cross compile, use \`--host'.
3740 See \`config.log' for more details." >&5
3741 echo "$as_me: error: cannot run C compiled programs.
3742 If you meant to cross compile, use \`--host'.
3743 See \`config.log' for more details." >&2;}
3744 { (exit 1); exit 1; }; }
3745 fi
3746 fi
3747 fi
3748 { echo "$as_me:$LINENO: result: yes" >&5
3749 echo "${ECHO_T}yes" >&6; }
3750
3751 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3752 ac_clean_files=$ac_clean_files_save
3753 # Check that the compiler produces executables we can run. If not, either
3754 # the compiler is broken, or we cross compile.
3755 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3756 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3757 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3758 echo "${ECHO_T}$cross_compiling" >&6; }
3759
3760 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3761 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3762 if { (ac_try="$ac_link"
3763 case "(($ac_try" in
3764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3765 *) ac_try_echo=$ac_try;;
3766 esac
3767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3768 (eval "$ac_link") 2>&5
3769 ac_status=$?
3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 (exit $ac_status); }; then
3772 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3773 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3774 # work properly (i.e., refer to `conftest.exe'), while it won't with
3775 # `rm'.
3776 for ac_file in conftest.exe conftest conftest.*; do
3777 test -f "$ac_file" || continue
3778 case $ac_file in
3779 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3780 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3781 break;;
3782 * ) break;;
3783 esac
3784 done
3785 else
3786 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3787 See \`config.log' for more details." >&5
3788 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3789 See \`config.log' for more details." >&2;}
3790 { (exit 1); exit 1; }; }
3791 fi
3792
3793 rm -f conftest$ac_cv_exeext
3794 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3795 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3796
3797 rm -f conftest.$ac_ext
3798 EXEEXT=$ac_cv_exeext
3799 ac_exeext=$EXEEXT
3800 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3801 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3802 if test "${ac_cv_objext+set}" = set; then
3803 echo $ECHO_N "(cached) $ECHO_C" >&6
3804 else
3805 cat >conftest.$ac_ext <<_ACEOF
3806 /* confdefs.h. */
3807 _ACEOF
3808 cat confdefs.h >>conftest.$ac_ext
3809 cat >>conftest.$ac_ext <<_ACEOF
3810 /* end confdefs.h. */
3811
3812 int
3813 main ()
3814 {
3815
3816 ;
3817 return 0;
3818 }
3819 _ACEOF
3820 rm -f conftest.o conftest.obj
3821 if { (ac_try="$ac_compile"
3822 case "(($ac_try" in
3823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824 *) ac_try_echo=$ac_try;;
3825 esac
3826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3827 (eval "$ac_compile") 2>&5
3828 ac_status=$?
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); }; then
3831 for ac_file in conftest.o conftest.obj conftest.*; do
3832 test -f "$ac_file" || continue;
3833 case $ac_file in
3834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3835 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3836 break;;
3837 esac
3838 done
3839 else
3840 echo "$as_me: failed program was:" >&5
3841 sed 's/^/| /' conftest.$ac_ext >&5
3842
3843 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3844 See \`config.log' for more details." >&5
3845 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3846 See \`config.log' for more details." >&2;}
3847 { (exit 1); exit 1; }; }
3848 fi
3849
3850 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3851 fi
3852 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3853 echo "${ECHO_T}$ac_cv_objext" >&6; }
3854 OBJEXT=$ac_cv_objext
3855 ac_objext=$OBJEXT
3856 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3857 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3858 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3859 echo $ECHO_N "(cached) $ECHO_C" >&6
3860 else
3861 cat >conftest.$ac_ext <<_ACEOF
3862 /* confdefs.h. */
3863 _ACEOF
3864 cat confdefs.h >>conftest.$ac_ext
3865 cat >>conftest.$ac_ext <<_ACEOF
3866 /* end confdefs.h. */
3867
3868 int
3869 main ()
3870 {
3871 #ifndef __GNUC__
3872 choke me
3873 #endif
3874
3875 ;
3876 return 0;
3877 }
3878 _ACEOF
3879 rm -f conftest.$ac_objext
3880 if { (ac_try="$ac_compile"
3881 case "(($ac_try" in
3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883 *) ac_try_echo=$ac_try;;
3884 esac
3885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3886 (eval "$ac_compile") 2>conftest.er1
3887 ac_status=$?
3888 grep -v '^ *+' conftest.er1 >conftest.err
3889 rm -f conftest.er1
3890 cat conftest.err >&5
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); } && {
3893 test -z "$ac_c_werror_flag" ||
3894 test ! -s conftest.err
3895 } && test -s conftest.$ac_objext; then
3896 ac_compiler_gnu=yes
3897 else
3898 echo "$as_me: failed program was:" >&5
3899 sed 's/^/| /' conftest.$ac_ext >&5
3900
3901 ac_compiler_gnu=no
3902 fi
3903
3904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3905 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3906
3907 fi
3908 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3909 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3910 GCC=`test $ac_compiler_gnu = yes && echo yes`
3911 ac_test_CFLAGS=${CFLAGS+set}
3912 ac_save_CFLAGS=$CFLAGS
3913 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3914 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3915 if test "${ac_cv_prog_cc_g+set}" = set; then
3916 echo $ECHO_N "(cached) $ECHO_C" >&6
3917 else
3918 ac_save_c_werror_flag=$ac_c_werror_flag
3919 ac_c_werror_flag=yes
3920 ac_cv_prog_cc_g=no
3921 CFLAGS="-g"
3922 cat >conftest.$ac_ext <<_ACEOF
3923 /* confdefs.h. */
3924 _ACEOF
3925 cat confdefs.h >>conftest.$ac_ext
3926 cat >>conftest.$ac_ext <<_ACEOF
3927 /* end confdefs.h. */
3928
3929 int
3930 main ()
3931 {
3932
3933 ;
3934 return 0;
3935 }
3936 _ACEOF
3937 rm -f conftest.$ac_objext
3938 if { (ac_try="$ac_compile"
3939 case "(($ac_try" in
3940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3941 *) ac_try_echo=$ac_try;;
3942 esac
3943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3944 (eval "$ac_compile") 2>conftest.er1
3945 ac_status=$?
3946 grep -v '^ *+' conftest.er1 >conftest.err
3947 rm -f conftest.er1
3948 cat conftest.err >&5
3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950 (exit $ac_status); } && {
3951 test -z "$ac_c_werror_flag" ||
3952 test ! -s conftest.err
3953 } && test -s conftest.$ac_objext; then
3954 ac_cv_prog_cc_g=yes
3955 else
3956 echo "$as_me: failed program was:" >&5
3957 sed 's/^/| /' conftest.$ac_ext >&5
3958
3959 CFLAGS=""
3960 cat >conftest.$ac_ext <<_ACEOF
3961 /* confdefs.h. */
3962 _ACEOF
3963 cat confdefs.h >>conftest.$ac_ext
3964 cat >>conftest.$ac_ext <<_ACEOF
3965 /* end confdefs.h. */
3966
3967 int
3968 main ()
3969 {
3970
3971 ;
3972 return 0;
3973 }
3974 _ACEOF
3975 rm -f conftest.$ac_objext
3976 if { (ac_try="$ac_compile"
3977 case "(($ac_try" in
3978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3979 *) ac_try_echo=$ac_try;;
3980 esac
3981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3982 (eval "$ac_compile") 2>conftest.er1
3983 ac_status=$?
3984 grep -v '^ *+' conftest.er1 >conftest.err
3985 rm -f conftest.er1
3986 cat conftest.err >&5
3987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988 (exit $ac_status); } && {
3989 test -z "$ac_c_werror_flag" ||
3990 test ! -s conftest.err
3991 } && test -s conftest.$ac_objext; then
3992 :
3993 else
3994 echo "$as_me: failed program was:" >&5
3995 sed 's/^/| /' conftest.$ac_ext >&5
3996
3997 ac_c_werror_flag=$ac_save_c_werror_flag
3998 CFLAGS="-g"
3999 cat >conftest.$ac_ext <<_ACEOF
4000 /* confdefs.h. */
4001 _ACEOF
4002 cat confdefs.h >>conftest.$ac_ext
4003 cat >>conftest.$ac_ext <<_ACEOF
4004 /* end confdefs.h. */
4005
4006 int
4007 main ()
4008 {
4009
4010 ;
4011 return 0;
4012 }
4013 _ACEOF
4014 rm -f conftest.$ac_objext
4015 if { (ac_try="$ac_compile"
4016 case "(($ac_try" in
4017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4018 *) ac_try_echo=$ac_try;;
4019 esac
4020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4021 (eval "$ac_compile") 2>conftest.er1
4022 ac_status=$?
4023 grep -v '^ *+' conftest.er1 >conftest.err
4024 rm -f conftest.er1
4025 cat conftest.err >&5
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); } && {
4028 test -z "$ac_c_werror_flag" ||
4029 test ! -s conftest.err
4030 } && test -s conftest.$ac_objext; then
4031 ac_cv_prog_cc_g=yes
4032 else
4033 echo "$as_me: failed program was:" >&5
4034 sed 's/^/| /' conftest.$ac_ext >&5
4035
4036
4037 fi
4038
4039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4040 fi
4041
4042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4043 fi
4044
4045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4046 ac_c_werror_flag=$ac_save_c_werror_flag
4047 fi
4048 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4049 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4050 if test "$ac_test_CFLAGS" = set; then
4051 CFLAGS=$ac_save_CFLAGS
4052 elif test $ac_cv_prog_cc_g = yes; then
4053 if test "$GCC" = yes; then
4054 CFLAGS="-g -O2"
4055 else
4056 CFLAGS="-g"
4057 fi
4058 else
4059 if test "$GCC" = yes; then
4060 CFLAGS="-O2"
4061 else
4062 CFLAGS=
4063 fi
4064 fi
4065 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4066 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4067 if test "${ac_cv_prog_cc_c89+set}" = set; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4069 else
4070 ac_cv_prog_cc_c89=no
4071 ac_save_CC=$CC
4072 cat >conftest.$ac_ext <<_ACEOF
4073 /* confdefs.h. */
4074 _ACEOF
4075 cat confdefs.h >>conftest.$ac_ext
4076 cat >>conftest.$ac_ext <<_ACEOF
4077 /* end confdefs.h. */
4078 #include <stdarg.h>
4079 #include <stdio.h>
4080 #include <sys/types.h>
4081 #include <sys/stat.h>
4082 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4083 struct buf { int x; };
4084 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4085 static char *e (p, i)
4086 char **p;
4087 int i;
4088 {
4089 return p[i];
4090 }
4091 static char *f (char * (*g) (char **, int), char **p, ...)
4092 {
4093 char *s;
4094 va_list v;
4095 va_start (v,p);
4096 s = g (p, va_arg (v,int));
4097 va_end (v);
4098 return s;
4099 }
4100
4101 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4102 function prototypes and stuff, but not '\xHH' hex character constants.
4103 These don't provoke an error unfortunately, instead are silently treated
4104 as 'x'. The following induces an error, until -std is added to get
4105 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4106 array size at least. It's necessary to write '\x00'==0 to get something
4107 that's true only with -std. */
4108 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4109
4110 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4111 inside strings and character constants. */
4112 #define FOO(x) 'x'
4113 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4114
4115 int test (int i, double x);
4116 struct s1 {int (*f) (int a);};
4117 struct s2 {int (*f) (double a);};
4118 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4119 int argc;
4120 char **argv;
4121 int
4122 main ()
4123 {
4124 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4125 ;
4126 return 0;
4127 }
4128 _ACEOF
4129 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4130 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4131 do
4132 CC="$ac_save_CC $ac_arg"
4133 rm -f conftest.$ac_objext
4134 if { (ac_try="$ac_compile"
4135 case "(($ac_try" in
4136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137 *) ac_try_echo=$ac_try;;
4138 esac
4139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4140 (eval "$ac_compile") 2>conftest.er1
4141 ac_status=$?
4142 grep -v '^ *+' conftest.er1 >conftest.err
4143 rm -f conftest.er1
4144 cat conftest.err >&5
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); } && {
4147 test -z "$ac_c_werror_flag" ||
4148 test ! -s conftest.err
4149 } && test -s conftest.$ac_objext; then
4150 ac_cv_prog_cc_c89=$ac_arg
4151 else
4152 echo "$as_me: failed program was:" >&5
4153 sed 's/^/| /' conftest.$ac_ext >&5
4154
4155
4156 fi
4157
4158 rm -f core conftest.err conftest.$ac_objext
4159 test "x$ac_cv_prog_cc_c89" != "xno" && break
4160 done
4161 rm -f conftest.$ac_ext
4162 CC=$ac_save_CC
4163
4164 fi
4165 # AC_CACHE_VAL
4166 case "x$ac_cv_prog_cc_c89" in
4167 x)
4168 { echo "$as_me:$LINENO: result: none needed" >&5
4169 echo "${ECHO_T}none needed" >&6; } ;;
4170 xno)
4171 { echo "$as_me:$LINENO: result: unsupported" >&5
4172 echo "${ECHO_T}unsupported" >&6; } ;;
4173 *)
4174 CC="$CC $ac_cv_prog_cc_c89"
4175 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4176 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4177 esac
4178
4179
4180 ac_ext=c
4181 ac_cpp='$CPP $CPPFLAGS'
4182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4185
4186
4187 # On Suns, sometimes $CPP names a directory.
4188 if test -n "$CPP" && test -d "$CPP"; then
4189 CPP=
4190 fi
4191
4192 #### Some systems specify a CPP to use unless we are using GCC.
4193 #### Now that we know whether we are using GCC, we can decide whether
4194 #### to use that one.
4195 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4196 then
4197 CPP="$NON_GNU_CPP"
4198 fi
4199
4200 #### Some systems specify a CC to use unless we are using GCC.
4201 #### Now that we know whether we are using GCC, we can decide whether
4202 #### to use that one.
4203 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4204 test x$cc_specified != xyes
4205 then
4206 CC="$NON_GNU_CC"
4207 fi
4208
4209 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4210 then
4211 CC="$CC $GCC_TEST_OPTIONS"
4212 fi
4213
4214 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4215 then
4216 CC="$CC $NON_GCC_TEST_OPTIONS"
4217 fi
4218
4219
4220 ac_ext=c
4221 ac_cpp='$CPP $CPPFLAGS'
4222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4225 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4226 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4227 # On Suns, sometimes $CPP names a directory.
4228 if test -n "$CPP" && test -d "$CPP"; then
4229 CPP=
4230 fi
4231 if test -z "$CPP"; then
4232 if test "${ac_cv_prog_CPP+set}" = set; then
4233 echo $ECHO_N "(cached) $ECHO_C" >&6
4234 else
4235 # Double quotes because CPP needs to be expanded
4236 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4237 do
4238 ac_preproc_ok=false
4239 for ac_c_preproc_warn_flag in '' yes
4240 do
4241 # Use a header file that comes with gcc, so configuring glibc
4242 # with a fresh cross-compiler works.
4243 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4244 # <limits.h> exists even on freestanding compilers.
4245 # On the NeXT, cc -E runs the code through the compiler's parser,
4246 # not just through cpp. "Syntax error" is here to catch this case.
4247 cat >conftest.$ac_ext <<_ACEOF
4248 /* confdefs.h. */
4249 _ACEOF
4250 cat confdefs.h >>conftest.$ac_ext
4251 cat >>conftest.$ac_ext <<_ACEOF
4252 /* end confdefs.h. */
4253 #ifdef __STDC__
4254 # include <limits.h>
4255 #else
4256 # include <assert.h>
4257 #endif
4258 Syntax error
4259 _ACEOF
4260 if { (ac_try="$ac_cpp conftest.$ac_ext"
4261 case "(($ac_try" in
4262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263 *) ac_try_echo=$ac_try;;
4264 esac
4265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4266 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4267 ac_status=$?
4268 grep -v '^ *+' conftest.er1 >conftest.err
4269 rm -f conftest.er1
4270 cat conftest.err >&5
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); } >/dev/null && {
4273 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4274 test ! -s conftest.err
4275 }; then
4276 :
4277 else
4278 echo "$as_me: failed program was:" >&5
4279 sed 's/^/| /' conftest.$ac_ext >&5
4280
4281 # Broken: fails on valid input.
4282 continue
4283 fi
4284
4285 rm -f conftest.err conftest.$ac_ext
4286
4287 # OK, works on sane cases. Now check whether nonexistent headers
4288 # can be detected and how.
4289 cat >conftest.$ac_ext <<_ACEOF
4290 /* confdefs.h. */
4291 _ACEOF
4292 cat confdefs.h >>conftest.$ac_ext
4293 cat >>conftest.$ac_ext <<_ACEOF
4294 /* end confdefs.h. */
4295 #include <ac_nonexistent.h>
4296 _ACEOF
4297 if { (ac_try="$ac_cpp conftest.$ac_ext"
4298 case "(($ac_try" in
4299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300 *) ac_try_echo=$ac_try;;
4301 esac
4302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4303 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4304 ac_status=$?
4305 grep -v '^ *+' conftest.er1 >conftest.err
4306 rm -f conftest.er1
4307 cat conftest.err >&5
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); } >/dev/null && {
4310 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4311 test ! -s conftest.err
4312 }; then
4313 # Broken: success on invalid input.
4314 continue
4315 else
4316 echo "$as_me: failed program was:" >&5
4317 sed 's/^/| /' conftest.$ac_ext >&5
4318
4319 # Passes both tests.
4320 ac_preproc_ok=:
4321 break
4322 fi
4323
4324 rm -f conftest.err conftest.$ac_ext
4325
4326 done
4327 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4328 rm -f conftest.err conftest.$ac_ext
4329 if $ac_preproc_ok; then
4330 break
4331 fi
4332
4333 done
4334 ac_cv_prog_CPP=$CPP
4335
4336 fi
4337 CPP=$ac_cv_prog_CPP
4338 else
4339 ac_cv_prog_CPP=$CPP
4340 fi
4341 { echo "$as_me:$LINENO: result: $CPP" >&5
4342 echo "${ECHO_T}$CPP" >&6; }
4343 ac_preproc_ok=false
4344 for ac_c_preproc_warn_flag in '' yes
4345 do
4346 # Use a header file that comes with gcc, so configuring glibc
4347 # with a fresh cross-compiler works.
4348 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4349 # <limits.h> exists even on freestanding compilers.
4350 # On the NeXT, cc -E runs the code through the compiler's parser,
4351 # not just through cpp. "Syntax error" is here to catch this case.
4352 cat >conftest.$ac_ext <<_ACEOF
4353 /* confdefs.h. */
4354 _ACEOF
4355 cat confdefs.h >>conftest.$ac_ext
4356 cat >>conftest.$ac_ext <<_ACEOF
4357 /* end confdefs.h. */
4358 #ifdef __STDC__
4359 # include <limits.h>
4360 #else
4361 # include <assert.h>
4362 #endif
4363 Syntax error
4364 _ACEOF
4365 if { (ac_try="$ac_cpp conftest.$ac_ext"
4366 case "(($ac_try" in
4367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368 *) ac_try_echo=$ac_try;;
4369 esac
4370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4372 ac_status=$?
4373 grep -v '^ *+' conftest.er1 >conftest.err
4374 rm -f conftest.er1
4375 cat conftest.err >&5
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); } >/dev/null && {
4378 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4379 test ! -s conftest.err
4380 }; then
4381 :
4382 else
4383 echo "$as_me: failed program was:" >&5
4384 sed 's/^/| /' conftest.$ac_ext >&5
4385
4386 # Broken: fails on valid input.
4387 continue
4388 fi
4389
4390 rm -f conftest.err conftest.$ac_ext
4391
4392 # OK, works on sane cases. Now check whether nonexistent headers
4393 # can be detected and how.
4394 cat >conftest.$ac_ext <<_ACEOF
4395 /* confdefs.h. */
4396 _ACEOF
4397 cat confdefs.h >>conftest.$ac_ext
4398 cat >>conftest.$ac_ext <<_ACEOF
4399 /* end confdefs.h. */
4400 #include <ac_nonexistent.h>
4401 _ACEOF
4402 if { (ac_try="$ac_cpp conftest.$ac_ext"
4403 case "(($ac_try" in
4404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4405 *) ac_try_echo=$ac_try;;
4406 esac
4407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4408 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4409 ac_status=$?
4410 grep -v '^ *+' conftest.er1 >conftest.err
4411 rm -f conftest.er1
4412 cat conftest.err >&5
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); } >/dev/null && {
4415 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4416 test ! -s conftest.err
4417 }; then
4418 # Broken: success on invalid input.
4419 continue
4420 else
4421 echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.$ac_ext >&5
4423
4424 # Passes both tests.
4425 ac_preproc_ok=:
4426 break
4427 fi
4428
4429 rm -f conftest.err conftest.$ac_ext
4430
4431 done
4432 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4433 rm -f conftest.err conftest.$ac_ext
4434 if $ac_preproc_ok; then
4435 :
4436 else
4437 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4438 See \`config.log' for more details." >&5
4439 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4440 See \`config.log' for more details." >&2;}
4441 { (exit 1); exit 1; }; }
4442 fi
4443
4444 ac_ext=c
4445 ac_cpp='$CPP $CPPFLAGS'
4446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4449
4450
4451 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4452 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4453 if test "${ac_cv_path_GREP+set}" = set; then
4454 echo $ECHO_N "(cached) $ECHO_C" >&6
4455 else
4456 # Extract the first word of "grep ggrep" to use in msg output
4457 if test -z "$GREP"; then
4458 set dummy grep ggrep; ac_prog_name=$2
4459 if test "${ac_cv_path_GREP+set}" = set; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4461 else
4462 ac_path_GREP_found=false
4463 # Loop through the user's path and test for each of PROGNAME-LIST
4464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4466 do
4467 IFS=$as_save_IFS
4468 test -z "$as_dir" && as_dir=.
4469 for ac_prog in grep ggrep; do
4470 for ac_exec_ext in '' $ac_executable_extensions; do
4471 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4472 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4473 # Check for GNU ac_path_GREP and select it if it is found.
4474 # Check for GNU $ac_path_GREP
4475 case `"$ac_path_GREP" --version 2>&1` in
4476 *GNU*)
4477 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4478 *)
4479 ac_count=0
4480 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4481 while :
4482 do
4483 cat "conftest.in" "conftest.in" >"conftest.tmp"
4484 mv "conftest.tmp" "conftest.in"
4485 cp "conftest.in" "conftest.nl"
4486 echo 'GREP' >> "conftest.nl"
4487 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4488 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4489 ac_count=`expr $ac_count + 1`
4490 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4491 # Best one so far, save it but keep looking for a better one
4492 ac_cv_path_GREP="$ac_path_GREP"
4493 ac_path_GREP_max=$ac_count
4494 fi
4495 # 10*(2^10) chars as input seems more than enough
4496 test $ac_count -gt 10 && break
4497 done
4498 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4499 esac
4500
4501
4502 $ac_path_GREP_found && break 3
4503 done
4504 done
4505
4506 done
4507 IFS=$as_save_IFS
4508
4509
4510 fi
4511
4512 GREP="$ac_cv_path_GREP"
4513 if test -z "$GREP"; then
4514 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4515 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4516 { (exit 1); exit 1; }; }
4517 fi
4518
4519 else
4520 ac_cv_path_GREP=$GREP
4521 fi
4522
4523
4524 fi
4525 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4526 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4527 GREP="$ac_cv_path_GREP"
4528
4529
4530 { echo "$as_me:$LINENO: checking for egrep" >&5
4531 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4532 if test "${ac_cv_path_EGREP+set}" = set; then
4533 echo $ECHO_N "(cached) $ECHO_C" >&6
4534 else
4535 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4536 then ac_cv_path_EGREP="$GREP -E"
4537 else
4538 # Extract the first word of "egrep" to use in msg output
4539 if test -z "$EGREP"; then
4540 set dummy egrep; ac_prog_name=$2
4541 if test "${ac_cv_path_EGREP+set}" = set; then
4542 echo $ECHO_N "(cached) $ECHO_C" >&6
4543 else
4544 ac_path_EGREP_found=false
4545 # Loop through the user's path and test for each of PROGNAME-LIST
4546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4548 do
4549 IFS=$as_save_IFS
4550 test -z "$as_dir" && as_dir=.
4551 for ac_prog in egrep; do
4552 for ac_exec_ext in '' $ac_executable_extensions; do
4553 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4554 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4555 # Check for GNU ac_path_EGREP and select it if it is found.
4556 # Check for GNU $ac_path_EGREP
4557 case `"$ac_path_EGREP" --version 2>&1` in
4558 *GNU*)
4559 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4560 *)
4561 ac_count=0
4562 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4563 while :
4564 do
4565 cat "conftest.in" "conftest.in" >"conftest.tmp"
4566 mv "conftest.tmp" "conftest.in"
4567 cp "conftest.in" "conftest.nl"
4568 echo 'EGREP' >> "conftest.nl"
4569 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4570 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4571 ac_count=`expr $ac_count + 1`
4572 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4573 # Best one so far, save it but keep looking for a better one
4574 ac_cv_path_EGREP="$ac_path_EGREP"
4575 ac_path_EGREP_max=$ac_count
4576 fi
4577 # 10*(2^10) chars as input seems more than enough
4578 test $ac_count -gt 10 && break
4579 done
4580 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4581 esac
4582
4583
4584 $ac_path_EGREP_found && break 3
4585 done
4586 done
4587
4588 done
4589 IFS=$as_save_IFS
4590
4591
4592 fi
4593
4594 EGREP="$ac_cv_path_EGREP"
4595 if test -z "$EGREP"; then
4596 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4597 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4598 { (exit 1); exit 1; }; }
4599 fi
4600
4601 else
4602 ac_cv_path_EGREP=$EGREP
4603 fi
4604
4605
4606 fi
4607 fi
4608 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4609 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4610 EGREP="$ac_cv_path_EGREP"
4611
4612
4613
4614 { echo "$as_me:$LINENO: checking for AIX" >&5
4615 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4616 cat >conftest.$ac_ext <<_ACEOF
4617 /* confdefs.h. */
4618 _ACEOF
4619 cat confdefs.h >>conftest.$ac_ext
4620 cat >>conftest.$ac_ext <<_ACEOF
4621 /* end confdefs.h. */
4622 #ifdef _AIX
4623 yes
4624 #endif
4625
4626 _ACEOF
4627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4628 $EGREP "yes" >/dev/null 2>&1; then
4629 { echo "$as_me:$LINENO: result: yes" >&5
4630 echo "${ECHO_T}yes" >&6; }
4631 cat >>confdefs.h <<\_ACEOF
4632 #define _ALL_SOURCE 1
4633 _ACEOF
4634
4635 else
4636 { echo "$as_me:$LINENO: result: no" >&5
4637 echo "${ECHO_T}no" >&6; }
4638 fi
4639 rm -f conftest*
4640
4641
4642
4643 cat >>confdefs.h <<\_ACEOF
4644 #define _GNU_SOURCE 1
4645 _ACEOF
4646
4647
4648
4649 ### Use -Wno-pointer-sign if the compiler supports it
4650 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4651 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4652 SAVE_CFLAGS="$CFLAGS"
4653 CFLAGS="$CFLAGS -Wno-pointer-sign"
4654 cat >conftest.$ac_ext <<_ACEOF
4655 /* confdefs.h. */
4656 _ACEOF
4657 cat confdefs.h >>conftest.$ac_ext
4658 cat >>conftest.$ac_ext <<_ACEOF
4659 /* end confdefs.h. */
4660
4661 int
4662 main ()
4663 {
4664
4665 ;
4666 return 0;
4667 }
4668 _ACEOF
4669 rm -f conftest.$ac_objext
4670 if { (ac_try="$ac_compile"
4671 case "(($ac_try" in
4672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4673 *) ac_try_echo=$ac_try;;
4674 esac
4675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4676 (eval "$ac_compile") 2>conftest.er1
4677 ac_status=$?
4678 grep -v '^ *+' conftest.er1 >conftest.err
4679 rm -f conftest.er1
4680 cat conftest.err >&5
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); } && {
4683 test -z "$ac_c_werror_flag" ||
4684 test ! -s conftest.err
4685 } && test -s conftest.$ac_objext; then
4686 has_option=yes
4687 else
4688 echo "$as_me: failed program was:" >&5
4689 sed 's/^/| /' conftest.$ac_ext >&5
4690
4691 has_option=no
4692 fi
4693
4694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4695 if test $has_option = yes; then
4696 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4697 fi
4698 { echo "$as_me:$LINENO: result: $has_option" >&5
4699 echo "${ECHO_T}$has_option" >&6; }
4700 CFLAGS="$SAVE_CFLAGS"
4701 unset has_option
4702 unset SAVE_CFLAGS
4703
4704 #### Some other nice autoconf tests.
4705
4706 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4707 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4708 LN_S=$as_ln_s
4709 if test "$LN_S" = "ln -s"; then
4710 { echo "$as_me:$LINENO: result: yes" >&5
4711 echo "${ECHO_T}yes" >&6; }
4712 else
4713 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4714 echo "${ECHO_T}no, using $LN_S" >&6; }
4715 fi
4716
4717 ac_ext=c
4718 ac_cpp='$CPP $CPPFLAGS'
4719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4722 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4723 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4724 # On Suns, sometimes $CPP names a directory.
4725 if test -n "$CPP" && test -d "$CPP"; then
4726 CPP=
4727 fi
4728 if test -z "$CPP"; then
4729 if test "${ac_cv_prog_CPP+set}" = set; then
4730 echo $ECHO_N "(cached) $ECHO_C" >&6
4731 else
4732 # Double quotes because CPP needs to be expanded
4733 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4734 do
4735 ac_preproc_ok=false
4736 for ac_c_preproc_warn_flag in '' yes
4737 do
4738 # Use a header file that comes with gcc, so configuring glibc
4739 # with a fresh cross-compiler works.
4740 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4741 # <limits.h> exists even on freestanding compilers.
4742 # On the NeXT, cc -E runs the code through the compiler's parser,
4743 # not just through cpp. "Syntax error" is here to catch this case.
4744 cat >conftest.$ac_ext <<_ACEOF
4745 /* confdefs.h. */
4746 _ACEOF
4747 cat confdefs.h >>conftest.$ac_ext
4748 cat >>conftest.$ac_ext <<_ACEOF
4749 /* end confdefs.h. */
4750 #ifdef __STDC__
4751 # include <limits.h>
4752 #else
4753 # include <assert.h>
4754 #endif
4755 Syntax error
4756 _ACEOF
4757 if { (ac_try="$ac_cpp conftest.$ac_ext"
4758 case "(($ac_try" in
4759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4760 *) ac_try_echo=$ac_try;;
4761 esac
4762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4764 ac_status=$?
4765 grep -v '^ *+' conftest.er1 >conftest.err
4766 rm -f conftest.er1
4767 cat conftest.err >&5
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); } >/dev/null && {
4770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4771 test ! -s conftest.err
4772 }; then
4773 :
4774 else
4775 echo "$as_me: failed program was:" >&5
4776 sed 's/^/| /' conftest.$ac_ext >&5
4777
4778 # Broken: fails on valid input.
4779 continue
4780 fi
4781
4782 rm -f conftest.err conftest.$ac_ext
4783
4784 # OK, works on sane cases. Now check whether nonexistent headers
4785 # can be detected and how.
4786 cat >conftest.$ac_ext <<_ACEOF
4787 /* confdefs.h. */
4788 _ACEOF
4789 cat confdefs.h >>conftest.$ac_ext
4790 cat >>conftest.$ac_ext <<_ACEOF
4791 /* end confdefs.h. */
4792 #include <ac_nonexistent.h>
4793 _ACEOF
4794 if { (ac_try="$ac_cpp conftest.$ac_ext"
4795 case "(($ac_try" in
4796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4797 *) ac_try_echo=$ac_try;;
4798 esac
4799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4801 ac_status=$?
4802 grep -v '^ *+' conftest.er1 >conftest.err
4803 rm -f conftest.er1
4804 cat conftest.err >&5
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); } >/dev/null && {
4807 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4808 test ! -s conftest.err
4809 }; then
4810 # Broken: success on invalid input.
4811 continue
4812 else
4813 echo "$as_me: failed program was:" >&5
4814 sed 's/^/| /' conftest.$ac_ext >&5
4815
4816 # Passes both tests.
4817 ac_preproc_ok=:
4818 break
4819 fi
4820
4821 rm -f conftest.err conftest.$ac_ext
4822
4823 done
4824 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4825 rm -f conftest.err conftest.$ac_ext
4826 if $ac_preproc_ok; then
4827 break
4828 fi
4829
4830 done
4831 ac_cv_prog_CPP=$CPP
4832
4833 fi
4834 CPP=$ac_cv_prog_CPP
4835 else
4836 ac_cv_prog_CPP=$CPP
4837 fi
4838 { echo "$as_me:$LINENO: result: $CPP" >&5
4839 echo "${ECHO_T}$CPP" >&6; }
4840 ac_preproc_ok=false
4841 for ac_c_preproc_warn_flag in '' yes
4842 do
4843 # Use a header file that comes with gcc, so configuring glibc
4844 # with a fresh cross-compiler works.
4845 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4846 # <limits.h> exists even on freestanding compilers.
4847 # On the NeXT, cc -E runs the code through the compiler's parser,
4848 # not just through cpp. "Syntax error" is here to catch this case.
4849 cat >conftest.$ac_ext <<_ACEOF
4850 /* confdefs.h. */
4851 _ACEOF
4852 cat confdefs.h >>conftest.$ac_ext
4853 cat >>conftest.$ac_ext <<_ACEOF
4854 /* end confdefs.h. */
4855 #ifdef __STDC__
4856 # include <limits.h>
4857 #else
4858 # include <assert.h>
4859 #endif
4860 Syntax error
4861 _ACEOF
4862 if { (ac_try="$ac_cpp conftest.$ac_ext"
4863 case "(($ac_try" in
4864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4865 *) ac_try_echo=$ac_try;;
4866 esac
4867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4869 ac_status=$?
4870 grep -v '^ *+' conftest.er1 >conftest.err
4871 rm -f conftest.er1
4872 cat conftest.err >&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); } >/dev/null && {
4875 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4876 test ! -s conftest.err
4877 }; then
4878 :
4879 else
4880 echo "$as_me: failed program was:" >&5
4881 sed 's/^/| /' conftest.$ac_ext >&5
4882
4883 # Broken: fails on valid input.
4884 continue
4885 fi
4886
4887 rm -f conftest.err conftest.$ac_ext
4888
4889 # OK, works on sane cases. Now check whether nonexistent headers
4890 # can be detected and how.
4891 cat >conftest.$ac_ext <<_ACEOF
4892 /* confdefs.h. */
4893 _ACEOF
4894 cat confdefs.h >>conftest.$ac_ext
4895 cat >>conftest.$ac_ext <<_ACEOF
4896 /* end confdefs.h. */
4897 #include <ac_nonexistent.h>
4898 _ACEOF
4899 if { (ac_try="$ac_cpp conftest.$ac_ext"
4900 case "(($ac_try" in
4901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4902 *) ac_try_echo=$ac_try;;
4903 esac
4904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4906 ac_status=$?
4907 grep -v '^ *+' conftest.er1 >conftest.err
4908 rm -f conftest.er1
4909 cat conftest.err >&5
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); } >/dev/null && {
4912 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4913 test ! -s conftest.err
4914 }; then
4915 # Broken: success on invalid input.
4916 continue
4917 else
4918 echo "$as_me: failed program was:" >&5
4919 sed 's/^/| /' conftest.$ac_ext >&5
4920
4921 # Passes both tests.
4922 ac_preproc_ok=:
4923 break
4924 fi
4925
4926 rm -f conftest.err conftest.$ac_ext
4927
4928 done
4929 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4930 rm -f conftest.err conftest.$ac_ext
4931 if $ac_preproc_ok; then
4932 :
4933 else
4934 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4935 See \`config.log' for more details." >&5
4936 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4937 See \`config.log' for more details." >&2;}
4938 { (exit 1); exit 1; }; }
4939 fi
4940
4941 ac_ext=c
4942 ac_cpp='$CPP $CPPFLAGS'
4943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4946
4947 # Find a good install program. We prefer a C program (faster),
4948 # so one script is as good as another. But avoid the broken or
4949 # incompatible versions:
4950 # SysV /etc/install, /usr/sbin/install
4951 # SunOS /usr/etc/install
4952 # IRIX /sbin/install
4953 # AIX /bin/install
4954 # AmigaOS /C/install, which installs bootblocks on floppy discs
4955 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4956 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4957 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4958 # OS/2's system install, which has a completely different semantic
4959 # ./install, which can be erroneously created by make from ./install.sh.
4960 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4961 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4962 if test -z "$INSTALL"; then
4963 if test "${ac_cv_path_install+set}" = set; then
4964 echo $ECHO_N "(cached) $ECHO_C" >&6
4965 else
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 for as_dir in $PATH
4968 do
4969 IFS=$as_save_IFS
4970 test -z "$as_dir" && as_dir=.
4971 # Account for people who put trailing slashes in PATH elements.
4972 case $as_dir/ in
4973 ./ | .// | /cC/* | \
4974 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4975 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4976 /usr/ucb/* ) ;;
4977 *)
4978 # OSF1 and SCO ODT 3.0 have their own names for install.
4979 # Don't use installbsd from OSF since it installs stuff as root
4980 # by default.
4981 for ac_prog in ginstall scoinst install; do
4982 for ac_exec_ext in '' $ac_executable_extensions; do
4983 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4984 if test $ac_prog = install &&
4985 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4986 # AIX install. It has an incompatible calling convention.
4987 :
4988 elif test $ac_prog = install &&
4989 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4990 # program-specific install script used by HP pwplus--don't use.
4991 :
4992 else
4993 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4994 break 3
4995 fi
4996 fi
4997 done
4998 done
4999 ;;
5000 esac
5001 done
5002 IFS=$as_save_IFS
5003
5004
5005 fi
5006 if test "${ac_cv_path_install+set}" = set; then
5007 INSTALL=$ac_cv_path_install
5008 else
5009 # As a last resort, use the slow shell script. Don't cache a
5010 # value for INSTALL within a source directory, because that will
5011 # break other packages using the cache if that directory is
5012 # removed, or if the value is a relative name.
5013 INSTALL=$ac_install_sh
5014 fi
5015 fi
5016 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5017 echo "${ECHO_T}$INSTALL" >&6; }
5018
5019 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5020 # It thinks the first close brace ends the variable substitution.
5021 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5022
5023 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5024
5025 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5026
5027 if test "x$RANLIB" = x; then
5028 if test -n "$ac_tool_prefix"; then
5029 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5030 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5033 if test "${ac_cv_prog_RANLIB+set}" = set; then
5034 echo $ECHO_N "(cached) $ECHO_C" >&6
5035 else
5036 if test -n "$RANLIB"; then
5037 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5038 else
5039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040 for as_dir in $PATH
5041 do
5042 IFS=$as_save_IFS
5043 test -z "$as_dir" && as_dir=.
5044 for ac_exec_ext in '' $ac_executable_extensions; do
5045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5046 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5048 break 2
5049 fi
5050 done
5051 done
5052 IFS=$as_save_IFS
5053
5054 fi
5055 fi
5056 RANLIB=$ac_cv_prog_RANLIB
5057 if test -n "$RANLIB"; then
5058 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5059 echo "${ECHO_T}$RANLIB" >&6; }
5060 else
5061 { echo "$as_me:$LINENO: result: no" >&5
5062 echo "${ECHO_T}no" >&6; }
5063 fi
5064
5065
5066 fi
5067 if test -z "$ac_cv_prog_RANLIB"; then
5068 ac_ct_RANLIB=$RANLIB
5069 # Extract the first word of "ranlib", so it can be a program name with args.
5070 set dummy ranlib; ac_word=$2
5071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5073 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5074 echo $ECHO_N "(cached) $ECHO_C" >&6
5075 else
5076 if test -n "$ac_ct_RANLIB"; then
5077 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5078 else
5079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5080 for as_dir in $PATH
5081 do
5082 IFS=$as_save_IFS
5083 test -z "$as_dir" && as_dir=.
5084 for ac_exec_ext in '' $ac_executable_extensions; do
5085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5086 ac_cv_prog_ac_ct_RANLIB="ranlib"
5087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5088 break 2
5089 fi
5090 done
5091 done
5092 IFS=$as_save_IFS
5093
5094 fi
5095 fi
5096 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5097 if test -n "$ac_ct_RANLIB"; then
5098 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5099 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5100 else
5101 { echo "$as_me:$LINENO: result: no" >&5
5102 echo "${ECHO_T}no" >&6; }
5103 fi
5104
5105 if test "x$ac_ct_RANLIB" = x; then
5106 RANLIB=":"
5107 else
5108 case $cross_compiling:$ac_tool_warned in
5109 yes:)
5110 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5111 whose name does not start with the host triplet. If you think this
5112 configuration is useful to you, please write to autoconf@gnu.org." >&5
5113 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5114 whose name does not start with the host triplet. If you think this
5115 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5116 ac_tool_warned=yes ;;
5117 esac
5118 RANLIB=$ac_ct_RANLIB
5119 fi
5120 else
5121 RANLIB="$ac_cv_prog_RANLIB"
5122 fi
5123
5124 fi
5125 # Extract the first word of "install-info", so it can be a program name with args.
5126 set dummy install-info; ac_word=$2
5127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5129 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5130 echo $ECHO_N "(cached) $ECHO_C" >&6
5131 else
5132 case $INSTALL_INFO in
5133 [\\/]* | ?:[\\/]*)
5134 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5135 ;;
5136 *)
5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138 for as_dir in $PATH
5139 do
5140 IFS=$as_save_IFS
5141 test -z "$as_dir" && as_dir=.
5142 for ac_exec_ext in '' $ac_executable_extensions; do
5143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5144 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5146 break 2
5147 fi
5148 done
5149 done
5150 IFS=$as_save_IFS
5151
5152 ;;
5153 esac
5154 fi
5155 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5156 if test -n "$INSTALL_INFO"; then
5157 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5158 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5159 else
5160 { echo "$as_me:$LINENO: result: no" >&5
5161 echo "${ECHO_T}no" >&6; }
5162 fi
5163
5164
5165 # Extract the first word of "install-info", so it can be a program name with args.
5166 set dummy install-info; ac_word=$2
5167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5169 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5171 else
5172 case $INSTALL_INFO in
5173 [\\/]* | ?:[\\/]*)
5174 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5175 ;;
5176 *)
5177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178 for as_dir in /usr/sbin
5179 do
5180 IFS=$as_save_IFS
5181 test -z "$as_dir" && as_dir=.
5182 for ac_exec_ext in '' $ac_executable_extensions; do
5183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5184 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5186 break 2
5187 fi
5188 done
5189 done
5190 IFS=$as_save_IFS
5191
5192 ;;
5193 esac
5194 fi
5195 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5196 if test -n "$INSTALL_INFO"; then
5197 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5198 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5199 else
5200 { echo "$as_me:$LINENO: result: no" >&5
5201 echo "${ECHO_T}no" >&6; }
5202 fi
5203
5204
5205 # Extract the first word of "install-info", so it can be a program name with args.
5206 set dummy install-info; ac_word=$2
5207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5209 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5211 else
5212 case $INSTALL_INFO in
5213 [\\/]* | ?:[\\/]*)
5214 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5215 ;;
5216 *)
5217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218 for as_dir in /sbin
5219 do
5220 IFS=$as_save_IFS
5221 test -z "$as_dir" && as_dir=.
5222 for ac_exec_ext in '' $ac_executable_extensions; do
5223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5224 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5226 break 2
5227 fi
5228 done
5229 done
5230 IFS=$as_save_IFS
5231
5232 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5233 ;;
5234 esac
5235 fi
5236 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5237 if test -n "$INSTALL_INFO"; then
5238 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5239 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5240 else
5241 { echo "$as_me:$LINENO: result: no" >&5
5242 echo "${ECHO_T}no" >&6; }
5243 fi
5244
5245
5246 # Extract the first word of "gzip", so it can be a program name with args.
5247 set dummy gzip; ac_word=$2
5248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5250 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5251 echo $ECHO_N "(cached) $ECHO_C" >&6
5252 else
5253 case $GZIP_PROG in
5254 [\\/]* | ?:[\\/]*)
5255 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5256 ;;
5257 *)
5258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259 for as_dir in $PATH
5260 do
5261 IFS=$as_save_IFS
5262 test -z "$as_dir" && as_dir=.
5263 for ac_exec_ext in '' $ac_executable_extensions; do
5264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5265 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5267 break 2
5268 fi
5269 done
5270 done
5271 IFS=$as_save_IFS
5272
5273 ;;
5274 esac
5275 fi
5276 GZIP_PROG=$ac_cv_path_GZIP_PROG
5277 if test -n "$GZIP_PROG"; then
5278 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5279 echo "${ECHO_T}$GZIP_PROG" >&6; }
5280 else
5281 { echo "$as_me:$LINENO: result: no" >&5
5282 echo "${ECHO_T}no" >&6; }
5283 fi
5284
5285
5286
5287
5288 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5289 then
5290 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5291 fi
5292
5293 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5294 then
5295 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5296 fi
5297
5298
5299 late_LDFLAGS=$LDFLAGS
5300 if test "$GCC" = yes; then
5301 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5302 else
5303 LDFLAGS="$LDFLAGS -znocombreloc"
5304 fi
5305
5306 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5307 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5308 cat >conftest.$ac_ext <<_ACEOF
5309 main(){return 0;}
5310 _ACEOF
5311 rm -f conftest.$ac_objext conftest$ac_exeext
5312 if { (ac_try="$ac_link"
5313 case "(($ac_try" in
5314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5315 *) ac_try_echo=$ac_try;;
5316 esac
5317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5318 (eval "$ac_link") 2>conftest.er1
5319 ac_status=$?
5320 grep -v '^ *+' conftest.er1 >conftest.err
5321 rm -f conftest.er1
5322 cat conftest.err >&5
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); } && {
5325 test -z "$ac_c_werror_flag" ||
5326 test ! -s conftest.err
5327 } && test -s conftest$ac_exeext &&
5328 $as_test_x conftest$ac_exeext; then
5329 { echo "$as_me:$LINENO: result: yes" >&5
5330 echo "${ECHO_T}yes" >&6; }
5331 else
5332 echo "$as_me: failed program was:" >&5
5333 sed 's/^/| /' conftest.$ac_ext >&5
5334
5335 LDFLAGS=$late_LDFLAGS
5336 { echo "$as_me:$LINENO: result: no" >&5
5337 echo "${ECHO_T}no" >&6; }
5338 fi
5339
5340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5341 conftest$ac_exeext conftest.$ac_ext
5342
5343 #### Extract some information from the operating system and machine files.
5344
5345 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5346 - which libraries the lib-src programs will want, and
5347 - whether the GNU malloc routines are usable..." >&5
5348 echo "$as_me: checking the machine- and system-dependent files to find out
5349 - which libraries the lib-src programs will want, and
5350 - whether the GNU malloc routines are usable..." >&6;}
5351
5352 ### First figure out CFLAGS (which we use for running the compiler here)
5353 ### and REAL_CFLAGS (which we use for real compilation).
5354 ### The two are the same except on a few systems, where they are made
5355 ### different to work around various lossages. For example,
5356 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5357 ### as implying static linking.
5358
5359 ### If the CFLAGS env var is specified, we use that value
5360 ### instead of the default.
5361
5362 ### It's not important that this name contain the PID; you can't run
5363 ### two configures in the same directory and have anything work
5364 ### anyway.
5365 tempcname="conftest.c"
5366
5367 echo '
5368 #include "'${srcdir}'/src/'${opsysfile}'"
5369 #include "'${srcdir}'/src/'${machfile}'"
5370 #ifndef LIBS_MACHINE
5371 #define LIBS_MACHINE
5372 #endif
5373 #ifndef LIBS_SYSTEM
5374 #define LIBS_SYSTEM
5375 #endif
5376 #ifndef C_SWITCH_SYSTEM
5377 #define C_SWITCH_SYSTEM
5378 #endif
5379 #ifndef C_SWITCH_MACHINE
5380 #define C_SWITCH_MACHINE
5381 #endif
5382 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5383 configure___ c_switch_system=C_SWITCH_SYSTEM
5384 configure___ c_switch_machine=C_SWITCH_MACHINE
5385
5386 #ifndef LIB_X11_LIB
5387 #define LIB_X11_LIB -lX11
5388 #endif
5389
5390 #ifndef LIBX11_MACHINE
5391 #define LIBX11_MACHINE
5392 #endif
5393
5394 #ifndef LIBX11_SYSTEM
5395 #define LIBX11_SYSTEM
5396 #endif
5397 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5398
5399 #ifdef UNEXEC
5400 configure___ unexec=UNEXEC
5401 #else
5402 configure___ unexec=unexec.o
5403 #endif
5404
5405 #ifdef SYSTEM_MALLOC
5406 configure___ system_malloc=yes
5407 #else
5408 configure___ system_malloc=no
5409 #endif
5410
5411 #ifdef USE_MMAP_FOR_BUFFERS
5412 configure___ use_mmap_for_buffers=yes
5413 #else
5414 configure___ use_mmap_for_buffers=no
5415 #endif
5416
5417 #ifndef C_DEBUG_SWITCH
5418 #define C_DEBUG_SWITCH -g
5419 #endif
5420
5421 #ifndef C_OPTIMIZE_SWITCH
5422 #ifdef __GNUC__
5423 #define C_OPTIMIZE_SWITCH -O2
5424 #else
5425 #define C_OPTIMIZE_SWITCH -O
5426 #endif
5427 #endif
5428
5429 #ifndef C_WARNINGS_SWITCH
5430 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5431 #endif
5432
5433 #ifndef LD_SWITCH_MACHINE
5434 #define LD_SWITCH_MACHINE
5435 #endif
5436
5437 #ifndef LD_SWITCH_SYSTEM
5438 #define LD_SWITCH_SYSTEM
5439 #endif
5440
5441 #ifndef LD_SWITCH_X_SITE_AUX
5442 #define LD_SWITCH_X_SITE_AUX
5443 #endif
5444
5445 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5446 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5447
5448 #ifdef THIS_IS_CONFIGURE
5449
5450 /* Get the CFLAGS for tests in configure. */
5451 #ifdef __GNUC__
5452 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5453 #else
5454 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5455 #endif
5456
5457 #else /* not THIS_IS_CONFIGURE */
5458
5459 /* Get the CFLAGS for real compilation. */
5460 #ifdef __GNUC__
5461 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5462 #else
5463 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5464 #endif
5465
5466 #endif /* not THIS_IS_CONFIGURE */
5467 ' > ${tempcname}
5468
5469 # The value of CPP is a quoted variable reference, so we need to do this
5470 # to get its actual value...
5471 CPP=`eval "echo $CPP"`
5472 eval `${CPP} -Isrc ${tempcname} \
5473 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5474 if test "x$SPECIFIED_CFLAGS" = x; then
5475 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5476 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5477 else
5478 REAL_CFLAGS="$CFLAGS"
5479 fi
5480 rm ${tempcname}
5481
5482 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5483
5484 ### Make sure subsequent tests use flags consistent with the build flags.
5485
5486 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5487 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5488 else
5489 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5490 fi
5491
5492
5493
5494 # Check whether --enable-largefile was given.
5495 if test "${enable_largefile+set}" = set; then
5496 enableval=$enable_largefile;
5497 fi
5498
5499 if test "$enable_largefile" != no; then
5500
5501 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5502 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5503 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5504 echo $ECHO_N "(cached) $ECHO_C" >&6
5505 else
5506 ac_cv_sys_largefile_CC=no
5507 if test "$GCC" != yes; then
5508 ac_save_CC=$CC
5509 while :; do
5510 # IRIX 6.2 and later do not support large files by default,
5511 # so use the C compiler's -n32 option if that helps.
5512 cat >conftest.$ac_ext <<_ACEOF
5513 /* confdefs.h. */
5514 _ACEOF
5515 cat confdefs.h >>conftest.$ac_ext
5516 cat >>conftest.$ac_ext <<_ACEOF
5517 /* end confdefs.h. */
5518 #include <sys/types.h>
5519 /* Check that off_t can represent 2**63 - 1 correctly.
5520 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5521 since some C++ compilers masquerading as C compilers
5522 incorrectly reject 9223372036854775807. */
5523 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5524 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5525 && LARGE_OFF_T % 2147483647 == 1)
5526 ? 1 : -1];
5527 int
5528 main ()
5529 {
5530
5531 ;
5532 return 0;
5533 }
5534 _ACEOF
5535 rm -f conftest.$ac_objext
5536 if { (ac_try="$ac_compile"
5537 case "(($ac_try" in
5538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5539 *) ac_try_echo=$ac_try;;
5540 esac
5541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5542 (eval "$ac_compile") 2>conftest.er1
5543 ac_status=$?
5544 grep -v '^ *+' conftest.er1 >conftest.err
5545 rm -f conftest.er1
5546 cat conftest.err >&5
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); } && {
5549 test -z "$ac_c_werror_flag" ||
5550 test ! -s conftest.err
5551 } && test -s conftest.$ac_objext; then
5552 break
5553 else
5554 echo "$as_me: failed program was:" >&5
5555 sed 's/^/| /' conftest.$ac_ext >&5
5556
5557
5558 fi
5559
5560 rm -f core conftest.err conftest.$ac_objext
5561 CC="$CC -n32"
5562 rm -f conftest.$ac_objext
5563 if { (ac_try="$ac_compile"
5564 case "(($ac_try" in
5565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5566 *) ac_try_echo=$ac_try;;
5567 esac
5568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5569 (eval "$ac_compile") 2>conftest.er1
5570 ac_status=$?
5571 grep -v '^ *+' conftest.er1 >conftest.err
5572 rm -f conftest.er1
5573 cat conftest.err >&5
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); } && {
5576 test -z "$ac_c_werror_flag" ||
5577 test ! -s conftest.err
5578 } && test -s conftest.$ac_objext; then
5579 ac_cv_sys_largefile_CC=' -n32'; break
5580 else
5581 echo "$as_me: failed program was:" >&5
5582 sed 's/^/| /' conftest.$ac_ext >&5
5583
5584
5585 fi
5586
5587 rm -f core conftest.err conftest.$ac_objext
5588 break
5589 done
5590 CC=$ac_save_CC
5591 rm -f conftest.$ac_ext
5592 fi
5593 fi
5594 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5595 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5596 if test "$ac_cv_sys_largefile_CC" != no; then
5597 CC=$CC$ac_cv_sys_largefile_CC
5598 fi
5599
5600 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5601 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5602 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5603 echo $ECHO_N "(cached) $ECHO_C" >&6
5604 else
5605 while :; do
5606 cat >conftest.$ac_ext <<_ACEOF
5607 /* confdefs.h. */
5608 _ACEOF
5609 cat confdefs.h >>conftest.$ac_ext
5610 cat >>conftest.$ac_ext <<_ACEOF
5611 /* end confdefs.h. */
5612 #include <sys/types.h>
5613 /* Check that off_t can represent 2**63 - 1 correctly.
5614 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5615 since some C++ compilers masquerading as C compilers
5616 incorrectly reject 9223372036854775807. */
5617 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5618 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5619 && LARGE_OFF_T % 2147483647 == 1)
5620 ? 1 : -1];
5621 int
5622 main ()
5623 {
5624
5625 ;
5626 return 0;
5627 }
5628 _ACEOF
5629 rm -f conftest.$ac_objext
5630 if { (ac_try="$ac_compile"
5631 case "(($ac_try" in
5632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5633 *) ac_try_echo=$ac_try;;
5634 esac
5635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5636 (eval "$ac_compile") 2>conftest.er1
5637 ac_status=$?
5638 grep -v '^ *+' conftest.er1 >conftest.err
5639 rm -f conftest.er1
5640 cat conftest.err >&5
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); } && {
5643 test -z "$ac_c_werror_flag" ||
5644 test ! -s conftest.err
5645 } && test -s conftest.$ac_objext; then
5646 ac_cv_sys_file_offset_bits=no; break
5647 else
5648 echo "$as_me: failed program was:" >&5
5649 sed 's/^/| /' conftest.$ac_ext >&5
5650
5651
5652 fi
5653
5654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5655 cat >conftest.$ac_ext <<_ACEOF
5656 /* confdefs.h. */
5657 _ACEOF
5658 cat confdefs.h >>conftest.$ac_ext
5659 cat >>conftest.$ac_ext <<_ACEOF
5660 /* end confdefs.h. */
5661 #define _FILE_OFFSET_BITS 64
5662 #include <sys/types.h>
5663 /* Check that off_t can represent 2**63 - 1 correctly.
5664 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5665 since some C++ compilers masquerading as C compilers
5666 incorrectly reject 9223372036854775807. */
5667 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5668 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5669 && LARGE_OFF_T % 2147483647 == 1)
5670 ? 1 : -1];
5671 int
5672 main ()
5673 {
5674
5675 ;
5676 return 0;
5677 }
5678 _ACEOF
5679 rm -f conftest.$ac_objext
5680 if { (ac_try="$ac_compile"
5681 case "(($ac_try" in
5682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5683 *) ac_try_echo=$ac_try;;
5684 esac
5685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5686 (eval "$ac_compile") 2>conftest.er1
5687 ac_status=$?
5688 grep -v '^ *+' conftest.er1 >conftest.err
5689 rm -f conftest.er1
5690 cat conftest.err >&5
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); } && {
5693 test -z "$ac_c_werror_flag" ||
5694 test ! -s conftest.err
5695 } && test -s conftest.$ac_objext; then
5696 ac_cv_sys_file_offset_bits=64; break
5697 else
5698 echo "$as_me: failed program was:" >&5
5699 sed 's/^/| /' conftest.$ac_ext >&5
5700
5701
5702 fi
5703
5704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5705 ac_cv_sys_file_offset_bits=unknown
5706 break
5707 done
5708 fi
5709 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5710 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5711 case $ac_cv_sys_file_offset_bits in #(
5712 no | unknown) ;;
5713 *)
5714 cat >>confdefs.h <<_ACEOF
5715 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5716 _ACEOF
5717 ;;
5718 esac
5719 rm -f conftest*
5720 if test $ac_cv_sys_file_offset_bits = unknown; then
5721 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5722 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5723 if test "${ac_cv_sys_large_files+set}" = set; then
5724 echo $ECHO_N "(cached) $ECHO_C" >&6
5725 else
5726 while :; do
5727 cat >conftest.$ac_ext <<_ACEOF
5728 /* confdefs.h. */
5729 _ACEOF
5730 cat confdefs.h >>conftest.$ac_ext
5731 cat >>conftest.$ac_ext <<_ACEOF
5732 /* end confdefs.h. */
5733 #include <sys/types.h>
5734 /* Check that off_t can represent 2**63 - 1 correctly.
5735 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5736 since some C++ compilers masquerading as C compilers
5737 incorrectly reject 9223372036854775807. */
5738 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5739 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5740 && LARGE_OFF_T % 2147483647 == 1)
5741 ? 1 : -1];
5742 int
5743 main ()
5744 {
5745
5746 ;
5747 return 0;
5748 }
5749 _ACEOF
5750 rm -f conftest.$ac_objext
5751 if { (ac_try="$ac_compile"
5752 case "(($ac_try" in
5753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5754 *) ac_try_echo=$ac_try;;
5755 esac
5756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5757 (eval "$ac_compile") 2>conftest.er1
5758 ac_status=$?
5759 grep -v '^ *+' conftest.er1 >conftest.err
5760 rm -f conftest.er1
5761 cat conftest.err >&5
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); } && {
5764 test -z "$ac_c_werror_flag" ||
5765 test ! -s conftest.err
5766 } && test -s conftest.$ac_objext; then
5767 ac_cv_sys_large_files=no; break
5768 else
5769 echo "$as_me: failed program was:" >&5
5770 sed 's/^/| /' conftest.$ac_ext >&5
5771
5772
5773 fi
5774
5775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5776 cat >conftest.$ac_ext <<_ACEOF
5777 /* confdefs.h. */
5778 _ACEOF
5779 cat confdefs.h >>conftest.$ac_ext
5780 cat >>conftest.$ac_ext <<_ACEOF
5781 /* end confdefs.h. */
5782 #define _LARGE_FILES 1
5783 #include <sys/types.h>
5784 /* Check that off_t can represent 2**63 - 1 correctly.
5785 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5786 since some C++ compilers masquerading as C compilers
5787 incorrectly reject 9223372036854775807. */
5788 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5789 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5790 && LARGE_OFF_T % 2147483647 == 1)
5791 ? 1 : -1];
5792 int
5793 main ()
5794 {
5795
5796 ;
5797 return 0;
5798 }
5799 _ACEOF
5800 rm -f conftest.$ac_objext
5801 if { (ac_try="$ac_compile"
5802 case "(($ac_try" in
5803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5804 *) ac_try_echo=$ac_try;;
5805 esac
5806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5807 (eval "$ac_compile") 2>conftest.er1
5808 ac_status=$?
5809 grep -v '^ *+' conftest.er1 >conftest.err
5810 rm -f conftest.er1
5811 cat conftest.err >&5
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); } && {
5814 test -z "$ac_c_werror_flag" ||
5815 test ! -s conftest.err
5816 } && test -s conftest.$ac_objext; then
5817 ac_cv_sys_large_files=1; break
5818 else
5819 echo "$as_me: failed program was:" >&5
5820 sed 's/^/| /' conftest.$ac_ext >&5
5821
5822
5823 fi
5824
5825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5826 ac_cv_sys_large_files=unknown
5827 break
5828 done
5829 fi
5830 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5831 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5832 case $ac_cv_sys_large_files in #(
5833 no | unknown) ;;
5834 *)
5835 cat >>confdefs.h <<_ACEOF
5836 #define _LARGE_FILES $ac_cv_sys_large_files
5837 _ACEOF
5838 ;;
5839 esac
5840 rm -f conftest*
5841 fi
5842 fi
5843
5844
5845
5846 ### The standard library on x86-64 GNU/Linux distributions can
5847 ### be located in either /usr/lib64 or /usr/lib.
5848 case "${canonical}" in
5849 x86_64-*-linux-gnu* )
5850 if test -d /usr/lib64; then
5851
5852 cat >>confdefs.h <<\_ACEOF
5853 #define HAVE_X86_64_LIB64_DIR 1
5854 _ACEOF
5855
5856 fi
5857 esac
5858
5859
5860
5861
5862 if test "${with_sound}" != "no"; then
5863 # Sound support for GNU/Linux and the free BSDs.
5864 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5865 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5866 if test "${ac_cv_header_stdc+set}" = set; then
5867 echo $ECHO_N "(cached) $ECHO_C" >&6
5868 else
5869 cat >conftest.$ac_ext <<_ACEOF
5870 /* confdefs.h. */
5871 _ACEOF
5872 cat confdefs.h >>conftest.$ac_ext
5873 cat >>conftest.$ac_ext <<_ACEOF
5874 /* end confdefs.h. */
5875 #include <stdlib.h>
5876 #include <stdarg.h>
5877 #include <string.h>
5878 #include <float.h>
5879
5880 int
5881 main ()
5882 {
5883
5884 ;
5885 return 0;
5886 }
5887 _ACEOF
5888 rm -f conftest.$ac_objext
5889 if { (ac_try="$ac_compile"
5890 case "(($ac_try" in
5891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5892 *) ac_try_echo=$ac_try;;
5893 esac
5894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5895 (eval "$ac_compile") 2>conftest.er1
5896 ac_status=$?
5897 grep -v '^ *+' conftest.er1 >conftest.err
5898 rm -f conftest.er1
5899 cat conftest.err >&5
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); } && {
5902 test -z "$ac_c_werror_flag" ||
5903 test ! -s conftest.err
5904 } && test -s conftest.$ac_objext; then
5905 ac_cv_header_stdc=yes
5906 else
5907 echo "$as_me: failed program was:" >&5
5908 sed 's/^/| /' conftest.$ac_ext >&5
5909
5910 ac_cv_header_stdc=no
5911 fi
5912
5913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5914
5915 if test $ac_cv_header_stdc = yes; then
5916 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5917 cat >conftest.$ac_ext <<_ACEOF
5918 /* confdefs.h. */
5919 _ACEOF
5920 cat confdefs.h >>conftest.$ac_ext
5921 cat >>conftest.$ac_ext <<_ACEOF
5922 /* end confdefs.h. */
5923 #include <string.h>
5924
5925 _ACEOF
5926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5927 $EGREP "memchr" >/dev/null 2>&1; then
5928 :
5929 else
5930 ac_cv_header_stdc=no
5931 fi
5932 rm -f conftest*
5933
5934 fi
5935
5936 if test $ac_cv_header_stdc = yes; then
5937 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5938 cat >conftest.$ac_ext <<_ACEOF
5939 /* confdefs.h. */
5940 _ACEOF
5941 cat confdefs.h >>conftest.$ac_ext
5942 cat >>conftest.$ac_ext <<_ACEOF
5943 /* end confdefs.h. */
5944 #include <stdlib.h>
5945
5946 _ACEOF
5947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5948 $EGREP "free" >/dev/null 2>&1; then
5949 :
5950 else
5951 ac_cv_header_stdc=no
5952 fi
5953 rm -f conftest*
5954
5955 fi
5956
5957 if test $ac_cv_header_stdc = yes; then
5958 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5959 if test "$cross_compiling" = yes; then
5960 :
5961 else
5962 cat >conftest.$ac_ext <<_ACEOF
5963 /* confdefs.h. */
5964 _ACEOF
5965 cat confdefs.h >>conftest.$ac_ext
5966 cat >>conftest.$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5968 #include <ctype.h>
5969 #include <stdlib.h>
5970 #if ((' ' & 0x0FF) == 0x020)
5971 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5972 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5973 #else
5974 # define ISLOWER(c) \
5975 (('a' <= (c) && (c) <= 'i') \
5976 || ('j' <= (c) && (c) <= 'r') \
5977 || ('s' <= (c) && (c) <= 'z'))
5978 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5979 #endif
5980
5981 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5982 int
5983 main ()
5984 {
5985 int i;
5986 for (i = 0; i < 256; i++)
5987 if (XOR (islower (i), ISLOWER (i))
5988 || toupper (i) != TOUPPER (i))
5989 return 2;
5990 return 0;
5991 }
5992 _ACEOF
5993 rm -f conftest$ac_exeext
5994 if { (ac_try="$ac_link"
5995 case "(($ac_try" in
5996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997 *) ac_try_echo=$ac_try;;
5998 esac
5999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6000 (eval "$ac_link") 2>&5
6001 ac_status=$?
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6004 { (case "(($ac_try" in
6005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6006 *) ac_try_echo=$ac_try;;
6007 esac
6008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6009 (eval "$ac_try") 2>&5
6010 ac_status=$?
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; }; then
6013 :
6014 else
6015 echo "$as_me: program exited with status $ac_status" >&5
6016 echo "$as_me: failed program was:" >&5
6017 sed 's/^/| /' conftest.$ac_ext >&5
6018
6019 ( exit $ac_status )
6020 ac_cv_header_stdc=no
6021 fi
6022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6023 fi
6024
6025
6026 fi
6027 fi
6028 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6029 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6030 if test $ac_cv_header_stdc = yes; then
6031
6032 cat >>confdefs.h <<\_ACEOF
6033 #define STDC_HEADERS 1
6034 _ACEOF
6035
6036 fi
6037
6038 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6049 inttypes.h stdint.h unistd.h
6050 do
6051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
6056 else
6057 cat >conftest.$ac_ext <<_ACEOF
6058 /* confdefs.h. */
6059 _ACEOF
6060 cat confdefs.h >>conftest.$ac_ext
6061 cat >>conftest.$ac_ext <<_ACEOF
6062 /* end confdefs.h. */
6063 $ac_includes_default
6064
6065 #include <$ac_header>
6066 _ACEOF
6067 rm -f conftest.$ac_objext
6068 if { (ac_try="$ac_compile"
6069 case "(($ac_try" in
6070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6071 *) ac_try_echo=$ac_try;;
6072 esac
6073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6074 (eval "$ac_compile") 2>conftest.er1
6075 ac_status=$?
6076 grep -v '^ *+' conftest.er1 >conftest.err
6077 rm -f conftest.er1
6078 cat conftest.err >&5
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); } && {
6081 test -z "$ac_c_werror_flag" ||
6082 test ! -s conftest.err
6083 } && test -s conftest.$ac_objext; then
6084 eval "$as_ac_Header=yes"
6085 else
6086 echo "$as_me: failed program was:" >&5
6087 sed 's/^/| /' conftest.$ac_ext >&5
6088
6089 eval "$as_ac_Header=no"
6090 fi
6091
6092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6093 fi
6094 ac_res=`eval echo '${'$as_ac_Header'}'`
6095 { echo "$as_me:$LINENO: result: $ac_res" >&5
6096 echo "${ECHO_T}$ac_res" >&6; }
6097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6098 cat >>confdefs.h <<_ACEOF
6099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6100 _ACEOF
6101
6102 fi
6103
6104 done
6105
6106
6107
6108
6109
6110 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6111 do
6112 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6114 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6117 echo $ECHO_N "(cached) $ECHO_C" >&6
6118 fi
6119 ac_res=`eval echo '${'$as_ac_Header'}'`
6120 { echo "$as_me:$LINENO: result: $ac_res" >&5
6121 echo "${ECHO_T}$ac_res" >&6; }
6122 else
6123 # Is the header compilable?
6124 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6125 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6126 cat >conftest.$ac_ext <<_ACEOF
6127 /* confdefs.h. */
6128 _ACEOF
6129 cat confdefs.h >>conftest.$ac_ext
6130 cat >>conftest.$ac_ext <<_ACEOF
6131 /* end confdefs.h. */
6132 $ac_includes_default
6133 #include <$ac_header>
6134 _ACEOF
6135 rm -f conftest.$ac_objext
6136 if { (ac_try="$ac_compile"
6137 case "(($ac_try" in
6138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6139 *) ac_try_echo=$ac_try;;
6140 esac
6141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6142 (eval "$ac_compile") 2>conftest.er1
6143 ac_status=$?
6144 grep -v '^ *+' conftest.er1 >conftest.err
6145 rm -f conftest.er1
6146 cat conftest.err >&5
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); } && {
6149 test -z "$ac_c_werror_flag" ||
6150 test ! -s conftest.err
6151 } && test -s conftest.$ac_objext; then
6152 ac_header_compiler=yes
6153 else
6154 echo "$as_me: failed program was:" >&5
6155 sed 's/^/| /' conftest.$ac_ext >&5
6156
6157 ac_header_compiler=no
6158 fi
6159
6160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6161 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6162 echo "${ECHO_T}$ac_header_compiler" >&6; }
6163
6164 # Is the header present?
6165 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6166 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6167 cat >conftest.$ac_ext <<_ACEOF
6168 /* confdefs.h. */
6169 _ACEOF
6170 cat confdefs.h >>conftest.$ac_ext
6171 cat >>conftest.$ac_ext <<_ACEOF
6172 /* end confdefs.h. */
6173 #include <$ac_header>
6174 _ACEOF
6175 if { (ac_try="$ac_cpp conftest.$ac_ext"
6176 case "(($ac_try" in
6177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6178 *) ac_try_echo=$ac_try;;
6179 esac
6180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6181 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6182 ac_status=$?
6183 grep -v '^ *+' conftest.er1 >conftest.err
6184 rm -f conftest.er1
6185 cat conftest.err >&5
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); } >/dev/null && {
6188 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6189 test ! -s conftest.err
6190 }; then
6191 ac_header_preproc=yes
6192 else
6193 echo "$as_me: failed program was:" >&5
6194 sed 's/^/| /' conftest.$ac_ext >&5
6195
6196 ac_header_preproc=no
6197 fi
6198
6199 rm -f conftest.err conftest.$ac_ext
6200 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6201 echo "${ECHO_T}$ac_header_preproc" >&6; }
6202
6203 # So? What about this header?
6204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6205 yes:no: )
6206 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6207 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6209 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6210 ac_header_preproc=yes
6211 ;;
6212 no:yes:* )
6213 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6214 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6215 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6216 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6217 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6218 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6219 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6220 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6223 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6224 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6225
6226 ;;
6227 esac
6228 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6231 echo $ECHO_N "(cached) $ECHO_C" >&6
6232 else
6233 eval "$as_ac_Header=\$ac_header_preproc"
6234 fi
6235 ac_res=`eval echo '${'$as_ac_Header'}'`
6236 { echo "$as_me:$LINENO: result: $ac_res" >&5
6237 echo "${ECHO_T}$ac_res" >&6; }
6238
6239 fi
6240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6241 cat >>confdefs.h <<_ACEOF
6242 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6243 _ACEOF
6244
6245 fi
6246
6247 done
6248
6249 # Emulation library used on NetBSD.
6250 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6251 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6252 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
6254 else
6255 ac_check_lib_save_LIBS=$LIBS
6256 LIBS="-lossaudio $LIBS"
6257 cat >conftest.$ac_ext <<_ACEOF
6258 /* confdefs.h. */
6259 _ACEOF
6260 cat confdefs.h >>conftest.$ac_ext
6261 cat >>conftest.$ac_ext <<_ACEOF
6262 /* end confdefs.h. */
6263
6264 /* Override any GCC internal prototype to avoid an error.
6265 Use char because int might match the return type of a GCC
6266 builtin and then its argument prototype would still apply. */
6267 #ifdef __cplusplus
6268 extern "C"
6269 #endif
6270 char _oss_ioctl ();
6271 int
6272 main ()
6273 {
6274 return _oss_ioctl ();
6275 ;
6276 return 0;
6277 }
6278 _ACEOF
6279 rm -f conftest.$ac_objext conftest$ac_exeext
6280 if { (ac_try="$ac_link"
6281 case "(($ac_try" in
6282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6283 *) ac_try_echo=$ac_try;;
6284 esac
6285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6286 (eval "$ac_link") 2>conftest.er1
6287 ac_status=$?
6288 grep -v '^ *+' conftest.er1 >conftest.err
6289 rm -f conftest.er1
6290 cat conftest.err >&5
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); } && {
6293 test -z "$ac_c_werror_flag" ||
6294 test ! -s conftest.err
6295 } && test -s conftest$ac_exeext &&
6296 $as_test_x conftest$ac_exeext; then
6297 ac_cv_lib_ossaudio__oss_ioctl=yes
6298 else
6299 echo "$as_me: failed program was:" >&5
6300 sed 's/^/| /' conftest.$ac_ext >&5
6301
6302 ac_cv_lib_ossaudio__oss_ioctl=no
6303 fi
6304
6305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6306 conftest$ac_exeext conftest.$ac_ext
6307 LIBS=$ac_check_lib_save_LIBS
6308 fi
6309 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6310 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6311 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6312 LIBSOUND=-lossaudio
6313 else
6314 LIBSOUND=
6315 fi
6316
6317
6318
6319 ALSA_REQUIRED=1.0.0
6320 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6321 if test "X${with_pkg_config_prog}" != X; then
6322 PKG_CONFIG="${with_pkg_config_prog}"
6323 fi
6324
6325 succeeded=no
6326
6327 if test -z "$PKG_CONFIG"; then
6328 # Extract the first word of "pkg-config", so it can be a program name with args.
6329 set dummy pkg-config; ac_word=$2
6330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6332 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6334 else
6335 case $PKG_CONFIG in
6336 [\\/]* | ?:[\\/]*)
6337 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6338 ;;
6339 *)
6340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6341 for as_dir in $PATH
6342 do
6343 IFS=$as_save_IFS
6344 test -z "$as_dir" && as_dir=.
6345 for ac_exec_ext in '' $ac_executable_extensions; do
6346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6347 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6349 break 2
6350 fi
6351 done
6352 done
6353 IFS=$as_save_IFS
6354
6355 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6356 ;;
6357 esac
6358 fi
6359 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6360 if test -n "$PKG_CONFIG"; then
6361 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6362 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6363 else
6364 { echo "$as_me:$LINENO: result: no" >&5
6365 echo "${ECHO_T}no" >&6; }
6366 fi
6367
6368
6369 fi
6370
6371 if test "$PKG_CONFIG" = "no" ; then
6372 HAVE_ALSA=no
6373 else
6374 PKG_CONFIG_MIN_VERSION=0.9.0
6375 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6376 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6377 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6378
6379 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6380 { echo "$as_me:$LINENO: result: yes" >&5
6381 echo "${ECHO_T}yes" >&6; }
6382 succeeded=yes
6383
6384 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6385 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6386 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6387 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6388 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6389
6390 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6391 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6392 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6393 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6394 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6395 else
6396 { echo "$as_me:$LINENO: result: no" >&5
6397 echo "${ECHO_T}no" >&6; }
6398 ALSA_CFLAGS=""
6399 ALSA_LIBS=""
6400 ## If we have a custom action on failure, don't print errors, but
6401 ## do set a variable so people can do so.
6402 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6403
6404 fi
6405
6406
6407
6408 else
6409 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6410 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6411 fi
6412 fi
6413
6414 if test $succeeded = yes; then
6415 HAVE_ALSA=yes
6416 else
6417 HAVE_ALSA=no
6418 fi
6419
6420 if test $HAVE_ALSA = yes; then
6421 SAVE_CFLAGS="$CFLAGS"
6422 SAVE_LDFLAGS="$LDFLAGS"
6423 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6424 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6425 cat >conftest.$ac_ext <<_ACEOF
6426 /* confdefs.h. */
6427 _ACEOF
6428 cat confdefs.h >>conftest.$ac_ext
6429 cat >>conftest.$ac_ext <<_ACEOF
6430 /* end confdefs.h. */
6431 #include <asoundlib.h>
6432 int
6433 main ()
6434 {
6435 snd_lib_error_set_handler (0);
6436 ;
6437 return 0;
6438 }
6439 _ACEOF
6440 rm -f conftest.$ac_objext
6441 if { (ac_try="$ac_compile"
6442 case "(($ac_try" in
6443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6444 *) ac_try_echo=$ac_try;;
6445 esac
6446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6447 (eval "$ac_compile") 2>conftest.er1
6448 ac_status=$?
6449 grep -v '^ *+' conftest.er1 >conftest.err
6450 rm -f conftest.er1
6451 cat conftest.err >&5
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); } && {
6454 test -z "$ac_c_werror_flag" ||
6455 test ! -s conftest.err
6456 } && test -s conftest.$ac_objext; then
6457 emacs_alsa_normal=yes
6458 else
6459 echo "$as_me: failed program was:" >&5
6460 sed 's/^/| /' conftest.$ac_ext >&5
6461
6462 emacs_alsa_normal=no
6463 fi
6464
6465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6466 if test "$emacs_alsa_normal" != yes; then
6467 cat >conftest.$ac_ext <<_ACEOF
6468 /* confdefs.h. */
6469 _ACEOF
6470 cat confdefs.h >>conftest.$ac_ext
6471 cat >>conftest.$ac_ext <<_ACEOF
6472 /* end confdefs.h. */
6473 #include <alsa/asoundlib.h>
6474 int
6475 main ()
6476 {
6477 snd_lib_error_set_handler (0);
6478 ;
6479 return 0;
6480 }
6481 _ACEOF
6482 rm -f conftest.$ac_objext
6483 if { (ac_try="$ac_compile"
6484 case "(($ac_try" in
6485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6486 *) ac_try_echo=$ac_try;;
6487 esac
6488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6489 (eval "$ac_compile") 2>conftest.er1
6490 ac_status=$?
6491 grep -v '^ *+' conftest.er1 >conftest.err
6492 rm -f conftest.er1
6493 cat conftest.err >&5
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); } && {
6496 test -z "$ac_c_werror_flag" ||
6497 test ! -s conftest.err
6498 } && test -s conftest.$ac_objext; then
6499 emacs_alsa_subdir=yes
6500 else
6501 echo "$as_me: failed program was:" >&5
6502 sed 's/^/| /' conftest.$ac_ext >&5
6503
6504 emacs_alsa_subdir=no
6505 fi
6506
6507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6508 if test "$emacs_alsa_subdir" != yes; then
6509 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6510 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6511 { (exit 1); exit 1; }; }
6512 fi
6513 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6514 fi
6515
6516 CFLAGS="$SAVE_CFLAGS"
6517 LDFLAGS="$SAVE_LDFLAGS"
6518 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6519 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6520
6521 cat >>confdefs.h <<\_ACEOF
6522 #define HAVE_ALSA 1
6523 _ACEOF
6524
6525
6526 fi
6527
6528 fi
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6556 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6557 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6558 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6559 sys/utsname.h pwd.h
6560 do
6561 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6563 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6566 echo $ECHO_N "(cached) $ECHO_C" >&6
6567 fi
6568 ac_res=`eval echo '${'$as_ac_Header'}'`
6569 { echo "$as_me:$LINENO: result: $ac_res" >&5
6570 echo "${ECHO_T}$ac_res" >&6; }
6571 else
6572 # Is the header compilable?
6573 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6574 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6575 cat >conftest.$ac_ext <<_ACEOF
6576 /* confdefs.h. */
6577 _ACEOF
6578 cat confdefs.h >>conftest.$ac_ext
6579 cat >>conftest.$ac_ext <<_ACEOF
6580 /* end confdefs.h. */
6581 $ac_includes_default
6582 #include <$ac_header>
6583 _ACEOF
6584 rm -f conftest.$ac_objext
6585 if { (ac_try="$ac_compile"
6586 case "(($ac_try" in
6587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6588 *) ac_try_echo=$ac_try;;
6589 esac
6590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6591 (eval "$ac_compile") 2>conftest.er1
6592 ac_status=$?
6593 grep -v '^ *+' conftest.er1 >conftest.err
6594 rm -f conftest.er1
6595 cat conftest.err >&5
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); } && {
6598 test -z "$ac_c_werror_flag" ||
6599 test ! -s conftest.err
6600 } && test -s conftest.$ac_objext; then
6601 ac_header_compiler=yes
6602 else
6603 echo "$as_me: failed program was:" >&5
6604 sed 's/^/| /' conftest.$ac_ext >&5
6605
6606 ac_header_compiler=no
6607 fi
6608
6609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6610 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6611 echo "${ECHO_T}$ac_header_compiler" >&6; }
6612
6613 # Is the header present?
6614 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6615 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6616 cat >conftest.$ac_ext <<_ACEOF
6617 /* confdefs.h. */
6618 _ACEOF
6619 cat confdefs.h >>conftest.$ac_ext
6620 cat >>conftest.$ac_ext <<_ACEOF
6621 /* end confdefs.h. */
6622 #include <$ac_header>
6623 _ACEOF
6624 if { (ac_try="$ac_cpp conftest.$ac_ext"
6625 case "(($ac_try" in
6626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6627 *) ac_try_echo=$ac_try;;
6628 esac
6629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6631 ac_status=$?
6632 grep -v '^ *+' conftest.er1 >conftest.err
6633 rm -f conftest.er1
6634 cat conftest.err >&5
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); } >/dev/null && {
6637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6638 test ! -s conftest.err
6639 }; then
6640 ac_header_preproc=yes
6641 else
6642 echo "$as_me: failed program was:" >&5
6643 sed 's/^/| /' conftest.$ac_ext >&5
6644
6645 ac_header_preproc=no
6646 fi
6647
6648 rm -f conftest.err conftest.$ac_ext
6649 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6650 echo "${ECHO_T}$ac_header_preproc" >&6; }
6651
6652 # So? What about this header?
6653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6654 yes:no: )
6655 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6656 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6658 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6659 ac_header_preproc=yes
6660 ;;
6661 no:yes:* )
6662 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6663 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6664 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6665 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6666 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6667 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6668 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6669 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6671 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6672 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6673 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6674
6675 ;;
6676 esac
6677 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6680 echo $ECHO_N "(cached) $ECHO_C" >&6
6681 else
6682 eval "$as_ac_Header=\$ac_header_preproc"
6683 fi
6684 ac_res=`eval echo '${'$as_ac_Header'}'`
6685 { echo "$as_me:$LINENO: result: $ac_res" >&5
6686 echo "${ECHO_T}$ac_res" >&6; }
6687
6688 fi
6689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6690 cat >>confdefs.h <<_ACEOF
6691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6692 _ACEOF
6693
6694 fi
6695
6696 done
6697
6698
6699 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6700 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6701 cat >conftest.$ac_ext <<_ACEOF
6702 /* confdefs.h. */
6703 _ACEOF
6704 cat confdefs.h >>conftest.$ac_ext
6705 cat >>conftest.$ac_ext <<_ACEOF
6706 /* end confdefs.h. */
6707 #include <sys/personality.h>
6708 int
6709 main ()
6710 {
6711 personality (PER_LINUX32)
6712 ;
6713 return 0;
6714 }
6715 _ACEOF
6716 rm -f conftest.$ac_objext
6717 if { (ac_try="$ac_compile"
6718 case "(($ac_try" in
6719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6720 *) ac_try_echo=$ac_try;;
6721 esac
6722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6723 (eval "$ac_compile") 2>conftest.er1
6724 ac_status=$?
6725 grep -v '^ *+' conftest.er1 >conftest.err
6726 rm -f conftest.er1
6727 cat conftest.err >&5
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); } && {
6730 test -z "$ac_c_werror_flag" ||
6731 test ! -s conftest.err
6732 } && test -s conftest.$ac_objext; then
6733 emacs_cv_personality_linux32=yes
6734 else
6735 echo "$as_me: failed program was:" >&5
6736 sed 's/^/| /' conftest.$ac_ext >&5
6737
6738 emacs_cv_personality_linux32=no
6739 fi
6740
6741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6742 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6743 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6744
6745 if test $emacs_cv_personality_linux32 = yes; then
6746
6747 cat >>confdefs.h <<\_ACEOF
6748 #define HAVE_PERSONALITY_LINUX32 1
6749 _ACEOF
6750
6751 fi
6752
6753
6754 for ac_header in term.h
6755 do
6756 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6757 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6760 echo $ECHO_N "(cached) $ECHO_C" >&6
6761 else
6762 cat >conftest.$ac_ext <<_ACEOF
6763 /* confdefs.h. */
6764 _ACEOF
6765 cat confdefs.h >>conftest.$ac_ext
6766 cat >>conftest.$ac_ext <<_ACEOF
6767 /* end confdefs.h. */
6768 #include <$ac_header>
6769 _ACEOF
6770 if { (ac_try="$ac_cpp conftest.$ac_ext"
6771 case "(($ac_try" in
6772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6773 *) ac_try_echo=$ac_try;;
6774 esac
6775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6777 ac_status=$?
6778 grep -v '^ *+' conftest.er1 >conftest.err
6779 rm -f conftest.er1
6780 cat conftest.err >&5
6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782 (exit $ac_status); } >/dev/null && {
6783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6784 test ! -s conftest.err
6785 }; then
6786 eval "$as_ac_Header=yes"
6787 else
6788 echo "$as_me: failed program was:" >&5
6789 sed 's/^/| /' conftest.$ac_ext >&5
6790
6791 eval "$as_ac_Header=no"
6792 fi
6793
6794 rm -f conftest.err conftest.$ac_ext
6795 fi
6796 ac_res=`eval echo '${'$as_ac_Header'}'`
6797 { echo "$as_me:$LINENO: result: $ac_res" >&5
6798 echo "${ECHO_T}$ac_res" >&6; }
6799 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6800 cat >>confdefs.h <<_ACEOF
6801 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6802 _ACEOF
6803
6804 fi
6805
6806 done
6807
6808 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6809 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6810 if test "${ac_cv_header_stdc+set}" = set; then
6811 echo $ECHO_N "(cached) $ECHO_C" >&6
6812 else
6813 cat >conftest.$ac_ext <<_ACEOF
6814 /* confdefs.h. */
6815 _ACEOF
6816 cat confdefs.h >>conftest.$ac_ext
6817 cat >>conftest.$ac_ext <<_ACEOF
6818 /* end confdefs.h. */
6819 #include <stdlib.h>
6820 #include <stdarg.h>
6821 #include <string.h>
6822 #include <float.h>
6823
6824 int
6825 main ()
6826 {
6827
6828 ;
6829 return 0;
6830 }
6831 _ACEOF
6832 rm -f conftest.$ac_objext
6833 if { (ac_try="$ac_compile"
6834 case "(($ac_try" in
6835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6836 *) ac_try_echo=$ac_try;;
6837 esac
6838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6839 (eval "$ac_compile") 2>conftest.er1
6840 ac_status=$?
6841 grep -v '^ *+' conftest.er1 >conftest.err
6842 rm -f conftest.er1
6843 cat conftest.err >&5
6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); } && {
6846 test -z "$ac_c_werror_flag" ||
6847 test ! -s conftest.err
6848 } && test -s conftest.$ac_objext; then
6849 ac_cv_header_stdc=yes
6850 else
6851 echo "$as_me: failed program was:" >&5
6852 sed 's/^/| /' conftest.$ac_ext >&5
6853
6854 ac_cv_header_stdc=no
6855 fi
6856
6857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6858
6859 if test $ac_cv_header_stdc = yes; then
6860 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6861 cat >conftest.$ac_ext <<_ACEOF
6862 /* confdefs.h. */
6863 _ACEOF
6864 cat confdefs.h >>conftest.$ac_ext
6865 cat >>conftest.$ac_ext <<_ACEOF
6866 /* end confdefs.h. */
6867 #include <string.h>
6868
6869 _ACEOF
6870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6871 $EGREP "memchr" >/dev/null 2>&1; then
6872 :
6873 else
6874 ac_cv_header_stdc=no
6875 fi
6876 rm -f conftest*
6877
6878 fi
6879
6880 if test $ac_cv_header_stdc = yes; then
6881 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6882 cat >conftest.$ac_ext <<_ACEOF
6883 /* confdefs.h. */
6884 _ACEOF
6885 cat confdefs.h >>conftest.$ac_ext
6886 cat >>conftest.$ac_ext <<_ACEOF
6887 /* end confdefs.h. */
6888 #include <stdlib.h>
6889
6890 _ACEOF
6891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6892 $EGREP "free" >/dev/null 2>&1; then
6893 :
6894 else
6895 ac_cv_header_stdc=no
6896 fi
6897 rm -f conftest*
6898
6899 fi
6900
6901 if test $ac_cv_header_stdc = yes; then
6902 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6903 if test "$cross_compiling" = yes; then
6904 :
6905 else
6906 cat >conftest.$ac_ext <<_ACEOF
6907 /* confdefs.h. */
6908 _ACEOF
6909 cat confdefs.h >>conftest.$ac_ext
6910 cat >>conftest.$ac_ext <<_ACEOF
6911 /* end confdefs.h. */
6912 #include <ctype.h>
6913 #include <stdlib.h>
6914 #if ((' ' & 0x0FF) == 0x020)
6915 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6916 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6917 #else
6918 # define ISLOWER(c) \
6919 (('a' <= (c) && (c) <= 'i') \
6920 || ('j' <= (c) && (c) <= 'r') \
6921 || ('s' <= (c) && (c) <= 'z'))
6922 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6923 #endif
6924
6925 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6926 int
6927 main ()
6928 {
6929 int i;
6930 for (i = 0; i < 256; i++)
6931 if (XOR (islower (i), ISLOWER (i))
6932 || toupper (i) != TOUPPER (i))
6933 return 2;
6934 return 0;
6935 }
6936 _ACEOF
6937 rm -f conftest$ac_exeext
6938 if { (ac_try="$ac_link"
6939 case "(($ac_try" in
6940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6941 *) ac_try_echo=$ac_try;;
6942 esac
6943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6944 (eval "$ac_link") 2>&5
6945 ac_status=$?
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6948 { (case "(($ac_try" in
6949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6950 *) ac_try_echo=$ac_try;;
6951 esac
6952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6953 (eval "$ac_try") 2>&5
6954 ac_status=$?
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); }; }; then
6957 :
6958 else
6959 echo "$as_me: program exited with status $ac_status" >&5
6960 echo "$as_me: failed program was:" >&5
6961 sed 's/^/| /' conftest.$ac_ext >&5
6962
6963 ( exit $ac_status )
6964 ac_cv_header_stdc=no
6965 fi
6966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6967 fi
6968
6969
6970 fi
6971 fi
6972 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6973 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6974 if test $ac_cv_header_stdc = yes; then
6975
6976 cat >>confdefs.h <<\_ACEOF
6977 #define STDC_HEADERS 1
6978 _ACEOF
6979
6980 fi
6981
6982 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6983 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6984 if test "${ac_cv_header_time+set}" = set; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
6986 else
6987 cat >conftest.$ac_ext <<_ACEOF
6988 /* confdefs.h. */
6989 _ACEOF
6990 cat confdefs.h >>conftest.$ac_ext
6991 cat >>conftest.$ac_ext <<_ACEOF
6992 /* end confdefs.h. */
6993 #include <sys/types.h>
6994 #include <sys/time.h>
6995 #include <time.h>
6996
6997 int
6998 main ()
6999 {
7000 if ((struct tm *) 0)
7001 return 0;
7002 ;
7003 return 0;
7004 }
7005 _ACEOF
7006 rm -f conftest.$ac_objext
7007 if { (ac_try="$ac_compile"
7008 case "(($ac_try" in
7009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7010 *) ac_try_echo=$ac_try;;
7011 esac
7012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7013 (eval "$ac_compile") 2>conftest.er1
7014 ac_status=$?
7015 grep -v '^ *+' conftest.er1 >conftest.err
7016 rm -f conftest.er1
7017 cat conftest.err >&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); } && {
7020 test -z "$ac_c_werror_flag" ||
7021 test ! -s conftest.err
7022 } && test -s conftest.$ac_objext; then
7023 ac_cv_header_time=yes
7024 else
7025 echo "$as_me: failed program was:" >&5
7026 sed 's/^/| /' conftest.$ac_ext >&5
7027
7028 ac_cv_header_time=no
7029 fi
7030
7031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7032 fi
7033 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7034 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7035 if test $ac_cv_header_time = yes; then
7036
7037 cat >>confdefs.h <<\_ACEOF
7038 #define TIME_WITH_SYS_TIME 1
7039 _ACEOF
7040
7041 fi
7042
7043 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7044 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7045 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7046 echo $ECHO_N "(cached) $ECHO_C" >&6
7047 else
7048 cat >conftest.$ac_ext <<_ACEOF
7049 /* confdefs.h. */
7050 _ACEOF
7051 cat confdefs.h >>conftest.$ac_ext
7052 cat >>conftest.$ac_ext <<_ACEOF
7053 /* end confdefs.h. */
7054 $ac_includes_default
7055 int
7056 main ()
7057 {
7058 #ifndef sys_siglist
7059 (void) sys_siglist;
7060 #endif
7061
7062 ;
7063 return 0;
7064 }
7065 _ACEOF
7066 rm -f conftest.$ac_objext
7067 if { (ac_try="$ac_compile"
7068 case "(($ac_try" in
7069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7070 *) ac_try_echo=$ac_try;;
7071 esac
7072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7073 (eval "$ac_compile") 2>conftest.er1
7074 ac_status=$?
7075 grep -v '^ *+' conftest.er1 >conftest.err
7076 rm -f conftest.er1
7077 cat conftest.err >&5
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); } && {
7080 test -z "$ac_c_werror_flag" ||
7081 test ! -s conftest.err
7082 } && test -s conftest.$ac_objext; then
7083 ac_cv_have_decl_sys_siglist=yes
7084 else
7085 echo "$as_me: failed program was:" >&5
7086 sed 's/^/| /' conftest.$ac_ext >&5
7087
7088 ac_cv_have_decl_sys_siglist=no
7089 fi
7090
7091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7092 fi
7093 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7094 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7095 if test $ac_cv_have_decl_sys_siglist = yes; then
7096
7097 cat >>confdefs.h <<_ACEOF
7098 #define HAVE_DECL_SYS_SIGLIST 1
7099 _ACEOF
7100
7101
7102 else
7103 cat >>confdefs.h <<_ACEOF
7104 #define HAVE_DECL_SYS_SIGLIST 0
7105 _ACEOF
7106
7107
7108 fi
7109
7110
7111 if test $ac_cv_have_decl_sys_siglist != yes; then
7112 # For Tru64, at least:
7113 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7114 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7115 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7116 echo $ECHO_N "(cached) $ECHO_C" >&6
7117 else
7118 cat >conftest.$ac_ext <<_ACEOF
7119 /* confdefs.h. */
7120 _ACEOF
7121 cat confdefs.h >>conftest.$ac_ext
7122 cat >>conftest.$ac_ext <<_ACEOF
7123 /* end confdefs.h. */
7124 $ac_includes_default
7125 int
7126 main ()
7127 {
7128 #ifndef __sys_siglist
7129 (void) __sys_siglist;
7130 #endif
7131
7132 ;
7133 return 0;
7134 }
7135 _ACEOF
7136 rm -f conftest.$ac_objext
7137 if { (ac_try="$ac_compile"
7138 case "(($ac_try" in
7139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7140 *) ac_try_echo=$ac_try;;
7141 esac
7142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7143 (eval "$ac_compile") 2>conftest.er1
7144 ac_status=$?
7145 grep -v '^ *+' conftest.er1 >conftest.err
7146 rm -f conftest.er1
7147 cat conftest.err >&5
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); } && {
7150 test -z "$ac_c_werror_flag" ||
7151 test ! -s conftest.err
7152 } && test -s conftest.$ac_objext; then
7153 ac_cv_have_decl___sys_siglist=yes
7154 else
7155 echo "$as_me: failed program was:" >&5
7156 sed 's/^/| /' conftest.$ac_ext >&5
7157
7158 ac_cv_have_decl___sys_siglist=no
7159 fi
7160
7161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7162 fi
7163 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7164 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7165 if test $ac_cv_have_decl___sys_siglist = yes; then
7166
7167 cat >>confdefs.h <<_ACEOF
7168 #define HAVE_DECL___SYS_SIGLIST 1
7169 _ACEOF
7170
7171
7172 else
7173 cat >>confdefs.h <<_ACEOF
7174 #define HAVE_DECL___SYS_SIGLIST 0
7175 _ACEOF
7176
7177
7178 fi
7179
7180
7181 if test $ac_cv_have_decl___sys_siglist = yes; then
7182
7183 cat >>confdefs.h <<\_ACEOF
7184 #define sys_siglist __sys_siglist
7185 _ACEOF
7186
7187 fi
7188 fi
7189 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7190 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7191 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7192 echo $ECHO_N "(cached) $ECHO_C" >&6
7193 else
7194 cat >conftest.$ac_ext <<_ACEOF
7195 /* confdefs.h. */
7196 _ACEOF
7197 cat confdefs.h >>conftest.$ac_ext
7198 cat >>conftest.$ac_ext <<_ACEOF
7199 /* end confdefs.h. */
7200 #include <sys/types.h>
7201 #include <sys/wait.h>
7202 #ifndef WEXITSTATUS
7203 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7204 #endif
7205 #ifndef WIFEXITED
7206 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7207 #endif
7208
7209 int
7210 main ()
7211 {
7212 int s;
7213 wait (&s);
7214 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7215 ;
7216 return 0;
7217 }
7218 _ACEOF
7219 rm -f conftest.$ac_objext
7220 if { (ac_try="$ac_compile"
7221 case "(($ac_try" in
7222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7223 *) ac_try_echo=$ac_try;;
7224 esac
7225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7226 (eval "$ac_compile") 2>conftest.er1
7227 ac_status=$?
7228 grep -v '^ *+' conftest.er1 >conftest.err
7229 rm -f conftest.er1
7230 cat conftest.err >&5
7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); } && {
7233 test -z "$ac_c_werror_flag" ||
7234 test ! -s conftest.err
7235 } && test -s conftest.$ac_objext; then
7236 ac_cv_header_sys_wait_h=yes
7237 else
7238 echo "$as_me: failed program was:" >&5
7239 sed 's/^/| /' conftest.$ac_ext >&5
7240
7241 ac_cv_header_sys_wait_h=no
7242 fi
7243
7244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7245 fi
7246 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7247 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7248 if test $ac_cv_header_sys_wait_h = yes; then
7249
7250 cat >>confdefs.h <<\_ACEOF
7251 #define HAVE_SYS_WAIT_H 1
7252 _ACEOF
7253
7254 fi
7255
7256
7257 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7258 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7259 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7260 echo $ECHO_N "(cached) $ECHO_C" >&6
7261 else
7262 cat >conftest.$ac_ext <<_ACEOF
7263 /* confdefs.h. */
7264 _ACEOF
7265 cat confdefs.h >>conftest.$ac_ext
7266 cat >>conftest.$ac_ext <<_ACEOF
7267 /* end confdefs.h. */
7268 #ifdef TIME_WITH_SYS_TIME
7269 #include <sys/time.h>
7270 #include <time.h>
7271 #else
7272 #ifdef HAVE_SYS_TIME_H
7273 #include <sys/time.h>
7274 #else
7275 #include <time.h>
7276 #endif
7277 #endif
7278 #ifdef HAVE_UTIME_H
7279 #include <utime.h>
7280 #endif
7281 int
7282 main ()
7283 {
7284 static struct utimbuf x; x.actime = x.modtime;
7285 ;
7286 return 0;
7287 }
7288 _ACEOF
7289 rm -f conftest.$ac_objext
7290 if { (ac_try="$ac_compile"
7291 case "(($ac_try" in
7292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7293 *) ac_try_echo=$ac_try;;
7294 esac
7295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7296 (eval "$ac_compile") 2>conftest.er1
7297 ac_status=$?
7298 grep -v '^ *+' conftest.er1 >conftest.err
7299 rm -f conftest.er1
7300 cat conftest.err >&5
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); } && {
7303 test -z "$ac_c_werror_flag" ||
7304 test ! -s conftest.err
7305 } && test -s conftest.$ac_objext; then
7306 emacs_cv_struct_utimbuf=yes
7307 else
7308 echo "$as_me: failed program was:" >&5
7309 sed 's/^/| /' conftest.$ac_ext >&5
7310
7311 emacs_cv_struct_utimbuf=no
7312 fi
7313
7314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7315 fi
7316 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7317 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7318 if test $emacs_cv_struct_utimbuf = yes; then
7319
7320 cat >>confdefs.h <<\_ACEOF
7321 #define HAVE_STRUCT_UTIMBUF 1
7322 _ACEOF
7323
7324 fi
7325
7326 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7327 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7328 if test "${ac_cv_type_signal+set}" = set; then
7329 echo $ECHO_N "(cached) $ECHO_C" >&6
7330 else
7331 cat >conftest.$ac_ext <<_ACEOF
7332 /* confdefs.h. */
7333 _ACEOF
7334 cat confdefs.h >>conftest.$ac_ext
7335 cat >>conftest.$ac_ext <<_ACEOF
7336 /* end confdefs.h. */
7337 #include <sys/types.h>
7338 #include <signal.h>
7339
7340 int
7341 main ()
7342 {
7343 return *(signal (0, 0)) (0) == 1;
7344 ;
7345 return 0;
7346 }
7347 _ACEOF
7348 rm -f conftest.$ac_objext
7349 if { (ac_try="$ac_compile"
7350 case "(($ac_try" in
7351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7352 *) ac_try_echo=$ac_try;;
7353 esac
7354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7355 (eval "$ac_compile") 2>conftest.er1
7356 ac_status=$?
7357 grep -v '^ *+' conftest.er1 >conftest.err
7358 rm -f conftest.er1
7359 cat conftest.err >&5
7360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361 (exit $ac_status); } && {
7362 test -z "$ac_c_werror_flag" ||
7363 test ! -s conftest.err
7364 } && test -s conftest.$ac_objext; then
7365 ac_cv_type_signal=int
7366 else
7367 echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7369
7370 ac_cv_type_signal=void
7371 fi
7372
7373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7374 fi
7375 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7376 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7377
7378 cat >>confdefs.h <<_ACEOF
7379 #define RETSIGTYPE $ac_cv_type_signal
7380 _ACEOF
7381
7382
7383
7384 { echo "$as_me:$LINENO: checking for speed_t" >&5
7385 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7386 if test "${emacs_cv_speed_t+set}" = set; then
7387 echo $ECHO_N "(cached) $ECHO_C" >&6
7388 else
7389 cat >conftest.$ac_ext <<_ACEOF
7390 /* confdefs.h. */
7391 _ACEOF
7392 cat confdefs.h >>conftest.$ac_ext
7393 cat >>conftest.$ac_ext <<_ACEOF
7394 /* end confdefs.h. */
7395 #include <termios.h>
7396 int
7397 main ()
7398 {
7399 speed_t x = 1;
7400 ;
7401 return 0;
7402 }
7403 _ACEOF
7404 rm -f conftest.$ac_objext
7405 if { (ac_try="$ac_compile"
7406 case "(($ac_try" in
7407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7408 *) ac_try_echo=$ac_try;;
7409 esac
7410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7411 (eval "$ac_compile") 2>conftest.er1
7412 ac_status=$?
7413 grep -v '^ *+' conftest.er1 >conftest.err
7414 rm -f conftest.er1
7415 cat conftest.err >&5
7416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417 (exit $ac_status); } && {
7418 test -z "$ac_c_werror_flag" ||
7419 test ! -s conftest.err
7420 } && test -s conftest.$ac_objext; then
7421 emacs_cv_speed_t=yes
7422 else
7423 echo "$as_me: failed program was:" >&5
7424 sed 's/^/| /' conftest.$ac_ext >&5
7425
7426 emacs_cv_speed_t=no
7427 fi
7428
7429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7430 fi
7431 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7432 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7433 if test $emacs_cv_speed_t = yes; then
7434
7435 cat >>confdefs.h <<\_ACEOF
7436 #define HAVE_SPEED_T 1
7437 _ACEOF
7438
7439 fi
7440
7441 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7442 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7443 if test "${emacs_cv_struct_timeval+set}" = set; then
7444 echo $ECHO_N "(cached) $ECHO_C" >&6
7445 else
7446 cat >conftest.$ac_ext <<_ACEOF
7447 /* confdefs.h. */
7448 _ACEOF
7449 cat confdefs.h >>conftest.$ac_ext
7450 cat >>conftest.$ac_ext <<_ACEOF
7451 /* end confdefs.h. */
7452 #ifdef TIME_WITH_SYS_TIME
7453 #include <sys/time.h>
7454 #include <time.h>
7455 #else
7456 #ifdef HAVE_SYS_TIME_H
7457 #include <sys/time.h>
7458 #else
7459 #include <time.h>
7460 #endif
7461 #endif
7462 int
7463 main ()
7464 {
7465 static struct timeval x; x.tv_sec = x.tv_usec;
7466 ;
7467 return 0;
7468 }
7469 _ACEOF
7470 rm -f conftest.$ac_objext
7471 if { (ac_try="$ac_compile"
7472 case "(($ac_try" in
7473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7474 *) ac_try_echo=$ac_try;;
7475 esac
7476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7477 (eval "$ac_compile") 2>conftest.er1
7478 ac_status=$?
7479 grep -v '^ *+' conftest.er1 >conftest.err
7480 rm -f conftest.er1
7481 cat conftest.err >&5
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); } && {
7484 test -z "$ac_c_werror_flag" ||
7485 test ! -s conftest.err
7486 } && test -s conftest.$ac_objext; then
7487 emacs_cv_struct_timeval=yes
7488 else
7489 echo "$as_me: failed program was:" >&5
7490 sed 's/^/| /' conftest.$ac_ext >&5
7491
7492 emacs_cv_struct_timeval=no
7493 fi
7494
7495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7496 fi
7497 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7498 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7499 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7500 if test $emacs_cv_struct_timeval = yes; then
7501
7502 cat >>confdefs.h <<\_ACEOF
7503 #define HAVE_TIMEVAL 1
7504 _ACEOF
7505
7506 fi
7507
7508 { echo "$as_me:$LINENO: checking for struct exception" >&5
7509 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7510 if test "${emacs_cv_struct_exception+set}" = set; then
7511 echo $ECHO_N "(cached) $ECHO_C" >&6
7512 else
7513 cat >conftest.$ac_ext <<_ACEOF
7514 /* confdefs.h. */
7515 _ACEOF
7516 cat confdefs.h >>conftest.$ac_ext
7517 cat >>conftest.$ac_ext <<_ACEOF
7518 /* end confdefs.h. */
7519 #include <math.h>
7520 int
7521 main ()
7522 {
7523 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7524 ;
7525 return 0;
7526 }
7527 _ACEOF
7528 rm -f conftest.$ac_objext
7529 if { (ac_try="$ac_compile"
7530 case "(($ac_try" in
7531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7532 *) ac_try_echo=$ac_try;;
7533 esac
7534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7535 (eval "$ac_compile") 2>conftest.er1
7536 ac_status=$?
7537 grep -v '^ *+' conftest.er1 >conftest.err
7538 rm -f conftest.er1
7539 cat conftest.err >&5
7540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541 (exit $ac_status); } && {
7542 test -z "$ac_c_werror_flag" ||
7543 test ! -s conftest.err
7544 } && test -s conftest.$ac_objext; then
7545 emacs_cv_struct_exception=yes
7546 else
7547 echo "$as_me: failed program was:" >&5
7548 sed 's/^/| /' conftest.$ac_ext >&5
7549
7550 emacs_cv_struct_exception=no
7551 fi
7552
7553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7554 fi
7555 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7556 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7557 HAVE_EXCEPTION=$emacs_cv_struct_exception
7558 if test $emacs_cv_struct_exception != yes; then
7559
7560 cat >>confdefs.h <<\_ACEOF
7561 #define NO_MATHERR 1
7562 _ACEOF
7563
7564 fi
7565
7566
7567 for ac_header in sys/socket.h
7568 do
7569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7571 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7574 echo $ECHO_N "(cached) $ECHO_C" >&6
7575 fi
7576 ac_res=`eval echo '${'$as_ac_Header'}'`
7577 { echo "$as_me:$LINENO: result: $ac_res" >&5
7578 echo "${ECHO_T}$ac_res" >&6; }
7579 else
7580 # Is the header compilable?
7581 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7582 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7583 cat >conftest.$ac_ext <<_ACEOF
7584 /* confdefs.h. */
7585 _ACEOF
7586 cat confdefs.h >>conftest.$ac_ext
7587 cat >>conftest.$ac_ext <<_ACEOF
7588 /* end confdefs.h. */
7589 $ac_includes_default
7590 #include <$ac_header>
7591 _ACEOF
7592 rm -f conftest.$ac_objext
7593 if { (ac_try="$ac_compile"
7594 case "(($ac_try" in
7595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7596 *) ac_try_echo=$ac_try;;
7597 esac
7598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7599 (eval "$ac_compile") 2>conftest.er1
7600 ac_status=$?
7601 grep -v '^ *+' conftest.er1 >conftest.err
7602 rm -f conftest.er1
7603 cat conftest.err >&5
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); } && {
7606 test -z "$ac_c_werror_flag" ||
7607 test ! -s conftest.err
7608 } && test -s conftest.$ac_objext; then
7609 ac_header_compiler=yes
7610 else
7611 echo "$as_me: failed program was:" >&5
7612 sed 's/^/| /' conftest.$ac_ext >&5
7613
7614 ac_header_compiler=no
7615 fi
7616
7617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7618 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7619 echo "${ECHO_T}$ac_header_compiler" >&6; }
7620
7621 # Is the header present?
7622 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7623 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7624 cat >conftest.$ac_ext <<_ACEOF
7625 /* confdefs.h. */
7626 _ACEOF
7627 cat confdefs.h >>conftest.$ac_ext
7628 cat >>conftest.$ac_ext <<_ACEOF
7629 /* end confdefs.h. */
7630 #include <$ac_header>
7631 _ACEOF
7632 if { (ac_try="$ac_cpp conftest.$ac_ext"
7633 case "(($ac_try" in
7634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7635 *) ac_try_echo=$ac_try;;
7636 esac
7637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7639 ac_status=$?
7640 grep -v '^ *+' conftest.er1 >conftest.err
7641 rm -f conftest.er1
7642 cat conftest.err >&5
7643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); } >/dev/null && {
7645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7646 test ! -s conftest.err
7647 }; then
7648 ac_header_preproc=yes
7649 else
7650 echo "$as_me: failed program was:" >&5
7651 sed 's/^/| /' conftest.$ac_ext >&5
7652
7653 ac_header_preproc=no
7654 fi
7655
7656 rm -f conftest.err conftest.$ac_ext
7657 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7658 echo "${ECHO_T}$ac_header_preproc" >&6; }
7659
7660 # So? What about this header?
7661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7662 yes:no: )
7663 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7666 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7667 ac_header_preproc=yes
7668 ;;
7669 no:yes:* )
7670 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7672 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7673 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7674 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7675 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7676 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7677 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7680 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7681 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7682
7683 ;;
7684 esac
7685 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7688 echo $ECHO_N "(cached) $ECHO_C" >&6
7689 else
7690 eval "$as_ac_Header=\$ac_header_preproc"
7691 fi
7692 ac_res=`eval echo '${'$as_ac_Header'}'`
7693 { echo "$as_me:$LINENO: result: $ac_res" >&5
7694 echo "${ECHO_T}$ac_res" >&6; }
7695
7696 fi
7697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7698 cat >>confdefs.h <<_ACEOF
7699 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7700 _ACEOF
7701
7702 fi
7703
7704 done
7705
7706
7707 for ac_header in net/if.h
7708 do
7709 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7710 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7713 echo $ECHO_N "(cached) $ECHO_C" >&6
7714 else
7715 cat >conftest.$ac_ext <<_ACEOF
7716 /* confdefs.h. */
7717 _ACEOF
7718 cat confdefs.h >>conftest.$ac_ext
7719 cat >>conftest.$ac_ext <<_ACEOF
7720 /* end confdefs.h. */
7721 $ac_includes_default
7722 #if HAVE_SYS_SOCKET_H
7723 #include <sys/socket.h>
7724 #endif
7725
7726 #include <$ac_header>
7727 _ACEOF
7728 rm -f conftest.$ac_objext
7729 if { (ac_try="$ac_compile"
7730 case "(($ac_try" in
7731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7732 *) ac_try_echo=$ac_try;;
7733 esac
7734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7735 (eval "$ac_compile") 2>conftest.er1
7736 ac_status=$?
7737 grep -v '^ *+' conftest.er1 >conftest.err
7738 rm -f conftest.er1
7739 cat conftest.err >&5
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); } && {
7742 test -z "$ac_c_werror_flag" ||
7743 test ! -s conftest.err
7744 } && test -s conftest.$ac_objext; then
7745 eval "$as_ac_Header=yes"
7746 else
7747 echo "$as_me: failed program was:" >&5
7748 sed 's/^/| /' conftest.$ac_ext >&5
7749
7750 eval "$as_ac_Header=no"
7751 fi
7752
7753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7754 fi
7755 ac_res=`eval echo '${'$as_ac_Header'}'`
7756 { echo "$as_me:$LINENO: result: $ac_res" >&5
7757 echo "${ECHO_T}$ac_res" >&6; }
7758 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7759 cat >>confdefs.h <<_ACEOF
7760 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7761 _ACEOF
7762
7763 fi
7764
7765 done
7766
7767
7768 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7769 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7770 if test "${ac_cv_struct_tm+set}" = set; then
7771 echo $ECHO_N "(cached) $ECHO_C" >&6
7772 else
7773 cat >conftest.$ac_ext <<_ACEOF
7774 /* confdefs.h. */
7775 _ACEOF
7776 cat confdefs.h >>conftest.$ac_ext
7777 cat >>conftest.$ac_ext <<_ACEOF
7778 /* end confdefs.h. */
7779 #include <sys/types.h>
7780 #include <time.h>
7781
7782 int
7783 main ()
7784 {
7785 struct tm tm;
7786 int *p = &tm.tm_sec;
7787 return !p;
7788 ;
7789 return 0;
7790 }
7791 _ACEOF
7792 rm -f conftest.$ac_objext
7793 if { (ac_try="$ac_compile"
7794 case "(($ac_try" in
7795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7796 *) ac_try_echo=$ac_try;;
7797 esac
7798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7799 (eval "$ac_compile") 2>conftest.er1
7800 ac_status=$?
7801 grep -v '^ *+' conftest.er1 >conftest.err
7802 rm -f conftest.er1
7803 cat conftest.err >&5
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); } && {
7806 test -z "$ac_c_werror_flag" ||
7807 test ! -s conftest.err
7808 } && test -s conftest.$ac_objext; then
7809 ac_cv_struct_tm=time.h
7810 else
7811 echo "$as_me: failed program was:" >&5
7812 sed 's/^/| /' conftest.$ac_ext >&5
7813
7814 ac_cv_struct_tm=sys/time.h
7815 fi
7816
7817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7818 fi
7819 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7820 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7821 if test $ac_cv_struct_tm = sys/time.h; then
7822
7823 cat >>confdefs.h <<\_ACEOF
7824 #define TM_IN_SYS_TIME 1
7825 _ACEOF
7826
7827 fi
7828
7829 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7830 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7831 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7832 echo $ECHO_N "(cached) $ECHO_C" >&6
7833 else
7834 cat >conftest.$ac_ext <<_ACEOF
7835 /* confdefs.h. */
7836 _ACEOF
7837 cat confdefs.h >>conftest.$ac_ext
7838 cat >>conftest.$ac_ext <<_ACEOF
7839 /* end confdefs.h. */
7840 #include <sys/types.h>
7841 #include <$ac_cv_struct_tm>
7842
7843
7844 int
7845 main ()
7846 {
7847 static struct tm ac_aggr;
7848 if (ac_aggr.tm_zone)
7849 return 0;
7850 ;
7851 return 0;
7852 }
7853 _ACEOF
7854 rm -f conftest.$ac_objext
7855 if { (ac_try="$ac_compile"
7856 case "(($ac_try" in
7857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7858 *) ac_try_echo=$ac_try;;
7859 esac
7860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7861 (eval "$ac_compile") 2>conftest.er1
7862 ac_status=$?
7863 grep -v '^ *+' conftest.er1 >conftest.err
7864 rm -f conftest.er1
7865 cat conftest.err >&5
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); } && {
7868 test -z "$ac_c_werror_flag" ||
7869 test ! -s conftest.err
7870 } && test -s conftest.$ac_objext; then
7871 ac_cv_member_struct_tm_tm_zone=yes
7872 else
7873 echo "$as_me: failed program was:" >&5
7874 sed 's/^/| /' conftest.$ac_ext >&5
7875
7876 cat >conftest.$ac_ext <<_ACEOF
7877 /* confdefs.h. */
7878 _ACEOF
7879 cat confdefs.h >>conftest.$ac_ext
7880 cat >>conftest.$ac_ext <<_ACEOF
7881 /* end confdefs.h. */
7882 #include <sys/types.h>
7883 #include <$ac_cv_struct_tm>
7884
7885
7886 int
7887 main ()
7888 {
7889 static struct tm ac_aggr;
7890 if (sizeof ac_aggr.tm_zone)
7891 return 0;
7892 ;
7893 return 0;
7894 }
7895 _ACEOF
7896 rm -f conftest.$ac_objext
7897 if { (ac_try="$ac_compile"
7898 case "(($ac_try" in
7899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7900 *) ac_try_echo=$ac_try;;
7901 esac
7902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7903 (eval "$ac_compile") 2>conftest.er1
7904 ac_status=$?
7905 grep -v '^ *+' conftest.er1 >conftest.err
7906 rm -f conftest.er1
7907 cat conftest.err >&5
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); } && {
7910 test -z "$ac_c_werror_flag" ||
7911 test ! -s conftest.err
7912 } && test -s conftest.$ac_objext; then
7913 ac_cv_member_struct_tm_tm_zone=yes
7914 else
7915 echo "$as_me: failed program was:" >&5
7916 sed 's/^/| /' conftest.$ac_ext >&5
7917
7918 ac_cv_member_struct_tm_tm_zone=no
7919 fi
7920
7921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7922 fi
7923
7924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7925 fi
7926 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7927 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7928 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7929
7930 cat >>confdefs.h <<_ACEOF
7931 #define HAVE_STRUCT_TM_TM_ZONE 1
7932 _ACEOF
7933
7934
7935 fi
7936
7937 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7938
7939 cat >>confdefs.h <<\_ACEOF
7940 #define HAVE_TM_ZONE 1
7941 _ACEOF
7942
7943 else
7944 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7945 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7946 if test "${ac_cv_have_decl_tzname+set}" = set; then
7947 echo $ECHO_N "(cached) $ECHO_C" >&6
7948 else
7949 cat >conftest.$ac_ext <<_ACEOF
7950 /* confdefs.h. */
7951 _ACEOF
7952 cat confdefs.h >>conftest.$ac_ext
7953 cat >>conftest.$ac_ext <<_ACEOF
7954 /* end confdefs.h. */
7955 #include <time.h>
7956
7957 int
7958 main ()
7959 {
7960 #ifndef tzname
7961 (void) tzname;
7962 #endif
7963
7964 ;
7965 return 0;
7966 }
7967 _ACEOF
7968 rm -f conftest.$ac_objext
7969 if { (ac_try="$ac_compile"
7970 case "(($ac_try" in
7971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7972 *) ac_try_echo=$ac_try;;
7973 esac
7974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7975 (eval "$ac_compile") 2>conftest.er1
7976 ac_status=$?
7977 grep -v '^ *+' conftest.er1 >conftest.err
7978 rm -f conftest.er1
7979 cat conftest.err >&5
7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); } && {
7982 test -z "$ac_c_werror_flag" ||
7983 test ! -s conftest.err
7984 } && test -s conftest.$ac_objext; then
7985 ac_cv_have_decl_tzname=yes
7986 else
7987 echo "$as_me: failed program was:" >&5
7988 sed 's/^/| /' conftest.$ac_ext >&5
7989
7990 ac_cv_have_decl_tzname=no
7991 fi
7992
7993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7994 fi
7995 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7996 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7997 if test $ac_cv_have_decl_tzname = yes; then
7998
7999 cat >>confdefs.h <<_ACEOF
8000 #define HAVE_DECL_TZNAME 1
8001 _ACEOF
8002
8003
8004 else
8005 cat >>confdefs.h <<_ACEOF
8006 #define HAVE_DECL_TZNAME 0
8007 _ACEOF
8008
8009
8010 fi
8011
8012
8013 { echo "$as_me:$LINENO: checking for tzname" >&5
8014 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8015 if test "${ac_cv_var_tzname+set}" = set; then
8016 echo $ECHO_N "(cached) $ECHO_C" >&6
8017 else
8018 cat >conftest.$ac_ext <<_ACEOF
8019 /* confdefs.h. */
8020 _ACEOF
8021 cat confdefs.h >>conftest.$ac_ext
8022 cat >>conftest.$ac_ext <<_ACEOF
8023 /* end confdefs.h. */
8024 #include <time.h>
8025 #if !HAVE_DECL_TZNAME
8026 extern char *tzname[];
8027 #endif
8028
8029 int
8030 main ()
8031 {
8032 return tzname[0][0];
8033 ;
8034 return 0;
8035 }
8036 _ACEOF
8037 rm -f conftest.$ac_objext conftest$ac_exeext
8038 if { (ac_try="$ac_link"
8039 case "(($ac_try" in
8040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8041 *) ac_try_echo=$ac_try;;
8042 esac
8043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8044 (eval "$ac_link") 2>conftest.er1
8045 ac_status=$?
8046 grep -v '^ *+' conftest.er1 >conftest.err
8047 rm -f conftest.er1
8048 cat conftest.err >&5
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); } && {
8051 test -z "$ac_c_werror_flag" ||
8052 test ! -s conftest.err
8053 } && test -s conftest$ac_exeext &&
8054 $as_test_x conftest$ac_exeext; then
8055 ac_cv_var_tzname=yes
8056 else
8057 echo "$as_me: failed program was:" >&5
8058 sed 's/^/| /' conftest.$ac_ext >&5
8059
8060 ac_cv_var_tzname=no
8061 fi
8062
8063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8064 conftest$ac_exeext conftest.$ac_ext
8065 fi
8066 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8067 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8068 if test $ac_cv_var_tzname = yes; then
8069
8070 cat >>confdefs.h <<\_ACEOF
8071 #define HAVE_TZNAME 1
8072 _ACEOF
8073
8074 fi
8075 fi
8076
8077 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8078 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8079 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8080 echo $ECHO_N "(cached) $ECHO_C" >&6
8081 else
8082 cat >conftest.$ac_ext <<_ACEOF
8083 /* confdefs.h. */
8084 _ACEOF
8085 cat confdefs.h >>conftest.$ac_ext
8086 cat >>conftest.$ac_ext <<_ACEOF
8087 /* end confdefs.h. */
8088 #include <time.h>
8089
8090 int
8091 main ()
8092 {
8093 static struct tm ac_aggr;
8094 if (ac_aggr.tm_gmtoff)
8095 return 0;
8096 ;
8097 return 0;
8098 }
8099 _ACEOF
8100 rm -f conftest.$ac_objext
8101 if { (ac_try="$ac_compile"
8102 case "(($ac_try" in
8103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8104 *) ac_try_echo=$ac_try;;
8105 esac
8106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8107 (eval "$ac_compile") 2>conftest.er1
8108 ac_status=$?
8109 grep -v '^ *+' conftest.er1 >conftest.err
8110 rm -f conftest.er1
8111 cat conftest.err >&5
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); } && {
8114 test -z "$ac_c_werror_flag" ||
8115 test ! -s conftest.err
8116 } && test -s conftest.$ac_objext; then
8117 ac_cv_member_struct_tm_tm_gmtoff=yes
8118 else
8119 echo "$as_me: failed program was:" >&5
8120 sed 's/^/| /' conftest.$ac_ext >&5
8121
8122 cat >conftest.$ac_ext <<_ACEOF
8123 /* confdefs.h. */
8124 _ACEOF
8125 cat confdefs.h >>conftest.$ac_ext
8126 cat >>conftest.$ac_ext <<_ACEOF
8127 /* end confdefs.h. */
8128 #include <time.h>
8129
8130 int
8131 main ()
8132 {
8133 static struct tm ac_aggr;
8134 if (sizeof ac_aggr.tm_gmtoff)
8135 return 0;
8136 ;
8137 return 0;
8138 }
8139 _ACEOF
8140 rm -f conftest.$ac_objext
8141 if { (ac_try="$ac_compile"
8142 case "(($ac_try" in
8143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8144 *) ac_try_echo=$ac_try;;
8145 esac
8146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8147 (eval "$ac_compile") 2>conftest.er1
8148 ac_status=$?
8149 grep -v '^ *+' conftest.er1 >conftest.err
8150 rm -f conftest.er1
8151 cat conftest.err >&5
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); } && {
8154 test -z "$ac_c_werror_flag" ||
8155 test ! -s conftest.err
8156 } && test -s conftest.$ac_objext; then
8157 ac_cv_member_struct_tm_tm_gmtoff=yes
8158 else
8159 echo "$as_me: failed program was:" >&5
8160 sed 's/^/| /' conftest.$ac_ext >&5
8161
8162 ac_cv_member_struct_tm_tm_gmtoff=no
8163 fi
8164
8165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8166 fi
8167
8168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8169 fi
8170 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8171 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8172 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8173
8174 cat >>confdefs.h <<\_ACEOF
8175 #define HAVE_TM_GMTOFF 1
8176 _ACEOF
8177
8178 fi
8179
8180 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8181 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8182 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8183 echo $ECHO_N "(cached) $ECHO_C" >&6
8184 else
8185 cat >conftest.$ac_ext <<_ACEOF
8186 /* confdefs.h. */
8187 _ACEOF
8188 cat confdefs.h >>conftest.$ac_ext
8189 cat >>conftest.$ac_ext <<_ACEOF
8190 /* end confdefs.h. */
8191 $ac_includes_default
8192 #if HAVE_SYS_SOCKET_H
8193 #include <sys/socket.h>
8194 #endif
8195 #if HAVE_NET_IF_H
8196 #include <net/if.h>
8197 #endif
8198
8199 int
8200 main ()
8201 {
8202 static struct ifreq ac_aggr;
8203 if (ac_aggr.ifr_flags)
8204 return 0;
8205 ;
8206 return 0;
8207 }
8208 _ACEOF
8209 rm -f conftest.$ac_objext
8210 if { (ac_try="$ac_compile"
8211 case "(($ac_try" in
8212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8213 *) ac_try_echo=$ac_try;;
8214 esac
8215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8216 (eval "$ac_compile") 2>conftest.er1
8217 ac_status=$?
8218 grep -v '^ *+' conftest.er1 >conftest.err
8219 rm -f conftest.er1
8220 cat conftest.err >&5
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); } && {
8223 test -z "$ac_c_werror_flag" ||
8224 test ! -s conftest.err
8225 } && test -s conftest.$ac_objext; then
8226 ac_cv_member_struct_ifreq_ifr_flags=yes
8227 else
8228 echo "$as_me: failed program was:" >&5
8229 sed 's/^/| /' conftest.$ac_ext >&5
8230
8231 cat >conftest.$ac_ext <<_ACEOF
8232 /* confdefs.h. */
8233 _ACEOF
8234 cat confdefs.h >>conftest.$ac_ext
8235 cat >>conftest.$ac_ext <<_ACEOF
8236 /* end confdefs.h. */
8237 $ac_includes_default
8238 #if HAVE_SYS_SOCKET_H
8239 #include <sys/socket.h>
8240 #endif
8241 #if HAVE_NET_IF_H
8242 #include <net/if.h>
8243 #endif
8244
8245 int
8246 main ()
8247 {
8248 static struct ifreq ac_aggr;
8249 if (sizeof ac_aggr.ifr_flags)
8250 return 0;
8251 ;
8252 return 0;
8253 }
8254 _ACEOF
8255 rm -f conftest.$ac_objext
8256 if { (ac_try="$ac_compile"
8257 case "(($ac_try" in
8258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8259 *) ac_try_echo=$ac_try;;
8260 esac
8261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8262 (eval "$ac_compile") 2>conftest.er1
8263 ac_status=$?
8264 grep -v '^ *+' conftest.er1 >conftest.err
8265 rm -f conftest.er1
8266 cat conftest.err >&5
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); } && {
8269 test -z "$ac_c_werror_flag" ||
8270 test ! -s conftest.err
8271 } && test -s conftest.$ac_objext; then
8272 ac_cv_member_struct_ifreq_ifr_flags=yes
8273 else
8274 echo "$as_me: failed program was:" >&5
8275 sed 's/^/| /' conftest.$ac_ext >&5
8276
8277 ac_cv_member_struct_ifreq_ifr_flags=no
8278 fi
8279
8280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8281 fi
8282
8283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8284 fi
8285 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8286 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8287 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8288
8289 cat >>confdefs.h <<_ACEOF
8290 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8291 _ACEOF
8292
8293
8294 fi
8295 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8296 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8297 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8298 echo $ECHO_N "(cached) $ECHO_C" >&6
8299 else
8300 cat >conftest.$ac_ext <<_ACEOF
8301 /* confdefs.h. */
8302 _ACEOF
8303 cat confdefs.h >>conftest.$ac_ext
8304 cat >>conftest.$ac_ext <<_ACEOF
8305 /* end confdefs.h. */
8306 $ac_includes_default
8307 #if HAVE_SYS_SOCKET_H
8308 #include <sys/socket.h>
8309 #endif
8310 #if HAVE_NET_IF_H
8311 #include <net/if.h>
8312 #endif
8313
8314 int
8315 main ()
8316 {
8317 static struct ifreq ac_aggr;
8318 if (ac_aggr.ifr_hwaddr)
8319 return 0;
8320 ;
8321 return 0;
8322 }
8323 _ACEOF
8324 rm -f conftest.$ac_objext
8325 if { (ac_try="$ac_compile"
8326 case "(($ac_try" in
8327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8328 *) ac_try_echo=$ac_try;;
8329 esac
8330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8331 (eval "$ac_compile") 2>conftest.er1
8332 ac_status=$?
8333 grep -v '^ *+' conftest.er1 >conftest.err
8334 rm -f conftest.er1
8335 cat conftest.err >&5
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); } && {
8338 test -z "$ac_c_werror_flag" ||
8339 test ! -s conftest.err
8340 } && test -s conftest.$ac_objext; then
8341 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8342 else
8343 echo "$as_me: failed program was:" >&5
8344 sed 's/^/| /' conftest.$ac_ext >&5
8345
8346 cat >conftest.$ac_ext <<_ACEOF
8347 /* confdefs.h. */
8348 _ACEOF
8349 cat confdefs.h >>conftest.$ac_ext
8350 cat >>conftest.$ac_ext <<_ACEOF
8351 /* end confdefs.h. */
8352 $ac_includes_default
8353 #if HAVE_SYS_SOCKET_H
8354 #include <sys/socket.h>
8355 #endif
8356 #if HAVE_NET_IF_H
8357 #include <net/if.h>
8358 #endif
8359
8360 int
8361 main ()
8362 {
8363 static struct ifreq ac_aggr;
8364 if (sizeof ac_aggr.ifr_hwaddr)
8365 return 0;
8366 ;
8367 return 0;
8368 }
8369 _ACEOF
8370 rm -f conftest.$ac_objext
8371 if { (ac_try="$ac_compile"
8372 case "(($ac_try" in
8373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8374 *) ac_try_echo=$ac_try;;
8375 esac
8376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8377 (eval "$ac_compile") 2>conftest.er1
8378 ac_status=$?
8379 grep -v '^ *+' conftest.er1 >conftest.err
8380 rm -f conftest.er1
8381 cat conftest.err >&5
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); } && {
8384 test -z "$ac_c_werror_flag" ||
8385 test ! -s conftest.err
8386 } && test -s conftest.$ac_objext; then
8387 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8388 else
8389 echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.$ac_ext >&5
8391
8392 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8393 fi
8394
8395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8396 fi
8397
8398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8399 fi
8400 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8401 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8402 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8403
8404 cat >>confdefs.h <<_ACEOF
8405 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8406 _ACEOF
8407
8408
8409 fi
8410 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8411 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8412 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8413 echo $ECHO_N "(cached) $ECHO_C" >&6
8414 else
8415 cat >conftest.$ac_ext <<_ACEOF
8416 /* confdefs.h. */
8417 _ACEOF
8418 cat confdefs.h >>conftest.$ac_ext
8419 cat >>conftest.$ac_ext <<_ACEOF
8420 /* end confdefs.h. */
8421 $ac_includes_default
8422 #if HAVE_SYS_SOCKET_H
8423 #include <sys/socket.h>
8424 #endif
8425 #if HAVE_NET_IF_H
8426 #include <net/if.h>
8427 #endif
8428
8429 int
8430 main ()
8431 {
8432 static struct ifreq ac_aggr;
8433 if (ac_aggr.ifr_netmask)
8434 return 0;
8435 ;
8436 return 0;
8437 }
8438 _ACEOF
8439 rm -f conftest.$ac_objext
8440 if { (ac_try="$ac_compile"
8441 case "(($ac_try" in
8442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8443 *) ac_try_echo=$ac_try;;
8444 esac
8445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8446 (eval "$ac_compile") 2>conftest.er1
8447 ac_status=$?
8448 grep -v '^ *+' conftest.er1 >conftest.err
8449 rm -f conftest.er1
8450 cat conftest.err >&5
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); } && {
8453 test -z "$ac_c_werror_flag" ||
8454 test ! -s conftest.err
8455 } && test -s conftest.$ac_objext; then
8456 ac_cv_member_struct_ifreq_ifr_netmask=yes
8457 else
8458 echo "$as_me: failed program was:" >&5
8459 sed 's/^/| /' conftest.$ac_ext >&5
8460
8461 cat >conftest.$ac_ext <<_ACEOF
8462 /* confdefs.h. */
8463 _ACEOF
8464 cat confdefs.h >>conftest.$ac_ext
8465 cat >>conftest.$ac_ext <<_ACEOF
8466 /* end confdefs.h. */
8467 $ac_includes_default
8468 #if HAVE_SYS_SOCKET_H
8469 #include <sys/socket.h>
8470 #endif
8471 #if HAVE_NET_IF_H
8472 #include <net/if.h>
8473 #endif
8474
8475 int
8476 main ()
8477 {
8478 static struct ifreq ac_aggr;
8479 if (sizeof ac_aggr.ifr_netmask)
8480 return 0;
8481 ;
8482 return 0;
8483 }
8484 _ACEOF
8485 rm -f conftest.$ac_objext
8486 if { (ac_try="$ac_compile"
8487 case "(($ac_try" in
8488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8489 *) ac_try_echo=$ac_try;;
8490 esac
8491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8492 (eval "$ac_compile") 2>conftest.er1
8493 ac_status=$?
8494 grep -v '^ *+' conftest.er1 >conftest.err
8495 rm -f conftest.er1
8496 cat conftest.err >&5
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); } && {
8499 test -z "$ac_c_werror_flag" ||
8500 test ! -s conftest.err
8501 } && test -s conftest.$ac_objext; then
8502 ac_cv_member_struct_ifreq_ifr_netmask=yes
8503 else
8504 echo "$as_me: failed program was:" >&5
8505 sed 's/^/| /' conftest.$ac_ext >&5
8506
8507 ac_cv_member_struct_ifreq_ifr_netmask=no
8508 fi
8509
8510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8511 fi
8512
8513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8514 fi
8515 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8516 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8517 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8518
8519 cat >>confdefs.h <<_ACEOF
8520 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8521 _ACEOF
8522
8523
8524 fi
8525 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8526 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8527 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8528 echo $ECHO_N "(cached) $ECHO_C" >&6
8529 else
8530 cat >conftest.$ac_ext <<_ACEOF
8531 /* confdefs.h. */
8532 _ACEOF
8533 cat confdefs.h >>conftest.$ac_ext
8534 cat >>conftest.$ac_ext <<_ACEOF
8535 /* end confdefs.h. */
8536 $ac_includes_default
8537 #if HAVE_SYS_SOCKET_H
8538 #include <sys/socket.h>
8539 #endif
8540 #if HAVE_NET_IF_H
8541 #include <net/if.h>
8542 #endif
8543
8544 int
8545 main ()
8546 {
8547 static struct ifreq ac_aggr;
8548 if (ac_aggr.ifr_broadaddr)
8549 return 0;
8550 ;
8551 return 0;
8552 }
8553 _ACEOF
8554 rm -f conftest.$ac_objext
8555 if { (ac_try="$ac_compile"
8556 case "(($ac_try" in
8557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8558 *) ac_try_echo=$ac_try;;
8559 esac
8560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8561 (eval "$ac_compile") 2>conftest.er1
8562 ac_status=$?
8563 grep -v '^ *+' conftest.er1 >conftest.err
8564 rm -f conftest.er1
8565 cat conftest.err >&5
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); } && {
8568 test -z "$ac_c_werror_flag" ||
8569 test ! -s conftest.err
8570 } && test -s conftest.$ac_objext; then
8571 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8572 else
8573 echo "$as_me: failed program was:" >&5
8574 sed 's/^/| /' conftest.$ac_ext >&5
8575
8576 cat >conftest.$ac_ext <<_ACEOF
8577 /* confdefs.h. */
8578 _ACEOF
8579 cat confdefs.h >>conftest.$ac_ext
8580 cat >>conftest.$ac_ext <<_ACEOF
8581 /* end confdefs.h. */
8582 $ac_includes_default
8583 #if HAVE_SYS_SOCKET_H
8584 #include <sys/socket.h>
8585 #endif
8586 #if HAVE_NET_IF_H
8587 #include <net/if.h>
8588 #endif
8589
8590 int
8591 main ()
8592 {
8593 static struct ifreq ac_aggr;
8594 if (sizeof ac_aggr.ifr_broadaddr)
8595 return 0;
8596 ;
8597 return 0;
8598 }
8599 _ACEOF
8600 rm -f conftest.$ac_objext
8601 if { (ac_try="$ac_compile"
8602 case "(($ac_try" in
8603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8604 *) ac_try_echo=$ac_try;;
8605 esac
8606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8607 (eval "$ac_compile") 2>conftest.er1
8608 ac_status=$?
8609 grep -v '^ *+' conftest.er1 >conftest.err
8610 rm -f conftest.er1
8611 cat conftest.err >&5
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); } && {
8614 test -z "$ac_c_werror_flag" ||
8615 test ! -s conftest.err
8616 } && test -s conftest.$ac_objext; then
8617 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8618 else
8619 echo "$as_me: failed program was:" >&5
8620 sed 's/^/| /' conftest.$ac_ext >&5
8621
8622 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8623 fi
8624
8625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8626 fi
8627
8628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8629 fi
8630 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8631 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8632 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8633
8634 cat >>confdefs.h <<_ACEOF
8635 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8636 _ACEOF
8637
8638
8639 fi
8640 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8641 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8642 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8643 echo $ECHO_N "(cached) $ECHO_C" >&6
8644 else
8645 cat >conftest.$ac_ext <<_ACEOF
8646 /* confdefs.h. */
8647 _ACEOF
8648 cat confdefs.h >>conftest.$ac_ext
8649 cat >>conftest.$ac_ext <<_ACEOF
8650 /* end confdefs.h. */
8651 $ac_includes_default
8652 #if HAVE_SYS_SOCKET_H
8653 #include <sys/socket.h>
8654 #endif
8655 #if HAVE_NET_IF_H
8656 #include <net/if.h>
8657 #endif
8658
8659 int
8660 main ()
8661 {
8662 static struct ifreq ac_aggr;
8663 if (ac_aggr.ifr_addr)
8664 return 0;
8665 ;
8666 return 0;
8667 }
8668 _ACEOF
8669 rm -f conftest.$ac_objext
8670 if { (ac_try="$ac_compile"
8671 case "(($ac_try" in
8672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8673 *) ac_try_echo=$ac_try;;
8674 esac
8675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8676 (eval "$ac_compile") 2>conftest.er1
8677 ac_status=$?
8678 grep -v '^ *+' conftest.er1 >conftest.err
8679 rm -f conftest.er1
8680 cat conftest.err >&5
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); } && {
8683 test -z "$ac_c_werror_flag" ||
8684 test ! -s conftest.err
8685 } && test -s conftest.$ac_objext; then
8686 ac_cv_member_struct_ifreq_ifr_addr=yes
8687 else
8688 echo "$as_me: failed program was:" >&5
8689 sed 's/^/| /' conftest.$ac_ext >&5
8690
8691 cat >conftest.$ac_ext <<_ACEOF
8692 /* confdefs.h. */
8693 _ACEOF
8694 cat confdefs.h >>conftest.$ac_ext
8695 cat >>conftest.$ac_ext <<_ACEOF
8696 /* end confdefs.h. */
8697 $ac_includes_default
8698 #if HAVE_SYS_SOCKET_H
8699 #include <sys/socket.h>
8700 #endif
8701 #if HAVE_NET_IF_H
8702 #include <net/if.h>
8703 #endif
8704
8705 int
8706 main ()
8707 {
8708 static struct ifreq ac_aggr;
8709 if (sizeof ac_aggr.ifr_addr)
8710 return 0;
8711 ;
8712 return 0;
8713 }
8714 _ACEOF
8715 rm -f conftest.$ac_objext
8716 if { (ac_try="$ac_compile"
8717 case "(($ac_try" in
8718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8719 *) ac_try_echo=$ac_try;;
8720 esac
8721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8722 (eval "$ac_compile") 2>conftest.er1
8723 ac_status=$?
8724 grep -v '^ *+' conftest.er1 >conftest.err
8725 rm -f conftest.er1
8726 cat conftest.err >&5
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); } && {
8729 test -z "$ac_c_werror_flag" ||
8730 test ! -s conftest.err
8731 } && test -s conftest.$ac_objext; then
8732 ac_cv_member_struct_ifreq_ifr_addr=yes
8733 else
8734 echo "$as_me: failed program was:" >&5
8735 sed 's/^/| /' conftest.$ac_ext >&5
8736
8737 ac_cv_member_struct_ifreq_ifr_addr=no
8738 fi
8739
8740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8741 fi
8742
8743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8744 fi
8745 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8746 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8747 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8748
8749 cat >>confdefs.h <<_ACEOF
8750 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8751 _ACEOF
8752
8753
8754 fi
8755
8756
8757
8758 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8759 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8760 if test "$ac_cv_prog_cc_c89" != no; then
8761 { echo "$as_me:$LINENO: result: yes" >&5
8762 echo "${ECHO_T}yes" >&6; }
8763
8764 cat >>confdefs.h <<\_ACEOF
8765 #define PROTOTYPES 1
8766 _ACEOF
8767
8768
8769 cat >>confdefs.h <<\_ACEOF
8770 #define __PROTOTYPES 1
8771 _ACEOF
8772
8773 else
8774 { echo "$as_me:$LINENO: result: no" >&5
8775 echo "${ECHO_T}no" >&6; }
8776 fi
8777
8778 { echo "$as_me:$LINENO: checking for working volatile" >&5
8779 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8780 if test "${ac_cv_c_volatile+set}" = set; then
8781 echo $ECHO_N "(cached) $ECHO_C" >&6
8782 else
8783 cat >conftest.$ac_ext <<_ACEOF
8784 /* confdefs.h. */
8785 _ACEOF
8786 cat confdefs.h >>conftest.$ac_ext
8787 cat >>conftest.$ac_ext <<_ACEOF
8788 /* end confdefs.h. */
8789
8790 int
8791 main ()
8792 {
8793
8794 volatile int x;
8795 int * volatile y = (int *) 0;
8796 return !x && !y;
8797 ;
8798 return 0;
8799 }
8800 _ACEOF
8801 rm -f conftest.$ac_objext
8802 if { (ac_try="$ac_compile"
8803 case "(($ac_try" in
8804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8805 *) ac_try_echo=$ac_try;;
8806 esac
8807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8808 (eval "$ac_compile") 2>conftest.er1
8809 ac_status=$?
8810 grep -v '^ *+' conftest.er1 >conftest.err
8811 rm -f conftest.er1
8812 cat conftest.err >&5
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); } && {
8815 test -z "$ac_c_werror_flag" ||
8816 test ! -s conftest.err
8817 } && test -s conftest.$ac_objext; then
8818 ac_cv_c_volatile=yes
8819 else
8820 echo "$as_me: failed program was:" >&5
8821 sed 's/^/| /' conftest.$ac_ext >&5
8822
8823 ac_cv_c_volatile=no
8824 fi
8825
8826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8827 fi
8828 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8829 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8830 if test $ac_cv_c_volatile = no; then
8831
8832 cat >>confdefs.h <<\_ACEOF
8833 #define volatile
8834 _ACEOF
8835
8836 fi
8837
8838 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8839 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8840 if test "${ac_cv_c_const+set}" = set; then
8841 echo $ECHO_N "(cached) $ECHO_C" >&6
8842 else
8843 cat >conftest.$ac_ext <<_ACEOF
8844 /* confdefs.h. */
8845 _ACEOF
8846 cat confdefs.h >>conftest.$ac_ext
8847 cat >>conftest.$ac_ext <<_ACEOF
8848 /* end confdefs.h. */
8849
8850 int
8851 main ()
8852 {
8853 /* FIXME: Include the comments suggested by Paul. */
8854 #ifndef __cplusplus
8855 /* Ultrix mips cc rejects this. */
8856 typedef int charset[2];
8857 const charset cs;
8858 /* SunOS 4.1.1 cc rejects this. */
8859 char const *const *pcpcc;
8860 char **ppc;
8861 /* NEC SVR4.0.2 mips cc rejects this. */
8862 struct point {int x, y;};
8863 static struct point const zero = {0,0};
8864 /* AIX XL C 1.02.0.0 rejects this.
8865 It does not let you subtract one const X* pointer from another in
8866 an arm of an if-expression whose if-part is not a constant
8867 expression */
8868 const char *g = "string";
8869 pcpcc = &g + (g ? g-g : 0);
8870 /* HPUX 7.0 cc rejects these. */
8871 ++pcpcc;
8872 ppc = (char**) pcpcc;
8873 pcpcc = (char const *const *) ppc;
8874 { /* SCO 3.2v4 cc rejects this. */
8875 char *t;
8876 char const *s = 0 ? (char *) 0 : (char const *) 0;
8877
8878 *t++ = 0;
8879 if (s) return 0;
8880 }
8881 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8882 int x[] = {25, 17};
8883 const int *foo = &x[0];
8884 ++foo;
8885 }
8886 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8887 typedef const int *iptr;
8888 iptr p = 0;
8889 ++p;
8890 }
8891 { /* AIX XL C 1.02.0.0 rejects this saying
8892 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8893 struct s { int j; const int *ap[3]; };
8894 struct s *b; b->j = 5;
8895 }
8896 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8897 const int foo = 10;
8898 if (!foo) return 0;
8899 }
8900 return !cs[0] && !zero.x;
8901 #endif
8902
8903 ;
8904 return 0;
8905 }
8906 _ACEOF
8907 rm -f conftest.$ac_objext
8908 if { (ac_try="$ac_compile"
8909 case "(($ac_try" in
8910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8911 *) ac_try_echo=$ac_try;;
8912 esac
8913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8914 (eval "$ac_compile") 2>conftest.er1
8915 ac_status=$?
8916 grep -v '^ *+' conftest.er1 >conftest.err
8917 rm -f conftest.er1
8918 cat conftest.err >&5
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); } && {
8921 test -z "$ac_c_werror_flag" ||
8922 test ! -s conftest.err
8923 } && test -s conftest.$ac_objext; then
8924 ac_cv_c_const=yes
8925 else
8926 echo "$as_me: failed program was:" >&5
8927 sed 's/^/| /' conftest.$ac_ext >&5
8928
8929 ac_cv_c_const=no
8930 fi
8931
8932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8933 fi
8934 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8935 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8936 if test $ac_cv_c_const = no; then
8937
8938 cat >>confdefs.h <<\_ACEOF
8939 #define const
8940 _ACEOF
8941
8942 fi
8943
8944 { echo "$as_me:$LINENO: checking for void * support" >&5
8945 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8946 if test "${emacs_cv_void_star+set}" = set; then
8947 echo $ECHO_N "(cached) $ECHO_C" >&6
8948 else
8949 cat >conftest.$ac_ext <<_ACEOF
8950 /* confdefs.h. */
8951 _ACEOF
8952 cat confdefs.h >>conftest.$ac_ext
8953 cat >>conftest.$ac_ext <<_ACEOF
8954 /* end confdefs.h. */
8955
8956 int
8957 main ()
8958 {
8959 void * foo;
8960 ;
8961 return 0;
8962 }
8963 _ACEOF
8964 rm -f conftest.$ac_objext
8965 if { (ac_try="$ac_compile"
8966 case "(($ac_try" in
8967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8968 *) ac_try_echo=$ac_try;;
8969 esac
8970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8971 (eval "$ac_compile") 2>conftest.er1
8972 ac_status=$?
8973 grep -v '^ *+' conftest.er1 >conftest.err
8974 rm -f conftest.er1
8975 cat conftest.err >&5
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); } && {
8978 test -z "$ac_c_werror_flag" ||
8979 test ! -s conftest.err
8980 } && test -s conftest.$ac_objext; then
8981 emacs_cv_void_star=yes
8982 else
8983 echo "$as_me: failed program was:" >&5
8984 sed 's/^/| /' conftest.$ac_ext >&5
8985
8986 emacs_cv_void_star=no
8987 fi
8988
8989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8990 fi
8991 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8992 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8993 if test $emacs_cv_void_star = yes; then
8994 cat >>confdefs.h <<\_ACEOF
8995 #define POINTER_TYPE void
8996 _ACEOF
8997
8998 else
8999 cat >>confdefs.h <<\_ACEOF
9000 #define POINTER_TYPE char
9001 _ACEOF
9002
9003 fi
9004
9005
9006
9007
9008
9009 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9010 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9011 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9012 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9013 echo $ECHO_N "(cached) $ECHO_C" >&6
9014 else
9015 cat >conftest.make <<\_ACEOF
9016 SHELL = /bin/sh
9017 all:
9018 @echo '@@@%%%=$(MAKE)=@@@%%%'
9019 _ACEOF
9020 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9021 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9022 *@@@%%%=?*=@@@%%%*)
9023 eval ac_cv_prog_make_${ac_make}_set=yes;;
9024 *)
9025 eval ac_cv_prog_make_${ac_make}_set=no;;
9026 esac
9027 rm -f conftest.make
9028 fi
9029 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9030 { echo "$as_me:$LINENO: result: yes" >&5
9031 echo "${ECHO_T}yes" >&6; }
9032 SET_MAKE=
9033 else
9034 { echo "$as_me:$LINENO: result: no" >&5
9035 echo "${ECHO_T}no" >&6; }
9036 SET_MAKE="MAKE=${MAKE-make}"
9037 fi
9038
9039
9040 { echo "$as_me:$LINENO: checking for long file names" >&5
9041 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9042 if test "${ac_cv_sys_long_file_names+set}" = set; then
9043 echo $ECHO_N "(cached) $ECHO_C" >&6
9044 else
9045 ac_cv_sys_long_file_names=yes
9046 # Test for long file names in all the places we know might matter:
9047 # . the current directory, where building will happen
9048 # $prefix/lib where we will be installing things
9049 # $exec_prefix/lib likewise
9050 # $TMPDIR if set, where it might want to write temporary files
9051 # /tmp where it might want to write temporary files
9052 # /var/tmp likewise
9053 # /usr/tmp likewise
9054 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9055 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9056 # in the usual case where exec_prefix is '${prefix}'.
9057 case $ac_dir in #(
9058 . | /* | ?:[\\/]*) ;; #(
9059 *) continue;;
9060 esac
9061 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9062 ac_xdir=$ac_dir/cf$$
9063 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9064 ac_tf1=$ac_xdir/conftest9012345
9065 ac_tf2=$ac_xdir/conftest9012346
9066 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9067 ac_cv_sys_long_file_names=no
9068 rm -f -r "$ac_xdir" 2>/dev/null
9069 test $ac_cv_sys_long_file_names = no && break
9070 done
9071 fi
9072 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9073 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9074 if test $ac_cv_sys_long_file_names = yes; then
9075
9076 cat >>confdefs.h <<\_ACEOF
9077 #define HAVE_LONG_FILE_NAMES 1
9078 _ACEOF
9079
9080 fi
9081
9082
9083 #### Choose a window system.
9084
9085 { echo "$as_me:$LINENO: checking for X" >&5
9086 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9087
9088
9089 # Check whether --with-x was given.
9090 if test "${with_x+set}" = set; then
9091 withval=$with_x;
9092 fi
9093
9094 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9095 if test "x$with_x" = xno; then
9096 # The user explicitly disabled X.
9097 have_x=disabled
9098 else
9099 case $x_includes,$x_libraries in #(
9100 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9101 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9102 { (exit 1); exit 1; }; };; #(
9103 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9104 echo $ECHO_N "(cached) $ECHO_C" >&6
9105 else
9106 # One or both of the vars are not set, and there is no cached value.
9107 ac_x_includes=no ac_x_libraries=no
9108 rm -f -r conftest.dir
9109 if mkdir conftest.dir; then
9110 cd conftest.dir
9111 cat >Imakefile <<'_ACEOF'
9112 incroot:
9113 @echo incroot='${INCROOT}'
9114 usrlibdir:
9115 @echo usrlibdir='${USRLIBDIR}'
9116 libdir:
9117 @echo libdir='${LIBDIR}'
9118 _ACEOF
9119 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9120 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9121 for ac_var in incroot usrlibdir libdir; do
9122 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9123 done
9124 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9125 for ac_extension in a so sl; do
9126 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9127 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9128 ac_im_usrlibdir=$ac_im_libdir; break
9129 fi
9130 done
9131 # Screen out bogus values from the imake configuration. They are
9132 # bogus both because they are the default anyway, and because
9133 # using them would break gcc on systems where it needs fixed includes.
9134 case $ac_im_incroot in
9135 /usr/include) ac_x_includes= ;;
9136 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9137 esac
9138 case $ac_im_usrlibdir in
9139 /usr/lib | /lib) ;;
9140 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9141 esac
9142 fi
9143 cd ..
9144 rm -f -r conftest.dir
9145 fi
9146
9147 # Standard set of common directories for X headers.
9148 # Check X11 before X11Rn because it is often a symlink to the current release.
9149 ac_x_header_dirs='
9150 /usr/X11/include
9151 /usr/X11R6/include
9152 /usr/X11R5/include
9153 /usr/X11R4/include
9154
9155 /usr/include/X11
9156 /usr/include/X11R6
9157 /usr/include/X11R5
9158 /usr/include/X11R4
9159
9160 /usr/local/X11/include
9161 /usr/local/X11R6/include
9162 /usr/local/X11R5/include
9163 /usr/local/X11R4/include
9164
9165 /usr/local/include/X11
9166 /usr/local/include/X11R6
9167 /usr/local/include/X11R5
9168 /usr/local/include/X11R4
9169
9170 /usr/X386/include
9171 /usr/x386/include
9172 /usr/XFree86/include/X11
9173
9174 /usr/include
9175 /usr/local/include
9176 /usr/unsupported/include
9177 /usr/athena/include
9178 /usr/local/x11r5/include
9179 /usr/lpp/Xamples/include
9180
9181 /usr/openwin/include
9182 /usr/openwin/share/include'
9183
9184 if test "$ac_x_includes" = no; then
9185 # Guess where to find include files, by looking for Xlib.h.
9186 # First, try using that file with no special directory specified.
9187 cat >conftest.$ac_ext <<_ACEOF
9188 /* confdefs.h. */
9189 _ACEOF
9190 cat confdefs.h >>conftest.$ac_ext
9191 cat >>conftest.$ac_ext <<_ACEOF
9192 /* end confdefs.h. */
9193 #include <X11/Xlib.h>
9194 _ACEOF
9195 if { (ac_try="$ac_cpp conftest.$ac_ext"
9196 case "(($ac_try" in
9197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9198 *) ac_try_echo=$ac_try;;
9199 esac
9200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9201 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9202 ac_status=$?
9203 grep -v '^ *+' conftest.er1 >conftest.err
9204 rm -f conftest.er1
9205 cat conftest.err >&5
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); } >/dev/null && {
9208 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9209 test ! -s conftest.err
9210 }; then
9211 # We can compile using X headers with no special include directory.
9212 ac_x_includes=
9213 else
9214 echo "$as_me: failed program was:" >&5
9215 sed 's/^/| /' conftest.$ac_ext >&5
9216
9217 for ac_dir in $ac_x_header_dirs; do
9218 if test -r "$ac_dir/X11/Xlib.h"; then
9219 ac_x_includes=$ac_dir
9220 break
9221 fi
9222 done
9223 fi
9224
9225 rm -f conftest.err conftest.$ac_ext
9226 fi # $ac_x_includes = no
9227
9228 if test "$ac_x_libraries" = no; then
9229 # Check for the libraries.
9230 # See if we find them without any special options.
9231 # Don't add to $LIBS permanently.
9232 ac_save_LIBS=$LIBS
9233 LIBS="-lX11 $LIBS"
9234 cat >conftest.$ac_ext <<_ACEOF
9235 /* confdefs.h. */
9236 _ACEOF
9237 cat confdefs.h >>conftest.$ac_ext
9238 cat >>conftest.$ac_ext <<_ACEOF
9239 /* end confdefs.h. */
9240 #include <X11/Xlib.h>
9241 int
9242 main ()
9243 {
9244 XrmInitialize ()
9245 ;
9246 return 0;
9247 }
9248 _ACEOF
9249 rm -f conftest.$ac_objext conftest$ac_exeext
9250 if { (ac_try="$ac_link"
9251 case "(($ac_try" in
9252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9253 *) ac_try_echo=$ac_try;;
9254 esac
9255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9256 (eval "$ac_link") 2>conftest.er1
9257 ac_status=$?
9258 grep -v '^ *+' conftest.er1 >conftest.err
9259 rm -f conftest.er1
9260 cat conftest.err >&5
9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262 (exit $ac_status); } && {
9263 test -z "$ac_c_werror_flag" ||
9264 test ! -s conftest.err
9265 } && test -s conftest$ac_exeext &&
9266 $as_test_x conftest$ac_exeext; then
9267 LIBS=$ac_save_LIBS
9268 # We can link X programs with no special library path.
9269 ac_x_libraries=
9270 else
9271 echo "$as_me: failed program was:" >&5
9272 sed 's/^/| /' conftest.$ac_ext >&5
9273
9274 LIBS=$ac_save_LIBS
9275 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9276 do
9277 # Don't even attempt the hair of trying to link an X program!
9278 for ac_extension in a so sl; do
9279 if test -r "$ac_dir/libX11.$ac_extension"; then
9280 ac_x_libraries=$ac_dir
9281 break 2
9282 fi
9283 done
9284 done
9285 fi
9286
9287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9288 conftest$ac_exeext conftest.$ac_ext
9289 fi # $ac_x_libraries = no
9290
9291 case $ac_x_includes,$ac_x_libraries in #(
9292 no,* | *,no | *\'*)
9293 # Didn't find X, or a directory has "'" in its name.
9294 ac_cv_have_x="have_x=no";; #(
9295 *)
9296 # Record where we found X for the cache.
9297 ac_cv_have_x="have_x=yes\
9298 ac_x_includes='$ac_x_includes'\
9299 ac_x_libraries='$ac_x_libraries'"
9300 esac
9301 fi
9302 ;; #(
9303 *) have_x=yes;;
9304 esac
9305 eval "$ac_cv_have_x"
9306 fi # $with_x != no
9307
9308 if test "$have_x" != yes; then
9309 { echo "$as_me:$LINENO: result: $have_x" >&5
9310 echo "${ECHO_T}$have_x" >&6; }
9311 no_x=yes
9312 else
9313 # If each of the values was on the command line, it overrides each guess.
9314 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9315 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9316 # Update the cache value to reflect the command line values.
9317 ac_cv_have_x="have_x=yes\
9318 ac_x_includes='$x_includes'\
9319 ac_x_libraries='$x_libraries'"
9320 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9321 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9322 fi
9323
9324 if test "$no_x" = yes; then
9325 window_system=none
9326 else
9327 window_system=x11
9328 fi
9329
9330 if test "${x_libraries}" != NONE; then
9331 if test -n "${x_libraries}"; then
9332 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9333 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9334 fi
9335 x_default_search_path=""
9336 x_search_path=${x_libraries}
9337 if test -z "${x_search_path}"; then
9338 x_search_path=/usr/lib
9339 fi
9340 for x_library in `echo ${x_search_path}: | \
9341 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9342 x_search_path="\
9343 ${x_library}/X11/%L/%T/%N%C%S:\
9344 ${x_library}/X11/%l/%T/%N%C%S:\
9345 ${x_library}/X11/%T/%N%C%S:\
9346 ${x_library}/X11/%L/%T/%N%S:\
9347 ${x_library}/X11/%l/%T/%N%S:\
9348 ${x_library}/X11/%T/%N%S"
9349 if test x"${x_default_search_path}" = x; then
9350 x_default_search_path=${x_search_path}
9351 else
9352 x_default_search_path="${x_search_path}:${x_default_search_path}"
9353 fi
9354 done
9355 fi
9356 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9357 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9358 fi
9359
9360 if test x"${x_includes}" = x; then
9361 bitmapdir=/usr/include/X11/bitmaps
9362 else
9363 # accumulate include directories that have X11 bitmap subdirectories
9364 bmd_acc="dummyval"
9365 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9366 if test -d "${bmd}/X11/bitmaps"; then
9367 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9368 fi
9369 if test -d "${bmd}/bitmaps"; then
9370 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9371 fi
9372 done
9373 if test ${bmd_acc} != "dummyval"; then
9374 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9375 fi
9376 fi
9377
9378 HAVE_CARBON=no
9379 if test "${with_carbon}" != no; then
9380 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9381 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9382 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9383 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9384 echo $ECHO_N "(cached) $ECHO_C" >&6
9385 fi
9386 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9387 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9388 else
9389 # Is the header compilable?
9390 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9391 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9392 cat >conftest.$ac_ext <<_ACEOF
9393 /* confdefs.h. */
9394 _ACEOF
9395 cat confdefs.h >>conftest.$ac_ext
9396 cat >>conftest.$ac_ext <<_ACEOF
9397 /* end confdefs.h. */
9398 $ac_includes_default
9399 #include <Carbon/Carbon.h>
9400 _ACEOF
9401 rm -f conftest.$ac_objext
9402 if { (ac_try="$ac_compile"
9403 case "(($ac_try" in
9404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9405 *) ac_try_echo=$ac_try;;
9406 esac
9407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9408 (eval "$ac_compile") 2>conftest.er1
9409 ac_status=$?
9410 grep -v '^ *+' conftest.er1 >conftest.err
9411 rm -f conftest.er1
9412 cat conftest.err >&5
9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 (exit $ac_status); } && {
9415 test -z "$ac_c_werror_flag" ||
9416 test ! -s conftest.err
9417 } && test -s conftest.$ac_objext; then
9418 ac_header_compiler=yes
9419 else
9420 echo "$as_me: failed program was:" >&5
9421 sed 's/^/| /' conftest.$ac_ext >&5
9422
9423 ac_header_compiler=no
9424 fi
9425
9426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9427 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9428 echo "${ECHO_T}$ac_header_compiler" >&6; }
9429
9430 # Is the header present?
9431 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9432 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9433 cat >conftest.$ac_ext <<_ACEOF
9434 /* confdefs.h. */
9435 _ACEOF
9436 cat confdefs.h >>conftest.$ac_ext
9437 cat >>conftest.$ac_ext <<_ACEOF
9438 /* end confdefs.h. */
9439 #include <Carbon/Carbon.h>
9440 _ACEOF
9441 if { (ac_try="$ac_cpp conftest.$ac_ext"
9442 case "(($ac_try" in
9443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9444 *) ac_try_echo=$ac_try;;
9445 esac
9446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9448 ac_status=$?
9449 grep -v '^ *+' conftest.er1 >conftest.err
9450 rm -f conftest.er1
9451 cat conftest.err >&5
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); } >/dev/null && {
9454 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9455 test ! -s conftest.err
9456 }; then
9457 ac_header_preproc=yes
9458 else
9459 echo "$as_me: failed program was:" >&5
9460 sed 's/^/| /' conftest.$ac_ext >&5
9461
9462 ac_header_preproc=no
9463 fi
9464
9465 rm -f conftest.err conftest.$ac_ext
9466 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9467 echo "${ECHO_T}$ac_header_preproc" >&6; }
9468
9469 # So? What about this header?
9470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9471 yes:no: )
9472 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9473 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9474 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9475 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9476 ac_header_preproc=yes
9477 ;;
9478 no:yes:* )
9479 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9480 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9481 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9482 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9483 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9484 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9485 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9486 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9487 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9488 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9489 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9490 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9491
9492 ;;
9493 esac
9494 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9495 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9496 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9497 echo $ECHO_N "(cached) $ECHO_C" >&6
9498 else
9499 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9500 fi
9501 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9502 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9503
9504 fi
9505 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9506 HAVE_CARBON=yes
9507 fi
9508
9509
9510 fi
9511 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9512 if test "${with_carbon+set}" != set \
9513 && test "${carbon_appdir_x+set}" != set; then
9514 for var in with_x with_x_toolkit with_gtk with_xim \
9515 with_xpm with_jpeg with_tiff with_gif with_png; do
9516 if eval test \"\${$var+set}\" = set; then
9517 HAVE_CARBON=no
9518 break
9519 fi
9520 done
9521 fi
9522 fi
9523 if test "${HAVE_CARBON}" = yes; then
9524 window_system=mac
9525 fi
9526
9527 case "${window_system}" in
9528 x11 )
9529 HAVE_X_WINDOWS=yes
9530 HAVE_X11=yes
9531 case "${with_x_toolkit}" in
9532 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9533 motif ) USE_X_TOOLKIT=MOTIF ;;
9534 gtk ) with_gtk=yes
9535 USE_X_TOOLKIT=none ;;
9536 no ) USE_X_TOOLKIT=none ;;
9537 * ) USE_X_TOOLKIT=maybe ;;
9538 esac
9539 ;;
9540 mac | none )
9541 HAVE_X_WINDOWS=no
9542 HAVE_X11=no
9543 USE_X_TOOLKIT=none
9544 ;;
9545 esac
9546
9547 ### If we're using X11, we should use the X menu package.
9548 HAVE_MENUS=no
9549 case ${HAVE_X11} in
9550 yes ) HAVE_MENUS=yes ;;
9551 esac
9552
9553 if test "${opsys}" = "hpux9"; then
9554 case "${x_libraries}" in
9555 *X11R4* )
9556 opsysfile="s/hpux9-x11r4.h"
9557 ;;
9558 esac
9559 fi
9560
9561 if test "${opsys}" = "hpux9shr"; then
9562 case "${x_libraries}" in
9563 *X11R4* )
9564 opsysfile="s/hpux9shxr4.h"
9565 ;;
9566 esac
9567 fi
9568
9569 ### Compute the unexec source name from the object name.
9570 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9571
9572 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9573 # Assume not, until told otherwise.
9574 GNU_MALLOC=yes
9575 doug_lea_malloc=yes
9576 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9577 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9578 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9579 echo $ECHO_N "(cached) $ECHO_C" >&6
9580 else
9581 cat >conftest.$ac_ext <<_ACEOF
9582 /* confdefs.h. */
9583 _ACEOF
9584 cat confdefs.h >>conftest.$ac_ext
9585 cat >>conftest.$ac_ext <<_ACEOF
9586 /* end confdefs.h. */
9587 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9589 #define malloc_get_state innocuous_malloc_get_state
9590
9591 /* System header to define __stub macros and hopefully few prototypes,
9592 which can conflict with char malloc_get_state (); below.
9593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9594 <limits.h> exists even on freestanding compilers. */
9595
9596 #ifdef __STDC__
9597 # include <limits.h>
9598 #else
9599 # include <assert.h>
9600 #endif
9601
9602 #undef malloc_get_state
9603
9604 /* Override any GCC internal prototype to avoid an error.
9605 Use char because int might match the return type of a GCC
9606 builtin and then its argument prototype would still apply. */
9607 #ifdef __cplusplus
9608 extern "C"
9609 #endif
9610 char malloc_get_state ();
9611 /* The GNU C library defines this for functions which it implements
9612 to always fail with ENOSYS. Some functions are actually named
9613 something starting with __ and the normal name is an alias. */
9614 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9615 choke me
9616 #endif
9617
9618 int
9619 main ()
9620 {
9621 return malloc_get_state ();
9622 ;
9623 return 0;
9624 }
9625 _ACEOF
9626 rm -f conftest.$ac_objext conftest$ac_exeext
9627 if { (ac_try="$ac_link"
9628 case "(($ac_try" in
9629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9630 *) ac_try_echo=$ac_try;;
9631 esac
9632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9633 (eval "$ac_link") 2>conftest.er1
9634 ac_status=$?
9635 grep -v '^ *+' conftest.er1 >conftest.err
9636 rm -f conftest.er1
9637 cat conftest.err >&5
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); } && {
9640 test -z "$ac_c_werror_flag" ||
9641 test ! -s conftest.err
9642 } && test -s conftest$ac_exeext &&
9643 $as_test_x conftest$ac_exeext; then
9644 ac_cv_func_malloc_get_state=yes
9645 else
9646 echo "$as_me: failed program was:" >&5
9647 sed 's/^/| /' conftest.$ac_ext >&5
9648
9649 ac_cv_func_malloc_get_state=no
9650 fi
9651
9652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9653 conftest$ac_exeext conftest.$ac_ext
9654 fi
9655 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9656 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9657 if test $ac_cv_func_malloc_get_state = yes; then
9658 :
9659 else
9660 doug_lea_malloc=no
9661 fi
9662
9663 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9664 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9665 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
9667 else
9668 cat >conftest.$ac_ext <<_ACEOF
9669 /* confdefs.h. */
9670 _ACEOF
9671 cat confdefs.h >>conftest.$ac_ext
9672 cat >>conftest.$ac_ext <<_ACEOF
9673 /* end confdefs.h. */
9674 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9676 #define malloc_set_state innocuous_malloc_set_state
9677
9678 /* System header to define __stub macros and hopefully few prototypes,
9679 which can conflict with char malloc_set_state (); below.
9680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9681 <limits.h> exists even on freestanding compilers. */
9682
9683 #ifdef __STDC__
9684 # include <limits.h>
9685 #else
9686 # include <assert.h>
9687 #endif
9688
9689 #undef malloc_set_state
9690
9691 /* Override any GCC internal prototype to avoid an error.
9692 Use char because int might match the return type of a GCC
9693 builtin and then its argument prototype would still apply. */
9694 #ifdef __cplusplus
9695 extern "C"
9696 #endif
9697 char malloc_set_state ();
9698 /* The GNU C library defines this for functions which it implements
9699 to always fail with ENOSYS. Some functions are actually named
9700 something starting with __ and the normal name is an alias. */
9701 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9702 choke me
9703 #endif
9704
9705 int
9706 main ()
9707 {
9708 return malloc_set_state ();
9709 ;
9710 return 0;
9711 }
9712 _ACEOF
9713 rm -f conftest.$ac_objext conftest$ac_exeext
9714 if { (ac_try="$ac_link"
9715 case "(($ac_try" in
9716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9717 *) ac_try_echo=$ac_try;;
9718 esac
9719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9720 (eval "$ac_link") 2>conftest.er1
9721 ac_status=$?
9722 grep -v '^ *+' conftest.er1 >conftest.err
9723 rm -f conftest.er1
9724 cat conftest.err >&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); } && {
9727 test -z "$ac_c_werror_flag" ||
9728 test ! -s conftest.err
9729 } && test -s conftest$ac_exeext &&
9730 $as_test_x conftest$ac_exeext; then
9731 ac_cv_func_malloc_set_state=yes
9732 else
9733 echo "$as_me: failed program was:" >&5
9734 sed 's/^/| /' conftest.$ac_ext >&5
9735
9736 ac_cv_func_malloc_set_state=no
9737 fi
9738
9739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9740 conftest$ac_exeext conftest.$ac_ext
9741 fi
9742 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9743 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9744 if test $ac_cv_func_malloc_set_state = yes; then
9745 :
9746 else
9747 doug_lea_malloc=no
9748 fi
9749
9750 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9751 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9752 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9753 echo $ECHO_N "(cached) $ECHO_C" >&6
9754 else
9755 cat >conftest.$ac_ext <<_ACEOF
9756 /* confdefs.h. */
9757 _ACEOF
9758 cat confdefs.h >>conftest.$ac_ext
9759 cat >>conftest.$ac_ext <<_ACEOF
9760 /* end confdefs.h. */
9761 extern void (* __after_morecore_hook)();
9762 int
9763 main ()
9764 {
9765 __after_morecore_hook = 0
9766 ;
9767 return 0;
9768 }
9769 _ACEOF
9770 rm -f conftest.$ac_objext conftest$ac_exeext
9771 if { (ac_try="$ac_link"
9772 case "(($ac_try" in
9773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9774 *) ac_try_echo=$ac_try;;
9775 esac
9776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9777 (eval "$ac_link") 2>conftest.er1
9778 ac_status=$?
9779 grep -v '^ *+' conftest.er1 >conftest.err
9780 rm -f conftest.er1
9781 cat conftest.err >&5
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); } && {
9784 test -z "$ac_c_werror_flag" ||
9785 test ! -s conftest.err
9786 } && test -s conftest$ac_exeext &&
9787 $as_test_x conftest$ac_exeext; then
9788 emacs_cv_var___after_morecore_hook=yes
9789 else
9790 echo "$as_me: failed program was:" >&5
9791 sed 's/^/| /' conftest.$ac_ext >&5
9792
9793 emacs_cv_var___after_morecore_hook=no
9794 fi
9795
9796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9797 conftest$ac_exeext conftest.$ac_ext
9798 fi
9799 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9800 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9801 if test $emacs_cv_var___after_morecore_hook = no; then
9802 doug_lea_malloc=no
9803 fi
9804 if test "${system_malloc}" = "yes"; then
9805 GNU_MALLOC=no
9806 GNU_MALLOC_reason="
9807 (The GNU allocators don't work with this system configuration.)"
9808 fi
9809 if test "$doug_lea_malloc" = "yes" ; then
9810 if test "$GNU_MALLOC" = yes ; then
9811 GNU_MALLOC_reason="
9812 (Using Doug Lea's new malloc from the GNU C Library.)"
9813 fi
9814
9815 cat >>confdefs.h <<\_ACEOF
9816 #define DOUG_LEA_MALLOC 1
9817 _ACEOF
9818
9819 fi
9820
9821 if test x"${REL_ALLOC}" = x; then
9822 REL_ALLOC=${GNU_MALLOC}
9823 fi
9824
9825
9826
9827
9828 for ac_header in stdlib.h unistd.h
9829 do
9830 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9832 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9835 echo $ECHO_N "(cached) $ECHO_C" >&6
9836 fi
9837 ac_res=`eval echo '${'$as_ac_Header'}'`
9838 { echo "$as_me:$LINENO: result: $ac_res" >&5
9839 echo "${ECHO_T}$ac_res" >&6; }
9840 else
9841 # Is the header compilable?
9842 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9843 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9844 cat >conftest.$ac_ext <<_ACEOF
9845 /* confdefs.h. */
9846 _ACEOF
9847 cat confdefs.h >>conftest.$ac_ext
9848 cat >>conftest.$ac_ext <<_ACEOF
9849 /* end confdefs.h. */
9850 $ac_includes_default
9851 #include <$ac_header>
9852 _ACEOF
9853 rm -f conftest.$ac_objext
9854 if { (ac_try="$ac_compile"
9855 case "(($ac_try" in
9856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857 *) ac_try_echo=$ac_try;;
9858 esac
9859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9860 (eval "$ac_compile") 2>conftest.er1
9861 ac_status=$?
9862 grep -v '^ *+' conftest.er1 >conftest.err
9863 rm -f conftest.er1
9864 cat conftest.err >&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); } && {
9867 test -z "$ac_c_werror_flag" ||
9868 test ! -s conftest.err
9869 } && test -s conftest.$ac_objext; then
9870 ac_header_compiler=yes
9871 else
9872 echo "$as_me: failed program was:" >&5
9873 sed 's/^/| /' conftest.$ac_ext >&5
9874
9875 ac_header_compiler=no
9876 fi
9877
9878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9879 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9880 echo "${ECHO_T}$ac_header_compiler" >&6; }
9881
9882 # Is the header present?
9883 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9884 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9885 cat >conftest.$ac_ext <<_ACEOF
9886 /* confdefs.h. */
9887 _ACEOF
9888 cat confdefs.h >>conftest.$ac_ext
9889 cat >>conftest.$ac_ext <<_ACEOF
9890 /* end confdefs.h. */
9891 #include <$ac_header>
9892 _ACEOF
9893 if { (ac_try="$ac_cpp conftest.$ac_ext"
9894 case "(($ac_try" in
9895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896 *) ac_try_echo=$ac_try;;
9897 esac
9898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9900 ac_status=$?
9901 grep -v '^ *+' conftest.er1 >conftest.err
9902 rm -f conftest.er1
9903 cat conftest.err >&5
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); } >/dev/null && {
9906 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9907 test ! -s conftest.err
9908 }; then
9909 ac_header_preproc=yes
9910 else
9911 echo "$as_me: failed program was:" >&5
9912 sed 's/^/| /' conftest.$ac_ext >&5
9913
9914 ac_header_preproc=no
9915 fi
9916
9917 rm -f conftest.err conftest.$ac_ext
9918 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9919 echo "${ECHO_T}$ac_header_preproc" >&6; }
9920
9921 # So? What about this header?
9922 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9923 yes:no: )
9924 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9925 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9927 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9928 ac_header_preproc=yes
9929 ;;
9930 no:yes:* )
9931 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9932 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9933 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9934 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9935 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9936 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9937 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9938 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9940 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9941 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9942 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9943
9944 ;;
9945 esac
9946 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9949 echo $ECHO_N "(cached) $ECHO_C" >&6
9950 else
9951 eval "$as_ac_Header=\$ac_header_preproc"
9952 fi
9953 ac_res=`eval echo '${'$as_ac_Header'}'`
9954 { echo "$as_me:$LINENO: result: $ac_res" >&5
9955 echo "${ECHO_T}$ac_res" >&6; }
9956
9957 fi
9958 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9959 cat >>confdefs.h <<_ACEOF
9960 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9961 _ACEOF
9962
9963 fi
9964
9965 done
9966
9967
9968 for ac_func in getpagesize
9969 do
9970 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9971 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9972 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9973 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9974 echo $ECHO_N "(cached) $ECHO_C" >&6
9975 else
9976 cat >conftest.$ac_ext <<_ACEOF
9977 /* confdefs.h. */
9978 _ACEOF
9979 cat confdefs.h >>conftest.$ac_ext
9980 cat >>conftest.$ac_ext <<_ACEOF
9981 /* end confdefs.h. */
9982 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9984 #define $ac_func innocuous_$ac_func
9985
9986 /* System header to define __stub macros and hopefully few prototypes,
9987 which can conflict with char $ac_func (); below.
9988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9989 <limits.h> exists even on freestanding compilers. */
9990
9991 #ifdef __STDC__
9992 # include <limits.h>
9993 #else
9994 # include <assert.h>
9995 #endif
9996
9997 #undef $ac_func
9998
9999 /* Override any GCC internal prototype to avoid an error.
10000 Use char because int might match the return type of a GCC
10001 builtin and then its argument prototype would still apply. */
10002 #ifdef __cplusplus
10003 extern "C"
10004 #endif
10005 char $ac_func ();
10006 /* The GNU C library defines this for functions which it implements
10007 to always fail with ENOSYS. Some functions are actually named
10008 something starting with __ and the normal name is an alias. */
10009 #if defined __stub_$ac_func || defined __stub___$ac_func
10010 choke me
10011 #endif
10012
10013 int
10014 main ()
10015 {
10016 return $ac_func ();
10017 ;
10018 return 0;
10019 }
10020 _ACEOF
10021 rm -f conftest.$ac_objext conftest$ac_exeext
10022 if { (ac_try="$ac_link"
10023 case "(($ac_try" in
10024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10025 *) ac_try_echo=$ac_try;;
10026 esac
10027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10028 (eval "$ac_link") 2>conftest.er1
10029 ac_status=$?
10030 grep -v '^ *+' conftest.er1 >conftest.err
10031 rm -f conftest.er1
10032 cat conftest.err >&5
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); } && {
10035 test -z "$ac_c_werror_flag" ||
10036 test ! -s conftest.err
10037 } && test -s conftest$ac_exeext &&
10038 $as_test_x conftest$ac_exeext; then
10039 eval "$as_ac_var=yes"
10040 else
10041 echo "$as_me: failed program was:" >&5
10042 sed 's/^/| /' conftest.$ac_ext >&5
10043
10044 eval "$as_ac_var=no"
10045 fi
10046
10047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10048 conftest$ac_exeext conftest.$ac_ext
10049 fi
10050 ac_res=`eval echo '${'$as_ac_var'}'`
10051 { echo "$as_me:$LINENO: result: $ac_res" >&5
10052 echo "${ECHO_T}$ac_res" >&6; }
10053 if test `eval echo '${'$as_ac_var'}'` = yes; then
10054 cat >>confdefs.h <<_ACEOF
10055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10056 _ACEOF
10057
10058 fi
10059 done
10060
10061 { echo "$as_me:$LINENO: checking for working mmap" >&5
10062 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10063 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10064 echo $ECHO_N "(cached) $ECHO_C" >&6
10065 else
10066 if test "$cross_compiling" = yes; then
10067 ac_cv_func_mmap_fixed_mapped=no
10068 else
10069 cat >conftest.$ac_ext <<_ACEOF
10070 /* confdefs.h. */
10071 _ACEOF
10072 cat confdefs.h >>conftest.$ac_ext
10073 cat >>conftest.$ac_ext <<_ACEOF
10074 /* end confdefs.h. */
10075 $ac_includes_default
10076 /* malloc might have been renamed as rpl_malloc. */
10077 #undef malloc
10078
10079 /* Thanks to Mike Haertel and Jim Avera for this test.
10080 Here is a matrix of mmap possibilities:
10081 mmap private not fixed
10082 mmap private fixed at somewhere currently unmapped
10083 mmap private fixed at somewhere already mapped
10084 mmap shared not fixed
10085 mmap shared fixed at somewhere currently unmapped
10086 mmap shared fixed at somewhere already mapped
10087 For private mappings, we should verify that changes cannot be read()
10088 back from the file, nor mmap's back from the file at a different
10089 address. (There have been systems where private was not correctly
10090 implemented like the infamous i386 svr4.0, and systems where the
10091 VM page cache was not coherent with the file system buffer cache
10092 like early versions of FreeBSD and possibly contemporary NetBSD.)
10093 For shared mappings, we should conversely verify that changes get
10094 propagated back to all the places they're supposed to be.
10095
10096 Grep wants private fixed already mapped.
10097 The main things grep needs to know about mmap are:
10098 * does it exist and is it safe to write into the mmap'd area
10099 * how to use it (BSD variants) */
10100
10101 #include <fcntl.h>
10102 #include <sys/mman.h>
10103
10104 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10105 char *malloc ();
10106 #endif
10107
10108 /* This mess was copied from the GNU getpagesize.h. */
10109 #ifndef HAVE_GETPAGESIZE
10110 /* Assume that all systems that can run configure have sys/param.h. */
10111 # ifndef HAVE_SYS_PARAM_H
10112 # define HAVE_SYS_PARAM_H 1
10113 # endif
10114
10115 # ifdef _SC_PAGESIZE
10116 # define getpagesize() sysconf(_SC_PAGESIZE)
10117 # else /* no _SC_PAGESIZE */
10118 # ifdef HAVE_SYS_PARAM_H
10119 # include <sys/param.h>
10120 # ifdef EXEC_PAGESIZE
10121 # define getpagesize() EXEC_PAGESIZE
10122 # else /* no EXEC_PAGESIZE */
10123 # ifdef NBPG
10124 # define getpagesize() NBPG * CLSIZE
10125 # ifndef CLSIZE
10126 # define CLSIZE 1
10127 # endif /* no CLSIZE */
10128 # else /* no NBPG */
10129 # ifdef NBPC
10130 # define getpagesize() NBPC
10131 # else /* no NBPC */
10132 # ifdef PAGESIZE
10133 # define getpagesize() PAGESIZE
10134 # endif /* PAGESIZE */
10135 # endif /* no NBPC */
10136 # endif /* no NBPG */
10137 # endif /* no EXEC_PAGESIZE */
10138 # else /* no HAVE_SYS_PARAM_H */
10139 # define getpagesize() 8192 /* punt totally */
10140 # endif /* no HAVE_SYS_PARAM_H */
10141 # endif /* no _SC_PAGESIZE */
10142
10143 #endif /* no HAVE_GETPAGESIZE */
10144
10145 int
10146 main ()
10147 {
10148 char *data, *data2, *data3;
10149 int i, pagesize;
10150 int fd;
10151
10152 pagesize = getpagesize ();
10153
10154 /* First, make a file with some known garbage in it. */
10155 data = (char *) malloc (pagesize);
10156 if (!data)
10157 return 1;
10158 for (i = 0; i < pagesize; ++i)
10159 *(data + i) = rand ();
10160 umask (0);
10161 fd = creat ("conftest.mmap", 0600);
10162 if (fd < 0)
10163 return 1;
10164 if (write (fd, data, pagesize) != pagesize)
10165 return 1;
10166 close (fd);
10167
10168 /* Next, try to mmap the file at a fixed address which already has
10169 something else allocated at it. If we can, also make sure that
10170 we see the same garbage. */
10171 fd = open ("conftest.mmap", O_RDWR);
10172 if (fd < 0)
10173 return 1;
10174 data2 = (char *) malloc (2 * pagesize);
10175 if (!data2)
10176 return 1;
10177 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10178 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10179 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10180 return 1;
10181 for (i = 0; i < pagesize; ++i)
10182 if (*(data + i) != *(data2 + i))
10183 return 1;
10184
10185 /* Finally, make sure that changes to the mapped area do not
10186 percolate back to the file as seen by read(). (This is a bug on
10187 some variants of i386 svr4.0.) */
10188 for (i = 0; i < pagesize; ++i)
10189 *(data2 + i) = *(data2 + i) + 1;
10190 data3 = (char *) malloc (pagesize);
10191 if (!data3)
10192 return 1;
10193 if (read (fd, data3, pagesize) != pagesize)
10194 return 1;
10195 for (i = 0; i < pagesize; ++i)
10196 if (*(data + i) != *(data3 + i))
10197 return 1;
10198 close (fd);
10199 return 0;
10200 }
10201 _ACEOF
10202 rm -f conftest$ac_exeext
10203 if { (ac_try="$ac_link"
10204 case "(($ac_try" in
10205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10206 *) ac_try_echo=$ac_try;;
10207 esac
10208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10209 (eval "$ac_link") 2>&5
10210 ac_status=$?
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10213 { (case "(($ac_try" in
10214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10215 *) ac_try_echo=$ac_try;;
10216 esac
10217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10218 (eval "$ac_try") 2>&5
10219 ac_status=$?
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); }; }; then
10222 ac_cv_func_mmap_fixed_mapped=yes
10223 else
10224 echo "$as_me: program exited with status $ac_status" >&5
10225 echo "$as_me: failed program was:" >&5
10226 sed 's/^/| /' conftest.$ac_ext >&5
10227
10228 ( exit $ac_status )
10229 ac_cv_func_mmap_fixed_mapped=no
10230 fi
10231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10232 fi
10233
10234
10235 fi
10236 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10237 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10238 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10239
10240 cat >>confdefs.h <<\_ACEOF
10241 #define HAVE_MMAP 1
10242 _ACEOF
10243
10244 fi
10245 rm -f conftest.mmap
10246
10247 if test $use_mmap_for_buffers = yes; then
10248 REL_ALLOC=no
10249 fi
10250
10251 LIBS="$libsrc_libs $LIBS"
10252
10253
10254 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10255 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10256 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10257 echo $ECHO_N "(cached) $ECHO_C" >&6
10258 else
10259 ac_check_lib_save_LIBS=$LIBS
10260 LIBS="-ldnet $LIBS"
10261 cat >conftest.$ac_ext <<_ACEOF
10262 /* confdefs.h. */
10263 _ACEOF
10264 cat confdefs.h >>conftest.$ac_ext
10265 cat >>conftest.$ac_ext <<_ACEOF
10266 /* end confdefs.h. */
10267
10268 /* Override any GCC internal prototype to avoid an error.
10269 Use char because int might match the return type of a GCC
10270 builtin and then its argument prototype would still apply. */
10271 #ifdef __cplusplus
10272 extern "C"
10273 #endif
10274 char dnet_ntoa ();
10275 int
10276 main ()
10277 {
10278 return dnet_ntoa ();
10279 ;
10280 return 0;
10281 }
10282 _ACEOF
10283 rm -f conftest.$ac_objext conftest$ac_exeext
10284 if { (ac_try="$ac_link"
10285 case "(($ac_try" in
10286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10287 *) ac_try_echo=$ac_try;;
10288 esac
10289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10290 (eval "$ac_link") 2>conftest.er1
10291 ac_status=$?
10292 grep -v '^ *+' conftest.er1 >conftest.err
10293 rm -f conftest.er1
10294 cat conftest.err >&5
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); } && {
10297 test -z "$ac_c_werror_flag" ||
10298 test ! -s conftest.err
10299 } && test -s conftest$ac_exeext &&
10300 $as_test_x conftest$ac_exeext; then
10301 ac_cv_lib_dnet_dnet_ntoa=yes
10302 else
10303 echo "$as_me: failed program was:" >&5
10304 sed 's/^/| /' conftest.$ac_ext >&5
10305
10306 ac_cv_lib_dnet_dnet_ntoa=no
10307 fi
10308
10309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10310 conftest$ac_exeext conftest.$ac_ext
10311 LIBS=$ac_check_lib_save_LIBS
10312 fi
10313 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10314 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10315 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10316 cat >>confdefs.h <<_ACEOF
10317 #define HAVE_LIBDNET 1
10318 _ACEOF
10319
10320 LIBS="-ldnet $LIBS"
10321
10322 fi
10323
10324
10325 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10326 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10327 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10328 echo $ECHO_N "(cached) $ECHO_C" >&6
10329 else
10330 ac_check_lib_save_LIBS=$LIBS
10331 LIBS="-lXbsd $LIBS"
10332 cat >conftest.$ac_ext <<_ACEOF
10333 /* confdefs.h. */
10334 _ACEOF
10335 cat confdefs.h >>conftest.$ac_ext
10336 cat >>conftest.$ac_ext <<_ACEOF
10337 /* end confdefs.h. */
10338
10339
10340 int
10341 main ()
10342 {
10343 return main ();
10344 ;
10345 return 0;
10346 }
10347 _ACEOF
10348 rm -f conftest.$ac_objext conftest$ac_exeext
10349 if { (ac_try="$ac_link"
10350 case "(($ac_try" in
10351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10352 *) ac_try_echo=$ac_try;;
10353 esac
10354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10355 (eval "$ac_link") 2>conftest.er1
10356 ac_status=$?
10357 grep -v '^ *+' conftest.er1 >conftest.err
10358 rm -f conftest.er1
10359 cat conftest.err >&5
10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361 (exit $ac_status); } && {
10362 test -z "$ac_c_werror_flag" ||
10363 test ! -s conftest.err
10364 } && test -s conftest$ac_exeext &&
10365 $as_test_x conftest$ac_exeext; then
10366 ac_cv_lib_Xbsd_main=yes
10367 else
10368 echo "$as_me: failed program was:" >&5
10369 sed 's/^/| /' conftest.$ac_ext >&5
10370
10371 ac_cv_lib_Xbsd_main=no
10372 fi
10373
10374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10375 conftest$ac_exeext conftest.$ac_ext
10376 LIBS=$ac_check_lib_save_LIBS
10377 fi
10378 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10379 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10380 if test $ac_cv_lib_Xbsd_main = yes; then
10381 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10382 fi
10383
10384
10385
10386 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10387 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10388 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10389 echo $ECHO_N "(cached) $ECHO_C" >&6
10390 else
10391 ac_check_lib_save_LIBS=$LIBS
10392 LIBS="-lpthreads $LIBS"
10393 cat >conftest.$ac_ext <<_ACEOF
10394 /* confdefs.h. */
10395 _ACEOF
10396 cat confdefs.h >>conftest.$ac_ext
10397 cat >>conftest.$ac_ext <<_ACEOF
10398 /* end confdefs.h. */
10399
10400 /* Override any GCC internal prototype to avoid an error.
10401 Use char because int might match the return type of a GCC
10402 builtin and then its argument prototype would still apply. */
10403 #ifdef __cplusplus
10404 extern "C"
10405 #endif
10406 char cma_open ();
10407 int
10408 main ()
10409 {
10410 return cma_open ();
10411 ;
10412 return 0;
10413 }
10414 _ACEOF
10415 rm -f conftest.$ac_objext conftest$ac_exeext
10416 if { (ac_try="$ac_link"
10417 case "(($ac_try" in
10418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10419 *) ac_try_echo=$ac_try;;
10420 esac
10421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10422 (eval "$ac_link") 2>conftest.er1
10423 ac_status=$?
10424 grep -v '^ *+' conftest.er1 >conftest.err
10425 rm -f conftest.er1
10426 cat conftest.err >&5
10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); } && {
10429 test -z "$ac_c_werror_flag" ||
10430 test ! -s conftest.err
10431 } && test -s conftest$ac_exeext &&
10432 $as_test_x conftest$ac_exeext; then
10433 ac_cv_lib_pthreads_cma_open=yes
10434 else
10435 echo "$as_me: failed program was:" >&5
10436 sed 's/^/| /' conftest.$ac_ext >&5
10437
10438 ac_cv_lib_pthreads_cma_open=no
10439 fi
10440
10441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10442 conftest$ac_exeext conftest.$ac_ext
10443 LIBS=$ac_check_lib_save_LIBS
10444 fi
10445 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10446 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10447 if test $ac_cv_lib_pthreads_cma_open = yes; then
10448 cat >>confdefs.h <<_ACEOF
10449 #define HAVE_LIBPTHREADS 1
10450 _ACEOF
10451
10452 LIBS="-lpthreads $LIBS"
10453
10454 fi
10455
10456
10457 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10458 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10459 if test -d /usr/X386/include; then
10460 HAVE_XFREE386=yes
10461 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10462 else
10463 HAVE_XFREE386=no
10464 fi
10465 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10466 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10467
10468
10469 case ${host_os} in
10470 aix*)
10471 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10472 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10473 if test "${gdb_cv_bigtoc+set}" = set; then
10474 echo $ECHO_N "(cached) $ECHO_C" >&6
10475 else
10476
10477 case $GCC in
10478 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10479 *) gdb_cv_bigtoc=-bbigtoc ;;
10480 esac
10481
10482 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10483 cat >conftest.$ac_ext <<_ACEOF
10484 /* confdefs.h. */
10485 _ACEOF
10486 cat confdefs.h >>conftest.$ac_ext
10487 cat >>conftest.$ac_ext <<_ACEOF
10488 /* end confdefs.h. */
10489
10490 int
10491 main ()
10492 {
10493 int i;
10494 ;
10495 return 0;
10496 }
10497 _ACEOF
10498 rm -f conftest.$ac_objext conftest$ac_exeext
10499 if { (ac_try="$ac_link"
10500 case "(($ac_try" in
10501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10502 *) ac_try_echo=$ac_try;;
10503 esac
10504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10505 (eval "$ac_link") 2>conftest.er1
10506 ac_status=$?
10507 grep -v '^ *+' conftest.er1 >conftest.err
10508 rm -f conftest.er1
10509 cat conftest.err >&5
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); } && {
10512 test -z "$ac_c_werror_flag" ||
10513 test ! -s conftest.err
10514 } && test -s conftest$ac_exeext &&
10515 $as_test_x conftest$ac_exeext; then
10516 :
10517 else
10518 echo "$as_me: failed program was:" >&5
10519 sed 's/^/| /' conftest.$ac_ext >&5
10520
10521 gdb_cv_bigtoc=
10522 fi
10523
10524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10525 conftest$ac_exeext conftest.$ac_ext
10526
10527 fi
10528 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10529 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10530 ;;
10531 esac
10532
10533 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10534 # used for the tests that follow. We set them back to REAL_CFLAGS and
10535 # REAL_CPPFLAGS later on.
10536
10537 REAL_CPPFLAGS="$CPPFLAGS"
10538
10539 if test "${HAVE_X11}" = "yes"; then
10540 DEFS="$C_SWITCH_X_SITE $DEFS"
10541 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10542 LIBS="$LIBX $LIBS"
10543 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10544 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10545
10546 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10547 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10548 # but it's more convenient here to set LD_RUN_PATH
10549 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10550 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10551 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10552 export LD_RUN_PATH
10553 fi
10554
10555 if test "${opsys}" = "gnu-linux"; then
10556 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10557 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10558 cat >conftest.$ac_ext <<_ACEOF
10559 /* confdefs.h. */
10560 _ACEOF
10561 cat confdefs.h >>conftest.$ac_ext
10562 cat >>conftest.$ac_ext <<_ACEOF
10563 /* end confdefs.h. */
10564
10565 int
10566 main ()
10567 {
10568 XOpenDisplay ("foo");
10569 ;
10570 return 0;
10571 }
10572 _ACEOF
10573 rm -f conftest.$ac_objext conftest$ac_exeext
10574 if { (ac_try="$ac_link"
10575 case "(($ac_try" in
10576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10577 *) ac_try_echo=$ac_try;;
10578 esac
10579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10580 (eval "$ac_link") 2>conftest.er1
10581 ac_status=$?
10582 grep -v '^ *+' conftest.er1 >conftest.err
10583 rm -f conftest.er1
10584 cat conftest.err >&5
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); } && {
10587 test -z "$ac_c_werror_flag" ||
10588 test ! -s conftest.err
10589 } && test -s conftest$ac_exeext &&
10590 $as_test_x conftest$ac_exeext; then
10591 xlinux_first_failure=no
10592 else
10593 echo "$as_me: failed program was:" >&5
10594 sed 's/^/| /' conftest.$ac_ext >&5
10595
10596 xlinux_first_failure=yes
10597 fi
10598
10599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10600 conftest$ac_exeext conftest.$ac_ext
10601 if test "${xlinux_first_failure}" = "yes"; then
10602 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10603 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10604 OLD_CPPFLAGS="$CPPFLAGS"
10605 OLD_LIBS="$LIBS"
10606 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10607 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10608 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10609 LIBS="$LIBS -b i486-linuxaout"
10610 cat >conftest.$ac_ext <<_ACEOF
10611 /* confdefs.h. */
10612 _ACEOF
10613 cat confdefs.h >>conftest.$ac_ext
10614 cat >>conftest.$ac_ext <<_ACEOF
10615 /* end confdefs.h. */
10616
10617 int
10618 main ()
10619 {
10620 XOpenDisplay ("foo");
10621 ;
10622 return 0;
10623 }
10624 _ACEOF
10625 rm -f conftest.$ac_objext conftest$ac_exeext
10626 if { (ac_try="$ac_link"
10627 case "(($ac_try" in
10628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10629 *) ac_try_echo=$ac_try;;
10630 esac
10631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10632 (eval "$ac_link") 2>conftest.er1
10633 ac_status=$?
10634 grep -v '^ *+' conftest.er1 >conftest.err
10635 rm -f conftest.er1
10636 cat conftest.err >&5
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); } && {
10639 test -z "$ac_c_werror_flag" ||
10640 test ! -s conftest.err
10641 } && test -s conftest$ac_exeext &&
10642 $as_test_x conftest$ac_exeext; then
10643 xlinux_second_failure=no
10644 else
10645 echo "$as_me: failed program was:" >&5
10646 sed 's/^/| /' conftest.$ac_ext >&5
10647
10648 xlinux_second_failure=yes
10649 fi
10650
10651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10652 conftest$ac_exeext conftest.$ac_ext
10653 if test "${xlinux_second_failure}" = "yes"; then
10654 # If we get the same failure with -b, there is no use adding -b.
10655 # So take it out. This plays safe.
10656 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10657 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10658 CPPFLAGS="$OLD_CPPFLAGS"
10659 LIBS="$OLD_LIBS"
10660 { echo "$as_me:$LINENO: result: no" >&5
10661 echo "${ECHO_T}no" >&6; }
10662 else
10663 { echo "$as_me:$LINENO: result: yes" >&5
10664 echo "${ECHO_T}yes" >&6; }
10665 fi
10666 else
10667 { echo "$as_me:$LINENO: result: no" >&5
10668 echo "${ECHO_T}no" >&6; }
10669 fi
10670 fi
10671
10672 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10673 # header files included from there.
10674 { echo "$as_me:$LINENO: checking for Xkb" >&5
10675 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10676 cat >conftest.$ac_ext <<_ACEOF
10677 /* confdefs.h. */
10678 _ACEOF
10679 cat confdefs.h >>conftest.$ac_ext
10680 cat >>conftest.$ac_ext <<_ACEOF
10681 /* end confdefs.h. */
10682 #include <X11/Xlib.h>
10683 #include <X11/XKBlib.h>
10684 int
10685 main ()
10686 {
10687 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10688 ;
10689 return 0;
10690 }
10691 _ACEOF
10692 rm -f conftest.$ac_objext conftest$ac_exeext
10693 if { (ac_try="$ac_link"
10694 case "(($ac_try" in
10695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10696 *) ac_try_echo=$ac_try;;
10697 esac
10698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10699 (eval "$ac_link") 2>conftest.er1
10700 ac_status=$?
10701 grep -v '^ *+' conftest.er1 >conftest.err
10702 rm -f conftest.er1
10703 cat conftest.err >&5
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); } && {
10706 test -z "$ac_c_werror_flag" ||
10707 test ! -s conftest.err
10708 } && test -s conftest$ac_exeext &&
10709 $as_test_x conftest$ac_exeext; then
10710 emacs_xkb=yes
10711 else
10712 echo "$as_me: failed program was:" >&5
10713 sed 's/^/| /' conftest.$ac_ext >&5
10714
10715 emacs_xkb=no
10716 fi
10717
10718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10719 conftest$ac_exeext conftest.$ac_ext
10720 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10721 echo "${ECHO_T}$emacs_xkb" >&6; }
10722 if test $emacs_xkb = yes; then
10723
10724 cat >>confdefs.h <<\_ACEOF
10725 #define HAVE_XKBGETKEYBOARD 1
10726 _ACEOF
10727
10728 fi
10729
10730
10731
10732
10733
10734 for ac_func in XrmSetDatabase XScreenResourceString \
10735 XScreenNumberOfScreen XSetWMProtocols
10736 do
10737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10738 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10740 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10741 echo $ECHO_N "(cached) $ECHO_C" >&6
10742 else
10743 cat >conftest.$ac_ext <<_ACEOF
10744 /* confdefs.h. */
10745 _ACEOF
10746 cat confdefs.h >>conftest.$ac_ext
10747 cat >>conftest.$ac_ext <<_ACEOF
10748 /* end confdefs.h. */
10749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10751 #define $ac_func innocuous_$ac_func
10752
10753 /* System header to define __stub macros and hopefully few prototypes,
10754 which can conflict with char $ac_func (); below.
10755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10756 <limits.h> exists even on freestanding compilers. */
10757
10758 #ifdef __STDC__
10759 # include <limits.h>
10760 #else
10761 # include <assert.h>
10762 #endif
10763
10764 #undef $ac_func
10765
10766 /* Override any GCC internal prototype to avoid an error.
10767 Use char because int might match the return type of a GCC
10768 builtin and then its argument prototype would still apply. */
10769 #ifdef __cplusplus
10770 extern "C"
10771 #endif
10772 char $ac_func ();
10773 /* The GNU C library defines this for functions which it implements
10774 to always fail with ENOSYS. Some functions are actually named
10775 something starting with __ and the normal name is an alias. */
10776 #if defined __stub_$ac_func || defined __stub___$ac_func
10777 choke me
10778 #endif
10779
10780 int
10781 main ()
10782 {
10783 return $ac_func ();
10784 ;
10785 return 0;
10786 }
10787 _ACEOF
10788 rm -f conftest.$ac_objext conftest$ac_exeext
10789 if { (ac_try="$ac_link"
10790 case "(($ac_try" in
10791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10792 *) ac_try_echo=$ac_try;;
10793 esac
10794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10795 (eval "$ac_link") 2>conftest.er1
10796 ac_status=$?
10797 grep -v '^ *+' conftest.er1 >conftest.err
10798 rm -f conftest.er1
10799 cat conftest.err >&5
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); } && {
10802 test -z "$ac_c_werror_flag" ||
10803 test ! -s conftest.err
10804 } && test -s conftest$ac_exeext &&
10805 $as_test_x conftest$ac_exeext; then
10806 eval "$as_ac_var=yes"
10807 else
10808 echo "$as_me: failed program was:" >&5
10809 sed 's/^/| /' conftest.$ac_ext >&5
10810
10811 eval "$as_ac_var=no"
10812 fi
10813
10814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10815 conftest$ac_exeext conftest.$ac_ext
10816 fi
10817 ac_res=`eval echo '${'$as_ac_var'}'`
10818 { echo "$as_me:$LINENO: result: $ac_res" >&5
10819 echo "${ECHO_T}$ac_res" >&6; }
10820 if test `eval echo '${'$as_ac_var'}'` = yes; then
10821 cat >>confdefs.h <<_ACEOF
10822 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10823 _ACEOF
10824
10825 fi
10826 done
10827
10828 fi
10829
10830 if test "${window_system}" = "x11"; then
10831 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10832 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10833 if test "${emacs_cv_x11_version_6+set}" = set; then
10834 echo $ECHO_N "(cached) $ECHO_C" >&6
10835 else
10836 cat >conftest.$ac_ext <<_ACEOF
10837 /* confdefs.h. */
10838 _ACEOF
10839 cat confdefs.h >>conftest.$ac_ext
10840 cat >>conftest.$ac_ext <<_ACEOF
10841 /* end confdefs.h. */
10842 #include <X11/Xlib.h>
10843 int
10844 main ()
10845 {
10846 #if XlibSpecificationRelease < 6
10847 fail;
10848 #endif
10849
10850 ;
10851 return 0;
10852 }
10853 _ACEOF
10854 rm -f conftest.$ac_objext conftest$ac_exeext
10855 if { (ac_try="$ac_link"
10856 case "(($ac_try" in
10857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10858 *) ac_try_echo=$ac_try;;
10859 esac
10860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10861 (eval "$ac_link") 2>conftest.er1
10862 ac_status=$?
10863 grep -v '^ *+' conftest.er1 >conftest.err
10864 rm -f conftest.er1
10865 cat conftest.err >&5
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); } && {
10868 test -z "$ac_c_werror_flag" ||
10869 test ! -s conftest.err
10870 } && test -s conftest$ac_exeext &&
10871 $as_test_x conftest$ac_exeext; then
10872 emacs_cv_x11_version_6=yes
10873 else
10874 echo "$as_me: failed program was:" >&5
10875 sed 's/^/| /' conftest.$ac_ext >&5
10876
10877 emacs_cv_x11_version_6=no
10878 fi
10879
10880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10881 conftest$ac_exeext conftest.$ac_ext
10882 fi
10883
10884 if test $emacs_cv_x11_version_6 = yes; then
10885 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10886 echo "${ECHO_T}6 or newer" >&6; }
10887
10888 cat >>confdefs.h <<\_ACEOF
10889 #define HAVE_X11R6 1
10890 _ACEOF
10891
10892 else
10893 { echo "$as_me:$LINENO: result: before 6" >&5
10894 echo "${ECHO_T}before 6" >&6; }
10895 fi
10896 fi
10897
10898 if test "${window_system}" = "x11"; then
10899 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10900 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10901 if test "${emacs_cv_x11_version_5+set}" = set; then
10902 echo $ECHO_N "(cached) $ECHO_C" >&6
10903 else
10904 cat >conftest.$ac_ext <<_ACEOF
10905 /* confdefs.h. */
10906 _ACEOF
10907 cat confdefs.h >>conftest.$ac_ext
10908 cat >>conftest.$ac_ext <<_ACEOF
10909 /* end confdefs.h. */
10910 #include <X11/Xlib.h>
10911 int
10912 main ()
10913 {
10914 #if XlibSpecificationRelease < 5
10915 fail;
10916 #endif
10917
10918 ;
10919 return 0;
10920 }
10921 _ACEOF
10922 rm -f conftest.$ac_objext conftest$ac_exeext
10923 if { (ac_try="$ac_link"
10924 case "(($ac_try" in
10925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10926 *) ac_try_echo=$ac_try;;
10927 esac
10928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10929 (eval "$ac_link") 2>conftest.er1
10930 ac_status=$?
10931 grep -v '^ *+' conftest.er1 >conftest.err
10932 rm -f conftest.er1
10933 cat conftest.err >&5
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); } && {
10936 test -z "$ac_c_werror_flag" ||
10937 test ! -s conftest.err
10938 } && test -s conftest$ac_exeext &&
10939 $as_test_x conftest$ac_exeext; then
10940 emacs_cv_x11_version_5=yes
10941 else
10942 echo "$as_me: failed program was:" >&5
10943 sed 's/^/| /' conftest.$ac_ext >&5
10944
10945 emacs_cv_x11_version_5=no
10946 fi
10947
10948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10949 conftest$ac_exeext conftest.$ac_ext
10950 fi
10951
10952 if test $emacs_cv_x11_version_5 = yes; then
10953 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10954 echo "${ECHO_T}5 or newer" >&6; }
10955 HAVE_X11R5=yes
10956
10957 cat >>confdefs.h <<\_ACEOF
10958 #define HAVE_X11R5 1
10959 _ACEOF
10960
10961 else
10962 HAVE_X11R5=no
10963 { echo "$as_me:$LINENO: result: before 5" >&5
10964 echo "${ECHO_T}before 5" >&6; }
10965 fi
10966 fi
10967
10968 HAVE_GTK=no
10969 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10970 USE_X_TOOLKIT=none
10971 fi
10972 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10973 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10974 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10975 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10976 { (exit 1); exit 1; }; };
10977 fi
10978 GLIB_REQUIRED=2.4
10979 GTK_REQUIRED=2.4
10980 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10981
10982 if test "X${with_pkg_config_prog}" != X; then
10983 PKG_CONFIG="${with_pkg_config_prog}"
10984 fi
10985
10986 succeeded=no
10987
10988 if test -z "$PKG_CONFIG"; then
10989 # Extract the first word of "pkg-config", so it can be a program name with args.
10990 set dummy pkg-config; ac_word=$2
10991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10993 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10994 echo $ECHO_N "(cached) $ECHO_C" >&6
10995 else
10996 case $PKG_CONFIG in
10997 [\\/]* | ?:[\\/]*)
10998 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10999 ;;
11000 *)
11001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11002 for as_dir in $PATH
11003 do
11004 IFS=$as_save_IFS
11005 test -z "$as_dir" && as_dir=.
11006 for ac_exec_ext in '' $ac_executable_extensions; do
11007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11008 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11010 break 2
11011 fi
11012 done
11013 done
11014 IFS=$as_save_IFS
11015
11016 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11017 ;;
11018 esac
11019 fi
11020 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11021 if test -n "$PKG_CONFIG"; then
11022 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11023 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11024 else
11025 { echo "$as_me:$LINENO: result: no" >&5
11026 echo "${ECHO_T}no" >&6; }
11027 fi
11028
11029
11030 fi
11031
11032 if test "$PKG_CONFIG" = "no" ; then
11033 { { echo "$as_me:$LINENO: error:
11034 *** 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
11035 echo "$as_me: error:
11036 *** 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;}
11037 { (exit 1); exit 1; }; }
11038 else
11039 PKG_CONFIG_MIN_VERSION=0.9.0
11040 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11041 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11042 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11043
11044 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11045 { echo "$as_me:$LINENO: result: yes" >&5
11046 echo "${ECHO_T}yes" >&6; }
11047 succeeded=yes
11048
11049 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11050 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11051 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11052 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11053 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11054
11055 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11056 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11057 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11058 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11059 echo "${ECHO_T}$GTK_LIBS" >&6; }
11060 else
11061 { echo "$as_me:$LINENO: result: no" >&5
11062 echo "${ECHO_T}no" >&6; }
11063 GTK_CFLAGS=""
11064 GTK_LIBS=""
11065 ## If we have a custom action on failure, don't print errors, but
11066 ## do set a variable so people can do so.
11067 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11068 echo $GTK_PKG_ERRORS
11069 fi
11070
11071
11072
11073 else
11074 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11075 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11076 fi
11077 fi
11078
11079 if test $succeeded = yes; then
11080 :
11081 else
11082 { { 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
11083 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;}
11084 { (exit 1); exit 1; }; }
11085 fi
11086
11087
11088
11089 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11090 CFLAGS="$CFLAGS $GTK_CFLAGS"
11091 LIBS="$GTK_LIBS $LIBS"
11092 GTK_COMPILES=no
11093
11094 for ac_func in gtk_main
11095 do
11096 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11097 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11098 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11099 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11100 echo $ECHO_N "(cached) $ECHO_C" >&6
11101 else
11102 cat >conftest.$ac_ext <<_ACEOF
11103 /* confdefs.h. */
11104 _ACEOF
11105 cat confdefs.h >>conftest.$ac_ext
11106 cat >>conftest.$ac_ext <<_ACEOF
11107 /* end confdefs.h. */
11108 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11109 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11110 #define $ac_func innocuous_$ac_func
11111
11112 /* System header to define __stub macros and hopefully few prototypes,
11113 which can conflict with char $ac_func (); below.
11114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11115 <limits.h> exists even on freestanding compilers. */
11116
11117 #ifdef __STDC__
11118 # include <limits.h>
11119 #else
11120 # include <assert.h>
11121 #endif
11122
11123 #undef $ac_func
11124
11125 /* Override any GCC internal prototype to avoid an error.
11126 Use char because int might match the return type of a GCC
11127 builtin and then its argument prototype would still apply. */
11128 #ifdef __cplusplus
11129 extern "C"
11130 #endif
11131 char $ac_func ();
11132 /* The GNU C library defines this for functions which it implements
11133 to always fail with ENOSYS. Some functions are actually named
11134 something starting with __ and the normal name is an alias. */
11135 #if defined __stub_$ac_func || defined __stub___$ac_func
11136 choke me
11137 #endif
11138
11139 int
11140 main ()
11141 {
11142 return $ac_func ();
11143 ;
11144 return 0;
11145 }
11146 _ACEOF
11147 rm -f conftest.$ac_objext conftest$ac_exeext
11148 if { (ac_try="$ac_link"
11149 case "(($ac_try" in
11150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11151 *) ac_try_echo=$ac_try;;
11152 esac
11153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11154 (eval "$ac_link") 2>conftest.er1
11155 ac_status=$?
11156 grep -v '^ *+' conftest.er1 >conftest.err
11157 rm -f conftest.er1
11158 cat conftest.err >&5
11159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160 (exit $ac_status); } && {
11161 test -z "$ac_c_werror_flag" ||
11162 test ! -s conftest.err
11163 } && test -s conftest$ac_exeext &&
11164 $as_test_x conftest$ac_exeext; then
11165 eval "$as_ac_var=yes"
11166 else
11167 echo "$as_me: failed program was:" >&5
11168 sed 's/^/| /' conftest.$ac_ext >&5
11169
11170 eval "$as_ac_var=no"
11171 fi
11172
11173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11174 conftest$ac_exeext conftest.$ac_ext
11175 fi
11176 ac_res=`eval echo '${'$as_ac_var'}'`
11177 { echo "$as_me:$LINENO: result: $ac_res" >&5
11178 echo "${ECHO_T}$ac_res" >&6; }
11179 if test `eval echo '${'$as_ac_var'}'` = yes; then
11180 cat >>confdefs.h <<_ACEOF
11181 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11182 _ACEOF
11183 GTK_COMPILES=yes
11184 fi
11185 done
11186
11187 if test "${GTK_COMPILES}" != "yes"; then
11188 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11189 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11190 { (exit 1); exit 1; }; };
11191 fi
11192
11193 HAVE_GTK=yes
11194
11195 cat >>confdefs.h <<\_ACEOF
11196 #define HAVE_GTK 1
11197 _ACEOF
11198
11199 USE_X_TOOLKIT=none
11200
11201 if test "$with_toolkit_scroll_bars" != no; then
11202 with_toolkit_scroll_bars=yes
11203 fi
11204
11205 HAVE_GTK_MULTIDISPLAY=no
11206
11207 for ac_func in gdk_display_open
11208 do
11209 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11210 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11211 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11212 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11213 echo $ECHO_N "(cached) $ECHO_C" >&6
11214 else
11215 cat >conftest.$ac_ext <<_ACEOF
11216 /* confdefs.h. */
11217 _ACEOF
11218 cat confdefs.h >>conftest.$ac_ext
11219 cat >>conftest.$ac_ext <<_ACEOF
11220 /* end confdefs.h. */
11221 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11223 #define $ac_func innocuous_$ac_func
11224
11225 /* System header to define __stub macros and hopefully few prototypes,
11226 which can conflict with char $ac_func (); below.
11227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11228 <limits.h> exists even on freestanding compilers. */
11229
11230 #ifdef __STDC__
11231 # include <limits.h>
11232 #else
11233 # include <assert.h>
11234 #endif
11235
11236 #undef $ac_func
11237
11238 /* Override any GCC internal prototype to avoid an error.
11239 Use char because int might match the return type of a GCC
11240 builtin and then its argument prototype would still apply. */
11241 #ifdef __cplusplus
11242 extern "C"
11243 #endif
11244 char $ac_func ();
11245 /* The GNU C library defines this for functions which it implements
11246 to always fail with ENOSYS. Some functions are actually named
11247 something starting with __ and the normal name is an alias. */
11248 #if defined __stub_$ac_func || defined __stub___$ac_func
11249 choke me
11250 #endif
11251
11252 int
11253 main ()
11254 {
11255 return $ac_func ();
11256 ;
11257 return 0;
11258 }
11259 _ACEOF
11260 rm -f conftest.$ac_objext conftest$ac_exeext
11261 if { (ac_try="$ac_link"
11262 case "(($ac_try" in
11263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11264 *) ac_try_echo=$ac_try;;
11265 esac
11266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11267 (eval "$ac_link") 2>conftest.er1
11268 ac_status=$?
11269 grep -v '^ *+' conftest.er1 >conftest.err
11270 rm -f conftest.er1
11271 cat conftest.err >&5
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); } && {
11274 test -z "$ac_c_werror_flag" ||
11275 test ! -s conftest.err
11276 } && test -s conftest$ac_exeext &&
11277 $as_test_x conftest$ac_exeext; then
11278 eval "$as_ac_var=yes"
11279 else
11280 echo "$as_me: failed program was:" >&5
11281 sed 's/^/| /' conftest.$ac_ext >&5
11282
11283 eval "$as_ac_var=no"
11284 fi
11285
11286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11287 conftest$ac_exeext conftest.$ac_ext
11288 fi
11289 ac_res=`eval echo '${'$as_ac_var'}'`
11290 { echo "$as_me:$LINENO: result: $ac_res" >&5
11291 echo "${ECHO_T}$ac_res" >&6; }
11292 if test `eval echo '${'$as_ac_var'}'` = yes; then
11293 cat >>confdefs.h <<_ACEOF
11294 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11295 _ACEOF
11296 HAVE_GTK_MULTIDISPLAY=yes
11297 fi
11298 done
11299
11300 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11301
11302 cat >>confdefs.h <<\_ACEOF
11303 #define HAVE_GTK_MULTIDISPLAY 1
11304 _ACEOF
11305
11306 fi
11307 HAVE_GTK_FILE_SELECTION=no
11308
11309 for ac_func in gtk_file_selection_new
11310 do
11311 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11312 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11313 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11314 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11315 echo $ECHO_N "(cached) $ECHO_C" >&6
11316 else
11317 cat >conftest.$ac_ext <<_ACEOF
11318 /* confdefs.h. */
11319 _ACEOF
11320 cat confdefs.h >>conftest.$ac_ext
11321 cat >>conftest.$ac_ext <<_ACEOF
11322 /* end confdefs.h. */
11323 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11325 #define $ac_func innocuous_$ac_func
11326
11327 /* System header to define __stub macros and hopefully few prototypes,
11328 which can conflict with char $ac_func (); below.
11329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11330 <limits.h> exists even on freestanding compilers. */
11331
11332 #ifdef __STDC__
11333 # include <limits.h>
11334 #else
11335 # include <assert.h>
11336 #endif
11337
11338 #undef $ac_func
11339
11340 /* Override any GCC internal prototype to avoid an error.
11341 Use char because int might match the return type of a GCC
11342 builtin and then its argument prototype would still apply. */
11343 #ifdef __cplusplus
11344 extern "C"
11345 #endif
11346 char $ac_func ();
11347 /* The GNU C library defines this for functions which it implements
11348 to always fail with ENOSYS. Some functions are actually named
11349 something starting with __ and the normal name is an alias. */
11350 #if defined __stub_$ac_func || defined __stub___$ac_func
11351 choke me
11352 #endif
11353
11354 int
11355 main ()
11356 {
11357 return $ac_func ();
11358 ;
11359 return 0;
11360 }
11361 _ACEOF
11362 rm -f conftest.$ac_objext conftest$ac_exeext
11363 if { (ac_try="$ac_link"
11364 case "(($ac_try" in
11365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11366 *) ac_try_echo=$ac_try;;
11367 esac
11368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11369 (eval "$ac_link") 2>conftest.er1
11370 ac_status=$?
11371 grep -v '^ *+' conftest.er1 >conftest.err
11372 rm -f conftest.er1
11373 cat conftest.err >&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); } && {
11376 test -z "$ac_c_werror_flag" ||
11377 test ! -s conftest.err
11378 } && test -s conftest$ac_exeext &&
11379 $as_test_x conftest$ac_exeext; then
11380 eval "$as_ac_var=yes"
11381 else
11382 echo "$as_me: failed program was:" >&5
11383 sed 's/^/| /' conftest.$ac_ext >&5
11384
11385 eval "$as_ac_var=no"
11386 fi
11387
11388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11389 conftest$ac_exeext conftest.$ac_ext
11390 fi
11391 ac_res=`eval echo '${'$as_ac_var'}'`
11392 { echo "$as_me:$LINENO: result: $ac_res" >&5
11393 echo "${ECHO_T}$ac_res" >&6; }
11394 if test `eval echo '${'$as_ac_var'}'` = yes; then
11395 cat >>confdefs.h <<_ACEOF
11396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11397 _ACEOF
11398 HAVE_GTK_FILE_SELECTION=yes
11399 fi
11400 done
11401
11402
11403 HAVE_GTK_FILE_CHOOSER=no
11404
11405 for ac_func in gtk_file_chooser_dialog_new
11406 do
11407 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11408 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11409 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11410 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11411 echo $ECHO_N "(cached) $ECHO_C" >&6
11412 else
11413 cat >conftest.$ac_ext <<_ACEOF
11414 /* confdefs.h. */
11415 _ACEOF
11416 cat confdefs.h >>conftest.$ac_ext
11417 cat >>conftest.$ac_ext <<_ACEOF
11418 /* end confdefs.h. */
11419 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11421 #define $ac_func innocuous_$ac_func
11422
11423 /* System header to define __stub macros and hopefully few prototypes,
11424 which can conflict with char $ac_func (); below.
11425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11426 <limits.h> exists even on freestanding compilers. */
11427
11428 #ifdef __STDC__
11429 # include <limits.h>
11430 #else
11431 # include <assert.h>
11432 #endif
11433
11434 #undef $ac_func
11435
11436 /* Override any GCC internal prototype to avoid an error.
11437 Use char because int might match the return type of a GCC
11438 builtin and then its argument prototype would still apply. */
11439 #ifdef __cplusplus
11440 extern "C"
11441 #endif
11442 char $ac_func ();
11443 /* The GNU C library defines this for functions which it implements
11444 to always fail with ENOSYS. Some functions are actually named
11445 something starting with __ and the normal name is an alias. */
11446 #if defined __stub_$ac_func || defined __stub___$ac_func
11447 choke me
11448 #endif
11449
11450 int
11451 main ()
11452 {
11453 return $ac_func ();
11454 ;
11455 return 0;
11456 }
11457 _ACEOF
11458 rm -f conftest.$ac_objext conftest$ac_exeext
11459 if { (ac_try="$ac_link"
11460 case "(($ac_try" in
11461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11462 *) ac_try_echo=$ac_try;;
11463 esac
11464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11465 (eval "$ac_link") 2>conftest.er1
11466 ac_status=$?
11467 grep -v '^ *+' conftest.er1 >conftest.err
11468 rm -f conftest.er1
11469 cat conftest.err >&5
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); } && {
11472 test -z "$ac_c_werror_flag" ||
11473 test ! -s conftest.err
11474 } && test -s conftest$ac_exeext &&
11475 $as_test_x conftest$ac_exeext; then
11476 eval "$as_ac_var=yes"
11477 else
11478 echo "$as_me: failed program was:" >&5
11479 sed 's/^/| /' conftest.$ac_ext >&5
11480
11481 eval "$as_ac_var=no"
11482 fi
11483
11484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11485 conftest$ac_exeext conftest.$ac_ext
11486 fi
11487 ac_res=`eval echo '${'$as_ac_var'}'`
11488 { echo "$as_me:$LINENO: result: $ac_res" >&5
11489 echo "${ECHO_T}$ac_res" >&6; }
11490 if test `eval echo '${'$as_ac_var'}'` = yes; then
11491 cat >>confdefs.h <<_ACEOF
11492 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11493 _ACEOF
11494 HAVE_GTK_FILE_CHOOSER=yes
11495 fi
11496 done
11497
11498
11499 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11500 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11501
11502 cat >>confdefs.h <<\_ACEOF
11503 #define HAVE_GTK_FILE_BOTH 1
11504 _ACEOF
11505
11506 fi
11507
11508 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11509 HAVE_GTK_AND_PTHREAD=no
11510
11511 for ac_header in pthread.h
11512 do
11513 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11515 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11518 echo $ECHO_N "(cached) $ECHO_C" >&6
11519 fi
11520 ac_res=`eval echo '${'$as_ac_Header'}'`
11521 { echo "$as_me:$LINENO: result: $ac_res" >&5
11522 echo "${ECHO_T}$ac_res" >&6; }
11523 else
11524 # Is the header compilable?
11525 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11526 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11527 cat >conftest.$ac_ext <<_ACEOF
11528 /* confdefs.h. */
11529 _ACEOF
11530 cat confdefs.h >>conftest.$ac_ext
11531 cat >>conftest.$ac_ext <<_ACEOF
11532 /* end confdefs.h. */
11533 $ac_includes_default
11534 #include <$ac_header>
11535 _ACEOF
11536 rm -f conftest.$ac_objext
11537 if { (ac_try="$ac_compile"
11538 case "(($ac_try" in
11539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11540 *) ac_try_echo=$ac_try;;
11541 esac
11542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11543 (eval "$ac_compile") 2>conftest.er1
11544 ac_status=$?
11545 grep -v '^ *+' conftest.er1 >conftest.err
11546 rm -f conftest.er1
11547 cat conftest.err >&5
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); } && {
11550 test -z "$ac_c_werror_flag" ||
11551 test ! -s conftest.err
11552 } && test -s conftest.$ac_objext; then
11553 ac_header_compiler=yes
11554 else
11555 echo "$as_me: failed program was:" >&5
11556 sed 's/^/| /' conftest.$ac_ext >&5
11557
11558 ac_header_compiler=no
11559 fi
11560
11561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11562 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11563 echo "${ECHO_T}$ac_header_compiler" >&6; }
11564
11565 # Is the header present?
11566 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11567 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11568 cat >conftest.$ac_ext <<_ACEOF
11569 /* confdefs.h. */
11570 _ACEOF
11571 cat confdefs.h >>conftest.$ac_ext
11572 cat >>conftest.$ac_ext <<_ACEOF
11573 /* end confdefs.h. */
11574 #include <$ac_header>
11575 _ACEOF
11576 if { (ac_try="$ac_cpp conftest.$ac_ext"
11577 case "(($ac_try" in
11578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11579 *) ac_try_echo=$ac_try;;
11580 esac
11581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11583 ac_status=$?
11584 grep -v '^ *+' conftest.er1 >conftest.err
11585 rm -f conftest.er1
11586 cat conftest.err >&5
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); } >/dev/null && {
11589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11590 test ! -s conftest.err
11591 }; then
11592 ac_header_preproc=yes
11593 else
11594 echo "$as_me: failed program was:" >&5
11595 sed 's/^/| /' conftest.$ac_ext >&5
11596
11597 ac_header_preproc=no
11598 fi
11599
11600 rm -f conftest.err conftest.$ac_ext
11601 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11602 echo "${ECHO_T}$ac_header_preproc" >&6; }
11603
11604 # So? What about this header?
11605 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11606 yes:no: )
11607 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11608 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11610 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11611 ac_header_preproc=yes
11612 ;;
11613 no:yes:* )
11614 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11615 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11616 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11617 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11618 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11619 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11620 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11621 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11623 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11624 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11625 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11626
11627 ;;
11628 esac
11629 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11632 echo $ECHO_N "(cached) $ECHO_C" >&6
11633 else
11634 eval "$as_ac_Header=\$ac_header_preproc"
11635 fi
11636 ac_res=`eval echo '${'$as_ac_Header'}'`
11637 { echo "$as_me:$LINENO: result: $ac_res" >&5
11638 echo "${ECHO_T}$ac_res" >&6; }
11639
11640 fi
11641 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11642 cat >>confdefs.h <<_ACEOF
11643 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11644 _ACEOF
11645
11646 fi
11647
11648 done
11649
11650 if test "$ac_cv_header_pthread_h"; then
11651 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11652 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11653 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11654 echo $ECHO_N "(cached) $ECHO_C" >&6
11655 else
11656 ac_check_lib_save_LIBS=$LIBS
11657 LIBS="-lpthread $LIBS"
11658 cat >conftest.$ac_ext <<_ACEOF
11659 /* confdefs.h. */
11660 _ACEOF
11661 cat confdefs.h >>conftest.$ac_ext
11662 cat >>conftest.$ac_ext <<_ACEOF
11663 /* end confdefs.h. */
11664
11665 /* Override any GCC internal prototype to avoid an error.
11666 Use char because int might match the return type of a GCC
11667 builtin and then its argument prototype would still apply. */
11668 #ifdef __cplusplus
11669 extern "C"
11670 #endif
11671 char pthread_self ();
11672 int
11673 main ()
11674 {
11675 return pthread_self ();
11676 ;
11677 return 0;
11678 }
11679 _ACEOF
11680 rm -f conftest.$ac_objext conftest$ac_exeext
11681 if { (ac_try="$ac_link"
11682 case "(($ac_try" in
11683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11684 *) ac_try_echo=$ac_try;;
11685 esac
11686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11687 (eval "$ac_link") 2>conftest.er1
11688 ac_status=$?
11689 grep -v '^ *+' conftest.er1 >conftest.err
11690 rm -f conftest.er1
11691 cat conftest.err >&5
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); } && {
11694 test -z "$ac_c_werror_flag" ||
11695 test ! -s conftest.err
11696 } && test -s conftest$ac_exeext &&
11697 $as_test_x conftest$ac_exeext; then
11698 ac_cv_lib_pthread_pthread_self=yes
11699 else
11700 echo "$as_me: failed program was:" >&5
11701 sed 's/^/| /' conftest.$ac_ext >&5
11702
11703 ac_cv_lib_pthread_pthread_self=no
11704 fi
11705
11706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11707 conftest$ac_exeext conftest.$ac_ext
11708 LIBS=$ac_check_lib_save_LIBS
11709 fi
11710 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11711 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11712 if test $ac_cv_lib_pthread_pthread_self = yes; then
11713 HAVE_GTK_AND_PTHREAD=yes
11714 fi
11715
11716 fi
11717 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11718 GTK_LIBS="$GTK_LIBS -lpthread"
11719
11720 cat >>confdefs.h <<\_ACEOF
11721 #define HAVE_GTK_AND_PTHREAD 1
11722 _ACEOF
11723
11724 fi
11725 fi
11726 fi
11727
11728 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11729 if test x"${HAVE_X11R5}" = xyes; then
11730 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11731 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
11732 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
11734 else
11735 cat >conftest.$ac_ext <<_ACEOF
11736 /* confdefs.h. */
11737 _ACEOF
11738 cat confdefs.h >>conftest.$ac_ext
11739 cat >>conftest.$ac_ext <<_ACEOF
11740 /* end confdefs.h. */
11741
11742 #include <X11/Intrinsic.h>
11743 #include <X11/Xaw/Simple.h>
11744 int
11745 main ()
11746 {
11747
11748 ;
11749 return 0;
11750 }
11751 _ACEOF
11752 rm -f conftest.$ac_objext conftest$ac_exeext
11753 if { (ac_try="$ac_link"
11754 case "(($ac_try" in
11755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11756 *) ac_try_echo=$ac_try;;
11757 esac
11758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11759 (eval "$ac_link") 2>conftest.er1
11760 ac_status=$?
11761 grep -v '^ *+' conftest.er1 >conftest.err
11762 rm -f conftest.er1
11763 cat conftest.err >&5
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); } && {
11766 test -z "$ac_c_werror_flag" ||
11767 test ! -s conftest.err
11768 } && test -s conftest$ac_exeext &&
11769 $as_test_x conftest$ac_exeext; then
11770 emacs_cv_x11_version_5_with_xaw=yes
11771 else
11772 echo "$as_me: failed program was:" >&5
11773 sed 's/^/| /' conftest.$ac_ext >&5
11774
11775 emacs_cv_x11_version_5_with_xaw=no
11776 fi
11777
11778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11779 conftest$ac_exeext conftest.$ac_ext
11780 fi
11781
11782 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11783 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11784 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
11785 USE_X_TOOLKIT=LUCID
11786 else
11787 if test x"${USE_X_TOOLKIT}" = xLUCID; then
11788 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11789 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11790 { (exit 1); exit 1; }; }
11791 else
11792 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11793 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
11794 USE_X_TOOLKIT=none
11795 fi
11796 fi
11797 else
11798 USE_X_TOOLKIT=none
11799 fi
11800 fi
11801
11802 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11803
11804 if test "${USE_X_TOOLKIT}" != "none"; then
11805 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11806 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11807 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11808 echo $ECHO_N "(cached) $ECHO_C" >&6
11809 else
11810 cat >conftest.$ac_ext <<_ACEOF
11811 /* confdefs.h. */
11812 _ACEOF
11813 cat confdefs.h >>conftest.$ac_ext
11814 cat >>conftest.$ac_ext <<_ACEOF
11815 /* end confdefs.h. */
11816 #include <X11/Intrinsic.h>
11817 int
11818 main ()
11819 {
11820 #if XtSpecificationRelease < 6
11821 fail;
11822 #endif
11823
11824 ;
11825 return 0;
11826 }
11827 _ACEOF
11828 rm -f conftest.$ac_objext conftest$ac_exeext
11829 if { (ac_try="$ac_link"
11830 case "(($ac_try" in
11831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11832 *) ac_try_echo=$ac_try;;
11833 esac
11834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11835 (eval "$ac_link") 2>conftest.er1
11836 ac_status=$?
11837 grep -v '^ *+' conftest.er1 >conftest.err
11838 rm -f conftest.er1
11839 cat conftest.err >&5
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); } && {
11842 test -z "$ac_c_werror_flag" ||
11843 test ! -s conftest.err
11844 } && test -s conftest$ac_exeext &&
11845 $as_test_x conftest$ac_exeext; then
11846 emacs_cv_x11_toolkit_version_6=yes
11847 else
11848 echo "$as_me: failed program was:" >&5
11849 sed 's/^/| /' conftest.$ac_ext >&5
11850
11851 emacs_cv_x11_toolkit_version_6=no
11852 fi
11853
11854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11855 conftest$ac_exeext conftest.$ac_ext
11856 fi
11857
11858 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11859 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11860 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11861 echo "${ECHO_T}6 or newer" >&6; }
11862
11863 cat >>confdefs.h <<\_ACEOF
11864 #define HAVE_X11XTR6 1
11865 _ACEOF
11866
11867 else
11868 { echo "$as_me:$LINENO: result: before 6" >&5
11869 echo "${ECHO_T}before 6" >&6; }
11870 fi
11871
11872 OLDLIBS="$LIBS"
11873 if test x$HAVE_X11XTR6 = xyes; then
11874 LIBS="-lXt -lSM -lICE $LIBS"
11875 else
11876 LIBS="-lXt $LIBS"
11877 fi
11878
11879 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11880 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11881 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11882 echo $ECHO_N "(cached) $ECHO_C" >&6
11883 else
11884 ac_check_lib_save_LIBS=$LIBS
11885 LIBS="-lXmu $LIBS"
11886 cat >conftest.$ac_ext <<_ACEOF
11887 /* confdefs.h. */
11888 _ACEOF
11889 cat confdefs.h >>conftest.$ac_ext
11890 cat >>conftest.$ac_ext <<_ACEOF
11891 /* end confdefs.h. */
11892
11893 /* Override any GCC internal prototype to avoid an error.
11894 Use char because int might match the return type of a GCC
11895 builtin and then its argument prototype would still apply. */
11896 #ifdef __cplusplus
11897 extern "C"
11898 #endif
11899 char XmuConvertStandardSelection ();
11900 int
11901 main ()
11902 {
11903 return XmuConvertStandardSelection ();
11904 ;
11905 return 0;
11906 }
11907 _ACEOF
11908 rm -f conftest.$ac_objext conftest$ac_exeext
11909 if { (ac_try="$ac_link"
11910 case "(($ac_try" in
11911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11912 *) ac_try_echo=$ac_try;;
11913 esac
11914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11915 (eval "$ac_link") 2>conftest.er1
11916 ac_status=$?
11917 grep -v '^ *+' conftest.er1 >conftest.err
11918 rm -f conftest.er1
11919 cat conftest.err >&5
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); } && {
11922 test -z "$ac_c_werror_flag" ||
11923 test ! -s conftest.err
11924 } && test -s conftest$ac_exeext &&
11925 $as_test_x conftest$ac_exeext; then
11926 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11927 else
11928 echo "$as_me: failed program was:" >&5
11929 sed 's/^/| /' conftest.$ac_ext >&5
11930
11931 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11932 fi
11933
11934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11935 conftest$ac_exeext conftest.$ac_ext
11936 LIBS=$ac_check_lib_save_LIBS
11937 fi
11938 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11939 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11940 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11941 cat >>confdefs.h <<_ACEOF
11942 #define HAVE_LIBXMU 1
11943 _ACEOF
11944
11945 LIBS="-lXmu $LIBS"
11946
11947 fi
11948
11949 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11950 fi
11951
11952 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11953 if test "${HAVE_X11}" = "yes"; then
11954 if test "${USE_X_TOOLKIT}" != "none"; then
11955
11956 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11957 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
11958 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11959 echo $ECHO_N "(cached) $ECHO_C" >&6
11960 else
11961 ac_check_lib_save_LIBS=$LIBS
11962 LIBS="-lXext $LIBS"
11963 cat >conftest.$ac_ext <<_ACEOF
11964 /* confdefs.h. */
11965 _ACEOF
11966 cat confdefs.h >>conftest.$ac_ext
11967 cat >>conftest.$ac_ext <<_ACEOF
11968 /* end confdefs.h. */
11969
11970 /* Override any GCC internal prototype to avoid an error.
11971 Use char because int might match the return type of a GCC
11972 builtin and then its argument prototype would still apply. */
11973 #ifdef __cplusplus
11974 extern "C"
11975 #endif
11976 char XShapeQueryExtension ();
11977 int
11978 main ()
11979 {
11980 return XShapeQueryExtension ();
11981 ;
11982 return 0;
11983 }
11984 _ACEOF
11985 rm -f conftest.$ac_objext conftest$ac_exeext
11986 if { (ac_try="$ac_link"
11987 case "(($ac_try" in
11988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11989 *) ac_try_echo=$ac_try;;
11990 esac
11991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11992 (eval "$ac_link") 2>conftest.er1
11993 ac_status=$?
11994 grep -v '^ *+' conftest.er1 >conftest.err
11995 rm -f conftest.er1
11996 cat conftest.err >&5
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); } && {
11999 test -z "$ac_c_werror_flag" ||
12000 test ! -s conftest.err
12001 } && test -s conftest$ac_exeext &&
12002 $as_test_x conftest$ac_exeext; then
12003 ac_cv_lib_Xext_XShapeQueryExtension=yes
12004 else
12005 echo "$as_me: failed program was:" >&5
12006 sed 's/^/| /' conftest.$ac_ext >&5
12007
12008 ac_cv_lib_Xext_XShapeQueryExtension=no
12009 fi
12010
12011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12012 conftest$ac_exeext conftest.$ac_ext
12013 LIBS=$ac_check_lib_save_LIBS
12014 fi
12015 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12016 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12017 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12018 cat >>confdefs.h <<_ACEOF
12019 #define HAVE_LIBXEXT 1
12020 _ACEOF
12021
12022 LIBS="-lXext $LIBS"
12023
12024 fi
12025
12026 fi
12027 fi
12028
12029 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12030 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12031 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12032 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12033 echo $ECHO_N "(cached) $ECHO_C" >&6
12034 else
12035 cat >conftest.$ac_ext <<_ACEOF
12036 /* confdefs.h. */
12037 _ACEOF
12038 cat confdefs.h >>conftest.$ac_ext
12039 cat >>conftest.$ac_ext <<_ACEOF
12040 /* end confdefs.h. */
12041 #include <Xm/Xm.h>
12042 int
12043 main ()
12044 {
12045 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12046 int x = 5;
12047 #else
12048 Motif version prior to 2.1.
12049 #endif
12050 ;
12051 return 0;
12052 }
12053 _ACEOF
12054 rm -f conftest.$ac_objext
12055 if { (ac_try="$ac_compile"
12056 case "(($ac_try" in
12057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12058 *) ac_try_echo=$ac_try;;
12059 esac
12060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12061 (eval "$ac_compile") 2>conftest.er1
12062 ac_status=$?
12063 grep -v '^ *+' conftest.er1 >conftest.err
12064 rm -f conftest.er1
12065 cat conftest.err >&5
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); } && {
12068 test -z "$ac_c_werror_flag" ||
12069 test ! -s conftest.err
12070 } && test -s conftest.$ac_objext; then
12071 emacs_cv_motif_version_2_1=yes
12072 else
12073 echo "$as_me: failed program was:" >&5
12074 sed 's/^/| /' conftest.$ac_ext >&5
12075
12076 emacs_cv_motif_version_2_1=no
12077 fi
12078
12079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12080 fi
12081 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12082 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12083 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12084 if test $emacs_cv_motif_version_2_1 = yes; then
12085 HAVE_LIBXP=no
12086
12087 cat >>confdefs.h <<\_ACEOF
12088 #define HAVE_MOTIF_2_1 1
12089 _ACEOF
12090
12091 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12092 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12093 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12094 echo $ECHO_N "(cached) $ECHO_C" >&6
12095 else
12096 ac_check_lib_save_LIBS=$LIBS
12097 LIBS="-lXp $LIBS"
12098 cat >conftest.$ac_ext <<_ACEOF
12099 /* confdefs.h. */
12100 _ACEOF
12101 cat confdefs.h >>conftest.$ac_ext
12102 cat >>conftest.$ac_ext <<_ACEOF
12103 /* end confdefs.h. */
12104
12105 /* Override any GCC internal prototype to avoid an error.
12106 Use char because int might match the return type of a GCC
12107 builtin and then its argument prototype would still apply. */
12108 #ifdef __cplusplus
12109 extern "C"
12110 #endif
12111 char XpCreateContext ();
12112 int
12113 main ()
12114 {
12115 return XpCreateContext ();
12116 ;
12117 return 0;
12118 }
12119 _ACEOF
12120 rm -f conftest.$ac_objext conftest$ac_exeext
12121 if { (ac_try="$ac_link"
12122 case "(($ac_try" in
12123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12124 *) ac_try_echo=$ac_try;;
12125 esac
12126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12127 (eval "$ac_link") 2>conftest.er1
12128 ac_status=$?
12129 grep -v '^ *+' conftest.er1 >conftest.err
12130 rm -f conftest.er1
12131 cat conftest.err >&5
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); } && {
12134 test -z "$ac_c_werror_flag" ||
12135 test ! -s conftest.err
12136 } && test -s conftest$ac_exeext &&
12137 $as_test_x conftest$ac_exeext; then
12138 ac_cv_lib_Xp_XpCreateContext=yes
12139 else
12140 echo "$as_me: failed program was:" >&5
12141 sed 's/^/| /' conftest.$ac_ext >&5
12142
12143 ac_cv_lib_Xp_XpCreateContext=no
12144 fi
12145
12146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12147 conftest$ac_exeext conftest.$ac_ext
12148 LIBS=$ac_check_lib_save_LIBS
12149 fi
12150 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12151 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12152 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12153 HAVE_LIBXP=yes
12154 fi
12155
12156 if test ${HAVE_LIBXP} = yes; then
12157
12158 cat >>confdefs.h <<\_ACEOF
12159 #define HAVE_LIBXP 1
12160 _ACEOF
12161
12162 fi
12163 else
12164 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12165 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12166 if test "${emacs_cv_lesstif+set}" = set; then
12167 echo $ECHO_N "(cached) $ECHO_C" >&6
12168 else
12169 # We put this in CFLAGS temporarily to precede other -I options
12170 # that might be in CFLAGS temporarily.
12171 # We put this in CPPFLAGS where it precedes the other -I options.
12172 OLD_CPPFLAGS=$CPPFLAGS
12173 OLD_CFLAGS=$CFLAGS
12174 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12175 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12176 cat >conftest.$ac_ext <<_ACEOF
12177 /* confdefs.h. */
12178 _ACEOF
12179 cat confdefs.h >>conftest.$ac_ext
12180 cat >>conftest.$ac_ext <<_ACEOF
12181 /* end confdefs.h. */
12182 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12183 int
12184 main ()
12185 {
12186 int x = 5;
12187 ;
12188 return 0;
12189 }
12190 _ACEOF
12191 rm -f conftest.$ac_objext
12192 if { (ac_try="$ac_compile"
12193 case "(($ac_try" in
12194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12195 *) ac_try_echo=$ac_try;;
12196 esac
12197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12198 (eval "$ac_compile") 2>conftest.er1
12199 ac_status=$?
12200 grep -v '^ *+' conftest.er1 >conftest.err
12201 rm -f conftest.er1
12202 cat conftest.err >&5
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); } && {
12205 test -z "$ac_c_werror_flag" ||
12206 test ! -s conftest.err
12207 } && test -s conftest.$ac_objext; then
12208 emacs_cv_lesstif=yes
12209 else
12210 echo "$as_me: failed program was:" >&5
12211 sed 's/^/| /' conftest.$ac_ext >&5
12212
12213 emacs_cv_lesstif=no
12214 fi
12215
12216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12217 fi
12218 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12219 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12220 if test $emacs_cv_lesstif = yes; then
12221 # Make sure this -I option remains in CPPFLAGS after it is set
12222 # back to REAL_CPPFLAGS.
12223 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12224 # have those other -I options anyway. Ultimately, having this
12225 # directory ultimately in CPPFLAGS will be enough.
12226 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12227 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12228 else
12229 CFLAGS=$OLD_CFLAGS
12230 CPPFLAGS=$OLD_CPPFLAGS
12231 fi
12232 fi
12233 fi
12234
12235 ### Is -lXaw3d available?
12236 HAVE_XAW3D=no
12237 if test "${HAVE_X11}" = "yes"; then
12238 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12239 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12240 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12241 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12242 echo $ECHO_N "(cached) $ECHO_C" >&6
12243 else
12244 cat >conftest.$ac_ext <<_ACEOF
12245 /* confdefs.h. */
12246 _ACEOF
12247 cat confdefs.h >>conftest.$ac_ext
12248 cat >>conftest.$ac_ext <<_ACEOF
12249 /* end confdefs.h. */
12250 #include <X11/Xaw3d/Scrollbar.h>
12251 _ACEOF
12252 if { (ac_try="$ac_cpp conftest.$ac_ext"
12253 case "(($ac_try" in
12254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12255 *) ac_try_echo=$ac_try;;
12256 esac
12257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12259 ac_status=$?
12260 grep -v '^ *+' conftest.er1 >conftest.err
12261 rm -f conftest.er1
12262 cat conftest.err >&5
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); } >/dev/null && {
12265 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12266 test ! -s conftest.err
12267 }; then
12268 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
12269 else
12270 echo "$as_me: failed program was:" >&5
12271 sed 's/^/| /' conftest.$ac_ext >&5
12272
12273 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
12274 fi
12275
12276 rm -f conftest.err conftest.$ac_ext
12277 fi
12278 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12279 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12280 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12281 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12282 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12283 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12284 echo $ECHO_N "(cached) $ECHO_C" >&6
12285 else
12286 ac_check_lib_save_LIBS=$LIBS
12287 LIBS="-lXaw3d $LIBS"
12288 cat >conftest.$ac_ext <<_ACEOF
12289 /* confdefs.h. */
12290 _ACEOF
12291 cat confdefs.h >>conftest.$ac_ext
12292 cat >>conftest.$ac_ext <<_ACEOF
12293 /* end confdefs.h. */
12294
12295 /* Override any GCC internal prototype to avoid an error.
12296 Use char because int might match the return type of a GCC
12297 builtin and then its argument prototype would still apply. */
12298 #ifdef __cplusplus
12299 extern "C"
12300 #endif
12301 char XawScrollbarSetThumb ();
12302 int
12303 main ()
12304 {
12305 return XawScrollbarSetThumb ();
12306 ;
12307 return 0;
12308 }
12309 _ACEOF
12310 rm -f conftest.$ac_objext conftest$ac_exeext
12311 if { (ac_try="$ac_link"
12312 case "(($ac_try" in
12313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12314 *) ac_try_echo=$ac_try;;
12315 esac
12316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12317 (eval "$ac_link") 2>conftest.er1
12318 ac_status=$?
12319 grep -v '^ *+' conftest.er1 >conftest.err
12320 rm -f conftest.er1
12321 cat conftest.err >&5
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); } && {
12324 test -z "$ac_c_werror_flag" ||
12325 test ! -s conftest.err
12326 } && test -s conftest$ac_exeext &&
12327 $as_test_x conftest$ac_exeext; then
12328 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12329 else
12330 echo "$as_me: failed program was:" >&5
12331 sed 's/^/| /' conftest.$ac_ext >&5
12332
12333 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12334 fi
12335
12336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12337 conftest$ac_exeext conftest.$ac_ext
12338 LIBS=$ac_check_lib_save_LIBS
12339 fi
12340 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12341 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12342 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12343 HAVE_XAW3D=yes
12344 fi
12345
12346 fi
12347
12348
12349 if test "${HAVE_XAW3D}" = "yes"; then
12350
12351 cat >>confdefs.h <<\_ACEOF
12352 #define HAVE_XAW3D 1
12353 _ACEOF
12354
12355 fi
12356 fi
12357 fi
12358
12359
12360
12361 USE_TOOLKIT_SCROLL_BARS=no
12362 if test "${with_toolkit_scroll_bars}" != "no"; then
12363 if test "${USE_X_TOOLKIT}" != "none"; then
12364 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12365 cat >>confdefs.h <<\_ACEOF
12366 #define USE_TOOLKIT_SCROLL_BARS 1
12367 _ACEOF
12368
12369 HAVE_XAW3D=no
12370 USE_TOOLKIT_SCROLL_BARS=yes
12371 elif test "${HAVE_XAW3D}" = "yes"; then
12372 cat >>confdefs.h <<\_ACEOF
12373 #define USE_TOOLKIT_SCROLL_BARS 1
12374 _ACEOF
12375
12376 USE_TOOLKIT_SCROLL_BARS=yes
12377 fi
12378 elif test "${HAVE_GTK}" = "yes"; then
12379 cat >>confdefs.h <<\_ACEOF
12380 #define USE_TOOLKIT_SCROLL_BARS 1
12381 _ACEOF
12382
12383 USE_TOOLKIT_SCROLL_BARS=yes
12384 elif test "${HAVE_CARBON}" = "yes"; then
12385 cat >>confdefs.h <<\_ACEOF
12386 #define USE_TOOLKIT_SCROLL_BARS 1
12387 _ACEOF
12388
12389 USE_TOOLKIT_SCROLL_BARS=yes
12390 fi
12391 fi
12392
12393 cat >conftest.$ac_ext <<_ACEOF
12394 /* confdefs.h. */
12395 _ACEOF
12396 cat confdefs.h >>conftest.$ac_ext
12397 cat >>conftest.$ac_ext <<_ACEOF
12398 /* end confdefs.h. */
12399
12400 #include <X11/Xlib.h>
12401 #include <X11/Xresource.h>
12402 int
12403 main ()
12404 {
12405 XIMProc callback;
12406 ;
12407 return 0;
12408 }
12409 _ACEOF
12410 rm -f conftest.$ac_objext
12411 if { (ac_try="$ac_compile"
12412 case "(($ac_try" in
12413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12414 *) ac_try_echo=$ac_try;;
12415 esac
12416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12417 (eval "$ac_compile") 2>conftest.er1
12418 ac_status=$?
12419 grep -v '^ *+' conftest.er1 >conftest.err
12420 rm -f conftest.er1
12421 cat conftest.err >&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); } && {
12424 test -z "$ac_c_werror_flag" ||
12425 test ! -s conftest.err
12426 } && test -s conftest.$ac_objext; then
12427 HAVE_XIM=yes
12428
12429 cat >>confdefs.h <<\_ACEOF
12430 #define HAVE_XIM 1
12431 _ACEOF
12432
12433 else
12434 echo "$as_me: failed program was:" >&5
12435 sed 's/^/| /' conftest.$ac_ext >&5
12436
12437 HAVE_XIM=no
12438 fi
12439
12440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12441
12442
12443 if test "${with_xim}" != "no"; then
12444
12445 cat >>confdefs.h <<\_ACEOF
12446 #define USE_XIM 1
12447 _ACEOF
12448
12449 fi
12450
12451
12452 if test "${HAVE_XIM}" != "no"; then
12453 late_CFLAGS=$CFLAGS
12454 if test "$GCC" = yes; then
12455 CFLAGS="$CFLAGS --pedantic-errors"
12456 fi
12457 cat >conftest.$ac_ext <<_ACEOF
12458 /* confdefs.h. */
12459 _ACEOF
12460 cat confdefs.h >>conftest.$ac_ext
12461 cat >>conftest.$ac_ext <<_ACEOF
12462 /* end confdefs.h. */
12463
12464 #include <X11/Xlib.h>
12465 #include <X11/Xresource.h>
12466 int
12467 main ()
12468 {
12469 Display *display;
12470 XrmDatabase db;
12471 char *res_name;
12472 char *res_class;
12473 XIMProc callback;
12474 XPointer *client_data;
12475 #ifndef __GNUC__
12476 /* If we're not using GCC, it's probably not XFree86, and this is
12477 probably right, but we can't use something like --pedantic-errors. */
12478 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12479 char*, XIMProc, XPointer*);
12480 #endif
12481 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12482 client_data);
12483 ;
12484 return 0;
12485 }
12486 _ACEOF
12487 rm -f conftest.$ac_objext
12488 if { (ac_try="$ac_compile"
12489 case "(($ac_try" in
12490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12491 *) ac_try_echo=$ac_try;;
12492 esac
12493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12494 (eval "$ac_compile") 2>conftest.er1
12495 ac_status=$?
12496 grep -v '^ *+' conftest.er1 >conftest.err
12497 rm -f conftest.er1
12498 cat conftest.err >&5
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); } && {
12501 test -z "$ac_c_werror_flag" ||
12502 test ! -s conftest.err
12503 } && test -s conftest.$ac_objext; then
12504 emacs_cv_arg6_star=yes
12505 else
12506 echo "$as_me: failed program was:" >&5
12507 sed 's/^/| /' conftest.$ac_ext >&5
12508
12509
12510 fi
12511
12512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12513
12514 if test "$emacs_cv_arg6_star" = yes; then
12515 cat >>confdefs.h <<\_ACEOF
12516 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12517 _ACEOF
12518
12519 else
12520 cat >>confdefs.h <<\_ACEOF
12521 #define XRegisterIMInstantiateCallback_arg6 XPointer
12522 _ACEOF
12523
12524 fi
12525 CFLAGS=$late_CFLAGS
12526 fi
12527
12528 ### For font-backend
12529 if test "${USE_FONT_BACKEND}" = "yes"; then
12530
12531
12532 cat >>confdefs.h <<\_ACEOF
12533 #define USE_FONT_BACKEND 1
12534 _ACEOF
12535
12536
12537 ### Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12538 HAVE_XFT=maybe
12539 if test "${HAVE_X11}" = "yes"; then
12540 if test "x${with_freetype}" = "xno"; then
12541 with_xft="no";
12542 fi
12543 if test "x${with_xft}" != "xno"; then
12544
12545 if test "X${with_pkg_config_prog}" != X; then
12546 PKG_CONFIG="${with_pkg_config_prog}"
12547 fi
12548
12549
12550 succeeded=no
12551
12552 if test -z "$PKG_CONFIG"; then
12553 # Extract the first word of "pkg-config", so it can be a program name with args.
12554 set dummy pkg-config; ac_word=$2
12555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12557 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12558 echo $ECHO_N "(cached) $ECHO_C" >&6
12559 else
12560 case $PKG_CONFIG in
12561 [\\/]* | ?:[\\/]*)
12562 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12563 ;;
12564 *)
12565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12566 for as_dir in $PATH
12567 do
12568 IFS=$as_save_IFS
12569 test -z "$as_dir" && as_dir=.
12570 for ac_exec_ext in '' $ac_executable_extensions; do
12571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12572 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12574 break 2
12575 fi
12576 done
12577 done
12578 IFS=$as_save_IFS
12579
12580 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12581 ;;
12582 esac
12583 fi
12584 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12585 if test -n "$PKG_CONFIG"; then
12586 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12587 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12588 else
12589 { echo "$as_me:$LINENO: result: no" >&5
12590 echo "${ECHO_T}no" >&6; }
12591 fi
12592
12593
12594 fi
12595
12596 if test "$PKG_CONFIG" = "no" ; then
12597 HAVE_XFT=no
12598 else
12599 PKG_CONFIG_MIN_VERSION=0.9.0
12600 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12601 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12602 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12603
12604 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12605 { echo "$as_me:$LINENO: result: yes" >&5
12606 echo "${ECHO_T}yes" >&6; }
12607 succeeded=yes
12608
12609 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12610 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12611 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12612 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12613 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12614
12615 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12616 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12617 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12618 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12619 echo "${ECHO_T}$XFT_LIBS" >&6; }
12620 else
12621 { echo "$as_me:$LINENO: result: no" >&5
12622 echo "${ECHO_T}no" >&6; }
12623 XFT_CFLAGS=""
12624 XFT_LIBS=""
12625 ## If we have a custom action on failure, don't print errors, but
12626 ## do set a variable so people can do so.
12627 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12628
12629 fi
12630
12631
12632
12633 else
12634 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12635 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12636 fi
12637 fi
12638
12639 if test $succeeded = yes; then
12640 :
12641 else
12642 HAVE_XFT=no
12643 fi
12644
12645 if test "$HAVE_XFT" != no; then
12646 OLD_CPPFLAGS="$CPPFLAGS"
12647 OLD_CFLAGS="$CFLAGS"
12648 OLD_LIBS="$LIBS"
12649 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12650 CFLAGS="$CFLAGS $XFT_CFLAGS"
12651 LIBS="$XFT_LIBS $LIBS"
12652 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12653 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12654 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12655 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12656 echo $ECHO_N "(cached) $ECHO_C" >&6
12657 fi
12658 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12659 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12660 else
12661 # Is the header compilable?
12662 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12663 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12664 cat >conftest.$ac_ext <<_ACEOF
12665 /* confdefs.h. */
12666 _ACEOF
12667 cat confdefs.h >>conftest.$ac_ext
12668 cat >>conftest.$ac_ext <<_ACEOF
12669 /* end confdefs.h. */
12670 $ac_includes_default
12671 #include <X11/Xft/Xft.h>
12672 _ACEOF
12673 rm -f conftest.$ac_objext
12674 if { (ac_try="$ac_compile"
12675 case "(($ac_try" in
12676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12677 *) ac_try_echo=$ac_try;;
12678 esac
12679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12680 (eval "$ac_compile") 2>conftest.er1
12681 ac_status=$?
12682 grep -v '^ *+' conftest.er1 >conftest.err
12683 rm -f conftest.er1
12684 cat conftest.err >&5
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); } && {
12687 test -z "$ac_c_werror_flag" ||
12688 test ! -s conftest.err
12689 } && test -s conftest.$ac_objext; then
12690 ac_header_compiler=yes
12691 else
12692 echo "$as_me: failed program was:" >&5
12693 sed 's/^/| /' conftest.$ac_ext >&5
12694
12695 ac_header_compiler=no
12696 fi
12697
12698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12699 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12700 echo "${ECHO_T}$ac_header_compiler" >&6; }
12701
12702 # Is the header present?
12703 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12704 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12705 cat >conftest.$ac_ext <<_ACEOF
12706 /* confdefs.h. */
12707 _ACEOF
12708 cat confdefs.h >>conftest.$ac_ext
12709 cat >>conftest.$ac_ext <<_ACEOF
12710 /* end confdefs.h. */
12711 #include <X11/Xft/Xft.h>
12712 _ACEOF
12713 if { (ac_try="$ac_cpp conftest.$ac_ext"
12714 case "(($ac_try" in
12715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12716 *) ac_try_echo=$ac_try;;
12717 esac
12718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12720 ac_status=$?
12721 grep -v '^ *+' conftest.er1 >conftest.err
12722 rm -f conftest.er1
12723 cat conftest.err >&5
12724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725 (exit $ac_status); } >/dev/null && {
12726 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12727 test ! -s conftest.err
12728 }; then
12729 ac_header_preproc=yes
12730 else
12731 echo "$as_me: failed program was:" >&5
12732 sed 's/^/| /' conftest.$ac_ext >&5
12733
12734 ac_header_preproc=no
12735 fi
12736
12737 rm -f conftest.err conftest.$ac_ext
12738 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12739 echo "${ECHO_T}$ac_header_preproc" >&6; }
12740
12741 # So? What about this header?
12742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12743 yes:no: )
12744 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12745 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12746 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12747 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12748 ac_header_preproc=yes
12749 ;;
12750 no:yes:* )
12751 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12752 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12753 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12754 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12755 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12756 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12757 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12758 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12759 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12760 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12761 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12762 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12763
12764 ;;
12765 esac
12766 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12767 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12768 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12769 echo $ECHO_N "(cached) $ECHO_C" >&6
12770 else
12771 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12772 fi
12773 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12774 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12775
12776 fi
12777 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12778 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12779 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12780 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12781 echo $ECHO_N "(cached) $ECHO_C" >&6
12782 else
12783 ac_check_lib_save_LIBS=$LIBS
12784 LIBS="-lXft $XFT_LIBS $LIBS"
12785 cat >conftest.$ac_ext <<_ACEOF
12786 /* confdefs.h. */
12787 _ACEOF
12788 cat confdefs.h >>conftest.$ac_ext
12789 cat >>conftest.$ac_ext <<_ACEOF
12790 /* end confdefs.h. */
12791
12792 /* Override any GCC internal prototype to avoid an error.
12793 Use char because int might match the return type of a GCC
12794 builtin and then its argument prototype would still apply. */
12795 #ifdef __cplusplus
12796 extern "C"
12797 #endif
12798 char XftFontOpen ();
12799 int
12800 main ()
12801 {
12802 return XftFontOpen ();
12803 ;
12804 return 0;
12805 }
12806 _ACEOF
12807 rm -f conftest.$ac_objext conftest$ac_exeext
12808 if { (ac_try="$ac_link"
12809 case "(($ac_try" in
12810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12811 *) ac_try_echo=$ac_try;;
12812 esac
12813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12814 (eval "$ac_link") 2>conftest.er1
12815 ac_status=$?
12816 grep -v '^ *+' conftest.er1 >conftest.err
12817 rm -f conftest.er1
12818 cat conftest.err >&5
12819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820 (exit $ac_status); } && {
12821 test -z "$ac_c_werror_flag" ||
12822 test ! -s conftest.err
12823 } && test -s conftest$ac_exeext &&
12824 $as_test_x conftest$ac_exeext; then
12825 ac_cv_lib_Xft_XftFontOpen=yes
12826 else
12827 echo "$as_me: failed program was:" >&5
12828 sed 's/^/| /' conftest.$ac_ext >&5
12829
12830 ac_cv_lib_Xft_XftFontOpen=no
12831 fi
12832
12833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12834 conftest$ac_exeext conftest.$ac_ext
12835 LIBS=$ac_check_lib_save_LIBS
12836 fi
12837 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12838 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12839 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12840 HAVE_XFT=yes
12841 fi
12842
12843 fi
12844
12845
12846
12847 if test "${HAVE_XFT}" = "yes"; then
12848
12849 cat >>confdefs.h <<\_ACEOF
12850 #define HAVE_XFT 1
12851 _ACEOF
12852
12853
12854 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12855 else
12856 CFLAGS="$OLD_CPPFLAGS"
12857 CFLAGS="$OLD_CFLAGS"
12858 LIBS="$OLD_LIBS"
12859 fi
12860 fi
12861 fi
12862 fi
12863
12864 HAVE_FREETYPE=no
12865 ### Use -lfreetype if available, unless `--with-freetype=no'.
12866 if test "${HAVE_XFT}" = "yes"; then
12867 HAVE_FREETYPE=yes
12868 elif test "x${with_freetype}" != "xno"; then
12869 if test "X${with_pkg_config_prog}" != X; then
12870 PKG_CONFIG="${with_pkg_config_prog}"
12871 fi
12872
12873
12874 succeeded=no
12875
12876 if test -z "$PKG_CONFIG"; then
12877 # Extract the first word of "pkg-config", so it can be a program name with args.
12878 set dummy pkg-config; ac_word=$2
12879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12881 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12882 echo $ECHO_N "(cached) $ECHO_C" >&6
12883 else
12884 case $PKG_CONFIG in
12885 [\\/]* | ?:[\\/]*)
12886 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12887 ;;
12888 *)
12889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12890 for as_dir in $PATH
12891 do
12892 IFS=$as_save_IFS
12893 test -z "$as_dir" && as_dir=.
12894 for ac_exec_ext in '' $ac_executable_extensions; do
12895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12896 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12898 break 2
12899 fi
12900 done
12901 done
12902 IFS=$as_save_IFS
12903
12904 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12905 ;;
12906 esac
12907 fi
12908 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12909 if test -n "$PKG_CONFIG"; then
12910 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12911 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12912 else
12913 { echo "$as_me:$LINENO: result: no" >&5
12914 echo "${ECHO_T}no" >&6; }
12915 fi
12916
12917
12918 fi
12919
12920 if test "$PKG_CONFIG" = "no" ; then
12921 HAVE_FREETYPE=no
12922 else
12923 PKG_CONFIG_MIN_VERSION=0.9.0
12924 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12925 { echo "$as_me:$LINENO: checking for freetype2" >&5
12926 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12927
12928 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12929 { echo "$as_me:$LINENO: result: yes" >&5
12930 echo "${ECHO_T}yes" >&6; }
12931 succeeded=yes
12932
12933 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12934 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12935 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12936 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12937 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12938
12939 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12940 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12941 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12942 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12943 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12944 else
12945 { echo "$as_me:$LINENO: result: no" >&5
12946 echo "${ECHO_T}no" >&6; }
12947 FREETYPE_CFLAGS=""
12948 FREETYPE_LIBS=""
12949 ## If we have a custom action on failure, don't print errors, but
12950 ## do set a variable so people can do so.
12951 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12952
12953 fi
12954
12955
12956
12957 else
12958 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12959 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12960 fi
12961 fi
12962
12963 if test $succeeded = yes; then
12964 HAVE_FREETYPE=yes
12965 else
12966 HAVE_FREETYPE=no
12967 fi
12968
12969 if test "${HAVE_FREETYPE}" = "yes"; then
12970
12971 succeeded=no
12972
12973 if test -z "$PKG_CONFIG"; then
12974 # Extract the first word of "pkg-config", so it can be a program name with args.
12975 set dummy pkg-config; ac_word=$2
12976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12978 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12979 echo $ECHO_N "(cached) $ECHO_C" >&6
12980 else
12981 case $PKG_CONFIG in
12982 [\\/]* | ?:[\\/]*)
12983 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12984 ;;
12985 *)
12986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12987 for as_dir in $PATH
12988 do
12989 IFS=$as_save_IFS
12990 test -z "$as_dir" && as_dir=.
12991 for ac_exec_ext in '' $ac_executable_extensions; do
12992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12993 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12995 break 2
12996 fi
12997 done
12998 done
12999 IFS=$as_save_IFS
13000
13001 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13002 ;;
13003 esac
13004 fi
13005 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13006 if test -n "$PKG_CONFIG"; then
13007 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13008 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13009 else
13010 { echo "$as_me:$LINENO: result: no" >&5
13011 echo "${ECHO_T}no" >&6; }
13012 fi
13013
13014
13015 fi
13016
13017 if test "$PKG_CONFIG" = "no" ; then
13018 HAVE_FC=no
13019 else
13020 PKG_CONFIG_MIN_VERSION=0.9.0
13021 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13022 { echo "$as_me:$LINENO: checking for fontconfig" >&5
13023 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
13024
13025 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
13026 { echo "$as_me:$LINENO: result: yes" >&5
13027 echo "${ECHO_T}yes" >&6; }
13028 succeeded=yes
13029
13030 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13031 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
13032 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
13033 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13034 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
13035
13036 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13037 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
13038 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
13039 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13040 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
13041 else
13042 { echo "$as_me:$LINENO: result: no" >&5
13043 echo "${ECHO_T}no" >&6; }
13044 FONTCONFIG_CFLAGS=""
13045 FONTCONFIG_LIBS=""
13046 ## If we have a custom action on failure, don't print errors, but
13047 ## do set a variable so people can do so.
13048 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13049
13050 fi
13051
13052
13053
13054 else
13055 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13056 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13057 fi
13058 fi
13059
13060 if test $succeeded = yes; then
13061 HAVE_FC=yes
13062 else
13063 HAVE_FC=no
13064 fi
13065
13066 if test "${HAVE_FC}" = "no"; then
13067 HAVE_FREETYPE=no
13068 fi
13069 fi
13070 fi
13071 if test "${HAVE_FREETYPE}" = "yes"; then
13072
13073 cat >>confdefs.h <<\_ACEOF
13074 #define HAVE_FREETYPE 1
13075 _ACEOF
13076
13077 # Extract the first word of "libotf-config", so it can be a program name with args.
13078 set dummy libotf-config; ac_word=$2
13079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13081 if test "${ac_cv_prog_HAVE_LIBOTF+set}" = set; then
13082 echo $ECHO_N "(cached) $ECHO_C" >&6
13083 else
13084 if test -n "$HAVE_LIBOTF"; then
13085 ac_cv_prog_HAVE_LIBOTF="$HAVE_LIBOTF" # Let the user override the test.
13086 else
13087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13088 for as_dir in $PATH
13089 do
13090 IFS=$as_save_IFS
13091 test -z "$as_dir" && as_dir=.
13092 for ac_exec_ext in '' $ac_executable_extensions; do
13093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13094 ac_cv_prog_HAVE_LIBOTF="yes"
13095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13096 break 2
13097 fi
13098 done
13099 done
13100 IFS=$as_save_IFS
13101
13102 test -z "$ac_cv_prog_HAVE_LIBOTF" && ac_cv_prog_HAVE_LIBOTF="no"
13103 fi
13104 fi
13105 HAVE_LIBOTF=$ac_cv_prog_HAVE_LIBOTF
13106 if test -n "$HAVE_LIBOTF"; then
13107 { echo "$as_me:$LINENO: result: $HAVE_LIBOTF" >&5
13108 echo "${ECHO_T}$HAVE_LIBOTF" >&6; }
13109 else
13110 { echo "$as_me:$LINENO: result: no" >&5
13111 echo "${ECHO_T}no" >&6; }
13112 fi
13113
13114
13115 if test "${HAVE_LIBOTF}" = "yes"; then
13116
13117 cat >>confdefs.h <<\_ACEOF
13118 #define HAVE_LIBOTF 1
13119 _ACEOF
13120
13121 LIBOTF_CFLAGS=`libotf-config --cflags`
13122 LIBOTF_LIBS=`libotf-config --libs`
13123 fi
13124 fi
13125
13126
13127
13128
13129
13130
13131
13132 fi
13133
13134 ### Use -lXpm if available, unless `--with-xpm=no'.
13135 HAVE_XPM=no
13136 if test "${HAVE_X11}" = "yes"; then
13137 if test "${with_xpm}" != "no"; then
13138 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13139 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13140 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13141 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13142 echo $ECHO_N "(cached) $ECHO_C" >&6
13143 fi
13144 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13145 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13146 else
13147 # Is the header compilable?
13148 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13149 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13150 cat >conftest.$ac_ext <<_ACEOF
13151 /* confdefs.h. */
13152 _ACEOF
13153 cat confdefs.h >>conftest.$ac_ext
13154 cat >>conftest.$ac_ext <<_ACEOF
13155 /* end confdefs.h. */
13156 $ac_includes_default
13157 #include <X11/xpm.h>
13158 _ACEOF
13159 rm -f conftest.$ac_objext
13160 if { (ac_try="$ac_compile"
13161 case "(($ac_try" in
13162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13163 *) ac_try_echo=$ac_try;;
13164 esac
13165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13166 (eval "$ac_compile") 2>conftest.er1
13167 ac_status=$?
13168 grep -v '^ *+' conftest.er1 >conftest.err
13169 rm -f conftest.er1
13170 cat conftest.err >&5
13171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172 (exit $ac_status); } && {
13173 test -z "$ac_c_werror_flag" ||
13174 test ! -s conftest.err
13175 } && test -s conftest.$ac_objext; then
13176 ac_header_compiler=yes
13177 else
13178 echo "$as_me: failed program was:" >&5
13179 sed 's/^/| /' conftest.$ac_ext >&5
13180
13181 ac_header_compiler=no
13182 fi
13183
13184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13185 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13186 echo "${ECHO_T}$ac_header_compiler" >&6; }
13187
13188 # Is the header present?
13189 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13190 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13191 cat >conftest.$ac_ext <<_ACEOF
13192 /* confdefs.h. */
13193 _ACEOF
13194 cat confdefs.h >>conftest.$ac_ext
13195 cat >>conftest.$ac_ext <<_ACEOF
13196 /* end confdefs.h. */
13197 #include <X11/xpm.h>
13198 _ACEOF
13199 if { (ac_try="$ac_cpp conftest.$ac_ext"
13200 case "(($ac_try" in
13201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13202 *) ac_try_echo=$ac_try;;
13203 esac
13204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13205 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13206 ac_status=$?
13207 grep -v '^ *+' conftest.er1 >conftest.err
13208 rm -f conftest.er1
13209 cat conftest.err >&5
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); } >/dev/null && {
13212 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13213 test ! -s conftest.err
13214 }; then
13215 ac_header_preproc=yes
13216 else
13217 echo "$as_me: failed program was:" >&5
13218 sed 's/^/| /' conftest.$ac_ext >&5
13219
13220 ac_header_preproc=no
13221 fi
13222
13223 rm -f conftest.err conftest.$ac_ext
13224 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13225 echo "${ECHO_T}$ac_header_preproc" >&6; }
13226
13227 # So? What about this header?
13228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13229 yes:no: )
13230 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13231 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13232 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13233 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13234 ac_header_preproc=yes
13235 ;;
13236 no:yes:* )
13237 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13238 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13239 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13240 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13241 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13242 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13243 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13244 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13245 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13246 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13247 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13248 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13249
13250 ;;
13251 esac
13252 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13253 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13254 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13255 echo $ECHO_N "(cached) $ECHO_C" >&6
13256 else
13257 ac_cv_header_X11_xpm_h=$ac_header_preproc
13258 fi
13259 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13260 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13261
13262 fi
13263 if test $ac_cv_header_X11_xpm_h = yes; then
13264 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13265 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13266 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13267 echo $ECHO_N "(cached) $ECHO_C" >&6
13268 else
13269 ac_check_lib_save_LIBS=$LIBS
13270 LIBS="-lXpm -lX11 $LIBS"
13271 cat >conftest.$ac_ext <<_ACEOF
13272 /* confdefs.h. */
13273 _ACEOF
13274 cat confdefs.h >>conftest.$ac_ext
13275 cat >>conftest.$ac_ext <<_ACEOF
13276 /* end confdefs.h. */
13277
13278 /* Override any GCC internal prototype to avoid an error.
13279 Use char because int might match the return type of a GCC
13280 builtin and then its argument prototype would still apply. */
13281 #ifdef __cplusplus
13282 extern "C"
13283 #endif
13284 char XpmReadFileToPixmap ();
13285 int
13286 main ()
13287 {
13288 return XpmReadFileToPixmap ();
13289 ;
13290 return 0;
13291 }
13292 _ACEOF
13293 rm -f conftest.$ac_objext conftest$ac_exeext
13294 if { (ac_try="$ac_link"
13295 case "(($ac_try" in
13296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13297 *) ac_try_echo=$ac_try;;
13298 esac
13299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13300 (eval "$ac_link") 2>conftest.er1
13301 ac_status=$?
13302 grep -v '^ *+' conftest.er1 >conftest.err
13303 rm -f conftest.er1
13304 cat conftest.err >&5
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); } && {
13307 test -z "$ac_c_werror_flag" ||
13308 test ! -s conftest.err
13309 } && test -s conftest$ac_exeext &&
13310 $as_test_x conftest$ac_exeext; then
13311 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13312 else
13313 echo "$as_me: failed program was:" >&5
13314 sed 's/^/| /' conftest.$ac_ext >&5
13315
13316 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13317 fi
13318
13319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13320 conftest$ac_exeext conftest.$ac_ext
13321 LIBS=$ac_check_lib_save_LIBS
13322 fi
13323 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13324 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13325 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13326 HAVE_XPM=yes
13327 fi
13328
13329 fi
13330
13331
13332 if test "${HAVE_XPM}" = "yes"; then
13333 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13334 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13335 cat >conftest.$ac_ext <<_ACEOF
13336 /* confdefs.h. */
13337 _ACEOF
13338 cat confdefs.h >>conftest.$ac_ext
13339 cat >>conftest.$ac_ext <<_ACEOF
13340 /* end confdefs.h. */
13341 #include "X11/xpm.h"
13342 #ifndef XpmReturnAllocPixels
13343 no_return_alloc_pixels
13344 #endif
13345
13346 _ACEOF
13347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13348 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13349 HAVE_XPM=no
13350 else
13351 HAVE_XPM=yes
13352 fi
13353 rm -f conftest*
13354
13355
13356 if test "${HAVE_XPM}" = "yes"; then
13357 { echo "$as_me:$LINENO: result: yes" >&5
13358 echo "${ECHO_T}yes" >&6; }
13359 else
13360 { echo "$as_me:$LINENO: result: no" >&5
13361 echo "${ECHO_T}no" >&6; }
13362 fi
13363 fi
13364 fi
13365
13366 if test "${HAVE_XPM}" = "yes"; then
13367
13368 cat >>confdefs.h <<\_ACEOF
13369 #define HAVE_XPM 1
13370 _ACEOF
13371
13372 fi
13373 fi
13374
13375 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13376 HAVE_JPEG=no
13377 if test "${HAVE_X11}" = "yes"; then
13378 if test "${with_jpeg}" != "no"; then
13379 if test "${ac_cv_header_jerror_h+set}" = set; then
13380 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13381 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13382 if test "${ac_cv_header_jerror_h+set}" = set; then
13383 echo $ECHO_N "(cached) $ECHO_C" >&6
13384 fi
13385 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13386 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13387 else
13388 # Is the header compilable?
13389 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13390 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13391 cat >conftest.$ac_ext <<_ACEOF
13392 /* confdefs.h. */
13393 _ACEOF
13394 cat confdefs.h >>conftest.$ac_ext
13395 cat >>conftest.$ac_ext <<_ACEOF
13396 /* end confdefs.h. */
13397 $ac_includes_default
13398 #include <jerror.h>
13399 _ACEOF
13400 rm -f conftest.$ac_objext
13401 if { (ac_try="$ac_compile"
13402 case "(($ac_try" in
13403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13404 *) ac_try_echo=$ac_try;;
13405 esac
13406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13407 (eval "$ac_compile") 2>conftest.er1
13408 ac_status=$?
13409 grep -v '^ *+' conftest.er1 >conftest.err
13410 rm -f conftest.er1
13411 cat conftest.err >&5
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); } && {
13414 test -z "$ac_c_werror_flag" ||
13415 test ! -s conftest.err
13416 } && test -s conftest.$ac_objext; then
13417 ac_header_compiler=yes
13418 else
13419 echo "$as_me: failed program was:" >&5
13420 sed 's/^/| /' conftest.$ac_ext >&5
13421
13422 ac_header_compiler=no
13423 fi
13424
13425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13426 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13427 echo "${ECHO_T}$ac_header_compiler" >&6; }
13428
13429 # Is the header present?
13430 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13431 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13432 cat >conftest.$ac_ext <<_ACEOF
13433 /* confdefs.h. */
13434 _ACEOF
13435 cat confdefs.h >>conftest.$ac_ext
13436 cat >>conftest.$ac_ext <<_ACEOF
13437 /* end confdefs.h. */
13438 #include <jerror.h>
13439 _ACEOF
13440 if { (ac_try="$ac_cpp conftest.$ac_ext"
13441 case "(($ac_try" in
13442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13443 *) ac_try_echo=$ac_try;;
13444 esac
13445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13446 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13447 ac_status=$?
13448 grep -v '^ *+' conftest.er1 >conftest.err
13449 rm -f conftest.er1
13450 cat conftest.err >&5
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); } >/dev/null && {
13453 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13454 test ! -s conftest.err
13455 }; then
13456 ac_header_preproc=yes
13457 else
13458 echo "$as_me: failed program was:" >&5
13459 sed 's/^/| /' conftest.$ac_ext >&5
13460
13461 ac_header_preproc=no
13462 fi
13463
13464 rm -f conftest.err conftest.$ac_ext
13465 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13466 echo "${ECHO_T}$ac_header_preproc" >&6; }
13467
13468 # So? What about this header?
13469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13470 yes:no: )
13471 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13472 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13473 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13474 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13475 ac_header_preproc=yes
13476 ;;
13477 no:yes:* )
13478 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13479 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13480 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13481 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13482 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13483 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13484 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13485 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13486 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13487 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13488 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13489 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13490
13491 ;;
13492 esac
13493 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13494 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13495 if test "${ac_cv_header_jerror_h+set}" = set; then
13496 echo $ECHO_N "(cached) $ECHO_C" >&6
13497 else
13498 ac_cv_header_jerror_h=$ac_header_preproc
13499 fi
13500 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13501 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13502
13503 fi
13504 if test $ac_cv_header_jerror_h = yes; then
13505 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13506 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13507 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13508 echo $ECHO_N "(cached) $ECHO_C" >&6
13509 else
13510 ac_check_lib_save_LIBS=$LIBS
13511 LIBS="-ljpeg $LIBS"
13512 cat >conftest.$ac_ext <<_ACEOF
13513 /* confdefs.h. */
13514 _ACEOF
13515 cat confdefs.h >>conftest.$ac_ext
13516 cat >>conftest.$ac_ext <<_ACEOF
13517 /* end confdefs.h. */
13518
13519 /* Override any GCC internal prototype to avoid an error.
13520 Use char because int might match the return type of a GCC
13521 builtin and then its argument prototype would still apply. */
13522 #ifdef __cplusplus
13523 extern "C"
13524 #endif
13525 char jpeg_destroy_compress ();
13526 int
13527 main ()
13528 {
13529 return jpeg_destroy_compress ();
13530 ;
13531 return 0;
13532 }
13533 _ACEOF
13534 rm -f conftest.$ac_objext conftest$ac_exeext
13535 if { (ac_try="$ac_link"
13536 case "(($ac_try" in
13537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13538 *) ac_try_echo=$ac_try;;
13539 esac
13540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13541 (eval "$ac_link") 2>conftest.er1
13542 ac_status=$?
13543 grep -v '^ *+' conftest.er1 >conftest.err
13544 rm -f conftest.er1
13545 cat conftest.err >&5
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); } && {
13548 test -z "$ac_c_werror_flag" ||
13549 test ! -s conftest.err
13550 } && test -s conftest$ac_exeext &&
13551 $as_test_x conftest$ac_exeext; then
13552 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13553 else
13554 echo "$as_me: failed program was:" >&5
13555 sed 's/^/| /' conftest.$ac_ext >&5
13556
13557 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13558 fi
13559
13560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13561 conftest$ac_exeext conftest.$ac_ext
13562 LIBS=$ac_check_lib_save_LIBS
13563 fi
13564 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13565 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13566 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13567 HAVE_JPEG=yes
13568 fi
13569
13570 fi
13571
13572
13573 fi
13574
13575
13576 if test "${HAVE_JPEG}" = "yes"; then
13577 cat >>confdefs.h <<\_ACEOF
13578 #define HAVE_JPEG 1
13579 _ACEOF
13580
13581 cat >conftest.$ac_ext <<_ACEOF
13582 /* confdefs.h. */
13583 _ACEOF
13584 cat confdefs.h >>conftest.$ac_ext
13585 cat >>conftest.$ac_ext <<_ACEOF
13586 /* end confdefs.h. */
13587 #include <jpeglib.h>
13588 version=JPEG_LIB_VERSION
13589
13590 _ACEOF
13591 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13592 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13593 cat >>confdefs.h <<\_ACEOF
13594 #define HAVE_JPEG 1
13595 _ACEOF
13596
13597 else
13598 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13599 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13600 HAVE_JPEG=no
13601 fi
13602 rm -f conftest*
13603
13604 fi
13605 fi
13606
13607 ### Use -lpng if available, unless `--with-png=no'.
13608 HAVE_PNG=no
13609 if test "${HAVE_X11}" = "yes"; then
13610 if test "${with_png}" != "no"; then
13611 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13612 # in /usr/include/libpng.
13613
13614
13615 for ac_header in png.h libpng/png.h
13616 do
13617 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13619 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13622 echo $ECHO_N "(cached) $ECHO_C" >&6
13623 fi
13624 ac_res=`eval echo '${'$as_ac_Header'}'`
13625 { echo "$as_me:$LINENO: result: $ac_res" >&5
13626 echo "${ECHO_T}$ac_res" >&6; }
13627 else
13628 # Is the header compilable?
13629 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13630 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13631 cat >conftest.$ac_ext <<_ACEOF
13632 /* confdefs.h. */
13633 _ACEOF
13634 cat confdefs.h >>conftest.$ac_ext
13635 cat >>conftest.$ac_ext <<_ACEOF
13636 /* end confdefs.h. */
13637 $ac_includes_default
13638 #include <$ac_header>
13639 _ACEOF
13640 rm -f conftest.$ac_objext
13641 if { (ac_try="$ac_compile"
13642 case "(($ac_try" in
13643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13644 *) ac_try_echo=$ac_try;;
13645 esac
13646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13647 (eval "$ac_compile") 2>conftest.er1
13648 ac_status=$?
13649 grep -v '^ *+' conftest.er1 >conftest.err
13650 rm -f conftest.er1
13651 cat conftest.err >&5
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); } && {
13654 test -z "$ac_c_werror_flag" ||
13655 test ! -s conftest.err
13656 } && test -s conftest.$ac_objext; then
13657 ac_header_compiler=yes
13658 else
13659 echo "$as_me: failed program was:" >&5
13660 sed 's/^/| /' conftest.$ac_ext >&5
13661
13662 ac_header_compiler=no
13663 fi
13664
13665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13666 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13667 echo "${ECHO_T}$ac_header_compiler" >&6; }
13668
13669 # Is the header present?
13670 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13671 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13672 cat >conftest.$ac_ext <<_ACEOF
13673 /* confdefs.h. */
13674 _ACEOF
13675 cat confdefs.h >>conftest.$ac_ext
13676 cat >>conftest.$ac_ext <<_ACEOF
13677 /* end confdefs.h. */
13678 #include <$ac_header>
13679 _ACEOF
13680 if { (ac_try="$ac_cpp conftest.$ac_ext"
13681 case "(($ac_try" in
13682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13683 *) ac_try_echo=$ac_try;;
13684 esac
13685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13687 ac_status=$?
13688 grep -v '^ *+' conftest.er1 >conftest.err
13689 rm -f conftest.er1
13690 cat conftest.err >&5
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); } >/dev/null && {
13693 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13694 test ! -s conftest.err
13695 }; then
13696 ac_header_preproc=yes
13697 else
13698 echo "$as_me: failed program was:" >&5
13699 sed 's/^/| /' conftest.$ac_ext >&5
13700
13701 ac_header_preproc=no
13702 fi
13703
13704 rm -f conftest.err conftest.$ac_ext
13705 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13706 echo "${ECHO_T}$ac_header_preproc" >&6; }
13707
13708 # So? What about this header?
13709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13710 yes:no: )
13711 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13712 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13714 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13715 ac_header_preproc=yes
13716 ;;
13717 no:yes:* )
13718 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13719 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13720 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13721 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13722 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13723 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13724 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13725 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13727 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13728 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13729 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13730
13731 ;;
13732 esac
13733 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13736 echo $ECHO_N "(cached) $ECHO_C" >&6
13737 else
13738 eval "$as_ac_Header=\$ac_header_preproc"
13739 fi
13740 ac_res=`eval echo '${'$as_ac_Header'}'`
13741 { echo "$as_me:$LINENO: result: $ac_res" >&5
13742 echo "${ECHO_T}$ac_res" >&6; }
13743
13744 fi
13745 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13746 cat >>confdefs.h <<_ACEOF
13747 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13748 _ACEOF
13749
13750 fi
13751
13752 done
13753
13754 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13755 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13756 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13757 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13758 echo $ECHO_N "(cached) $ECHO_C" >&6
13759 else
13760 ac_check_lib_save_LIBS=$LIBS
13761 LIBS="-lpng -lz -lm $LIBS"
13762 cat >conftest.$ac_ext <<_ACEOF
13763 /* confdefs.h. */
13764 _ACEOF
13765 cat confdefs.h >>conftest.$ac_ext
13766 cat >>conftest.$ac_ext <<_ACEOF
13767 /* end confdefs.h. */
13768
13769 /* Override any GCC internal prototype to avoid an error.
13770 Use char because int might match the return type of a GCC
13771 builtin and then its argument prototype would still apply. */
13772 #ifdef __cplusplus
13773 extern "C"
13774 #endif
13775 char png_get_channels ();
13776 int
13777 main ()
13778 {
13779 return png_get_channels ();
13780 ;
13781 return 0;
13782 }
13783 _ACEOF
13784 rm -f conftest.$ac_objext conftest$ac_exeext
13785 if { (ac_try="$ac_link"
13786 case "(($ac_try" in
13787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13788 *) ac_try_echo=$ac_try;;
13789 esac
13790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13791 (eval "$ac_link") 2>conftest.er1
13792 ac_status=$?
13793 grep -v '^ *+' conftest.er1 >conftest.err
13794 rm -f conftest.er1
13795 cat conftest.err >&5
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); } && {
13798 test -z "$ac_c_werror_flag" ||
13799 test ! -s conftest.err
13800 } && test -s conftest$ac_exeext &&
13801 $as_test_x conftest$ac_exeext; then
13802 ac_cv_lib_png_png_get_channels=yes
13803 else
13804 echo "$as_me: failed program was:" >&5
13805 sed 's/^/| /' conftest.$ac_ext >&5
13806
13807 ac_cv_lib_png_png_get_channels=no
13808 fi
13809
13810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13811 conftest$ac_exeext conftest.$ac_ext
13812 LIBS=$ac_check_lib_save_LIBS
13813 fi
13814 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13815 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13816 if test $ac_cv_lib_png_png_get_channels = yes; then
13817 HAVE_PNG=yes
13818 fi
13819
13820 fi
13821 fi
13822
13823 if test "${HAVE_PNG}" = "yes"; then
13824
13825 cat >>confdefs.h <<\_ACEOF
13826 #define HAVE_PNG 1
13827 _ACEOF
13828
13829 fi
13830 fi
13831
13832 ### Use -ltiff if available, unless `--with-tiff=no'.
13833 HAVE_TIFF=no
13834 if test "${HAVE_X11}" = "yes"; then
13835 if test "${with_tiff}" != "no"; then
13836 if test "${ac_cv_header_tiffio_h+set}" = set; then
13837 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13838 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13839 if test "${ac_cv_header_tiffio_h+set}" = set; then
13840 echo $ECHO_N "(cached) $ECHO_C" >&6
13841 fi
13842 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13843 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13844 else
13845 # Is the header compilable?
13846 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13847 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13848 cat >conftest.$ac_ext <<_ACEOF
13849 /* confdefs.h. */
13850 _ACEOF
13851 cat confdefs.h >>conftest.$ac_ext
13852 cat >>conftest.$ac_ext <<_ACEOF
13853 /* end confdefs.h. */
13854 $ac_includes_default
13855 #include <tiffio.h>
13856 _ACEOF
13857 rm -f conftest.$ac_objext
13858 if { (ac_try="$ac_compile"
13859 case "(($ac_try" in
13860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13861 *) ac_try_echo=$ac_try;;
13862 esac
13863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13864 (eval "$ac_compile") 2>conftest.er1
13865 ac_status=$?
13866 grep -v '^ *+' conftest.er1 >conftest.err
13867 rm -f conftest.er1
13868 cat conftest.err >&5
13869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870 (exit $ac_status); } && {
13871 test -z "$ac_c_werror_flag" ||
13872 test ! -s conftest.err
13873 } && test -s conftest.$ac_objext; then
13874 ac_header_compiler=yes
13875 else
13876 echo "$as_me: failed program was:" >&5
13877 sed 's/^/| /' conftest.$ac_ext >&5
13878
13879 ac_header_compiler=no
13880 fi
13881
13882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13883 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13884 echo "${ECHO_T}$ac_header_compiler" >&6; }
13885
13886 # Is the header present?
13887 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13888 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13889 cat >conftest.$ac_ext <<_ACEOF
13890 /* confdefs.h. */
13891 _ACEOF
13892 cat confdefs.h >>conftest.$ac_ext
13893 cat >>conftest.$ac_ext <<_ACEOF
13894 /* end confdefs.h. */
13895 #include <tiffio.h>
13896 _ACEOF
13897 if { (ac_try="$ac_cpp conftest.$ac_ext"
13898 case "(($ac_try" in
13899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13900 *) ac_try_echo=$ac_try;;
13901 esac
13902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13903 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13904 ac_status=$?
13905 grep -v '^ *+' conftest.er1 >conftest.err
13906 rm -f conftest.er1
13907 cat conftest.err >&5
13908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909 (exit $ac_status); } >/dev/null && {
13910 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13911 test ! -s conftest.err
13912 }; then
13913 ac_header_preproc=yes
13914 else
13915 echo "$as_me: failed program was:" >&5
13916 sed 's/^/| /' conftest.$ac_ext >&5
13917
13918 ac_header_preproc=no
13919 fi
13920
13921 rm -f conftest.err conftest.$ac_ext
13922 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13923 echo "${ECHO_T}$ac_header_preproc" >&6; }
13924
13925 # So? What about this header?
13926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13927 yes:no: )
13928 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13929 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13930 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13931 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13932 ac_header_preproc=yes
13933 ;;
13934 no:yes:* )
13935 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13936 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13937 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13938 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13939 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13940 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13941 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13942 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13943 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13944 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13945 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13946 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13947
13948 ;;
13949 esac
13950 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13951 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13952 if test "${ac_cv_header_tiffio_h+set}" = set; then
13953 echo $ECHO_N "(cached) $ECHO_C" >&6
13954 else
13955 ac_cv_header_tiffio_h=$ac_header_preproc
13956 fi
13957 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13958 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13959
13960 fi
13961 if test $ac_cv_header_tiffio_h = yes; then
13962 tifflibs="-lz -lm"
13963 # At least one tiff package requires the jpeg library.
13964 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13965 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13966 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13967 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13968 echo $ECHO_N "(cached) $ECHO_C" >&6
13969 else
13970 ac_check_lib_save_LIBS=$LIBS
13971 LIBS="-ltiff $tifflibs $LIBS"
13972 cat >conftest.$ac_ext <<_ACEOF
13973 /* confdefs.h. */
13974 _ACEOF
13975 cat confdefs.h >>conftest.$ac_ext
13976 cat >>conftest.$ac_ext <<_ACEOF
13977 /* end confdefs.h. */
13978
13979 /* Override any GCC internal prototype to avoid an error.
13980 Use char because int might match the return type of a GCC
13981 builtin and then its argument prototype would still apply. */
13982 #ifdef __cplusplus
13983 extern "C"
13984 #endif
13985 char TIFFGetVersion ();
13986 int
13987 main ()
13988 {
13989 return TIFFGetVersion ();
13990 ;
13991 return 0;
13992 }
13993 _ACEOF
13994 rm -f conftest.$ac_objext conftest$ac_exeext
13995 if { (ac_try="$ac_link"
13996 case "(($ac_try" in
13997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13998 *) ac_try_echo=$ac_try;;
13999 esac
14000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14001 (eval "$ac_link") 2>conftest.er1
14002 ac_status=$?
14003 grep -v '^ *+' conftest.er1 >conftest.err
14004 rm -f conftest.er1
14005 cat conftest.err >&5
14006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007 (exit $ac_status); } && {
14008 test -z "$ac_c_werror_flag" ||
14009 test ! -s conftest.err
14010 } && test -s conftest$ac_exeext &&
14011 $as_test_x conftest$ac_exeext; then
14012 ac_cv_lib_tiff_TIFFGetVersion=yes
14013 else
14014 echo "$as_me: failed program was:" >&5
14015 sed 's/^/| /' conftest.$ac_ext >&5
14016
14017 ac_cv_lib_tiff_TIFFGetVersion=no
14018 fi
14019
14020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14021 conftest$ac_exeext conftest.$ac_ext
14022 LIBS=$ac_check_lib_save_LIBS
14023 fi
14024 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14025 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14026 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14027 HAVE_TIFF=yes
14028 fi
14029
14030 fi
14031
14032
14033 fi
14034
14035 if test "${HAVE_TIFF}" = "yes"; then
14036
14037 cat >>confdefs.h <<\_ACEOF
14038 #define HAVE_TIFF 1
14039 _ACEOF
14040
14041 fi
14042 fi
14043
14044 ### Use -lgif if available, unless `--with-gif=no'.
14045 HAVE_GIF=no
14046 if test "${HAVE_X11}" = "yes"; then
14047 if test "${with_gif}" != "no"; then
14048 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14049 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14050 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14051 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14052 echo $ECHO_N "(cached) $ECHO_C" >&6
14053 fi
14054 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14055 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14056 else
14057 # Is the header compilable?
14058 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14059 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14060 cat >conftest.$ac_ext <<_ACEOF
14061 /* confdefs.h. */
14062 _ACEOF
14063 cat confdefs.h >>conftest.$ac_ext
14064 cat >>conftest.$ac_ext <<_ACEOF
14065 /* end confdefs.h. */
14066 $ac_includes_default
14067 #include <gif_lib.h>
14068 _ACEOF
14069 rm -f conftest.$ac_objext
14070 if { (ac_try="$ac_compile"
14071 case "(($ac_try" in
14072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14073 *) ac_try_echo=$ac_try;;
14074 esac
14075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14076 (eval "$ac_compile") 2>conftest.er1
14077 ac_status=$?
14078 grep -v '^ *+' conftest.er1 >conftest.err
14079 rm -f conftest.er1
14080 cat conftest.err >&5
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); } && {
14083 test -z "$ac_c_werror_flag" ||
14084 test ! -s conftest.err
14085 } && test -s conftest.$ac_objext; then
14086 ac_header_compiler=yes
14087 else
14088 echo "$as_me: failed program was:" >&5
14089 sed 's/^/| /' conftest.$ac_ext >&5
14090
14091 ac_header_compiler=no
14092 fi
14093
14094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14095 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14096 echo "${ECHO_T}$ac_header_compiler" >&6; }
14097
14098 # Is the header present?
14099 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14100 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14101 cat >conftest.$ac_ext <<_ACEOF
14102 /* confdefs.h. */
14103 _ACEOF
14104 cat confdefs.h >>conftest.$ac_ext
14105 cat >>conftest.$ac_ext <<_ACEOF
14106 /* end confdefs.h. */
14107 #include <gif_lib.h>
14108 _ACEOF
14109 if { (ac_try="$ac_cpp conftest.$ac_ext"
14110 case "(($ac_try" in
14111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14112 *) ac_try_echo=$ac_try;;
14113 esac
14114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14115 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14116 ac_status=$?
14117 grep -v '^ *+' conftest.er1 >conftest.err
14118 rm -f conftest.er1
14119 cat conftest.err >&5
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); } >/dev/null && {
14122 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14123 test ! -s conftest.err
14124 }; then
14125 ac_header_preproc=yes
14126 else
14127 echo "$as_me: failed program was:" >&5
14128 sed 's/^/| /' conftest.$ac_ext >&5
14129
14130 ac_header_preproc=no
14131 fi
14132
14133 rm -f conftest.err conftest.$ac_ext
14134 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14135 echo "${ECHO_T}$ac_header_preproc" >&6; }
14136
14137 # So? What about this header?
14138 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14139 yes:no: )
14140 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14141 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14142 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14143 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14144 ac_header_preproc=yes
14145 ;;
14146 no:yes:* )
14147 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14148 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14149 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14150 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14151 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14152 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14153 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14154 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14155 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14156 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14157 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14158 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14159
14160 ;;
14161 esac
14162 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14163 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14164 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14165 echo $ECHO_N "(cached) $ECHO_C" >&6
14166 else
14167 ac_cv_header_gif_lib_h=$ac_header_preproc
14168 fi
14169 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14170 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14171
14172 fi
14173 if test $ac_cv_header_gif_lib_h = yes; then
14174 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14175 # Earlier versions can crash Emacs.
14176 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14177 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14178 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14179 echo $ECHO_N "(cached) $ECHO_C" >&6
14180 else
14181 ac_check_lib_save_LIBS=$LIBS
14182 LIBS="-lungif $LIBS"
14183 cat >conftest.$ac_ext <<_ACEOF
14184 /* confdefs.h. */
14185 _ACEOF
14186 cat confdefs.h >>conftest.$ac_ext
14187 cat >>conftest.$ac_ext <<_ACEOF
14188 /* end confdefs.h. */
14189
14190 /* Override any GCC internal prototype to avoid an error.
14191 Use char because int might match the return type of a GCC
14192 builtin and then its argument prototype would still apply. */
14193 #ifdef __cplusplus
14194 extern "C"
14195 #endif
14196 char EGifPutExtensionLast ();
14197 int
14198 main ()
14199 {
14200 return EGifPutExtensionLast ();
14201 ;
14202 return 0;
14203 }
14204 _ACEOF
14205 rm -f conftest.$ac_objext conftest$ac_exeext
14206 if { (ac_try="$ac_link"
14207 case "(($ac_try" in
14208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14209 *) ac_try_echo=$ac_try;;
14210 esac
14211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14212 (eval "$ac_link") 2>conftest.er1
14213 ac_status=$?
14214 grep -v '^ *+' conftest.er1 >conftest.err
14215 rm -f conftest.er1
14216 cat conftest.err >&5
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); } && {
14219 test -z "$ac_c_werror_flag" ||
14220 test ! -s conftest.err
14221 } && test -s conftest$ac_exeext &&
14222 $as_test_x conftest$ac_exeext; then
14223 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14224 else
14225 echo "$as_me: failed program was:" >&5
14226 sed 's/^/| /' conftest.$ac_ext >&5
14227
14228 ac_cv_lib_ungif_EGifPutExtensionLast=no
14229 fi
14230
14231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14232 conftest$ac_exeext conftest.$ac_ext
14233 LIBS=$ac_check_lib_save_LIBS
14234 fi
14235 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14236 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14237 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14238 HAVE_GIF=yes
14239 fi
14240
14241 fi
14242
14243
14244 fi
14245
14246 if test "${HAVE_GIF}" = "yes"; then
14247
14248 cat >>confdefs.h <<\_ACEOF
14249 #define HAVE_GIF 1
14250 _ACEOF
14251
14252 fi
14253 fi
14254
14255 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14256 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14257 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14258 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14259 echo $ECHO_N "(cached) $ECHO_C" >&6
14260 fi
14261 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14262 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14263 else
14264 # Is the header compilable?
14265 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14266 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14267 cat >conftest.$ac_ext <<_ACEOF
14268 /* confdefs.h. */
14269 _ACEOF
14270 cat confdefs.h >>conftest.$ac_ext
14271 cat >>conftest.$ac_ext <<_ACEOF
14272 /* end confdefs.h. */
14273 $ac_includes_default
14274 #include <malloc/malloc.h>
14275 _ACEOF
14276 rm -f conftest.$ac_objext
14277 if { (ac_try="$ac_compile"
14278 case "(($ac_try" in
14279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14280 *) ac_try_echo=$ac_try;;
14281 esac
14282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14283 (eval "$ac_compile") 2>conftest.er1
14284 ac_status=$?
14285 grep -v '^ *+' conftest.er1 >conftest.err
14286 rm -f conftest.er1
14287 cat conftest.err >&5
14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289 (exit $ac_status); } && {
14290 test -z "$ac_c_werror_flag" ||
14291 test ! -s conftest.err
14292 } && test -s conftest.$ac_objext; then
14293 ac_header_compiler=yes
14294 else
14295 echo "$as_me: failed program was:" >&5
14296 sed 's/^/| /' conftest.$ac_ext >&5
14297
14298 ac_header_compiler=no
14299 fi
14300
14301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14302 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14303 echo "${ECHO_T}$ac_header_compiler" >&6; }
14304
14305 # Is the header present?
14306 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14307 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14308 cat >conftest.$ac_ext <<_ACEOF
14309 /* confdefs.h. */
14310 _ACEOF
14311 cat confdefs.h >>conftest.$ac_ext
14312 cat >>conftest.$ac_ext <<_ACEOF
14313 /* end confdefs.h. */
14314 #include <malloc/malloc.h>
14315 _ACEOF
14316 if { (ac_try="$ac_cpp conftest.$ac_ext"
14317 case "(($ac_try" in
14318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14319 *) ac_try_echo=$ac_try;;
14320 esac
14321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14323 ac_status=$?
14324 grep -v '^ *+' conftest.er1 >conftest.err
14325 rm -f conftest.er1
14326 cat conftest.err >&5
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); } >/dev/null && {
14329 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14330 test ! -s conftest.err
14331 }; then
14332 ac_header_preproc=yes
14333 else
14334 echo "$as_me: failed program was:" >&5
14335 sed 's/^/| /' conftest.$ac_ext >&5
14336
14337 ac_header_preproc=no
14338 fi
14339
14340 rm -f conftest.err conftest.$ac_ext
14341 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14342 echo "${ECHO_T}$ac_header_preproc" >&6; }
14343
14344 # So? What about this header?
14345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14346 yes:no: )
14347 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14348 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14349 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14350 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14351 ac_header_preproc=yes
14352 ;;
14353 no:yes:* )
14354 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14355 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14356 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14357 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14358 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14359 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14360 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14361 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14362 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14363 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14364 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14365 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14366
14367 ;;
14368 esac
14369 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14370 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14371 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14372 echo $ECHO_N "(cached) $ECHO_C" >&6
14373 else
14374 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14375 fi
14376 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14377 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14378
14379 fi
14380 if test $ac_cv_header_malloc_malloc_h = yes; then
14381
14382 cat >>confdefs.h <<\_ACEOF
14383 #define HAVE_MALLOC_MALLOC_H 1
14384 _ACEOF
14385
14386 fi
14387
14388
14389
14390 ### Use Mac OS X Carbon API to implement GUI.
14391 if test "${HAVE_CARBON}" = "yes"; then
14392
14393 cat >>confdefs.h <<\_ACEOF
14394 #define HAVE_CARBON 1
14395 _ACEOF
14396
14397 ## Specify the install directory
14398 carbon_appdir=
14399 if test "${carbon_appdir_x}" != ""; then
14400 case ${carbon_appdir_x} in
14401 y | ye | yes) carbon_appdir=/Applications ;;
14402 * ) carbon_appdir=${carbon_appdir_x} ;;
14403 esac
14404 fi
14405 # We also have mouse menus.
14406 HAVE_MENUS=yes
14407 fi
14408
14409 ### Use session management (-lSM -lICE) if available
14410 HAVE_X_SM=no
14411 if test "${HAVE_X11}" = "yes"; then
14412 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14413 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14414 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14415 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14416 echo $ECHO_N "(cached) $ECHO_C" >&6
14417 fi
14418 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14419 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14420 else
14421 # Is the header compilable?
14422 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14423 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14424 cat >conftest.$ac_ext <<_ACEOF
14425 /* confdefs.h. */
14426 _ACEOF
14427 cat confdefs.h >>conftest.$ac_ext
14428 cat >>conftest.$ac_ext <<_ACEOF
14429 /* end confdefs.h. */
14430 $ac_includes_default
14431 #include <X11/SM/SMlib.h>
14432 _ACEOF
14433 rm -f conftest.$ac_objext
14434 if { (ac_try="$ac_compile"
14435 case "(($ac_try" in
14436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14437 *) ac_try_echo=$ac_try;;
14438 esac
14439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14440 (eval "$ac_compile") 2>conftest.er1
14441 ac_status=$?
14442 grep -v '^ *+' conftest.er1 >conftest.err
14443 rm -f conftest.er1
14444 cat conftest.err >&5
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); } && {
14447 test -z "$ac_c_werror_flag" ||
14448 test ! -s conftest.err
14449 } && test -s conftest.$ac_objext; then
14450 ac_header_compiler=yes
14451 else
14452 echo "$as_me: failed program was:" >&5
14453 sed 's/^/| /' conftest.$ac_ext >&5
14454
14455 ac_header_compiler=no
14456 fi
14457
14458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14459 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14460 echo "${ECHO_T}$ac_header_compiler" >&6; }
14461
14462 # Is the header present?
14463 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14464 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14465 cat >conftest.$ac_ext <<_ACEOF
14466 /* confdefs.h. */
14467 _ACEOF
14468 cat confdefs.h >>conftest.$ac_ext
14469 cat >>conftest.$ac_ext <<_ACEOF
14470 /* end confdefs.h. */
14471 #include <X11/SM/SMlib.h>
14472 _ACEOF
14473 if { (ac_try="$ac_cpp conftest.$ac_ext"
14474 case "(($ac_try" in
14475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14476 *) ac_try_echo=$ac_try;;
14477 esac
14478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14479 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14480 ac_status=$?
14481 grep -v '^ *+' conftest.er1 >conftest.err
14482 rm -f conftest.er1
14483 cat conftest.err >&5
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); } >/dev/null && {
14486 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14487 test ! -s conftest.err
14488 }; then
14489 ac_header_preproc=yes
14490 else
14491 echo "$as_me: failed program was:" >&5
14492 sed 's/^/| /' conftest.$ac_ext >&5
14493
14494 ac_header_preproc=no
14495 fi
14496
14497 rm -f conftest.err conftest.$ac_ext
14498 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14499 echo "${ECHO_T}$ac_header_preproc" >&6; }
14500
14501 # So? What about this header?
14502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14503 yes:no: )
14504 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14505 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14506 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14507 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14508 ac_header_preproc=yes
14509 ;;
14510 no:yes:* )
14511 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14512 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14513 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14514 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14515 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14516 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14517 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14518 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14519 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14520 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14521 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14522 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14523
14524 ;;
14525 esac
14526 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14527 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14528 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14529 echo $ECHO_N "(cached) $ECHO_C" >&6
14530 else
14531 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14532 fi
14533 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14534 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14535
14536 fi
14537 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14538 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14539 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14540 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14541 echo $ECHO_N "(cached) $ECHO_C" >&6
14542 else
14543 ac_check_lib_save_LIBS=$LIBS
14544 LIBS="-lSM -lICE $LIBS"
14545 cat >conftest.$ac_ext <<_ACEOF
14546 /* confdefs.h. */
14547 _ACEOF
14548 cat confdefs.h >>conftest.$ac_ext
14549 cat >>conftest.$ac_ext <<_ACEOF
14550 /* end confdefs.h. */
14551
14552 /* Override any GCC internal prototype to avoid an error.
14553 Use char because int might match the return type of a GCC
14554 builtin and then its argument prototype would still apply. */
14555 #ifdef __cplusplus
14556 extern "C"
14557 #endif
14558 char SmcOpenConnection ();
14559 int
14560 main ()
14561 {
14562 return SmcOpenConnection ();
14563 ;
14564 return 0;
14565 }
14566 _ACEOF
14567 rm -f conftest.$ac_objext conftest$ac_exeext
14568 if { (ac_try="$ac_link"
14569 case "(($ac_try" in
14570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14571 *) ac_try_echo=$ac_try;;
14572 esac
14573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14574 (eval "$ac_link") 2>conftest.er1
14575 ac_status=$?
14576 grep -v '^ *+' conftest.er1 >conftest.err
14577 rm -f conftest.er1
14578 cat conftest.err >&5
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); } && {
14581 test -z "$ac_c_werror_flag" ||
14582 test ! -s conftest.err
14583 } && test -s conftest$ac_exeext &&
14584 $as_test_x conftest$ac_exeext; then
14585 ac_cv_lib_SM_SmcOpenConnection=yes
14586 else
14587 echo "$as_me: failed program was:" >&5
14588 sed 's/^/| /' conftest.$ac_ext >&5
14589
14590 ac_cv_lib_SM_SmcOpenConnection=no
14591 fi
14592
14593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14594 conftest$ac_exeext conftest.$ac_ext
14595 LIBS=$ac_check_lib_save_LIBS
14596 fi
14597 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14598 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14599 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14600 HAVE_X_SM=yes
14601 fi
14602
14603 fi
14604
14605
14606
14607 if test "${HAVE_X_SM}" = "yes"; then
14608
14609 cat >>confdefs.h <<\_ACEOF
14610 #define HAVE_X_SM 1
14611 _ACEOF
14612
14613 case "$LIBS" in
14614 *-lSM*) ;;
14615 *) LIBS="-lSM -lICE $LIBS" ;;
14616 esac
14617 fi
14618 fi
14619
14620 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14621 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14622 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14623 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14624 echo $ECHO_N "(cached) $ECHO_C" >&6
14625 else
14626 cat >conftest.$ac_ext <<_ACEOF
14627 /* confdefs.h. */
14628 _ACEOF
14629 cat confdefs.h >>conftest.$ac_ext
14630 cat >>conftest.$ac_ext <<_ACEOF
14631 /* end confdefs.h. */
14632 #include <netdb.h>
14633 int
14634 main ()
14635 {
14636 return h_errno;
14637 ;
14638 return 0;
14639 }
14640 _ACEOF
14641 rm -f conftest.$ac_objext conftest$ac_exeext
14642 if { (ac_try="$ac_link"
14643 case "(($ac_try" in
14644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14645 *) ac_try_echo=$ac_try;;
14646 esac
14647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14648 (eval "$ac_link") 2>conftest.er1
14649 ac_status=$?
14650 grep -v '^ *+' conftest.er1 >conftest.err
14651 rm -f conftest.er1
14652 cat conftest.err >&5
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); } && {
14655 test -z "$ac_c_werror_flag" ||
14656 test ! -s conftest.err
14657 } && test -s conftest$ac_exeext &&
14658 $as_test_x conftest$ac_exeext; then
14659 emacs_cv_netdb_declares_h_errno=yes
14660 else
14661 echo "$as_me: failed program was:" >&5
14662 sed 's/^/| /' conftest.$ac_ext >&5
14663
14664 emacs_cv_netdb_declares_h_errno=no
14665 fi
14666
14667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14668 conftest$ac_exeext conftest.$ac_ext
14669 fi
14670 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14671 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14672 if test $emacs_cv_netdb_declares_h_errno = yes; then
14673
14674 cat >>confdefs.h <<\_ACEOF
14675 #define HAVE_H_ERRNO 1
14676 _ACEOF
14677
14678 fi
14679
14680 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14681 # for constant arguments. Useless!
14682 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14683 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14684 if test "${ac_cv_working_alloca_h+set}" = set; then
14685 echo $ECHO_N "(cached) $ECHO_C" >&6
14686 else
14687 cat >conftest.$ac_ext <<_ACEOF
14688 /* confdefs.h. */
14689 _ACEOF
14690 cat confdefs.h >>conftest.$ac_ext
14691 cat >>conftest.$ac_ext <<_ACEOF
14692 /* end confdefs.h. */
14693 #include <alloca.h>
14694 int
14695 main ()
14696 {
14697 char *p = (char *) alloca (2 * sizeof (int));
14698 if (p) return 0;
14699 ;
14700 return 0;
14701 }
14702 _ACEOF
14703 rm -f conftest.$ac_objext conftest$ac_exeext
14704 if { (ac_try="$ac_link"
14705 case "(($ac_try" in
14706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14707 *) ac_try_echo=$ac_try;;
14708 esac
14709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14710 (eval "$ac_link") 2>conftest.er1
14711 ac_status=$?
14712 grep -v '^ *+' conftest.er1 >conftest.err
14713 rm -f conftest.er1
14714 cat conftest.err >&5
14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716 (exit $ac_status); } && {
14717 test -z "$ac_c_werror_flag" ||
14718 test ! -s conftest.err
14719 } && test -s conftest$ac_exeext &&
14720 $as_test_x conftest$ac_exeext; then
14721 ac_cv_working_alloca_h=yes
14722 else
14723 echo "$as_me: failed program was:" >&5
14724 sed 's/^/| /' conftest.$ac_ext >&5
14725
14726 ac_cv_working_alloca_h=no
14727 fi
14728
14729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14730 conftest$ac_exeext conftest.$ac_ext
14731 fi
14732 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14733 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14734 if test $ac_cv_working_alloca_h = yes; then
14735
14736 cat >>confdefs.h <<\_ACEOF
14737 #define HAVE_ALLOCA_H 1
14738 _ACEOF
14739
14740 fi
14741
14742 { echo "$as_me:$LINENO: checking for alloca" >&5
14743 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14744 if test "${ac_cv_func_alloca_works+set}" = set; then
14745 echo $ECHO_N "(cached) $ECHO_C" >&6
14746 else
14747 cat >conftest.$ac_ext <<_ACEOF
14748 /* confdefs.h. */
14749 _ACEOF
14750 cat confdefs.h >>conftest.$ac_ext
14751 cat >>conftest.$ac_ext <<_ACEOF
14752 /* end confdefs.h. */
14753 #ifdef __GNUC__
14754 # define alloca __builtin_alloca
14755 #else
14756 # ifdef _MSC_VER
14757 # include <malloc.h>
14758 # define alloca _alloca
14759 # else
14760 # ifdef HAVE_ALLOCA_H
14761 # include <alloca.h>
14762 # else
14763 # ifdef _AIX
14764 #pragma alloca
14765 # else
14766 # ifndef alloca /* predefined by HP cc +Olibcalls */
14767 char *alloca ();
14768 # endif
14769 # endif
14770 # endif
14771 # endif
14772 #endif
14773
14774 int
14775 main ()
14776 {
14777 char *p = (char *) alloca (1);
14778 if (p) return 0;
14779 ;
14780 return 0;
14781 }
14782 _ACEOF
14783 rm -f conftest.$ac_objext conftest$ac_exeext
14784 if { (ac_try="$ac_link"
14785 case "(($ac_try" in
14786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14787 *) ac_try_echo=$ac_try;;
14788 esac
14789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14790 (eval "$ac_link") 2>conftest.er1
14791 ac_status=$?
14792 grep -v '^ *+' conftest.er1 >conftest.err
14793 rm -f conftest.er1
14794 cat conftest.err >&5
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); } && {
14797 test -z "$ac_c_werror_flag" ||
14798 test ! -s conftest.err
14799 } && test -s conftest$ac_exeext &&
14800 $as_test_x conftest$ac_exeext; then
14801 ac_cv_func_alloca_works=yes
14802 else
14803 echo "$as_me: failed program was:" >&5
14804 sed 's/^/| /' conftest.$ac_ext >&5
14805
14806 ac_cv_func_alloca_works=no
14807 fi
14808
14809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14810 conftest$ac_exeext conftest.$ac_ext
14811 fi
14812 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14813 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14814
14815 if test $ac_cv_func_alloca_works = yes; then
14816
14817 cat >>confdefs.h <<\_ACEOF
14818 #define HAVE_ALLOCA 1
14819 _ACEOF
14820
14821 else
14822 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14823 # that cause trouble. Some versions do not even contain alloca or
14824 # contain a buggy version. If you still want to use their alloca,
14825 # use ar to extract alloca.o from them instead of compiling alloca.c.
14826
14827 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14828
14829 cat >>confdefs.h <<\_ACEOF
14830 #define C_ALLOCA 1
14831 _ACEOF
14832
14833
14834 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14835 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
14836 if test "${ac_cv_os_cray+set}" = set; then
14837 echo $ECHO_N "(cached) $ECHO_C" >&6
14838 else
14839 cat >conftest.$ac_ext <<_ACEOF
14840 /* confdefs.h. */
14841 _ACEOF
14842 cat confdefs.h >>conftest.$ac_ext
14843 cat >>conftest.$ac_ext <<_ACEOF
14844 /* end confdefs.h. */
14845 #if defined CRAY && ! defined CRAY2
14846 webecray
14847 #else
14848 wenotbecray
14849 #endif
14850
14851 _ACEOF
14852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14853 $EGREP "webecray" >/dev/null 2>&1; then
14854 ac_cv_os_cray=yes
14855 else
14856 ac_cv_os_cray=no
14857 fi
14858 rm -f conftest*
14859
14860 fi
14861 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14862 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14863 if test $ac_cv_os_cray = yes; then
14864 for ac_func in _getb67 GETB67 getb67; do
14865 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14866 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14867 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14868 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14869 echo $ECHO_N "(cached) $ECHO_C" >&6
14870 else
14871 cat >conftest.$ac_ext <<_ACEOF
14872 /* confdefs.h. */
14873 _ACEOF
14874 cat confdefs.h >>conftest.$ac_ext
14875 cat >>conftest.$ac_ext <<_ACEOF
14876 /* end confdefs.h. */
14877 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14879 #define $ac_func innocuous_$ac_func
14880
14881 /* System header to define __stub macros and hopefully few prototypes,
14882 which can conflict with char $ac_func (); below.
14883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14884 <limits.h> exists even on freestanding compilers. */
14885
14886 #ifdef __STDC__
14887 # include <limits.h>
14888 #else
14889 # include <assert.h>
14890 #endif
14891
14892 #undef $ac_func
14893
14894 /* Override any GCC internal prototype to avoid an error.
14895 Use char because int might match the return type of a GCC
14896 builtin and then its argument prototype would still apply. */
14897 #ifdef __cplusplus
14898 extern "C"
14899 #endif
14900 char $ac_func ();
14901 /* The GNU C library defines this for functions which it implements
14902 to always fail with ENOSYS. Some functions are actually named
14903 something starting with __ and the normal name is an alias. */
14904 #if defined __stub_$ac_func || defined __stub___$ac_func
14905 choke me
14906 #endif
14907
14908 int
14909 main ()
14910 {
14911 return $ac_func ();
14912 ;
14913 return 0;
14914 }
14915 _ACEOF
14916 rm -f conftest.$ac_objext conftest$ac_exeext
14917 if { (ac_try="$ac_link"
14918 case "(($ac_try" in
14919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14920 *) ac_try_echo=$ac_try;;
14921 esac
14922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14923 (eval "$ac_link") 2>conftest.er1
14924 ac_status=$?
14925 grep -v '^ *+' conftest.er1 >conftest.err
14926 rm -f conftest.er1
14927 cat conftest.err >&5
14928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929 (exit $ac_status); } && {
14930 test -z "$ac_c_werror_flag" ||
14931 test ! -s conftest.err
14932 } && test -s conftest$ac_exeext &&
14933 $as_test_x conftest$ac_exeext; then
14934 eval "$as_ac_var=yes"
14935 else
14936 echo "$as_me: failed program was:" >&5
14937 sed 's/^/| /' conftest.$ac_ext >&5
14938
14939 eval "$as_ac_var=no"
14940 fi
14941
14942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14943 conftest$ac_exeext conftest.$ac_ext
14944 fi
14945 ac_res=`eval echo '${'$as_ac_var'}'`
14946 { echo "$as_me:$LINENO: result: $ac_res" >&5
14947 echo "${ECHO_T}$ac_res" >&6; }
14948 if test `eval echo '${'$as_ac_var'}'` = yes; then
14949
14950 cat >>confdefs.h <<_ACEOF
14951 #define CRAY_STACKSEG_END $ac_func
14952 _ACEOF
14953
14954 break
14955 fi
14956
14957 done
14958 fi
14959
14960 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14961 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
14962 if test "${ac_cv_c_stack_direction+set}" = set; then
14963 echo $ECHO_N "(cached) $ECHO_C" >&6
14964 else
14965 if test "$cross_compiling" = yes; then
14966 ac_cv_c_stack_direction=0
14967 else
14968 cat >conftest.$ac_ext <<_ACEOF
14969 /* confdefs.h. */
14970 _ACEOF
14971 cat confdefs.h >>conftest.$ac_ext
14972 cat >>conftest.$ac_ext <<_ACEOF
14973 /* end confdefs.h. */
14974 $ac_includes_default
14975 int
14976 find_stack_direction ()
14977 {
14978 static char *addr = 0;
14979 auto char dummy;
14980 if (addr == 0)
14981 {
14982 addr = &dummy;
14983 return find_stack_direction ();
14984 }
14985 else
14986 return (&dummy > addr) ? 1 : -1;
14987 }
14988
14989 int
14990 main ()
14991 {
14992 return find_stack_direction () < 0;
14993 }
14994 _ACEOF
14995 rm -f conftest$ac_exeext
14996 if { (ac_try="$ac_link"
14997 case "(($ac_try" in
14998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14999 *) ac_try_echo=$ac_try;;
15000 esac
15001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15002 (eval "$ac_link") 2>&5
15003 ac_status=$?
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15006 { (case "(($ac_try" in
15007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15008 *) ac_try_echo=$ac_try;;
15009 esac
15010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15011 (eval "$ac_try") 2>&5
15012 ac_status=$?
15013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014 (exit $ac_status); }; }; then
15015 ac_cv_c_stack_direction=1
15016 else
15017 echo "$as_me: program exited with status $ac_status" >&5
15018 echo "$as_me: failed program was:" >&5
15019 sed 's/^/| /' conftest.$ac_ext >&5
15020
15021 ( exit $ac_status )
15022 ac_cv_c_stack_direction=-1
15023 fi
15024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15025 fi
15026
15027
15028 fi
15029 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15030 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15031
15032 cat >>confdefs.h <<_ACEOF
15033 #define STACK_DIRECTION $ac_cv_c_stack_direction
15034 _ACEOF
15035
15036
15037 fi
15038
15039
15040 # fmod, logb, and frexp are found in -lm on most systems.
15041 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15042
15043 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15044 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15045 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15046 echo $ECHO_N "(cached) $ECHO_C" >&6
15047 else
15048 ac_check_lib_save_LIBS=$LIBS
15049 LIBS="-lm $LIBS"
15050 cat >conftest.$ac_ext <<_ACEOF
15051 /* confdefs.h. */
15052 _ACEOF
15053 cat confdefs.h >>conftest.$ac_ext
15054 cat >>conftest.$ac_ext <<_ACEOF
15055 /* end confdefs.h. */
15056
15057 /* Override any GCC internal prototype to avoid an error.
15058 Use char because int might match the return type of a GCC
15059 builtin and then its argument prototype would still apply. */
15060 #ifdef __cplusplus
15061 extern "C"
15062 #endif
15063 char sqrt ();
15064 int
15065 main ()
15066 {
15067 return sqrt ();
15068 ;
15069 return 0;
15070 }
15071 _ACEOF
15072 rm -f conftest.$ac_objext conftest$ac_exeext
15073 if { (ac_try="$ac_link"
15074 case "(($ac_try" in
15075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15076 *) ac_try_echo=$ac_try;;
15077 esac
15078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15079 (eval "$ac_link") 2>conftest.er1
15080 ac_status=$?
15081 grep -v '^ *+' conftest.er1 >conftest.err
15082 rm -f conftest.er1
15083 cat conftest.err >&5
15084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 (exit $ac_status); } && {
15086 test -z "$ac_c_werror_flag" ||
15087 test ! -s conftest.err
15088 } && test -s conftest$ac_exeext &&
15089 $as_test_x conftest$ac_exeext; then
15090 ac_cv_lib_m_sqrt=yes
15091 else
15092 echo "$as_me: failed program was:" >&5
15093 sed 's/^/| /' conftest.$ac_ext >&5
15094
15095 ac_cv_lib_m_sqrt=no
15096 fi
15097
15098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15099 conftest$ac_exeext conftest.$ac_ext
15100 LIBS=$ac_check_lib_save_LIBS
15101 fi
15102 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15103 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15104 if test $ac_cv_lib_m_sqrt = yes; then
15105 cat >>confdefs.h <<_ACEOF
15106 #define HAVE_LIBM 1
15107 _ACEOF
15108
15109 LIBS="-lm $LIBS"
15110
15111 fi
15112
15113
15114 # Check for mail-locking functions in a "mail" library. Probably this should
15115 # have the same check as for liblockfile below.
15116
15117 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15118 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15119 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15120 echo $ECHO_N "(cached) $ECHO_C" >&6
15121 else
15122 ac_check_lib_save_LIBS=$LIBS
15123 LIBS="-lmail $LIBS"
15124 cat >conftest.$ac_ext <<_ACEOF
15125 /* confdefs.h. */
15126 _ACEOF
15127 cat confdefs.h >>conftest.$ac_ext
15128 cat >>conftest.$ac_ext <<_ACEOF
15129 /* end confdefs.h. */
15130
15131 /* Override any GCC internal prototype to avoid an error.
15132 Use char because int might match the return type of a GCC
15133 builtin and then its argument prototype would still apply. */
15134 #ifdef __cplusplus
15135 extern "C"
15136 #endif
15137 char maillock ();
15138 int
15139 main ()
15140 {
15141 return maillock ();
15142 ;
15143 return 0;
15144 }
15145 _ACEOF
15146 rm -f conftest.$ac_objext conftest$ac_exeext
15147 if { (ac_try="$ac_link"
15148 case "(($ac_try" in
15149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15150 *) ac_try_echo=$ac_try;;
15151 esac
15152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15153 (eval "$ac_link") 2>conftest.er1
15154 ac_status=$?
15155 grep -v '^ *+' conftest.er1 >conftest.err
15156 rm -f conftest.er1
15157 cat conftest.err >&5
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); } && {
15160 test -z "$ac_c_werror_flag" ||
15161 test ! -s conftest.err
15162 } && test -s conftest$ac_exeext &&
15163 $as_test_x conftest$ac_exeext; then
15164 ac_cv_lib_mail_maillock=yes
15165 else
15166 echo "$as_me: failed program was:" >&5
15167 sed 's/^/| /' conftest.$ac_ext >&5
15168
15169 ac_cv_lib_mail_maillock=no
15170 fi
15171
15172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15173 conftest$ac_exeext conftest.$ac_ext
15174 LIBS=$ac_check_lib_save_LIBS
15175 fi
15176 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15177 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15178 if test $ac_cv_lib_mail_maillock = yes; then
15179 cat >>confdefs.h <<_ACEOF
15180 #define HAVE_LIBMAIL 1
15181 _ACEOF
15182
15183 LIBS="-lmail $LIBS"
15184
15185 fi
15186
15187
15188 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15189 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15190 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15191 echo $ECHO_N "(cached) $ECHO_C" >&6
15192 else
15193 ac_check_lib_save_LIBS=$LIBS
15194 LIBS="-llockfile $LIBS"
15195 cat >conftest.$ac_ext <<_ACEOF
15196 /* confdefs.h. */
15197 _ACEOF
15198 cat confdefs.h >>conftest.$ac_ext
15199 cat >>conftest.$ac_ext <<_ACEOF
15200 /* end confdefs.h. */
15201
15202 /* Override any GCC internal prototype to avoid an error.
15203 Use char because int might match the return type of a GCC
15204 builtin and then its argument prototype would still apply. */
15205 #ifdef __cplusplus
15206 extern "C"
15207 #endif
15208 char maillock ();
15209 int
15210 main ()
15211 {
15212 return maillock ();
15213 ;
15214 return 0;
15215 }
15216 _ACEOF
15217 rm -f conftest.$ac_objext conftest$ac_exeext
15218 if { (ac_try="$ac_link"
15219 case "(($ac_try" in
15220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15221 *) ac_try_echo=$ac_try;;
15222 esac
15223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15224 (eval "$ac_link") 2>conftest.er1
15225 ac_status=$?
15226 grep -v '^ *+' conftest.er1 >conftest.err
15227 rm -f conftest.er1
15228 cat conftest.err >&5
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); } && {
15231 test -z "$ac_c_werror_flag" ||
15232 test ! -s conftest.err
15233 } && test -s conftest$ac_exeext &&
15234 $as_test_x conftest$ac_exeext; then
15235 ac_cv_lib_lockfile_maillock=yes
15236 else
15237 echo "$as_me: failed program was:" >&5
15238 sed 's/^/| /' conftest.$ac_ext >&5
15239
15240 ac_cv_lib_lockfile_maillock=no
15241 fi
15242
15243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15244 conftest$ac_exeext conftest.$ac_ext
15245 LIBS=$ac_check_lib_save_LIBS
15246 fi
15247 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15248 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15249 if test $ac_cv_lib_lockfile_maillock = yes; then
15250 cat >>confdefs.h <<_ACEOF
15251 #define HAVE_LIBLOCKFILE 1
15252 _ACEOF
15253
15254 LIBS="-llockfile $LIBS"
15255
15256 fi
15257
15258 # If we have the shared liblockfile, assume we must use it for mail
15259 # locking (e.g. Debian). If we couldn't link against liblockfile
15260 # (no liblockfile.a installed), ensure that we don't need to.
15261 if test "$ac_cv_lib_lockfile_maillock" = no; then
15262 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15263 set dummy liblockfile.so; ac_word=$2
15264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15266 if test "${ac_cv_prog_liblockfile+set}" = set; then
15267 echo $ECHO_N "(cached) $ECHO_C" >&6
15268 else
15269 if test -n "$liblockfile"; then
15270 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15271 else
15272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15273 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15274 for as_dir in $as_dummy
15275 do
15276 IFS=$as_save_IFS
15277 test -z "$as_dir" && as_dir=.
15278 for ac_exec_ext in '' $ac_executable_extensions; do
15279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15280 ac_cv_prog_liblockfile="yes"
15281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15282 break 2
15283 fi
15284 done
15285 done
15286 IFS=$as_save_IFS
15287
15288 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15289 fi
15290 fi
15291 liblockfile=$ac_cv_prog_liblockfile
15292 if test -n "$liblockfile"; then
15293 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15294 echo "${ECHO_T}$liblockfile" >&6; }
15295 else
15296 { echo "$as_me:$LINENO: result: no" >&5
15297 echo "${ECHO_T}no" >&6; }
15298 fi
15299
15300
15301 if test $ac_cv_prog_liblockfile = yes; then
15302 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15303 This probably means that movemail could lose mail.
15304 There may be a \`development' package to install containing liblockfile." >&5
15305 echo "$as_me: error: Shared liblockfile found but can't link against it.
15306 This probably means that movemail could lose mail.
15307 There may be a \`development' package to install containing liblockfile." >&2;}
15308 { (exit 1); exit 1; }; }
15309 else :
15310 fi
15311 fi
15312
15313 for ac_func in touchlock
15314 do
15315 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15316 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15317 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15318 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15319 echo $ECHO_N "(cached) $ECHO_C" >&6
15320 else
15321 cat >conftest.$ac_ext <<_ACEOF
15322 /* confdefs.h. */
15323 _ACEOF
15324 cat confdefs.h >>conftest.$ac_ext
15325 cat >>conftest.$ac_ext <<_ACEOF
15326 /* end confdefs.h. */
15327 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15329 #define $ac_func innocuous_$ac_func
15330
15331 /* System header to define __stub macros and hopefully few prototypes,
15332 which can conflict with char $ac_func (); below.
15333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15334 <limits.h> exists even on freestanding compilers. */
15335
15336 #ifdef __STDC__
15337 # include <limits.h>
15338 #else
15339 # include <assert.h>
15340 #endif
15341
15342 #undef $ac_func
15343
15344 /* Override any GCC internal prototype to avoid an error.
15345 Use char because int might match the return type of a GCC
15346 builtin and then its argument prototype would still apply. */
15347 #ifdef __cplusplus
15348 extern "C"
15349 #endif
15350 char $ac_func ();
15351 /* The GNU C library defines this for functions which it implements
15352 to always fail with ENOSYS. Some functions are actually named
15353 something starting with __ and the normal name is an alias. */
15354 #if defined __stub_$ac_func || defined __stub___$ac_func
15355 choke me
15356 #endif
15357
15358 int
15359 main ()
15360 {
15361 return $ac_func ();
15362 ;
15363 return 0;
15364 }
15365 _ACEOF
15366 rm -f conftest.$ac_objext conftest$ac_exeext
15367 if { (ac_try="$ac_link"
15368 case "(($ac_try" in
15369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15370 *) ac_try_echo=$ac_try;;
15371 esac
15372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15373 (eval "$ac_link") 2>conftest.er1
15374 ac_status=$?
15375 grep -v '^ *+' conftest.er1 >conftest.err
15376 rm -f conftest.er1
15377 cat conftest.err >&5
15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); } && {
15380 test -z "$ac_c_werror_flag" ||
15381 test ! -s conftest.err
15382 } && test -s conftest$ac_exeext &&
15383 $as_test_x conftest$ac_exeext; then
15384 eval "$as_ac_var=yes"
15385 else
15386 echo "$as_me: failed program was:" >&5
15387 sed 's/^/| /' conftest.$ac_ext >&5
15388
15389 eval "$as_ac_var=no"
15390 fi
15391
15392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15393 conftest$ac_exeext conftest.$ac_ext
15394 fi
15395 ac_res=`eval echo '${'$as_ac_var'}'`
15396 { echo "$as_me:$LINENO: result: $ac_res" >&5
15397 echo "${ECHO_T}$ac_res" >&6; }
15398 if test `eval echo '${'$as_ac_var'}'` = yes; then
15399 cat >>confdefs.h <<_ACEOF
15400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15401 _ACEOF
15402
15403 fi
15404 done
15405
15406
15407 for ac_header in maillock.h
15408 do
15409 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15411 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15414 echo $ECHO_N "(cached) $ECHO_C" >&6
15415 fi
15416 ac_res=`eval echo '${'$as_ac_Header'}'`
15417 { echo "$as_me:$LINENO: result: $ac_res" >&5
15418 echo "${ECHO_T}$ac_res" >&6; }
15419 else
15420 # Is the header compilable?
15421 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15422 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15423 cat >conftest.$ac_ext <<_ACEOF
15424 /* confdefs.h. */
15425 _ACEOF
15426 cat confdefs.h >>conftest.$ac_ext
15427 cat >>conftest.$ac_ext <<_ACEOF
15428 /* end confdefs.h. */
15429 $ac_includes_default
15430 #include <$ac_header>
15431 _ACEOF
15432 rm -f conftest.$ac_objext
15433 if { (ac_try="$ac_compile"
15434 case "(($ac_try" in
15435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15436 *) ac_try_echo=$ac_try;;
15437 esac
15438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15439 (eval "$ac_compile") 2>conftest.er1
15440 ac_status=$?
15441 grep -v '^ *+' conftest.er1 >conftest.err
15442 rm -f conftest.er1
15443 cat conftest.err >&5
15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); } && {
15446 test -z "$ac_c_werror_flag" ||
15447 test ! -s conftest.err
15448 } && test -s conftest.$ac_objext; then
15449 ac_header_compiler=yes
15450 else
15451 echo "$as_me: failed program was:" >&5
15452 sed 's/^/| /' conftest.$ac_ext >&5
15453
15454 ac_header_compiler=no
15455 fi
15456
15457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15458 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15459 echo "${ECHO_T}$ac_header_compiler" >&6; }
15460
15461 # Is the header present?
15462 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15463 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15464 cat >conftest.$ac_ext <<_ACEOF
15465 /* confdefs.h. */
15466 _ACEOF
15467 cat confdefs.h >>conftest.$ac_ext
15468 cat >>conftest.$ac_ext <<_ACEOF
15469 /* end confdefs.h. */
15470 #include <$ac_header>
15471 _ACEOF
15472 if { (ac_try="$ac_cpp conftest.$ac_ext"
15473 case "(($ac_try" in
15474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15475 *) ac_try_echo=$ac_try;;
15476 esac
15477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15478 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15479 ac_status=$?
15480 grep -v '^ *+' conftest.er1 >conftest.err
15481 rm -f conftest.er1
15482 cat conftest.err >&5
15483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484 (exit $ac_status); } >/dev/null && {
15485 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15486 test ! -s conftest.err
15487 }; then
15488 ac_header_preproc=yes
15489 else
15490 echo "$as_me: failed program was:" >&5
15491 sed 's/^/| /' conftest.$ac_ext >&5
15492
15493 ac_header_preproc=no
15494 fi
15495
15496 rm -f conftest.err conftest.$ac_ext
15497 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15498 echo "${ECHO_T}$ac_header_preproc" >&6; }
15499
15500 # So? What about this header?
15501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15502 yes:no: )
15503 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15504 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15506 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15507 ac_header_preproc=yes
15508 ;;
15509 no:yes:* )
15510 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15511 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15512 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15513 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15514 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15515 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15516 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15517 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15519 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15520 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15521 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15522
15523 ;;
15524 esac
15525 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15528 echo $ECHO_N "(cached) $ECHO_C" >&6
15529 else
15530 eval "$as_ac_Header=\$ac_header_preproc"
15531 fi
15532 ac_res=`eval echo '${'$as_ac_Header'}'`
15533 { echo "$as_me:$LINENO: result: $ac_res" >&5
15534 echo "${ECHO_T}$ac_res" >&6; }
15535
15536 fi
15537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15538 cat >>confdefs.h <<_ACEOF
15539 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15540 _ACEOF
15541
15542 fi
15543
15544 done
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616 for ac_func in gethostname getdomainname dup2 \
15617 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15618 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15619 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15620 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15621 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15622 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15623 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15624 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15625 do
15626 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15627 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15628 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15629 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15630 echo $ECHO_N "(cached) $ECHO_C" >&6
15631 else
15632 cat >conftest.$ac_ext <<_ACEOF
15633 /* confdefs.h. */
15634 _ACEOF
15635 cat confdefs.h >>conftest.$ac_ext
15636 cat >>conftest.$ac_ext <<_ACEOF
15637 /* end confdefs.h. */
15638 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15639 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15640 #define $ac_func innocuous_$ac_func
15641
15642 /* System header to define __stub macros and hopefully few prototypes,
15643 which can conflict with char $ac_func (); below.
15644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15645 <limits.h> exists even on freestanding compilers. */
15646
15647 #ifdef __STDC__
15648 # include <limits.h>
15649 #else
15650 # include <assert.h>
15651 #endif
15652
15653 #undef $ac_func
15654
15655 /* Override any GCC internal prototype to avoid an error.
15656 Use char because int might match the return type of a GCC
15657 builtin and then its argument prototype would still apply. */
15658 #ifdef __cplusplus
15659 extern "C"
15660 #endif
15661 char $ac_func ();
15662 /* The GNU C library defines this for functions which it implements
15663 to always fail with ENOSYS. Some functions are actually named
15664 something starting with __ and the normal name is an alias. */
15665 #if defined __stub_$ac_func || defined __stub___$ac_func
15666 choke me
15667 #endif
15668
15669 int
15670 main ()
15671 {
15672 return $ac_func ();
15673 ;
15674 return 0;
15675 }
15676 _ACEOF
15677 rm -f conftest.$ac_objext conftest$ac_exeext
15678 if { (ac_try="$ac_link"
15679 case "(($ac_try" in
15680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15681 *) ac_try_echo=$ac_try;;
15682 esac
15683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15684 (eval "$ac_link") 2>conftest.er1
15685 ac_status=$?
15686 grep -v '^ *+' conftest.er1 >conftest.err
15687 rm -f conftest.er1
15688 cat conftest.err >&5
15689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690 (exit $ac_status); } && {
15691 test -z "$ac_c_werror_flag" ||
15692 test ! -s conftest.err
15693 } && test -s conftest$ac_exeext &&
15694 $as_test_x conftest$ac_exeext; then
15695 eval "$as_ac_var=yes"
15696 else
15697 echo "$as_me: failed program was:" >&5
15698 sed 's/^/| /' conftest.$ac_ext >&5
15699
15700 eval "$as_ac_var=no"
15701 fi
15702
15703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15704 conftest$ac_exeext conftest.$ac_ext
15705 fi
15706 ac_res=`eval echo '${'$as_ac_var'}'`
15707 { echo "$as_me:$LINENO: result: $ac_res" >&5
15708 echo "${ECHO_T}$ac_res" >&6; }
15709 if test `eval echo '${'$as_ac_var'}'` = yes; then
15710 cat >>confdefs.h <<_ACEOF
15711 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15712 _ACEOF
15713
15714 fi
15715 done
15716
15717
15718
15719 for ac_header in sys/un.h
15720 do
15721 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15723 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15726 echo $ECHO_N "(cached) $ECHO_C" >&6
15727 fi
15728 ac_res=`eval echo '${'$as_ac_Header'}'`
15729 { echo "$as_me:$LINENO: result: $ac_res" >&5
15730 echo "${ECHO_T}$ac_res" >&6; }
15731 else
15732 # Is the header compilable?
15733 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15734 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15735 cat >conftest.$ac_ext <<_ACEOF
15736 /* confdefs.h. */
15737 _ACEOF
15738 cat confdefs.h >>conftest.$ac_ext
15739 cat >>conftest.$ac_ext <<_ACEOF
15740 /* end confdefs.h. */
15741 $ac_includes_default
15742 #include <$ac_header>
15743 _ACEOF
15744 rm -f conftest.$ac_objext
15745 if { (ac_try="$ac_compile"
15746 case "(($ac_try" in
15747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15748 *) ac_try_echo=$ac_try;;
15749 esac
15750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15751 (eval "$ac_compile") 2>conftest.er1
15752 ac_status=$?
15753 grep -v '^ *+' conftest.er1 >conftest.err
15754 rm -f conftest.er1
15755 cat conftest.err >&5
15756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); } && {
15758 test -z "$ac_c_werror_flag" ||
15759 test ! -s conftest.err
15760 } && test -s conftest.$ac_objext; then
15761 ac_header_compiler=yes
15762 else
15763 echo "$as_me: failed program was:" >&5
15764 sed 's/^/| /' conftest.$ac_ext >&5
15765
15766 ac_header_compiler=no
15767 fi
15768
15769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15770 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15771 echo "${ECHO_T}$ac_header_compiler" >&6; }
15772
15773 # Is the header present?
15774 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15775 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15776 cat >conftest.$ac_ext <<_ACEOF
15777 /* confdefs.h. */
15778 _ACEOF
15779 cat confdefs.h >>conftest.$ac_ext
15780 cat >>conftest.$ac_ext <<_ACEOF
15781 /* end confdefs.h. */
15782 #include <$ac_header>
15783 _ACEOF
15784 if { (ac_try="$ac_cpp conftest.$ac_ext"
15785 case "(($ac_try" in
15786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15787 *) ac_try_echo=$ac_try;;
15788 esac
15789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15790 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15791 ac_status=$?
15792 grep -v '^ *+' conftest.er1 >conftest.err
15793 rm -f conftest.er1
15794 cat conftest.err >&5
15795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796 (exit $ac_status); } >/dev/null && {
15797 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15798 test ! -s conftest.err
15799 }; then
15800 ac_header_preproc=yes
15801 else
15802 echo "$as_me: failed program was:" >&5
15803 sed 's/^/| /' conftest.$ac_ext >&5
15804
15805 ac_header_preproc=no
15806 fi
15807
15808 rm -f conftest.err conftest.$ac_ext
15809 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15810 echo "${ECHO_T}$ac_header_preproc" >&6; }
15811
15812 # So? What about this header?
15813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15814 yes:no: )
15815 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15816 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15818 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15819 ac_header_preproc=yes
15820 ;;
15821 no:yes:* )
15822 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15823 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15824 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15825 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15826 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15827 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15828 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15829 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15832 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15833 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15834
15835 ;;
15836 esac
15837 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15840 echo $ECHO_N "(cached) $ECHO_C" >&6
15841 else
15842 eval "$as_ac_Header=\$ac_header_preproc"
15843 fi
15844 ac_res=`eval echo '${'$as_ac_Header'}'`
15845 { echo "$as_me:$LINENO: result: $ac_res" >&5
15846 echo "${ECHO_T}$ac_res" >&6; }
15847
15848 fi
15849 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15850 cat >>confdefs.h <<_ACEOF
15851 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15852 _ACEOF
15853
15854 fi
15855
15856 done
15857
15858
15859
15860
15861
15862
15863 for ac_header in $ac_header_list
15864 do
15865 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15867 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15870 echo $ECHO_N "(cached) $ECHO_C" >&6
15871 fi
15872 ac_res=`eval echo '${'$as_ac_Header'}'`
15873 { echo "$as_me:$LINENO: result: $ac_res" >&5
15874 echo "${ECHO_T}$ac_res" >&6; }
15875 else
15876 # Is the header compilable?
15877 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15878 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15879 cat >conftest.$ac_ext <<_ACEOF
15880 /* confdefs.h. */
15881 _ACEOF
15882 cat confdefs.h >>conftest.$ac_ext
15883 cat >>conftest.$ac_ext <<_ACEOF
15884 /* end confdefs.h. */
15885 $ac_includes_default
15886 #include <$ac_header>
15887 _ACEOF
15888 rm -f conftest.$ac_objext
15889 if { (ac_try="$ac_compile"
15890 case "(($ac_try" in
15891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15892 *) ac_try_echo=$ac_try;;
15893 esac
15894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15895 (eval "$ac_compile") 2>conftest.er1
15896 ac_status=$?
15897 grep -v '^ *+' conftest.er1 >conftest.err
15898 rm -f conftest.er1
15899 cat conftest.err >&5
15900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901 (exit $ac_status); } && {
15902 test -z "$ac_c_werror_flag" ||
15903 test ! -s conftest.err
15904 } && test -s conftest.$ac_objext; then
15905 ac_header_compiler=yes
15906 else
15907 echo "$as_me: failed program was:" >&5
15908 sed 's/^/| /' conftest.$ac_ext >&5
15909
15910 ac_header_compiler=no
15911 fi
15912
15913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15914 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15915 echo "${ECHO_T}$ac_header_compiler" >&6; }
15916
15917 # Is the header present?
15918 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15919 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15920 cat >conftest.$ac_ext <<_ACEOF
15921 /* confdefs.h. */
15922 _ACEOF
15923 cat confdefs.h >>conftest.$ac_ext
15924 cat >>conftest.$ac_ext <<_ACEOF
15925 /* end confdefs.h. */
15926 #include <$ac_header>
15927 _ACEOF
15928 if { (ac_try="$ac_cpp conftest.$ac_ext"
15929 case "(($ac_try" in
15930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15931 *) ac_try_echo=$ac_try;;
15932 esac
15933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15935 ac_status=$?
15936 grep -v '^ *+' conftest.er1 >conftest.err
15937 rm -f conftest.er1
15938 cat conftest.err >&5
15939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940 (exit $ac_status); } >/dev/null && {
15941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15942 test ! -s conftest.err
15943 }; then
15944 ac_header_preproc=yes
15945 else
15946 echo "$as_me: failed program was:" >&5
15947 sed 's/^/| /' conftest.$ac_ext >&5
15948
15949 ac_header_preproc=no
15950 fi
15951
15952 rm -f conftest.err conftest.$ac_ext
15953 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15954 echo "${ECHO_T}$ac_header_preproc" >&6; }
15955
15956 # So? What about this header?
15957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15958 yes:no: )
15959 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15960 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15961 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15962 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15963 ac_header_preproc=yes
15964 ;;
15965 no:yes:* )
15966 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15967 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15968 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15969 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15970 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15971 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15972 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15973 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15975 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15976 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15977 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15978
15979 ;;
15980 esac
15981 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15984 echo $ECHO_N "(cached) $ECHO_C" >&6
15985 else
15986 eval "$as_ac_Header=\$ac_header_preproc"
15987 fi
15988 ac_res=`eval echo '${'$as_ac_Header'}'`
15989 { echo "$as_me:$LINENO: result: $ac_res" >&5
15990 echo "${ECHO_T}$ac_res" >&6; }
15991
15992 fi
15993 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15994 cat >>confdefs.h <<_ACEOF
15995 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15996 _ACEOF
15997
15998 fi
15999
16000 done
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010 for ac_func in $ac_func_list
16011 do
16012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16013 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16015 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16016 echo $ECHO_N "(cached) $ECHO_C" >&6
16017 else
16018 cat >conftest.$ac_ext <<_ACEOF
16019 /* confdefs.h. */
16020 _ACEOF
16021 cat confdefs.h >>conftest.$ac_ext
16022 cat >>conftest.$ac_ext <<_ACEOF
16023 /* end confdefs.h. */
16024 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16026 #define $ac_func innocuous_$ac_func
16027
16028 /* System header to define __stub macros and hopefully few prototypes,
16029 which can conflict with char $ac_func (); below.
16030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16031 <limits.h> exists even on freestanding compilers. */
16032
16033 #ifdef __STDC__
16034 # include <limits.h>
16035 #else
16036 # include <assert.h>
16037 #endif
16038
16039 #undef $ac_func
16040
16041 /* Override any GCC internal prototype to avoid an error.
16042 Use char because int might match the return type of a GCC
16043 builtin and then its argument prototype would still apply. */
16044 #ifdef __cplusplus
16045 extern "C"
16046 #endif
16047 char $ac_func ();
16048 /* The GNU C library defines this for functions which it implements
16049 to always fail with ENOSYS. Some functions are actually named
16050 something starting with __ and the normal name is an alias. */
16051 #if defined __stub_$ac_func || defined __stub___$ac_func
16052 choke me
16053 #endif
16054
16055 int
16056 main ()
16057 {
16058 return $ac_func ();
16059 ;
16060 return 0;
16061 }
16062 _ACEOF
16063 rm -f conftest.$ac_objext conftest$ac_exeext
16064 if { (ac_try="$ac_link"
16065 case "(($ac_try" in
16066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16067 *) ac_try_echo=$ac_try;;
16068 esac
16069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16070 (eval "$ac_link") 2>conftest.er1
16071 ac_status=$?
16072 grep -v '^ *+' conftest.er1 >conftest.err
16073 rm -f conftest.er1
16074 cat conftest.err >&5
16075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076 (exit $ac_status); } && {
16077 test -z "$ac_c_werror_flag" ||
16078 test ! -s conftest.err
16079 } && test -s conftest$ac_exeext &&
16080 $as_test_x conftest$ac_exeext; then
16081 eval "$as_ac_var=yes"
16082 else
16083 echo "$as_me: failed program was:" >&5
16084 sed 's/^/| /' conftest.$ac_ext >&5
16085
16086 eval "$as_ac_var=no"
16087 fi
16088
16089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16090 conftest$ac_exeext conftest.$ac_ext
16091 fi
16092 ac_res=`eval echo '${'$as_ac_var'}'`
16093 { echo "$as_me:$LINENO: result: $ac_res" >&5
16094 echo "${ECHO_T}$ac_res" >&6; }
16095 if test `eval echo '${'$as_ac_var'}'` = yes; then
16096 cat >>confdefs.h <<_ACEOF
16097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16098 _ACEOF
16099
16100 fi
16101 done
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119 { echo "$as_me:$LINENO: checking for working mktime" >&5
16120 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16121 if test "${ac_cv_func_working_mktime+set}" = set; then
16122 echo $ECHO_N "(cached) $ECHO_C" >&6
16123 else
16124 if test "$cross_compiling" = yes; then
16125 ac_cv_func_working_mktime=no
16126 else
16127 cat >conftest.$ac_ext <<_ACEOF
16128 /* confdefs.h. */
16129 _ACEOF
16130 cat confdefs.h >>conftest.$ac_ext
16131 cat >>conftest.$ac_ext <<_ACEOF
16132 /* end confdefs.h. */
16133 /* Test program from Paul Eggert and Tony Leneis. */
16134 #ifdef TIME_WITH_SYS_TIME
16135 # include <sys/time.h>
16136 # include <time.h>
16137 #else
16138 # ifdef HAVE_SYS_TIME_H
16139 # include <sys/time.h>
16140 # else
16141 # include <time.h>
16142 # endif
16143 #endif
16144
16145 #include <stdlib.h>
16146
16147 #ifdef HAVE_UNISTD_H
16148 # include <unistd.h>
16149 #endif
16150
16151 #ifndef HAVE_ALARM
16152 # define alarm(X) /* empty */
16153 #endif
16154
16155 /* Work around redefinition to rpl_putenv by other config tests. */
16156 #undef putenv
16157
16158 static time_t time_t_max;
16159 static time_t time_t_min;
16160
16161 /* Values we'll use to set the TZ environment variable. */
16162 static char *tz_strings[] = {
16163 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16164 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16165 };
16166 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16167
16168 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16169 Based on a problem report from Andreas Jaeger. */
16170 static int
16171 spring_forward_gap ()
16172 {
16173 /* glibc (up to about 1998-10-07) failed this test. */
16174 struct tm tm;
16175
16176 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16177 instead of "TZ=America/Vancouver" in order to detect the bug even
16178 on systems that don't support the Olson extension, or don't have the
16179 full zoneinfo tables installed. */
16180 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16181
16182 tm.tm_year = 98;
16183 tm.tm_mon = 3;
16184 tm.tm_mday = 5;
16185 tm.tm_hour = 2;
16186 tm.tm_min = 0;
16187 tm.tm_sec = 0;
16188 tm.tm_isdst = -1;
16189 return mktime (&tm) != (time_t) -1;
16190 }
16191
16192 static int
16193 mktime_test1 (now)
16194 time_t now;
16195 {
16196 struct tm *lt;
16197 return ! (lt = localtime (&now)) || mktime (lt) == now;
16198 }
16199
16200 static int
16201 mktime_test (now)
16202 time_t now;
16203 {
16204 return (mktime_test1 (now)
16205 && mktime_test1 ((time_t) (time_t_max - now))
16206 && mktime_test1 ((time_t) (time_t_min + now)));
16207 }
16208
16209 static int
16210 irix_6_4_bug ()
16211 {
16212 /* Based on code from Ariel Faigon. */
16213 struct tm tm;
16214 tm.tm_year = 96;
16215 tm.tm_mon = 3;
16216 tm.tm_mday = 0;
16217 tm.tm_hour = 0;
16218 tm.tm_min = 0;
16219 tm.tm_sec = 0;
16220 tm.tm_isdst = -1;
16221 mktime (&tm);
16222 return tm.tm_mon == 2 && tm.tm_mday == 31;
16223 }
16224
16225 static int
16226 bigtime_test (j)
16227 int j;
16228 {
16229 struct tm tm;
16230 time_t now;
16231 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16232 now = mktime (&tm);
16233 if (now != (time_t) -1)
16234 {
16235 struct tm *lt = localtime (&now);
16236 if (! (lt
16237 && lt->tm_year == tm.tm_year
16238 && lt->tm_mon == tm.tm_mon
16239 && lt->tm_mday == tm.tm_mday
16240 && lt->tm_hour == tm.tm_hour
16241 && lt->tm_min == tm.tm_min
16242 && lt->tm_sec == tm.tm_sec
16243 && lt->tm_yday == tm.tm_yday
16244 && lt->tm_wday == tm.tm_wday
16245 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16246 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16247 return 0;
16248 }
16249 return 1;
16250 }
16251
16252 static int
16253 year_2050_test ()
16254 {
16255 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16256 ignoring leap seconds. */
16257 unsigned long int answer = 2527315200UL;
16258
16259 struct tm tm;
16260 time_t t;
16261 tm.tm_year = 2050 - 1900;
16262 tm.tm_mon = 2 - 1;
16263 tm.tm_mday = 1;
16264 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16265 tm.tm_isdst = -1;
16266
16267 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16268 instead of "TZ=America/Vancouver" in order to detect the bug even
16269 on systems that don't support the Olson extension, or don't have the
16270 full zoneinfo tables installed. */
16271 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16272
16273 t = mktime (&tm);
16274
16275 /* Check that the result is either a failure, or close enough
16276 to the correct answer that we can assume the discrepancy is
16277 due to leap seconds. */
16278 return (t == (time_t) -1
16279 || (0 < t && answer - 120 <= t && t <= answer + 120));
16280 }
16281
16282 int
16283 main ()
16284 {
16285 time_t t, delta;
16286 int i, j;
16287
16288 /* This test makes some buggy mktime implementations loop.
16289 Give up after 60 seconds; a mktime slower than that
16290 isn't worth using anyway. */
16291 alarm (60);
16292
16293 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16294 continue;
16295 time_t_max--;
16296 if ((time_t) -1 < 0)
16297 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16298 continue;
16299 delta = time_t_max / 997; /* a suitable prime number */
16300 for (i = 0; i < N_STRINGS; i++)
16301 {
16302 if (tz_strings[i])
16303 putenv (tz_strings[i]);
16304
16305 for (t = 0; t <= time_t_max - delta; t += delta)
16306 if (! mktime_test (t))
16307 return 1;
16308 if (! (mktime_test ((time_t) 1)
16309 && mktime_test ((time_t) (60 * 60))
16310 && mktime_test ((time_t) (60 * 60 * 24))))
16311 return 1;
16312
16313 for (j = 1; 0 < j; j *= 2)
16314 if (! bigtime_test (j))
16315 return 1;
16316 if (! bigtime_test (j - 1))
16317 return 1;
16318 }
16319 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16320 }
16321 _ACEOF
16322 rm -f conftest$ac_exeext
16323 if { (ac_try="$ac_link"
16324 case "(($ac_try" in
16325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16326 *) ac_try_echo=$ac_try;;
16327 esac
16328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16329 (eval "$ac_link") 2>&5
16330 ac_status=$?
16331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16333 { (case "(($ac_try" in
16334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16335 *) ac_try_echo=$ac_try;;
16336 esac
16337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16338 (eval "$ac_try") 2>&5
16339 ac_status=$?
16340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341 (exit $ac_status); }; }; then
16342 ac_cv_func_working_mktime=yes
16343 else
16344 echo "$as_me: program exited with status $ac_status" >&5
16345 echo "$as_me: failed program was:" >&5
16346 sed 's/^/| /' conftest.$ac_ext >&5
16347
16348 ( exit $ac_status )
16349 ac_cv_func_working_mktime=no
16350 fi
16351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16352 fi
16353
16354
16355 fi
16356 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16357 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16358 if test $ac_cv_func_working_mktime = no; then
16359 case " $LIBOBJS " in
16360 *" mktime.$ac_objext "* ) ;;
16361 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16362 ;;
16363 esac
16364
16365 fi
16366
16367 if test "$ac_cv_func_working_mktime" = no; then
16368
16369 cat >>confdefs.h <<\_ACEOF
16370 #define BROKEN_MKTIME 1
16371 _ACEOF
16372
16373 fi
16374
16375 ac_have_func=no # yes means we've found a way to get the load average.
16376
16377 # Make sure getloadavg.c is where it belongs, at configure-time.
16378 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16379 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16380 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16381 { (exit 1); exit 1; }; }
16382
16383 ac_save_LIBS=$LIBS
16384
16385 # Check for getloadavg, but be sure not to touch the cache variable.
16386 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16387 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16388 if test "${ac_cv_func_getloadavg+set}" = set; then
16389 echo $ECHO_N "(cached) $ECHO_C" >&6
16390 else
16391 cat >conftest.$ac_ext <<_ACEOF
16392 /* confdefs.h. */
16393 _ACEOF
16394 cat confdefs.h >>conftest.$ac_ext
16395 cat >>conftest.$ac_ext <<_ACEOF
16396 /* end confdefs.h. */
16397 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16399 #define getloadavg innocuous_getloadavg
16400
16401 /* System header to define __stub macros and hopefully few prototypes,
16402 which can conflict with char getloadavg (); below.
16403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16404 <limits.h> exists even on freestanding compilers. */
16405
16406 #ifdef __STDC__
16407 # include <limits.h>
16408 #else
16409 # include <assert.h>
16410 #endif
16411
16412 #undef getloadavg
16413
16414 /* Override any GCC internal prototype to avoid an error.
16415 Use char because int might match the return type of a GCC
16416 builtin and then its argument prototype would still apply. */
16417 #ifdef __cplusplus
16418 extern "C"
16419 #endif
16420 char getloadavg ();
16421 /* The GNU C library defines this for functions which it implements
16422 to always fail with ENOSYS. Some functions are actually named
16423 something starting with __ and the normal name is an alias. */
16424 #if defined __stub_getloadavg || defined __stub___getloadavg
16425 choke me
16426 #endif
16427
16428 int
16429 main ()
16430 {
16431 return getloadavg ();
16432 ;
16433 return 0;
16434 }
16435 _ACEOF
16436 rm -f conftest.$ac_objext conftest$ac_exeext
16437 if { (ac_try="$ac_link"
16438 case "(($ac_try" in
16439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16440 *) ac_try_echo=$ac_try;;
16441 esac
16442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16443 (eval "$ac_link") 2>conftest.er1
16444 ac_status=$?
16445 grep -v '^ *+' conftest.er1 >conftest.err
16446 rm -f conftest.er1
16447 cat conftest.err >&5
16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); } && {
16450 test -z "$ac_c_werror_flag" ||
16451 test ! -s conftest.err
16452 } && test -s conftest$ac_exeext &&
16453 $as_test_x conftest$ac_exeext; then
16454 ac_cv_func_getloadavg=yes
16455 else
16456 echo "$as_me: failed program was:" >&5
16457 sed 's/^/| /' conftest.$ac_ext >&5
16458
16459 ac_cv_func_getloadavg=no
16460 fi
16461
16462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16463 conftest$ac_exeext conftest.$ac_ext
16464 fi
16465 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16466 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16467 if test $ac_cv_func_getloadavg = yes; then
16468 exit 0
16469 else
16470 exit 1
16471 fi
16472 ) && ac_have_func=yes
16473
16474 # On HPUX9, an unprivileged user can get load averages through this function.
16475
16476 for ac_func in pstat_getdynamic
16477 do
16478 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16479 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16480 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16481 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16482 echo $ECHO_N "(cached) $ECHO_C" >&6
16483 else
16484 cat >conftest.$ac_ext <<_ACEOF
16485 /* confdefs.h. */
16486 _ACEOF
16487 cat confdefs.h >>conftest.$ac_ext
16488 cat >>conftest.$ac_ext <<_ACEOF
16489 /* end confdefs.h. */
16490 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16492 #define $ac_func innocuous_$ac_func
16493
16494 /* System header to define __stub macros and hopefully few prototypes,
16495 which can conflict with char $ac_func (); below.
16496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16497 <limits.h> exists even on freestanding compilers. */
16498
16499 #ifdef __STDC__
16500 # include <limits.h>
16501 #else
16502 # include <assert.h>
16503 #endif
16504
16505 #undef $ac_func
16506
16507 /* Override any GCC internal prototype to avoid an error.
16508 Use char because int might match the return type of a GCC
16509 builtin and then its argument prototype would still apply. */
16510 #ifdef __cplusplus
16511 extern "C"
16512 #endif
16513 char $ac_func ();
16514 /* The GNU C library defines this for functions which it implements
16515 to always fail with ENOSYS. Some functions are actually named
16516 something starting with __ and the normal name is an alias. */
16517 #if defined __stub_$ac_func || defined __stub___$ac_func
16518 choke me
16519 #endif
16520
16521 int
16522 main ()
16523 {
16524 return $ac_func ();
16525 ;
16526 return 0;
16527 }
16528 _ACEOF
16529 rm -f conftest.$ac_objext conftest$ac_exeext
16530 if { (ac_try="$ac_link"
16531 case "(($ac_try" in
16532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16533 *) ac_try_echo=$ac_try;;
16534 esac
16535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16536 (eval "$ac_link") 2>conftest.er1
16537 ac_status=$?
16538 grep -v '^ *+' conftest.er1 >conftest.err
16539 rm -f conftest.er1
16540 cat conftest.err >&5
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); } && {
16543 test -z "$ac_c_werror_flag" ||
16544 test ! -s conftest.err
16545 } && test -s conftest$ac_exeext &&
16546 $as_test_x conftest$ac_exeext; then
16547 eval "$as_ac_var=yes"
16548 else
16549 echo "$as_me: failed program was:" >&5
16550 sed 's/^/| /' conftest.$ac_ext >&5
16551
16552 eval "$as_ac_var=no"
16553 fi
16554
16555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16556 conftest$ac_exeext conftest.$ac_ext
16557 fi
16558 ac_res=`eval echo '${'$as_ac_var'}'`
16559 { echo "$as_me:$LINENO: result: $ac_res" >&5
16560 echo "${ECHO_T}$ac_res" >&6; }
16561 if test `eval echo '${'$as_ac_var'}'` = yes; then
16562 cat >>confdefs.h <<_ACEOF
16563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16564 _ACEOF
16565
16566 fi
16567 done
16568
16569
16570 # Solaris has libkstat which does not require root.
16571
16572 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16573 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16574 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16575 echo $ECHO_N "(cached) $ECHO_C" >&6
16576 else
16577 ac_check_lib_save_LIBS=$LIBS
16578 LIBS="-lkstat $LIBS"
16579 cat >conftest.$ac_ext <<_ACEOF
16580 /* confdefs.h. */
16581 _ACEOF
16582 cat confdefs.h >>conftest.$ac_ext
16583 cat >>conftest.$ac_ext <<_ACEOF
16584 /* end confdefs.h. */
16585
16586 /* Override any GCC internal prototype to avoid an error.
16587 Use char because int might match the return type of a GCC
16588 builtin and then its argument prototype would still apply. */
16589 #ifdef __cplusplus
16590 extern "C"
16591 #endif
16592 char kstat_open ();
16593 int
16594 main ()
16595 {
16596 return kstat_open ();
16597 ;
16598 return 0;
16599 }
16600 _ACEOF
16601 rm -f conftest.$ac_objext conftest$ac_exeext
16602 if { (ac_try="$ac_link"
16603 case "(($ac_try" in
16604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16605 *) ac_try_echo=$ac_try;;
16606 esac
16607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16608 (eval "$ac_link") 2>conftest.er1
16609 ac_status=$?
16610 grep -v '^ *+' conftest.er1 >conftest.err
16611 rm -f conftest.er1
16612 cat conftest.err >&5
16613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614 (exit $ac_status); } && {
16615 test -z "$ac_c_werror_flag" ||
16616 test ! -s conftest.err
16617 } && test -s conftest$ac_exeext &&
16618 $as_test_x conftest$ac_exeext; then
16619 ac_cv_lib_kstat_kstat_open=yes
16620 else
16621 echo "$as_me: failed program was:" >&5
16622 sed 's/^/| /' conftest.$ac_ext >&5
16623
16624 ac_cv_lib_kstat_kstat_open=no
16625 fi
16626
16627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16628 conftest$ac_exeext conftest.$ac_ext
16629 LIBS=$ac_check_lib_save_LIBS
16630 fi
16631 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16632 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16633 if test $ac_cv_lib_kstat_kstat_open = yes; then
16634 cat >>confdefs.h <<_ACEOF
16635 #define HAVE_LIBKSTAT 1
16636 _ACEOF
16637
16638 LIBS="-lkstat $LIBS"
16639
16640 fi
16641
16642 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16643
16644 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16645 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16646 # to get the right answer into the cache.
16647 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16648 if test $ac_have_func = no; then
16649 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16650 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
16651 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16652 echo $ECHO_N "(cached) $ECHO_C" >&6
16653 else
16654 ac_check_lib_save_LIBS=$LIBS
16655 LIBS="-lelf $LIBS"
16656 cat >conftest.$ac_ext <<_ACEOF
16657 /* confdefs.h. */
16658 _ACEOF
16659 cat confdefs.h >>conftest.$ac_ext
16660 cat >>conftest.$ac_ext <<_ACEOF
16661 /* end confdefs.h. */
16662
16663 /* Override any GCC internal prototype to avoid an error.
16664 Use char because int might match the return type of a GCC
16665 builtin and then its argument prototype would still apply. */
16666 #ifdef __cplusplus
16667 extern "C"
16668 #endif
16669 char elf_begin ();
16670 int
16671 main ()
16672 {
16673 return elf_begin ();
16674 ;
16675 return 0;
16676 }
16677 _ACEOF
16678 rm -f conftest.$ac_objext conftest$ac_exeext
16679 if { (ac_try="$ac_link"
16680 case "(($ac_try" in
16681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16682 *) ac_try_echo=$ac_try;;
16683 esac
16684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16685 (eval "$ac_link") 2>conftest.er1
16686 ac_status=$?
16687 grep -v '^ *+' conftest.er1 >conftest.err
16688 rm -f conftest.er1
16689 cat conftest.err >&5
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); } && {
16692 test -z "$ac_c_werror_flag" ||
16693 test ! -s conftest.err
16694 } && test -s conftest$ac_exeext &&
16695 $as_test_x conftest$ac_exeext; then
16696 ac_cv_lib_elf_elf_begin=yes
16697 else
16698 echo "$as_me: failed program was:" >&5
16699 sed 's/^/| /' conftest.$ac_ext >&5
16700
16701 ac_cv_lib_elf_elf_begin=no
16702 fi
16703
16704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16705 conftest$ac_exeext conftest.$ac_ext
16706 LIBS=$ac_check_lib_save_LIBS
16707 fi
16708 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
16709 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16710 if test $ac_cv_lib_elf_elf_begin = yes; then
16711 LIBS="-lelf $LIBS"
16712 fi
16713
16714 fi
16715 if test $ac_have_func = no; then
16716 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
16717 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
16718 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16719 echo $ECHO_N "(cached) $ECHO_C" >&6
16720 else
16721 ac_check_lib_save_LIBS=$LIBS
16722 LIBS="-lkvm $LIBS"
16723 cat >conftest.$ac_ext <<_ACEOF
16724 /* confdefs.h. */
16725 _ACEOF
16726 cat confdefs.h >>conftest.$ac_ext
16727 cat >>conftest.$ac_ext <<_ACEOF
16728 /* end confdefs.h. */
16729
16730 /* Override any GCC internal prototype to avoid an error.
16731 Use char because int might match the return type of a GCC
16732 builtin and then its argument prototype would still apply. */
16733 #ifdef __cplusplus
16734 extern "C"
16735 #endif
16736 char kvm_open ();
16737 int
16738 main ()
16739 {
16740 return kvm_open ();
16741 ;
16742 return 0;
16743 }
16744 _ACEOF
16745 rm -f conftest.$ac_objext conftest$ac_exeext
16746 if { (ac_try="$ac_link"
16747 case "(($ac_try" in
16748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749 *) ac_try_echo=$ac_try;;
16750 esac
16751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16752 (eval "$ac_link") 2>conftest.er1
16753 ac_status=$?
16754 grep -v '^ *+' conftest.er1 >conftest.err
16755 rm -f conftest.er1
16756 cat conftest.err >&5
16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); } && {
16759 test -z "$ac_c_werror_flag" ||
16760 test ! -s conftest.err
16761 } && test -s conftest$ac_exeext &&
16762 $as_test_x conftest$ac_exeext; then
16763 ac_cv_lib_kvm_kvm_open=yes
16764 else
16765 echo "$as_me: failed program was:" >&5
16766 sed 's/^/| /' conftest.$ac_ext >&5
16767
16768 ac_cv_lib_kvm_kvm_open=no
16769 fi
16770
16771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16772 conftest$ac_exeext conftest.$ac_ext
16773 LIBS=$ac_check_lib_save_LIBS
16774 fi
16775 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
16776 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16777 if test $ac_cv_lib_kvm_kvm_open = yes; then
16778 LIBS="-lkvm $LIBS"
16779 fi
16780
16781 # Check for the 4.4BSD definition of getloadavg.
16782 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
16783 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
16784 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16785 echo $ECHO_N "(cached) $ECHO_C" >&6
16786 else
16787 ac_check_lib_save_LIBS=$LIBS
16788 LIBS="-lutil $LIBS"
16789 cat >conftest.$ac_ext <<_ACEOF
16790 /* confdefs.h. */
16791 _ACEOF
16792 cat confdefs.h >>conftest.$ac_ext
16793 cat >>conftest.$ac_ext <<_ACEOF
16794 /* end confdefs.h. */
16795
16796 /* Override any GCC internal prototype to avoid an error.
16797 Use char because int might match the return type of a GCC
16798 builtin and then its argument prototype would still apply. */
16799 #ifdef __cplusplus
16800 extern "C"
16801 #endif
16802 char getloadavg ();
16803 int
16804 main ()
16805 {
16806 return getloadavg ();
16807 ;
16808 return 0;
16809 }
16810 _ACEOF
16811 rm -f conftest.$ac_objext conftest$ac_exeext
16812 if { (ac_try="$ac_link"
16813 case "(($ac_try" in
16814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16815 *) ac_try_echo=$ac_try;;
16816 esac
16817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16818 (eval "$ac_link") 2>conftest.er1
16819 ac_status=$?
16820 grep -v '^ *+' conftest.er1 >conftest.err
16821 rm -f conftest.er1
16822 cat conftest.err >&5
16823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 (exit $ac_status); } && {
16825 test -z "$ac_c_werror_flag" ||
16826 test ! -s conftest.err
16827 } && test -s conftest$ac_exeext &&
16828 $as_test_x conftest$ac_exeext; then
16829 ac_cv_lib_util_getloadavg=yes
16830 else
16831 echo "$as_me: failed program was:" >&5
16832 sed 's/^/| /' conftest.$ac_ext >&5
16833
16834 ac_cv_lib_util_getloadavg=no
16835 fi
16836
16837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16838 conftest$ac_exeext conftest.$ac_ext
16839 LIBS=$ac_check_lib_save_LIBS
16840 fi
16841 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
16842 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16843 if test $ac_cv_lib_util_getloadavg = yes; then
16844 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16845 fi
16846
16847 fi
16848
16849 if test $ac_have_func = no; then
16850 # There is a commonly available library for RS/6000 AIX.
16851 # Since it is not a standard part of AIX, it might be installed locally.
16852 ac_getloadavg_LIBS=$LIBS
16853 LIBS="-L/usr/local/lib $LIBS"
16854 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
16855 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
16856 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16857 echo $ECHO_N "(cached) $ECHO_C" >&6
16858 else
16859 ac_check_lib_save_LIBS=$LIBS
16860 LIBS="-lgetloadavg $LIBS"
16861 cat >conftest.$ac_ext <<_ACEOF
16862 /* confdefs.h. */
16863 _ACEOF
16864 cat confdefs.h >>conftest.$ac_ext
16865 cat >>conftest.$ac_ext <<_ACEOF
16866 /* end confdefs.h. */
16867
16868 /* Override any GCC internal prototype to avoid an error.
16869 Use char because int might match the return type of a GCC
16870 builtin and then its argument prototype would still apply. */
16871 #ifdef __cplusplus
16872 extern "C"
16873 #endif
16874 char getloadavg ();
16875 int
16876 main ()
16877 {
16878 return getloadavg ();
16879 ;
16880 return 0;
16881 }
16882 _ACEOF
16883 rm -f conftest.$ac_objext conftest$ac_exeext
16884 if { (ac_try="$ac_link"
16885 case "(($ac_try" in
16886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16887 *) ac_try_echo=$ac_try;;
16888 esac
16889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16890 (eval "$ac_link") 2>conftest.er1
16891 ac_status=$?
16892 grep -v '^ *+' conftest.er1 >conftest.err
16893 rm -f conftest.er1
16894 cat conftest.err >&5
16895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896 (exit $ac_status); } && {
16897 test -z "$ac_c_werror_flag" ||
16898 test ! -s conftest.err
16899 } && test -s conftest$ac_exeext &&
16900 $as_test_x conftest$ac_exeext; then
16901 ac_cv_lib_getloadavg_getloadavg=yes
16902 else
16903 echo "$as_me: failed program was:" >&5
16904 sed 's/^/| /' conftest.$ac_ext >&5
16905
16906 ac_cv_lib_getloadavg_getloadavg=no
16907 fi
16908
16909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16910 conftest$ac_exeext conftest.$ac_ext
16911 LIBS=$ac_check_lib_save_LIBS
16912 fi
16913 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
16914 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16915 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16916 LIBS="-lgetloadavg $LIBS"
16917 else
16918 LIBS=$ac_getloadavg_LIBS
16919 fi
16920
16921 fi
16922
16923 # Make sure it is really in the library, if we think we found it,
16924 # otherwise set up the replacement function.
16925
16926 for ac_func in getloadavg
16927 do
16928 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16929 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16930 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16931 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16932 echo $ECHO_N "(cached) $ECHO_C" >&6
16933 else
16934 cat >conftest.$ac_ext <<_ACEOF
16935 /* confdefs.h. */
16936 _ACEOF
16937 cat confdefs.h >>conftest.$ac_ext
16938 cat >>conftest.$ac_ext <<_ACEOF
16939 /* end confdefs.h. */
16940 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16942 #define $ac_func innocuous_$ac_func
16943
16944 /* System header to define __stub macros and hopefully few prototypes,
16945 which can conflict with char $ac_func (); below.
16946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16947 <limits.h> exists even on freestanding compilers. */
16948
16949 #ifdef __STDC__
16950 # include <limits.h>
16951 #else
16952 # include <assert.h>
16953 #endif
16954
16955 #undef $ac_func
16956
16957 /* Override any GCC internal prototype to avoid an error.
16958 Use char because int might match the return type of a GCC
16959 builtin and then its argument prototype would still apply. */
16960 #ifdef __cplusplus
16961 extern "C"
16962 #endif
16963 char $ac_func ();
16964 /* The GNU C library defines this for functions which it implements
16965 to always fail with ENOSYS. Some functions are actually named
16966 something starting with __ and the normal name is an alias. */
16967 #if defined __stub_$ac_func || defined __stub___$ac_func
16968 choke me
16969 #endif
16970
16971 int
16972 main ()
16973 {
16974 return $ac_func ();
16975 ;
16976 return 0;
16977 }
16978 _ACEOF
16979 rm -f conftest.$ac_objext conftest$ac_exeext
16980 if { (ac_try="$ac_link"
16981 case "(($ac_try" in
16982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16983 *) ac_try_echo=$ac_try;;
16984 esac
16985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16986 (eval "$ac_link") 2>conftest.er1
16987 ac_status=$?
16988 grep -v '^ *+' conftest.er1 >conftest.err
16989 rm -f conftest.er1
16990 cat conftest.err >&5
16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); } && {
16993 test -z "$ac_c_werror_flag" ||
16994 test ! -s conftest.err
16995 } && test -s conftest$ac_exeext &&
16996 $as_test_x conftest$ac_exeext; then
16997 eval "$as_ac_var=yes"
16998 else
16999 echo "$as_me: failed program was:" >&5
17000 sed 's/^/| /' conftest.$ac_ext >&5
17001
17002 eval "$as_ac_var=no"
17003 fi
17004
17005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17006 conftest$ac_exeext conftest.$ac_ext
17007 fi
17008 ac_res=`eval echo '${'$as_ac_var'}'`
17009 { echo "$as_me:$LINENO: result: $ac_res" >&5
17010 echo "${ECHO_T}$ac_res" >&6; }
17011 if test `eval echo '${'$as_ac_var'}'` = yes; then
17012 cat >>confdefs.h <<_ACEOF
17013 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17014 _ACEOF
17015
17016 else
17017 case " $LIBOBJS " in
17018 *" getloadavg.$ac_objext "* ) ;;
17019 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17020 ;;
17021 esac
17022
17023
17024 cat >>confdefs.h <<\_ACEOF
17025 #define C_GETLOADAVG 1
17026 _ACEOF
17027
17028 # Figure out what our getloadavg.c needs.
17029 ac_have_func=no
17030 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17031 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17032 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17033 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17034 echo $ECHO_N "(cached) $ECHO_C" >&6
17035 fi
17036 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17037 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17038 else
17039 # Is the header compilable?
17040 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17041 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17042 cat >conftest.$ac_ext <<_ACEOF
17043 /* confdefs.h. */
17044 _ACEOF
17045 cat confdefs.h >>conftest.$ac_ext
17046 cat >>conftest.$ac_ext <<_ACEOF
17047 /* end confdefs.h. */
17048 $ac_includes_default
17049 #include <sys/dg_sys_info.h>
17050 _ACEOF
17051 rm -f conftest.$ac_objext
17052 if { (ac_try="$ac_compile"
17053 case "(($ac_try" in
17054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17055 *) ac_try_echo=$ac_try;;
17056 esac
17057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17058 (eval "$ac_compile") 2>conftest.er1
17059 ac_status=$?
17060 grep -v '^ *+' conftest.er1 >conftest.err
17061 rm -f conftest.er1
17062 cat conftest.err >&5
17063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); } && {
17065 test -z "$ac_c_werror_flag" ||
17066 test ! -s conftest.err
17067 } && test -s conftest.$ac_objext; then
17068 ac_header_compiler=yes
17069 else
17070 echo "$as_me: failed program was:" >&5
17071 sed 's/^/| /' conftest.$ac_ext >&5
17072
17073 ac_header_compiler=no
17074 fi
17075
17076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17077 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17078 echo "${ECHO_T}$ac_header_compiler" >&6; }
17079
17080 # Is the header present?
17081 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17082 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17083 cat >conftest.$ac_ext <<_ACEOF
17084 /* confdefs.h. */
17085 _ACEOF
17086 cat confdefs.h >>conftest.$ac_ext
17087 cat >>conftest.$ac_ext <<_ACEOF
17088 /* end confdefs.h. */
17089 #include <sys/dg_sys_info.h>
17090 _ACEOF
17091 if { (ac_try="$ac_cpp conftest.$ac_ext"
17092 case "(($ac_try" in
17093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17094 *) ac_try_echo=$ac_try;;
17095 esac
17096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17098 ac_status=$?
17099 grep -v '^ *+' conftest.er1 >conftest.err
17100 rm -f conftest.er1
17101 cat conftest.err >&5
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); } >/dev/null && {
17104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17105 test ! -s conftest.err
17106 }; then
17107 ac_header_preproc=yes
17108 else
17109 echo "$as_me: failed program was:" >&5
17110 sed 's/^/| /' conftest.$ac_ext >&5
17111
17112 ac_header_preproc=no
17113 fi
17114
17115 rm -f conftest.err conftest.$ac_ext
17116 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17117 echo "${ECHO_T}$ac_header_preproc" >&6; }
17118
17119 # So? What about this header?
17120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17121 yes:no: )
17122 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17123 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17124 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17125 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17126 ac_header_preproc=yes
17127 ;;
17128 no:yes:* )
17129 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17130 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17131 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17132 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17133 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17134 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17135 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17136 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17137 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17138 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17139 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17140 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17141
17142 ;;
17143 esac
17144 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17145 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17146 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17147 echo $ECHO_N "(cached) $ECHO_C" >&6
17148 else
17149 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17150 fi
17151 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17152 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17153
17154 fi
17155 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17156 ac_have_func=yes
17157
17158 cat >>confdefs.h <<\_ACEOF
17159 #define DGUX 1
17160 _ACEOF
17161
17162
17163 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17164 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17165 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17166 echo $ECHO_N "(cached) $ECHO_C" >&6
17167 else
17168 ac_check_lib_save_LIBS=$LIBS
17169 LIBS="-ldgc $LIBS"
17170 cat >conftest.$ac_ext <<_ACEOF
17171 /* confdefs.h. */
17172 _ACEOF
17173 cat confdefs.h >>conftest.$ac_ext
17174 cat >>conftest.$ac_ext <<_ACEOF
17175 /* end confdefs.h. */
17176
17177 /* Override any GCC internal prototype to avoid an error.
17178 Use char because int might match the return type of a GCC
17179 builtin and then its argument prototype would still apply. */
17180 #ifdef __cplusplus
17181 extern "C"
17182 #endif
17183 char dg_sys_info ();
17184 int
17185 main ()
17186 {
17187 return dg_sys_info ();
17188 ;
17189 return 0;
17190 }
17191 _ACEOF
17192 rm -f conftest.$ac_objext conftest$ac_exeext
17193 if { (ac_try="$ac_link"
17194 case "(($ac_try" in
17195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17196 *) ac_try_echo=$ac_try;;
17197 esac
17198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17199 (eval "$ac_link") 2>conftest.er1
17200 ac_status=$?
17201 grep -v '^ *+' conftest.er1 >conftest.err
17202 rm -f conftest.er1
17203 cat conftest.err >&5
17204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); } && {
17206 test -z "$ac_c_werror_flag" ||
17207 test ! -s conftest.err
17208 } && test -s conftest$ac_exeext &&
17209 $as_test_x conftest$ac_exeext; then
17210 ac_cv_lib_dgc_dg_sys_info=yes
17211 else
17212 echo "$as_me: failed program was:" >&5
17213 sed 's/^/| /' conftest.$ac_ext >&5
17214
17215 ac_cv_lib_dgc_dg_sys_info=no
17216 fi
17217
17218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17219 conftest$ac_exeext conftest.$ac_ext
17220 LIBS=$ac_check_lib_save_LIBS
17221 fi
17222 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17223 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17224 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17225 cat >>confdefs.h <<_ACEOF
17226 #define HAVE_LIBDGC 1
17227 _ACEOF
17228
17229 LIBS="-ldgc $LIBS"
17230
17231 fi
17232
17233 fi
17234
17235
17236
17237 if test "${ac_cv_header_locale_h+set}" = set; then
17238 { echo "$as_me:$LINENO: checking for locale.h" >&5
17239 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17240 if test "${ac_cv_header_locale_h+set}" = set; then
17241 echo $ECHO_N "(cached) $ECHO_C" >&6
17242 fi
17243 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17244 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17245 else
17246 # Is the header compilable?
17247 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17248 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17249 cat >conftest.$ac_ext <<_ACEOF
17250 /* confdefs.h. */
17251 _ACEOF
17252 cat confdefs.h >>conftest.$ac_ext
17253 cat >>conftest.$ac_ext <<_ACEOF
17254 /* end confdefs.h. */
17255 $ac_includes_default
17256 #include <locale.h>
17257 _ACEOF
17258 rm -f conftest.$ac_objext
17259 if { (ac_try="$ac_compile"
17260 case "(($ac_try" in
17261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17262 *) ac_try_echo=$ac_try;;
17263 esac
17264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17265 (eval "$ac_compile") 2>conftest.er1
17266 ac_status=$?
17267 grep -v '^ *+' conftest.er1 >conftest.err
17268 rm -f conftest.er1
17269 cat conftest.err >&5
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); } && {
17272 test -z "$ac_c_werror_flag" ||
17273 test ! -s conftest.err
17274 } && test -s conftest.$ac_objext; then
17275 ac_header_compiler=yes
17276 else
17277 echo "$as_me: failed program was:" >&5
17278 sed 's/^/| /' conftest.$ac_ext >&5
17279
17280 ac_header_compiler=no
17281 fi
17282
17283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17284 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17285 echo "${ECHO_T}$ac_header_compiler" >&6; }
17286
17287 # Is the header present?
17288 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17289 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17290 cat >conftest.$ac_ext <<_ACEOF
17291 /* confdefs.h. */
17292 _ACEOF
17293 cat confdefs.h >>conftest.$ac_ext
17294 cat >>conftest.$ac_ext <<_ACEOF
17295 /* end confdefs.h. */
17296 #include <locale.h>
17297 _ACEOF
17298 if { (ac_try="$ac_cpp conftest.$ac_ext"
17299 case "(($ac_try" in
17300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17301 *) ac_try_echo=$ac_try;;
17302 esac
17303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17305 ac_status=$?
17306 grep -v '^ *+' conftest.er1 >conftest.err
17307 rm -f conftest.er1
17308 cat conftest.err >&5
17309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310 (exit $ac_status); } >/dev/null && {
17311 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17312 test ! -s conftest.err
17313 }; then
17314 ac_header_preproc=yes
17315 else
17316 echo "$as_me: failed program was:" >&5
17317 sed 's/^/| /' conftest.$ac_ext >&5
17318
17319 ac_header_preproc=no
17320 fi
17321
17322 rm -f conftest.err conftest.$ac_ext
17323 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17324 echo "${ECHO_T}$ac_header_preproc" >&6; }
17325
17326 # So? What about this header?
17327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17328 yes:no: )
17329 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17330 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17331 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17332 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17333 ac_header_preproc=yes
17334 ;;
17335 no:yes:* )
17336 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17337 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17338 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17339 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17340 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17341 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17342 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17343 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17344 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17345 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17346 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17347 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17348
17349 ;;
17350 esac
17351 { echo "$as_me:$LINENO: checking for locale.h" >&5
17352 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17353 if test "${ac_cv_header_locale_h+set}" = set; then
17354 echo $ECHO_N "(cached) $ECHO_C" >&6
17355 else
17356 ac_cv_header_locale_h=$ac_header_preproc
17357 fi
17358 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17359 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17360
17361 fi
17362
17363
17364
17365 for ac_func in setlocale
17366 do
17367 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17368 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17370 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17371 echo $ECHO_N "(cached) $ECHO_C" >&6
17372 else
17373 cat >conftest.$ac_ext <<_ACEOF
17374 /* confdefs.h. */
17375 _ACEOF
17376 cat confdefs.h >>conftest.$ac_ext
17377 cat >>conftest.$ac_ext <<_ACEOF
17378 /* end confdefs.h. */
17379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17381 #define $ac_func innocuous_$ac_func
17382
17383 /* System header to define __stub macros and hopefully few prototypes,
17384 which can conflict with char $ac_func (); below.
17385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17386 <limits.h> exists even on freestanding compilers. */
17387
17388 #ifdef __STDC__
17389 # include <limits.h>
17390 #else
17391 # include <assert.h>
17392 #endif
17393
17394 #undef $ac_func
17395
17396 /* Override any GCC internal prototype to avoid an error.
17397 Use char because int might match the return type of a GCC
17398 builtin and then its argument prototype would still apply. */
17399 #ifdef __cplusplus
17400 extern "C"
17401 #endif
17402 char $ac_func ();
17403 /* The GNU C library defines this for functions which it implements
17404 to always fail with ENOSYS. Some functions are actually named
17405 something starting with __ and the normal name is an alias. */
17406 #if defined __stub_$ac_func || defined __stub___$ac_func
17407 choke me
17408 #endif
17409
17410 int
17411 main ()
17412 {
17413 return $ac_func ();
17414 ;
17415 return 0;
17416 }
17417 _ACEOF
17418 rm -f conftest.$ac_objext conftest$ac_exeext
17419 if { (ac_try="$ac_link"
17420 case "(($ac_try" in
17421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17422 *) ac_try_echo=$ac_try;;
17423 esac
17424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17425 (eval "$ac_link") 2>conftest.er1
17426 ac_status=$?
17427 grep -v '^ *+' conftest.er1 >conftest.err
17428 rm -f conftest.er1
17429 cat conftest.err >&5
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); } && {
17432 test -z "$ac_c_werror_flag" ||
17433 test ! -s conftest.err
17434 } && test -s conftest$ac_exeext &&
17435 $as_test_x conftest$ac_exeext; then
17436 eval "$as_ac_var=yes"
17437 else
17438 echo "$as_me: failed program was:" >&5
17439 sed 's/^/| /' conftest.$ac_ext >&5
17440
17441 eval "$as_ac_var=no"
17442 fi
17443
17444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17445 conftest$ac_exeext conftest.$ac_ext
17446 fi
17447 ac_res=`eval echo '${'$as_ac_var'}'`
17448 { echo "$as_me:$LINENO: result: $ac_res" >&5
17449 echo "${ECHO_T}$ac_res" >&6; }
17450 if test `eval echo '${'$as_ac_var'}'` = yes; then
17451 cat >>confdefs.h <<_ACEOF
17452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17453 _ACEOF
17454
17455 fi
17456 done
17457
17458
17459 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17460 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17461 # Irix 4.0.5F has the header but not the library.
17462 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17463 ac_have_func=yes
17464
17465 cat >>confdefs.h <<\_ACEOF
17466 #define SVR4 1
17467 _ACEOF
17468
17469 fi
17470
17471 if test $ac_have_func = no; then
17472 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17473 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17474 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17475 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17476 echo $ECHO_N "(cached) $ECHO_C" >&6
17477 fi
17478 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17479 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17480 else
17481 # Is the header compilable?
17482 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17483 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17484 cat >conftest.$ac_ext <<_ACEOF
17485 /* confdefs.h. */
17486 _ACEOF
17487 cat confdefs.h >>conftest.$ac_ext
17488 cat >>conftest.$ac_ext <<_ACEOF
17489 /* end confdefs.h. */
17490 $ac_includes_default
17491 #include <inq_stats/cpustats.h>
17492 _ACEOF
17493 rm -f conftest.$ac_objext
17494 if { (ac_try="$ac_compile"
17495 case "(($ac_try" in
17496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17497 *) ac_try_echo=$ac_try;;
17498 esac
17499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17500 (eval "$ac_compile") 2>conftest.er1
17501 ac_status=$?
17502 grep -v '^ *+' conftest.er1 >conftest.err
17503 rm -f conftest.er1
17504 cat conftest.err >&5
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); } && {
17507 test -z "$ac_c_werror_flag" ||
17508 test ! -s conftest.err
17509 } && test -s conftest.$ac_objext; then
17510 ac_header_compiler=yes
17511 else
17512 echo "$as_me: failed program was:" >&5
17513 sed 's/^/| /' conftest.$ac_ext >&5
17514
17515 ac_header_compiler=no
17516 fi
17517
17518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17519 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17520 echo "${ECHO_T}$ac_header_compiler" >&6; }
17521
17522 # Is the header present?
17523 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17524 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17525 cat >conftest.$ac_ext <<_ACEOF
17526 /* confdefs.h. */
17527 _ACEOF
17528 cat confdefs.h >>conftest.$ac_ext
17529 cat >>conftest.$ac_ext <<_ACEOF
17530 /* end confdefs.h. */
17531 #include <inq_stats/cpustats.h>
17532 _ACEOF
17533 if { (ac_try="$ac_cpp conftest.$ac_ext"
17534 case "(($ac_try" in
17535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17536 *) ac_try_echo=$ac_try;;
17537 esac
17538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17540 ac_status=$?
17541 grep -v '^ *+' conftest.er1 >conftest.err
17542 rm -f conftest.er1
17543 cat conftest.err >&5
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); } >/dev/null && {
17546 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17547 test ! -s conftest.err
17548 }; then
17549 ac_header_preproc=yes
17550 else
17551 echo "$as_me: failed program was:" >&5
17552 sed 's/^/| /' conftest.$ac_ext >&5
17553
17554 ac_header_preproc=no
17555 fi
17556
17557 rm -f conftest.err conftest.$ac_ext
17558 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17559 echo "${ECHO_T}$ac_header_preproc" >&6; }
17560
17561 # So? What about this header?
17562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17563 yes:no: )
17564 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17565 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17566 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17567 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17568 ac_header_preproc=yes
17569 ;;
17570 no:yes:* )
17571 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17572 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17573 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17574 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17575 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17576 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17577 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17578 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17579 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17580 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17581 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17582 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17583
17584 ;;
17585 esac
17586 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17587 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17588 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17589 echo $ECHO_N "(cached) $ECHO_C" >&6
17590 else
17591 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17592 fi
17593 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17594 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17595
17596 fi
17597 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17598 ac_have_func=yes
17599
17600 cat >>confdefs.h <<\_ACEOF
17601 #define UMAX 1
17602 _ACEOF
17603
17604
17605 cat >>confdefs.h <<\_ACEOF
17606 #define UMAX4_3 1
17607 _ACEOF
17608
17609 fi
17610
17611
17612 fi
17613
17614 if test $ac_have_func = no; then
17615 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17616 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17617 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17618 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17619 echo $ECHO_N "(cached) $ECHO_C" >&6
17620 fi
17621 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17622 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17623 else
17624 # Is the header compilable?
17625 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17626 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
17627 cat >conftest.$ac_ext <<_ACEOF
17628 /* confdefs.h. */
17629 _ACEOF
17630 cat confdefs.h >>conftest.$ac_ext
17631 cat >>conftest.$ac_ext <<_ACEOF
17632 /* end confdefs.h. */
17633 $ac_includes_default
17634 #include <sys/cpustats.h>
17635 _ACEOF
17636 rm -f conftest.$ac_objext
17637 if { (ac_try="$ac_compile"
17638 case "(($ac_try" in
17639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17640 *) ac_try_echo=$ac_try;;
17641 esac
17642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17643 (eval "$ac_compile") 2>conftest.er1
17644 ac_status=$?
17645 grep -v '^ *+' conftest.er1 >conftest.err
17646 rm -f conftest.er1
17647 cat conftest.err >&5
17648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649 (exit $ac_status); } && {
17650 test -z "$ac_c_werror_flag" ||
17651 test ! -s conftest.err
17652 } && test -s conftest.$ac_objext; then
17653 ac_header_compiler=yes
17654 else
17655 echo "$as_me: failed program was:" >&5
17656 sed 's/^/| /' conftest.$ac_ext >&5
17657
17658 ac_header_compiler=no
17659 fi
17660
17661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17662 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17663 echo "${ECHO_T}$ac_header_compiler" >&6; }
17664
17665 # Is the header present?
17666 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
17667 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
17668 cat >conftest.$ac_ext <<_ACEOF
17669 /* confdefs.h. */
17670 _ACEOF
17671 cat confdefs.h >>conftest.$ac_ext
17672 cat >>conftest.$ac_ext <<_ACEOF
17673 /* end confdefs.h. */
17674 #include <sys/cpustats.h>
17675 _ACEOF
17676 if { (ac_try="$ac_cpp conftest.$ac_ext"
17677 case "(($ac_try" in
17678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17679 *) ac_try_echo=$ac_try;;
17680 esac
17681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17683 ac_status=$?
17684 grep -v '^ *+' conftest.er1 >conftest.err
17685 rm -f conftest.er1
17686 cat conftest.err >&5
17687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688 (exit $ac_status); } >/dev/null && {
17689 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17690 test ! -s conftest.err
17691 }; then
17692 ac_header_preproc=yes
17693 else
17694 echo "$as_me: failed program was:" >&5
17695 sed 's/^/| /' conftest.$ac_ext >&5
17696
17697 ac_header_preproc=no
17698 fi
17699
17700 rm -f conftest.err conftest.$ac_ext
17701 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17702 echo "${ECHO_T}$ac_header_preproc" >&6; }
17703
17704 # So? What about this header?
17705 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17706 yes:no: )
17707 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17708 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17709 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
17710 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
17711 ac_header_preproc=yes
17712 ;;
17713 no:yes:* )
17714 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
17715 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
17716 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
17717 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
17718 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
17719 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
17720 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17721 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17722 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
17723 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
17724 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
17725 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
17726
17727 ;;
17728 esac
17729 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17730 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17731 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17732 echo $ECHO_N "(cached) $ECHO_C" >&6
17733 else
17734 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17735 fi
17736 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17737 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17738
17739 fi
17740 if test $ac_cv_header_sys_cpustats_h = yes; then
17741 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17742 #define UMAX 1
17743 _ACEOF
17744
17745 fi
17746
17747
17748 fi
17749
17750 if test $ac_have_func = no; then
17751
17752 for ac_header in mach/mach.h
17753 do
17754 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17756 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17759 echo $ECHO_N "(cached) $ECHO_C" >&6
17760 fi
17761 ac_res=`eval echo '${'$as_ac_Header'}'`
17762 { echo "$as_me:$LINENO: result: $ac_res" >&5
17763 echo "${ECHO_T}$ac_res" >&6; }
17764 else
17765 # Is the header compilable?
17766 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17767 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17768 cat >conftest.$ac_ext <<_ACEOF
17769 /* confdefs.h. */
17770 _ACEOF
17771 cat confdefs.h >>conftest.$ac_ext
17772 cat >>conftest.$ac_ext <<_ACEOF
17773 /* end confdefs.h. */
17774 $ac_includes_default
17775 #include <$ac_header>
17776 _ACEOF
17777 rm -f conftest.$ac_objext
17778 if { (ac_try="$ac_compile"
17779 case "(($ac_try" in
17780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17781 *) ac_try_echo=$ac_try;;
17782 esac
17783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17784 (eval "$ac_compile") 2>conftest.er1
17785 ac_status=$?
17786 grep -v '^ *+' conftest.er1 >conftest.err
17787 rm -f conftest.er1
17788 cat conftest.err >&5
17789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790 (exit $ac_status); } && {
17791 test -z "$ac_c_werror_flag" ||
17792 test ! -s conftest.err
17793 } && test -s conftest.$ac_objext; then
17794 ac_header_compiler=yes
17795 else
17796 echo "$as_me: failed program was:" >&5
17797 sed 's/^/| /' conftest.$ac_ext >&5
17798
17799 ac_header_compiler=no
17800 fi
17801
17802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17803 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17804 echo "${ECHO_T}$ac_header_compiler" >&6; }
17805
17806 # Is the header present?
17807 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17808 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17809 cat >conftest.$ac_ext <<_ACEOF
17810 /* confdefs.h. */
17811 _ACEOF
17812 cat confdefs.h >>conftest.$ac_ext
17813 cat >>conftest.$ac_ext <<_ACEOF
17814 /* end confdefs.h. */
17815 #include <$ac_header>
17816 _ACEOF
17817 if { (ac_try="$ac_cpp conftest.$ac_ext"
17818 case "(($ac_try" in
17819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17820 *) ac_try_echo=$ac_try;;
17821 esac
17822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17824 ac_status=$?
17825 grep -v '^ *+' conftest.er1 >conftest.err
17826 rm -f conftest.er1
17827 cat conftest.err >&5
17828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829 (exit $ac_status); } >/dev/null && {
17830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17831 test ! -s conftest.err
17832 }; then
17833 ac_header_preproc=yes
17834 else
17835 echo "$as_me: failed program was:" >&5
17836 sed 's/^/| /' conftest.$ac_ext >&5
17837
17838 ac_header_preproc=no
17839 fi
17840
17841 rm -f conftest.err conftest.$ac_ext
17842 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17843 echo "${ECHO_T}$ac_header_preproc" >&6; }
17844
17845 # So? What about this header?
17846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17847 yes:no: )
17848 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17849 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17851 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17852 ac_header_preproc=yes
17853 ;;
17854 no:yes:* )
17855 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17856 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17857 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17858 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17859 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17860 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17861 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17862 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17864 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17865 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17866 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17867
17868 ;;
17869 esac
17870 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17873 echo $ECHO_N "(cached) $ECHO_C" >&6
17874 else
17875 eval "$as_ac_Header=\$ac_header_preproc"
17876 fi
17877 ac_res=`eval echo '${'$as_ac_Header'}'`
17878 { echo "$as_me:$LINENO: result: $ac_res" >&5
17879 echo "${ECHO_T}$ac_res" >&6; }
17880
17881 fi
17882 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17883 cat >>confdefs.h <<_ACEOF
17884 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17885 _ACEOF
17886
17887 fi
17888
17889 done
17890
17891 fi
17892
17893
17894 for ac_header in nlist.h
17895 do
17896 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17898 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17901 echo $ECHO_N "(cached) $ECHO_C" >&6
17902 fi
17903 ac_res=`eval echo '${'$as_ac_Header'}'`
17904 { echo "$as_me:$LINENO: result: $ac_res" >&5
17905 echo "${ECHO_T}$ac_res" >&6; }
17906 else
17907 # Is the header compilable?
17908 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17909 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17910 cat >conftest.$ac_ext <<_ACEOF
17911 /* confdefs.h. */
17912 _ACEOF
17913 cat confdefs.h >>conftest.$ac_ext
17914 cat >>conftest.$ac_ext <<_ACEOF
17915 /* end confdefs.h. */
17916 $ac_includes_default
17917 #include <$ac_header>
17918 _ACEOF
17919 rm -f conftest.$ac_objext
17920 if { (ac_try="$ac_compile"
17921 case "(($ac_try" in
17922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17923 *) ac_try_echo=$ac_try;;
17924 esac
17925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17926 (eval "$ac_compile") 2>conftest.er1
17927 ac_status=$?
17928 grep -v '^ *+' conftest.er1 >conftest.err
17929 rm -f conftest.er1
17930 cat conftest.err >&5
17931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932 (exit $ac_status); } && {
17933 test -z "$ac_c_werror_flag" ||
17934 test ! -s conftest.err
17935 } && test -s conftest.$ac_objext; then
17936 ac_header_compiler=yes
17937 else
17938 echo "$as_me: failed program was:" >&5
17939 sed 's/^/| /' conftest.$ac_ext >&5
17940
17941 ac_header_compiler=no
17942 fi
17943
17944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17945 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17946 echo "${ECHO_T}$ac_header_compiler" >&6; }
17947
17948 # Is the header present?
17949 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17950 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
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 #include <$ac_header>
17958 _ACEOF
17959 if { (ac_try="$ac_cpp conftest.$ac_ext"
17960 case "(($ac_try" in
17961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17962 *) ac_try_echo=$ac_try;;
17963 esac
17964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17965 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17966 ac_status=$?
17967 grep -v '^ *+' conftest.er1 >conftest.err
17968 rm -f conftest.er1
17969 cat conftest.err >&5
17970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17971 (exit $ac_status); } >/dev/null && {
17972 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17973 test ! -s conftest.err
17974 }; then
17975 ac_header_preproc=yes
17976 else
17977 echo "$as_me: failed program was:" >&5
17978 sed 's/^/| /' conftest.$ac_ext >&5
17979
17980 ac_header_preproc=no
17981 fi
17982
17983 rm -f conftest.err conftest.$ac_ext
17984 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17985 echo "${ECHO_T}$ac_header_preproc" >&6; }
17986
17987 # So? What about this header?
17988 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17989 yes:no: )
17990 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17991 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17992 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17993 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17994 ac_header_preproc=yes
17995 ;;
17996 no:yes:* )
17997 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17998 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17999 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18000 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18001 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18002 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18003 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18004 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18005 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18006 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18007 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18008 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18009
18010 ;;
18011 esac
18012 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18015 echo $ECHO_N "(cached) $ECHO_C" >&6
18016 else
18017 eval "$as_ac_Header=\$ac_header_preproc"
18018 fi
18019 ac_res=`eval echo '${'$as_ac_Header'}'`
18020 { echo "$as_me:$LINENO: result: $ac_res" >&5
18021 echo "${ECHO_T}$ac_res" >&6; }
18022
18023 fi
18024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18025 cat >>confdefs.h <<_ACEOF
18026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18027 _ACEOF
18028 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18029 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18030 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18031 echo $ECHO_N "(cached) $ECHO_C" >&6
18032 else
18033 cat >conftest.$ac_ext <<_ACEOF
18034 /* confdefs.h. */
18035 _ACEOF
18036 cat confdefs.h >>conftest.$ac_ext
18037 cat >>conftest.$ac_ext <<_ACEOF
18038 /* end confdefs.h. */
18039 #include <nlist.h>
18040
18041 int
18042 main ()
18043 {
18044 static struct nlist ac_aggr;
18045 if (ac_aggr.n_un.n_name)
18046 return 0;
18047 ;
18048 return 0;
18049 }
18050 _ACEOF
18051 rm -f conftest.$ac_objext
18052 if { (ac_try="$ac_compile"
18053 case "(($ac_try" in
18054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18055 *) ac_try_echo=$ac_try;;
18056 esac
18057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18058 (eval "$ac_compile") 2>conftest.er1
18059 ac_status=$?
18060 grep -v '^ *+' conftest.er1 >conftest.err
18061 rm -f conftest.er1
18062 cat conftest.err >&5
18063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064 (exit $ac_status); } && {
18065 test -z "$ac_c_werror_flag" ||
18066 test ! -s conftest.err
18067 } && test -s conftest.$ac_objext; then
18068 ac_cv_member_struct_nlist_n_un_n_name=yes
18069 else
18070 echo "$as_me: failed program was:" >&5
18071 sed 's/^/| /' conftest.$ac_ext >&5
18072
18073 cat >conftest.$ac_ext <<_ACEOF
18074 /* confdefs.h. */
18075 _ACEOF
18076 cat confdefs.h >>conftest.$ac_ext
18077 cat >>conftest.$ac_ext <<_ACEOF
18078 /* end confdefs.h. */
18079 #include <nlist.h>
18080
18081 int
18082 main ()
18083 {
18084 static struct nlist ac_aggr;
18085 if (sizeof ac_aggr.n_un.n_name)
18086 return 0;
18087 ;
18088 return 0;
18089 }
18090 _ACEOF
18091 rm -f conftest.$ac_objext
18092 if { (ac_try="$ac_compile"
18093 case "(($ac_try" in
18094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18095 *) ac_try_echo=$ac_try;;
18096 esac
18097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18098 (eval "$ac_compile") 2>conftest.er1
18099 ac_status=$?
18100 grep -v '^ *+' conftest.er1 >conftest.err
18101 rm -f conftest.er1
18102 cat conftest.err >&5
18103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104 (exit $ac_status); } && {
18105 test -z "$ac_c_werror_flag" ||
18106 test ! -s conftest.err
18107 } && test -s conftest.$ac_objext; then
18108 ac_cv_member_struct_nlist_n_un_n_name=yes
18109 else
18110 echo "$as_me: failed program was:" >&5
18111 sed 's/^/| /' conftest.$ac_ext >&5
18112
18113 ac_cv_member_struct_nlist_n_un_n_name=no
18114 fi
18115
18116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18117 fi
18118
18119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18120 fi
18121 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18122 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18123 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18124
18125 cat >>confdefs.h <<_ACEOF
18126 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18127 _ACEOF
18128
18129
18130 cat >>confdefs.h <<\_ACEOF
18131 #define NLIST_NAME_UNION 1
18132 _ACEOF
18133
18134 fi
18135
18136
18137 fi
18138
18139 done
18140
18141 fi
18142 done
18143
18144
18145 # Some definitions of getloadavg require that the program be installed setgid.
18146 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18147 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18148 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18149 echo $ECHO_N "(cached) $ECHO_C" >&6
18150 else
18151 cat >conftest.$ac_ext <<_ACEOF
18152 /* confdefs.h. */
18153 _ACEOF
18154 cat confdefs.h >>conftest.$ac_ext
18155 cat >>conftest.$ac_ext <<_ACEOF
18156 /* end confdefs.h. */
18157 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18158 #ifdef LDAV_PRIVILEGED
18159 Yowza Am I SETGID yet
18160 #endif
18161 _ACEOF
18162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18163 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18164 ac_cv_func_getloadavg_setgid=yes
18165 else
18166 ac_cv_func_getloadavg_setgid=no
18167 fi
18168 rm -f conftest*
18169
18170 fi
18171 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18172 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18173 if test $ac_cv_func_getloadavg_setgid = yes; then
18174 NEED_SETGID=true
18175
18176 cat >>confdefs.h <<\_ACEOF
18177 #define GETLOADAVG_PRIVILEGED 1
18178 _ACEOF
18179
18180 else
18181 NEED_SETGID=false
18182 fi
18183
18184 if test $ac_cv_func_getloadavg_setgid = yes; then
18185 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18186 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18187 if test "${ac_cv_group_kmem+set}" = set; then
18188 echo $ECHO_N "(cached) $ECHO_C" >&6
18189 else
18190 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18191 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18192 # If we got an error (system does not support symlinks), try without -L.
18193 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18194 ac_cv_group_kmem=`echo $ac_ls_output \
18195 | sed -ne 's/[ ][ ]*/ /g;
18196 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18197 / /s/.* //;p;'`
18198
18199 fi
18200 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18201 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18202 KMEM_GROUP=$ac_cv_group_kmem
18203 fi
18204 if test "x$ac_save_LIBS" = x; then
18205 GETLOADAVG_LIBS=$LIBS
18206 else
18207 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18208 fi
18209 LIBS=$ac_save_LIBS
18210
18211
18212
18213 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18214 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18215 if test "${ac_cv_sys_largefile_source+set}" = set; then
18216 echo $ECHO_N "(cached) $ECHO_C" >&6
18217 else
18218 while :; do
18219 cat >conftest.$ac_ext <<_ACEOF
18220 /* confdefs.h. */
18221 _ACEOF
18222 cat confdefs.h >>conftest.$ac_ext
18223 cat >>conftest.$ac_ext <<_ACEOF
18224 /* end confdefs.h. */
18225 #include <stdio.h>
18226 int
18227 main ()
18228 {
18229 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18230 ;
18231 return 0;
18232 }
18233 _ACEOF
18234 rm -f conftest.$ac_objext conftest$ac_exeext
18235 if { (ac_try="$ac_link"
18236 case "(($ac_try" in
18237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18238 *) ac_try_echo=$ac_try;;
18239 esac
18240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18241 (eval "$ac_link") 2>conftest.er1
18242 ac_status=$?
18243 grep -v '^ *+' conftest.er1 >conftest.err
18244 rm -f conftest.er1
18245 cat conftest.err >&5
18246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247 (exit $ac_status); } && {
18248 test -z "$ac_c_werror_flag" ||
18249 test ! -s conftest.err
18250 } && test -s conftest$ac_exeext &&
18251 $as_test_x conftest$ac_exeext; then
18252 ac_cv_sys_largefile_source=no; break
18253 else
18254 echo "$as_me: failed program was:" >&5
18255 sed 's/^/| /' conftest.$ac_ext >&5
18256
18257
18258 fi
18259
18260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18261 conftest$ac_exeext conftest.$ac_ext
18262 cat >conftest.$ac_ext <<_ACEOF
18263 /* confdefs.h. */
18264 _ACEOF
18265 cat confdefs.h >>conftest.$ac_ext
18266 cat >>conftest.$ac_ext <<_ACEOF
18267 /* end confdefs.h. */
18268 #define _LARGEFILE_SOURCE 1
18269 #include <stdio.h>
18270 int
18271 main ()
18272 {
18273 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18274 ;
18275 return 0;
18276 }
18277 _ACEOF
18278 rm -f conftest.$ac_objext conftest$ac_exeext
18279 if { (ac_try="$ac_link"
18280 case "(($ac_try" in
18281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18282 *) ac_try_echo=$ac_try;;
18283 esac
18284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18285 (eval "$ac_link") 2>conftest.er1
18286 ac_status=$?
18287 grep -v '^ *+' conftest.er1 >conftest.err
18288 rm -f conftest.er1
18289 cat conftest.err >&5
18290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291 (exit $ac_status); } && {
18292 test -z "$ac_c_werror_flag" ||
18293 test ! -s conftest.err
18294 } && test -s conftest$ac_exeext &&
18295 $as_test_x conftest$ac_exeext; then
18296 ac_cv_sys_largefile_source=1; break
18297 else
18298 echo "$as_me: failed program was:" >&5
18299 sed 's/^/| /' conftest.$ac_ext >&5
18300
18301
18302 fi
18303
18304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18305 conftest$ac_exeext conftest.$ac_ext
18306 ac_cv_sys_largefile_source=unknown
18307 break
18308 done
18309 fi
18310 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18311 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18312 case $ac_cv_sys_largefile_source in #(
18313 no | unknown) ;;
18314 *)
18315 cat >>confdefs.h <<_ACEOF
18316 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18317 _ACEOF
18318 ;;
18319 esac
18320 rm -f conftest*
18321
18322 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18323 # in glibc 2.1.3, but that breaks too many other things.
18324 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18325 if test $ac_cv_sys_largefile_source != unknown; then
18326
18327 cat >>confdefs.h <<\_ACEOF
18328 #define HAVE_FSEEKO 1
18329 _ACEOF
18330
18331 fi
18332
18333
18334 # Configure getopt.
18335 # getopt.m4 serial 10
18336
18337 # The getopt module assume you want GNU getopt, with getopt_long etc,
18338 # rather than vanilla POSIX getopt. This means your your code should
18339 # always include <getopt.h> for the getopt prototypes.
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350
18351 # Prerequisites of lib/getopt*.
18352
18353
18354
18355
18356 GETOPT_H=
18357
18358 for ac_header in getopt.h
18359 do
18360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18362 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18365 echo $ECHO_N "(cached) $ECHO_C" >&6
18366 fi
18367 ac_res=`eval echo '${'$as_ac_Header'}'`
18368 { echo "$as_me:$LINENO: result: $ac_res" >&5
18369 echo "${ECHO_T}$ac_res" >&6; }
18370 else
18371 # Is the header compilable?
18372 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18373 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18374 cat >conftest.$ac_ext <<_ACEOF
18375 /* confdefs.h. */
18376 _ACEOF
18377 cat confdefs.h >>conftest.$ac_ext
18378 cat >>conftest.$ac_ext <<_ACEOF
18379 /* end confdefs.h. */
18380 $ac_includes_default
18381 #include <$ac_header>
18382 _ACEOF
18383 rm -f conftest.$ac_objext
18384 if { (ac_try="$ac_compile"
18385 case "(($ac_try" in
18386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18387 *) ac_try_echo=$ac_try;;
18388 esac
18389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18390 (eval "$ac_compile") 2>conftest.er1
18391 ac_status=$?
18392 grep -v '^ *+' conftest.er1 >conftest.err
18393 rm -f conftest.er1
18394 cat conftest.err >&5
18395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396 (exit $ac_status); } && {
18397 test -z "$ac_c_werror_flag" ||
18398 test ! -s conftest.err
18399 } && test -s conftest.$ac_objext; then
18400 ac_header_compiler=yes
18401 else
18402 echo "$as_me: failed program was:" >&5
18403 sed 's/^/| /' conftest.$ac_ext >&5
18404
18405 ac_header_compiler=no
18406 fi
18407
18408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18409 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18410 echo "${ECHO_T}$ac_header_compiler" >&6; }
18411
18412 # Is the header present?
18413 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18414 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18415 cat >conftest.$ac_ext <<_ACEOF
18416 /* confdefs.h. */
18417 _ACEOF
18418 cat confdefs.h >>conftest.$ac_ext
18419 cat >>conftest.$ac_ext <<_ACEOF
18420 /* end confdefs.h. */
18421 #include <$ac_header>
18422 _ACEOF
18423 if { (ac_try="$ac_cpp conftest.$ac_ext"
18424 case "(($ac_try" in
18425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18426 *) ac_try_echo=$ac_try;;
18427 esac
18428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18430 ac_status=$?
18431 grep -v '^ *+' conftest.er1 >conftest.err
18432 rm -f conftest.er1
18433 cat conftest.err >&5
18434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435 (exit $ac_status); } >/dev/null && {
18436 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18437 test ! -s conftest.err
18438 }; then
18439 ac_header_preproc=yes
18440 else
18441 echo "$as_me: failed program was:" >&5
18442 sed 's/^/| /' conftest.$ac_ext >&5
18443
18444 ac_header_preproc=no
18445 fi
18446
18447 rm -f conftest.err conftest.$ac_ext
18448 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18449 echo "${ECHO_T}$ac_header_preproc" >&6; }
18450
18451 # So? What about this header?
18452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18453 yes:no: )
18454 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18455 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18457 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18458 ac_header_preproc=yes
18459 ;;
18460 no:yes:* )
18461 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18462 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18463 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18464 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18465 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18466 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18467 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18468 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18470 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18471 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18472 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18473
18474 ;;
18475 esac
18476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18479 echo $ECHO_N "(cached) $ECHO_C" >&6
18480 else
18481 eval "$as_ac_Header=\$ac_header_preproc"
18482 fi
18483 ac_res=`eval echo '${'$as_ac_Header'}'`
18484 { echo "$as_me:$LINENO: result: $ac_res" >&5
18485 echo "${ECHO_T}$ac_res" >&6; }
18486
18487 fi
18488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18489 cat >>confdefs.h <<_ACEOF
18490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18491 _ACEOF
18492
18493 else
18494 GETOPT_H=getopt.h
18495 fi
18496
18497 done
18498
18499 if test -z "$GETOPT_H"; then
18500
18501 for ac_func in getopt_long_only
18502 do
18503 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18504 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18505 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18506 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18507 echo $ECHO_N "(cached) $ECHO_C" >&6
18508 else
18509 cat >conftest.$ac_ext <<_ACEOF
18510 /* confdefs.h. */
18511 _ACEOF
18512 cat confdefs.h >>conftest.$ac_ext
18513 cat >>conftest.$ac_ext <<_ACEOF
18514 /* end confdefs.h. */
18515 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18517 #define $ac_func innocuous_$ac_func
18518
18519 /* System header to define __stub macros and hopefully few prototypes,
18520 which can conflict with char $ac_func (); below.
18521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18522 <limits.h> exists even on freestanding compilers. */
18523
18524 #ifdef __STDC__
18525 # include <limits.h>
18526 #else
18527 # include <assert.h>
18528 #endif
18529
18530 #undef $ac_func
18531
18532 /* Override any GCC internal prototype to avoid an error.
18533 Use char because int might match the return type of a GCC
18534 builtin and then its argument prototype would still apply. */
18535 #ifdef __cplusplus
18536 extern "C"
18537 #endif
18538 char $ac_func ();
18539 /* The GNU C library defines this for functions which it implements
18540 to always fail with ENOSYS. Some functions are actually named
18541 something starting with __ and the normal name is an alias. */
18542 #if defined __stub_$ac_func || defined __stub___$ac_func
18543 choke me
18544 #endif
18545
18546 int
18547 main ()
18548 {
18549 return $ac_func ();
18550 ;
18551 return 0;
18552 }
18553 _ACEOF
18554 rm -f conftest.$ac_objext conftest$ac_exeext
18555 if { (ac_try="$ac_link"
18556 case "(($ac_try" in
18557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18558 *) ac_try_echo=$ac_try;;
18559 esac
18560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18561 (eval "$ac_link") 2>conftest.er1
18562 ac_status=$?
18563 grep -v '^ *+' conftest.er1 >conftest.err
18564 rm -f conftest.er1
18565 cat conftest.err >&5
18566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567 (exit $ac_status); } && {
18568 test -z "$ac_c_werror_flag" ||
18569 test ! -s conftest.err
18570 } && test -s conftest$ac_exeext &&
18571 $as_test_x conftest$ac_exeext; then
18572 eval "$as_ac_var=yes"
18573 else
18574 echo "$as_me: failed program was:" >&5
18575 sed 's/^/| /' conftest.$ac_ext >&5
18576
18577 eval "$as_ac_var=no"
18578 fi
18579
18580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18581 conftest$ac_exeext conftest.$ac_ext
18582 fi
18583 ac_res=`eval echo '${'$as_ac_var'}'`
18584 { echo "$as_me:$LINENO: result: $ac_res" >&5
18585 echo "${ECHO_T}$ac_res" >&6; }
18586 if test `eval echo '${'$as_ac_var'}'` = yes; then
18587 cat >>confdefs.h <<_ACEOF
18588 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18589 _ACEOF
18590
18591 else
18592 GETOPT_H=getopt.h
18593 fi
18594 done
18595
18596 fi
18597
18598 if test -z "$GETOPT_H"; then
18599 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18600 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
18601 if test "${ac_cv_have_decl_optreset+set}" = set; then
18602 echo $ECHO_N "(cached) $ECHO_C" >&6
18603 else
18604 cat >conftest.$ac_ext <<_ACEOF
18605 /* confdefs.h. */
18606 _ACEOF
18607 cat confdefs.h >>conftest.$ac_ext
18608 cat >>conftest.$ac_ext <<_ACEOF
18609 /* end confdefs.h. */
18610 #include <getopt.h>
18611
18612 int
18613 main ()
18614 {
18615 #ifndef optreset
18616 (void) optreset;
18617 #endif
18618
18619 ;
18620 return 0;
18621 }
18622 _ACEOF
18623 rm -f conftest.$ac_objext
18624 if { (ac_try="$ac_compile"
18625 case "(($ac_try" in
18626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18627 *) ac_try_echo=$ac_try;;
18628 esac
18629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18630 (eval "$ac_compile") 2>conftest.er1
18631 ac_status=$?
18632 grep -v '^ *+' conftest.er1 >conftest.err
18633 rm -f conftest.er1
18634 cat conftest.err >&5
18635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636 (exit $ac_status); } && {
18637 test -z "$ac_c_werror_flag" ||
18638 test ! -s conftest.err
18639 } && test -s conftest.$ac_objext; then
18640 ac_cv_have_decl_optreset=yes
18641 else
18642 echo "$as_me: failed program was:" >&5
18643 sed 's/^/| /' conftest.$ac_ext >&5
18644
18645 ac_cv_have_decl_optreset=no
18646 fi
18647
18648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18649 fi
18650 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
18651 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18652 if test $ac_cv_have_decl_optreset = yes; then
18653 GETOPT_H=getopt.h
18654 fi
18655
18656 fi
18657
18658 if test -z "$GETOPT_H"; then
18659 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
18660 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
18661 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18662 echo $ECHO_N "(cached) $ECHO_C" >&6
18663 else
18664 if test "$cross_compiling" = yes; then
18665 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
18666 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
18667 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18668 echo $ECHO_N "(cached) $ECHO_C" >&6
18669 else
18670 cat >conftest.$ac_ext <<_ACEOF
18671 /* confdefs.h. */
18672 _ACEOF
18673 cat confdefs.h >>conftest.$ac_ext
18674 cat >>conftest.$ac_ext <<_ACEOF
18675 /* end confdefs.h. */
18676 #include <getopt.h>
18677
18678 int
18679 main ()
18680 {
18681 #ifndef getopt_clip
18682 (void) getopt_clip;
18683 #endif
18684
18685 ;
18686 return 0;
18687 }
18688 _ACEOF
18689 rm -f conftest.$ac_objext
18690 if { (ac_try="$ac_compile"
18691 case "(($ac_try" in
18692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18693 *) ac_try_echo=$ac_try;;
18694 esac
18695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18696 (eval "$ac_compile") 2>conftest.er1
18697 ac_status=$?
18698 grep -v '^ *+' conftest.er1 >conftest.err
18699 rm -f conftest.er1
18700 cat conftest.err >&5
18701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702 (exit $ac_status); } && {
18703 test -z "$ac_c_werror_flag" ||
18704 test ! -s conftest.err
18705 } && test -s conftest.$ac_objext; then
18706 ac_cv_have_decl_getopt_clip=yes
18707 else
18708 echo "$as_me: failed program was:" >&5
18709 sed 's/^/| /' conftest.$ac_ext >&5
18710
18711 ac_cv_have_decl_getopt_clip=no
18712 fi
18713
18714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18715 fi
18716 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
18717 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18718 if test $ac_cv_have_decl_getopt_clip = yes; then
18719 gl_cv_func_gnu_getopt=no
18720 else
18721 gl_cv_func_gnu_getopt=yes
18722 fi
18723
18724 else
18725 cat >conftest.$ac_ext <<_ACEOF
18726 /* confdefs.h. */
18727 _ACEOF
18728 cat confdefs.h >>conftest.$ac_ext
18729 cat >>conftest.$ac_ext <<_ACEOF
18730 /* end confdefs.h. */
18731 #include <getopt.h>
18732 int
18733 main ()
18734 {
18735
18736 char *myargv[3];
18737 myargv[0] = "conftest";
18738 myargv[1] = "-+";
18739 myargv[2] = 0;
18740 return getopt (2, myargv, "+a") != '?';
18741
18742 ;
18743 return 0;
18744 }
18745 _ACEOF
18746 rm -f conftest$ac_exeext
18747 if { (ac_try="$ac_link"
18748 case "(($ac_try" in
18749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18750 *) ac_try_echo=$ac_try;;
18751 esac
18752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18753 (eval "$ac_link") 2>&5
18754 ac_status=$?
18755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18756 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18757 { (case "(($ac_try" in
18758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18759 *) ac_try_echo=$ac_try;;
18760 esac
18761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18762 (eval "$ac_try") 2>&5
18763 ac_status=$?
18764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765 (exit $ac_status); }; }; then
18766 gl_cv_func_gnu_getopt=yes
18767 else
18768 echo "$as_me: program exited with status $ac_status" >&5
18769 echo "$as_me: failed program was:" >&5
18770 sed 's/^/| /' conftest.$ac_ext >&5
18771
18772 ( exit $ac_status )
18773 gl_cv_func_gnu_getopt=no
18774 fi
18775 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18776 fi
18777
18778
18779 fi
18780 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
18781 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18782 if test "$gl_cv_func_gnu_getopt" = "no"; then
18783 GETOPT_H=getopt.h
18784 fi
18785 fi
18786
18787
18788
18789 if test -n "$GETOPT_H"; then
18790
18791
18792 GETOPT_H=getopt.h
18793
18794 cat >>confdefs.h <<\_ACEOF
18795 #define __GETOPT_PREFIX rpl_
18796 _ACEOF
18797
18798
18799
18800 :
18801 GETOPTOBJS='getopt.o getopt1.o'
18802
18803 fi
18804
18805
18806
18807
18808 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
18809 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
18810 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18811 echo $ECHO_N "(cached) $ECHO_C" >&6
18812 else
18813 # Use it with a single arg.
18814 cat >conftest.$ac_ext <<_ACEOF
18815 /* confdefs.h. */
18816 _ACEOF
18817 cat confdefs.h >>conftest.$ac_ext
18818 cat >>conftest.$ac_ext <<_ACEOF
18819 /* end confdefs.h. */
18820 $ac_includes_default
18821 int
18822 main ()
18823 {
18824 getpgrp (0);
18825 ;
18826 return 0;
18827 }
18828 _ACEOF
18829 rm -f conftest.$ac_objext
18830 if { (ac_try="$ac_compile"
18831 case "(($ac_try" in
18832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18833 *) ac_try_echo=$ac_try;;
18834 esac
18835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18836 (eval "$ac_compile") 2>conftest.er1
18837 ac_status=$?
18838 grep -v '^ *+' conftest.er1 >conftest.err
18839 rm -f conftest.er1
18840 cat conftest.err >&5
18841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18842 (exit $ac_status); } && {
18843 test -z "$ac_c_werror_flag" ||
18844 test ! -s conftest.err
18845 } && test -s conftest.$ac_objext; then
18846 ac_cv_func_getpgrp_void=no
18847 else
18848 echo "$as_me: failed program was:" >&5
18849 sed 's/^/| /' conftest.$ac_ext >&5
18850
18851 ac_cv_func_getpgrp_void=yes
18852 fi
18853
18854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18855
18856 fi
18857 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
18858 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18859 if test $ac_cv_func_getpgrp_void = yes; then
18860
18861 cat >>confdefs.h <<\_ACEOF
18862 #define GETPGRP_VOID 1
18863 _ACEOF
18864
18865 fi
18866
18867
18868
18869 for ac_func in strftime
18870 do
18871 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18872 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18873 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18874 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18875 echo $ECHO_N "(cached) $ECHO_C" >&6
18876 else
18877 cat >conftest.$ac_ext <<_ACEOF
18878 /* confdefs.h. */
18879 _ACEOF
18880 cat confdefs.h >>conftest.$ac_ext
18881 cat >>conftest.$ac_ext <<_ACEOF
18882 /* end confdefs.h. */
18883 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18885 #define $ac_func innocuous_$ac_func
18886
18887 /* System header to define __stub macros and hopefully few prototypes,
18888 which can conflict with char $ac_func (); below.
18889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18890 <limits.h> exists even on freestanding compilers. */
18891
18892 #ifdef __STDC__
18893 # include <limits.h>
18894 #else
18895 # include <assert.h>
18896 #endif
18897
18898 #undef $ac_func
18899
18900 /* Override any GCC internal prototype to avoid an error.
18901 Use char because int might match the return type of a GCC
18902 builtin and then its argument prototype would still apply. */
18903 #ifdef __cplusplus
18904 extern "C"
18905 #endif
18906 char $ac_func ();
18907 /* The GNU C library defines this for functions which it implements
18908 to always fail with ENOSYS. Some functions are actually named
18909 something starting with __ and the normal name is an alias. */
18910 #if defined __stub_$ac_func || defined __stub___$ac_func
18911 choke me
18912 #endif
18913
18914 int
18915 main ()
18916 {
18917 return $ac_func ();
18918 ;
18919 return 0;
18920 }
18921 _ACEOF
18922 rm -f conftest.$ac_objext conftest$ac_exeext
18923 if { (ac_try="$ac_link"
18924 case "(($ac_try" in
18925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18926 *) ac_try_echo=$ac_try;;
18927 esac
18928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18929 (eval "$ac_link") 2>conftest.er1
18930 ac_status=$?
18931 grep -v '^ *+' conftest.er1 >conftest.err
18932 rm -f conftest.er1
18933 cat conftest.err >&5
18934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935 (exit $ac_status); } && {
18936 test -z "$ac_c_werror_flag" ||
18937 test ! -s conftest.err
18938 } && test -s conftest$ac_exeext &&
18939 $as_test_x conftest$ac_exeext; then
18940 eval "$as_ac_var=yes"
18941 else
18942 echo "$as_me: failed program was:" >&5
18943 sed 's/^/| /' conftest.$ac_ext >&5
18944
18945 eval "$as_ac_var=no"
18946 fi
18947
18948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18949 conftest$ac_exeext conftest.$ac_ext
18950 fi
18951 ac_res=`eval echo '${'$as_ac_var'}'`
18952 { echo "$as_me:$LINENO: result: $ac_res" >&5
18953 echo "${ECHO_T}$ac_res" >&6; }
18954 if test `eval echo '${'$as_ac_var'}'` = yes; then
18955 cat >>confdefs.h <<_ACEOF
18956 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18957 _ACEOF
18958
18959 else
18960 # strftime is in -lintl on SCO UNIX.
18961 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18962 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
18963 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18964 echo $ECHO_N "(cached) $ECHO_C" >&6
18965 else
18966 ac_check_lib_save_LIBS=$LIBS
18967 LIBS="-lintl $LIBS"
18968 cat >conftest.$ac_ext <<_ACEOF
18969 /* confdefs.h. */
18970 _ACEOF
18971 cat confdefs.h >>conftest.$ac_ext
18972 cat >>conftest.$ac_ext <<_ACEOF
18973 /* end confdefs.h. */
18974
18975 /* Override any GCC internal prototype to avoid an error.
18976 Use char because int might match the return type of a GCC
18977 builtin and then its argument prototype would still apply. */
18978 #ifdef __cplusplus
18979 extern "C"
18980 #endif
18981 char strftime ();
18982 int
18983 main ()
18984 {
18985 return strftime ();
18986 ;
18987 return 0;
18988 }
18989 _ACEOF
18990 rm -f conftest.$ac_objext conftest$ac_exeext
18991 if { (ac_try="$ac_link"
18992 case "(($ac_try" in
18993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18994 *) ac_try_echo=$ac_try;;
18995 esac
18996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18997 (eval "$ac_link") 2>conftest.er1
18998 ac_status=$?
18999 grep -v '^ *+' conftest.er1 >conftest.err
19000 rm -f conftest.er1
19001 cat conftest.err >&5
19002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003 (exit $ac_status); } && {
19004 test -z "$ac_c_werror_flag" ||
19005 test ! -s conftest.err
19006 } && test -s conftest$ac_exeext &&
19007 $as_test_x conftest$ac_exeext; then
19008 ac_cv_lib_intl_strftime=yes
19009 else
19010 echo "$as_me: failed program was:" >&5
19011 sed 's/^/| /' conftest.$ac_ext >&5
19012
19013 ac_cv_lib_intl_strftime=no
19014 fi
19015
19016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19017 conftest$ac_exeext conftest.$ac_ext
19018 LIBS=$ac_check_lib_save_LIBS
19019 fi
19020 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19021 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19022 if test $ac_cv_lib_intl_strftime = yes; then
19023 cat >>confdefs.h <<\_ACEOF
19024 #define HAVE_STRFTIME 1
19025 _ACEOF
19026
19027 LIBS="-lintl $LIBS"
19028 fi
19029
19030 fi
19031 done
19032
19033
19034 # UNIX98 PTYs.
19035
19036 for ac_func in grantpt
19037 do
19038 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19039 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19041 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19042 echo $ECHO_N "(cached) $ECHO_C" >&6
19043 else
19044 cat >conftest.$ac_ext <<_ACEOF
19045 /* confdefs.h. */
19046 _ACEOF
19047 cat confdefs.h >>conftest.$ac_ext
19048 cat >>conftest.$ac_ext <<_ACEOF
19049 /* end confdefs.h. */
19050 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19052 #define $ac_func innocuous_$ac_func
19053
19054 /* System header to define __stub macros and hopefully few prototypes,
19055 which can conflict with char $ac_func (); below.
19056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19057 <limits.h> exists even on freestanding compilers. */
19058
19059 #ifdef __STDC__
19060 # include <limits.h>
19061 #else
19062 # include <assert.h>
19063 #endif
19064
19065 #undef $ac_func
19066
19067 /* Override any GCC internal prototype to avoid an error.
19068 Use char because int might match the return type of a GCC
19069 builtin and then its argument prototype would still apply. */
19070 #ifdef __cplusplus
19071 extern "C"
19072 #endif
19073 char $ac_func ();
19074 /* The GNU C library defines this for functions which it implements
19075 to always fail with ENOSYS. Some functions are actually named
19076 something starting with __ and the normal name is an alias. */
19077 #if defined __stub_$ac_func || defined __stub___$ac_func
19078 choke me
19079 #endif
19080
19081 int
19082 main ()
19083 {
19084 return $ac_func ();
19085 ;
19086 return 0;
19087 }
19088 _ACEOF
19089 rm -f conftest.$ac_objext conftest$ac_exeext
19090 if { (ac_try="$ac_link"
19091 case "(($ac_try" in
19092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19093 *) ac_try_echo=$ac_try;;
19094 esac
19095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19096 (eval "$ac_link") 2>conftest.er1
19097 ac_status=$?
19098 grep -v '^ *+' conftest.er1 >conftest.err
19099 rm -f conftest.er1
19100 cat conftest.err >&5
19101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102 (exit $ac_status); } && {
19103 test -z "$ac_c_werror_flag" ||
19104 test ! -s conftest.err
19105 } && test -s conftest$ac_exeext &&
19106 $as_test_x conftest$ac_exeext; then
19107 eval "$as_ac_var=yes"
19108 else
19109 echo "$as_me: failed program was:" >&5
19110 sed 's/^/| /' conftest.$ac_ext >&5
19111
19112 eval "$as_ac_var=no"
19113 fi
19114
19115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19116 conftest$ac_exeext conftest.$ac_ext
19117 fi
19118 ac_res=`eval echo '${'$as_ac_var'}'`
19119 { echo "$as_me:$LINENO: result: $ac_res" >&5
19120 echo "${ECHO_T}$ac_res" >&6; }
19121 if test `eval echo '${'$as_ac_var'}'` = yes; then
19122 cat >>confdefs.h <<_ACEOF
19123 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19124 _ACEOF
19125
19126 fi
19127 done
19128
19129
19130 # PTY-related GNU extensions.
19131
19132 for ac_func in getpt
19133 do
19134 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19135 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19136 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19137 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19138 echo $ECHO_N "(cached) $ECHO_C" >&6
19139 else
19140 cat >conftest.$ac_ext <<_ACEOF
19141 /* confdefs.h. */
19142 _ACEOF
19143 cat confdefs.h >>conftest.$ac_ext
19144 cat >>conftest.$ac_ext <<_ACEOF
19145 /* end confdefs.h. */
19146 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19148 #define $ac_func innocuous_$ac_func
19149
19150 /* System header to define __stub macros and hopefully few prototypes,
19151 which can conflict with char $ac_func (); below.
19152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19153 <limits.h> exists even on freestanding compilers. */
19154
19155 #ifdef __STDC__
19156 # include <limits.h>
19157 #else
19158 # include <assert.h>
19159 #endif
19160
19161 #undef $ac_func
19162
19163 /* Override any GCC internal prototype to avoid an error.
19164 Use char because int might match the return type of a GCC
19165 builtin and then its argument prototype would still apply. */
19166 #ifdef __cplusplus
19167 extern "C"
19168 #endif
19169 char $ac_func ();
19170 /* The GNU C library defines this for functions which it implements
19171 to always fail with ENOSYS. Some functions are actually named
19172 something starting with __ and the normal name is an alias. */
19173 #if defined __stub_$ac_func || defined __stub___$ac_func
19174 choke me
19175 #endif
19176
19177 int
19178 main ()
19179 {
19180 return $ac_func ();
19181 ;
19182 return 0;
19183 }
19184 _ACEOF
19185 rm -f conftest.$ac_objext conftest$ac_exeext
19186 if { (ac_try="$ac_link"
19187 case "(($ac_try" in
19188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19189 *) ac_try_echo=$ac_try;;
19190 esac
19191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19192 (eval "$ac_link") 2>conftest.er1
19193 ac_status=$?
19194 grep -v '^ *+' conftest.er1 >conftest.err
19195 rm -f conftest.er1
19196 cat conftest.err >&5
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); } && {
19199 test -z "$ac_c_werror_flag" ||
19200 test ! -s conftest.err
19201 } && test -s conftest$ac_exeext &&
19202 $as_test_x conftest$ac_exeext; then
19203 eval "$as_ac_var=yes"
19204 else
19205 echo "$as_me: failed program was:" >&5
19206 sed 's/^/| /' conftest.$ac_ext >&5
19207
19208 eval "$as_ac_var=no"
19209 fi
19210
19211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19212 conftest$ac_exeext conftest.$ac_ext
19213 fi
19214 ac_res=`eval echo '${'$as_ac_var'}'`
19215 { echo "$as_me:$LINENO: result: $ac_res" >&5
19216 echo "${ECHO_T}$ac_res" >&6; }
19217 if test `eval echo '${'$as_ac_var'}'` = yes; then
19218 cat >>confdefs.h <<_ACEOF
19219 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19220 _ACEOF
19221
19222 fi
19223 done
19224
19225
19226 # Check this now, so that we will NOT find the above functions in ncurses.
19227 # That is because we have not set up to link ncurses in lib-src.
19228 # It's better to believe a function is not available
19229 # than to expect to find it in ncurses.
19230
19231 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19232 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19233 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19234 echo $ECHO_N "(cached) $ECHO_C" >&6
19235 else
19236 ac_check_lib_save_LIBS=$LIBS
19237 LIBS="-lncurses $LIBS"
19238 cat >conftest.$ac_ext <<_ACEOF
19239 /* confdefs.h. */
19240 _ACEOF
19241 cat confdefs.h >>conftest.$ac_ext
19242 cat >>conftest.$ac_ext <<_ACEOF
19243 /* end confdefs.h. */
19244
19245 /* Override any GCC internal prototype to avoid an error.
19246 Use char because int might match the return type of a GCC
19247 builtin and then its argument prototype would still apply. */
19248 #ifdef __cplusplus
19249 extern "C"
19250 #endif
19251 char tparm ();
19252 int
19253 main ()
19254 {
19255 return tparm ();
19256 ;
19257 return 0;
19258 }
19259 _ACEOF
19260 rm -f conftest.$ac_objext conftest$ac_exeext
19261 if { (ac_try="$ac_link"
19262 case "(($ac_try" in
19263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19264 *) ac_try_echo=$ac_try;;
19265 esac
19266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19267 (eval "$ac_link") 2>conftest.er1
19268 ac_status=$?
19269 grep -v '^ *+' conftest.er1 >conftest.err
19270 rm -f conftest.er1
19271 cat conftest.err >&5
19272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19273 (exit $ac_status); } && {
19274 test -z "$ac_c_werror_flag" ||
19275 test ! -s conftest.err
19276 } && test -s conftest$ac_exeext &&
19277 $as_test_x conftest$ac_exeext; then
19278 ac_cv_lib_ncurses_tparm=yes
19279 else
19280 echo "$as_me: failed program was:" >&5
19281 sed 's/^/| /' conftest.$ac_ext >&5
19282
19283 ac_cv_lib_ncurses_tparm=no
19284 fi
19285
19286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19287 conftest$ac_exeext conftest.$ac_ext
19288 LIBS=$ac_check_lib_save_LIBS
19289 fi
19290 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19291 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19292 if test $ac_cv_lib_ncurses_tparm = yes; then
19293 cat >>confdefs.h <<_ACEOF
19294 #define HAVE_LIBNCURSES 1
19295 _ACEOF
19296
19297 LIBS="-lncurses $LIBS"
19298
19299 fi
19300
19301
19302 # Do we need the Hesiod library to provide the support routines?
19303 if test "$with_hesiod" = yes ; then
19304 # Don't set $LIBS here -- see comments above.
19305 resolv=no
19306 { echo "$as_me:$LINENO: checking for res_send" >&5
19307 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19308 if test "${ac_cv_func_res_send+set}" = set; then
19309 echo $ECHO_N "(cached) $ECHO_C" >&6
19310 else
19311 cat >conftest.$ac_ext <<_ACEOF
19312 /* confdefs.h. */
19313 _ACEOF
19314 cat confdefs.h >>conftest.$ac_ext
19315 cat >>conftest.$ac_ext <<_ACEOF
19316 /* end confdefs.h. */
19317 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19319 #define res_send innocuous_res_send
19320
19321 /* System header to define __stub macros and hopefully few prototypes,
19322 which can conflict with char res_send (); below.
19323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19324 <limits.h> exists even on freestanding compilers. */
19325
19326 #ifdef __STDC__
19327 # include <limits.h>
19328 #else
19329 # include <assert.h>
19330 #endif
19331
19332 #undef res_send
19333
19334 /* Override any GCC internal prototype to avoid an error.
19335 Use char because int might match the return type of a GCC
19336 builtin and then its argument prototype would still apply. */
19337 #ifdef __cplusplus
19338 extern "C"
19339 #endif
19340 char res_send ();
19341 /* The GNU C library defines this for functions which it implements
19342 to always fail with ENOSYS. Some functions are actually named
19343 something starting with __ and the normal name is an alias. */
19344 #if defined __stub_res_send || defined __stub___res_send
19345 choke me
19346 #endif
19347
19348 int
19349 main ()
19350 {
19351 return res_send ();
19352 ;
19353 return 0;
19354 }
19355 _ACEOF
19356 rm -f conftest.$ac_objext conftest$ac_exeext
19357 if { (ac_try="$ac_link"
19358 case "(($ac_try" in
19359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19360 *) ac_try_echo=$ac_try;;
19361 esac
19362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19363 (eval "$ac_link") 2>conftest.er1
19364 ac_status=$?
19365 grep -v '^ *+' conftest.er1 >conftest.err
19366 rm -f conftest.er1
19367 cat conftest.err >&5
19368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369 (exit $ac_status); } && {
19370 test -z "$ac_c_werror_flag" ||
19371 test ! -s conftest.err
19372 } && test -s conftest$ac_exeext &&
19373 $as_test_x conftest$ac_exeext; then
19374 ac_cv_func_res_send=yes
19375 else
19376 echo "$as_me: failed program was:" >&5
19377 sed 's/^/| /' conftest.$ac_ext >&5
19378
19379 ac_cv_func_res_send=no
19380 fi
19381
19382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19383 conftest$ac_exeext conftest.$ac_ext
19384 fi
19385 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19386 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19387 if test $ac_cv_func_res_send = yes; then
19388 :
19389 else
19390 { echo "$as_me:$LINENO: checking for __res_send" >&5
19391 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19392 if test "${ac_cv_func___res_send+set}" = set; then
19393 echo $ECHO_N "(cached) $ECHO_C" >&6
19394 else
19395 cat >conftest.$ac_ext <<_ACEOF
19396 /* confdefs.h. */
19397 _ACEOF
19398 cat confdefs.h >>conftest.$ac_ext
19399 cat >>conftest.$ac_ext <<_ACEOF
19400 /* end confdefs.h. */
19401 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19403 #define __res_send innocuous___res_send
19404
19405 /* System header to define __stub macros and hopefully few prototypes,
19406 which can conflict with char __res_send (); below.
19407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19408 <limits.h> exists even on freestanding compilers. */
19409
19410 #ifdef __STDC__
19411 # include <limits.h>
19412 #else
19413 # include <assert.h>
19414 #endif
19415
19416 #undef __res_send
19417
19418 /* Override any GCC internal prototype to avoid an error.
19419 Use char because int might match the return type of a GCC
19420 builtin and then its argument prototype would still apply. */
19421 #ifdef __cplusplus
19422 extern "C"
19423 #endif
19424 char __res_send ();
19425 /* The GNU C library defines this for functions which it implements
19426 to always fail with ENOSYS. Some functions are actually named
19427 something starting with __ and the normal name is an alias. */
19428 #if defined __stub___res_send || defined __stub_____res_send
19429 choke me
19430 #endif
19431
19432 int
19433 main ()
19434 {
19435 return __res_send ();
19436 ;
19437 return 0;
19438 }
19439 _ACEOF
19440 rm -f conftest.$ac_objext conftest$ac_exeext
19441 if { (ac_try="$ac_link"
19442 case "(($ac_try" in
19443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19444 *) ac_try_echo=$ac_try;;
19445 esac
19446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19447 (eval "$ac_link") 2>conftest.er1
19448 ac_status=$?
19449 grep -v '^ *+' conftest.er1 >conftest.err
19450 rm -f conftest.er1
19451 cat conftest.err >&5
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); } && {
19454 test -z "$ac_c_werror_flag" ||
19455 test ! -s conftest.err
19456 } && test -s conftest$ac_exeext &&
19457 $as_test_x conftest$ac_exeext; then
19458 ac_cv_func___res_send=yes
19459 else
19460 echo "$as_me: failed program was:" >&5
19461 sed 's/^/| /' conftest.$ac_ext >&5
19462
19463 ac_cv_func___res_send=no
19464 fi
19465
19466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19467 conftest$ac_exeext conftest.$ac_ext
19468 fi
19469 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19470 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19471 if test $ac_cv_func___res_send = yes; then
19472 :
19473 else
19474 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19475 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19476 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19477 echo $ECHO_N "(cached) $ECHO_C" >&6
19478 else
19479 ac_check_lib_save_LIBS=$LIBS
19480 LIBS="-lresolv $LIBS"
19481 cat >conftest.$ac_ext <<_ACEOF
19482 /* confdefs.h. */
19483 _ACEOF
19484 cat confdefs.h >>conftest.$ac_ext
19485 cat >>conftest.$ac_ext <<_ACEOF
19486 /* end confdefs.h. */
19487
19488 /* Override any GCC internal prototype to avoid an error.
19489 Use char because int might match the return type of a GCC
19490 builtin and then its argument prototype would still apply. */
19491 #ifdef __cplusplus
19492 extern "C"
19493 #endif
19494 char res_send ();
19495 int
19496 main ()
19497 {
19498 return res_send ();
19499 ;
19500 return 0;
19501 }
19502 _ACEOF
19503 rm -f conftest.$ac_objext conftest$ac_exeext
19504 if { (ac_try="$ac_link"
19505 case "(($ac_try" in
19506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19507 *) ac_try_echo=$ac_try;;
19508 esac
19509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19510 (eval "$ac_link") 2>conftest.er1
19511 ac_status=$?
19512 grep -v '^ *+' conftest.er1 >conftest.err
19513 rm -f conftest.er1
19514 cat conftest.err >&5
19515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516 (exit $ac_status); } && {
19517 test -z "$ac_c_werror_flag" ||
19518 test ! -s conftest.err
19519 } && test -s conftest$ac_exeext &&
19520 $as_test_x conftest$ac_exeext; then
19521 ac_cv_lib_resolv_res_send=yes
19522 else
19523 echo "$as_me: failed program was:" >&5
19524 sed 's/^/| /' conftest.$ac_ext >&5
19525
19526 ac_cv_lib_resolv_res_send=no
19527 fi
19528
19529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19530 conftest$ac_exeext conftest.$ac_ext
19531 LIBS=$ac_check_lib_save_LIBS
19532 fi
19533 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19534 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19535 if test $ac_cv_lib_resolv_res_send = yes; then
19536 resolv=yes
19537 else
19538 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
19539 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
19540 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19541 echo $ECHO_N "(cached) $ECHO_C" >&6
19542 else
19543 ac_check_lib_save_LIBS=$LIBS
19544 LIBS="-lresolv $LIBS"
19545 cat >conftest.$ac_ext <<_ACEOF
19546 /* confdefs.h. */
19547 _ACEOF
19548 cat confdefs.h >>conftest.$ac_ext
19549 cat >>conftest.$ac_ext <<_ACEOF
19550 /* end confdefs.h. */
19551
19552 /* Override any GCC internal prototype to avoid an error.
19553 Use char because int might match the return type of a GCC
19554 builtin and then its argument prototype would still apply. */
19555 #ifdef __cplusplus
19556 extern "C"
19557 #endif
19558 char __res_send ();
19559 int
19560 main ()
19561 {
19562 return __res_send ();
19563 ;
19564 return 0;
19565 }
19566 _ACEOF
19567 rm -f conftest.$ac_objext conftest$ac_exeext
19568 if { (ac_try="$ac_link"
19569 case "(($ac_try" in
19570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19571 *) ac_try_echo=$ac_try;;
19572 esac
19573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19574 (eval "$ac_link") 2>conftest.er1
19575 ac_status=$?
19576 grep -v '^ *+' conftest.er1 >conftest.err
19577 rm -f conftest.er1
19578 cat conftest.err >&5
19579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580 (exit $ac_status); } && {
19581 test -z "$ac_c_werror_flag" ||
19582 test ! -s conftest.err
19583 } && test -s conftest$ac_exeext &&
19584 $as_test_x conftest$ac_exeext; then
19585 ac_cv_lib_resolv___res_send=yes
19586 else
19587 echo "$as_me: failed program was:" >&5
19588 sed 's/^/| /' conftest.$ac_ext >&5
19589
19590 ac_cv_lib_resolv___res_send=no
19591 fi
19592
19593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19594 conftest$ac_exeext conftest.$ac_ext
19595 LIBS=$ac_check_lib_save_LIBS
19596 fi
19597 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
19598 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19599 if test $ac_cv_lib_resolv___res_send = yes; then
19600 resolv=yes
19601 fi
19602
19603 fi
19604
19605 fi
19606
19607 fi
19608
19609 if test "$resolv" = yes ; then
19610 RESOLVLIB=-lresolv
19611
19612 cat >>confdefs.h <<\_ACEOF
19613 #define HAVE_LIBRESOLV 1
19614 _ACEOF
19615
19616 else
19617 RESOLVLIB=
19618 fi
19619 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
19620 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
19621 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19622 echo $ECHO_N "(cached) $ECHO_C" >&6
19623 else
19624 cat >conftest.$ac_ext <<_ACEOF
19625 /* confdefs.h. */
19626 _ACEOF
19627 cat confdefs.h >>conftest.$ac_ext
19628 cat >>conftest.$ac_ext <<_ACEOF
19629 /* end confdefs.h. */
19630 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19631 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19632 #define hes_getmailhost innocuous_hes_getmailhost
19633
19634 /* System header to define __stub macros and hopefully few prototypes,
19635 which can conflict with char hes_getmailhost (); below.
19636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19637 <limits.h> exists even on freestanding compilers. */
19638
19639 #ifdef __STDC__
19640 # include <limits.h>
19641 #else
19642 # include <assert.h>
19643 #endif
19644
19645 #undef hes_getmailhost
19646
19647 /* Override any GCC internal prototype to avoid an error.
19648 Use char because int might match the return type of a GCC
19649 builtin and then its argument prototype would still apply. */
19650 #ifdef __cplusplus
19651 extern "C"
19652 #endif
19653 char hes_getmailhost ();
19654 /* The GNU C library defines this for functions which it implements
19655 to always fail with ENOSYS. Some functions are actually named
19656 something starting with __ and the normal name is an alias. */
19657 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19658 choke me
19659 #endif
19660
19661 int
19662 main ()
19663 {
19664 return hes_getmailhost ();
19665 ;
19666 return 0;
19667 }
19668 _ACEOF
19669 rm -f conftest.$ac_objext conftest$ac_exeext
19670 if { (ac_try="$ac_link"
19671 case "(($ac_try" in
19672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19673 *) ac_try_echo=$ac_try;;
19674 esac
19675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19676 (eval "$ac_link") 2>conftest.er1
19677 ac_status=$?
19678 grep -v '^ *+' conftest.er1 >conftest.err
19679 rm -f conftest.er1
19680 cat conftest.err >&5
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); } && {
19683 test -z "$ac_c_werror_flag" ||
19684 test ! -s conftest.err
19685 } && test -s conftest$ac_exeext &&
19686 $as_test_x conftest$ac_exeext; then
19687 ac_cv_func_hes_getmailhost=yes
19688 else
19689 echo "$as_me: failed program was:" >&5
19690 sed 's/^/| /' conftest.$ac_ext >&5
19691
19692 ac_cv_func_hes_getmailhost=no
19693 fi
19694
19695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19696 conftest$ac_exeext conftest.$ac_ext
19697 fi
19698 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
19699 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19700 if test $ac_cv_func_hes_getmailhost = yes; then
19701 :
19702 else
19703 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
19704 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
19705 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19706 echo $ECHO_N "(cached) $ECHO_C" >&6
19707 else
19708 ac_check_lib_save_LIBS=$LIBS
19709 LIBS="-lhesiod $RESOLVLIB $LIBS"
19710 cat >conftest.$ac_ext <<_ACEOF
19711 /* confdefs.h. */
19712 _ACEOF
19713 cat confdefs.h >>conftest.$ac_ext
19714 cat >>conftest.$ac_ext <<_ACEOF
19715 /* end confdefs.h. */
19716
19717 /* Override any GCC internal prototype to avoid an error.
19718 Use char because int might match the return type of a GCC
19719 builtin and then its argument prototype would still apply. */
19720 #ifdef __cplusplus
19721 extern "C"
19722 #endif
19723 char hes_getmailhost ();
19724 int
19725 main ()
19726 {
19727 return hes_getmailhost ();
19728 ;
19729 return 0;
19730 }
19731 _ACEOF
19732 rm -f conftest.$ac_objext conftest$ac_exeext
19733 if { (ac_try="$ac_link"
19734 case "(($ac_try" in
19735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19736 *) ac_try_echo=$ac_try;;
19737 esac
19738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19739 (eval "$ac_link") 2>conftest.er1
19740 ac_status=$?
19741 grep -v '^ *+' conftest.er1 >conftest.err
19742 rm -f conftest.er1
19743 cat conftest.err >&5
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); } && {
19746 test -z "$ac_c_werror_flag" ||
19747 test ! -s conftest.err
19748 } && test -s conftest$ac_exeext &&
19749 $as_test_x conftest$ac_exeext; then
19750 ac_cv_lib_hesiod_hes_getmailhost=yes
19751 else
19752 echo "$as_me: failed program was:" >&5
19753 sed 's/^/| /' conftest.$ac_ext >&5
19754
19755 ac_cv_lib_hesiod_hes_getmailhost=no
19756 fi
19757
19758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19759 conftest$ac_exeext conftest.$ac_ext
19760 LIBS=$ac_check_lib_save_LIBS
19761 fi
19762 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19763 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19764 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19765
19766 cat >>confdefs.h <<\_ACEOF
19767 #define HAVE_LIBHESIOD 1
19768 _ACEOF
19769
19770 else
19771 :
19772 fi
19773
19774 fi
19775
19776 fi
19777
19778 # These tell us which Kerberos-related libraries to use.
19779 if test "${with_kerberos+set}" = set; then
19780
19781 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
19782 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
19783 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19784 echo $ECHO_N "(cached) $ECHO_C" >&6
19785 else
19786 ac_check_lib_save_LIBS=$LIBS
19787 LIBS="-lcom_err $LIBS"
19788 cat >conftest.$ac_ext <<_ACEOF
19789 /* confdefs.h. */
19790 _ACEOF
19791 cat confdefs.h >>conftest.$ac_ext
19792 cat >>conftest.$ac_ext <<_ACEOF
19793 /* end confdefs.h. */
19794
19795 /* Override any GCC internal prototype to avoid an error.
19796 Use char because int might match the return type of a GCC
19797 builtin and then its argument prototype would still apply. */
19798 #ifdef __cplusplus
19799 extern "C"
19800 #endif
19801 char com_err ();
19802 int
19803 main ()
19804 {
19805 return com_err ();
19806 ;
19807 return 0;
19808 }
19809 _ACEOF
19810 rm -f conftest.$ac_objext conftest$ac_exeext
19811 if { (ac_try="$ac_link"
19812 case "(($ac_try" in
19813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19814 *) ac_try_echo=$ac_try;;
19815 esac
19816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19817 (eval "$ac_link") 2>conftest.er1
19818 ac_status=$?
19819 grep -v '^ *+' conftest.er1 >conftest.err
19820 rm -f conftest.er1
19821 cat conftest.err >&5
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); } && {
19824 test -z "$ac_c_werror_flag" ||
19825 test ! -s conftest.err
19826 } && test -s conftest$ac_exeext &&
19827 $as_test_x conftest$ac_exeext; then
19828 ac_cv_lib_com_err_com_err=yes
19829 else
19830 echo "$as_me: failed program was:" >&5
19831 sed 's/^/| /' conftest.$ac_ext >&5
19832
19833 ac_cv_lib_com_err_com_err=no
19834 fi
19835
19836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19837 conftest$ac_exeext conftest.$ac_ext
19838 LIBS=$ac_check_lib_save_LIBS
19839 fi
19840 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
19841 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19842 if test $ac_cv_lib_com_err_com_err = yes; then
19843 cat >>confdefs.h <<_ACEOF
19844 #define HAVE_LIBCOM_ERR 1
19845 _ACEOF
19846
19847 LIBS="-lcom_err $LIBS"
19848
19849 fi
19850
19851
19852 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19853 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
19854 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19855 echo $ECHO_N "(cached) $ECHO_C" >&6
19856 else
19857 ac_check_lib_save_LIBS=$LIBS
19858 LIBS="-lk5crypto $LIBS"
19859 cat >conftest.$ac_ext <<_ACEOF
19860 /* confdefs.h. */
19861 _ACEOF
19862 cat confdefs.h >>conftest.$ac_ext
19863 cat >>conftest.$ac_ext <<_ACEOF
19864 /* end confdefs.h. */
19865
19866 /* Override any GCC internal prototype to avoid an error.
19867 Use char because int might match the return type of a GCC
19868 builtin and then its argument prototype would still apply. */
19869 #ifdef __cplusplus
19870 extern "C"
19871 #endif
19872 char mit_des_cbc_encrypt ();
19873 int
19874 main ()
19875 {
19876 return mit_des_cbc_encrypt ();
19877 ;
19878 return 0;
19879 }
19880 _ACEOF
19881 rm -f conftest.$ac_objext conftest$ac_exeext
19882 if { (ac_try="$ac_link"
19883 case "(($ac_try" in
19884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19885 *) ac_try_echo=$ac_try;;
19886 esac
19887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19888 (eval "$ac_link") 2>conftest.er1
19889 ac_status=$?
19890 grep -v '^ *+' conftest.er1 >conftest.err
19891 rm -f conftest.er1
19892 cat conftest.err >&5
19893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894 (exit $ac_status); } && {
19895 test -z "$ac_c_werror_flag" ||
19896 test ! -s conftest.err
19897 } && test -s conftest$ac_exeext &&
19898 $as_test_x conftest$ac_exeext; then
19899 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19900 else
19901 echo "$as_me: failed program was:" >&5
19902 sed 's/^/| /' conftest.$ac_ext >&5
19903
19904 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19905 fi
19906
19907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19908 conftest$ac_exeext conftest.$ac_ext
19909 LIBS=$ac_check_lib_save_LIBS
19910 fi
19911 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19912 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19913 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19914 cat >>confdefs.h <<_ACEOF
19915 #define HAVE_LIBK5CRYPTO 1
19916 _ACEOF
19917
19918 LIBS="-lk5crypto $LIBS"
19919
19920 fi
19921
19922
19923 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19924 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
19925 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19926 echo $ECHO_N "(cached) $ECHO_C" >&6
19927 else
19928 ac_check_lib_save_LIBS=$LIBS
19929 LIBS="-lcrypto $LIBS"
19930 cat >conftest.$ac_ext <<_ACEOF
19931 /* confdefs.h. */
19932 _ACEOF
19933 cat confdefs.h >>conftest.$ac_ext
19934 cat >>conftest.$ac_ext <<_ACEOF
19935 /* end confdefs.h. */
19936
19937 /* Override any GCC internal prototype to avoid an error.
19938 Use char because int might match the return type of a GCC
19939 builtin and then its argument prototype would still apply. */
19940 #ifdef __cplusplus
19941 extern "C"
19942 #endif
19943 char mit_des_cbc_encrypt ();
19944 int
19945 main ()
19946 {
19947 return mit_des_cbc_encrypt ();
19948 ;
19949 return 0;
19950 }
19951 _ACEOF
19952 rm -f conftest.$ac_objext conftest$ac_exeext
19953 if { (ac_try="$ac_link"
19954 case "(($ac_try" in
19955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19956 *) ac_try_echo=$ac_try;;
19957 esac
19958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19959 (eval "$ac_link") 2>conftest.er1
19960 ac_status=$?
19961 grep -v '^ *+' conftest.er1 >conftest.err
19962 rm -f conftest.er1
19963 cat conftest.err >&5
19964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965 (exit $ac_status); } && {
19966 test -z "$ac_c_werror_flag" ||
19967 test ! -s conftest.err
19968 } && test -s conftest$ac_exeext &&
19969 $as_test_x conftest$ac_exeext; then
19970 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19971 else
19972 echo "$as_me: failed program was:" >&5
19973 sed 's/^/| /' conftest.$ac_ext >&5
19974
19975 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19976 fi
19977
19978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19979 conftest$ac_exeext conftest.$ac_ext
19980 LIBS=$ac_check_lib_save_LIBS
19981 fi
19982 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19983 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19984 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19985 cat >>confdefs.h <<_ACEOF
19986 #define HAVE_LIBCRYPTO 1
19987 _ACEOF
19988
19989 LIBS="-lcrypto $LIBS"
19990
19991 fi
19992
19993
19994 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19995 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
19996 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19997 echo $ECHO_N "(cached) $ECHO_C" >&6
19998 else
19999 ac_check_lib_save_LIBS=$LIBS
20000 LIBS="-lkrb5 $LIBS"
20001 cat >conftest.$ac_ext <<_ACEOF
20002 /* confdefs.h. */
20003 _ACEOF
20004 cat confdefs.h >>conftest.$ac_ext
20005 cat >>conftest.$ac_ext <<_ACEOF
20006 /* end confdefs.h. */
20007
20008 /* Override any GCC internal prototype to avoid an error.
20009 Use char because int might match the return type of a GCC
20010 builtin and then its argument prototype would still apply. */
20011 #ifdef __cplusplus
20012 extern "C"
20013 #endif
20014 char krb5_init_context ();
20015 int
20016 main ()
20017 {
20018 return krb5_init_context ();
20019 ;
20020 return 0;
20021 }
20022 _ACEOF
20023 rm -f conftest.$ac_objext conftest$ac_exeext
20024 if { (ac_try="$ac_link"
20025 case "(($ac_try" in
20026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20027 *) ac_try_echo=$ac_try;;
20028 esac
20029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20030 (eval "$ac_link") 2>conftest.er1
20031 ac_status=$?
20032 grep -v '^ *+' conftest.er1 >conftest.err
20033 rm -f conftest.er1
20034 cat conftest.err >&5
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); } && {
20037 test -z "$ac_c_werror_flag" ||
20038 test ! -s conftest.err
20039 } && test -s conftest$ac_exeext &&
20040 $as_test_x conftest$ac_exeext; then
20041 ac_cv_lib_krb5_krb5_init_context=yes
20042 else
20043 echo "$as_me: failed program was:" >&5
20044 sed 's/^/| /' conftest.$ac_ext >&5
20045
20046 ac_cv_lib_krb5_krb5_init_context=no
20047 fi
20048
20049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20050 conftest$ac_exeext conftest.$ac_ext
20051 LIBS=$ac_check_lib_save_LIBS
20052 fi
20053 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20054 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20055 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20056 cat >>confdefs.h <<_ACEOF
20057 #define HAVE_LIBKRB5 1
20058 _ACEOF
20059
20060 LIBS="-lkrb5 $LIBS"
20061
20062 fi
20063
20064 if test "${with_kerberos5+set}" != set; then
20065
20066 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20067 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20068 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20069 echo $ECHO_N "(cached) $ECHO_C" >&6
20070 else
20071 ac_check_lib_save_LIBS=$LIBS
20072 LIBS="-ldes425 $LIBS"
20073 cat >conftest.$ac_ext <<_ACEOF
20074 /* confdefs.h. */
20075 _ACEOF
20076 cat confdefs.h >>conftest.$ac_ext
20077 cat >>conftest.$ac_ext <<_ACEOF
20078 /* end confdefs.h. */
20079
20080 /* Override any GCC internal prototype to avoid an error.
20081 Use char because int might match the return type of a GCC
20082 builtin and then its argument prototype would still apply. */
20083 #ifdef __cplusplus
20084 extern "C"
20085 #endif
20086 char des_cbc_encrypt ();
20087 int
20088 main ()
20089 {
20090 return des_cbc_encrypt ();
20091 ;
20092 return 0;
20093 }
20094 _ACEOF
20095 rm -f conftest.$ac_objext conftest$ac_exeext
20096 if { (ac_try="$ac_link"
20097 case "(($ac_try" in
20098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20099 *) ac_try_echo=$ac_try;;
20100 esac
20101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20102 (eval "$ac_link") 2>conftest.er1
20103 ac_status=$?
20104 grep -v '^ *+' conftest.er1 >conftest.err
20105 rm -f conftest.er1
20106 cat conftest.err >&5
20107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108 (exit $ac_status); } && {
20109 test -z "$ac_c_werror_flag" ||
20110 test ! -s conftest.err
20111 } && test -s conftest$ac_exeext &&
20112 $as_test_x conftest$ac_exeext; then
20113 ac_cv_lib_des425_des_cbc_encrypt=yes
20114 else
20115 echo "$as_me: failed program was:" >&5
20116 sed 's/^/| /' conftest.$ac_ext >&5
20117
20118 ac_cv_lib_des425_des_cbc_encrypt=no
20119 fi
20120
20121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20122 conftest$ac_exeext conftest.$ac_ext
20123 LIBS=$ac_check_lib_save_LIBS
20124 fi
20125 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20126 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20127 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20128 cat >>confdefs.h <<_ACEOF
20129 #define HAVE_LIBDES425 1
20130 _ACEOF
20131
20132 LIBS="-ldes425 $LIBS"
20133
20134 else
20135
20136 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20137 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20138 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20139 echo $ECHO_N "(cached) $ECHO_C" >&6
20140 else
20141 ac_check_lib_save_LIBS=$LIBS
20142 LIBS="-ldes $LIBS"
20143 cat >conftest.$ac_ext <<_ACEOF
20144 /* confdefs.h. */
20145 _ACEOF
20146 cat confdefs.h >>conftest.$ac_ext
20147 cat >>conftest.$ac_ext <<_ACEOF
20148 /* end confdefs.h. */
20149
20150 /* Override any GCC internal prototype to avoid an error.
20151 Use char because int might match the return type of a GCC
20152 builtin and then its argument prototype would still apply. */
20153 #ifdef __cplusplus
20154 extern "C"
20155 #endif
20156 char des_cbc_encrypt ();
20157 int
20158 main ()
20159 {
20160 return des_cbc_encrypt ();
20161 ;
20162 return 0;
20163 }
20164 _ACEOF
20165 rm -f conftest.$ac_objext conftest$ac_exeext
20166 if { (ac_try="$ac_link"
20167 case "(($ac_try" in
20168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20169 *) ac_try_echo=$ac_try;;
20170 esac
20171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20172 (eval "$ac_link") 2>conftest.er1
20173 ac_status=$?
20174 grep -v '^ *+' conftest.er1 >conftest.err
20175 rm -f conftest.er1
20176 cat conftest.err >&5
20177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178 (exit $ac_status); } && {
20179 test -z "$ac_c_werror_flag" ||
20180 test ! -s conftest.err
20181 } && test -s conftest$ac_exeext &&
20182 $as_test_x conftest$ac_exeext; then
20183 ac_cv_lib_des_des_cbc_encrypt=yes
20184 else
20185 echo "$as_me: failed program was:" >&5
20186 sed 's/^/| /' conftest.$ac_ext >&5
20187
20188 ac_cv_lib_des_des_cbc_encrypt=no
20189 fi
20190
20191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20192 conftest$ac_exeext conftest.$ac_ext
20193 LIBS=$ac_check_lib_save_LIBS
20194 fi
20195 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20196 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20197 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20198 cat >>confdefs.h <<_ACEOF
20199 #define HAVE_LIBDES 1
20200 _ACEOF
20201
20202 LIBS="-ldes $LIBS"
20203
20204 fi
20205
20206 fi
20207
20208
20209 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20210 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20211 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20212 echo $ECHO_N "(cached) $ECHO_C" >&6
20213 else
20214 ac_check_lib_save_LIBS=$LIBS
20215 LIBS="-lkrb4 $LIBS"
20216 cat >conftest.$ac_ext <<_ACEOF
20217 /* confdefs.h. */
20218 _ACEOF
20219 cat confdefs.h >>conftest.$ac_ext
20220 cat >>conftest.$ac_ext <<_ACEOF
20221 /* end confdefs.h. */
20222
20223 /* Override any GCC internal prototype to avoid an error.
20224 Use char because int might match the return type of a GCC
20225 builtin and then its argument prototype would still apply. */
20226 #ifdef __cplusplus
20227 extern "C"
20228 #endif
20229 char krb_get_cred ();
20230 int
20231 main ()
20232 {
20233 return krb_get_cred ();
20234 ;
20235 return 0;
20236 }
20237 _ACEOF
20238 rm -f conftest.$ac_objext conftest$ac_exeext
20239 if { (ac_try="$ac_link"
20240 case "(($ac_try" in
20241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20242 *) ac_try_echo=$ac_try;;
20243 esac
20244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20245 (eval "$ac_link") 2>conftest.er1
20246 ac_status=$?
20247 grep -v '^ *+' conftest.er1 >conftest.err
20248 rm -f conftest.er1
20249 cat conftest.err >&5
20250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251 (exit $ac_status); } && {
20252 test -z "$ac_c_werror_flag" ||
20253 test ! -s conftest.err
20254 } && test -s conftest$ac_exeext &&
20255 $as_test_x conftest$ac_exeext; then
20256 ac_cv_lib_krb4_krb_get_cred=yes
20257 else
20258 echo "$as_me: failed program was:" >&5
20259 sed 's/^/| /' conftest.$ac_ext >&5
20260
20261 ac_cv_lib_krb4_krb_get_cred=no
20262 fi
20263
20264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20265 conftest$ac_exeext conftest.$ac_ext
20266 LIBS=$ac_check_lib_save_LIBS
20267 fi
20268 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20269 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20270 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20271 cat >>confdefs.h <<_ACEOF
20272 #define HAVE_LIBKRB4 1
20273 _ACEOF
20274
20275 LIBS="-lkrb4 $LIBS"
20276
20277 else
20278
20279 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20280 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20281 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20282 echo $ECHO_N "(cached) $ECHO_C" >&6
20283 else
20284 ac_check_lib_save_LIBS=$LIBS
20285 LIBS="-lkrb $LIBS"
20286 cat >conftest.$ac_ext <<_ACEOF
20287 /* confdefs.h. */
20288 _ACEOF
20289 cat confdefs.h >>conftest.$ac_ext
20290 cat >>conftest.$ac_ext <<_ACEOF
20291 /* end confdefs.h. */
20292
20293 /* Override any GCC internal prototype to avoid an error.
20294 Use char because int might match the return type of a GCC
20295 builtin and then its argument prototype would still apply. */
20296 #ifdef __cplusplus
20297 extern "C"
20298 #endif
20299 char krb_get_cred ();
20300 int
20301 main ()
20302 {
20303 return krb_get_cred ();
20304 ;
20305 return 0;
20306 }
20307 _ACEOF
20308 rm -f conftest.$ac_objext conftest$ac_exeext
20309 if { (ac_try="$ac_link"
20310 case "(($ac_try" in
20311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20312 *) ac_try_echo=$ac_try;;
20313 esac
20314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20315 (eval "$ac_link") 2>conftest.er1
20316 ac_status=$?
20317 grep -v '^ *+' conftest.er1 >conftest.err
20318 rm -f conftest.er1
20319 cat conftest.err >&5
20320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321 (exit $ac_status); } && {
20322 test -z "$ac_c_werror_flag" ||
20323 test ! -s conftest.err
20324 } && test -s conftest$ac_exeext &&
20325 $as_test_x conftest$ac_exeext; then
20326 ac_cv_lib_krb_krb_get_cred=yes
20327 else
20328 echo "$as_me: failed program was:" >&5
20329 sed 's/^/| /' conftest.$ac_ext >&5
20330
20331 ac_cv_lib_krb_krb_get_cred=no
20332 fi
20333
20334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20335 conftest$ac_exeext conftest.$ac_ext
20336 LIBS=$ac_check_lib_save_LIBS
20337 fi
20338 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20339 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20340 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20341 cat >>confdefs.h <<_ACEOF
20342 #define HAVE_LIBKRB 1
20343 _ACEOF
20344
20345 LIBS="-lkrb $LIBS"
20346
20347 fi
20348
20349 fi
20350
20351 fi
20352
20353 if test "${with_kerberos5+set}" = set; then
20354
20355 for ac_header in krb5.h
20356 do
20357 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20359 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20362 echo $ECHO_N "(cached) $ECHO_C" >&6
20363 fi
20364 ac_res=`eval echo '${'$as_ac_Header'}'`
20365 { echo "$as_me:$LINENO: result: $ac_res" >&5
20366 echo "${ECHO_T}$ac_res" >&6; }
20367 else
20368 # Is the header compilable?
20369 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20370 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20371 cat >conftest.$ac_ext <<_ACEOF
20372 /* confdefs.h. */
20373 _ACEOF
20374 cat confdefs.h >>conftest.$ac_ext
20375 cat >>conftest.$ac_ext <<_ACEOF
20376 /* end confdefs.h. */
20377 $ac_includes_default
20378 #include <$ac_header>
20379 _ACEOF
20380 rm -f conftest.$ac_objext
20381 if { (ac_try="$ac_compile"
20382 case "(($ac_try" in
20383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20384 *) ac_try_echo=$ac_try;;
20385 esac
20386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20387 (eval "$ac_compile") 2>conftest.er1
20388 ac_status=$?
20389 grep -v '^ *+' conftest.er1 >conftest.err
20390 rm -f conftest.er1
20391 cat conftest.err >&5
20392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393 (exit $ac_status); } && {
20394 test -z "$ac_c_werror_flag" ||
20395 test ! -s conftest.err
20396 } && test -s conftest.$ac_objext; then
20397 ac_header_compiler=yes
20398 else
20399 echo "$as_me: failed program was:" >&5
20400 sed 's/^/| /' conftest.$ac_ext >&5
20401
20402 ac_header_compiler=no
20403 fi
20404
20405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20406 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20407 echo "${ECHO_T}$ac_header_compiler" >&6; }
20408
20409 # Is the header present?
20410 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20411 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20412 cat >conftest.$ac_ext <<_ACEOF
20413 /* confdefs.h. */
20414 _ACEOF
20415 cat confdefs.h >>conftest.$ac_ext
20416 cat >>conftest.$ac_ext <<_ACEOF
20417 /* end confdefs.h. */
20418 #include <$ac_header>
20419 _ACEOF
20420 if { (ac_try="$ac_cpp conftest.$ac_ext"
20421 case "(($ac_try" in
20422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20423 *) ac_try_echo=$ac_try;;
20424 esac
20425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20426 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20427 ac_status=$?
20428 grep -v '^ *+' conftest.er1 >conftest.err
20429 rm -f conftest.er1
20430 cat conftest.err >&5
20431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432 (exit $ac_status); } >/dev/null && {
20433 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20434 test ! -s conftest.err
20435 }; then
20436 ac_header_preproc=yes
20437 else
20438 echo "$as_me: failed program was:" >&5
20439 sed 's/^/| /' conftest.$ac_ext >&5
20440
20441 ac_header_preproc=no
20442 fi
20443
20444 rm -f conftest.err conftest.$ac_ext
20445 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20446 echo "${ECHO_T}$ac_header_preproc" >&6; }
20447
20448 # So? What about this header?
20449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20450 yes:no: )
20451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20455 ac_header_preproc=yes
20456 ;;
20457 no:yes:* )
20458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20461 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20462 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20464 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20465 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20468 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20470
20471 ;;
20472 esac
20473 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20476 echo $ECHO_N "(cached) $ECHO_C" >&6
20477 else
20478 eval "$as_ac_Header=\$ac_header_preproc"
20479 fi
20480 ac_res=`eval echo '${'$as_ac_Header'}'`
20481 { echo "$as_me:$LINENO: result: $ac_res" >&5
20482 echo "${ECHO_T}$ac_res" >&6; }
20483
20484 fi
20485 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20486 cat >>confdefs.h <<_ACEOF
20487 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20488 _ACEOF
20489
20490 fi
20491
20492 done
20493
20494 else
20495
20496 for ac_header in des.h
20497 do
20498 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20500 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20503 echo $ECHO_N "(cached) $ECHO_C" >&6
20504 fi
20505 ac_res=`eval echo '${'$as_ac_Header'}'`
20506 { echo "$as_me:$LINENO: result: $ac_res" >&5
20507 echo "${ECHO_T}$ac_res" >&6; }
20508 else
20509 # Is the header compilable?
20510 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20511 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20512 cat >conftest.$ac_ext <<_ACEOF
20513 /* confdefs.h. */
20514 _ACEOF
20515 cat confdefs.h >>conftest.$ac_ext
20516 cat >>conftest.$ac_ext <<_ACEOF
20517 /* end confdefs.h. */
20518 $ac_includes_default
20519 #include <$ac_header>
20520 _ACEOF
20521 rm -f conftest.$ac_objext
20522 if { (ac_try="$ac_compile"
20523 case "(($ac_try" in
20524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20525 *) ac_try_echo=$ac_try;;
20526 esac
20527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20528 (eval "$ac_compile") 2>conftest.er1
20529 ac_status=$?
20530 grep -v '^ *+' conftest.er1 >conftest.err
20531 rm -f conftest.er1
20532 cat conftest.err >&5
20533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20534 (exit $ac_status); } && {
20535 test -z "$ac_c_werror_flag" ||
20536 test ! -s conftest.err
20537 } && test -s conftest.$ac_objext; then
20538 ac_header_compiler=yes
20539 else
20540 echo "$as_me: failed program was:" >&5
20541 sed 's/^/| /' conftest.$ac_ext >&5
20542
20543 ac_header_compiler=no
20544 fi
20545
20546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20547 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20548 echo "${ECHO_T}$ac_header_compiler" >&6; }
20549
20550 # Is the header present?
20551 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20552 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20553 cat >conftest.$ac_ext <<_ACEOF
20554 /* confdefs.h. */
20555 _ACEOF
20556 cat confdefs.h >>conftest.$ac_ext
20557 cat >>conftest.$ac_ext <<_ACEOF
20558 /* end confdefs.h. */
20559 #include <$ac_header>
20560 _ACEOF
20561 if { (ac_try="$ac_cpp conftest.$ac_ext"
20562 case "(($ac_try" in
20563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20564 *) ac_try_echo=$ac_try;;
20565 esac
20566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20567 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20568 ac_status=$?
20569 grep -v '^ *+' conftest.er1 >conftest.err
20570 rm -f conftest.er1
20571 cat conftest.err >&5
20572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573 (exit $ac_status); } >/dev/null && {
20574 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20575 test ! -s conftest.err
20576 }; then
20577 ac_header_preproc=yes
20578 else
20579 echo "$as_me: failed program was:" >&5
20580 sed 's/^/| /' conftest.$ac_ext >&5
20581
20582 ac_header_preproc=no
20583 fi
20584
20585 rm -f conftest.err conftest.$ac_ext
20586 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20587 echo "${ECHO_T}$ac_header_preproc" >&6; }
20588
20589 # So? What about this header?
20590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20591 yes:no: )
20592 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20593 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20595 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20596 ac_header_preproc=yes
20597 ;;
20598 no:yes:* )
20599 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20600 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20601 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20602 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20603 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20604 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20605 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20606 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20609 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20610 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20611
20612 ;;
20613 esac
20614 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20617 echo $ECHO_N "(cached) $ECHO_C" >&6
20618 else
20619 eval "$as_ac_Header=\$ac_header_preproc"
20620 fi
20621 ac_res=`eval echo '${'$as_ac_Header'}'`
20622 { echo "$as_me:$LINENO: result: $ac_res" >&5
20623 echo "${ECHO_T}$ac_res" >&6; }
20624
20625 fi
20626 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20627 cat >>confdefs.h <<_ACEOF
20628 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20629 _ACEOF
20630
20631 else
20632
20633 for ac_header in kerberosIV/des.h
20634 do
20635 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20637 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20639 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20640 echo $ECHO_N "(cached) $ECHO_C" >&6
20641 fi
20642 ac_res=`eval echo '${'$as_ac_Header'}'`
20643 { echo "$as_me:$LINENO: result: $ac_res" >&5
20644 echo "${ECHO_T}$ac_res" >&6; }
20645 else
20646 # Is the header compilable?
20647 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20648 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20649 cat >conftest.$ac_ext <<_ACEOF
20650 /* confdefs.h. */
20651 _ACEOF
20652 cat confdefs.h >>conftest.$ac_ext
20653 cat >>conftest.$ac_ext <<_ACEOF
20654 /* end confdefs.h. */
20655 $ac_includes_default
20656 #include <$ac_header>
20657 _ACEOF
20658 rm -f conftest.$ac_objext
20659 if { (ac_try="$ac_compile"
20660 case "(($ac_try" in
20661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20662 *) ac_try_echo=$ac_try;;
20663 esac
20664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20665 (eval "$ac_compile") 2>conftest.er1
20666 ac_status=$?
20667 grep -v '^ *+' conftest.er1 >conftest.err
20668 rm -f conftest.er1
20669 cat conftest.err >&5
20670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671 (exit $ac_status); } && {
20672 test -z "$ac_c_werror_flag" ||
20673 test ! -s conftest.err
20674 } && test -s conftest.$ac_objext; then
20675 ac_header_compiler=yes
20676 else
20677 echo "$as_me: failed program was:" >&5
20678 sed 's/^/| /' conftest.$ac_ext >&5
20679
20680 ac_header_compiler=no
20681 fi
20682
20683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20684 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20685 echo "${ECHO_T}$ac_header_compiler" >&6; }
20686
20687 # Is the header present?
20688 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20689 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20690 cat >conftest.$ac_ext <<_ACEOF
20691 /* confdefs.h. */
20692 _ACEOF
20693 cat confdefs.h >>conftest.$ac_ext
20694 cat >>conftest.$ac_ext <<_ACEOF
20695 /* end confdefs.h. */
20696 #include <$ac_header>
20697 _ACEOF
20698 if { (ac_try="$ac_cpp conftest.$ac_ext"
20699 case "(($ac_try" in
20700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20701 *) ac_try_echo=$ac_try;;
20702 esac
20703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20705 ac_status=$?
20706 grep -v '^ *+' conftest.er1 >conftest.err
20707 rm -f conftest.er1
20708 cat conftest.err >&5
20709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710 (exit $ac_status); } >/dev/null && {
20711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20712 test ! -s conftest.err
20713 }; then
20714 ac_header_preproc=yes
20715 else
20716 echo "$as_me: failed program was:" >&5
20717 sed 's/^/| /' conftest.$ac_ext >&5
20718
20719 ac_header_preproc=no
20720 fi
20721
20722 rm -f conftest.err conftest.$ac_ext
20723 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20724 echo "${ECHO_T}$ac_header_preproc" >&6; }
20725
20726 # So? What about this header?
20727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20728 yes:no: )
20729 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20730 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20732 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20733 ac_header_preproc=yes
20734 ;;
20735 no:yes:* )
20736 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20737 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20738 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20739 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20740 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20741 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20742 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20743 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20745 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20746 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20747 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20748
20749 ;;
20750 esac
20751 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20754 echo $ECHO_N "(cached) $ECHO_C" >&6
20755 else
20756 eval "$as_ac_Header=\$ac_header_preproc"
20757 fi
20758 ac_res=`eval echo '${'$as_ac_Header'}'`
20759 { echo "$as_me:$LINENO: result: $ac_res" >&5
20760 echo "${ECHO_T}$ac_res" >&6; }
20761
20762 fi
20763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20764 cat >>confdefs.h <<_ACEOF
20765 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20766 _ACEOF
20767
20768 else
20769
20770 for ac_header in kerberos/des.h
20771 do
20772 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20774 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20777 echo $ECHO_N "(cached) $ECHO_C" >&6
20778 fi
20779 ac_res=`eval echo '${'$as_ac_Header'}'`
20780 { echo "$as_me:$LINENO: result: $ac_res" >&5
20781 echo "${ECHO_T}$ac_res" >&6; }
20782 else
20783 # Is the header compilable?
20784 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20785 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20786 cat >conftest.$ac_ext <<_ACEOF
20787 /* confdefs.h. */
20788 _ACEOF
20789 cat confdefs.h >>conftest.$ac_ext
20790 cat >>conftest.$ac_ext <<_ACEOF
20791 /* end confdefs.h. */
20792 $ac_includes_default
20793 #include <$ac_header>
20794 _ACEOF
20795 rm -f conftest.$ac_objext
20796 if { (ac_try="$ac_compile"
20797 case "(($ac_try" in
20798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20799 *) ac_try_echo=$ac_try;;
20800 esac
20801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20802 (eval "$ac_compile") 2>conftest.er1
20803 ac_status=$?
20804 grep -v '^ *+' conftest.er1 >conftest.err
20805 rm -f conftest.er1
20806 cat conftest.err >&5
20807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20808 (exit $ac_status); } && {
20809 test -z "$ac_c_werror_flag" ||
20810 test ! -s conftest.err
20811 } && test -s conftest.$ac_objext; then
20812 ac_header_compiler=yes
20813 else
20814 echo "$as_me: failed program was:" >&5
20815 sed 's/^/| /' conftest.$ac_ext >&5
20816
20817 ac_header_compiler=no
20818 fi
20819
20820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20821 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20822 echo "${ECHO_T}$ac_header_compiler" >&6; }
20823
20824 # Is the header present?
20825 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20826 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20827 cat >conftest.$ac_ext <<_ACEOF
20828 /* confdefs.h. */
20829 _ACEOF
20830 cat confdefs.h >>conftest.$ac_ext
20831 cat >>conftest.$ac_ext <<_ACEOF
20832 /* end confdefs.h. */
20833 #include <$ac_header>
20834 _ACEOF
20835 if { (ac_try="$ac_cpp conftest.$ac_ext"
20836 case "(($ac_try" in
20837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20838 *) ac_try_echo=$ac_try;;
20839 esac
20840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20842 ac_status=$?
20843 grep -v '^ *+' conftest.er1 >conftest.err
20844 rm -f conftest.er1
20845 cat conftest.err >&5
20846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20847 (exit $ac_status); } >/dev/null && {
20848 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20849 test ! -s conftest.err
20850 }; then
20851 ac_header_preproc=yes
20852 else
20853 echo "$as_me: failed program was:" >&5
20854 sed 's/^/| /' conftest.$ac_ext >&5
20855
20856 ac_header_preproc=no
20857 fi
20858
20859 rm -f conftest.err conftest.$ac_ext
20860 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20861 echo "${ECHO_T}$ac_header_preproc" >&6; }
20862
20863 # So? What about this header?
20864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20865 yes:no: )
20866 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20867 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20868 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20869 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20870 ac_header_preproc=yes
20871 ;;
20872 no:yes:* )
20873 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20874 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20875 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20876 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20877 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20878 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20879 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20880 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20882 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20883 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20884 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20885
20886 ;;
20887 esac
20888 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20890 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20891 echo $ECHO_N "(cached) $ECHO_C" >&6
20892 else
20893 eval "$as_ac_Header=\$ac_header_preproc"
20894 fi
20895 ac_res=`eval echo '${'$as_ac_Header'}'`
20896 { echo "$as_me:$LINENO: result: $ac_res" >&5
20897 echo "${ECHO_T}$ac_res" >&6; }
20898
20899 fi
20900 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20901 cat >>confdefs.h <<_ACEOF
20902 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20903 _ACEOF
20904
20905 fi
20906
20907 done
20908
20909 fi
20910
20911 done
20912
20913 fi
20914
20915 done
20916
20917
20918 for ac_header in krb.h
20919 do
20920 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20922 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20925 echo $ECHO_N "(cached) $ECHO_C" >&6
20926 fi
20927 ac_res=`eval echo '${'$as_ac_Header'}'`
20928 { echo "$as_me:$LINENO: result: $ac_res" >&5
20929 echo "${ECHO_T}$ac_res" >&6; }
20930 else
20931 # Is the header compilable?
20932 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20933 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20934 cat >conftest.$ac_ext <<_ACEOF
20935 /* confdefs.h. */
20936 _ACEOF
20937 cat confdefs.h >>conftest.$ac_ext
20938 cat >>conftest.$ac_ext <<_ACEOF
20939 /* end confdefs.h. */
20940 $ac_includes_default
20941 #include <$ac_header>
20942 _ACEOF
20943 rm -f conftest.$ac_objext
20944 if { (ac_try="$ac_compile"
20945 case "(($ac_try" in
20946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20947 *) ac_try_echo=$ac_try;;
20948 esac
20949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20950 (eval "$ac_compile") 2>conftest.er1
20951 ac_status=$?
20952 grep -v '^ *+' conftest.er1 >conftest.err
20953 rm -f conftest.er1
20954 cat conftest.err >&5
20955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956 (exit $ac_status); } && {
20957 test -z "$ac_c_werror_flag" ||
20958 test ! -s conftest.err
20959 } && test -s conftest.$ac_objext; then
20960 ac_header_compiler=yes
20961 else
20962 echo "$as_me: failed program was:" >&5
20963 sed 's/^/| /' conftest.$ac_ext >&5
20964
20965 ac_header_compiler=no
20966 fi
20967
20968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20969 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20970 echo "${ECHO_T}$ac_header_compiler" >&6; }
20971
20972 # Is the header present?
20973 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20974 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20975 cat >conftest.$ac_ext <<_ACEOF
20976 /* confdefs.h. */
20977 _ACEOF
20978 cat confdefs.h >>conftest.$ac_ext
20979 cat >>conftest.$ac_ext <<_ACEOF
20980 /* end confdefs.h. */
20981 #include <$ac_header>
20982 _ACEOF
20983 if { (ac_try="$ac_cpp conftest.$ac_ext"
20984 case "(($ac_try" in
20985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20986 *) ac_try_echo=$ac_try;;
20987 esac
20988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20990 ac_status=$?
20991 grep -v '^ *+' conftest.er1 >conftest.err
20992 rm -f conftest.er1
20993 cat conftest.err >&5
20994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995 (exit $ac_status); } >/dev/null && {
20996 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20997 test ! -s conftest.err
20998 }; then
20999 ac_header_preproc=yes
21000 else
21001 echo "$as_me: failed program was:" >&5
21002 sed 's/^/| /' conftest.$ac_ext >&5
21003
21004 ac_header_preproc=no
21005 fi
21006
21007 rm -f conftest.err conftest.$ac_ext
21008 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21009 echo "${ECHO_T}$ac_header_preproc" >&6; }
21010
21011 # So? What about this header?
21012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21013 yes:no: )
21014 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21015 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21017 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21018 ac_header_preproc=yes
21019 ;;
21020 no:yes:* )
21021 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21022 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21023 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21024 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21025 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21026 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21027 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21028 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21030 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21031 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21032 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21033
21034 ;;
21035 esac
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 else
21041 eval "$as_ac_Header=\$ac_header_preproc"
21042 fi
21043 ac_res=`eval echo '${'$as_ac_Header'}'`
21044 { echo "$as_me:$LINENO: result: $ac_res" >&5
21045 echo "${ECHO_T}$ac_res" >&6; }
21046
21047 fi
21048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21049 cat >>confdefs.h <<_ACEOF
21050 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21051 _ACEOF
21052
21053 else
21054
21055 for ac_header in kerberosIV/krb.h
21056 do
21057 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21059 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21062 echo $ECHO_N "(cached) $ECHO_C" >&6
21063 fi
21064 ac_res=`eval echo '${'$as_ac_Header'}'`
21065 { echo "$as_me:$LINENO: result: $ac_res" >&5
21066 echo "${ECHO_T}$ac_res" >&6; }
21067 else
21068 # Is the header compilable?
21069 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21070 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21071 cat >conftest.$ac_ext <<_ACEOF
21072 /* confdefs.h. */
21073 _ACEOF
21074 cat confdefs.h >>conftest.$ac_ext
21075 cat >>conftest.$ac_ext <<_ACEOF
21076 /* end confdefs.h. */
21077 $ac_includes_default
21078 #include <$ac_header>
21079 _ACEOF
21080 rm -f conftest.$ac_objext
21081 if { (ac_try="$ac_compile"
21082 case "(($ac_try" in
21083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21084 *) ac_try_echo=$ac_try;;
21085 esac
21086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21087 (eval "$ac_compile") 2>conftest.er1
21088 ac_status=$?
21089 grep -v '^ *+' conftest.er1 >conftest.err
21090 rm -f conftest.er1
21091 cat conftest.err >&5
21092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093 (exit $ac_status); } && {
21094 test -z "$ac_c_werror_flag" ||
21095 test ! -s conftest.err
21096 } && test -s conftest.$ac_objext; then
21097 ac_header_compiler=yes
21098 else
21099 echo "$as_me: failed program was:" >&5
21100 sed 's/^/| /' conftest.$ac_ext >&5
21101
21102 ac_header_compiler=no
21103 fi
21104
21105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21106 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21107 echo "${ECHO_T}$ac_header_compiler" >&6; }
21108
21109 # Is the header present?
21110 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21111 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21112 cat >conftest.$ac_ext <<_ACEOF
21113 /* confdefs.h. */
21114 _ACEOF
21115 cat confdefs.h >>conftest.$ac_ext
21116 cat >>conftest.$ac_ext <<_ACEOF
21117 /* end confdefs.h. */
21118 #include <$ac_header>
21119 _ACEOF
21120 if { (ac_try="$ac_cpp conftest.$ac_ext"
21121 case "(($ac_try" in
21122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21123 *) ac_try_echo=$ac_try;;
21124 esac
21125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21126 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21127 ac_status=$?
21128 grep -v '^ *+' conftest.er1 >conftest.err
21129 rm -f conftest.er1
21130 cat conftest.err >&5
21131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132 (exit $ac_status); } >/dev/null && {
21133 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21134 test ! -s conftest.err
21135 }; then
21136 ac_header_preproc=yes
21137 else
21138 echo "$as_me: failed program was:" >&5
21139 sed 's/^/| /' conftest.$ac_ext >&5
21140
21141 ac_header_preproc=no
21142 fi
21143
21144 rm -f conftest.err conftest.$ac_ext
21145 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21146 echo "${ECHO_T}$ac_header_preproc" >&6; }
21147
21148 # So? What about this header?
21149 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21150 yes:no: )
21151 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21152 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21154 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21155 ac_header_preproc=yes
21156 ;;
21157 no:yes:* )
21158 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21159 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21160 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21161 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21162 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21163 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21164 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21165 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21167 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21168 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21169 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21170
21171 ;;
21172 esac
21173 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21176 echo $ECHO_N "(cached) $ECHO_C" >&6
21177 else
21178 eval "$as_ac_Header=\$ac_header_preproc"
21179 fi
21180 ac_res=`eval echo '${'$as_ac_Header'}'`
21181 { echo "$as_me:$LINENO: result: $ac_res" >&5
21182 echo "${ECHO_T}$ac_res" >&6; }
21183
21184 fi
21185 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21186 cat >>confdefs.h <<_ACEOF
21187 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21188 _ACEOF
21189
21190 else
21191
21192 for ac_header in kerberos/krb.h
21193 do
21194 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21196 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21199 echo $ECHO_N "(cached) $ECHO_C" >&6
21200 fi
21201 ac_res=`eval echo '${'$as_ac_Header'}'`
21202 { echo "$as_me:$LINENO: result: $ac_res" >&5
21203 echo "${ECHO_T}$ac_res" >&6; }
21204 else
21205 # Is the header compilable?
21206 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21207 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21208 cat >conftest.$ac_ext <<_ACEOF
21209 /* confdefs.h. */
21210 _ACEOF
21211 cat confdefs.h >>conftest.$ac_ext
21212 cat >>conftest.$ac_ext <<_ACEOF
21213 /* end confdefs.h. */
21214 $ac_includes_default
21215 #include <$ac_header>
21216 _ACEOF
21217 rm -f conftest.$ac_objext
21218 if { (ac_try="$ac_compile"
21219 case "(($ac_try" in
21220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21221 *) ac_try_echo=$ac_try;;
21222 esac
21223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21224 (eval "$ac_compile") 2>conftest.er1
21225 ac_status=$?
21226 grep -v '^ *+' conftest.er1 >conftest.err
21227 rm -f conftest.er1
21228 cat conftest.err >&5
21229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230 (exit $ac_status); } && {
21231 test -z "$ac_c_werror_flag" ||
21232 test ! -s conftest.err
21233 } && test -s conftest.$ac_objext; then
21234 ac_header_compiler=yes
21235 else
21236 echo "$as_me: failed program was:" >&5
21237 sed 's/^/| /' conftest.$ac_ext >&5
21238
21239 ac_header_compiler=no
21240 fi
21241
21242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21243 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21244 echo "${ECHO_T}$ac_header_compiler" >&6; }
21245
21246 # Is the header present?
21247 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21248 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21249 cat >conftest.$ac_ext <<_ACEOF
21250 /* confdefs.h. */
21251 _ACEOF
21252 cat confdefs.h >>conftest.$ac_ext
21253 cat >>conftest.$ac_ext <<_ACEOF
21254 /* end confdefs.h. */
21255 #include <$ac_header>
21256 _ACEOF
21257 if { (ac_try="$ac_cpp conftest.$ac_ext"
21258 case "(($ac_try" in
21259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21260 *) ac_try_echo=$ac_try;;
21261 esac
21262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21263 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21264 ac_status=$?
21265 grep -v '^ *+' conftest.er1 >conftest.err
21266 rm -f conftest.er1
21267 cat conftest.err >&5
21268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21269 (exit $ac_status); } >/dev/null && {
21270 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21271 test ! -s conftest.err
21272 }; then
21273 ac_header_preproc=yes
21274 else
21275 echo "$as_me: failed program was:" >&5
21276 sed 's/^/| /' conftest.$ac_ext >&5
21277
21278 ac_header_preproc=no
21279 fi
21280
21281 rm -f conftest.err conftest.$ac_ext
21282 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21283 echo "${ECHO_T}$ac_header_preproc" >&6; }
21284
21285 # So? What about this header?
21286 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21287 yes:no: )
21288 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21289 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21291 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21292 ac_header_preproc=yes
21293 ;;
21294 no:yes:* )
21295 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21296 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21297 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21298 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21299 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21300 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21301 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21302 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21305 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21306 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21307
21308 ;;
21309 esac
21310 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21313 echo $ECHO_N "(cached) $ECHO_C" >&6
21314 else
21315 eval "$as_ac_Header=\$ac_header_preproc"
21316 fi
21317 ac_res=`eval echo '${'$as_ac_Header'}'`
21318 { echo "$as_me:$LINENO: result: $ac_res" >&5
21319 echo "${ECHO_T}$ac_res" >&6; }
21320
21321 fi
21322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21323 cat >>confdefs.h <<_ACEOF
21324 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21325 _ACEOF
21326
21327 fi
21328
21329 done
21330
21331 fi
21332
21333 done
21334
21335 fi
21336
21337 done
21338
21339 fi
21340
21341 for ac_header in com_err.h
21342 do
21343 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21345 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21348 echo $ECHO_N "(cached) $ECHO_C" >&6
21349 fi
21350 ac_res=`eval echo '${'$as_ac_Header'}'`
21351 { echo "$as_me:$LINENO: result: $ac_res" >&5
21352 echo "${ECHO_T}$ac_res" >&6; }
21353 else
21354 # Is the header compilable?
21355 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21356 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21357 cat >conftest.$ac_ext <<_ACEOF
21358 /* confdefs.h. */
21359 _ACEOF
21360 cat confdefs.h >>conftest.$ac_ext
21361 cat >>conftest.$ac_ext <<_ACEOF
21362 /* end confdefs.h. */
21363 $ac_includes_default
21364 #include <$ac_header>
21365 _ACEOF
21366 rm -f conftest.$ac_objext
21367 if { (ac_try="$ac_compile"
21368 case "(($ac_try" in
21369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21370 *) ac_try_echo=$ac_try;;
21371 esac
21372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21373 (eval "$ac_compile") 2>conftest.er1
21374 ac_status=$?
21375 grep -v '^ *+' conftest.er1 >conftest.err
21376 rm -f conftest.er1
21377 cat conftest.err >&5
21378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379 (exit $ac_status); } && {
21380 test -z "$ac_c_werror_flag" ||
21381 test ! -s conftest.err
21382 } && test -s conftest.$ac_objext; then
21383 ac_header_compiler=yes
21384 else
21385 echo "$as_me: failed program was:" >&5
21386 sed 's/^/| /' conftest.$ac_ext >&5
21387
21388 ac_header_compiler=no
21389 fi
21390
21391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21392 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21393 echo "${ECHO_T}$ac_header_compiler" >&6; }
21394
21395 # Is the header present?
21396 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21397 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21398 cat >conftest.$ac_ext <<_ACEOF
21399 /* confdefs.h. */
21400 _ACEOF
21401 cat confdefs.h >>conftest.$ac_ext
21402 cat >>conftest.$ac_ext <<_ACEOF
21403 /* end confdefs.h. */
21404 #include <$ac_header>
21405 _ACEOF
21406 if { (ac_try="$ac_cpp conftest.$ac_ext"
21407 case "(($ac_try" in
21408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21409 *) ac_try_echo=$ac_try;;
21410 esac
21411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21412 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21413 ac_status=$?
21414 grep -v '^ *+' conftest.er1 >conftest.err
21415 rm -f conftest.er1
21416 cat conftest.err >&5
21417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21418 (exit $ac_status); } >/dev/null && {
21419 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21420 test ! -s conftest.err
21421 }; then
21422 ac_header_preproc=yes
21423 else
21424 echo "$as_me: failed program was:" >&5
21425 sed 's/^/| /' conftest.$ac_ext >&5
21426
21427 ac_header_preproc=no
21428 fi
21429
21430 rm -f conftest.err conftest.$ac_ext
21431 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21432 echo "${ECHO_T}$ac_header_preproc" >&6; }
21433
21434 # So? What about this header?
21435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21436 yes:no: )
21437 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21438 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21440 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21441 ac_header_preproc=yes
21442 ;;
21443 no:yes:* )
21444 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21445 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21446 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21447 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21448 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21449 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21450 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21451 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21453 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21454 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21455 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21456
21457 ;;
21458 esac
21459 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21462 echo $ECHO_N "(cached) $ECHO_C" >&6
21463 else
21464 eval "$as_ac_Header=\$ac_header_preproc"
21465 fi
21466 ac_res=`eval echo '${'$as_ac_Header'}'`
21467 { echo "$as_me:$LINENO: result: $ac_res" >&5
21468 echo "${ECHO_T}$ac_res" >&6; }
21469
21470 fi
21471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21472 cat >>confdefs.h <<_ACEOF
21473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21474 _ACEOF
21475
21476 fi
21477
21478 done
21479
21480 fi
21481
21482 # Solaris requires -lintl if you want strerror (which calls dgettext)
21483 # to return localized messages.
21484
21485 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21486 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21487 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21488 echo $ECHO_N "(cached) $ECHO_C" >&6
21489 else
21490 ac_check_lib_save_LIBS=$LIBS
21491 LIBS="-lintl $LIBS"
21492 cat >conftest.$ac_ext <<_ACEOF
21493 /* confdefs.h. */
21494 _ACEOF
21495 cat confdefs.h >>conftest.$ac_ext
21496 cat >>conftest.$ac_ext <<_ACEOF
21497 /* end confdefs.h. */
21498
21499 /* Override any GCC internal prototype to avoid an error.
21500 Use char because int might match the return type of a GCC
21501 builtin and then its argument prototype would still apply. */
21502 #ifdef __cplusplus
21503 extern "C"
21504 #endif
21505 char dgettext ();
21506 int
21507 main ()
21508 {
21509 return dgettext ();
21510 ;
21511 return 0;
21512 }
21513 _ACEOF
21514 rm -f conftest.$ac_objext conftest$ac_exeext
21515 if { (ac_try="$ac_link"
21516 case "(($ac_try" in
21517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21518 *) ac_try_echo=$ac_try;;
21519 esac
21520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21521 (eval "$ac_link") 2>conftest.er1
21522 ac_status=$?
21523 grep -v '^ *+' conftest.er1 >conftest.err
21524 rm -f conftest.er1
21525 cat conftest.err >&5
21526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527 (exit $ac_status); } && {
21528 test -z "$ac_c_werror_flag" ||
21529 test ! -s conftest.err
21530 } && test -s conftest$ac_exeext &&
21531 $as_test_x conftest$ac_exeext; then
21532 ac_cv_lib_intl_dgettext=yes
21533 else
21534 echo "$as_me: failed program was:" >&5
21535 sed 's/^/| /' conftest.$ac_ext >&5
21536
21537 ac_cv_lib_intl_dgettext=no
21538 fi
21539
21540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21541 conftest$ac_exeext conftest.$ac_ext
21542 LIBS=$ac_check_lib_save_LIBS
21543 fi
21544 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21545 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21546 if test $ac_cv_lib_intl_dgettext = yes; then
21547 cat >>confdefs.h <<_ACEOF
21548 #define HAVE_LIBINTL 1
21549 _ACEOF
21550
21551 LIBS="-lintl $LIBS"
21552
21553 fi
21554
21555
21556 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
21557 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
21558 if test "${emacs_cv_localtime_cache+set}" = set; then
21559 echo $ECHO_N "(cached) $ECHO_C" >&6
21560 else
21561 if test x$ac_cv_func_tzset = xyes; then
21562 if test "$cross_compiling" = yes; then
21563 # If we have tzset, assume the worst when cross-compiling.
21564 emacs_cv_localtime_cache=yes
21565 else
21566 cat >conftest.$ac_ext <<_ACEOF
21567 /* confdefs.h. */
21568 _ACEOF
21569 cat confdefs.h >>conftest.$ac_ext
21570 cat >>conftest.$ac_ext <<_ACEOF
21571 /* end confdefs.h. */
21572 #include <time.h>
21573 extern char **environ;
21574 unset_TZ ()
21575 {
21576 char **from, **to;
21577 for (to = from = environ; (*to = *from); from++)
21578 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21579 to++;
21580 }
21581 char TZ_GMT0[] = "TZ=GMT0";
21582 char TZ_PST8[] = "TZ=PST8";
21583 main()
21584 {
21585 time_t now = time ((time_t *) 0);
21586 int hour_GMT0, hour_unset;
21587 if (putenv (TZ_GMT0) != 0)
21588 exit (1);
21589 hour_GMT0 = localtime (&now)->tm_hour;
21590 unset_TZ ();
21591 hour_unset = localtime (&now)->tm_hour;
21592 if (putenv (TZ_PST8) != 0)
21593 exit (1);
21594 if (localtime (&now)->tm_hour == hour_GMT0)
21595 exit (1);
21596 unset_TZ ();
21597 if (localtime (&now)->tm_hour != hour_unset)
21598 exit (1);
21599 exit (0);
21600 }
21601 _ACEOF
21602 rm -f conftest$ac_exeext
21603 if { (ac_try="$ac_link"
21604 case "(($ac_try" in
21605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21606 *) ac_try_echo=$ac_try;;
21607 esac
21608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21609 (eval "$ac_link") 2>&5
21610 ac_status=$?
21611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21612 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21613 { (case "(($ac_try" in
21614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21615 *) ac_try_echo=$ac_try;;
21616 esac
21617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21618 (eval "$ac_try") 2>&5
21619 ac_status=$?
21620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621 (exit $ac_status); }; }; then
21622 emacs_cv_localtime_cache=no
21623 else
21624 echo "$as_me: program exited with status $ac_status" >&5
21625 echo "$as_me: failed program was:" >&5
21626 sed 's/^/| /' conftest.$ac_ext >&5
21627
21628 ( exit $ac_status )
21629 emacs_cv_localtime_cache=yes
21630 fi
21631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21632 fi
21633
21634
21635 else
21636 # If we lack tzset, report that localtime does not cache TZ,
21637 # since we can't invalidate the cache if we don't have tzset.
21638 emacs_cv_localtime_cache=no
21639 fi
21640 fi
21641 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
21642 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21643 if test $emacs_cv_localtime_cache = yes; then
21644
21645 cat >>confdefs.h <<\_ACEOF
21646 #define LOCALTIME_CACHE 1
21647 _ACEOF
21648
21649 fi
21650
21651 if test "x$HAVE_TIMEVAL" = xyes; then
21652
21653 for ac_func in gettimeofday
21654 do
21655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21656 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21658 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21659 echo $ECHO_N "(cached) $ECHO_C" >&6
21660 else
21661 cat >conftest.$ac_ext <<_ACEOF
21662 /* confdefs.h. */
21663 _ACEOF
21664 cat confdefs.h >>conftest.$ac_ext
21665 cat >>conftest.$ac_ext <<_ACEOF
21666 /* end confdefs.h. */
21667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21669 #define $ac_func innocuous_$ac_func
21670
21671 /* System header to define __stub macros and hopefully few prototypes,
21672 which can conflict with char $ac_func (); below.
21673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21674 <limits.h> exists even on freestanding compilers. */
21675
21676 #ifdef __STDC__
21677 # include <limits.h>
21678 #else
21679 # include <assert.h>
21680 #endif
21681
21682 #undef $ac_func
21683
21684 /* Override any GCC internal prototype to avoid an error.
21685 Use char because int might match the return type of a GCC
21686 builtin and then its argument prototype would still apply. */
21687 #ifdef __cplusplus
21688 extern "C"
21689 #endif
21690 char $ac_func ();
21691 /* The GNU C library defines this for functions which it implements
21692 to always fail with ENOSYS. Some functions are actually named
21693 something starting with __ and the normal name is an alias. */
21694 #if defined __stub_$ac_func || defined __stub___$ac_func
21695 choke me
21696 #endif
21697
21698 int
21699 main ()
21700 {
21701 return $ac_func ();
21702 ;
21703 return 0;
21704 }
21705 _ACEOF
21706 rm -f conftest.$ac_objext conftest$ac_exeext
21707 if { (ac_try="$ac_link"
21708 case "(($ac_try" in
21709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21710 *) ac_try_echo=$ac_try;;
21711 esac
21712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21713 (eval "$ac_link") 2>conftest.er1
21714 ac_status=$?
21715 grep -v '^ *+' conftest.er1 >conftest.err
21716 rm -f conftest.er1
21717 cat conftest.err >&5
21718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21719 (exit $ac_status); } && {
21720 test -z "$ac_c_werror_flag" ||
21721 test ! -s conftest.err
21722 } && test -s conftest$ac_exeext &&
21723 $as_test_x conftest$ac_exeext; then
21724 eval "$as_ac_var=yes"
21725 else
21726 echo "$as_me: failed program was:" >&5
21727 sed 's/^/| /' conftest.$ac_ext >&5
21728
21729 eval "$as_ac_var=no"
21730 fi
21731
21732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21733 conftest$ac_exeext conftest.$ac_ext
21734 fi
21735 ac_res=`eval echo '${'$as_ac_var'}'`
21736 { echo "$as_me:$LINENO: result: $ac_res" >&5
21737 echo "${ECHO_T}$ac_res" >&6; }
21738 if test `eval echo '${'$as_ac_var'}'` = yes; then
21739 cat >>confdefs.h <<_ACEOF
21740 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21741 _ACEOF
21742
21743 fi
21744 done
21745
21746 if test $ac_cv_func_gettimeofday = yes; then
21747 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
21748 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
21749 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21750 echo $ECHO_N "(cached) $ECHO_C" >&6
21751 else
21752 cat >conftest.$ac_ext <<_ACEOF
21753 /* confdefs.h. */
21754 _ACEOF
21755 cat confdefs.h >>conftest.$ac_ext
21756 cat >>conftest.$ac_ext <<_ACEOF
21757 /* end confdefs.h. */
21758
21759 #ifdef TIME_WITH_SYS_TIME
21760 #include <sys/time.h>
21761 #include <time.h>
21762 #else
21763 #ifdef HAVE_SYS_TIME_H
21764 #include <sys/time.h>
21765 #else
21766 #include <time.h>
21767 #endif
21768 #endif
21769 int
21770 main ()
21771 {
21772 struct timeval time;
21773 gettimeofday (&time, 0);
21774 ;
21775 return 0;
21776 }
21777 _ACEOF
21778 rm -f conftest.$ac_objext
21779 if { (ac_try="$ac_compile"
21780 case "(($ac_try" in
21781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21782 *) ac_try_echo=$ac_try;;
21783 esac
21784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21785 (eval "$ac_compile") 2>conftest.er1
21786 ac_status=$?
21787 grep -v '^ *+' conftest.er1 >conftest.err
21788 rm -f conftest.er1
21789 cat conftest.err >&5
21790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791 (exit $ac_status); } && {
21792 test -z "$ac_c_werror_flag" ||
21793 test ! -s conftest.err
21794 } && test -s conftest.$ac_objext; then
21795 emacs_cv_gettimeofday_two_arguments=yes
21796 else
21797 echo "$as_me: failed program was:" >&5
21798 sed 's/^/| /' conftest.$ac_ext >&5
21799
21800 emacs_cv_gettimeofday_two_arguments=no
21801 fi
21802
21803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21804 fi
21805 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21806 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21807 if test $emacs_cv_gettimeofday_two_arguments = no; then
21808
21809 cat >>confdefs.h <<\_ACEOF
21810 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21811 _ACEOF
21812
21813 fi
21814 fi
21815 fi
21816
21817 ok_so_far=yes
21818 { echo "$as_me:$LINENO: checking for socket" >&5
21819 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
21820 if test "${ac_cv_func_socket+set}" = set; then
21821 echo $ECHO_N "(cached) $ECHO_C" >&6
21822 else
21823 cat >conftest.$ac_ext <<_ACEOF
21824 /* confdefs.h. */
21825 _ACEOF
21826 cat confdefs.h >>conftest.$ac_ext
21827 cat >>conftest.$ac_ext <<_ACEOF
21828 /* end confdefs.h. */
21829 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21831 #define socket innocuous_socket
21832
21833 /* System header to define __stub macros and hopefully few prototypes,
21834 which can conflict with char socket (); below.
21835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21836 <limits.h> exists even on freestanding compilers. */
21837
21838 #ifdef __STDC__
21839 # include <limits.h>
21840 #else
21841 # include <assert.h>
21842 #endif
21843
21844 #undef socket
21845
21846 /* Override any GCC internal prototype to avoid an error.
21847 Use char because int might match the return type of a GCC
21848 builtin and then its argument prototype would still apply. */
21849 #ifdef __cplusplus
21850 extern "C"
21851 #endif
21852 char socket ();
21853 /* The GNU C library defines this for functions which it implements
21854 to always fail with ENOSYS. Some functions are actually named
21855 something starting with __ and the normal name is an alias. */
21856 #if defined __stub_socket || defined __stub___socket
21857 choke me
21858 #endif
21859
21860 int
21861 main ()
21862 {
21863 return socket ();
21864 ;
21865 return 0;
21866 }
21867 _ACEOF
21868 rm -f conftest.$ac_objext conftest$ac_exeext
21869 if { (ac_try="$ac_link"
21870 case "(($ac_try" in
21871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21872 *) ac_try_echo=$ac_try;;
21873 esac
21874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21875 (eval "$ac_link") 2>conftest.er1
21876 ac_status=$?
21877 grep -v '^ *+' conftest.er1 >conftest.err
21878 rm -f conftest.er1
21879 cat conftest.err >&5
21880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881 (exit $ac_status); } && {
21882 test -z "$ac_c_werror_flag" ||
21883 test ! -s conftest.err
21884 } && test -s conftest$ac_exeext &&
21885 $as_test_x conftest$ac_exeext; then
21886 ac_cv_func_socket=yes
21887 else
21888 echo "$as_me: failed program was:" >&5
21889 sed 's/^/| /' conftest.$ac_ext >&5
21890
21891 ac_cv_func_socket=no
21892 fi
21893
21894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21895 conftest$ac_exeext conftest.$ac_ext
21896 fi
21897 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21898 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21899 if test $ac_cv_func_socket = yes; then
21900 :
21901 else
21902 ok_so_far=no
21903 fi
21904
21905 if test $ok_so_far = yes; then
21906 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21907 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21908 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21909 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21910 echo $ECHO_N "(cached) $ECHO_C" >&6
21911 fi
21912 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21913 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21914 else
21915 # Is the header compilable?
21916 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21917 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
21918 cat >conftest.$ac_ext <<_ACEOF
21919 /* confdefs.h. */
21920 _ACEOF
21921 cat confdefs.h >>conftest.$ac_ext
21922 cat >>conftest.$ac_ext <<_ACEOF
21923 /* end confdefs.h. */
21924 $ac_includes_default
21925 #include <netinet/in.h>
21926 _ACEOF
21927 rm -f conftest.$ac_objext
21928 if { (ac_try="$ac_compile"
21929 case "(($ac_try" in
21930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21931 *) ac_try_echo=$ac_try;;
21932 esac
21933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21934 (eval "$ac_compile") 2>conftest.er1
21935 ac_status=$?
21936 grep -v '^ *+' conftest.er1 >conftest.err
21937 rm -f conftest.er1
21938 cat conftest.err >&5
21939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21940 (exit $ac_status); } && {
21941 test -z "$ac_c_werror_flag" ||
21942 test ! -s conftest.err
21943 } && test -s conftest.$ac_objext; then
21944 ac_header_compiler=yes
21945 else
21946 echo "$as_me: failed program was:" >&5
21947 sed 's/^/| /' conftest.$ac_ext >&5
21948
21949 ac_header_compiler=no
21950 fi
21951
21952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21953 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21954 echo "${ECHO_T}$ac_header_compiler" >&6; }
21955
21956 # Is the header present?
21957 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21958 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
21959 cat >conftest.$ac_ext <<_ACEOF
21960 /* confdefs.h. */
21961 _ACEOF
21962 cat confdefs.h >>conftest.$ac_ext
21963 cat >>conftest.$ac_ext <<_ACEOF
21964 /* end confdefs.h. */
21965 #include <netinet/in.h>
21966 _ACEOF
21967 if { (ac_try="$ac_cpp conftest.$ac_ext"
21968 case "(($ac_try" in
21969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21970 *) ac_try_echo=$ac_try;;
21971 esac
21972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21974 ac_status=$?
21975 grep -v '^ *+' conftest.er1 >conftest.err
21976 rm -f conftest.er1
21977 cat conftest.err >&5
21978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979 (exit $ac_status); } >/dev/null && {
21980 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21981 test ! -s conftest.err
21982 }; then
21983 ac_header_preproc=yes
21984 else
21985 echo "$as_me: failed program was:" >&5
21986 sed 's/^/| /' conftest.$ac_ext >&5
21987
21988 ac_header_preproc=no
21989 fi
21990
21991 rm -f conftest.err conftest.$ac_ext
21992 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21993 echo "${ECHO_T}$ac_header_preproc" >&6; }
21994
21995 # So? What about this header?
21996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21997 yes:no: )
21998 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21999 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22000 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22001 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22002 ac_header_preproc=yes
22003 ;;
22004 no:yes:* )
22005 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22006 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22007 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22008 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22009 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22010 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22011 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22012 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22013 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22014 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22015 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22016 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22017
22018 ;;
22019 esac
22020 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22021 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22022 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22023 echo $ECHO_N "(cached) $ECHO_C" >&6
22024 else
22025 ac_cv_header_netinet_in_h=$ac_header_preproc
22026 fi
22027 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22028 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22029
22030 fi
22031 if test $ac_cv_header_netinet_in_h = yes; then
22032 :
22033 else
22034 ok_so_far=no
22035 fi
22036
22037
22038 fi
22039 if test $ok_so_far = yes; then
22040 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22041 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22042 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22043 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22044 echo $ECHO_N "(cached) $ECHO_C" >&6
22045 fi
22046 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22047 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22048 else
22049 # Is the header compilable?
22050 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22051 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22052 cat >conftest.$ac_ext <<_ACEOF
22053 /* confdefs.h. */
22054 _ACEOF
22055 cat confdefs.h >>conftest.$ac_ext
22056 cat >>conftest.$ac_ext <<_ACEOF
22057 /* end confdefs.h. */
22058 $ac_includes_default
22059 #include <arpa/inet.h>
22060 _ACEOF
22061 rm -f conftest.$ac_objext
22062 if { (ac_try="$ac_compile"
22063 case "(($ac_try" in
22064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22065 *) ac_try_echo=$ac_try;;
22066 esac
22067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22068 (eval "$ac_compile") 2>conftest.er1
22069 ac_status=$?
22070 grep -v '^ *+' conftest.er1 >conftest.err
22071 rm -f conftest.er1
22072 cat conftest.err >&5
22073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22074 (exit $ac_status); } && {
22075 test -z "$ac_c_werror_flag" ||
22076 test ! -s conftest.err
22077 } && test -s conftest.$ac_objext; then
22078 ac_header_compiler=yes
22079 else
22080 echo "$as_me: failed program was:" >&5
22081 sed 's/^/| /' conftest.$ac_ext >&5
22082
22083 ac_header_compiler=no
22084 fi
22085
22086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22087 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22088 echo "${ECHO_T}$ac_header_compiler" >&6; }
22089
22090 # Is the header present?
22091 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22092 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22093 cat >conftest.$ac_ext <<_ACEOF
22094 /* confdefs.h. */
22095 _ACEOF
22096 cat confdefs.h >>conftest.$ac_ext
22097 cat >>conftest.$ac_ext <<_ACEOF
22098 /* end confdefs.h. */
22099 #include <arpa/inet.h>
22100 _ACEOF
22101 if { (ac_try="$ac_cpp conftest.$ac_ext"
22102 case "(($ac_try" in
22103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22104 *) ac_try_echo=$ac_try;;
22105 esac
22106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22107 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22108 ac_status=$?
22109 grep -v '^ *+' conftest.er1 >conftest.err
22110 rm -f conftest.er1
22111 cat conftest.err >&5
22112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22113 (exit $ac_status); } >/dev/null && {
22114 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22115 test ! -s conftest.err
22116 }; then
22117 ac_header_preproc=yes
22118 else
22119 echo "$as_me: failed program was:" >&5
22120 sed 's/^/| /' conftest.$ac_ext >&5
22121
22122 ac_header_preproc=no
22123 fi
22124
22125 rm -f conftest.err conftest.$ac_ext
22126 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22127 echo "${ECHO_T}$ac_header_preproc" >&6; }
22128
22129 # So? What about this header?
22130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22131 yes:no: )
22132 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22133 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22134 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22135 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22136 ac_header_preproc=yes
22137 ;;
22138 no:yes:* )
22139 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22140 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22141 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22142 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22143 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22144 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22145 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22146 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22147 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22148 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22149 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22150 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22151
22152 ;;
22153 esac
22154 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22155 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22156 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22157 echo $ECHO_N "(cached) $ECHO_C" >&6
22158 else
22159 ac_cv_header_arpa_inet_h=$ac_header_preproc
22160 fi
22161 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22162 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22163
22164 fi
22165 if test $ac_cv_header_arpa_inet_h = yes; then
22166 :
22167 else
22168 ok_so_far=no
22169 fi
22170
22171
22172 fi
22173 if test $ok_so_far = yes; then
22174
22175 cat >>confdefs.h <<\_ACEOF
22176 #define HAVE_INET_SOCKETS 1
22177 _ACEOF
22178
22179 fi
22180
22181
22182 for ac_header in sys/ioctl.h
22183 do
22184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22186 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22189 echo $ECHO_N "(cached) $ECHO_C" >&6
22190 fi
22191 ac_res=`eval echo '${'$as_ac_Header'}'`
22192 { echo "$as_me:$LINENO: result: $ac_res" >&5
22193 echo "${ECHO_T}$ac_res" >&6; }
22194 else
22195 # Is the header compilable?
22196 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22197 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22198 cat >conftest.$ac_ext <<_ACEOF
22199 /* confdefs.h. */
22200 _ACEOF
22201 cat confdefs.h >>conftest.$ac_ext
22202 cat >>conftest.$ac_ext <<_ACEOF
22203 /* end confdefs.h. */
22204 $ac_includes_default
22205 #include <$ac_header>
22206 _ACEOF
22207 rm -f conftest.$ac_objext
22208 if { (ac_try="$ac_compile"
22209 case "(($ac_try" in
22210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22211 *) ac_try_echo=$ac_try;;
22212 esac
22213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22214 (eval "$ac_compile") 2>conftest.er1
22215 ac_status=$?
22216 grep -v '^ *+' conftest.er1 >conftest.err
22217 rm -f conftest.er1
22218 cat conftest.err >&5
22219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22220 (exit $ac_status); } && {
22221 test -z "$ac_c_werror_flag" ||
22222 test ! -s conftest.err
22223 } && test -s conftest.$ac_objext; then
22224 ac_header_compiler=yes
22225 else
22226 echo "$as_me: failed program was:" >&5
22227 sed 's/^/| /' conftest.$ac_ext >&5
22228
22229 ac_header_compiler=no
22230 fi
22231
22232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22233 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22234 echo "${ECHO_T}$ac_header_compiler" >&6; }
22235
22236 # Is the header present?
22237 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22238 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22239 cat >conftest.$ac_ext <<_ACEOF
22240 /* confdefs.h. */
22241 _ACEOF
22242 cat confdefs.h >>conftest.$ac_ext
22243 cat >>conftest.$ac_ext <<_ACEOF
22244 /* end confdefs.h. */
22245 #include <$ac_header>
22246 _ACEOF
22247 if { (ac_try="$ac_cpp conftest.$ac_ext"
22248 case "(($ac_try" in
22249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22250 *) ac_try_echo=$ac_try;;
22251 esac
22252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22253 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22254 ac_status=$?
22255 grep -v '^ *+' conftest.er1 >conftest.err
22256 rm -f conftest.er1
22257 cat conftest.err >&5
22258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22259 (exit $ac_status); } >/dev/null && {
22260 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22261 test ! -s conftest.err
22262 }; then
22263 ac_header_preproc=yes
22264 else
22265 echo "$as_me: failed program was:" >&5
22266 sed 's/^/| /' conftest.$ac_ext >&5
22267
22268 ac_header_preproc=no
22269 fi
22270
22271 rm -f conftest.err conftest.$ac_ext
22272 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22273 echo "${ECHO_T}$ac_header_preproc" >&6; }
22274
22275 # So? What about this header?
22276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22277 yes:no: )
22278 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22279 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22281 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22282 ac_header_preproc=yes
22283 ;;
22284 no:yes:* )
22285 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22286 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22287 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22288 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22289 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22290 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22291 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22292 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22295 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22296 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22297
22298 ;;
22299 esac
22300 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22303 echo $ECHO_N "(cached) $ECHO_C" >&6
22304 else
22305 eval "$as_ac_Header=\$ac_header_preproc"
22306 fi
22307 ac_res=`eval echo '${'$as_ac_Header'}'`
22308 { echo "$as_me:$LINENO: result: $ac_res" >&5
22309 echo "${ECHO_T}$ac_res" >&6; }
22310
22311 fi
22312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22313 cat >>confdefs.h <<_ACEOF
22314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22315 _ACEOF
22316
22317 fi
22318
22319 done
22320
22321
22322 if test -f /usr/lpp/X11/bin/smt.exp; then
22323
22324 cat >>confdefs.h <<\_ACEOF
22325 #define HAVE_AIX_SMT_EXP 1
22326 _ACEOF
22327
22328 fi
22329
22330 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22331 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22332 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22333 { echo "$as_me:$LINENO: result: yes" >&5
22334 echo "${ECHO_T}yes" >&6; }
22335
22336 cat >>confdefs.h <<\_ACEOF
22337 #define HAVE_DEV_PTMX 1
22338 _ACEOF
22339
22340 else
22341 { echo "$as_me:$LINENO: result: no" >&5
22342 echo "${ECHO_T}no" >&6; }
22343 fi
22344
22345 { echo "$as_me:$LINENO: checking for pid_t" >&5
22346 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22347 if test "${ac_cv_type_pid_t+set}" = set; then
22348 echo $ECHO_N "(cached) $ECHO_C" >&6
22349 else
22350 cat >conftest.$ac_ext <<_ACEOF
22351 /* confdefs.h. */
22352 _ACEOF
22353 cat confdefs.h >>conftest.$ac_ext
22354 cat >>conftest.$ac_ext <<_ACEOF
22355 /* end confdefs.h. */
22356 $ac_includes_default
22357 typedef pid_t ac__type_new_;
22358 int
22359 main ()
22360 {
22361 if ((ac__type_new_ *) 0)
22362 return 0;
22363 if (sizeof (ac__type_new_))
22364 return 0;
22365 ;
22366 return 0;
22367 }
22368 _ACEOF
22369 rm -f conftest.$ac_objext
22370 if { (ac_try="$ac_compile"
22371 case "(($ac_try" in
22372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22373 *) ac_try_echo=$ac_try;;
22374 esac
22375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22376 (eval "$ac_compile") 2>conftest.er1
22377 ac_status=$?
22378 grep -v '^ *+' conftest.er1 >conftest.err
22379 rm -f conftest.er1
22380 cat conftest.err >&5
22381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382 (exit $ac_status); } && {
22383 test -z "$ac_c_werror_flag" ||
22384 test ! -s conftest.err
22385 } && test -s conftest.$ac_objext; then
22386 ac_cv_type_pid_t=yes
22387 else
22388 echo "$as_me: failed program was:" >&5
22389 sed 's/^/| /' conftest.$ac_ext >&5
22390
22391 ac_cv_type_pid_t=no
22392 fi
22393
22394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22395 fi
22396 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22397 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22398 if test $ac_cv_type_pid_t = yes; then
22399 :
22400 else
22401
22402 cat >>confdefs.h <<_ACEOF
22403 #define pid_t int
22404 _ACEOF
22405
22406 fi
22407
22408
22409 for ac_header in vfork.h
22410 do
22411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22413 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22416 echo $ECHO_N "(cached) $ECHO_C" >&6
22417 fi
22418 ac_res=`eval echo '${'$as_ac_Header'}'`
22419 { echo "$as_me:$LINENO: result: $ac_res" >&5
22420 echo "${ECHO_T}$ac_res" >&6; }
22421 else
22422 # Is the header compilable?
22423 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22424 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22425 cat >conftest.$ac_ext <<_ACEOF
22426 /* confdefs.h. */
22427 _ACEOF
22428 cat confdefs.h >>conftest.$ac_ext
22429 cat >>conftest.$ac_ext <<_ACEOF
22430 /* end confdefs.h. */
22431 $ac_includes_default
22432 #include <$ac_header>
22433 _ACEOF
22434 rm -f conftest.$ac_objext
22435 if { (ac_try="$ac_compile"
22436 case "(($ac_try" in
22437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22438 *) ac_try_echo=$ac_try;;
22439 esac
22440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22441 (eval "$ac_compile") 2>conftest.er1
22442 ac_status=$?
22443 grep -v '^ *+' conftest.er1 >conftest.err
22444 rm -f conftest.er1
22445 cat conftest.err >&5
22446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447 (exit $ac_status); } && {
22448 test -z "$ac_c_werror_flag" ||
22449 test ! -s conftest.err
22450 } && test -s conftest.$ac_objext; then
22451 ac_header_compiler=yes
22452 else
22453 echo "$as_me: failed program was:" >&5
22454 sed 's/^/| /' conftest.$ac_ext >&5
22455
22456 ac_header_compiler=no
22457 fi
22458
22459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22460 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22461 echo "${ECHO_T}$ac_header_compiler" >&6; }
22462
22463 # Is the header present?
22464 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22465 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22466 cat >conftest.$ac_ext <<_ACEOF
22467 /* confdefs.h. */
22468 _ACEOF
22469 cat confdefs.h >>conftest.$ac_ext
22470 cat >>conftest.$ac_ext <<_ACEOF
22471 /* end confdefs.h. */
22472 #include <$ac_header>
22473 _ACEOF
22474 if { (ac_try="$ac_cpp conftest.$ac_ext"
22475 case "(($ac_try" in
22476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22477 *) ac_try_echo=$ac_try;;
22478 esac
22479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22481 ac_status=$?
22482 grep -v '^ *+' conftest.er1 >conftest.err
22483 rm -f conftest.er1
22484 cat conftest.err >&5
22485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22486 (exit $ac_status); } >/dev/null && {
22487 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22488 test ! -s conftest.err
22489 }; then
22490 ac_header_preproc=yes
22491 else
22492 echo "$as_me: failed program was:" >&5
22493 sed 's/^/| /' conftest.$ac_ext >&5
22494
22495 ac_header_preproc=no
22496 fi
22497
22498 rm -f conftest.err conftest.$ac_ext
22499 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22500 echo "${ECHO_T}$ac_header_preproc" >&6; }
22501
22502 # So? What about this header?
22503 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22504 yes:no: )
22505 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22506 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22508 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22509 ac_header_preproc=yes
22510 ;;
22511 no:yes:* )
22512 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22513 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22514 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22515 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22516 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22517 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22518 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22519 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22521 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22522 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22523 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22524
22525 ;;
22526 esac
22527 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22529 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22530 echo $ECHO_N "(cached) $ECHO_C" >&6
22531 else
22532 eval "$as_ac_Header=\$ac_header_preproc"
22533 fi
22534 ac_res=`eval echo '${'$as_ac_Header'}'`
22535 { echo "$as_me:$LINENO: result: $ac_res" >&5
22536 echo "${ECHO_T}$ac_res" >&6; }
22537
22538 fi
22539 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22540 cat >>confdefs.h <<_ACEOF
22541 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22542 _ACEOF
22543
22544 fi
22545
22546 done
22547
22548
22549
22550 for ac_func in fork vfork
22551 do
22552 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22553 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22554 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22555 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22556 echo $ECHO_N "(cached) $ECHO_C" >&6
22557 else
22558 cat >conftest.$ac_ext <<_ACEOF
22559 /* confdefs.h. */
22560 _ACEOF
22561 cat confdefs.h >>conftest.$ac_ext
22562 cat >>conftest.$ac_ext <<_ACEOF
22563 /* end confdefs.h. */
22564 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22566 #define $ac_func innocuous_$ac_func
22567
22568 /* System header to define __stub macros and hopefully few prototypes,
22569 which can conflict with char $ac_func (); below.
22570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22571 <limits.h> exists even on freestanding compilers. */
22572
22573 #ifdef __STDC__
22574 # include <limits.h>
22575 #else
22576 # include <assert.h>
22577 #endif
22578
22579 #undef $ac_func
22580
22581 /* Override any GCC internal prototype to avoid an error.
22582 Use char because int might match the return type of a GCC
22583 builtin and then its argument prototype would still apply. */
22584 #ifdef __cplusplus
22585 extern "C"
22586 #endif
22587 char $ac_func ();
22588 /* The GNU C library defines this for functions which it implements
22589 to always fail with ENOSYS. Some functions are actually named
22590 something starting with __ and the normal name is an alias. */
22591 #if defined __stub_$ac_func || defined __stub___$ac_func
22592 choke me
22593 #endif
22594
22595 int
22596 main ()
22597 {
22598 return $ac_func ();
22599 ;
22600 return 0;
22601 }
22602 _ACEOF
22603 rm -f conftest.$ac_objext conftest$ac_exeext
22604 if { (ac_try="$ac_link"
22605 case "(($ac_try" in
22606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22607 *) ac_try_echo=$ac_try;;
22608 esac
22609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22610 (eval "$ac_link") 2>conftest.er1
22611 ac_status=$?
22612 grep -v '^ *+' conftest.er1 >conftest.err
22613 rm -f conftest.er1
22614 cat conftest.err >&5
22615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616 (exit $ac_status); } && {
22617 test -z "$ac_c_werror_flag" ||
22618 test ! -s conftest.err
22619 } && test -s conftest$ac_exeext &&
22620 $as_test_x conftest$ac_exeext; then
22621 eval "$as_ac_var=yes"
22622 else
22623 echo "$as_me: failed program was:" >&5
22624 sed 's/^/| /' conftest.$ac_ext >&5
22625
22626 eval "$as_ac_var=no"
22627 fi
22628
22629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22630 conftest$ac_exeext conftest.$ac_ext
22631 fi
22632 ac_res=`eval echo '${'$as_ac_var'}'`
22633 { echo "$as_me:$LINENO: result: $ac_res" >&5
22634 echo "${ECHO_T}$ac_res" >&6; }
22635 if test `eval echo '${'$as_ac_var'}'` = yes; then
22636 cat >>confdefs.h <<_ACEOF
22637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22638 _ACEOF
22639
22640 fi
22641 done
22642
22643 if test "x$ac_cv_func_fork" = xyes; then
22644 { echo "$as_me:$LINENO: checking for working fork" >&5
22645 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
22646 if test "${ac_cv_func_fork_works+set}" = set; then
22647 echo $ECHO_N "(cached) $ECHO_C" >&6
22648 else
22649 if test "$cross_compiling" = yes; then
22650 ac_cv_func_fork_works=cross
22651 else
22652 cat >conftest.$ac_ext <<_ACEOF
22653 /* confdefs.h. */
22654 _ACEOF
22655 cat confdefs.h >>conftest.$ac_ext
22656 cat >>conftest.$ac_ext <<_ACEOF
22657 /* end confdefs.h. */
22658 $ac_includes_default
22659 int
22660 main ()
22661 {
22662
22663 /* By Ruediger Kuhlmann. */
22664 return fork () < 0;
22665
22666 ;
22667 return 0;
22668 }
22669 _ACEOF
22670 rm -f conftest$ac_exeext
22671 if { (ac_try="$ac_link"
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_link") 2>&5
22678 ac_status=$?
22679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22680 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22681 { (case "(($ac_try" in
22682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22683 *) ac_try_echo=$ac_try;;
22684 esac
22685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22686 (eval "$ac_try") 2>&5
22687 ac_status=$?
22688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22689 (exit $ac_status); }; }; then
22690 ac_cv_func_fork_works=yes
22691 else
22692 echo "$as_me: program exited with status $ac_status" >&5
22693 echo "$as_me: failed program was:" >&5
22694 sed 's/^/| /' conftest.$ac_ext >&5
22695
22696 ( exit $ac_status )
22697 ac_cv_func_fork_works=no
22698 fi
22699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22700 fi
22701
22702
22703 fi
22704 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22705 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22706
22707 else
22708 ac_cv_func_fork_works=$ac_cv_func_fork
22709 fi
22710 if test "x$ac_cv_func_fork_works" = xcross; then
22711 case $host in
22712 *-*-amigaos* | *-*-msdosdjgpp*)
22713 # Override, as these systems have only a dummy fork() stub
22714 ac_cv_func_fork_works=no
22715 ;;
22716 *)
22717 ac_cv_func_fork_works=yes
22718 ;;
22719 esac
22720 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22721 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22722 fi
22723 ac_cv_func_vfork_works=$ac_cv_func_vfork
22724 if test "x$ac_cv_func_vfork" = xyes; then
22725 { echo "$as_me:$LINENO: checking for working vfork" >&5
22726 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
22727 if test "${ac_cv_func_vfork_works+set}" = set; then
22728 echo $ECHO_N "(cached) $ECHO_C" >&6
22729 else
22730 if test "$cross_compiling" = yes; then
22731 ac_cv_func_vfork_works=cross
22732 else
22733 cat >conftest.$ac_ext <<_ACEOF
22734 /* confdefs.h. */
22735 _ACEOF
22736 cat confdefs.h >>conftest.$ac_ext
22737 cat >>conftest.$ac_ext <<_ACEOF
22738 /* end confdefs.h. */
22739 /* Thanks to Paul Eggert for this test. */
22740 $ac_includes_default
22741 #include <sys/wait.h>
22742 #ifdef HAVE_VFORK_H
22743 # include <vfork.h>
22744 #endif
22745 /* On some sparc systems, changes by the child to local and incoming
22746 argument registers are propagated back to the parent. The compiler
22747 is told about this with #include <vfork.h>, but some compilers
22748 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22749 static variable whose address is put into a register that is
22750 clobbered by the vfork. */
22751 static void
22752 #ifdef __cplusplus
22753 sparc_address_test (int arg)
22754 # else
22755 sparc_address_test (arg) int arg;
22756 #endif
22757 {
22758 static pid_t child;
22759 if (!child) {
22760 child = vfork ();
22761 if (child < 0) {
22762 perror ("vfork");
22763 _exit(2);
22764 }
22765 if (!child) {
22766 arg = getpid();
22767 write(-1, "", 0);
22768 _exit (arg);
22769 }
22770 }
22771 }
22772
22773 int
22774 main ()
22775 {
22776 pid_t parent = getpid ();
22777 pid_t child;
22778
22779 sparc_address_test (0);
22780
22781 child = vfork ();
22782
22783 if (child == 0) {
22784 /* Here is another test for sparc vfork register problems. This
22785 test uses lots of local variables, at least as many local
22786 variables as main has allocated so far including compiler
22787 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22788 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22789 reuse the register of parent for one of the local variables,
22790 since it will think that parent can't possibly be used any more
22791 in this routine. Assigning to the local variable will thus
22792 munge parent in the parent process. */
22793 pid_t
22794 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22795 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22796 /* Convince the compiler that p..p7 are live; otherwise, it might
22797 use the same hardware register for all 8 local variables. */
22798 if (p != p1 || p != p2 || p != p3 || p != p4
22799 || p != p5 || p != p6 || p != p7)
22800 _exit(1);
22801
22802 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22803 from child file descriptors. If the child closes a descriptor
22804 before it execs or exits, this munges the parent's descriptor
22805 as well. Test for this by closing stdout in the child. */
22806 _exit(close(fileno(stdout)) != 0);
22807 } else {
22808 int status;
22809 struct stat st;
22810
22811 while (wait(&status) != child)
22812 ;
22813 return (
22814 /* Was there some problem with vforking? */
22815 child < 0
22816
22817 /* Did the child fail? (This shouldn't happen.) */
22818 || status
22819
22820 /* Did the vfork/compiler bug occur? */
22821 || parent != getpid()
22822
22823 /* Did the file descriptor bug occur? */
22824 || fstat(fileno(stdout), &st) != 0
22825 );
22826 }
22827 }
22828 _ACEOF
22829 rm -f conftest$ac_exeext
22830 if { (ac_try="$ac_link"
22831 case "(($ac_try" in
22832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22833 *) ac_try_echo=$ac_try;;
22834 esac
22835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22836 (eval "$ac_link") 2>&5
22837 ac_status=$?
22838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22839 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22840 { (case "(($ac_try" in
22841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22842 *) ac_try_echo=$ac_try;;
22843 esac
22844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22845 (eval "$ac_try") 2>&5
22846 ac_status=$?
22847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22848 (exit $ac_status); }; }; then
22849 ac_cv_func_vfork_works=yes
22850 else
22851 echo "$as_me: program exited with status $ac_status" >&5
22852 echo "$as_me: failed program was:" >&5
22853 sed 's/^/| /' conftest.$ac_ext >&5
22854
22855 ( exit $ac_status )
22856 ac_cv_func_vfork_works=no
22857 fi
22858 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22859 fi
22860
22861
22862 fi
22863 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22864 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22865
22866 fi;
22867 if test "x$ac_cv_func_fork_works" = xcross; then
22868 ac_cv_func_vfork_works=$ac_cv_func_vfork
22869 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22870 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22871 fi
22872
22873 if test "x$ac_cv_func_vfork_works" = xyes; then
22874
22875 cat >>confdefs.h <<\_ACEOF
22876 #define HAVE_WORKING_VFORK 1
22877 _ACEOF
22878
22879 else
22880
22881 cat >>confdefs.h <<\_ACEOF
22882 #define vfork fork
22883 _ACEOF
22884
22885 fi
22886 if test "x$ac_cv_func_fork_works" = xyes; then
22887
22888 cat >>confdefs.h <<\_ACEOF
22889 #define HAVE_WORKING_FORK 1
22890 _ACEOF
22891
22892 fi
22893
22894
22895 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22896 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22897 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22898 echo $ECHO_N "(cached) $ECHO_C" >&6
22899 else
22900 cat >conftest.$ac_ext <<_ACEOF
22901 /* confdefs.h. */
22902 _ACEOF
22903 cat confdefs.h >>conftest.$ac_ext
22904 cat >>conftest.$ac_ext <<_ACEOF
22905 /* end confdefs.h. */
22906 #include <langinfo.h>
22907 int
22908 main ()
22909 {
22910 char* cs = nl_langinfo(CODESET);
22911 ;
22912 return 0;
22913 }
22914 _ACEOF
22915 rm -f conftest.$ac_objext conftest$ac_exeext
22916 if { (ac_try="$ac_link"
22917 case "(($ac_try" in
22918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22919 *) ac_try_echo=$ac_try;;
22920 esac
22921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22922 (eval "$ac_link") 2>conftest.er1
22923 ac_status=$?
22924 grep -v '^ *+' conftest.er1 >conftest.err
22925 rm -f conftest.er1
22926 cat conftest.err >&5
22927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22928 (exit $ac_status); } && {
22929 test -z "$ac_c_werror_flag" ||
22930 test ! -s conftest.err
22931 } && test -s conftest$ac_exeext &&
22932 $as_test_x conftest$ac_exeext; then
22933 emacs_cv_langinfo_codeset=yes
22934 else
22935 echo "$as_me: failed program was:" >&5
22936 sed 's/^/| /' conftest.$ac_ext >&5
22937
22938 emacs_cv_langinfo_codeset=no
22939 fi
22940
22941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22942 conftest$ac_exeext conftest.$ac_ext
22943
22944 fi
22945 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22946 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22947 if test $emacs_cv_langinfo_codeset = yes; then
22948
22949 cat >>confdefs.h <<\_ACEOF
22950 #define HAVE_LANGINFO_CODESET 1
22951 _ACEOF
22952
22953 fi
22954
22955 { echo "$as_me:$LINENO: checking for size_t" >&5
22956 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22957 if test "${ac_cv_type_size_t+set}" = set; then
22958 echo $ECHO_N "(cached) $ECHO_C" >&6
22959 else
22960 cat >conftest.$ac_ext <<_ACEOF
22961 /* confdefs.h. */
22962 _ACEOF
22963 cat confdefs.h >>conftest.$ac_ext
22964 cat >>conftest.$ac_ext <<_ACEOF
22965 /* end confdefs.h. */
22966 $ac_includes_default
22967 typedef size_t ac__type_new_;
22968 int
22969 main ()
22970 {
22971 if ((ac__type_new_ *) 0)
22972 return 0;
22973 if (sizeof (ac__type_new_))
22974 return 0;
22975 ;
22976 return 0;
22977 }
22978 _ACEOF
22979 rm -f conftest.$ac_objext
22980 if { (ac_try="$ac_compile"
22981 case "(($ac_try" in
22982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22983 *) ac_try_echo=$ac_try;;
22984 esac
22985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22986 (eval "$ac_compile") 2>conftest.er1
22987 ac_status=$?
22988 grep -v '^ *+' conftest.er1 >conftest.err
22989 rm -f conftest.er1
22990 cat conftest.err >&5
22991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22992 (exit $ac_status); } && {
22993 test -z "$ac_c_werror_flag" ||
22994 test ! -s conftest.err
22995 } && test -s conftest.$ac_objext; then
22996 ac_cv_type_size_t=yes
22997 else
22998 echo "$as_me: failed program was:" >&5
22999 sed 's/^/| /' conftest.$ac_ext >&5
23000
23001 ac_cv_type_size_t=no
23002 fi
23003
23004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23005 fi
23006 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23007 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23008 if test $ac_cv_type_size_t = yes; then
23009
23010 cat >>confdefs.h <<_ACEOF
23011 #define HAVE_SIZE_T 1
23012 _ACEOF
23013
23014
23015 fi
23016
23017
23018 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23019 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23020 if test "${ac_cv_type_mbstate_t+set}" = set; then
23021 echo $ECHO_N "(cached) $ECHO_C" >&6
23022 else
23023 cat >conftest.$ac_ext <<_ACEOF
23024 /* confdefs.h. */
23025 _ACEOF
23026 cat confdefs.h >>conftest.$ac_ext
23027 cat >>conftest.$ac_ext <<_ACEOF
23028 /* end confdefs.h. */
23029 $ac_includes_default
23030 # include <wchar.h>
23031 int
23032 main ()
23033 {
23034 mbstate_t x; return sizeof x;
23035 ;
23036 return 0;
23037 }
23038 _ACEOF
23039 rm -f conftest.$ac_objext
23040 if { (ac_try="$ac_compile"
23041 case "(($ac_try" in
23042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23043 *) ac_try_echo=$ac_try;;
23044 esac
23045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23046 (eval "$ac_compile") 2>conftest.er1
23047 ac_status=$?
23048 grep -v '^ *+' conftest.er1 >conftest.err
23049 rm -f conftest.er1
23050 cat conftest.err >&5
23051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23052 (exit $ac_status); } && {
23053 test -z "$ac_c_werror_flag" ||
23054 test ! -s conftest.err
23055 } && test -s conftest.$ac_objext; then
23056 ac_cv_type_mbstate_t=yes
23057 else
23058 echo "$as_me: failed program was:" >&5
23059 sed 's/^/| /' conftest.$ac_ext >&5
23060
23061 ac_cv_type_mbstate_t=no
23062 fi
23063
23064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23065 fi
23066 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23067 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23068 if test $ac_cv_type_mbstate_t = yes; then
23069
23070 cat >>confdefs.h <<\_ACEOF
23071 #define HAVE_MBSTATE_T 1
23072 _ACEOF
23073
23074 else
23075
23076 cat >>confdefs.h <<\_ACEOF
23077 #define mbstate_t int
23078 _ACEOF
23079
23080 fi
23081
23082 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23083 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23084 if test "${emacs_cv_c_restrict+set}" = set; then
23085 echo $ECHO_N "(cached) $ECHO_C" >&6
23086 else
23087 cat >conftest.$ac_ext <<_ACEOF
23088 /* confdefs.h. */
23089 _ACEOF
23090 cat confdefs.h >>conftest.$ac_ext
23091 cat >>conftest.$ac_ext <<_ACEOF
23092 /* end confdefs.h. */
23093 void fred (int *restrict x);
23094 int
23095 main ()
23096 {
23097
23098 ;
23099 return 0;
23100 }
23101 _ACEOF
23102 rm -f conftest.$ac_objext
23103 if { (ac_try="$ac_compile"
23104 case "(($ac_try" in
23105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23106 *) ac_try_echo=$ac_try;;
23107 esac
23108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23109 (eval "$ac_compile") 2>conftest.er1
23110 ac_status=$?
23111 grep -v '^ *+' conftest.er1 >conftest.err
23112 rm -f conftest.er1
23113 cat conftest.err >&5
23114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23115 (exit $ac_status); } && {
23116 test -z "$ac_c_werror_flag" ||
23117 test ! -s conftest.err
23118 } && test -s conftest.$ac_objext; then
23119 emacs_cv_c_restrict=yes
23120 else
23121 echo "$as_me: failed program was:" >&5
23122 sed 's/^/| /' conftest.$ac_ext >&5
23123
23124 cat >conftest.$ac_ext <<_ACEOF
23125 /* confdefs.h. */
23126 _ACEOF
23127 cat confdefs.h >>conftest.$ac_ext
23128 cat >>conftest.$ac_ext <<_ACEOF
23129 /* end confdefs.h. */
23130 void fred (int *__restrict x);
23131 int
23132 main ()
23133 {
23134
23135 ;
23136 return 0;
23137 }
23138 _ACEOF
23139 rm -f conftest.$ac_objext
23140 if { (ac_try="$ac_compile"
23141 case "(($ac_try" in
23142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23143 *) ac_try_echo=$ac_try;;
23144 esac
23145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23146 (eval "$ac_compile") 2>conftest.er1
23147 ac_status=$?
23148 grep -v '^ *+' conftest.er1 >conftest.err
23149 rm -f conftest.er1
23150 cat conftest.err >&5
23151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23152 (exit $ac_status); } && {
23153 test -z "$ac_c_werror_flag" ||
23154 test ! -s conftest.err
23155 } && test -s conftest.$ac_objext; then
23156 emacs_cv_c_restrict=__restrict
23157 else
23158 echo "$as_me: failed program was:" >&5
23159 sed 's/^/| /' conftest.$ac_ext >&5
23160
23161 emacs_cv_c_restrict=no
23162 fi
23163
23164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23165 fi
23166
23167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23168 fi
23169 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23170 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23171 case "$emacs_cv_c_restrict" in
23172 yes) emacs_restrict=restrict;;
23173 no) emacs_restrict="";;
23174 *) emacs_restrict="$emacs_cv_c_restrict";;
23175 esac
23176 if test "$emacs_restrict" != __restrict; then
23177
23178 cat >>confdefs.h <<_ACEOF
23179 #define __restrict $emacs_restrict
23180 _ACEOF
23181
23182 fi
23183
23184 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23185 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
23186 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23187 echo $ECHO_N "(cached) $ECHO_C" >&6
23188 else
23189 cat >conftest.$ac_ext <<_ACEOF
23190 /* confdefs.h. */
23191 _ACEOF
23192 cat confdefs.h >>conftest.$ac_ext
23193 cat >>conftest.$ac_ext <<_ACEOF
23194 /* end confdefs.h. */
23195 void fred (int x[__restrict]);
23196 int
23197 main ()
23198 {
23199
23200 ;
23201 return 0;
23202 }
23203 _ACEOF
23204 rm -f conftest.$ac_objext
23205 if { (ac_try="$ac_compile"
23206 case "(($ac_try" in
23207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23208 *) ac_try_echo=$ac_try;;
23209 esac
23210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23211 (eval "$ac_compile") 2>conftest.er1
23212 ac_status=$?
23213 grep -v '^ *+' conftest.er1 >conftest.err
23214 rm -f conftest.er1
23215 cat conftest.err >&5
23216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23217 (exit $ac_status); } && {
23218 test -z "$ac_c_werror_flag" ||
23219 test ! -s conftest.err
23220 } && test -s conftest.$ac_objext; then
23221 emacs_cv_c_restrict_arr=yes
23222 else
23223 echo "$as_me: failed program was:" >&5
23224 sed 's/^/| /' conftest.$ac_ext >&5
23225
23226 emacs_cv_c_restrict_arr=no
23227 fi
23228
23229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23230 fi
23231 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23232 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23233 if test "$emacs_cv_c_restrict_arr" = yes; then
23234
23235 cat >>confdefs.h <<\_ACEOF
23236 #define __restrict_arr __restrict
23237 _ACEOF
23238
23239 fi
23240
23241
23242
23243 # Set up the CFLAGS for real compilation, so we can substitute it.
23244 CFLAGS="$REAL_CFLAGS"
23245 CPPFLAGS="$REAL_CPPFLAGS"
23246
23247 #### Find out which version of Emacs this is.
23248 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23249 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23250 if test x"${version}" = x; then
23251 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23252 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23253 { (exit 1); exit 1; }; }
23254 fi
23255
23256 ### Specify what sort of things we'll be editing into Makefile and config.h.
23257 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23258
23259
23260
23261
23262
23263
23264
23265
23266
23267
23268
23269
23270
23271
23272
23273
23274
23275
23276
23277
23278
23279
23280
23281
23282
23283
23284
23285
23286
23287
23288
23289
23290
23291
23292
23293 cat >>confdefs.h <<_ACEOF
23294 #define EMACS_CONFIGURATION "${canonical}"
23295 _ACEOF
23296
23297
23298 cat >>confdefs.h <<_ACEOF
23299 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23300 _ACEOF
23301
23302
23303 cat >>confdefs.h <<_ACEOF
23304 #define config_machfile "${machfile}"
23305 _ACEOF
23306
23307
23308 cat >>confdefs.h <<_ACEOF
23309 #define config_opsysfile "${opsysfile}"
23310 _ACEOF
23311
23312
23313 cat >>confdefs.h <<_ACEOF
23314 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23315 _ACEOF
23316
23317
23318 cat >>confdefs.h <<_ACEOF
23319 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23320 _ACEOF
23321
23322
23323 cat >>confdefs.h <<_ACEOF
23324 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23325 _ACEOF
23326
23327
23328 cat >>confdefs.h <<_ACEOF
23329 #define UNEXEC_SRC ${UNEXEC_SRC}
23330 _ACEOF
23331
23332
23333 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23334
23335 cat >>confdefs.h <<\_ACEOF
23336 #define HAVE_X_WINDOWS 1
23337 _ACEOF
23338
23339 fi
23340 if test "${USE_X_TOOLKIT}" != "none" ; then
23341
23342 cat >>confdefs.h <<\_ACEOF
23343 #define USE_X_TOOLKIT 1
23344 _ACEOF
23345
23346 fi
23347 if test "${HAVE_X11}" = "yes" ; then
23348
23349 cat >>confdefs.h <<\_ACEOF
23350 #define HAVE_X11 1
23351 _ACEOF
23352
23353 fi
23354 if test "${HAVE_XFREE386}" = "yes" ; then
23355
23356 cat >>confdefs.h <<\_ACEOF
23357 #define HAVE_XFREE386 1
23358 _ACEOF
23359
23360 fi
23361 if test "${HAVE_MENUS}" = "yes" ; then
23362
23363 cat >>confdefs.h <<\_ACEOF
23364 #define HAVE_MENUS 1
23365 _ACEOF
23366
23367 fi
23368 if test "${GNU_MALLOC}" = "yes" ; then
23369
23370 cat >>confdefs.h <<\_ACEOF
23371 #define GNU_MALLOC 1
23372 _ACEOF
23373
23374 fi
23375 if test "${REL_ALLOC}" = "yes" ; then
23376
23377 cat >>confdefs.h <<\_ACEOF
23378 #define REL_ALLOC 1
23379 _ACEOF
23380
23381 fi
23382
23383
23384
23385
23386
23387 #### Report on what we decided to do.
23388 #### Report GTK as a toolkit, even if it doesn't use Xt.
23389 #### It makes printing result more understandable as using GTK sets
23390 #### toolkit_scroll_bars to yes by default.
23391 if test "${HAVE_GTK}" = "yes"; then
23392 USE_X_TOOLKIT=GTK
23393 fi
23394
23395 echo "
23396 Configured for \`${canonical}'.
23397
23398 Where should the build process find the source code? ${srcdir}
23399 What operating system and machine description files should Emacs use?
23400 \`${opsysfile}' and \`${machfile}'
23401 What compiler should emacs be built with? ${CC} ${CFLAGS}
23402 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23403 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23404 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23405 What window system should Emacs use? ${window_system}
23406 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23407
23408 if test -n "${x_includes}"; then
23409 echo " Where do we find X Windows header files? ${x_includes}"
23410 else
23411 echo " Where do we find X Windows header files? Standard dirs"
23412 fi
23413 if test -n "${x_libraries}"; then
23414 echo " Where do we find X Windows libraries? ${x_libraries}"
23415 else
23416 echo " Where do we find X Windows libraries? Standard dirs"
23417 fi
23418
23419 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23420 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23421 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23422 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23423 echo " Does Emacs use -lungif? ${HAVE_GIF}"
23424 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23425 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23426 echo
23427
23428 if test $USE_XASSERTS = yes; then
23429 echo " Compiling with asserts turned on."
23430 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23431 echo
23432 fi
23433
23434 if test "$USE_X_TOOLKIT" = GTK; then
23435 case "$canonical" in
23436 *cygwin*)
23437 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
23438 will probably get a crash on startup. If this happens, please use another
23439 toolkit for Emacs. See etc/PROBLEMS for more information."
23440 ;;
23441 esac
23442 fi
23443
23444
23445
23446 # Remove any trailing slashes in these variables.
23447 test "${prefix}" != NONE &&
23448 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23449 test "${exec_prefix}" != NONE &&
23450 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23451
23452 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23453 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23454 ## from Makefile.c can correctly provide the arg `-traditional' to the
23455 ## C preprocessor.
23456
23457 cat >conftest.$ac_ext <<_ACEOF
23458 /* confdefs.h. */
23459 _ACEOF
23460 cat confdefs.h >>conftest.$ac_ext
23461 cat >>conftest.$ac_ext <<_ACEOF
23462 /* end confdefs.h. */
23463 yes..yes
23464 _ACEOF
23465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23466 $EGREP "yes..yes" >/dev/null 2>&1; then
23467 CPP_NEED_TRADITIONAL=no
23468 else
23469 CPP_NEED_TRADITIONAL=yes
23470 fi
23471 rm -f conftest*
23472
23473
23474 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"
23475
23476 ac_config_commands="$ac_config_commands default"
23477
23478 cat >confcache <<\_ACEOF
23479 # This file is a shell script that caches the results of configure
23480 # tests run on this system so they can be shared between configure
23481 # scripts and configure runs, see configure's option --config-cache.
23482 # It is not useful on other systems. If it contains results you don't
23483 # want to keep, you may remove or edit it.
23484 #
23485 # config.status only pays attention to the cache file if you give it
23486 # the --recheck option to rerun configure.
23487 #
23488 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23489 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23490 # following values.
23491
23492 _ACEOF
23493
23494 # The following way of writing the cache mishandles newlines in values,
23495 # but we know of no workaround that is simple, portable, and efficient.
23496 # So, we kill variables containing newlines.
23497 # Ultrix sh set writes to stderr and can't be redirected directly,
23498 # and sets the high bit in the cache file unless we assign to the vars.
23499 (
23500 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23501 eval ac_val=\$$ac_var
23502 case $ac_val in #(
23503 *${as_nl}*)
23504 case $ac_var in #(
23505 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23506 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23507 esac
23508 case $ac_var in #(
23509 _ | IFS | as_nl) ;; #(
23510 *) $as_unset $ac_var ;;
23511 esac ;;
23512 esac
23513 done
23514
23515 (set) 2>&1 |
23516 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23517 *${as_nl}ac_space=\ *)
23518 # `set' does not quote correctly, so add quotes (double-quote
23519 # substitution turns \\\\ into \\, and sed turns \\ into \).
23520 sed -n \
23521 "s/'/'\\\\''/g;
23522 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23523 ;; #(
23524 *)
23525 # `set' quotes correctly as required by POSIX, so do not add quotes.
23526 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23527 ;;
23528 esac |
23529 sort
23530 ) |
23531 sed '
23532 /^ac_cv_env_/b end
23533 t clear
23534 :clear
23535 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23536 t end
23537 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23538 :end' >>confcache
23539 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23540 if test -w "$cache_file"; then
23541 test "x$cache_file" != "x/dev/null" &&
23542 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23543 echo "$as_me: updating cache $cache_file" >&6;}
23544 cat confcache >$cache_file
23545 else
23546 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23547 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23548 fi
23549 fi
23550 rm -f confcache
23551
23552 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23553 # Let make expand exec_prefix.
23554 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23555
23556 DEFS=-DHAVE_CONFIG_H
23557
23558 ac_libobjs=
23559 ac_ltlibobjs=
23560 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23561 # 1. Remove the extension, and $U if already installed.
23562 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23563 ac_i=`echo "$ac_i" | sed "$ac_script"`
23564 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23565 # will be set to the directory where LIBOBJS objects are built.
23566 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23567 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23568 done
23569 LIBOBJS=$ac_libobjs
23570
23571 LTLIBOBJS=$ac_ltlibobjs
23572
23573
23574
23575 : ${CONFIG_STATUS=./config.status}
23576 ac_clean_files_save=$ac_clean_files
23577 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23578 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23579 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23580 cat >$CONFIG_STATUS <<_ACEOF
23581 #! $SHELL
23582 # Generated by $as_me.
23583 # Run this file to recreate the current configuration.
23584 # Compiler output produced by configure, useful for debugging
23585 # configure, is in config.log if it exists.
23586
23587 debug=false
23588 ac_cs_recheck=false
23589 ac_cs_silent=false
23590 SHELL=\${CONFIG_SHELL-$SHELL}
23591 _ACEOF
23592
23593 cat >>$CONFIG_STATUS <<\_ACEOF
23594 ## --------------------- ##
23595 ## M4sh Initialization. ##
23596 ## --------------------- ##
23597
23598 # Be more Bourne compatible
23599 DUALCASE=1; export DUALCASE # for MKS sh
23600 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23601 emulate sh
23602 NULLCMD=:
23603 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23604 # is contrary to our usage. Disable this feature.
23605 alias -g '${1+"$@"}'='"$@"'
23606 setopt NO_GLOB_SUBST
23607 else
23608 case `(set -o) 2>/dev/null` in
23609 *posix*) set -o posix ;;
23610 esac
23611
23612 fi
23613
23614
23615
23616
23617 # PATH needs CR
23618 # Avoid depending upon Character Ranges.
23619 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23620 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23621 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23622 as_cr_digits='0123456789'
23623 as_cr_alnum=$as_cr_Letters$as_cr_digits
23624
23625 # The user is always right.
23626 if test "${PATH_SEPARATOR+set}" != set; then
23627 echo "#! /bin/sh" >conf$$.sh
23628 echo "exit 0" >>conf$$.sh
23629 chmod +x conf$$.sh
23630 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23631 PATH_SEPARATOR=';'
23632 else
23633 PATH_SEPARATOR=:
23634 fi
23635 rm -f conf$$.sh
23636 fi
23637
23638 # Support unset when possible.
23639 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23640 as_unset=unset
23641 else
23642 as_unset=false
23643 fi
23644
23645
23646 # IFS
23647 # We need space, tab and new line, in precisely that order. Quoting is
23648 # there to prevent editors from complaining about space-tab.
23649 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23650 # splitting by setting IFS to empty value.)
23651 as_nl='
23652 '
23653 IFS=" "" $as_nl"
23654
23655 # Find who we are. Look in the path if we contain no directory separator.
23656 case $0 in
23657 *[\\/]* ) as_myself=$0 ;;
23658 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23659 for as_dir in $PATH
23660 do
23661 IFS=$as_save_IFS
23662 test -z "$as_dir" && as_dir=.
23663 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23664 done
23665 IFS=$as_save_IFS
23666
23667 ;;
23668 esac
23669 # We did not find ourselves, most probably we were run as `sh COMMAND'
23670 # in which case we are not to be found in the path.
23671 if test "x$as_myself" = x; then
23672 as_myself=$0
23673 fi
23674 if test ! -f "$as_myself"; then
23675 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23676 { (exit 1); exit 1; }
23677 fi
23678
23679 # Work around bugs in pre-3.0 UWIN ksh.
23680 for as_var in ENV MAIL MAILPATH
23681 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23682 done
23683 PS1='$ '
23684 PS2='> '
23685 PS4='+ '
23686
23687 # NLS nuisances.
23688 for as_var in \
23689 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23690 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23691 LC_TELEPHONE LC_TIME
23692 do
23693 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23694 eval $as_var=C; export $as_var
23695 else
23696 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23697 fi
23698 done
23699
23700 # Required to use basename.
23701 if expr a : '\(a\)' >/dev/null 2>&1 &&
23702 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23703 as_expr=expr
23704 else
23705 as_expr=false
23706 fi
23707
23708 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23709 as_basename=basename
23710 else
23711 as_basename=false
23712 fi
23713
23714
23715 # Name of the executable.
23716 as_me=`$as_basename -- "$0" ||
23717 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23718 X"$0" : 'X\(//\)$' \| \
23719 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23720 echo X/"$0" |
23721 sed '/^.*\/\([^/][^/]*\)\/*$/{
23722 s//\1/
23723 q
23724 }
23725 /^X\/\(\/\/\)$/{
23726 s//\1/
23727 q
23728 }
23729 /^X\/\(\/\).*/{
23730 s//\1/
23731 q
23732 }
23733 s/.*/./; q'`
23734
23735 # CDPATH.
23736 $as_unset CDPATH
23737
23738
23739
23740 as_lineno_1=$LINENO
23741 as_lineno_2=$LINENO
23742 test "x$as_lineno_1" != "x$as_lineno_2" &&
23743 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23744
23745 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23746 # uniformly replaced by the line number. The first 'sed' inserts a
23747 # line-number line after each line using $LINENO; the second 'sed'
23748 # does the real work. The second script uses 'N' to pair each
23749 # line-number line with the line containing $LINENO, and appends
23750 # trailing '-' during substitution so that $LINENO is not a special
23751 # case at line end.
23752 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23753 # scripts with optimization help from Paolo Bonzini. Blame Lee
23754 # E. McMahon (1931-1989) for sed's syntax. :-)
23755 sed -n '
23756 p
23757 /[$]LINENO/=
23758 ' <$as_myself |
23759 sed '
23760 s/[$]LINENO.*/&-/
23761 t lineno
23762 b
23763 :lineno
23764 N
23765 :loop
23766 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23767 t loop
23768 s/-\n.*//
23769 ' >$as_me.lineno &&
23770 chmod +x "$as_me.lineno" ||
23771 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23772 { (exit 1); exit 1; }; }
23773
23774 # Don't try to exec as it changes $[0], causing all sort of problems
23775 # (the dirname of $[0] is not the place where we might find the
23776 # original and so on. Autoconf is especially sensitive to this).
23777 . "./$as_me.lineno"
23778 # Exit status is that of the last command.
23779 exit
23780 }
23781
23782
23783 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23784 as_dirname=dirname
23785 else
23786 as_dirname=false
23787 fi
23788
23789 ECHO_C= ECHO_N= ECHO_T=
23790 case `echo -n x` in
23791 -n*)
23792 case `echo 'x\c'` in
23793 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23794 *) ECHO_C='\c';;
23795 esac;;
23796 *)
23797 ECHO_N='-n';;
23798 esac
23799
23800 if expr a : '\(a\)' >/dev/null 2>&1 &&
23801 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23802 as_expr=expr
23803 else
23804 as_expr=false
23805 fi
23806
23807 rm -f conf$$ conf$$.exe conf$$.file
23808 if test -d conf$$.dir; then
23809 rm -f conf$$.dir/conf$$.file
23810 else
23811 rm -f conf$$.dir
23812 mkdir conf$$.dir
23813 fi
23814 echo >conf$$.file
23815 if ln -s conf$$.file conf$$ 2>/dev/null; then
23816 as_ln_s='ln -s'
23817 # ... but there are two gotchas:
23818 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23819 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23820 # In both cases, we have to default to `cp -p'.
23821 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23822 as_ln_s='cp -p'
23823 elif ln conf$$.file conf$$ 2>/dev/null; then
23824 as_ln_s=ln
23825 else
23826 as_ln_s='cp -p'
23827 fi
23828 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23829 rmdir conf$$.dir 2>/dev/null
23830
23831 if mkdir -p . 2>/dev/null; then
23832 as_mkdir_p=:
23833 else
23834 test -d ./-p && rmdir ./-p
23835 as_mkdir_p=false
23836 fi
23837
23838 if test -x / >/dev/null 2>&1; then
23839 as_test_x='test -x'
23840 else
23841 if ls -dL / >/dev/null 2>&1; then
23842 as_ls_L_option=L
23843 else
23844 as_ls_L_option=
23845 fi
23846 as_test_x='
23847 eval sh -c '\''
23848 if test -d "$1"; then
23849 test -d "$1/.";
23850 else
23851 case $1 in
23852 -*)set "./$1";;
23853 esac;
23854 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23855 ???[sx]*):;;*)false;;esac;fi
23856 '\'' sh
23857 '
23858 fi
23859 as_executable_p=$as_test_x
23860
23861 # Sed expression to map a string onto a valid CPP name.
23862 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23863
23864 # Sed expression to map a string onto a valid variable name.
23865 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23866
23867
23868 exec 6>&1
23869
23870 # Save the log message, to keep $[0] and so on meaningful, and to
23871 # report actual input values of CONFIG_FILES etc. instead of their
23872 # values after options handling.
23873 ac_log="
23874 This file was extended by $as_me, which was
23875 generated by GNU Autoconf 2.61. Invocation command line was
23876
23877 CONFIG_FILES = $CONFIG_FILES
23878 CONFIG_HEADERS = $CONFIG_HEADERS
23879 CONFIG_LINKS = $CONFIG_LINKS
23880 CONFIG_COMMANDS = $CONFIG_COMMANDS
23881 $ $0 $@
23882
23883 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23884 "
23885
23886 _ACEOF
23887
23888 cat >>$CONFIG_STATUS <<_ACEOF
23889 # Files that config.status was made for.
23890 config_files="$ac_config_files"
23891 config_headers="$ac_config_headers"
23892 config_commands="$ac_config_commands"
23893
23894 _ACEOF
23895
23896 cat >>$CONFIG_STATUS <<\_ACEOF
23897 ac_cs_usage="\
23898 \`$as_me' instantiates files from templates according to the
23899 current configuration.
23900
23901 Usage: $0 [OPTIONS] [FILE]...
23902
23903 -h, --help print this help, then exit
23904 -V, --version print version number and configuration settings, then exit
23905 -q, --quiet do not print progress messages
23906 -d, --debug don't remove temporary files
23907 --recheck update $as_me by reconfiguring in the same conditions
23908 --file=FILE[:TEMPLATE]
23909 instantiate the configuration file FILE
23910 --header=FILE[:TEMPLATE]
23911 instantiate the configuration header FILE
23912
23913 Configuration files:
23914 $config_files
23915
23916 Configuration headers:
23917 $config_headers
23918
23919 Configuration commands:
23920 $config_commands
23921
23922 Report bugs to <bug-autoconf@gnu.org>."
23923
23924 _ACEOF
23925 cat >>$CONFIG_STATUS <<_ACEOF
23926 ac_cs_version="\\
23927 config.status
23928 configured by $0, generated by GNU Autoconf 2.61,
23929 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23930
23931 Copyright (C) 2006 Free Software Foundation, Inc.
23932 This config.status script is free software; the Free Software Foundation
23933 gives unlimited permission to copy, distribute and modify it."
23934
23935 ac_pwd='$ac_pwd'
23936 srcdir='$srcdir'
23937 INSTALL='$INSTALL'
23938 _ACEOF
23939
23940 cat >>$CONFIG_STATUS <<\_ACEOF
23941 # If no file are specified by the user, then we need to provide default
23942 # value. By we need to know if files were specified by the user.
23943 ac_need_defaults=:
23944 while test $# != 0
23945 do
23946 case $1 in
23947 --*=*)
23948 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23949 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23950 ac_shift=:
23951 ;;
23952 *)
23953 ac_option=$1
23954 ac_optarg=$2
23955 ac_shift=shift
23956 ;;
23957 esac
23958
23959 case $ac_option in
23960 # Handling of the options.
23961 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23962 ac_cs_recheck=: ;;
23963 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23964 echo "$ac_cs_version"; exit ;;
23965 --debug | --debu | --deb | --de | --d | -d )
23966 debug=: ;;
23967 --file | --fil | --fi | --f )
23968 $ac_shift
23969 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23970 ac_need_defaults=false;;
23971 --header | --heade | --head | --hea )
23972 $ac_shift
23973 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23974 ac_need_defaults=false;;
23975 --he | --h)
23976 # Conflict between --help and --header
23977 { echo "$as_me: error: ambiguous option: $1
23978 Try \`$0 --help' for more information." >&2
23979 { (exit 1); exit 1; }; };;
23980 --help | --hel | -h )
23981 echo "$ac_cs_usage"; exit ;;
23982 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23983 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23984 ac_cs_silent=: ;;
23985
23986 # This is an error.
23987 -*) { echo "$as_me: error: unrecognized option: $1
23988 Try \`$0 --help' for more information." >&2
23989 { (exit 1); exit 1; }; } ;;
23990
23991 *) ac_config_targets="$ac_config_targets $1"
23992 ac_need_defaults=false ;;
23993
23994 esac
23995 shift
23996 done
23997
23998 ac_configure_extra_args=
23999
24000 if $ac_cs_silent; then
24001 exec 6>/dev/null
24002 ac_configure_extra_args="$ac_configure_extra_args --silent"
24003 fi
24004
24005 _ACEOF
24006 cat >>$CONFIG_STATUS <<_ACEOF
24007 if \$ac_cs_recheck; then
24008 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24009 CONFIG_SHELL=$SHELL
24010 export CONFIG_SHELL
24011 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24012 fi
24013
24014 _ACEOF
24015 cat >>$CONFIG_STATUS <<\_ACEOF
24016 exec 5>>config.log
24017 {
24018 echo
24019 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24020 ## Running $as_me. ##
24021 _ASBOX
24022 echo "$ac_log"
24023 } >&5
24024
24025 _ACEOF
24026 cat >>$CONFIG_STATUS <<_ACEOF
24027 #
24028 # INIT-COMMANDS
24029 #
24030 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24031
24032 _ACEOF
24033
24034 cat >>$CONFIG_STATUS <<\_ACEOF
24035
24036 # Handling of arguments.
24037 for ac_config_target in $ac_config_targets
24038 do
24039 case $ac_config_target in
24040 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24041 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24042 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24043 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24044 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
24045 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24046 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24047 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24048 "lispref/Makefile") CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
24049 "lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
24050 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24051 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24052
24053 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24054 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24055 { (exit 1); exit 1; }; };;
24056 esac
24057 done
24058
24059
24060 # If the user did not use the arguments to specify the items to instantiate,
24061 # then the envvar interface is used. Set only those that are not.
24062 # We use the long form for the default assignment because of an extremely
24063 # bizarre bug on SunOS 4.1.3.
24064 if $ac_need_defaults; then
24065 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24066 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24067 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24068 fi
24069
24070 # Have a temporary directory for convenience. Make it in the build tree
24071 # simply because there is no reason against having it here, and in addition,
24072 # creating and moving files from /tmp can sometimes cause problems.
24073 # Hook for its removal unless debugging.
24074 # Note that there is a small window in which the directory will not be cleaned:
24075 # after its creation but before its name has been assigned to `$tmp'.
24076 $debug ||
24077 {
24078 tmp=
24079 trap 'exit_status=$?
24080 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24081 ' 0
24082 trap '{ (exit 1); exit 1; }' 1 2 13 15
24083 }
24084 # Create a (secure) tmp directory for tmp files.
24085
24086 {
24087 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24088 test -n "$tmp" && test -d "$tmp"
24089 } ||
24090 {
24091 tmp=./conf$$-$RANDOM
24092 (umask 077 && mkdir "$tmp")
24093 } ||
24094 {
24095 echo "$me: cannot create a temporary directory in ." >&2
24096 { (exit 1); exit 1; }
24097 }
24098
24099 #
24100 # Set up the sed scripts for CONFIG_FILES section.
24101 #
24102
24103 # No need to generate the scripts if there are no CONFIG_FILES.
24104 # This happens for instance when ./config.status config.h
24105 if test -n "$CONFIG_FILES"; then
24106
24107 _ACEOF
24108
24109
24110
24111 ac_delim='%!_!# '
24112 for ac_last_try in false false false false false :; do
24113 cat >conf$$subs.sed <<_ACEOF
24114 SHELL!$SHELL$ac_delim
24115 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24116 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24117 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24118 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24119 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24120 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24121 exec_prefix!$exec_prefix$ac_delim
24122 prefix!$prefix$ac_delim
24123 program_transform_name!$program_transform_name$ac_delim
24124 bindir!$bindir$ac_delim
24125 sbindir!$sbindir$ac_delim
24126 libexecdir!$libexecdir$ac_delim
24127 datarootdir!$datarootdir$ac_delim
24128 datadir!$datadir$ac_delim
24129 sysconfdir!$sysconfdir$ac_delim
24130 sharedstatedir!$sharedstatedir$ac_delim
24131 localstatedir!$localstatedir$ac_delim
24132 includedir!$includedir$ac_delim
24133 oldincludedir!$oldincludedir$ac_delim
24134 docdir!$docdir$ac_delim
24135 infodir!$infodir$ac_delim
24136 htmldir!$htmldir$ac_delim
24137 dvidir!$dvidir$ac_delim
24138 pdfdir!$pdfdir$ac_delim
24139 psdir!$psdir$ac_delim
24140 libdir!$libdir$ac_delim
24141 localedir!$localedir$ac_delim
24142 mandir!$mandir$ac_delim
24143 DEFS!$DEFS$ac_delim
24144 ECHO_C!$ECHO_C$ac_delim
24145 ECHO_N!$ECHO_N$ac_delim
24146 ECHO_T!$ECHO_T$ac_delim
24147 LIBS!$LIBS$ac_delim
24148 build_alias!$build_alias$ac_delim
24149 host_alias!$host_alias$ac_delim
24150 target_alias!$target_alias$ac_delim
24151 MAINT!$MAINT$ac_delim
24152 build!$build$ac_delim
24153 build_cpu!$build_cpu$ac_delim
24154 build_vendor!$build_vendor$ac_delim
24155 build_os!$build_os$ac_delim
24156 host!$host$ac_delim
24157 host_cpu!$host_cpu$ac_delim
24158 host_vendor!$host_vendor$ac_delim
24159 host_os!$host_os$ac_delim
24160 CC!$CC$ac_delim
24161 CFLAGS!$CFLAGS$ac_delim
24162 LDFLAGS!$LDFLAGS$ac_delim
24163 CPPFLAGS!$CPPFLAGS$ac_delim
24164 ac_ct_CC!$ac_ct_CC$ac_delim
24165 EXEEXT!$EXEEXT$ac_delim
24166 OBJEXT!$OBJEXT$ac_delim
24167 CPP!$CPP$ac_delim
24168 GREP!$GREP$ac_delim
24169 EGREP!$EGREP$ac_delim
24170 LN_S!$LN_S$ac_delim
24171 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24172 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24173 INSTALL_DATA!$INSTALL_DATA$ac_delim
24174 RANLIB!$RANLIB$ac_delim
24175 INSTALL_INFO!$INSTALL_INFO$ac_delim
24176 GZIP_PROG!$GZIP_PROG$ac_delim
24177 LIBSOUND!$LIBSOUND$ac_delim
24178 PKG_CONFIG!$PKG_CONFIG$ac_delim
24179 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24180 ALSA_LIBS!$ALSA_LIBS$ac_delim
24181 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24182 SET_MAKE!$SET_MAKE$ac_delim
24183 XMKMF!$XMKMF$ac_delim
24184 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24185 GTK_LIBS!$GTK_LIBS$ac_delim
24186 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24187 XFT_LIBS!$XFT_LIBS$ac_delim
24188 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24189 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24190 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24191 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24192 HAVE_LIBOTF!$HAVE_LIBOTF$ac_delim
24193 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24194 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24195 ALLOCA!$ALLOCA$ac_delim
24196 liblockfile!$liblockfile$ac_delim
24197 LIBOBJS!$LIBOBJS$ac_delim
24198 NEED_SETGID!$NEED_SETGID$ac_delim
24199 KMEM_GROUP!$KMEM_GROUP$ac_delim
24200 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24201 GETOPT_H!$GETOPT_H$ac_delim
24202 GETOPTOBJS!$GETOPTOBJS$ac_delim
24203 version!$version$ac_delim
24204 configuration!$configuration$ac_delim
24205 canonical!$canonical$ac_delim
24206 srcdir!$srcdir$ac_delim
24207 lispdir!$lispdir$ac_delim
24208 locallisppath!$locallisppath$ac_delim
24209 lisppath!$lisppath$ac_delim
24210 x_default_search_path!$x_default_search_path$ac_delim
24211 _ACEOF
24212
24213 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24214 break
24215 elif $ac_last_try; then
24216 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24217 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24218 { (exit 1); exit 1; }; }
24219 else
24220 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24221 fi
24222 done
24223
24224 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24225 if test -n "$ac_eof"; then
24226 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24227 ac_eof=`expr $ac_eof + 1`
24228 fi
24229
24230 cat >>$CONFIG_STATUS <<_ACEOF
24231 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24232 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24233 _ACEOF
24234 sed '
24235 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24236 s/^/s,@/; s/!/@,|#_!!_#|/
24237 :n
24238 t n
24239 s/'"$ac_delim"'$/,g/; t
24240 s/$/\\/; p
24241 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24242 ' >>$CONFIG_STATUS <conf$$subs.sed
24243 rm -f conf$$subs.sed
24244 cat >>$CONFIG_STATUS <<_ACEOF
24245 CEOF$ac_eof
24246 _ACEOF
24247
24248
24249 ac_delim='%!_!# '
24250 for ac_last_try in false false false false false :; do
24251 cat >conf$$subs.sed <<_ACEOF
24252 etcdir!$etcdir$ac_delim
24253 archlibdir!$archlibdir$ac_delim
24254 bitmapdir!$bitmapdir$ac_delim
24255 gamedir!$gamedir$ac_delim
24256 gameuser!$gameuser$ac_delim
24257 c_switch_system!$c_switch_system$ac_delim
24258 c_switch_machine!$c_switch_machine$ac_delim
24259 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24260 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24261 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24262 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24263 machfile!$machfile$ac_delim
24264 opsysfile!$opsysfile$ac_delim
24265 carbon_appdir!$carbon_appdir$ac_delim
24266 LTLIBOBJS!$LTLIBOBJS$ac_delim
24267 _ACEOF
24268
24269 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then
24270 break
24271 elif $ac_last_try; then
24272 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24273 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24274 { (exit 1); exit 1; }; }
24275 else
24276 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24277 fi
24278 done
24279
24280 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24281 if test -n "$ac_eof"; then
24282 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24283 ac_eof=`expr $ac_eof + 1`
24284 fi
24285
24286 cat >>$CONFIG_STATUS <<_ACEOF
24287 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24288 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24289 _ACEOF
24290 sed '
24291 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24292 s/^/s,@/; s/!/@,|#_!!_#|/
24293 :n
24294 t n
24295 s/'"$ac_delim"'$/,g/; t
24296 s/$/\\/; p
24297 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24298 ' >>$CONFIG_STATUS <conf$$subs.sed
24299 rm -f conf$$subs.sed
24300 cat >>$CONFIG_STATUS <<_ACEOF
24301 :end
24302 s/|#_!!_#|//g
24303 CEOF$ac_eof
24304 _ACEOF
24305
24306
24307 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24308 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24309 # trailing colons and then remove the whole line if VPATH becomes empty
24310 # (actually we leave an empty line to preserve line numbers).
24311 if test "x$srcdir" = x.; then
24312 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24313 s/:*\$(srcdir):*/:/
24314 s/:*\${srcdir}:*/:/
24315 s/:*@srcdir@:*/:/
24316 s/^\([^=]*=[ ]*\):*/\1/
24317 s/:*$//
24318 s/^[^=]*=[ ]*$//
24319 }'
24320 fi
24321
24322 cat >>$CONFIG_STATUS <<\_ACEOF
24323 fi # test -n "$CONFIG_FILES"
24324
24325
24326 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24327 do
24328 case $ac_tag in
24329 :[FHLC]) ac_mode=$ac_tag; continue;;
24330 esac
24331 case $ac_mode$ac_tag in
24332 :[FHL]*:*);;
24333 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24334 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24335 { (exit 1); exit 1; }; };;
24336 :[FH]-) ac_tag=-:-;;
24337 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24338 esac
24339 ac_save_IFS=$IFS
24340 IFS=:
24341 set x $ac_tag
24342 IFS=$ac_save_IFS
24343 shift
24344 ac_file=$1
24345 shift
24346
24347 case $ac_mode in
24348 :L) ac_source=$1;;
24349 :[FH])
24350 ac_file_inputs=
24351 for ac_f
24352 do
24353 case $ac_f in
24354 -) ac_f="$tmp/stdin";;
24355 *) # Look for the file first in the build tree, then in the source tree
24356 # (if the path is not absolute). The absolute path cannot be DOS-style,
24357 # because $ac_f cannot contain `:'.
24358 test -f "$ac_f" ||
24359 case $ac_f in
24360 [\\/$]*) false;;
24361 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24362 esac ||
24363 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24364 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24365 { (exit 1); exit 1; }; };;
24366 esac
24367 ac_file_inputs="$ac_file_inputs $ac_f"
24368 done
24369
24370 # Let's still pretend it is `configure' which instantiates (i.e., don't
24371 # use $as_me), people would be surprised to read:
24372 # /* config.h. Generated by config.status. */
24373 configure_input="Generated from "`IFS=:
24374 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24375 if test x"$ac_file" != x-; then
24376 configure_input="$ac_file. $configure_input"
24377 { echo "$as_me:$LINENO: creating $ac_file" >&5
24378 echo "$as_me: creating $ac_file" >&6;}
24379 fi
24380
24381 case $ac_tag in
24382 *:-:* | *:-) cat >"$tmp/stdin";;
24383 esac
24384 ;;
24385 esac
24386
24387 ac_dir=`$as_dirname -- "$ac_file" ||
24388 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24389 X"$ac_file" : 'X\(//\)[^/]' \| \
24390 X"$ac_file" : 'X\(//\)$' \| \
24391 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24392 echo X"$ac_file" |
24393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24394 s//\1/
24395 q
24396 }
24397 /^X\(\/\/\)[^/].*/{
24398 s//\1/
24399 q
24400 }
24401 /^X\(\/\/\)$/{
24402 s//\1/
24403 q
24404 }
24405 /^X\(\/\).*/{
24406 s//\1/
24407 q
24408 }
24409 s/.*/./; q'`
24410 { as_dir="$ac_dir"
24411 case $as_dir in #(
24412 -*) as_dir=./$as_dir;;
24413 esac
24414 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24415 as_dirs=
24416 while :; do
24417 case $as_dir in #(
24418 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24419 *) as_qdir=$as_dir;;
24420 esac
24421 as_dirs="'$as_qdir' $as_dirs"
24422 as_dir=`$as_dirname -- "$as_dir" ||
24423 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24424 X"$as_dir" : 'X\(//\)[^/]' \| \
24425 X"$as_dir" : 'X\(//\)$' \| \
24426 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24427 echo X"$as_dir" |
24428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24429 s//\1/
24430 q
24431 }
24432 /^X\(\/\/\)[^/].*/{
24433 s//\1/
24434 q
24435 }
24436 /^X\(\/\/\)$/{
24437 s//\1/
24438 q
24439 }
24440 /^X\(\/\).*/{
24441 s//\1/
24442 q
24443 }
24444 s/.*/./; q'`
24445 test -d "$as_dir" && break
24446 done
24447 test -z "$as_dirs" || eval "mkdir $as_dirs"
24448 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24449 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24450 { (exit 1); exit 1; }; }; }
24451 ac_builddir=.
24452
24453 case "$ac_dir" in
24454 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24455 *)
24456 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24457 # A ".." for each directory in $ac_dir_suffix.
24458 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24459 case $ac_top_builddir_sub in
24460 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24461 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24462 esac ;;
24463 esac
24464 ac_abs_top_builddir=$ac_pwd
24465 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24466 # for backward compatibility:
24467 ac_top_builddir=$ac_top_build_prefix
24468
24469 case $srcdir in
24470 .) # We are building in place.
24471 ac_srcdir=.
24472 ac_top_srcdir=$ac_top_builddir_sub
24473 ac_abs_top_srcdir=$ac_pwd ;;
24474 [\\/]* | ?:[\\/]* ) # Absolute name.
24475 ac_srcdir=$srcdir$ac_dir_suffix;
24476 ac_top_srcdir=$srcdir
24477 ac_abs_top_srcdir=$srcdir ;;
24478 *) # Relative name.
24479 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24480 ac_top_srcdir=$ac_top_build_prefix$srcdir
24481 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24482 esac
24483 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24484
24485
24486 case $ac_mode in
24487 :F)
24488 #
24489 # CONFIG_FILE
24490 #
24491
24492 case $INSTALL in
24493 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24494 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24495 esac
24496 _ACEOF
24497
24498 cat >>$CONFIG_STATUS <<\_ACEOF
24499 # If the template does not know about datarootdir, expand it.
24500 # FIXME: This hack should be removed a few years after 2.60.
24501 ac_datarootdir_hack=; ac_datarootdir_seen=
24502
24503 case `sed -n '/datarootdir/ {
24504 p
24505 q
24506 }
24507 /@datadir@/p
24508 /@docdir@/p
24509 /@infodir@/p
24510 /@localedir@/p
24511 /@mandir@/p
24512 ' $ac_file_inputs` in
24513 *datarootdir*) ac_datarootdir_seen=yes;;
24514 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24515 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24516 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24517 _ACEOF
24518 cat >>$CONFIG_STATUS <<_ACEOF
24519 ac_datarootdir_hack='
24520 s&@datadir@&$datadir&g
24521 s&@docdir@&$docdir&g
24522 s&@infodir@&$infodir&g
24523 s&@localedir@&$localedir&g
24524 s&@mandir@&$mandir&g
24525 s&\\\${datarootdir}&$datarootdir&g' ;;
24526 esac
24527 _ACEOF
24528
24529 # Neutralize VPATH when `$srcdir' = `.'.
24530 # Shell code in configure.ac might set extrasub.
24531 # FIXME: do we really want to maintain this feature?
24532 cat >>$CONFIG_STATUS <<_ACEOF
24533 sed "$ac_vpsub
24534 $extrasub
24535 _ACEOF
24536 cat >>$CONFIG_STATUS <<\_ACEOF
24537 :t
24538 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24539 s&@configure_input@&$configure_input&;t t
24540 s&@top_builddir@&$ac_top_builddir_sub&;t t
24541 s&@srcdir@&$ac_srcdir&;t t
24542 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24543 s&@top_srcdir@&$ac_top_srcdir&;t t
24544 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24545 s&@builddir@&$ac_builddir&;t t
24546 s&@abs_builddir@&$ac_abs_builddir&;t t
24547 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24548 s&@INSTALL@&$ac_INSTALL&;t t
24549 $ac_datarootdir_hack
24550 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24551
24552 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24553 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24554 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24555 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24556 which seems to be undefined. Please make sure it is defined." >&5
24557 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24558 which seems to be undefined. Please make sure it is defined." >&2;}
24559
24560 rm -f "$tmp/stdin"
24561 case $ac_file in
24562 -) cat "$tmp/out"; rm -f "$tmp/out";;
24563 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24564 esac
24565 ;;
24566 :H)
24567 #
24568 # CONFIG_HEADER
24569 #
24570 _ACEOF
24571
24572 # Transform confdefs.h into a sed script `conftest.defines', that
24573 # substitutes the proper values into config.h.in to produce config.h.
24574 rm -f conftest.defines conftest.tail
24575 # First, append a space to every undef/define line, to ease matching.
24576 echo 's/$/ /' >conftest.defines
24577 # Then, protect against being on the right side of a sed subst, or in
24578 # an unquoted here document, in config.status. If some macros were
24579 # called several times there might be several #defines for the same
24580 # symbol, which is useless. But do not sort them, since the last
24581 # AC_DEFINE must be honored.
24582 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24583 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24584 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24585 # PARAMS is the parameter list in the macro definition--in most cases, it's
24586 # just an empty string.
24587 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24588 ac_dB='\\)[ (].*,\\1define\\2'
24589 ac_dC=' '
24590 ac_dD=' ,'
24591
24592 uniq confdefs.h |
24593 sed -n '
24594 t rset
24595 :rset
24596 s/^[ ]*#[ ]*define[ ][ ]*//
24597 t ok
24598 d
24599 :ok
24600 s/[\\&,]/\\&/g
24601 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24602 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24603 ' >>conftest.defines
24604
24605 # Remove the space that was appended to ease matching.
24606 # Then replace #undef with comments. This is necessary, for
24607 # example, in the case of _POSIX_SOURCE, which is predefined and required
24608 # on some systems where configure will not decide to define it.
24609 # (The regexp can be short, since the line contains either #define or #undef.)
24610 echo 's/ $//
24611 s,^[ #]*u.*,/* & */,' >>conftest.defines
24612
24613 # Break up conftest.defines:
24614 ac_max_sed_lines=50
24615
24616 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24617 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24618 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24619 # et cetera.
24620 ac_in='$ac_file_inputs'
24621 ac_out='"$tmp/out1"'
24622 ac_nxt='"$tmp/out2"'
24623
24624 while :
24625 do
24626 # Write a here document:
24627 cat >>$CONFIG_STATUS <<_ACEOF
24628 # First, check the format of the line:
24629 cat >"\$tmp/defines.sed" <<\\CEOF
24630 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24631 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24632 b
24633 :def
24634 _ACEOF
24635 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24636 echo 'CEOF
24637 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24638 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24639 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24640 grep . conftest.tail >/dev/null || break
24641 rm -f conftest.defines
24642 mv conftest.tail conftest.defines
24643 done
24644 rm -f conftest.defines conftest.tail
24645
24646 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24647 cat >>$CONFIG_STATUS <<\_ACEOF
24648 if test x"$ac_file" != x-; then
24649 echo "/* $configure_input */" >"$tmp/config.h"
24650 cat "$ac_result" >>"$tmp/config.h"
24651 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24652 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24653 echo "$as_me: $ac_file is unchanged" >&6;}
24654 else
24655 rm -f $ac_file
24656 mv "$tmp/config.h" $ac_file
24657 fi
24658 else
24659 echo "/* $configure_input */"
24660 cat "$ac_result"
24661 fi
24662 rm -f "$tmp/out12"
24663 ;;
24664
24665 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24666 echo "$as_me: executing $ac_file commands" >&6;}
24667 ;;
24668 esac
24669
24670
24671 case $ac_file$ac_mode in
24672 "default":C)
24673
24674 ### Make the necessary directories, if they don't exist.
24675 for dir in etc lisp ; do
24676 test -d ${dir} || mkdir ${dir}
24677 done
24678
24679 # Build src/Makefile from ${srcdir}/src/Makefile.c
24680 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24681 # This must be done after src/config.h is built, since we rely on that file.
24682
24683 # Now get this: Some word that is part of the ${srcdir} directory name
24684 # or the ${configuration} value might, just might, happen to be an
24685 # identifier like `sun4' or `i386' or something, and be predefined by
24686 # the C preprocessor to some helpful value like 1, or maybe the empty
24687 # string. Needless to say consequent macro substitutions are less
24688 # than conducive to the makefile finding the correct directory.
24689 undefs="`echo $top_srcdir $configuration $canonical |
24690 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24691 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24692 `"
24693
24694 echo creating src/epaths.h
24695 ${MAKE-make} epaths-force
24696
24697 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24698 # `..' to `. .' unless invoked with -traditional
24699
24700 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24701 CPPFLAGS="$CPPFLAGS -traditional"
24702 fi
24703
24704 echo creating lib-src/Makefile
24705 ( cd lib-src
24706 rm -f junk.c junk1.c junk2.c
24707 sed -e '/start of cpp stuff/q' \
24708 < Makefile.c > junk1.c
24709 sed -e '1,/start of cpp stuff/d'\
24710 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24711 < Makefile.c > junk.c
24712 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24713 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24714 cat junk1.c junk2.c > Makefile.new
24715 rm -f junk.c junk1.c junk2.c
24716 chmod 444 Makefile.new
24717 mv -f Makefile.new Makefile
24718 )
24719
24720 echo creating src/Makefile
24721 ( cd src
24722 rm -f junk.c junk1.c junk2.c
24723 sed -e '/start of cpp stuff/q' \
24724 < Makefile.c > junk1.c
24725 sed -e '1,/start of cpp stuff/d'\
24726 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24727 < Makefile.c > junk.c
24728 if test -f ${srcdir}/admin/unidata/UnicodeData.txt; then
24729 CPPFLAGS="$CPPFLAGS -DHAVE_UNIDATA"
24730 fi
24731 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24732 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24733 cat junk1.c junk2.c > Makefile.new
24734 rm -f junk.c junk1.c junk2.c
24735 chmod 444 Makefile.new
24736 mv -f Makefile.new Makefile
24737 )
24738
24739 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24740 echo creating src/.gdbinit
24741 echo source $srcdir/src/.gdbinit > src/.gdbinit
24742 fi
24743
24744 # This is how we know whether to re-run configure in certain cases.
24745 touch src/config.stamp
24746
24747 ;;
24748
24749 esac
24750 done # for ac_tag
24751
24752
24753 { (exit 0); exit 0; }
24754 _ACEOF
24755 chmod +x $CONFIG_STATUS
24756 ac_clean_files=$ac_clean_files_save
24757
24758
24759 # configure is writing to config.log, and then calls config.status.
24760 # config.status does its own redirection, appending to config.log.
24761 # Unfortunately, on DOS this fails, as config.log is still kept open
24762 # by configure, so config.status won't be able to write to it; its
24763 # output is simply discarded. So we exec the FD to /dev/null,
24764 # effectively closing config.log, so it can be properly (re)opened and
24765 # appended to by config.status. When coming back to configure, we
24766 # need to make the FD available again.
24767 if test "$no_create" != yes; then
24768 ac_cs_success=:
24769 ac_config_status_args=
24770 test "$silent" = yes &&
24771 ac_config_status_args="$ac_config_status_args --quiet"
24772 exec 5>/dev/null
24773 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24774 exec 5>>config.log
24775 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24776 # would make configure fail if this is the last instruction.
24777 $ac_cs_success || { (exit 1); exit 1; }
24778 fi
24779
24780